diff --git a/latest/live/Main-95578bf4.js b/latest/live/Main-082bb717.js similarity index 99% rename from latest/live/Main-95578bf4.js rename to latest/live/Main-082bb717.js index 8145e8a..575628e 100644 --- a/latest/live/Main-95578bf4.js +++ b/latest/live/Main-082bb717.js @@ -55257,8 +55257,6 @@ var _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher = function (currentDa return function (saleUuid) { return function (event) { var _p103 = _p102; - var _p141 = _p103._0; - var _p140 = _p103._1; var noChange = { ctor: '_Tuple3', _0: model, @@ -55320,11 +55318,6 @@ var _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher = function (currentDa _elm_lang$core$Task$perform, _elm_lang$core$Basics$identity, _elm_lang$core$Task$succeed(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceStart)); - var queuedBidsUpdateCmd = A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p141, _1: _p140}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(_Gizra$circuit_bid$Pusher_Model$emptyClerkQueuedBidsUpdateData)); var newSale = A2( _krisajenkins$remotedata$RemoteData$map, function (sale) { @@ -55401,11 +55394,7 @@ var _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher = function (currentDa _1: { ctor: '::', _0: sessionCmd, - _1: { - ctor: '::', - _0: queuedBidsUpdateCmd, - _1: {ctor: '[]'} - } + _1: {ctor: '[]'} } }), _2: {ctor: '[]'} @@ -55729,7 +55718,7 @@ var _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher = function (currentDa model.queuedItemUpdateRequestState, function () { var _p137 = _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateSuccess(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p141, _1: _p140})(isDebug)(accessToken)(language)(user)(modelBackend)(model)( + {ctor: '_Tuple2', _0: _p103._0, _1: _p103._1})(isDebug)(accessToken)(language)(user)(modelBackend)(model)( {ctor: '_Tuple2', _0: _p128._0._0, _1: _p128._0._1}); var updatedModel = _p137._0; var cmds = _p137._1; @@ -56098,7 +56087,8 @@ var _Gizra$circuit_bid$Pages_Sale_Update$updateFromPusher = F9( sale: newSale, nextBidIncrements: {ctor: '[]'}, carouselPosition: newCarouselPosition, - asyncGoingItemStatus: false + asyncGoingItemStatus: false, + clerkHighestQueuedBidData: _Gizra$circuit_bid$Pusher_Model$emptyClerkQueuedBidsUpdateData }), _1: cmd, _2: {ctor: '[]'} diff --git a/latest/live/Main-e1f11af6.js b/latest/live/Main-e1f11af6.js deleted file mode 100644 index dcf0666..0000000 --- a/latest/live/Main-e1f11af6.js +++ /dev/null @@ -1,66397 +0,0 @@ - -(function() { -'use strict'; - -function F2(fun) -{ - function wrapper(a) { return function(b) { return fun(a,b); }; } - wrapper.arity = 2; - wrapper.func = fun; - return wrapper; -} - -function F3(fun) -{ - function wrapper(a) { - return function(b) { return function(c) { return fun(a, b, c); }; }; - } - wrapper.arity = 3; - wrapper.func = fun; - return wrapper; -} - -function F4(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return fun(a, b, c, d); }; }; }; - } - wrapper.arity = 4; - wrapper.func = fun; - return wrapper; -} - -function F5(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return function(e) { return fun(a, b, c, d, e); }; }; }; }; - } - wrapper.arity = 5; - wrapper.func = fun; - return wrapper; -} - -function F6(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return function(e) { return function(f) { - return fun(a, b, c, d, e, f); }; }; }; }; }; - } - wrapper.arity = 6; - wrapper.func = fun; - return wrapper; -} - -function F7(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return function(e) { return function(f) { - return function(g) { return fun(a, b, c, d, e, f, g); }; }; }; }; }; }; - } - wrapper.arity = 7; - wrapper.func = fun; - return wrapper; -} - -function F8(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return function(e) { return function(f) { - return function(g) { return function(h) { - return fun(a, b, c, d, e, f, g, h); }; }; }; }; }; }; }; - } - wrapper.arity = 8; - wrapper.func = fun; - return wrapper; -} - -function F9(fun) -{ - function wrapper(a) { return function(b) { return function(c) { - return function(d) { return function(e) { return function(f) { - return function(g) { return function(h) { return function(i) { - return fun(a, b, c, d, e, f, g, h, i); }; }; }; }; }; }; }; }; - } - wrapper.arity = 9; - wrapper.func = fun; - return wrapper; -} - -function A2(fun, a, b) -{ - return fun.arity === 2 - ? fun.func(a, b) - : fun(a)(b); -} -function A3(fun, a, b, c) -{ - return fun.arity === 3 - ? fun.func(a, b, c) - : fun(a)(b)(c); -} -function A4(fun, a, b, c, d) -{ - return fun.arity === 4 - ? fun.func(a, b, c, d) - : fun(a)(b)(c)(d); -} -function A5(fun, a, b, c, d, e) -{ - return fun.arity === 5 - ? fun.func(a, b, c, d, e) - : fun(a)(b)(c)(d)(e); -} -function A6(fun, a, b, c, d, e, f) -{ - return fun.arity === 6 - ? fun.func(a, b, c, d, e, f) - : fun(a)(b)(c)(d)(e)(f); -} -function A7(fun, a, b, c, d, e, f, g) -{ - return fun.arity === 7 - ? fun.func(a, b, c, d, e, f, g) - : fun(a)(b)(c)(d)(e)(f)(g); -} -function A8(fun, a, b, c, d, e, f, g, h) -{ - return fun.arity === 8 - ? fun.func(a, b, c, d, e, f, g, h) - : fun(a)(b)(c)(d)(e)(f)(g)(h); -} -function A9(fun, a, b, c, d, e, f, g, h, i) -{ - return fun.arity === 9 - ? fun.func(a, b, c, d, e, f, g, h, i) - : fun(a)(b)(c)(d)(e)(f)(g)(h)(i); -} - -//import Native.Utils // - -var _elm_lang$core$Native_Basics = function() { - -function div(a, b) -{ - return (a / b) | 0; -} -function rem(a, b) -{ - return a % b; -} -function mod(a, b) -{ - if (b === 0) - { - throw new Error('Cannot perform mod 0. Division by zero error.'); - } - var r = a % b; - var m = a === 0 ? 0 : (b > 0 ? (a >= 0 ? r : r + b) : -mod(-a, -b)); - - return m === b ? 0 : m; -} -function logBase(base, n) -{ - return Math.log(n) / Math.log(base); -} -function negate(n) -{ - return -n; -} -function abs(n) -{ - return n < 0 ? -n : n; -} - -function min(a, b) -{ - return _elm_lang$core$Native_Utils.cmp(a, b) < 0 ? a : b; -} -function max(a, b) -{ - return _elm_lang$core$Native_Utils.cmp(a, b) > 0 ? a : b; -} -function clamp(lo, hi, n) -{ - return _elm_lang$core$Native_Utils.cmp(n, lo) < 0 - ? lo - : _elm_lang$core$Native_Utils.cmp(n, hi) > 0 - ? hi - : n; -} - -var ord = ['LT', 'EQ', 'GT']; - -function compare(x, y) -{ - return { ctor: ord[_elm_lang$core$Native_Utils.cmp(x, y) + 1] }; -} - -function xor(a, b) -{ - return a !== b; -} -function not(b) -{ - return !b; -} -function isInfinite(n) -{ - return n === Infinity || n === -Infinity; -} - -function truncate(n) -{ - return n | 0; -} - -function degrees(d) -{ - return d * Math.PI / 180; -} -function turns(t) -{ - return 2 * Math.PI * t; -} -function fromPolar(point) -{ - var r = point._0; - var t = point._1; - return _elm_lang$core$Native_Utils.Tuple2(r * Math.cos(t), r * Math.sin(t)); -} -function toPolar(point) -{ - var x = point._0; - var y = point._1; - return _elm_lang$core$Native_Utils.Tuple2(Math.sqrt(x * x + y * y), Math.atan2(y, x)); -} - -return { - div: F2(div), - rem: F2(rem), - mod: F2(mod), - - pi: Math.PI, - e: Math.E, - cos: Math.cos, - sin: Math.sin, - tan: Math.tan, - acos: Math.acos, - asin: Math.asin, - atan: Math.atan, - atan2: F2(Math.atan2), - - degrees: degrees, - turns: turns, - fromPolar: fromPolar, - toPolar: toPolar, - - sqrt: Math.sqrt, - logBase: F2(logBase), - negate: negate, - abs: abs, - min: F2(min), - max: F2(max), - clamp: F3(clamp), - compare: F2(compare), - - xor: F2(xor), - not: not, - - truncate: truncate, - ceiling: Math.ceil, - floor: Math.floor, - round: Math.round, - toFloat: function(x) { return x; }, - isNaN: isNaN, - isInfinite: isInfinite -}; - -}(); -//import // - -var _elm_lang$core$Native_Utils = function() { - -// COMPARISONS - -function eq(x, y) -{ - var stack = []; - var isEqual = eqHelp(x, y, 0, stack); - var pair; - while (isEqual && (pair = stack.pop())) - { - isEqual = eqHelp(pair.x, pair.y, 0, stack); - } - return isEqual; -} - - -function eqHelp(x, y, depth, stack) -{ - if (depth > 100) - { - stack.push({ x: x, y: y }); - return true; - } - - if (x === y) - { - return true; - } - - if (typeof x !== 'object') - { - if (typeof x === 'function') - { - throw new Error( - 'Trying to use `(==)` on functions. There is no way to know if functions are "the same" in the Elm sense.' - + ' Read more about this at http://package.elm-lang.org/packages/elm-lang/core/latest/Basics#==' - + ' which describes why it is this way and what the better version will look like.' - ); - } - return false; - } - - if (x === null || y === null) - { - return false - } - - if (x instanceof Date) - { - return x.getTime() === y.getTime(); - } - - if (!('ctor' in x)) - { - for (var key in x) - { - if (!eqHelp(x[key], y[key], depth + 1, stack)) - { - return false; - } - } - return true; - } - - // convert Dicts and Sets to lists - if (x.ctor === 'RBNode_elm_builtin' || x.ctor === 'RBEmpty_elm_builtin') - { - x = _elm_lang$core$Dict$toList(x); - y = _elm_lang$core$Dict$toList(y); - } - if (x.ctor === 'Set_elm_builtin') - { - x = _elm_lang$core$Set$toList(x); - y = _elm_lang$core$Set$toList(y); - } - - // check if lists are equal without recursion - if (x.ctor === '::') - { - var a = x; - var b = y; - while (a.ctor === '::' && b.ctor === '::') - { - if (!eqHelp(a._0, b._0, depth + 1, stack)) - { - return false; - } - a = a._1; - b = b._1; - } - return a.ctor === b.ctor; - } - - // check if Arrays are equal - if (x.ctor === '_Array') - { - var xs = _elm_lang$core$Native_Array.toJSArray(x); - var ys = _elm_lang$core$Native_Array.toJSArray(y); - if (xs.length !== ys.length) - { - return false; - } - for (var i = 0; i < xs.length; i++) - { - if (!eqHelp(xs[i], ys[i], depth + 1, stack)) - { - return false; - } - } - return true; - } - - if (!eqHelp(x.ctor, y.ctor, depth + 1, stack)) - { - return false; - } - - for (var key in x) - { - if (!eqHelp(x[key], y[key], depth + 1, stack)) - { - return false; - } - } - return true; -} - -// Code in Generate/JavaScript.hs, Basics.js, and List.js depends on -// the particular integer values assigned to LT, EQ, and GT. - -var LT = -1, EQ = 0, GT = 1; - -function cmp(x, y) -{ - if (typeof x !== 'object') - { - return x === y ? EQ : x < y ? LT : GT; - } - - if (x instanceof String) - { - var a = x.valueOf(); - var b = y.valueOf(); - return a === b ? EQ : a < b ? LT : GT; - } - - if (x.ctor === '::' || x.ctor === '[]') - { - while (x.ctor === '::' && y.ctor === '::') - { - var ord = cmp(x._0, y._0); - if (ord !== EQ) - { - return ord; - } - x = x._1; - y = y._1; - } - return x.ctor === y.ctor ? EQ : x.ctor === '[]' ? LT : GT; - } - - if (x.ctor.slice(0, 6) === '_Tuple') - { - var ord; - var n = x.ctor.slice(6) - 0; - var err = 'cannot compare tuples with more than 6 elements.'; - if (n === 0) return EQ; - if (n >= 1) { ord = cmp(x._0, y._0); if (ord !== EQ) return ord; - if (n >= 2) { ord = cmp(x._1, y._1); if (ord !== EQ) return ord; - if (n >= 3) { ord = cmp(x._2, y._2); if (ord !== EQ) return ord; - if (n >= 4) { ord = cmp(x._3, y._3); if (ord !== EQ) return ord; - if (n >= 5) { ord = cmp(x._4, y._4); if (ord !== EQ) return ord; - if (n >= 6) { ord = cmp(x._5, y._5); if (ord !== EQ) return ord; - if (n >= 7) throw new Error('Comparison error: ' + err); } } } } } } - return EQ; - } - - throw new Error( - 'Comparison error: comparison is only defined on ints, ' - + 'floats, times, chars, strings, lists of comparable values, ' - + 'and tuples of comparable values.' - ); -} - - -// COMMON VALUES - -var Tuple0 = { - ctor: '_Tuple0' -}; - -function Tuple2(x, y) -{ - return { - ctor: '_Tuple2', - _0: x, - _1: y - }; -} - -function chr(c) -{ - return new String(c); -} - - -// GUID - -var count = 0; -function guid(_) -{ - return count++; -} - - -// RECORDS - -function update(oldRecord, updatedFields) -{ - var newRecord = {}; - - for (var key in oldRecord) - { - newRecord[key] = oldRecord[key]; - } - - for (var key in updatedFields) - { - newRecord[key] = updatedFields[key]; - } - - return newRecord; -} - - -//// LIST STUFF //// - -var Nil = { ctor: '[]' }; - -function Cons(hd, tl) -{ - return { - ctor: '::', - _0: hd, - _1: tl - }; -} - -function append(xs, ys) -{ - // append Strings - if (typeof xs === 'string') - { - return xs + ys; - } - - // append Lists - if (xs.ctor === '[]') - { - return ys; - } - var root = Cons(xs._0, Nil); - var curr = root; - xs = xs._1; - while (xs.ctor !== '[]') - { - curr._1 = Cons(xs._0, Nil); - xs = xs._1; - curr = curr._1; - } - curr._1 = ys; - return root; -} - - -// CRASHES - -function crash(moduleName, region) -{ - return function(message) { - throw new Error( - 'Ran into a `Debug.crash` in module `' + moduleName + '` ' + regionToString(region) + '\n' - + 'The message provided by the code author is:\n\n ' - + message - ); - }; -} - -function crashCase(moduleName, region, value) -{ - return function(message) { - throw new Error( - 'Ran into a `Debug.crash` in module `' + moduleName + '`\n\n' - + 'This was caused by the `case` expression ' + regionToString(region) + '.\n' - + 'One of the branches ended with a crash and the following value got through:\n\n ' + toString(value) + '\n\n' - + 'The message provided by the code author is:\n\n ' - + message - ); - }; -} - -function regionToString(region) -{ - if (region.start.line == region.end.line) - { - return 'on line ' + region.start.line; - } - return 'between lines ' + region.start.line + ' and ' + region.end.line; -} - - -// TO STRING - -function toString(v) -{ - var type = typeof v; - if (type === 'function') - { - return ''; - } - - if (type === 'boolean') - { - return v ? 'True' : 'False'; - } - - if (type === 'number') - { - return v + ''; - } - - if (v instanceof String) - { - return '\'' + addSlashes(v, true) + '\''; - } - - if (type === 'string') - { - return '"' + addSlashes(v, false) + '"'; - } - - if (v === null) - { - return 'null'; - } - - if (type === 'object' && 'ctor' in v) - { - var ctorStarter = v.ctor.substring(0, 5); - - if (ctorStarter === '_Tupl') - { - var output = []; - for (var k in v) - { - if (k === 'ctor') continue; - output.push(toString(v[k])); - } - return '(' + output.join(',') + ')'; - } - - if (ctorStarter === '_Task') - { - return '' - } - - if (v.ctor === '_Array') - { - var list = _elm_lang$core$Array$toList(v); - return 'Array.fromList ' + toString(list); - } - - if (v.ctor === '') - { - return ''; - } - - if (v.ctor === '_Process') - { - return ''; - } - - if (v.ctor === '::') - { - var output = '[' + toString(v._0); - v = v._1; - while (v.ctor === '::') - { - output += ',' + toString(v._0); - v = v._1; - } - return output + ']'; - } - - if (v.ctor === '[]') - { - return '[]'; - } - - if (v.ctor === 'Set_elm_builtin') - { - return 'Set.fromList ' + toString(_elm_lang$core$Set$toList(v)); - } - - if (v.ctor === 'RBNode_elm_builtin' || v.ctor === 'RBEmpty_elm_builtin') - { - return 'Dict.fromList ' + toString(_elm_lang$core$Dict$toList(v)); - } - - var output = ''; - for (var i in v) - { - if (i === 'ctor') continue; - var str = toString(v[i]); - var c0 = str[0]; - var parenless = c0 === '{' || c0 === '(' || c0 === '<' || c0 === '"' || str.indexOf(' ') < 0; - output += ' ' + (parenless ? str : '(' + str + ')'); - } - return v.ctor + output; - } - - if (type === 'object') - { - if (v instanceof Date) - { - return '<' + v.toString() + '>'; - } - - if (v.elm_web_socket) - { - return ''; - } - - var output = []; - for (var k in v) - { - output.push(k + ' = ' + toString(v[k])); - } - if (output.length === 0) - { - return '{}'; - } - return '{ ' + output.join(', ') + ' }'; - } - - return ''; -} - -function addSlashes(str, isChar) -{ - var s = str.replace(/\\/g, '\\\\') - .replace(/\n/g, '\\n') - .replace(/\t/g, '\\t') - .replace(/\r/g, '\\r') - .replace(/\v/g, '\\v') - .replace(/\0/g, '\\0'); - if (isChar) - { - return s.replace(/\'/g, '\\\''); - } - else - { - return s.replace(/\"/g, '\\"'); - } -} - - -return { - eq: eq, - cmp: cmp, - Tuple0: Tuple0, - Tuple2: Tuple2, - chr: chr, - update: update, - guid: guid, - - append: F2(append), - - crash: crash, - crashCase: crashCase, - - toString: toString -}; - -}(); -var _elm_lang$core$Basics$never = function (_p0) { - never: - while (true) { - var _p1 = _p0; - var _v1 = _p1._0; - _p0 = _v1; - continue never; - } -}; -var _elm_lang$core$Basics$uncurry = F2( - function (f, _p2) { - var _p3 = _p2; - return A2(f, _p3._0, _p3._1); - }); -var _elm_lang$core$Basics$curry = F3( - function (f, a, b) { - return f( - {ctor: '_Tuple2', _0: a, _1: b}); - }); -var _elm_lang$core$Basics$flip = F3( - function (f, b, a) { - return A2(f, a, b); - }); -var _elm_lang$core$Basics$always = F2( - function (a, _p4) { - return a; - }); -var _elm_lang$core$Basics$identity = function (x) { - return x; -}; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['<|'] = F2( - function (f, x) { - return f(x); - }); -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['|>'] = F2( - function (x, f) { - return f(x); - }); -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['>>'] = F3( - function (f, g, x) { - return g( - f(x)); - }); -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['<<'] = F3( - function (g, f, x) { - return g( - f(x)); - }); -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['++'] = _elm_lang$core$Native_Utils.append; -var _elm_lang$core$Basics$toString = _elm_lang$core$Native_Utils.toString; -var _elm_lang$core$Basics$isInfinite = _elm_lang$core$Native_Basics.isInfinite; -var _elm_lang$core$Basics$isNaN = _elm_lang$core$Native_Basics.isNaN; -var _elm_lang$core$Basics$toFloat = _elm_lang$core$Native_Basics.toFloat; -var _elm_lang$core$Basics$ceiling = _elm_lang$core$Native_Basics.ceiling; -var _elm_lang$core$Basics$floor = _elm_lang$core$Native_Basics.floor; -var _elm_lang$core$Basics$truncate = _elm_lang$core$Native_Basics.truncate; -var _elm_lang$core$Basics$round = _elm_lang$core$Native_Basics.round; -var _elm_lang$core$Basics$not = _elm_lang$core$Native_Basics.not; -var _elm_lang$core$Basics$xor = _elm_lang$core$Native_Basics.xor; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['||'] = _elm_lang$core$Native_Basics.or; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['&&'] = _elm_lang$core$Native_Basics.and; -var _elm_lang$core$Basics$max = _elm_lang$core$Native_Basics.max; -var _elm_lang$core$Basics$min = _elm_lang$core$Native_Basics.min; -var _elm_lang$core$Basics$compare = _elm_lang$core$Native_Basics.compare; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['>='] = _elm_lang$core$Native_Basics.ge; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['<='] = _elm_lang$core$Native_Basics.le; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['>'] = _elm_lang$core$Native_Basics.gt; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['<'] = _elm_lang$core$Native_Basics.lt; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['/='] = _elm_lang$core$Native_Basics.neq; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['=='] = _elm_lang$core$Native_Basics.eq; -var _elm_lang$core$Basics$e = _elm_lang$core$Native_Basics.e; -var _elm_lang$core$Basics$pi = _elm_lang$core$Native_Basics.pi; -var _elm_lang$core$Basics$clamp = _elm_lang$core$Native_Basics.clamp; -var _elm_lang$core$Basics$logBase = _elm_lang$core$Native_Basics.logBase; -var _elm_lang$core$Basics$abs = _elm_lang$core$Native_Basics.abs; -var _elm_lang$core$Basics$negate = _elm_lang$core$Native_Basics.negate; -var _elm_lang$core$Basics$sqrt = _elm_lang$core$Native_Basics.sqrt; -var _elm_lang$core$Basics$atan2 = _elm_lang$core$Native_Basics.atan2; -var _elm_lang$core$Basics$atan = _elm_lang$core$Native_Basics.atan; -var _elm_lang$core$Basics$asin = _elm_lang$core$Native_Basics.asin; -var _elm_lang$core$Basics$acos = _elm_lang$core$Native_Basics.acos; -var _elm_lang$core$Basics$tan = _elm_lang$core$Native_Basics.tan; -var _elm_lang$core$Basics$sin = _elm_lang$core$Native_Basics.sin; -var _elm_lang$core$Basics$cos = _elm_lang$core$Native_Basics.cos; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['^'] = _elm_lang$core$Native_Basics.exp; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['%'] = _elm_lang$core$Native_Basics.mod; -var _elm_lang$core$Basics$rem = _elm_lang$core$Native_Basics.rem; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['//'] = _elm_lang$core$Native_Basics.div; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['/'] = _elm_lang$core$Native_Basics.floatDiv; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['*'] = _elm_lang$core$Native_Basics.mul; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['-'] = _elm_lang$core$Native_Basics.sub; -var _elm_lang$core$Basics_ops = _elm_lang$core$Basics_ops || {}; -_elm_lang$core$Basics_ops['+'] = _elm_lang$core$Native_Basics.add; -var _elm_lang$core$Basics$toPolar = _elm_lang$core$Native_Basics.toPolar; -var _elm_lang$core$Basics$fromPolar = _elm_lang$core$Native_Basics.fromPolar; -var _elm_lang$core$Basics$turns = _elm_lang$core$Native_Basics.turns; -var _elm_lang$core$Basics$degrees = _elm_lang$core$Native_Basics.degrees; -var _elm_lang$core$Basics$radians = function (t) { - return t; -}; -var _elm_lang$core$Basics$GT = {ctor: 'GT'}; -var _elm_lang$core$Basics$EQ = {ctor: 'EQ'}; -var _elm_lang$core$Basics$LT = {ctor: 'LT'}; -var _elm_lang$core$Basics$JustOneMore = function (a) { - return {ctor: 'JustOneMore', _0: a}; -}; - -//import Native.Utils // - -var _elm_lang$core$Native_Debug = function() { - -function log(tag, value) -{ - var msg = tag + ': ' + _elm_lang$core$Native_Utils.toString(value); - var process = process || {}; - if (process.stdout) - { - process.stdout.write(msg); - } - else - { - console.log(msg); - } - return value; -} - -function crash(message) -{ - throw new Error(message); -} - -return { - crash: crash, - log: F2(log) -}; - -}(); -var _elm_lang$core$Debug$crash = _elm_lang$core$Native_Debug.crash; -var _elm_lang$core$Debug$log = _elm_lang$core$Native_Debug.log; - -var _elm_lang$core$Maybe$withDefault = F2( - function ($default, maybe) { - var _p0 = maybe; - if (_p0.ctor === 'Just') { - return _p0._0; - } else { - return $default; - } - }); -var _elm_lang$core$Maybe$Nothing = {ctor: 'Nothing'}; -var _elm_lang$core$Maybe$andThen = F2( - function (callback, maybeValue) { - var _p1 = maybeValue; - if (_p1.ctor === 'Just') { - return callback(_p1._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_lang$core$Maybe$Just = function (a) { - return {ctor: 'Just', _0: a}; -}; -var _elm_lang$core$Maybe$map = F2( - function (f, maybe) { - var _p2 = maybe; - if (_p2.ctor === 'Just') { - return _elm_lang$core$Maybe$Just( - f(_p2._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_lang$core$Maybe$map2 = F3( - function (func, ma, mb) { - var _p3 = {ctor: '_Tuple2', _0: ma, _1: mb}; - if (((_p3.ctor === '_Tuple2') && (_p3._0.ctor === 'Just')) && (_p3._1.ctor === 'Just')) { - return _elm_lang$core$Maybe$Just( - A2(func, _p3._0._0, _p3._1._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_lang$core$Maybe$map3 = F4( - function (func, ma, mb, mc) { - var _p4 = {ctor: '_Tuple3', _0: ma, _1: mb, _2: mc}; - if ((((_p4.ctor === '_Tuple3') && (_p4._0.ctor === 'Just')) && (_p4._1.ctor === 'Just')) && (_p4._2.ctor === 'Just')) { - return _elm_lang$core$Maybe$Just( - A3(func, _p4._0._0, _p4._1._0, _p4._2._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_lang$core$Maybe$map4 = F5( - function (func, ma, mb, mc, md) { - var _p5 = {ctor: '_Tuple4', _0: ma, _1: mb, _2: mc, _3: md}; - if (((((_p5.ctor === '_Tuple4') && (_p5._0.ctor === 'Just')) && (_p5._1.ctor === 'Just')) && (_p5._2.ctor === 'Just')) && (_p5._3.ctor === 'Just')) { - return _elm_lang$core$Maybe$Just( - A4(func, _p5._0._0, _p5._1._0, _p5._2._0, _p5._3._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_lang$core$Maybe$map5 = F6( - function (func, ma, mb, mc, md, me) { - var _p6 = {ctor: '_Tuple5', _0: ma, _1: mb, _2: mc, _3: md, _4: me}; - if ((((((_p6.ctor === '_Tuple5') && (_p6._0.ctor === 'Just')) && (_p6._1.ctor === 'Just')) && (_p6._2.ctor === 'Just')) && (_p6._3.ctor === 'Just')) && (_p6._4.ctor === 'Just')) { - return _elm_lang$core$Maybe$Just( - A5(func, _p6._0._0, _p6._1._0, _p6._2._0, _p6._3._0, _p6._4._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); - -//import Native.Utils // - -var _elm_lang$core$Native_List = function() { - -var Nil = { ctor: '[]' }; - -function Cons(hd, tl) -{ - return { ctor: '::', _0: hd, _1: tl }; -} - -function fromArray(arr) -{ - var out = Nil; - for (var i = arr.length; i--; ) - { - out = Cons(arr[i], out); - } - return out; -} - -function toArray(xs) -{ - var out = []; - while (xs.ctor !== '[]') - { - out.push(xs._0); - xs = xs._1; - } - return out; -} - -function foldr(f, b, xs) -{ - var arr = toArray(xs); - var acc = b; - for (var i = arr.length; i--; ) - { - acc = A2(f, arr[i], acc); - } - return acc; -} - -function map2(f, xs, ys) -{ - var arr = []; - while (xs.ctor !== '[]' && ys.ctor !== '[]') - { - arr.push(A2(f, xs._0, ys._0)); - xs = xs._1; - ys = ys._1; - } - return fromArray(arr); -} - -function map3(f, xs, ys, zs) -{ - var arr = []; - while (xs.ctor !== '[]' && ys.ctor !== '[]' && zs.ctor !== '[]') - { - arr.push(A3(f, xs._0, ys._0, zs._0)); - xs = xs._1; - ys = ys._1; - zs = zs._1; - } - return fromArray(arr); -} - -function map4(f, ws, xs, ys, zs) -{ - var arr = []; - while ( ws.ctor !== '[]' - && xs.ctor !== '[]' - && ys.ctor !== '[]' - && zs.ctor !== '[]') - { - arr.push(A4(f, ws._0, xs._0, ys._0, zs._0)); - ws = ws._1; - xs = xs._1; - ys = ys._1; - zs = zs._1; - } - return fromArray(arr); -} - -function map5(f, vs, ws, xs, ys, zs) -{ - var arr = []; - while ( vs.ctor !== '[]' - && ws.ctor !== '[]' - && xs.ctor !== '[]' - && ys.ctor !== '[]' - && zs.ctor !== '[]') - { - arr.push(A5(f, vs._0, ws._0, xs._0, ys._0, zs._0)); - vs = vs._1; - ws = ws._1; - xs = xs._1; - ys = ys._1; - zs = zs._1; - } - return fromArray(arr); -} - -function sortBy(f, xs) -{ - return fromArray(toArray(xs).sort(function(a, b) { - return _elm_lang$core$Native_Utils.cmp(f(a), f(b)); - })); -} - -function sortWith(f, xs) -{ - return fromArray(toArray(xs).sort(function(a, b) { - var ord = f(a)(b).ctor; - return ord === 'EQ' ? 0 : ord === 'LT' ? -1 : 1; - })); -} - -return { - Nil: Nil, - Cons: Cons, - cons: F2(Cons), - toArray: toArray, - fromArray: fromArray, - - foldr: F3(foldr), - - map2: F3(map2), - map3: F4(map3), - map4: F5(map4), - map5: F6(map5), - sortBy: F2(sortBy), - sortWith: F2(sortWith) -}; - -}(); -var _elm_lang$core$List$sortWith = _elm_lang$core$Native_List.sortWith; -var _elm_lang$core$List$sortBy = _elm_lang$core$Native_List.sortBy; -var _elm_lang$core$List$sort = function (xs) { - return A2(_elm_lang$core$List$sortBy, _elm_lang$core$Basics$identity, xs); -}; -var _elm_lang$core$List$singleton = function (value) { - return { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - }; -}; -var _elm_lang$core$List$drop = F2( - function (n, list) { - drop: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(n, 0) < 1) { - return list; - } else { - var _p0 = list; - if (_p0.ctor === '[]') { - return list; - } else { - var _v1 = n - 1, - _v2 = _p0._1; - n = _v1; - list = _v2; - continue drop; - } - } - } - }); -var _elm_lang$core$List$map5 = _elm_lang$core$Native_List.map5; -var _elm_lang$core$List$map4 = _elm_lang$core$Native_List.map4; -var _elm_lang$core$List$map3 = _elm_lang$core$Native_List.map3; -var _elm_lang$core$List$map2 = _elm_lang$core$Native_List.map2; -var _elm_lang$core$List$any = F2( - function (isOkay, list) { - any: - while (true) { - var _p1 = list; - if (_p1.ctor === '[]') { - return false; - } else { - if (isOkay(_p1._0)) { - return true; - } else { - var _v4 = isOkay, - _v5 = _p1._1; - isOkay = _v4; - list = _v5; - continue any; - } - } - } - }); -var _elm_lang$core$List$all = F2( - function (isOkay, list) { - return !A2( - _elm_lang$core$List$any, - function (_p2) { - return !isOkay(_p2); - }, - list); - }); -var _elm_lang$core$List$foldr = _elm_lang$core$Native_List.foldr; -var _elm_lang$core$List$foldl = F3( - function (func, acc, list) { - foldl: - while (true) { - var _p3 = list; - if (_p3.ctor === '[]') { - return acc; - } else { - var _v7 = func, - _v8 = A2(func, _p3._0, acc), - _v9 = _p3._1; - func = _v7; - acc = _v8; - list = _v9; - continue foldl; - } - } - }); -var _elm_lang$core$List$length = function (xs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p4, i) { - return i + 1; - }), - 0, - xs); -}; -var _elm_lang$core$List$sum = function (numbers) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, y) { - return x + y; - }), - 0, - numbers); -}; -var _elm_lang$core$List$product = function (numbers) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, y) { - return x * y; - }), - 1, - numbers); -}; -var _elm_lang$core$List$maximum = function (list) { - var _p5 = list; - if (_p5.ctor === '::') { - return _elm_lang$core$Maybe$Just( - A3(_elm_lang$core$List$foldl, _elm_lang$core$Basics$max, _p5._0, _p5._1)); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_lang$core$List$minimum = function (list) { - var _p6 = list; - if (_p6.ctor === '::') { - return _elm_lang$core$Maybe$Just( - A3(_elm_lang$core$List$foldl, _elm_lang$core$Basics$min, _p6._0, _p6._1)); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_lang$core$List$member = F2( - function (x, xs) { - return A2( - _elm_lang$core$List$any, - function (a) { - return _elm_lang$core$Native_Utils.eq(a, x); - }, - xs); - }); -var _elm_lang$core$List$isEmpty = function (xs) { - var _p7 = xs; - if (_p7.ctor === '[]') { - return true; - } else { - return false; - } -}; -var _elm_lang$core$List$tail = function (list) { - var _p8 = list; - if (_p8.ctor === '::') { - return _elm_lang$core$Maybe$Just(_p8._1); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_lang$core$List$head = function (list) { - var _p9 = list; - if (_p9.ctor === '::') { - return _elm_lang$core$Maybe$Just(_p9._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_lang$core$List_ops = _elm_lang$core$List_ops || {}; -_elm_lang$core$List_ops['::'] = _elm_lang$core$Native_List.cons; -var _elm_lang$core$List$map = F2( - function (f, xs) { - return A3( - _elm_lang$core$List$foldr, - F2( - function (x, acc) { - return { - ctor: '::', - _0: f(x), - _1: acc - }; - }), - {ctor: '[]'}, - xs); - }); -var _elm_lang$core$List$filter = F2( - function (pred, xs) { - var conditionalCons = F2( - function (front, back) { - return pred(front) ? {ctor: '::', _0: front, _1: back} : back; - }); - return A3( - _elm_lang$core$List$foldr, - conditionalCons, - {ctor: '[]'}, - xs); - }); -var _elm_lang$core$List$maybeCons = F3( - function (f, mx, xs) { - var _p10 = f(mx); - if (_p10.ctor === 'Just') { - return {ctor: '::', _0: _p10._0, _1: xs}; - } else { - return xs; - } - }); -var _elm_lang$core$List$filterMap = F2( - function (f, xs) { - return A3( - _elm_lang$core$List$foldr, - _elm_lang$core$List$maybeCons(f), - {ctor: '[]'}, - xs); - }); -var _elm_lang$core$List$reverse = function (list) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - {ctor: '[]'}, - list); -}; -var _elm_lang$core$List$scanl = F3( - function (f, b, xs) { - var scan1 = F2( - function (x, accAcc) { - var _p11 = accAcc; - if (_p11.ctor === '::') { - return { - ctor: '::', - _0: A2(f, x, _p11._0), - _1: accAcc - }; - } else { - return {ctor: '[]'}; - } - }); - return _elm_lang$core$List$reverse( - A3( - _elm_lang$core$List$foldl, - scan1, - { - ctor: '::', - _0: b, - _1: {ctor: '[]'} - }, - xs)); - }); -var _elm_lang$core$List$append = F2( - function (xs, ys) { - var _p12 = ys; - if (_p12.ctor === '[]') { - return xs; - } else { - return A3( - _elm_lang$core$List$foldr, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - ys, - xs); - } - }); -var _elm_lang$core$List$concat = function (lists) { - return A3( - _elm_lang$core$List$foldr, - _elm_lang$core$List$append, - {ctor: '[]'}, - lists); -}; -var _elm_lang$core$List$concatMap = F2( - function (f, list) { - return _elm_lang$core$List$concat( - A2(_elm_lang$core$List$map, f, list)); - }); -var _elm_lang$core$List$partition = F2( - function (pred, list) { - var step = F2( - function (x, _p13) { - var _p14 = _p13; - var _p16 = _p14._0; - var _p15 = _p14._1; - return pred(x) ? { - ctor: '_Tuple2', - _0: {ctor: '::', _0: x, _1: _p16}, - _1: _p15 - } : { - ctor: '_Tuple2', - _0: _p16, - _1: {ctor: '::', _0: x, _1: _p15} - }; - }); - return A3( - _elm_lang$core$List$foldr, - step, - { - ctor: '_Tuple2', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }, - list); - }); -var _elm_lang$core$List$unzip = function (pairs) { - var step = F2( - function (_p18, _p17) { - var _p19 = _p18; - var _p20 = _p17; - return { - ctor: '_Tuple2', - _0: {ctor: '::', _0: _p19._0, _1: _p20._0}, - _1: {ctor: '::', _0: _p19._1, _1: _p20._1} - }; - }); - return A3( - _elm_lang$core$List$foldr, - step, - { - ctor: '_Tuple2', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }, - pairs); -}; -var _elm_lang$core$List$intersperse = F2( - function (sep, xs) { - var _p21 = xs; - if (_p21.ctor === '[]') { - return {ctor: '[]'}; - } else { - var step = F2( - function (x, rest) { - return { - ctor: '::', - _0: sep, - _1: {ctor: '::', _0: x, _1: rest} - }; - }); - var spersed = A3( - _elm_lang$core$List$foldr, - step, - {ctor: '[]'}, - _p21._1); - return {ctor: '::', _0: _p21._0, _1: spersed}; - } - }); -var _elm_lang$core$List$takeReverse = F3( - function (n, list, taken) { - takeReverse: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(n, 0) < 1) { - return taken; - } else { - var _p22 = list; - if (_p22.ctor === '[]') { - return taken; - } else { - var _v23 = n - 1, - _v24 = _p22._1, - _v25 = {ctor: '::', _0: _p22._0, _1: taken}; - n = _v23; - list = _v24; - taken = _v25; - continue takeReverse; - } - } - } - }); -var _elm_lang$core$List$takeTailRec = F2( - function (n, list) { - return _elm_lang$core$List$reverse( - A3( - _elm_lang$core$List$takeReverse, - n, - list, - {ctor: '[]'})); - }); -var _elm_lang$core$List$takeFast = F3( - function (ctr, n, list) { - if (_elm_lang$core$Native_Utils.cmp(n, 0) < 1) { - return {ctor: '[]'}; - } else { - var _p23 = {ctor: '_Tuple2', _0: n, _1: list}; - _v26_5: - do { - _v26_1: - do { - if (_p23.ctor === '_Tuple2') { - if (_p23._1.ctor === '[]') { - return list; - } else { - if (_p23._1._1.ctor === '::') { - switch (_p23._0) { - case 1: - break _v26_1; - case 2: - return { - ctor: '::', - _0: _p23._1._0, - _1: { - ctor: '::', - _0: _p23._1._1._0, - _1: {ctor: '[]'} - } - }; - case 3: - if (_p23._1._1._1.ctor === '::') { - return { - ctor: '::', - _0: _p23._1._0, - _1: { - ctor: '::', - _0: _p23._1._1._0, - _1: { - ctor: '::', - _0: _p23._1._1._1._0, - _1: {ctor: '[]'} - } - } - }; - } else { - break _v26_5; - } - default: - if ((_p23._1._1._1.ctor === '::') && (_p23._1._1._1._1.ctor === '::')) { - var _p28 = _p23._1._1._1._0; - var _p27 = _p23._1._1._0; - var _p26 = _p23._1._0; - var _p25 = _p23._1._1._1._1._0; - var _p24 = _p23._1._1._1._1._1; - return (_elm_lang$core$Native_Utils.cmp(ctr, 1000) > 0) ? { - ctor: '::', - _0: _p26, - _1: { - ctor: '::', - _0: _p27, - _1: { - ctor: '::', - _0: _p28, - _1: { - ctor: '::', - _0: _p25, - _1: A2(_elm_lang$core$List$takeTailRec, n - 4, _p24) - } - } - } - } : { - ctor: '::', - _0: _p26, - _1: { - ctor: '::', - _0: _p27, - _1: { - ctor: '::', - _0: _p28, - _1: { - ctor: '::', - _0: _p25, - _1: A3(_elm_lang$core$List$takeFast, ctr + 1, n - 4, _p24) - } - } - } - }; - } else { - break _v26_5; - } - } - } else { - if (_p23._0 === 1) { - break _v26_1; - } else { - break _v26_5; - } - } - } - } else { - break _v26_5; - } - } while(false); - return { - ctor: '::', - _0: _p23._1._0, - _1: {ctor: '[]'} - }; - } while(false); - return list; - } - }); -var _elm_lang$core$List$take = F2( - function (n, list) { - return A3(_elm_lang$core$List$takeFast, 0, n, list); - }); -var _elm_lang$core$List$repeatHelp = F3( - function (result, n, value) { - repeatHelp: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(n, 0) < 1) { - return result; - } else { - var _v27 = {ctor: '::', _0: value, _1: result}, - _v28 = n - 1, - _v29 = value; - result = _v27; - n = _v28; - value = _v29; - continue repeatHelp; - } - } - }); -var _elm_lang$core$List$repeat = F2( - function (n, value) { - return A3( - _elm_lang$core$List$repeatHelp, - {ctor: '[]'}, - n, - value); - }); -var _elm_lang$core$List$rangeHelp = F3( - function (lo, hi, list) { - rangeHelp: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(lo, hi) < 1) { - var _v30 = lo, - _v31 = hi - 1, - _v32 = {ctor: '::', _0: hi, _1: list}; - lo = _v30; - hi = _v31; - list = _v32; - continue rangeHelp; - } else { - return list; - } - } - }); -var _elm_lang$core$List$range = F2( - function (lo, hi) { - return A3( - _elm_lang$core$List$rangeHelp, - lo, - hi, - {ctor: '[]'}); - }); -var _elm_lang$core$List$indexedMap = F2( - function (f, xs) { - return A3( - _elm_lang$core$List$map2, - f, - A2( - _elm_lang$core$List$range, - 0, - _elm_lang$core$List$length(xs) - 1), - xs); - }); - -var _elm_lang$core$Result$toMaybe = function (result) { - var _p0 = result; - if (_p0.ctor === 'Ok') { - return _elm_lang$core$Maybe$Just(_p0._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_lang$core$Result$withDefault = F2( - function (def, result) { - var _p1 = result; - if (_p1.ctor === 'Ok') { - return _p1._0; - } else { - return def; - } - }); -var _elm_lang$core$Result$Err = function (a) { - return {ctor: 'Err', _0: a}; -}; -var _elm_lang$core$Result$andThen = F2( - function (callback, result) { - var _p2 = result; - if (_p2.ctor === 'Ok') { - return callback(_p2._0); - } else { - return _elm_lang$core$Result$Err(_p2._0); - } - }); -var _elm_lang$core$Result$Ok = function (a) { - return {ctor: 'Ok', _0: a}; -}; -var _elm_lang$core$Result$map = F2( - function (func, ra) { - var _p3 = ra; - if (_p3.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - func(_p3._0)); - } else { - return _elm_lang$core$Result$Err(_p3._0); - } - }); -var _elm_lang$core$Result$map2 = F3( - function (func, ra, rb) { - var _p4 = {ctor: '_Tuple2', _0: ra, _1: rb}; - if (_p4._0.ctor === 'Ok') { - if (_p4._1.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - A2(func, _p4._0._0, _p4._1._0)); - } else { - return _elm_lang$core$Result$Err(_p4._1._0); - } - } else { - return _elm_lang$core$Result$Err(_p4._0._0); - } - }); -var _elm_lang$core$Result$map3 = F4( - function (func, ra, rb, rc) { - var _p5 = {ctor: '_Tuple3', _0: ra, _1: rb, _2: rc}; - if (_p5._0.ctor === 'Ok') { - if (_p5._1.ctor === 'Ok') { - if (_p5._2.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - A3(func, _p5._0._0, _p5._1._0, _p5._2._0)); - } else { - return _elm_lang$core$Result$Err(_p5._2._0); - } - } else { - return _elm_lang$core$Result$Err(_p5._1._0); - } - } else { - return _elm_lang$core$Result$Err(_p5._0._0); - } - }); -var _elm_lang$core$Result$map4 = F5( - function (func, ra, rb, rc, rd) { - var _p6 = {ctor: '_Tuple4', _0: ra, _1: rb, _2: rc, _3: rd}; - if (_p6._0.ctor === 'Ok') { - if (_p6._1.ctor === 'Ok') { - if (_p6._2.ctor === 'Ok') { - if (_p6._3.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - A4(func, _p6._0._0, _p6._1._0, _p6._2._0, _p6._3._0)); - } else { - return _elm_lang$core$Result$Err(_p6._3._0); - } - } else { - return _elm_lang$core$Result$Err(_p6._2._0); - } - } else { - return _elm_lang$core$Result$Err(_p6._1._0); - } - } else { - return _elm_lang$core$Result$Err(_p6._0._0); - } - }); -var _elm_lang$core$Result$map5 = F6( - function (func, ra, rb, rc, rd, re) { - var _p7 = {ctor: '_Tuple5', _0: ra, _1: rb, _2: rc, _3: rd, _4: re}; - if (_p7._0.ctor === 'Ok') { - if (_p7._1.ctor === 'Ok') { - if (_p7._2.ctor === 'Ok') { - if (_p7._3.ctor === 'Ok') { - if (_p7._4.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - A5(func, _p7._0._0, _p7._1._0, _p7._2._0, _p7._3._0, _p7._4._0)); - } else { - return _elm_lang$core$Result$Err(_p7._4._0); - } - } else { - return _elm_lang$core$Result$Err(_p7._3._0); - } - } else { - return _elm_lang$core$Result$Err(_p7._2._0); - } - } else { - return _elm_lang$core$Result$Err(_p7._1._0); - } - } else { - return _elm_lang$core$Result$Err(_p7._0._0); - } - }); -var _elm_lang$core$Result$mapError = F2( - function (f, result) { - var _p8 = result; - if (_p8.ctor === 'Ok') { - return _elm_lang$core$Result$Ok(_p8._0); - } else { - return _elm_lang$core$Result$Err( - f(_p8._0)); - } - }); -var _elm_lang$core$Result$fromMaybe = F2( - function (err, maybe) { - var _p9 = maybe; - if (_p9.ctor === 'Just') { - return _elm_lang$core$Result$Ok(_p9._0); - } else { - return _elm_lang$core$Result$Err(err); - } - }); - -//import Maybe, Native.List, Native.Utils, Result // - -var _elm_lang$core$Native_String = function() { - -function isEmpty(str) -{ - return str.length === 0; -} -function cons(chr, str) -{ - return chr + str; -} -function uncons(str) -{ - var hd = str[0]; - if (hd) - { - return _elm_lang$core$Maybe$Just(_elm_lang$core$Native_Utils.Tuple2(_elm_lang$core$Native_Utils.chr(hd), str.slice(1))); - } - return _elm_lang$core$Maybe$Nothing; -} -function append(a, b) -{ - return a + b; -} -function concat(strs) -{ - return _elm_lang$core$Native_List.toArray(strs).join(''); -} -function length(str) -{ - return str.length; -} -function map(f, str) -{ - var out = str.split(''); - for (var i = out.length; i--; ) - { - out[i] = f(_elm_lang$core$Native_Utils.chr(out[i])); - } - return out.join(''); -} -function filter(pred, str) -{ - return str.split('').map(_elm_lang$core$Native_Utils.chr).filter(pred).join(''); -} -function reverse(str) -{ - return str.split('').reverse().join(''); -} -function foldl(f, b, str) -{ - var len = str.length; - for (var i = 0; i < len; ++i) - { - b = A2(f, _elm_lang$core$Native_Utils.chr(str[i]), b); - } - return b; -} -function foldr(f, b, str) -{ - for (var i = str.length; i--; ) - { - b = A2(f, _elm_lang$core$Native_Utils.chr(str[i]), b); - } - return b; -} -function split(sep, str) -{ - return _elm_lang$core$Native_List.fromArray(str.split(sep)); -} -function join(sep, strs) -{ - return _elm_lang$core$Native_List.toArray(strs).join(sep); -} -function repeat(n, str) -{ - var result = ''; - while (n > 0) - { - if (n & 1) - { - result += str; - } - n >>= 1, str += str; - } - return result; -} -function slice(start, end, str) -{ - return str.slice(start, end); -} -function left(n, str) -{ - return n < 1 ? '' : str.slice(0, n); -} -function right(n, str) -{ - return n < 1 ? '' : str.slice(-n); -} -function dropLeft(n, str) -{ - return n < 1 ? str : str.slice(n); -} -function dropRight(n, str) -{ - return n < 1 ? str : str.slice(0, -n); -} -function pad(n, chr, str) -{ - var half = (n - str.length) / 2; - return repeat(Math.ceil(half), chr) + str + repeat(half | 0, chr); -} -function padRight(n, chr, str) -{ - return str + repeat(n - str.length, chr); -} -function padLeft(n, chr, str) -{ - return repeat(n - str.length, chr) + str; -} - -function trim(str) -{ - return str.trim(); -} -function trimLeft(str) -{ - return str.replace(/^\s+/, ''); -} -function trimRight(str) -{ - return str.replace(/\s+$/, ''); -} - -function words(str) -{ - return _elm_lang$core$Native_List.fromArray(str.trim().split(/\s+/g)); -} -function lines(str) -{ - return _elm_lang$core$Native_List.fromArray(str.split(/\r\n|\r|\n/g)); -} - -function toUpper(str) -{ - return str.toUpperCase(); -} -function toLower(str) -{ - return str.toLowerCase(); -} - -function any(pred, str) -{ - for (var i = str.length; i--; ) - { - if (pred(_elm_lang$core$Native_Utils.chr(str[i]))) - { - return true; - } - } - return false; -} -function all(pred, str) -{ - for (var i = str.length; i--; ) - { - if (!pred(_elm_lang$core$Native_Utils.chr(str[i]))) - { - return false; - } - } - return true; -} - -function contains(sub, str) -{ - return str.indexOf(sub) > -1; -} -function startsWith(sub, str) -{ - return str.indexOf(sub) === 0; -} -function endsWith(sub, str) -{ - return str.length >= sub.length && - str.lastIndexOf(sub) === str.length - sub.length; -} -function indexes(sub, str) -{ - var subLen = sub.length; - - if (subLen < 1) - { - return _elm_lang$core$Native_List.Nil; - } - - var i = 0; - var is = []; - - while ((i = str.indexOf(sub, i)) > -1) - { - is.push(i); - i = i + subLen; - } - - return _elm_lang$core$Native_List.fromArray(is); -} - - -function toInt(s) -{ - var len = s.length; - - // if empty - if (len === 0) - { - return intErr(s); - } - - // if hex - var c = s[0]; - if (c === '0' && s[1] === 'x') - { - for (var i = 2; i < len; ++i) - { - var c = s[i]; - if (('0' <= c && c <= '9') || ('A' <= c && c <= 'F') || ('a' <= c && c <= 'f')) - { - continue; - } - return intErr(s); - } - return _elm_lang$core$Result$Ok(parseInt(s, 16)); - } - - // is decimal - if (c > '9' || (c < '0' && c !== '-' && c !== '+')) - { - return intErr(s); - } - for (var i = 1; i < len; ++i) - { - var c = s[i]; - if (c < '0' || '9' < c) - { - return intErr(s); - } - } - - return _elm_lang$core$Result$Ok(parseInt(s, 10)); -} - -function intErr(s) -{ - return _elm_lang$core$Result$Err("could not convert string '" + s + "' to an Int"); -} - - -function toFloat(s) -{ - // check if it is a hex, octal, or binary number - if (s.length === 0 || /[\sxbo]/.test(s)) - { - return floatErr(s); - } - var n = +s; - // faster isNaN check - return n === n ? _elm_lang$core$Result$Ok(n) : floatErr(s); -} - -function floatErr(s) -{ - return _elm_lang$core$Result$Err("could not convert string '" + s + "' to a Float"); -} - - -function toList(str) -{ - return _elm_lang$core$Native_List.fromArray(str.split('').map(_elm_lang$core$Native_Utils.chr)); -} -function fromList(chars) -{ - return _elm_lang$core$Native_List.toArray(chars).join(''); -} - -return { - isEmpty: isEmpty, - cons: F2(cons), - uncons: uncons, - append: F2(append), - concat: concat, - length: length, - map: F2(map), - filter: F2(filter), - reverse: reverse, - foldl: F3(foldl), - foldr: F3(foldr), - - split: F2(split), - join: F2(join), - repeat: F2(repeat), - - slice: F3(slice), - left: F2(left), - right: F2(right), - dropLeft: F2(dropLeft), - dropRight: F2(dropRight), - - pad: F3(pad), - padLeft: F3(padLeft), - padRight: F3(padRight), - - trim: trim, - trimLeft: trimLeft, - trimRight: trimRight, - - words: words, - lines: lines, - - toUpper: toUpper, - toLower: toLower, - - any: F2(any), - all: F2(all), - - contains: F2(contains), - startsWith: F2(startsWith), - endsWith: F2(endsWith), - indexes: F2(indexes), - - toInt: toInt, - toFloat: toFloat, - toList: toList, - fromList: fromList -}; - -}(); - -//import Native.Utils // - -var _elm_lang$core$Native_Char = function() { - -return { - fromCode: function(c) { return _elm_lang$core$Native_Utils.chr(String.fromCharCode(c)); }, - toCode: function(c) { return c.charCodeAt(0); }, - toUpper: function(c) { return _elm_lang$core$Native_Utils.chr(c.toUpperCase()); }, - toLower: function(c) { return _elm_lang$core$Native_Utils.chr(c.toLowerCase()); }, - toLocaleUpper: function(c) { return _elm_lang$core$Native_Utils.chr(c.toLocaleUpperCase()); }, - toLocaleLower: function(c) { return _elm_lang$core$Native_Utils.chr(c.toLocaleLowerCase()); } -}; - -}(); -var _elm_lang$core$Char$fromCode = _elm_lang$core$Native_Char.fromCode; -var _elm_lang$core$Char$toCode = _elm_lang$core$Native_Char.toCode; -var _elm_lang$core$Char$toLocaleLower = _elm_lang$core$Native_Char.toLocaleLower; -var _elm_lang$core$Char$toLocaleUpper = _elm_lang$core$Native_Char.toLocaleUpper; -var _elm_lang$core$Char$toLower = _elm_lang$core$Native_Char.toLower; -var _elm_lang$core$Char$toUpper = _elm_lang$core$Native_Char.toUpper; -var _elm_lang$core$Char$isBetween = F3( - function (low, high, $char) { - var code = _elm_lang$core$Char$toCode($char); - return (_elm_lang$core$Native_Utils.cmp( - code, - _elm_lang$core$Char$toCode(low)) > -1) && (_elm_lang$core$Native_Utils.cmp( - code, - _elm_lang$core$Char$toCode(high)) < 1); - }); -var _elm_lang$core$Char$isUpper = A2( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('A'), - _elm_lang$core$Native_Utils.chr('Z')); -var _elm_lang$core$Char$isLower = A2( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('a'), - _elm_lang$core$Native_Utils.chr('z')); -var _elm_lang$core$Char$isDigit = A2( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('0'), - _elm_lang$core$Native_Utils.chr('9')); -var _elm_lang$core$Char$isOctDigit = A2( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('0'), - _elm_lang$core$Native_Utils.chr('7')); -var _elm_lang$core$Char$isHexDigit = function ($char) { - return _elm_lang$core$Char$isDigit($char) || (A3( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('a'), - _elm_lang$core$Native_Utils.chr('f'), - $char) || A3( - _elm_lang$core$Char$isBetween, - _elm_lang$core$Native_Utils.chr('A'), - _elm_lang$core$Native_Utils.chr('F'), - $char)); -}; - -var _elm_lang$core$String$fromList = _elm_lang$core$Native_String.fromList; -var _elm_lang$core$String$toList = _elm_lang$core$Native_String.toList; -var _elm_lang$core$String$toFloat = _elm_lang$core$Native_String.toFloat; -var _elm_lang$core$String$toInt = _elm_lang$core$Native_String.toInt; -var _elm_lang$core$String$indices = _elm_lang$core$Native_String.indexes; -var _elm_lang$core$String$indexes = _elm_lang$core$Native_String.indexes; -var _elm_lang$core$String$endsWith = _elm_lang$core$Native_String.endsWith; -var _elm_lang$core$String$startsWith = _elm_lang$core$Native_String.startsWith; -var _elm_lang$core$String$contains = _elm_lang$core$Native_String.contains; -var _elm_lang$core$String$all = _elm_lang$core$Native_String.all; -var _elm_lang$core$String$any = _elm_lang$core$Native_String.any; -var _elm_lang$core$String$toLower = _elm_lang$core$Native_String.toLower; -var _elm_lang$core$String$toUpper = _elm_lang$core$Native_String.toUpper; -var _elm_lang$core$String$lines = _elm_lang$core$Native_String.lines; -var _elm_lang$core$String$words = _elm_lang$core$Native_String.words; -var _elm_lang$core$String$trimRight = _elm_lang$core$Native_String.trimRight; -var _elm_lang$core$String$trimLeft = _elm_lang$core$Native_String.trimLeft; -var _elm_lang$core$String$trim = _elm_lang$core$Native_String.trim; -var _elm_lang$core$String$padRight = _elm_lang$core$Native_String.padRight; -var _elm_lang$core$String$padLeft = _elm_lang$core$Native_String.padLeft; -var _elm_lang$core$String$pad = _elm_lang$core$Native_String.pad; -var _elm_lang$core$String$dropRight = _elm_lang$core$Native_String.dropRight; -var _elm_lang$core$String$dropLeft = _elm_lang$core$Native_String.dropLeft; -var _elm_lang$core$String$right = _elm_lang$core$Native_String.right; -var _elm_lang$core$String$left = _elm_lang$core$Native_String.left; -var _elm_lang$core$String$slice = _elm_lang$core$Native_String.slice; -var _elm_lang$core$String$repeat = _elm_lang$core$Native_String.repeat; -var _elm_lang$core$String$join = _elm_lang$core$Native_String.join; -var _elm_lang$core$String$split = _elm_lang$core$Native_String.split; -var _elm_lang$core$String$foldr = _elm_lang$core$Native_String.foldr; -var _elm_lang$core$String$foldl = _elm_lang$core$Native_String.foldl; -var _elm_lang$core$String$reverse = _elm_lang$core$Native_String.reverse; -var _elm_lang$core$String$filter = _elm_lang$core$Native_String.filter; -var _elm_lang$core$String$map = _elm_lang$core$Native_String.map; -var _elm_lang$core$String$length = _elm_lang$core$Native_String.length; -var _elm_lang$core$String$concat = _elm_lang$core$Native_String.concat; -var _elm_lang$core$String$append = _elm_lang$core$Native_String.append; -var _elm_lang$core$String$uncons = _elm_lang$core$Native_String.uncons; -var _elm_lang$core$String$cons = _elm_lang$core$Native_String.cons; -var _elm_lang$core$String$fromChar = function ($char) { - return A2(_elm_lang$core$String$cons, $char, ''); -}; -var _elm_lang$core$String$isEmpty = _elm_lang$core$Native_String.isEmpty; - -var _elm_lang$core$Tuple$mapSecond = F2( - function (func, _p0) { - var _p1 = _p0; - return { - ctor: '_Tuple2', - _0: _p1._0, - _1: func(_p1._1) - }; - }); -var _elm_lang$core$Tuple$mapFirst = F2( - function (func, _p2) { - var _p3 = _p2; - return { - ctor: '_Tuple2', - _0: func(_p3._0), - _1: _p3._1 - }; - }); -var _elm_lang$core$Tuple$second = function (_p4) { - var _p5 = _p4; - return _p5._1; -}; -var _elm_lang$core$Tuple$first = function (_p6) { - var _p7 = _p6; - return _p7._0; -}; - -//import // - -var _elm_lang$core$Native_Platform = function() { - - -// PROGRAMS - -function program(impl) -{ - return function(flagDecoder) - { - return function(object, moduleName) - { - object['worker'] = function worker(flags) - { - if (typeof flags !== 'undefined') - { - throw new Error( - 'The `' + moduleName + '` module does not need flags.\n' - + 'Call ' + moduleName + '.worker() with no arguments and you should be all set!' - ); - } - - return initialize( - impl.init, - impl.update, - impl.subscriptions, - renderer - ); - }; - }; - }; -} - -function programWithFlags(impl) -{ - return function(flagDecoder) - { - return function(object, moduleName) - { - object['worker'] = function worker(flags) - { - if (typeof flagDecoder === 'undefined') - { - throw new Error( - 'Are you trying to sneak a Never value into Elm? Trickster!\n' - + 'It looks like ' + moduleName + '.main is defined with `programWithFlags` but has type `Program Never`.\n' - + 'Use `program` instead if you do not want flags.' - ); - } - - var result = A2(_elm_lang$core$Native_Json.run, flagDecoder, flags); - if (result.ctor === 'Err') - { - throw new Error( - moduleName + '.worker(...) was called with an unexpected argument.\n' - + 'I tried to convert it to an Elm value, but ran into this problem:\n\n' - + result._0 - ); - } - - return initialize( - impl.init(result._0), - impl.update, - impl.subscriptions, - renderer - ); - }; - }; - }; -} - -function renderer(enqueue, _) -{ - return function(_) {}; -} - - -// HTML TO PROGRAM - -function htmlToProgram(vnode) -{ - var emptyBag = batch(_elm_lang$core$Native_List.Nil); - var noChange = _elm_lang$core$Native_Utils.Tuple2( - _elm_lang$core$Native_Utils.Tuple0, - emptyBag - ); - - return _elm_lang$virtual_dom$VirtualDom$program({ - init: noChange, - view: function(model) { return main; }, - update: F2(function(msg, model) { return noChange; }), - subscriptions: function (model) { return emptyBag; } - }); -} - - -// INITIALIZE A PROGRAM - -function initialize(init, update, subscriptions, renderer) -{ - // ambient state - var managers = {}; - var updateView; - - // init and update state in main process - var initApp = _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) { - var model = init._0; - updateView = renderer(enqueue, model); - var cmds = init._1; - var subs = subscriptions(model); - dispatchEffects(managers, cmds, subs); - callback(_elm_lang$core$Native_Scheduler.succeed(model)); - }); - - function onMessage(msg, model) - { - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) { - var results = A2(update, msg, model); - model = results._0; - updateView(model); - var cmds = results._1; - var subs = subscriptions(model); - dispatchEffects(managers, cmds, subs); - callback(_elm_lang$core$Native_Scheduler.succeed(model)); - }); - } - - var mainProcess = spawnLoop(initApp, onMessage); - - function enqueue(msg) - { - _elm_lang$core$Native_Scheduler.rawSend(mainProcess, msg); - } - - var ports = setupEffects(managers, enqueue); - - return ports ? { ports: ports } : {}; -} - - -// EFFECT MANAGERS - -var effectManagers = {}; - -function setupEffects(managers, callback) -{ - var ports; - - // setup all necessary effect managers - for (var key in effectManagers) - { - var manager = effectManagers[key]; - - if (manager.isForeign) - { - ports = ports || {}; - ports[key] = manager.tag === 'cmd' - ? setupOutgoingPort(key) - : setupIncomingPort(key, callback); - } - - managers[key] = makeManager(manager, callback); - } - - return ports; -} - -function makeManager(info, callback) -{ - var router = { - main: callback, - self: undefined - }; - - var tag = info.tag; - var onEffects = info.onEffects; - var onSelfMsg = info.onSelfMsg; - - function onMessage(msg, state) - { - if (msg.ctor === 'self') - { - return A3(onSelfMsg, router, msg._0, state); - } - - var fx = msg._0; - switch (tag) - { - case 'cmd': - return A3(onEffects, router, fx.cmds, state); - - case 'sub': - return A3(onEffects, router, fx.subs, state); - - case 'fx': - return A4(onEffects, router, fx.cmds, fx.subs, state); - } - } - - var process = spawnLoop(info.init, onMessage); - router.self = process; - return process; -} - -function sendToApp(router, msg) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - router.main(msg); - callback(_elm_lang$core$Native_Scheduler.succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - -function sendToSelf(router, msg) -{ - return A2(_elm_lang$core$Native_Scheduler.send, router.self, { - ctor: 'self', - _0: msg - }); -} - - -// HELPER for STATEFUL LOOPS - -function spawnLoop(init, onMessage) -{ - var andThen = _elm_lang$core$Native_Scheduler.andThen; - - function loop(state) - { - var handleMsg = _elm_lang$core$Native_Scheduler.receive(function(msg) { - return onMessage(msg, state); - }); - return A2(andThen, loop, handleMsg); - } - - var task = A2(andThen, loop, init); - - return _elm_lang$core$Native_Scheduler.rawSpawn(task); -} - - -// BAGS - -function leaf(home) -{ - return function(value) - { - return { - type: 'leaf', - home: home, - value: value - }; - }; -} - -function batch(list) -{ - return { - type: 'node', - branches: list - }; -} - -function map(tagger, bag) -{ - return { - type: 'map', - tagger: tagger, - tree: bag - } -} - - -// PIPE BAGS INTO EFFECT MANAGERS - -function dispatchEffects(managers, cmdBag, subBag) -{ - var effectsDict = {}; - gatherEffects(true, cmdBag, effectsDict, null); - gatherEffects(false, subBag, effectsDict, null); - - for (var home in managers) - { - var fx = home in effectsDict - ? effectsDict[home] - : { - cmds: _elm_lang$core$Native_List.Nil, - subs: _elm_lang$core$Native_List.Nil - }; - - _elm_lang$core$Native_Scheduler.rawSend(managers[home], { ctor: 'fx', _0: fx }); - } -} - -function gatherEffects(isCmd, bag, effectsDict, taggers) -{ - switch (bag.type) - { - case 'leaf': - var home = bag.home; - var effect = toEffect(isCmd, home, taggers, bag.value); - effectsDict[home] = insert(isCmd, effect, effectsDict[home]); - return; - - case 'node': - var list = bag.branches; - while (list.ctor !== '[]') - { - gatherEffects(isCmd, list._0, effectsDict, taggers); - list = list._1; - } - return; - - case 'map': - gatherEffects(isCmd, bag.tree, effectsDict, { - tagger: bag.tagger, - rest: taggers - }); - return; - } -} - -function toEffect(isCmd, home, taggers, value) -{ - function applyTaggers(x) - { - var temp = taggers; - while (temp) - { - x = temp.tagger(x); - temp = temp.rest; - } - return x; - } - - var map = isCmd - ? effectManagers[home].cmdMap - : effectManagers[home].subMap; - - return A2(map, applyTaggers, value) -} - -function insert(isCmd, newEffect, effects) -{ - effects = effects || { - cmds: _elm_lang$core$Native_List.Nil, - subs: _elm_lang$core$Native_List.Nil - }; - if (isCmd) - { - effects.cmds = _elm_lang$core$Native_List.Cons(newEffect, effects.cmds); - return effects; - } - effects.subs = _elm_lang$core$Native_List.Cons(newEffect, effects.subs); - return effects; -} - - -// PORTS - -function checkPortName(name) -{ - if (name in effectManagers) - { - throw new Error('There can only be one port named `' + name + '`, but your program has multiple.'); - } -} - - -// OUTGOING PORTS - -function outgoingPort(name, converter) -{ - checkPortName(name); - effectManagers[name] = { - tag: 'cmd', - cmdMap: outgoingPortMap, - converter: converter, - isForeign: true - }; - return leaf(name); -} - -var outgoingPortMap = F2(function cmdMap(tagger, value) { - return value; -}); - -function setupOutgoingPort(name) -{ - var subs = []; - var converter = effectManagers[name].converter; - - // CREATE MANAGER - - var init = _elm_lang$core$Native_Scheduler.succeed(null); - - function onEffects(router, cmdList, state) - { - while (cmdList.ctor !== '[]') - { - // grab a separate reference to subs in case unsubscribe is called - var currentSubs = subs; - var value = converter(cmdList._0); - for (var i = 0; i < currentSubs.length; i++) - { - currentSubs[i](value); - } - cmdList = cmdList._1; - } - return init; - } - - effectManagers[name].init = init; - effectManagers[name].onEffects = F3(onEffects); - - // PUBLIC API - - function subscribe(callback) - { - subs.push(callback); - } - - function unsubscribe(callback) - { - // copy subs into a new array in case unsubscribe is called within a - // subscribed callback - subs = subs.slice(); - var index = subs.indexOf(callback); - if (index >= 0) - { - subs.splice(index, 1); - } - } - - return { - subscribe: subscribe, - unsubscribe: unsubscribe - }; -} - - -// INCOMING PORTS - -function incomingPort(name, converter) -{ - checkPortName(name); - effectManagers[name] = { - tag: 'sub', - subMap: incomingPortMap, - converter: converter, - isForeign: true - }; - return leaf(name); -} - -var incomingPortMap = F2(function subMap(tagger, finalTagger) -{ - return function(value) - { - return tagger(finalTagger(value)); - }; -}); - -function setupIncomingPort(name, callback) -{ - var sentBeforeInit = []; - var subs = _elm_lang$core$Native_List.Nil; - var converter = effectManagers[name].converter; - var currentOnEffects = preInitOnEffects; - var currentSend = preInitSend; - - // CREATE MANAGER - - var init = _elm_lang$core$Native_Scheduler.succeed(null); - - function preInitOnEffects(router, subList, state) - { - var postInitResult = postInitOnEffects(router, subList, state); - - for(var i = 0; i < sentBeforeInit.length; i++) - { - postInitSend(sentBeforeInit[i]); - } - - sentBeforeInit = null; // to release objects held in queue - currentSend = postInitSend; - currentOnEffects = postInitOnEffects; - return postInitResult; - } - - function postInitOnEffects(router, subList, state) - { - subs = subList; - return init; - } - - function onEffects(router, subList, state) - { - return currentOnEffects(router, subList, state); - } - - effectManagers[name].init = init; - effectManagers[name].onEffects = F3(onEffects); - - // PUBLIC API - - function preInitSend(value) - { - sentBeforeInit.push(value); - } - - function postInitSend(value) - { - var temp = subs; - while (temp.ctor !== '[]') - { - callback(temp._0(value)); - temp = temp._1; - } - } - - function send(incomingValue) - { - var result = A2(_elm_lang$core$Json_Decode$decodeValue, converter, incomingValue); - if (result.ctor === 'Err') - { - throw new Error('Trying to send an unexpected type of value through port `' + name + '`:\n' + result._0); - } - - currentSend(result._0); - } - - return { send: send }; -} - -return { - // routers - sendToApp: F2(sendToApp), - sendToSelf: F2(sendToSelf), - - // global setup - effectManagers: effectManagers, - outgoingPort: outgoingPort, - incomingPort: incomingPort, - - htmlToProgram: htmlToProgram, - program: program, - programWithFlags: programWithFlags, - initialize: initialize, - - // effect bags - leaf: leaf, - batch: batch, - map: F2(map) -}; - -}(); - -//import Native.Utils // - -var _elm_lang$core$Native_Scheduler = function() { - -var MAX_STEPS = 10000; - - -// TASKS - -function succeed(value) -{ - return { - ctor: '_Task_succeed', - value: value - }; -} - -function fail(error) -{ - return { - ctor: '_Task_fail', - value: error - }; -} - -function nativeBinding(callback) -{ - return { - ctor: '_Task_nativeBinding', - callback: callback, - cancel: null - }; -} - -function andThen(callback, task) -{ - return { - ctor: '_Task_andThen', - callback: callback, - task: task - }; -} - -function onError(callback, task) -{ - return { - ctor: '_Task_onError', - callback: callback, - task: task - }; -} - -function receive(callback) -{ - return { - ctor: '_Task_receive', - callback: callback - }; -} - - -// PROCESSES - -function rawSpawn(task) -{ - var process = { - ctor: '_Process', - id: _elm_lang$core$Native_Utils.guid(), - root: task, - stack: null, - mailbox: [] - }; - - enqueue(process); - - return process; -} - -function spawn(task) -{ - return nativeBinding(function(callback) { - var process = rawSpawn(task); - callback(succeed(process)); - }); -} - -function rawSend(process, msg) -{ - process.mailbox.push(msg); - enqueue(process); -} - -function send(process, msg) -{ - return nativeBinding(function(callback) { - rawSend(process, msg); - callback(succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - -function kill(process) -{ - return nativeBinding(function(callback) { - var root = process.root; - if (root.ctor === '_Task_nativeBinding' && root.cancel) - { - root.cancel(); - } - - process.root = null; - - callback(succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - -function sleep(time) -{ - return nativeBinding(function(callback) { - var id = setTimeout(function() { - callback(succeed(_elm_lang$core$Native_Utils.Tuple0)); - }, time); - - return function() { clearTimeout(id); }; - }); -} - - -// STEP PROCESSES - -function step(numSteps, process) -{ - while (numSteps < MAX_STEPS) - { - var ctor = process.root.ctor; - - if (ctor === '_Task_succeed') - { - while (process.stack && process.stack.ctor === '_Task_onError') - { - process.stack = process.stack.rest; - } - if (process.stack === null) - { - break; - } - process.root = process.stack.callback(process.root.value); - process.stack = process.stack.rest; - ++numSteps; - continue; - } - - if (ctor === '_Task_fail') - { - while (process.stack && process.stack.ctor === '_Task_andThen') - { - process.stack = process.stack.rest; - } - if (process.stack === null) - { - break; - } - process.root = process.stack.callback(process.root.value); - process.stack = process.stack.rest; - ++numSteps; - continue; - } - - if (ctor === '_Task_andThen') - { - process.stack = { - ctor: '_Task_andThen', - callback: process.root.callback, - rest: process.stack - }; - process.root = process.root.task; - ++numSteps; - continue; - } - - if (ctor === '_Task_onError') - { - process.stack = { - ctor: '_Task_onError', - callback: process.root.callback, - rest: process.stack - }; - process.root = process.root.task; - ++numSteps; - continue; - } - - if (ctor === '_Task_nativeBinding') - { - process.root.cancel = process.root.callback(function(newRoot) { - process.root = newRoot; - enqueue(process); - }); - - break; - } - - if (ctor === '_Task_receive') - { - var mailbox = process.mailbox; - if (mailbox.length === 0) - { - break; - } - - process.root = process.root.callback(mailbox.shift()); - ++numSteps; - continue; - } - - throw new Error(ctor); - } - - if (numSteps < MAX_STEPS) - { - return numSteps + 1; - } - enqueue(process); - - return numSteps; -} - - -// WORK QUEUE - -var working = false; -var workQueue = []; - -function enqueue(process) -{ - workQueue.push(process); - - if (!working) - { - setTimeout(work, 0); - working = true; - } -} - -function work() -{ - var numSteps = 0; - var process; - while (numSteps < MAX_STEPS && (process = workQueue.shift())) - { - if (process.root) - { - numSteps = step(numSteps, process); - } - } - if (!process) - { - working = false; - return; - } - setTimeout(work, 0); -} - - -return { - succeed: succeed, - fail: fail, - nativeBinding: nativeBinding, - andThen: F2(andThen), - onError: F2(onError), - receive: receive, - - spawn: spawn, - kill: kill, - sleep: sleep, - send: F2(send), - - rawSpawn: rawSpawn, - rawSend: rawSend -}; - -}(); -var _elm_lang$core$Platform_Cmd$batch = _elm_lang$core$Native_Platform.batch; -var _elm_lang$core$Platform_Cmd$none = _elm_lang$core$Platform_Cmd$batch( - {ctor: '[]'}); -var _elm_lang$core$Platform_Cmd_ops = _elm_lang$core$Platform_Cmd_ops || {}; -_elm_lang$core$Platform_Cmd_ops['!'] = F2( - function (model, commands) { - return { - ctor: '_Tuple2', - _0: model, - _1: _elm_lang$core$Platform_Cmd$batch(commands) - }; - }); -var _elm_lang$core$Platform_Cmd$map = _elm_lang$core$Native_Platform.map; -var _elm_lang$core$Platform_Cmd$Cmd = {ctor: 'Cmd'}; - -var _elm_lang$core$Platform_Sub$batch = _elm_lang$core$Native_Platform.batch; -var _elm_lang$core$Platform_Sub$none = _elm_lang$core$Platform_Sub$batch( - {ctor: '[]'}); -var _elm_lang$core$Platform_Sub$map = _elm_lang$core$Native_Platform.map; -var _elm_lang$core$Platform_Sub$Sub = {ctor: 'Sub'}; - -var _elm_lang$core$Platform$hack = _elm_lang$core$Native_Scheduler.succeed; -var _elm_lang$core$Platform$sendToSelf = _elm_lang$core$Native_Platform.sendToSelf; -var _elm_lang$core$Platform$sendToApp = _elm_lang$core$Native_Platform.sendToApp; -var _elm_lang$core$Platform$programWithFlags = _elm_lang$core$Native_Platform.programWithFlags; -var _elm_lang$core$Platform$program = _elm_lang$core$Native_Platform.program; -var _elm_lang$core$Platform$Program = {ctor: 'Program'}; -var _elm_lang$core$Platform$Task = {ctor: 'Task'}; -var _elm_lang$core$Platform$ProcessId = {ctor: 'ProcessId'}; -var _elm_lang$core$Platform$Router = {ctor: 'Router'}; - -var _Gizra$circuit_bid$Currency_Model$UAH = {ctor: 'UAH'}; -var _Gizra$circuit_bid$Currency_Model$USD = {ctor: 'USD'}; -var _Gizra$circuit_bid$Currency_Model$ILS = {ctor: 'ILS'}; -var _Gizra$circuit_bid$Currency_Model$HRN = {ctor: 'HRN'}; -var _Gizra$circuit_bid$Currency_Model$HKD = {ctor: 'HKD'}; -var _Gizra$circuit_bid$Currency_Model$GBP = {ctor: 'GBP'}; -var _Gizra$circuit_bid$Currency_Model$EUR = {ctor: 'EUR'}; -var _Gizra$circuit_bid$Currency_Model$CHF = {ctor: 'CHF'}; - -var _cuducos$elm_format_number$FormatNumber_Locales$Locale = F3( - function (a, b, c) { - return {decimals: a, thousandSeparator: b, decimalSeparator: c}; - }); -var _cuducos$elm_format_number$FormatNumber_Locales$frenchLocale = A3(_cuducos$elm_format_number$FormatNumber_Locales$Locale, 3, ' ', ','); -var _cuducos$elm_format_number$FormatNumber_Locales$spanishLocale = A3(_cuducos$elm_format_number$FormatNumber_Locales$Locale, 3, '.', ','); -var _cuducos$elm_format_number$FormatNumber_Locales$usLocale = A3(_cuducos$elm_format_number$FormatNumber_Locales$Locale, 2, ',', '.'); - -var _myrho$elm_round$Round$funNum = F3( - function (fun, s, fl) { - return A2( - _elm_lang$core$Maybe$withDefault, - 0 / 0, - _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toFloat( - A2(fun, s, fl)))); - }); -var _myrho$elm_round$Round$increaseNum = function (_p0) { - var _p1 = _p0; - var _p4 = _p1._1; - var _p3 = _p1._0; - if (_elm_lang$core$Native_Utils.eq( - _p3, - _elm_lang$core$Native_Utils.chr('9'))) { - var _p2 = _elm_lang$core$String$uncons(_p4); - if (_p2.ctor === 'Nothing') { - return '01'; - } else { - return A2( - _elm_lang$core$String$cons, - _elm_lang$core$Native_Utils.chr('0'), - _myrho$elm_round$Round$increaseNum(_p2._0)); - } - } else { - var c = _elm_lang$core$Char$toCode(_p3); - return ((_elm_lang$core$Native_Utils.cmp(c, 48) > -1) && (_elm_lang$core$Native_Utils.cmp(c, 57) < 0)) ? A2( - _elm_lang$core$String$cons, - _elm_lang$core$Char$fromCode(c + 1), - _p4) : '0'; - } -}; -var _myrho$elm_round$Round$addSign = F2( - function (signed, str) { - var isNotZero = A2( - _elm_lang$core$List$any, - function (c) { - return (!_elm_lang$core$Native_Utils.eq( - c, - _elm_lang$core$Native_Utils.chr('0'))) && (!_elm_lang$core$Native_Utils.eq( - c, - _elm_lang$core$Native_Utils.chr('.'))); - }, - _elm_lang$core$String$toList(str)); - return A2( - _elm_lang$core$Basics_ops['++'], - (signed && isNotZero) ? '-' : '', - str); - }); -var _myrho$elm_round$Round$splitComma = function (str) { - var _p5 = A2(_elm_lang$core$String$split, '.', str); - if (_p5.ctor === '::') { - if (_p5._1.ctor === '::') { - return {ctor: '_Tuple2', _0: _p5._0, _1: _p5._1._0}; - } else { - return {ctor: '_Tuple2', _0: _p5._0, _1: '0'}; - } - } else { - return {ctor: '_Tuple2', _0: '0', _1: '0'}; - } -}; -var _myrho$elm_round$Round$toDecimal = function (fl) { - var _p6 = A2( - _elm_lang$core$String$split, - 'e', - _elm_lang$core$Basics$toString( - _elm_lang$core$Basics$abs(fl))); - if (_p6.ctor === '::') { - if (_p6._1.ctor === '::') { - var _p10 = _p6._1._0; - var _p7 = _myrho$elm_round$Round$splitComma(_p6._0); - var before = _p7._0; - var after = _p7._1; - var total = A2(_elm_lang$core$Basics_ops['++'], before, after); - var e = A2( - _elm_lang$core$Maybe$withDefault, - 0, - _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt( - A2(_elm_lang$core$String$startsWith, '+', _p10) ? A2(_elm_lang$core$String$dropLeft, 1, _p10) : _p10))); - var zeroed = (_elm_lang$core$Native_Utils.cmp(e, 0) < 0) ? A2( - _elm_lang$core$Maybe$withDefault, - '0', - A2( - _elm_lang$core$Maybe$map, - function (_p8) { - var _p9 = _p8; - return A2( - _elm_lang$core$Basics_ops['++'], - _p9._0, - A2(_elm_lang$core$Basics_ops['++'], '.', _p9._1)); - }, - A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Tuple$mapFirst(_elm_lang$core$String$fromChar), - _elm_lang$core$String$uncons( - A2( - _elm_lang$core$Basics_ops['++'], - A2( - _elm_lang$core$String$repeat, - _elm_lang$core$Basics$abs(e), - '0'), - total))))) : A3( - _elm_lang$core$String$padRight, - e + 1, - _elm_lang$core$Native_Utils.chr('0'), - total); - return A2( - _elm_lang$core$Basics_ops['++'], - (_elm_lang$core$Native_Utils.cmp(fl, 0) < 0) ? '-' : '', - zeroed); - } else { - return A2( - _elm_lang$core$Basics_ops['++'], - (_elm_lang$core$Native_Utils.cmp(fl, 0) < 0) ? '-' : '', - _p6._0); - } - } else { - return ''; - } -}; -var _myrho$elm_round$Round$roundFun = F3( - function (functor, s, fl) { - if (_elm_lang$core$Basics$isInfinite(fl) || _elm_lang$core$Basics$isNaN(fl)) { - return _elm_lang$core$Basics$toString(fl); - } else { - var signed = _elm_lang$core$Native_Utils.cmp(fl, 0) < 0; - var _p11 = _myrho$elm_round$Round$splitComma( - _myrho$elm_round$Round$toDecimal( - _elm_lang$core$Basics$abs(fl))); - var before = _p11._0; - var after = _p11._1; - var r = _elm_lang$core$String$length(before) + s; - var roundDigitIndex = A2(_elm_lang$core$Basics$max, 1, r); - var normalized = A2( - _elm_lang$core$Basics_ops['++'], - A2( - _elm_lang$core$String$repeat, - _elm_lang$core$Basics$negate(r) + 1, - '0'), - A3( - _elm_lang$core$String$padRight, - r, - _elm_lang$core$Native_Utils.chr('0'), - A2(_elm_lang$core$Basics_ops['++'], before, after))); - var totalLen = _elm_lang$core$String$length(normalized); - var increase = A2( - functor, - signed, - A3(_elm_lang$core$String$slice, roundDigitIndex, totalLen, normalized)); - var remains = A3(_elm_lang$core$String$slice, 0, roundDigitIndex, normalized); - var num = increase ? _elm_lang$core$String$reverse( - A2( - _elm_lang$core$Maybe$withDefault, - '1', - A2( - _elm_lang$core$Maybe$map, - _myrho$elm_round$Round$increaseNum, - _elm_lang$core$String$uncons( - _elm_lang$core$String$reverse(remains))))) : remains; - var numLen = _elm_lang$core$String$length(num); - var numZeroed = _elm_lang$core$Native_Utils.eq(num, '0') ? num : ((_elm_lang$core$Native_Utils.cmp(s, 0) < 1) ? A2( - F2( - function (x, y) { - return A2(_elm_lang$core$Basics_ops['++'], x, y); - }), - num, - A2( - _elm_lang$core$String$repeat, - _elm_lang$core$Basics$abs(s), - '0')) : ((_elm_lang$core$Native_Utils.cmp( - s, - _elm_lang$core$String$length(after)) < 0) ? A2( - _elm_lang$core$Basics_ops['++'], - A3(_elm_lang$core$String$slice, 0, numLen - s, num), - A2( - _elm_lang$core$Basics_ops['++'], - '.', - A3(_elm_lang$core$String$slice, numLen - s, numLen, num))) : A2( - F2( - function (x, y) { - return A2(_elm_lang$core$Basics_ops['++'], x, y); - }), - A2(_elm_lang$core$Basics_ops['++'], before, '.'), - A3( - _elm_lang$core$String$padRight, - s, - _elm_lang$core$Native_Utils.chr('0'), - after)))); - return A2(_myrho$elm_round$Round$addSign, signed, numZeroed); - } - }); -var _myrho$elm_round$Round$round = _myrho$elm_round$Round$roundFun( - F2( - function (signed, str) { - var _p12 = _elm_lang$core$String$uncons(str); - if (_p12.ctor === 'Nothing') { - return false; - } else { - if (_p12._0._0.valueOf() === '5') { - if (_p12._0._1 === '') { - return !signed; - } else { - return true; - } - } else { - return function ($int) { - return ((_elm_lang$core$Native_Utils.cmp($int, 53) > 0) && signed) || ((_elm_lang$core$Native_Utils.cmp($int, 53) > -1) && (!signed)); - }( - _elm_lang$core$Char$toCode(_p12._0._0)); - } - } - })); -var _myrho$elm_round$Round$roundNum = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$round); -var _myrho$elm_round$Round$ceiling = _myrho$elm_round$Round$roundFun( - F2( - function (signed, str) { - var _p13 = _elm_lang$core$String$uncons(str); - if (_p13.ctor === 'Nothing') { - return false; - } else { - if ((_p13._0.ctor === '_Tuple2') && (_p13._0._0.valueOf() === '0')) { - return A2( - F2( - function (x, y) { - return x && y; - }), - !signed, - A2( - _elm_lang$core$List$any, - F2( - function (x, y) { - return !_elm_lang$core$Native_Utils.eq(x, y); - })( - _elm_lang$core$Native_Utils.chr('0')), - _elm_lang$core$String$toList(_p13._0._1))); - } else { - return !signed; - } - } - })); -var _myrho$elm_round$Round$ceilingNum = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$ceiling); -var _myrho$elm_round$Round$floor = _myrho$elm_round$Round$roundFun( - F2( - function (signed, str) { - var _p14 = _elm_lang$core$String$uncons(str); - if (_p14.ctor === 'Nothing') { - return false; - } else { - if ((_p14._0.ctor === '_Tuple2') && (_p14._0._0.valueOf() === '0')) { - return A2( - F2( - function (x, y) { - return x && y; - }), - signed, - A2( - _elm_lang$core$List$any, - F2( - function (x, y) { - return !_elm_lang$core$Native_Utils.eq(x, y); - })( - _elm_lang$core$Native_Utils.chr('0')), - _elm_lang$core$String$toList(_p14._0._1))); - } else { - return signed; - } - } - })); -var _myrho$elm_round$Round$floorCom = F2( - function (s, fl) { - return (_elm_lang$core$Native_Utils.cmp(fl, 0) < 0) ? A2(_myrho$elm_round$Round$ceiling, s, fl) : A2(_myrho$elm_round$Round$floor, s, fl); - }); -var _myrho$elm_round$Round$floorNumCom = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$floorCom); -var _myrho$elm_round$Round$ceilingCom = F2( - function (s, fl) { - return (_elm_lang$core$Native_Utils.cmp(fl, 0) < 0) ? A2(_myrho$elm_round$Round$floor, s, fl) : A2(_myrho$elm_round$Round$ceiling, s, fl); - }); -var _myrho$elm_round$Round$ceilingNumCom = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$ceilingCom); -var _myrho$elm_round$Round$floorNum = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$floor); -var _myrho$elm_round$Round$roundCom = _myrho$elm_round$Round$roundFun( - F2( - function (_p15, $int) { - return A2( - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) < 1; - }), - 53, - _elm_lang$core$Char$toCode( - A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Native_Utils.chr('0'), - A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Tuple$first, - _elm_lang$core$String$uncons($int))))); - })); -var _myrho$elm_round$Round$roundNumCom = _myrho$elm_round$Round$funNum(_myrho$elm_round$Round$roundCom); -var _myrho$elm_round$Round$truncate = function (n) { - return (_elm_lang$core$Native_Utils.cmp(n, 0) < 0) ? _elm_lang$core$Basics$ceiling(n) : _elm_lang$core$Basics$floor(n); -}; - -var _cuducos$elm_format_number$Helpers$stringfy = F2( - function (locale, formatted) { - var decimals = function () { - var _p0 = formatted.decimals; - if (_p0.ctor === 'Just') { - return A2(_elm_lang$core$Basics_ops['++'], locale.decimalSeparator, _p0._0); - } else { - return ''; - } - }(); - return _elm_lang$core$String$concat( - { - ctor: '::', - _0: A2(_elm_lang$core$Maybe$withDefault, '', formatted.prefix), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$String$join, locale.thousandSeparator, formatted.integers), - _1: { - ctor: '::', - _0: decimals, - _1: {ctor: '[]'} - } - } - }); - }); -var _cuducos$elm_format_number$Helpers$splitThousands = function (integers) { - var reversedSplitThousands = function (value) { - return (_elm_lang$core$Native_Utils.cmp( - _elm_lang$core$String$length(value), - 3) > 0) ? A2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - A2(_elm_lang$core$String$right, 3, value), - reversedSplitThousands( - A2(_elm_lang$core$String$dropRight, 3, value))) : { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - }; - }; - return _elm_lang$core$List$reverse( - reversedSplitThousands(integers)); -}; -var _cuducos$elm_format_number$Helpers$addPrefix = function (formatted) { - var onlyZeros = A2( - _elm_lang$core$String$all, - function ($char) { - return _elm_lang$core$Native_Utils.eq( - $char, - _elm_lang$core$Native_Utils.chr('0')); - }, - _elm_lang$core$String$concat( - A2( - _elm_lang$core$List$append, - formatted.integers, - _elm_lang$core$List$singleton( - A2(_elm_lang$core$Maybe$withDefault, '', formatted.decimals))))); - var isPositive = _elm_lang$core$Native_Utils.cmp(formatted.original, 0) > -1; - var prefix = (isPositive || onlyZeros) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$Maybe$Just('−'); - return _elm_lang$core$Native_Utils.update( - formatted, - {prefix: prefix}); -}; -var _cuducos$elm_format_number$Helpers$FormattedNumber = F4( - function (a, b, c, d) { - return {original: a, integers: b, decimals: c, prefix: d}; - }); -var _cuducos$elm_format_number$Helpers$parse = F2( - function (decimalDigits, original) { - var parts = A2( - _elm_lang$core$String$split, - '.', - A2(_myrho$elm_round$Round$round, decimalDigits, original)); - var integers = _cuducos$elm_format_number$Helpers$splitThousands( - A2( - _elm_lang$core$String$filter, - _elm_lang$core$Char$isDigit, - A2( - _elm_lang$core$Maybe$withDefault, - '0', - _elm_lang$core$List$head(parts)))); - var decimals = _elm_lang$core$List$head( - A2(_elm_lang$core$List$drop, 1, parts)); - return _cuducos$elm_format_number$Helpers$addPrefix( - A4(_cuducos$elm_format_number$Helpers$FormattedNumber, original, integers, decimals, _elm_lang$core$Maybe$Nothing)); - }); - -var _cuducos$elm_format_number$FormatNumber$format = F2( - function (locale, num) { - return A2( - _cuducos$elm_format_number$Helpers$stringfy, - locale, - A2(_cuducos$elm_format_number$Helpers$parse, locale.decimals, num)); - }); - -//import Native.List // - -var _elm_lang$core$Native_Array = function() { - -// A RRB-Tree has two distinct data types. -// Leaf -> "height" is always 0 -// "table" is an array of elements -// Node -> "height" is always greater than 0 -// "table" is an array of child nodes -// "lengths" is an array of accumulated lengths of the child nodes - -// M is the maximal table size. 32 seems fast. E is the allowed increase -// of search steps when concatting to find an index. Lower values will -// decrease balancing, but will increase search steps. -var M = 32; -var E = 2; - -// An empty array. -var empty = { - ctor: '_Array', - height: 0, - table: [] -}; - - -function get(i, array) -{ - if (i < 0 || i >= length(array)) - { - throw new Error( - 'Index ' + i + ' is out of range. Check the length of ' + - 'your array first or use getMaybe or getWithDefault.'); - } - return unsafeGet(i, array); -} - - -function unsafeGet(i, array) -{ - for (var x = array.height; x > 0; x--) - { - var slot = i >> (x * 5); - while (array.lengths[slot] <= i) - { - slot++; - } - if (slot > 0) - { - i -= array.lengths[slot - 1]; - } - array = array.table[slot]; - } - return array.table[i]; -} - - -// Sets the value at the index i. Only the nodes leading to i will get -// copied and updated. -function set(i, item, array) -{ - if (i < 0 || length(array) <= i) - { - return array; - } - return unsafeSet(i, item, array); -} - - -function unsafeSet(i, item, array) -{ - array = nodeCopy(array); - - if (array.height === 0) - { - array.table[i] = item; - } - else - { - var slot = getSlot(i, array); - if (slot > 0) - { - i -= array.lengths[slot - 1]; - } - array.table[slot] = unsafeSet(i, item, array.table[slot]); - } - return array; -} - - -function initialize(len, f) -{ - if (len <= 0) - { - return empty; - } - var h = Math.floor( Math.log(len) / Math.log(M) ); - return initialize_(f, h, 0, len); -} - -function initialize_(f, h, from, to) -{ - if (h === 0) - { - var table = new Array((to - from) % (M + 1)); - for (var i = 0; i < table.length; i++) - { - table[i] = f(from + i); - } - return { - ctor: '_Array', - height: 0, - table: table - }; - } - - var step = Math.pow(M, h); - var table = new Array(Math.ceil((to - from) / step)); - var lengths = new Array(table.length); - for (var i = 0; i < table.length; i++) - { - table[i] = initialize_(f, h - 1, from + (i * step), Math.min(from + ((i + 1) * step), to)); - lengths[i] = length(table[i]) + (i > 0 ? lengths[i-1] : 0); - } - return { - ctor: '_Array', - height: h, - table: table, - lengths: lengths - }; -} - -function fromList(list) -{ - if (list.ctor === '[]') - { - return empty; - } - - // Allocate M sized blocks (table) and write list elements to it. - var table = new Array(M); - var nodes = []; - var i = 0; - - while (list.ctor !== '[]') - { - table[i] = list._0; - list = list._1; - i++; - - // table is full, so we can push a leaf containing it into the - // next node. - if (i === M) - { - var leaf = { - ctor: '_Array', - height: 0, - table: table - }; - fromListPush(leaf, nodes); - table = new Array(M); - i = 0; - } - } - - // Maybe there is something left on the table. - if (i > 0) - { - var leaf = { - ctor: '_Array', - height: 0, - table: table.splice(0, i) - }; - fromListPush(leaf, nodes); - } - - // Go through all of the nodes and eventually push them into higher nodes. - for (var h = 0; h < nodes.length - 1; h++) - { - if (nodes[h].table.length > 0) - { - fromListPush(nodes[h], nodes); - } - } - - var head = nodes[nodes.length - 1]; - if (head.height > 0 && head.table.length === 1) - { - return head.table[0]; - } - else - { - return head; - } -} - -// Push a node into a higher node as a child. -function fromListPush(toPush, nodes) -{ - var h = toPush.height; - - // Maybe the node on this height does not exist. - if (nodes.length === h) - { - var node = { - ctor: '_Array', - height: h + 1, - table: [], - lengths: [] - }; - nodes.push(node); - } - - nodes[h].table.push(toPush); - var len = length(toPush); - if (nodes[h].lengths.length > 0) - { - len += nodes[h].lengths[nodes[h].lengths.length - 1]; - } - nodes[h].lengths.push(len); - - if (nodes[h].table.length === M) - { - fromListPush(nodes[h], nodes); - nodes[h] = { - ctor: '_Array', - height: h + 1, - table: [], - lengths: [] - }; - } -} - -// Pushes an item via push_ to the bottom right of a tree. -function push(item, a) -{ - var pushed = push_(item, a); - if (pushed !== null) - { - return pushed; - } - - var newTree = create(item, a.height); - return siblise(a, newTree); -} - -// Recursively tries to push an item to the bottom-right most -// tree possible. If there is no space left for the item, -// null will be returned. -function push_(item, a) -{ - // Handle resursion stop at leaf level. - if (a.height === 0) - { - if (a.table.length < M) - { - var newA = { - ctor: '_Array', - height: 0, - table: a.table.slice() - }; - newA.table.push(item); - return newA; - } - else - { - return null; - } - } - - // Recursively push - var pushed = push_(item, botRight(a)); - - // There was space in the bottom right tree, so the slot will - // be updated. - if (pushed !== null) - { - var newA = nodeCopy(a); - newA.table[newA.table.length - 1] = pushed; - newA.lengths[newA.lengths.length - 1]++; - return newA; - } - - // When there was no space left, check if there is space left - // for a new slot with a tree which contains only the item - // at the bottom. - if (a.table.length < M) - { - var newSlot = create(item, a.height - 1); - var newA = nodeCopy(a); - newA.table.push(newSlot); - newA.lengths.push(newA.lengths[newA.lengths.length - 1] + length(newSlot)); - return newA; - } - else - { - return null; - } -} - -// Converts an array into a list of elements. -function toList(a) -{ - return toList_(_elm_lang$core$Native_List.Nil, a); -} - -function toList_(list, a) -{ - for (var i = a.table.length - 1; i >= 0; i--) - { - list = - a.height === 0 - ? _elm_lang$core$Native_List.Cons(a.table[i], list) - : toList_(list, a.table[i]); - } - return list; -} - -// Maps a function over the elements of an array. -function map(f, a) -{ - var newA = { - ctor: '_Array', - height: a.height, - table: new Array(a.table.length) - }; - if (a.height > 0) - { - newA.lengths = a.lengths; - } - for (var i = 0; i < a.table.length; i++) - { - newA.table[i] = - a.height === 0 - ? f(a.table[i]) - : map(f, a.table[i]); - } - return newA; -} - -// Maps a function over the elements with their index as first argument. -function indexedMap(f, a) -{ - return indexedMap_(f, a, 0); -} - -function indexedMap_(f, a, from) -{ - var newA = { - ctor: '_Array', - height: a.height, - table: new Array(a.table.length) - }; - if (a.height > 0) - { - newA.lengths = a.lengths; - } - for (var i = 0; i < a.table.length; i++) - { - newA.table[i] = - a.height === 0 - ? A2(f, from + i, a.table[i]) - : indexedMap_(f, a.table[i], i == 0 ? from : from + a.lengths[i - 1]); - } - return newA; -} - -function foldl(f, b, a) -{ - if (a.height === 0) - { - for (var i = 0; i < a.table.length; i++) - { - b = A2(f, a.table[i], b); - } - } - else - { - for (var i = 0; i < a.table.length; i++) - { - b = foldl(f, b, a.table[i]); - } - } - return b; -} - -function foldr(f, b, a) -{ - if (a.height === 0) - { - for (var i = a.table.length; i--; ) - { - b = A2(f, a.table[i], b); - } - } - else - { - for (var i = a.table.length; i--; ) - { - b = foldr(f, b, a.table[i]); - } - } - return b; -} - -// TODO: currently, it slices the right, then the left. This can be -// optimized. -function slice(from, to, a) -{ - if (from < 0) - { - from += length(a); - } - if (to < 0) - { - to += length(a); - } - return sliceLeft(from, sliceRight(to, a)); -} - -function sliceRight(to, a) -{ - if (to === length(a)) - { - return a; - } - - // Handle leaf level. - if (a.height === 0) - { - var newA = { ctor:'_Array', height:0 }; - newA.table = a.table.slice(0, to); - return newA; - } - - // Slice the right recursively. - var right = getSlot(to, a); - var sliced = sliceRight(to - (right > 0 ? a.lengths[right - 1] : 0), a.table[right]); - - // Maybe the a node is not even needed, as sliced contains the whole slice. - if (right === 0) - { - return sliced; - } - - // Create new node. - var newA = { - ctor: '_Array', - height: a.height, - table: a.table.slice(0, right), - lengths: a.lengths.slice(0, right) - }; - if (sliced.table.length > 0) - { - newA.table[right] = sliced; - newA.lengths[right] = length(sliced) + (right > 0 ? newA.lengths[right - 1] : 0); - } - return newA; -} - -function sliceLeft(from, a) -{ - if (from === 0) - { - return a; - } - - // Handle leaf level. - if (a.height === 0) - { - var newA = { ctor:'_Array', height:0 }; - newA.table = a.table.slice(from, a.table.length + 1); - return newA; - } - - // Slice the left recursively. - var left = getSlot(from, a); - var sliced = sliceLeft(from - (left > 0 ? a.lengths[left - 1] : 0), a.table[left]); - - // Maybe the a node is not even needed, as sliced contains the whole slice. - if (left === a.table.length - 1) - { - return sliced; - } - - // Create new node. - var newA = { - ctor: '_Array', - height: a.height, - table: a.table.slice(left, a.table.length + 1), - lengths: new Array(a.table.length - left) - }; - newA.table[0] = sliced; - var len = 0; - for (var i = 0; i < newA.table.length; i++) - { - len += length(newA.table[i]); - newA.lengths[i] = len; - } - - return newA; -} - -// Appends two trees. -function append(a,b) -{ - if (a.table.length === 0) - { - return b; - } - if (b.table.length === 0) - { - return a; - } - - var c = append_(a, b); - - // Check if both nodes can be crunshed together. - if (c[0].table.length + c[1].table.length <= M) - { - if (c[0].table.length === 0) - { - return c[1]; - } - if (c[1].table.length === 0) - { - return c[0]; - } - - // Adjust .table and .lengths - c[0].table = c[0].table.concat(c[1].table); - if (c[0].height > 0) - { - var len = length(c[0]); - for (var i = 0; i < c[1].lengths.length; i++) - { - c[1].lengths[i] += len; - } - c[0].lengths = c[0].lengths.concat(c[1].lengths); - } - - return c[0]; - } - - if (c[0].height > 0) - { - var toRemove = calcToRemove(a, b); - if (toRemove > E) - { - c = shuffle(c[0], c[1], toRemove); - } - } - - return siblise(c[0], c[1]); -} - -// Returns an array of two nodes; right and left. One node _may_ be empty. -function append_(a, b) -{ - if (a.height === 0 && b.height === 0) - { - return [a, b]; - } - - if (a.height !== 1 || b.height !== 1) - { - if (a.height === b.height) - { - a = nodeCopy(a); - b = nodeCopy(b); - var appended = append_(botRight(a), botLeft(b)); - - insertRight(a, appended[1]); - insertLeft(b, appended[0]); - } - else if (a.height > b.height) - { - a = nodeCopy(a); - var appended = append_(botRight(a), b); - - insertRight(a, appended[0]); - b = parentise(appended[1], appended[1].height + 1); - } - else - { - b = nodeCopy(b); - var appended = append_(a, botLeft(b)); - - var left = appended[0].table.length === 0 ? 0 : 1; - var right = left === 0 ? 1 : 0; - insertLeft(b, appended[left]); - a = parentise(appended[right], appended[right].height + 1); - } - } - - // Check if balancing is needed and return based on that. - if (a.table.length === 0 || b.table.length === 0) - { - return [a, b]; - } - - var toRemove = calcToRemove(a, b); - if (toRemove <= E) - { - return [a, b]; - } - return shuffle(a, b, toRemove); -} - -// Helperfunctions for append_. Replaces a child node at the side of the parent. -function insertRight(parent, node) -{ - var index = parent.table.length - 1; - parent.table[index] = node; - parent.lengths[index] = length(node); - parent.lengths[index] += index > 0 ? parent.lengths[index - 1] : 0; -} - -function insertLeft(parent, node) -{ - if (node.table.length > 0) - { - parent.table[0] = node; - parent.lengths[0] = length(node); - - var len = length(parent.table[0]); - for (var i = 1; i < parent.lengths.length; i++) - { - len += length(parent.table[i]); - parent.lengths[i] = len; - } - } - else - { - parent.table.shift(); - for (var i = 1; i < parent.lengths.length; i++) - { - parent.lengths[i] = parent.lengths[i] - parent.lengths[0]; - } - parent.lengths.shift(); - } -} - -// Returns the extra search steps for E. Refer to the paper. -function calcToRemove(a, b) -{ - var subLengths = 0; - for (var i = 0; i < a.table.length; i++) - { - subLengths += a.table[i].table.length; - } - for (var i = 0; i < b.table.length; i++) - { - subLengths += b.table[i].table.length; - } - - var toRemove = a.table.length + b.table.length; - return toRemove - (Math.floor((subLengths - 1) / M) + 1); -} - -// get2, set2 and saveSlot are helpers for accessing elements over two arrays. -function get2(a, b, index) -{ - return index < a.length - ? a[index] - : b[index - a.length]; -} - -function set2(a, b, index, value) -{ - if (index < a.length) - { - a[index] = value; - } - else - { - b[index - a.length] = value; - } -} - -function saveSlot(a, b, index, slot) -{ - set2(a.table, b.table, index, slot); - - var l = (index === 0 || index === a.lengths.length) - ? 0 - : get2(a.lengths, a.lengths, index - 1); - - set2(a.lengths, b.lengths, index, l + length(slot)); -} - -// Creates a node or leaf with a given length at their arrays for perfomance. -// Is only used by shuffle. -function createNode(h, length) -{ - if (length < 0) - { - length = 0; - } - var a = { - ctor: '_Array', - height: h, - table: new Array(length) - }; - if (h > 0) - { - a.lengths = new Array(length); - } - return a; -} - -// Returns an array of two balanced nodes. -function shuffle(a, b, toRemove) -{ - var newA = createNode(a.height, Math.min(M, a.table.length + b.table.length - toRemove)); - var newB = createNode(a.height, newA.table.length - (a.table.length + b.table.length - toRemove)); - - // Skip the slots with size M. More precise: copy the slot references - // to the new node - var read = 0; - while (get2(a.table, b.table, read).table.length % M === 0) - { - set2(newA.table, newB.table, read, get2(a.table, b.table, read)); - set2(newA.lengths, newB.lengths, read, get2(a.lengths, b.lengths, read)); - read++; - } - - // Pulling items from left to right, caching in a slot before writing - // it into the new nodes. - var write = read; - var slot = new createNode(a.height - 1, 0); - var from = 0; - - // If the current slot is still containing data, then there will be at - // least one more write, so we do not break this loop yet. - while (read - write - (slot.table.length > 0 ? 1 : 0) < toRemove) - { - // Find out the max possible items for copying. - var source = get2(a.table, b.table, read); - var to = Math.min(M - slot.table.length, source.table.length); - - // Copy and adjust size table. - slot.table = slot.table.concat(source.table.slice(from, to)); - if (slot.height > 0) - { - var len = slot.lengths.length; - for (var i = len; i < len + to - from; i++) - { - slot.lengths[i] = length(slot.table[i]); - slot.lengths[i] += (i > 0 ? slot.lengths[i - 1] : 0); - } - } - - from += to; - - // Only proceed to next slots[i] if the current one was - // fully copied. - if (source.table.length <= to) - { - read++; from = 0; - } - - // Only create a new slot if the current one is filled up. - if (slot.table.length === M) - { - saveSlot(newA, newB, write, slot); - slot = createNode(a.height - 1, 0); - write++; - } - } - - // Cleanup after the loop. Copy the last slot into the new nodes. - if (slot.table.length > 0) - { - saveSlot(newA, newB, write, slot); - write++; - } - - // Shift the untouched slots to the left - while (read < a.table.length + b.table.length ) - { - saveSlot(newA, newB, write, get2(a.table, b.table, read)); - read++; - write++; - } - - return [newA, newB]; -} - -// Navigation functions -function botRight(a) -{ - return a.table[a.table.length - 1]; -} -function botLeft(a) -{ - return a.table[0]; -} - -// Copies a node for updating. Note that you should not use this if -// only updating only one of "table" or "lengths" for performance reasons. -function nodeCopy(a) -{ - var newA = { - ctor: '_Array', - height: a.height, - table: a.table.slice() - }; - if (a.height > 0) - { - newA.lengths = a.lengths.slice(); - } - return newA; -} - -// Returns how many items are in the tree. -function length(array) -{ - if (array.height === 0) - { - return array.table.length; - } - else - { - return array.lengths[array.lengths.length - 1]; - } -} - -// Calculates in which slot of "table" the item probably is, then -// find the exact slot via forward searching in "lengths". Returns the index. -function getSlot(i, a) -{ - var slot = i >> (5 * a.height); - while (a.lengths[slot] <= i) - { - slot++; - } - return slot; -} - -// Recursively creates a tree with a given height containing -// only the given item. -function create(item, h) -{ - if (h === 0) - { - return { - ctor: '_Array', - height: 0, - table: [item] - }; - } - return { - ctor: '_Array', - height: h, - table: [create(item, h - 1)], - lengths: [1] - }; -} - -// Recursively creates a tree that contains the given tree. -function parentise(tree, h) -{ - if (h === tree.height) - { - return tree; - } - - return { - ctor: '_Array', - height: h, - table: [parentise(tree, h - 1)], - lengths: [length(tree)] - }; -} - -// Emphasizes blood brotherhood beneath two trees. -function siblise(a, b) -{ - return { - ctor: '_Array', - height: a.height + 1, - table: [a, b], - lengths: [length(a), length(a) + length(b)] - }; -} - -function toJSArray(a) -{ - var jsArray = new Array(length(a)); - toJSArray_(jsArray, 0, a); - return jsArray; -} - -function toJSArray_(jsArray, i, a) -{ - for (var t = 0; t < a.table.length; t++) - { - if (a.height === 0) - { - jsArray[i + t] = a.table[t]; - } - else - { - var inc = t === 0 ? 0 : a.lengths[t - 1]; - toJSArray_(jsArray, i + inc, a.table[t]); - } - } -} - -function fromJSArray(jsArray) -{ - if (jsArray.length === 0) - { - return empty; - } - var h = Math.floor(Math.log(jsArray.length) / Math.log(M)); - return fromJSArray_(jsArray, h, 0, jsArray.length); -} - -function fromJSArray_(jsArray, h, from, to) -{ - if (h === 0) - { - return { - ctor: '_Array', - height: 0, - table: jsArray.slice(from, to) - }; - } - - var step = Math.pow(M, h); - var table = new Array(Math.ceil((to - from) / step)); - var lengths = new Array(table.length); - for (var i = 0; i < table.length; i++) - { - table[i] = fromJSArray_(jsArray, h - 1, from + (i * step), Math.min(from + ((i + 1) * step), to)); - lengths[i] = length(table[i]) + (i > 0 ? lengths[i - 1] : 0); - } - return { - ctor: '_Array', - height: h, - table: table, - lengths: lengths - }; -} - -return { - empty: empty, - fromList: fromList, - toList: toList, - initialize: F2(initialize), - append: F2(append), - push: F2(push), - slice: F3(slice), - get: F2(get), - set: F3(set), - map: F2(map), - indexedMap: F2(indexedMap), - foldl: F3(foldl), - foldr: F3(foldr), - length: length, - - toJSArray: toJSArray, - fromJSArray: fromJSArray -}; - -}(); -var _elm_lang$core$Array$append = _elm_lang$core$Native_Array.append; -var _elm_lang$core$Array$length = _elm_lang$core$Native_Array.length; -var _elm_lang$core$Array$isEmpty = function (array) { - return _elm_lang$core$Native_Utils.eq( - _elm_lang$core$Array$length(array), - 0); -}; -var _elm_lang$core$Array$slice = _elm_lang$core$Native_Array.slice; -var _elm_lang$core$Array$set = _elm_lang$core$Native_Array.set; -var _elm_lang$core$Array$get = F2( - function (i, array) { - return ((_elm_lang$core$Native_Utils.cmp(0, i) < 1) && (_elm_lang$core$Native_Utils.cmp( - i, - _elm_lang$core$Native_Array.length(array)) < 0)) ? _elm_lang$core$Maybe$Just( - A2(_elm_lang$core$Native_Array.get, i, array)) : _elm_lang$core$Maybe$Nothing; - }); -var _elm_lang$core$Array$push = _elm_lang$core$Native_Array.push; -var _elm_lang$core$Array$empty = _elm_lang$core$Native_Array.empty; -var _elm_lang$core$Array$filter = F2( - function (isOkay, arr) { - var update = F2( - function (x, xs) { - return isOkay(x) ? A2(_elm_lang$core$Native_Array.push, x, xs) : xs; - }); - return A3(_elm_lang$core$Native_Array.foldl, update, _elm_lang$core$Native_Array.empty, arr); - }); -var _elm_lang$core$Array$foldr = _elm_lang$core$Native_Array.foldr; -var _elm_lang$core$Array$foldl = _elm_lang$core$Native_Array.foldl; -var _elm_lang$core$Array$indexedMap = _elm_lang$core$Native_Array.indexedMap; -var _elm_lang$core$Array$map = _elm_lang$core$Native_Array.map; -var _elm_lang$core$Array$toIndexedList = function (array) { - return A3( - _elm_lang$core$List$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2( - _elm_lang$core$List$range, - 0, - _elm_lang$core$Native_Array.length(array) - 1), - _elm_lang$core$Native_Array.toList(array)); -}; -var _elm_lang$core$Array$toList = _elm_lang$core$Native_Array.toList; -var _elm_lang$core$Array$fromList = _elm_lang$core$Native_Array.fromList; -var _elm_lang$core$Array$initialize = _elm_lang$core$Native_Array.initialize; -var _elm_lang$core$Array$repeat = F2( - function (n, e) { - return A2( - _elm_lang$core$Array$initialize, - n, - _elm_lang$core$Basics$always(e)); - }); -var _elm_lang$core$Array$Array = {ctor: 'Array'}; - -var _elm_lang$core$Dict$foldr = F3( - function (f, acc, t) { - foldr: - while (true) { - var _p0 = t; - if (_p0.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v1 = f, - _v2 = A3( - f, - _p0._1, - _p0._2, - A3(_elm_lang$core$Dict$foldr, f, acc, _p0._4)), - _v3 = _p0._3; - f = _v1; - acc = _v2; - t = _v3; - continue foldr; - } - } - }); -var _elm_lang$core$Dict$keys = function (dict) { - return A3( - _elm_lang$core$Dict$foldr, - F3( - function (key, value, keyList) { - return {ctor: '::', _0: key, _1: keyList}; - }), - {ctor: '[]'}, - dict); -}; -var _elm_lang$core$Dict$values = function (dict) { - return A3( - _elm_lang$core$Dict$foldr, - F3( - function (key, value, valueList) { - return {ctor: '::', _0: value, _1: valueList}; - }), - {ctor: '[]'}, - dict); -}; -var _elm_lang$core$Dict$toList = function (dict) { - return A3( - _elm_lang$core$Dict$foldr, - F3( - function (key, value, list) { - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: key, _1: value}, - _1: list - }; - }), - {ctor: '[]'}, - dict); -}; -var _elm_lang$core$Dict$foldl = F3( - function (f, acc, dict) { - foldl: - while (true) { - var _p1 = dict; - if (_p1.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v5 = f, - _v6 = A3( - f, - _p1._1, - _p1._2, - A3(_elm_lang$core$Dict$foldl, f, acc, _p1._3)), - _v7 = _p1._4; - f = _v5; - acc = _v6; - dict = _v7; - continue foldl; - } - } - }); -var _elm_lang$core$Dict$merge = F6( - function (leftStep, bothStep, rightStep, leftDict, rightDict, initialResult) { - var stepState = F3( - function (rKey, rValue, _p2) { - stepState: - while (true) { - var _p3 = _p2; - var _p9 = _p3._1; - var _p8 = _p3._0; - var _p4 = _p8; - if (_p4.ctor === '[]') { - return { - ctor: '_Tuple2', - _0: _p8, - _1: A3(rightStep, rKey, rValue, _p9) - }; - } else { - var _p7 = _p4._1; - var _p6 = _p4._0._1; - var _p5 = _p4._0._0; - if (_elm_lang$core$Native_Utils.cmp(_p5, rKey) < 0) { - var _v10 = rKey, - _v11 = rValue, - _v12 = { - ctor: '_Tuple2', - _0: _p7, - _1: A3(leftStep, _p5, _p6, _p9) - }; - rKey = _v10; - rValue = _v11; - _p2 = _v12; - continue stepState; - } else { - if (_elm_lang$core$Native_Utils.cmp(_p5, rKey) > 0) { - return { - ctor: '_Tuple2', - _0: _p8, - _1: A3(rightStep, rKey, rValue, _p9) - }; - } else { - return { - ctor: '_Tuple2', - _0: _p7, - _1: A4(bothStep, _p5, _p6, rValue, _p9) - }; - } - } - } - } - }); - var _p10 = A3( - _elm_lang$core$Dict$foldl, - stepState, - { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$toList(leftDict), - _1: initialResult - }, - rightDict); - var leftovers = _p10._0; - var intermediateResult = _p10._1; - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p11, result) { - var _p12 = _p11; - return A3(leftStep, _p12._0, _p12._1, result); - }), - intermediateResult, - leftovers); - }); -var _elm_lang$core$Dict$reportRemBug = F4( - function (msg, c, lgot, rgot) { - return _elm_lang$core$Native_Debug.crash( - _elm_lang$core$String$concat( - { - ctor: '::', - _0: 'Internal red-black tree invariant violated, expected ', - _1: { - ctor: '::', - _0: msg, - _1: { - ctor: '::', - _0: ' and got ', - _1: { - ctor: '::', - _0: _elm_lang$core$Basics$toString(c), - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: lgot, - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: rgot, - _1: { - ctor: '::', - _0: '\nPlease report this bug to ', - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - })); - }); -var _elm_lang$core$Dict$isBBlack = function (dict) { - var _p13 = dict; - _v14_2: - do { - if (_p13.ctor === 'RBNode_elm_builtin') { - if (_p13._0.ctor === 'BBlack') { - return true; - } else { - break _v14_2; - } - } else { - if (_p13._0.ctor === 'LBBlack') { - return true; - } else { - break _v14_2; - } - } - } while(false); - return false; -}; -var _elm_lang$core$Dict$sizeHelp = F2( - function (n, dict) { - sizeHelp: - while (true) { - var _p14 = dict; - if (_p14.ctor === 'RBEmpty_elm_builtin') { - return n; - } else { - var _v16 = A2(_elm_lang$core$Dict$sizeHelp, n + 1, _p14._4), - _v17 = _p14._3; - n = _v16; - dict = _v17; - continue sizeHelp; - } - } - }); -var _elm_lang$core$Dict$size = function (dict) { - return A2(_elm_lang$core$Dict$sizeHelp, 0, dict); -}; -var _elm_lang$core$Dict$get = F2( - function (targetKey, dict) { - get: - while (true) { - var _p15 = dict; - if (_p15.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p16 = A2(_elm_lang$core$Basics$compare, targetKey, _p15._1); - switch (_p16.ctor) { - case 'LT': - var _v20 = targetKey, - _v21 = _p15._3; - targetKey = _v20; - dict = _v21; - continue get; - case 'EQ': - return _elm_lang$core$Maybe$Just(_p15._2); - default: - var _v22 = targetKey, - _v23 = _p15._4; - targetKey = _v22; - dict = _v23; - continue get; - } - } - } - }); -var _elm_lang$core$Dict$member = F2( - function (key, dict) { - var _p17 = A2(_elm_lang$core$Dict$get, key, dict); - if (_p17.ctor === 'Just') { - return true; - } else { - return false; - } - }); -var _elm_lang$core$Dict$maxWithDefault = F3( - function (k, v, r) { - maxWithDefault: - while (true) { - var _p18 = r; - if (_p18.ctor === 'RBEmpty_elm_builtin') { - return {ctor: '_Tuple2', _0: k, _1: v}; - } else { - var _v26 = _p18._1, - _v27 = _p18._2, - _v28 = _p18._4; - k = _v26; - v = _v27; - r = _v28; - continue maxWithDefault; - } - } - }); -var _elm_lang$core$Dict$NBlack = {ctor: 'NBlack'}; -var _elm_lang$core$Dict$BBlack = {ctor: 'BBlack'}; -var _elm_lang$core$Dict$Black = {ctor: 'Black'}; -var _elm_lang$core$Dict$blackish = function (t) { - var _p19 = t; - if (_p19.ctor === 'RBNode_elm_builtin') { - var _p20 = _p19._0; - return _elm_lang$core$Native_Utils.eq(_p20, _elm_lang$core$Dict$Black) || _elm_lang$core$Native_Utils.eq(_p20, _elm_lang$core$Dict$BBlack); - } else { - return true; - } -}; -var _elm_lang$core$Dict$Red = {ctor: 'Red'}; -var _elm_lang$core$Dict$moreBlack = function (color) { - var _p21 = color; - switch (_p21.ctor) { - case 'Black': - return _elm_lang$core$Dict$BBlack; - case 'Red': - return _elm_lang$core$Dict$Black; - case 'NBlack': - return _elm_lang$core$Dict$Red; - default: - return _elm_lang$core$Native_Debug.crash('Can\'t make a double black node more black!'); - } -}; -var _elm_lang$core$Dict$lessBlack = function (color) { - var _p22 = color; - switch (_p22.ctor) { - case 'BBlack': - return _elm_lang$core$Dict$Black; - case 'Black': - return _elm_lang$core$Dict$Red; - case 'Red': - return _elm_lang$core$Dict$NBlack; - default: - return _elm_lang$core$Native_Debug.crash('Can\'t make a negative black node less black!'); - } -}; -var _elm_lang$core$Dict$LBBlack = {ctor: 'LBBlack'}; -var _elm_lang$core$Dict$LBlack = {ctor: 'LBlack'}; -var _elm_lang$core$Dict$RBEmpty_elm_builtin = function (a) { - return {ctor: 'RBEmpty_elm_builtin', _0: a}; -}; -var _elm_lang$core$Dict$empty = _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBlack); -var _elm_lang$core$Dict$isEmpty = function (dict) { - return _elm_lang$core$Native_Utils.eq(dict, _elm_lang$core$Dict$empty); -}; -var _elm_lang$core$Dict$RBNode_elm_builtin = F5( - function (a, b, c, d, e) { - return {ctor: 'RBNode_elm_builtin', _0: a, _1: b, _2: c, _3: d, _4: e}; - }); -var _elm_lang$core$Dict$ensureBlackRoot = function (dict) { - var _p23 = dict; - if ((_p23.ctor === 'RBNode_elm_builtin') && (_p23._0.ctor === 'Red')) { - return A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p23._1, _p23._2, _p23._3, _p23._4); - } else { - return dict; - } -}; -var _elm_lang$core$Dict$lessBlackTree = function (dict) { - var _p24 = dict; - if (_p24.ctor === 'RBNode_elm_builtin') { - return A5( - _elm_lang$core$Dict$RBNode_elm_builtin, - _elm_lang$core$Dict$lessBlack(_p24._0), - _p24._1, - _p24._2, - _p24._3, - _p24._4); - } else { - return _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBlack); - } -}; -var _elm_lang$core$Dict$balancedTree = function (col) { - return function (xk) { - return function (xv) { - return function (yk) { - return function (yv) { - return function (zk) { - return function (zv) { - return function (a) { - return function (b) { - return function (c) { - return function (d) { - return A5( - _elm_lang$core$Dict$RBNode_elm_builtin, - _elm_lang$core$Dict$lessBlack(col), - yk, - yv, - A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, xk, xv, a, b), - A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, zk, zv, c, d)); - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _elm_lang$core$Dict$blacken = function (t) { - var _p25 = t; - if (_p25.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBlack); - } else { - return A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p25._1, _p25._2, _p25._3, _p25._4); - } -}; -var _elm_lang$core$Dict$redden = function (t) { - var _p26 = t; - if (_p26.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Native_Debug.crash('can\'t make a Leaf red'); - } else { - return A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Red, _p26._1, _p26._2, _p26._3, _p26._4); - } -}; -var _elm_lang$core$Dict$balanceHelp = function (tree) { - var _p27 = tree; - _v36_6: - do { - _v36_5: - do { - _v36_4: - do { - _v36_3: - do { - _v36_2: - do { - _v36_1: - do { - _v36_0: - do { - if (_p27.ctor === 'RBNode_elm_builtin') { - if (_p27._3.ctor === 'RBNode_elm_builtin') { - if (_p27._4.ctor === 'RBNode_elm_builtin') { - switch (_p27._3._0.ctor) { - case 'Red': - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - } - } - case 'NBlack': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - if (((((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) && (_p27._4._4.ctor === 'RBNode_elm_builtin')) && (_p27._4._4._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - } - } - default: - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - break _v36_6; - } - } - } - case 'NBlack': - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - if (((((_p27._0.ctor === 'BBlack') && (_p27._3._3.ctor === 'RBNode_elm_builtin')) && (_p27._3._3._0.ctor === 'Black')) && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - } - case 'NBlack': - if (_p27._0.ctor === 'BBlack') { - if ((((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Black')) && (_p27._4._4.ctor === 'RBNode_elm_builtin')) && (_p27._4._4._0.ctor === 'Black')) { - break _v36_4; - } else { - if ((((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Black')) && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - } else { - break _v36_6; - } - default: - if (((((_p27._0.ctor === 'BBlack') && (_p27._3._3.ctor === 'RBNode_elm_builtin')) && (_p27._3._3._0.ctor === 'Black')) && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - default: - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) && (_p27._4._4.ctor === 'RBNode_elm_builtin')) && (_p27._4._4._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } - } else { - switch (_p27._3._0.ctor) { - case 'Red': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((((_p27._0.ctor === 'BBlack') && (_p27._3._3.ctor === 'RBNode_elm_builtin')) && (_p27._3._3._0.ctor === 'Black')) && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } - } else { - if (_p27._4.ctor === 'RBNode_elm_builtin') { - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) && (_p27._4._4.ctor === 'RBNode_elm_builtin')) && (_p27._4._4._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } else { - break _v36_6; - } - } - } else { - break _v36_6; - } - } while(false); - return _elm_lang$core$Dict$balancedTree(_p27._0)(_p27._3._3._1)(_p27._3._3._2)(_p27._3._1)(_p27._3._2)(_p27._1)(_p27._2)(_p27._3._3._3)(_p27._3._3._4)(_p27._3._4)(_p27._4); - } while(false); - return _elm_lang$core$Dict$balancedTree(_p27._0)(_p27._3._1)(_p27._3._2)(_p27._3._4._1)(_p27._3._4._2)(_p27._1)(_p27._2)(_p27._3._3)(_p27._3._4._3)(_p27._3._4._4)(_p27._4); - } while(false); - return _elm_lang$core$Dict$balancedTree(_p27._0)(_p27._1)(_p27._2)(_p27._4._3._1)(_p27._4._3._2)(_p27._4._1)(_p27._4._2)(_p27._3)(_p27._4._3._3)(_p27._4._3._4)(_p27._4._4); - } while(false); - return _elm_lang$core$Dict$balancedTree(_p27._0)(_p27._1)(_p27._2)(_p27._4._1)(_p27._4._2)(_p27._4._4._1)(_p27._4._4._2)(_p27._3)(_p27._4._3)(_p27._4._4._3)(_p27._4._4._4); - } while(false); - return A5( - _elm_lang$core$Dict$RBNode_elm_builtin, - _elm_lang$core$Dict$Black, - _p27._4._3._1, - _p27._4._3._2, - A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p27._1, _p27._2, _p27._3, _p27._4._3._3), - A5( - _elm_lang$core$Dict$balance, - _elm_lang$core$Dict$Black, - _p27._4._1, - _p27._4._2, - _p27._4._3._4, - _elm_lang$core$Dict$redden(_p27._4._4))); - } while(false); - return A5( - _elm_lang$core$Dict$RBNode_elm_builtin, - _elm_lang$core$Dict$Black, - _p27._3._4._1, - _p27._3._4._2, - A5( - _elm_lang$core$Dict$balance, - _elm_lang$core$Dict$Black, - _p27._3._1, - _p27._3._2, - _elm_lang$core$Dict$redden(_p27._3._3), - _p27._3._4._3), - A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p27._1, _p27._2, _p27._3._4._4, _p27._4)); - } while(false); - return tree; -}; -var _elm_lang$core$Dict$balance = F5( - function (c, k, v, l, r) { - var tree = A5(_elm_lang$core$Dict$RBNode_elm_builtin, c, k, v, l, r); - return _elm_lang$core$Dict$blackish(tree) ? _elm_lang$core$Dict$balanceHelp(tree) : tree; - }); -var _elm_lang$core$Dict$bubble = F5( - function (c, k, v, l, r) { - return (_elm_lang$core$Dict$isBBlack(l) || _elm_lang$core$Dict$isBBlack(r)) ? A5( - _elm_lang$core$Dict$balance, - _elm_lang$core$Dict$moreBlack(c), - k, - v, - _elm_lang$core$Dict$lessBlackTree(l), - _elm_lang$core$Dict$lessBlackTree(r)) : A5(_elm_lang$core$Dict$RBNode_elm_builtin, c, k, v, l, r); - }); -var _elm_lang$core$Dict$removeMax = F5( - function (c, k, v, l, r) { - var _p28 = r; - if (_p28.ctor === 'RBEmpty_elm_builtin') { - return A3(_elm_lang$core$Dict$rem, c, l, r); - } else { - return A5( - _elm_lang$core$Dict$bubble, - c, - k, - v, - l, - A5(_elm_lang$core$Dict$removeMax, _p28._0, _p28._1, _p28._2, _p28._3, _p28._4)); - } - }); -var _elm_lang$core$Dict$rem = F3( - function (color, left, right) { - var _p29 = {ctor: '_Tuple2', _0: left, _1: right}; - if (_p29._0.ctor === 'RBEmpty_elm_builtin') { - if (_p29._1.ctor === 'RBEmpty_elm_builtin') { - var _p30 = color; - switch (_p30.ctor) { - case 'Red': - return _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBlack); - case 'Black': - return _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBBlack); - default: - return _elm_lang$core$Native_Debug.crash('cannot have bblack or nblack nodes at this point'); - } - } else { - var _p33 = _p29._1._0; - var _p32 = _p29._0._0; - var _p31 = {ctor: '_Tuple3', _0: color, _1: _p32, _2: _p33}; - if ((((_p31.ctor === '_Tuple3') && (_p31._0.ctor === 'Black')) && (_p31._1.ctor === 'LBlack')) && (_p31._2.ctor === 'Red')) { - return A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p29._1._1, _p29._1._2, _p29._1._3, _p29._1._4); - } else { - return A4( - _elm_lang$core$Dict$reportRemBug, - 'Black/LBlack/Red', - color, - _elm_lang$core$Basics$toString(_p32), - _elm_lang$core$Basics$toString(_p33)); - } - } - } else { - if (_p29._1.ctor === 'RBEmpty_elm_builtin') { - var _p36 = _p29._1._0; - var _p35 = _p29._0._0; - var _p34 = {ctor: '_Tuple3', _0: color, _1: _p35, _2: _p36}; - if ((((_p34.ctor === '_Tuple3') && (_p34._0.ctor === 'Black')) && (_p34._1.ctor === 'Red')) && (_p34._2.ctor === 'LBlack')) { - return A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Black, _p29._0._1, _p29._0._2, _p29._0._3, _p29._0._4); - } else { - return A4( - _elm_lang$core$Dict$reportRemBug, - 'Black/Red/LBlack', - color, - _elm_lang$core$Basics$toString(_p35), - _elm_lang$core$Basics$toString(_p36)); - } - } else { - var _p40 = _p29._0._2; - var _p39 = _p29._0._4; - var _p38 = _p29._0._1; - var newLeft = A5(_elm_lang$core$Dict$removeMax, _p29._0._0, _p38, _p40, _p29._0._3, _p39); - var _p37 = A3(_elm_lang$core$Dict$maxWithDefault, _p38, _p40, _p39); - var k = _p37._0; - var v = _p37._1; - return A5(_elm_lang$core$Dict$bubble, color, k, v, newLeft, right); - } - } - }); -var _elm_lang$core$Dict$map = F2( - function (f, dict) { - var _p41 = dict; - if (_p41.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Dict$RBEmpty_elm_builtin(_elm_lang$core$Dict$LBlack); - } else { - var _p42 = _p41._1; - return A5( - _elm_lang$core$Dict$RBNode_elm_builtin, - _p41._0, - _p42, - A2(f, _p42, _p41._2), - A2(_elm_lang$core$Dict$map, f, _p41._3), - A2(_elm_lang$core$Dict$map, f, _p41._4)); - } - }); -var _elm_lang$core$Dict$Same = {ctor: 'Same'}; -var _elm_lang$core$Dict$Remove = {ctor: 'Remove'}; -var _elm_lang$core$Dict$Insert = {ctor: 'Insert'}; -var _elm_lang$core$Dict$update = F3( - function (k, alter, dict) { - var up = function (dict) { - var _p43 = dict; - if (_p43.ctor === 'RBEmpty_elm_builtin') { - var _p44 = alter(_elm_lang$core$Maybe$Nothing); - if (_p44.ctor === 'Nothing') { - return {ctor: '_Tuple2', _0: _elm_lang$core$Dict$Same, _1: _elm_lang$core$Dict$empty}; - } else { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Insert, - _1: A5(_elm_lang$core$Dict$RBNode_elm_builtin, _elm_lang$core$Dict$Red, k, _p44._0, _elm_lang$core$Dict$empty, _elm_lang$core$Dict$empty) - }; - } - } else { - var _p55 = _p43._2; - var _p54 = _p43._4; - var _p53 = _p43._3; - var _p52 = _p43._1; - var _p51 = _p43._0; - var _p45 = A2(_elm_lang$core$Basics$compare, k, _p52); - switch (_p45.ctor) { - case 'EQ': - var _p46 = alter( - _elm_lang$core$Maybe$Just(_p55)); - if (_p46.ctor === 'Nothing') { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Remove, - _1: A3(_elm_lang$core$Dict$rem, _p51, _p53, _p54) - }; - } else { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Same, - _1: A5(_elm_lang$core$Dict$RBNode_elm_builtin, _p51, _p52, _p46._0, _p53, _p54) - }; - } - case 'LT': - var _p47 = up(_p53); - var flag = _p47._0; - var newLeft = _p47._1; - var _p48 = flag; - switch (_p48.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Same, - _1: A5(_elm_lang$core$Dict$RBNode_elm_builtin, _p51, _p52, _p55, newLeft, _p54) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Insert, - _1: A5(_elm_lang$core$Dict$balance, _p51, _p52, _p55, newLeft, _p54) - }; - default: - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Remove, - _1: A5(_elm_lang$core$Dict$bubble, _p51, _p52, _p55, newLeft, _p54) - }; - } - default: - var _p49 = up(_p54); - var flag = _p49._0; - var newRight = _p49._1; - var _p50 = flag; - switch (_p50.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Same, - _1: A5(_elm_lang$core$Dict$RBNode_elm_builtin, _p51, _p52, _p55, _p53, newRight) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Insert, - _1: A5(_elm_lang$core$Dict$balance, _p51, _p52, _p55, _p53, newRight) - }; - default: - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Dict$Remove, - _1: A5(_elm_lang$core$Dict$bubble, _p51, _p52, _p55, _p53, newRight) - }; - } - } - } - }; - var _p56 = up(dict); - var flag = _p56._0; - var updatedDict = _p56._1; - var _p57 = flag; - switch (_p57.ctor) { - case 'Same': - return updatedDict; - case 'Insert': - return _elm_lang$core$Dict$ensureBlackRoot(updatedDict); - default: - return _elm_lang$core$Dict$blacken(updatedDict); - } - }); -var _elm_lang$core$Dict$insert = F3( - function (key, value, dict) { - return A3( - _elm_lang$core$Dict$update, - key, - _elm_lang$core$Basics$always( - _elm_lang$core$Maybe$Just(value)), - dict); - }); -var _elm_lang$core$Dict$singleton = F2( - function (key, value) { - return A3(_elm_lang$core$Dict$insert, key, value, _elm_lang$core$Dict$empty); - }); -var _elm_lang$core$Dict$union = F2( - function (t1, t2) { - return A3(_elm_lang$core$Dict$foldl, _elm_lang$core$Dict$insert, t2, t1); - }); -var _elm_lang$core$Dict$filter = F2( - function (predicate, dictionary) { - var add = F3( - function (key, value, dict) { - return A2(predicate, key, value) ? A3(_elm_lang$core$Dict$insert, key, value, dict) : dict; - }); - return A3(_elm_lang$core$Dict$foldl, add, _elm_lang$core$Dict$empty, dictionary); - }); -var _elm_lang$core$Dict$intersect = F2( - function (t1, t2) { - return A2( - _elm_lang$core$Dict$filter, - F2( - function (k, _p58) { - return A2(_elm_lang$core$Dict$member, k, t2); - }), - t1); - }); -var _elm_lang$core$Dict$partition = F2( - function (predicate, dict) { - var add = F3( - function (key, value, _p59) { - var _p60 = _p59; - var _p62 = _p60._1; - var _p61 = _p60._0; - return A2(predicate, key, value) ? { - ctor: '_Tuple2', - _0: A3(_elm_lang$core$Dict$insert, key, value, _p61), - _1: _p62 - } : { - ctor: '_Tuple2', - _0: _p61, - _1: A3(_elm_lang$core$Dict$insert, key, value, _p62) - }; - }); - return A3( - _elm_lang$core$Dict$foldl, - add, - {ctor: '_Tuple2', _0: _elm_lang$core$Dict$empty, _1: _elm_lang$core$Dict$empty}, - dict); - }); -var _elm_lang$core$Dict$fromList = function (assocs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p63, dict) { - var _p64 = _p63; - return A3(_elm_lang$core$Dict$insert, _p64._0, _p64._1, dict); - }), - _elm_lang$core$Dict$empty, - assocs); -}; -var _elm_lang$core$Dict$remove = F2( - function (key, dict) { - return A3( - _elm_lang$core$Dict$update, - key, - _elm_lang$core$Basics$always(_elm_lang$core$Maybe$Nothing), - dict); - }); -var _elm_lang$core$Dict$diff = F2( - function (t1, t2) { - return A3( - _elm_lang$core$Dict$foldl, - F3( - function (k, v, t) { - return A2(_elm_lang$core$Dict$remove, k, t); - }), - t1, - t2); - }); - -//import Maybe, Native.Array, Native.List, Native.Utils, Result // - -var _elm_lang$core$Native_Json = function() { - - -// CORE DECODERS - -function succeed(msg) -{ - return { - ctor: '', - tag: 'succeed', - msg: msg - }; -} - -function fail(msg) -{ - return { - ctor: '', - tag: 'fail', - msg: msg - }; -} - -function decodePrimitive(tag) -{ - return { - ctor: '', - tag: tag - }; -} - -function decodeContainer(tag, decoder) -{ - return { - ctor: '', - tag: tag, - decoder: decoder - }; -} - -function decodeNull(value) -{ - return { - ctor: '', - tag: 'null', - value: value - }; -} - -function decodeField(field, decoder) -{ - return { - ctor: '', - tag: 'field', - field: field, - decoder: decoder - }; -} - -function decodeIndex(index, decoder) -{ - return { - ctor: '', - tag: 'index', - index: index, - decoder: decoder - }; -} - -function decodeKeyValuePairs(decoder) -{ - return { - ctor: '', - tag: 'key-value', - decoder: decoder - }; -} - -function mapMany(f, decoders) -{ - return { - ctor: '', - tag: 'map-many', - func: f, - decoders: decoders - }; -} - -function andThen(callback, decoder) -{ - return { - ctor: '', - tag: 'andThen', - decoder: decoder, - callback: callback - }; -} - -function oneOf(decoders) -{ - return { - ctor: '', - tag: 'oneOf', - decoders: decoders - }; -} - - -// DECODING OBJECTS - -function map1(f, d1) -{ - return mapMany(f, [d1]); -} - -function map2(f, d1, d2) -{ - return mapMany(f, [d1, d2]); -} - -function map3(f, d1, d2, d3) -{ - return mapMany(f, [d1, d2, d3]); -} - -function map4(f, d1, d2, d3, d4) -{ - return mapMany(f, [d1, d2, d3, d4]); -} - -function map5(f, d1, d2, d3, d4, d5) -{ - return mapMany(f, [d1, d2, d3, d4, d5]); -} - -function map6(f, d1, d2, d3, d4, d5, d6) -{ - return mapMany(f, [d1, d2, d3, d4, d5, d6]); -} - -function map7(f, d1, d2, d3, d4, d5, d6, d7) -{ - return mapMany(f, [d1, d2, d3, d4, d5, d6, d7]); -} - -function map8(f, d1, d2, d3, d4, d5, d6, d7, d8) -{ - return mapMany(f, [d1, d2, d3, d4, d5, d6, d7, d8]); -} - - -// DECODE HELPERS - -function ok(value) -{ - return { tag: 'ok', value: value }; -} - -function badPrimitive(type, value) -{ - return { tag: 'primitive', type: type, value: value }; -} - -function badIndex(index, nestedProblems) -{ - return { tag: 'index', index: index, rest: nestedProblems }; -} - -function badField(field, nestedProblems) -{ - return { tag: 'field', field: field, rest: nestedProblems }; -} - -function badIndex(index, nestedProblems) -{ - return { tag: 'index', index: index, rest: nestedProblems }; -} - -function badOneOf(problems) -{ - return { tag: 'oneOf', problems: problems }; -} - -function bad(msg) -{ - return { tag: 'fail', msg: msg }; -} - -function badToString(problem) -{ - var context = '_'; - while (problem) - { - switch (problem.tag) - { - case 'primitive': - return 'Expecting ' + problem.type - + (context === '_' ? '' : ' at ' + context) - + ' but instead got: ' + jsToString(problem.value); - - case 'index': - context += '[' + problem.index + ']'; - problem = problem.rest; - break; - - case 'field': - context += '.' + problem.field; - problem = problem.rest; - break; - - case 'oneOf': - var problems = problem.problems; - for (var i = 0; i < problems.length; i++) - { - problems[i] = badToString(problems[i]); - } - return 'I ran into the following problems' - + (context === '_' ? '' : ' at ' + context) - + ':\n\n' + problems.join('\n'); - - case 'fail': - return 'I ran into a `fail` decoder' - + (context === '_' ? '' : ' at ' + context) - + ': ' + problem.msg; - } - } -} - -function jsToString(value) -{ - return value === undefined - ? 'undefined' - : JSON.stringify(value); -} - - -// DECODE - -function runOnString(decoder, string) -{ - var json; - try - { - json = JSON.parse(string); - } - catch (e) - { - return _elm_lang$core$Result$Err('Given an invalid JSON: ' + e.message); - } - return run(decoder, json); -} - -function run(decoder, value) -{ - var result = runHelp(decoder, value); - return (result.tag === 'ok') - ? _elm_lang$core$Result$Ok(result.value) - : _elm_lang$core$Result$Err(badToString(result)); -} - -function runHelp(decoder, value) -{ - switch (decoder.tag) - { - case 'bool': - return (typeof value === 'boolean') - ? ok(value) - : badPrimitive('a Bool', value); - - case 'int': - if (typeof value !== 'number') { - return badPrimitive('an Int', value); - } - - if (-2147483647 < value && value < 2147483647 && (value | 0) === value) { - return ok(value); - } - - if (isFinite(value) && !(value % 1)) { - return ok(value); - } - - return badPrimitive('an Int', value); - - case 'float': - return (typeof value === 'number') - ? ok(value) - : badPrimitive('a Float', value); - - case 'string': - return (typeof value === 'string') - ? ok(value) - : (value instanceof String) - ? ok(value + '') - : badPrimitive('a String', value); - - case 'null': - return (value === null) - ? ok(decoder.value) - : badPrimitive('null', value); - - case 'value': - return ok(value); - - case 'list': - if (!(value instanceof Array)) - { - return badPrimitive('a List', value); - } - - var list = _elm_lang$core$Native_List.Nil; - for (var i = value.length; i--; ) - { - var result = runHelp(decoder.decoder, value[i]); - if (result.tag !== 'ok') - { - return badIndex(i, result) - } - list = _elm_lang$core$Native_List.Cons(result.value, list); - } - return ok(list); - - case 'array': - if (!(value instanceof Array)) - { - return badPrimitive('an Array', value); - } - - var len = value.length; - var array = new Array(len); - for (var i = len; i--; ) - { - var result = runHelp(decoder.decoder, value[i]); - if (result.tag !== 'ok') - { - return badIndex(i, result); - } - array[i] = result.value; - } - return ok(_elm_lang$core$Native_Array.fromJSArray(array)); - - case 'maybe': - var result = runHelp(decoder.decoder, value); - return (result.tag === 'ok') - ? ok(_elm_lang$core$Maybe$Just(result.value)) - : ok(_elm_lang$core$Maybe$Nothing); - - case 'field': - var field = decoder.field; - if (typeof value !== 'object' || value === null || !(field in value)) - { - return badPrimitive('an object with a field named `' + field + '`', value); - } - - var result = runHelp(decoder.decoder, value[field]); - return (result.tag === 'ok') ? result : badField(field, result); - - case 'index': - var index = decoder.index; - if (!(value instanceof Array)) - { - return badPrimitive('an array', value); - } - if (index >= value.length) - { - return badPrimitive('a longer array. Need index ' + index + ' but there are only ' + value.length + ' entries', value); - } - - var result = runHelp(decoder.decoder, value[index]); - return (result.tag === 'ok') ? result : badIndex(index, result); - - case 'key-value': - if (typeof value !== 'object' || value === null || value instanceof Array) - { - return badPrimitive('an object', value); - } - - var keyValuePairs = _elm_lang$core$Native_List.Nil; - for (var key in value) - { - var result = runHelp(decoder.decoder, value[key]); - if (result.tag !== 'ok') - { - return badField(key, result); - } - var pair = _elm_lang$core$Native_Utils.Tuple2(key, result.value); - keyValuePairs = _elm_lang$core$Native_List.Cons(pair, keyValuePairs); - } - return ok(keyValuePairs); - - case 'map-many': - var answer = decoder.func; - var decoders = decoder.decoders; - for (var i = 0; i < decoders.length; i++) - { - var result = runHelp(decoders[i], value); - if (result.tag !== 'ok') - { - return result; - } - answer = answer(result.value); - } - return ok(answer); - - case 'andThen': - var result = runHelp(decoder.decoder, value); - return (result.tag !== 'ok') - ? result - : runHelp(decoder.callback(result.value), value); - - case 'oneOf': - var errors = []; - var temp = decoder.decoders; - while (temp.ctor !== '[]') - { - var result = runHelp(temp._0, value); - - if (result.tag === 'ok') - { - return result; - } - - errors.push(result); - - temp = temp._1; - } - return badOneOf(errors); - - case 'fail': - return bad(decoder.msg); - - case 'succeed': - return ok(decoder.msg); - } -} - - -// EQUALITY - -function equality(a, b) -{ - if (a === b) - { - return true; - } - - if (a.tag !== b.tag) - { - return false; - } - - switch (a.tag) - { - case 'succeed': - case 'fail': - return a.msg === b.msg; - - case 'bool': - case 'int': - case 'float': - case 'string': - case 'value': - return true; - - case 'null': - return a.value === b.value; - - case 'list': - case 'array': - case 'maybe': - case 'key-value': - return equality(a.decoder, b.decoder); - - case 'field': - return a.field === b.field && equality(a.decoder, b.decoder); - - case 'index': - return a.index === b.index && equality(a.decoder, b.decoder); - - case 'map-many': - if (a.func !== b.func) - { - return false; - } - return listEquality(a.decoders, b.decoders); - - case 'andThen': - return a.callback === b.callback && equality(a.decoder, b.decoder); - - case 'oneOf': - return listEquality(a.decoders, b.decoders); - } -} - -function listEquality(aDecoders, bDecoders) -{ - var len = aDecoders.length; - if (len !== bDecoders.length) - { - return false; - } - for (var i = 0; i < len; i++) - { - if (!equality(aDecoders[i], bDecoders[i])) - { - return false; - } - } - return true; -} - - -// ENCODE - -function encode(indentLevel, value) -{ - return JSON.stringify(value, null, indentLevel); -} - -function identity(value) -{ - return value; -} - -function encodeObject(keyValuePairs) -{ - var obj = {}; - while (keyValuePairs.ctor !== '[]') - { - var pair = keyValuePairs._0; - obj[pair._0] = pair._1; - keyValuePairs = keyValuePairs._1; - } - return obj; -} - -return { - encode: F2(encode), - runOnString: F2(runOnString), - run: F2(run), - - decodeNull: decodeNull, - decodePrimitive: decodePrimitive, - decodeContainer: F2(decodeContainer), - - decodeField: F2(decodeField), - decodeIndex: F2(decodeIndex), - - map1: F2(map1), - map2: F3(map2), - map3: F4(map3), - map4: F5(map4), - map5: F6(map5), - map6: F7(map6), - map7: F8(map7), - map8: F9(map8), - decodeKeyValuePairs: decodeKeyValuePairs, - - andThen: F2(andThen), - fail: fail, - succeed: succeed, - oneOf: oneOf, - - identity: identity, - encodeNull: null, - encodeArray: _elm_lang$core$Native_Array.toJSArray, - encodeList: _elm_lang$core$Native_List.toArray, - encodeObject: encodeObject, - - equality: equality -}; - -}(); - -var _elm_lang$core$Json_Encode$list = _elm_lang$core$Native_Json.encodeList; -var _elm_lang$core$Json_Encode$array = _elm_lang$core$Native_Json.encodeArray; -var _elm_lang$core$Json_Encode$object = _elm_lang$core$Native_Json.encodeObject; -var _elm_lang$core$Json_Encode$null = _elm_lang$core$Native_Json.encodeNull; -var _elm_lang$core$Json_Encode$bool = _elm_lang$core$Native_Json.identity; -var _elm_lang$core$Json_Encode$float = _elm_lang$core$Native_Json.identity; -var _elm_lang$core$Json_Encode$int = _elm_lang$core$Native_Json.identity; -var _elm_lang$core$Json_Encode$string = _elm_lang$core$Native_Json.identity; -var _elm_lang$core$Json_Encode$encode = _elm_lang$core$Native_Json.encode; -var _elm_lang$core$Json_Encode$Value = {ctor: 'Value'}; - -var _elm_lang$core$Json_Decode$null = _elm_lang$core$Native_Json.decodeNull; -var _elm_lang$core$Json_Decode$value = _elm_lang$core$Native_Json.decodePrimitive('value'); -var _elm_lang$core$Json_Decode$andThen = _elm_lang$core$Native_Json.andThen; -var _elm_lang$core$Json_Decode$fail = _elm_lang$core$Native_Json.fail; -var _elm_lang$core$Json_Decode$succeed = _elm_lang$core$Native_Json.succeed; -var _elm_lang$core$Json_Decode$lazy = function (thunk) { - return A2( - _elm_lang$core$Json_Decode$andThen, - thunk, - _elm_lang$core$Json_Decode$succeed( - {ctor: '_Tuple0'})); -}; -var _elm_lang$core$Json_Decode$decodeValue = _elm_lang$core$Native_Json.run; -var _elm_lang$core$Json_Decode$decodeString = _elm_lang$core$Native_Json.runOnString; -var _elm_lang$core$Json_Decode$map8 = _elm_lang$core$Native_Json.map8; -var _elm_lang$core$Json_Decode$map7 = _elm_lang$core$Native_Json.map7; -var _elm_lang$core$Json_Decode$map6 = _elm_lang$core$Native_Json.map6; -var _elm_lang$core$Json_Decode$map5 = _elm_lang$core$Native_Json.map5; -var _elm_lang$core$Json_Decode$map4 = _elm_lang$core$Native_Json.map4; -var _elm_lang$core$Json_Decode$map3 = _elm_lang$core$Native_Json.map3; -var _elm_lang$core$Json_Decode$map2 = _elm_lang$core$Native_Json.map2; -var _elm_lang$core$Json_Decode$map = _elm_lang$core$Native_Json.map1; -var _elm_lang$core$Json_Decode$oneOf = _elm_lang$core$Native_Json.oneOf; -var _elm_lang$core$Json_Decode$maybe = function (decoder) { - return A2(_elm_lang$core$Native_Json.decodeContainer, 'maybe', decoder); -}; -var _elm_lang$core$Json_Decode$index = _elm_lang$core$Native_Json.decodeIndex; -var _elm_lang$core$Json_Decode$field = _elm_lang$core$Native_Json.decodeField; -var _elm_lang$core$Json_Decode$at = F2( - function (fields, decoder) { - return A3(_elm_lang$core$List$foldr, _elm_lang$core$Json_Decode$field, decoder, fields); - }); -var _elm_lang$core$Json_Decode$keyValuePairs = _elm_lang$core$Native_Json.decodeKeyValuePairs; -var _elm_lang$core$Json_Decode$dict = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Dict$fromList, - _elm_lang$core$Json_Decode$keyValuePairs(decoder)); -}; -var _elm_lang$core$Json_Decode$array = function (decoder) { - return A2(_elm_lang$core$Native_Json.decodeContainer, 'array', decoder); -}; -var _elm_lang$core$Json_Decode$list = function (decoder) { - return A2(_elm_lang$core$Native_Json.decodeContainer, 'list', decoder); -}; -var _elm_lang$core$Json_Decode$nullable = function (decoder) { - return _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$null(_elm_lang$core$Maybe$Nothing), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, decoder), - _1: {ctor: '[]'} - } - }); -}; -var _elm_lang$core$Json_Decode$float = _elm_lang$core$Native_Json.decodePrimitive('float'); -var _elm_lang$core$Json_Decode$int = _elm_lang$core$Native_Json.decodePrimitive('int'); -var _elm_lang$core$Json_Decode$bool = _elm_lang$core$Native_Json.decodePrimitive('bool'); -var _elm_lang$core$Json_Decode$string = _elm_lang$core$Native_Json.decodePrimitive('string'); -var _elm_lang$core$Json_Decode$Decoder = {ctor: 'Decoder'}; - -var _elm_lang$virtual_dom$VirtualDom_Debug$wrap; -var _elm_lang$virtual_dom$VirtualDom_Debug$wrapWithFlags; - -var _elm_lang$virtual_dom$Native_VirtualDom = function() { - -var STYLE_KEY = 'STYLE'; -var EVENT_KEY = 'EVENT'; -var ATTR_KEY = 'ATTR'; -var ATTR_NS_KEY = 'ATTR_NS'; - -var localDoc = typeof document !== 'undefined' ? document : {}; - - -//////////// VIRTUAL DOM NODES //////////// - - -function text(string) -{ - return { - type: 'text', - text: string - }; -} - - -function node(tag) -{ - return F2(function(factList, kidList) { - return nodeHelp(tag, factList, kidList); - }); -} - - -function nodeHelp(tag, factList, kidList) -{ - var organized = organizeFacts(factList); - var namespace = organized.namespace; - var facts = organized.facts; - - var children = []; - var descendantsCount = 0; - while (kidList.ctor !== '[]') - { - var kid = kidList._0; - descendantsCount += (kid.descendantsCount || 0); - children.push(kid); - kidList = kidList._1; - } - descendantsCount += children.length; - - return { - type: 'node', - tag: tag, - facts: facts, - children: children, - namespace: namespace, - descendantsCount: descendantsCount - }; -} - - -function keyedNode(tag, factList, kidList) -{ - var organized = organizeFacts(factList); - var namespace = organized.namespace; - var facts = organized.facts; - - var children = []; - var descendantsCount = 0; - while (kidList.ctor !== '[]') - { - var kid = kidList._0; - descendantsCount += (kid._1.descendantsCount || 0); - children.push(kid); - kidList = kidList._1; - } - descendantsCount += children.length; - - return { - type: 'keyed-node', - tag: tag, - facts: facts, - children: children, - namespace: namespace, - descendantsCount: descendantsCount - }; -} - - -function custom(factList, model, impl) -{ - var facts = organizeFacts(factList).facts; - - return { - type: 'custom', - facts: facts, - model: model, - impl: impl - }; -} - - -function map(tagger, node) -{ - return { - type: 'tagger', - tagger: tagger, - node: node, - descendantsCount: 1 + (node.descendantsCount || 0) - }; -} - - -function thunk(func, args, thunk) -{ - return { - type: 'thunk', - func: func, - args: args, - thunk: thunk, - node: undefined - }; -} - -function lazy(fn, a) -{ - return thunk(fn, [a], function() { - return fn(a); - }); -} - -function lazy2(fn, a, b) -{ - return thunk(fn, [a,b], function() { - return A2(fn, a, b); - }); -} - -function lazy3(fn, a, b, c) -{ - return thunk(fn, [a,b,c], function() { - return A3(fn, a, b, c); - }); -} - - - -// FACTS - - -function organizeFacts(factList) -{ - var namespace, facts = {}; - - while (factList.ctor !== '[]') - { - var entry = factList._0; - var key = entry.key; - - if (key === ATTR_KEY || key === ATTR_NS_KEY || key === EVENT_KEY) - { - var subFacts = facts[key] || {}; - subFacts[entry.realKey] = entry.value; - facts[key] = subFacts; - } - else if (key === STYLE_KEY) - { - var styles = facts[key] || {}; - var styleList = entry.value; - while (styleList.ctor !== '[]') - { - var style = styleList._0; - styles[style._0] = style._1; - styleList = styleList._1; - } - facts[key] = styles; - } - else if (key === 'namespace') - { - namespace = entry.value; - } - else if (key === 'className') - { - var classes = facts[key]; - facts[key] = typeof classes === 'undefined' - ? entry.value - : classes + ' ' + entry.value; - } - else - { - facts[key] = entry.value; - } - factList = factList._1; - } - - return { - facts: facts, - namespace: namespace - }; -} - - - -//////////// PROPERTIES AND ATTRIBUTES //////////// - - -function style(value) -{ - return { - key: STYLE_KEY, - value: value - }; -} - - -function property(key, value) -{ - return { - key: key, - value: value - }; -} - - -function attribute(key, value) -{ - return { - key: ATTR_KEY, - realKey: key, - value: value - }; -} - - -function attributeNS(namespace, key, value) -{ - return { - key: ATTR_NS_KEY, - realKey: key, - value: { - value: value, - namespace: namespace - } - }; -} - - -function on(name, options, decoder) -{ - return { - key: EVENT_KEY, - realKey: name, - value: { - options: options, - decoder: decoder - } - }; -} - - -function equalEvents(a, b) -{ - if (a.options !== b.options) - { - if (a.options.stopPropagation !== b.options.stopPropagation || a.options.preventDefault !== b.options.preventDefault) - { - return false; - } - } - return _elm_lang$core$Native_Json.equality(a.decoder, b.decoder); -} - - -function mapProperty(func, property) -{ - if (property.key !== EVENT_KEY) - { - return property; - } - return on( - property.realKey, - property.value.options, - A2(_elm_lang$core$Json_Decode$map, func, property.value.decoder) - ); -} - - -//////////// RENDER //////////// - - -function render(vNode, eventNode) -{ - switch (vNode.type) - { - case 'thunk': - if (!vNode.node) - { - vNode.node = vNode.thunk(); - } - return render(vNode.node, eventNode); - - case 'tagger': - var subNode = vNode.node; - var tagger = vNode.tagger; - - while (subNode.type === 'tagger') - { - typeof tagger !== 'object' - ? tagger = [tagger, subNode.tagger] - : tagger.push(subNode.tagger); - - subNode = subNode.node; - } - - var subEventRoot = { tagger: tagger, parent: eventNode }; - var domNode = render(subNode, subEventRoot); - domNode.elm_event_node_ref = subEventRoot; - return domNode; - - case 'text': - return localDoc.createTextNode(vNode.text); - - case 'node': - var domNode = vNode.namespace - ? localDoc.createElementNS(vNode.namespace, vNode.tag) - : localDoc.createElement(vNode.tag); - - applyFacts(domNode, eventNode, vNode.facts); - - var children = vNode.children; - - for (var i = 0; i < children.length; i++) - { - domNode.appendChild(render(children[i], eventNode)); - } - - return domNode; - - case 'keyed-node': - var domNode = vNode.namespace - ? localDoc.createElementNS(vNode.namespace, vNode.tag) - : localDoc.createElement(vNode.tag); - - applyFacts(domNode, eventNode, vNode.facts); - - var children = vNode.children; - - for (var i = 0; i < children.length; i++) - { - domNode.appendChild(render(children[i]._1, eventNode)); - } - - return domNode; - - case 'custom': - var domNode = vNode.impl.render(vNode.model); - applyFacts(domNode, eventNode, vNode.facts); - return domNode; - } -} - - - -//////////// APPLY FACTS //////////// - - -function applyFacts(domNode, eventNode, facts) -{ - for (var key in facts) - { - var value = facts[key]; - - switch (key) - { - case STYLE_KEY: - applyStyles(domNode, value); - break; - - case EVENT_KEY: - applyEvents(domNode, eventNode, value); - break; - - case ATTR_KEY: - applyAttrs(domNode, value); - break; - - case ATTR_NS_KEY: - applyAttrsNS(domNode, value); - break; - - case 'value': - if (domNode[key] !== value) - { - domNode[key] = value; - } - break; - - default: - domNode[key] = value; - break; - } - } -} - -function applyStyles(domNode, styles) -{ - var domNodeStyle = domNode.style; - - for (var key in styles) - { - domNodeStyle[key] = styles[key]; - } -} - -function applyEvents(domNode, eventNode, events) -{ - var allHandlers = domNode.elm_handlers || {}; - - for (var key in events) - { - var handler = allHandlers[key]; - var value = events[key]; - - if (typeof value === 'undefined') - { - domNode.removeEventListener(key, handler); - allHandlers[key] = undefined; - } - else if (typeof handler === 'undefined') - { - var handler = makeEventHandler(eventNode, value); - domNode.addEventListener(key, handler); - allHandlers[key] = handler; - } - else - { - handler.info = value; - } - } - - domNode.elm_handlers = allHandlers; -} - -function makeEventHandler(eventNode, info) -{ - function eventHandler(event) - { - var info = eventHandler.info; - - var value = A2(_elm_lang$core$Native_Json.run, info.decoder, event); - - if (value.ctor === 'Ok') - { - var options = info.options; - if (options.stopPropagation) - { - event.stopPropagation(); - } - if (options.preventDefault) - { - event.preventDefault(); - } - - var message = value._0; - - var currentEventNode = eventNode; - while (currentEventNode) - { - var tagger = currentEventNode.tagger; - if (typeof tagger === 'function') - { - message = tagger(message); - } - else - { - for (var i = tagger.length; i--; ) - { - message = tagger[i](message); - } - } - currentEventNode = currentEventNode.parent; - } - } - }; - - eventHandler.info = info; - - return eventHandler; -} - -function applyAttrs(domNode, attrs) -{ - for (var key in attrs) - { - var value = attrs[key]; - if (typeof value === 'undefined') - { - domNode.removeAttribute(key); - } - else - { - domNode.setAttribute(key, value); - } - } -} - -function applyAttrsNS(domNode, nsAttrs) -{ - for (var key in nsAttrs) - { - var pair = nsAttrs[key]; - var namespace = pair.namespace; - var value = pair.value; - - if (typeof value === 'undefined') - { - domNode.removeAttributeNS(namespace, key); - } - else - { - domNode.setAttributeNS(namespace, key, value); - } - } -} - - - -//////////// DIFF //////////// - - -function diff(a, b) -{ - var patches = []; - diffHelp(a, b, patches, 0); - return patches; -} - - -function makePatch(type, index, data) -{ - return { - index: index, - type: type, - data: data, - domNode: undefined, - eventNode: undefined - }; -} - - -function diffHelp(a, b, patches, index) -{ - if (a === b) - { - return; - } - - var aType = a.type; - var bType = b.type; - - // Bail if you run into different types of nodes. Implies that the - // structure has changed significantly and it's not worth a diff. - if (aType !== bType) - { - patches.push(makePatch('p-redraw', index, b)); - return; - } - - // Now we know that both nodes are the same type. - switch (bType) - { - case 'thunk': - var aArgs = a.args; - var bArgs = b.args; - var i = aArgs.length; - var same = a.func === b.func && i === bArgs.length; - while (same && i--) - { - same = aArgs[i] === bArgs[i]; - } - if (same) - { - b.node = a.node; - return; - } - b.node = b.thunk(); - var subPatches = []; - diffHelp(a.node, b.node, subPatches, 0); - if (subPatches.length > 0) - { - patches.push(makePatch('p-thunk', index, subPatches)); - } - return; - - case 'tagger': - // gather nested taggers - var aTaggers = a.tagger; - var bTaggers = b.tagger; - var nesting = false; - - var aSubNode = a.node; - while (aSubNode.type === 'tagger') - { - nesting = true; - - typeof aTaggers !== 'object' - ? aTaggers = [aTaggers, aSubNode.tagger] - : aTaggers.push(aSubNode.tagger); - - aSubNode = aSubNode.node; - } - - var bSubNode = b.node; - while (bSubNode.type === 'tagger') - { - nesting = true; - - typeof bTaggers !== 'object' - ? bTaggers = [bTaggers, bSubNode.tagger] - : bTaggers.push(bSubNode.tagger); - - bSubNode = bSubNode.node; - } - - // Just bail if different numbers of taggers. This implies the - // structure of the virtual DOM has changed. - if (nesting && aTaggers.length !== bTaggers.length) - { - patches.push(makePatch('p-redraw', index, b)); - return; - } - - // check if taggers are "the same" - if (nesting ? !pairwiseRefEqual(aTaggers, bTaggers) : aTaggers !== bTaggers) - { - patches.push(makePatch('p-tagger', index, bTaggers)); - } - - // diff everything below the taggers - diffHelp(aSubNode, bSubNode, patches, index + 1); - return; - - case 'text': - if (a.text !== b.text) - { - patches.push(makePatch('p-text', index, b.text)); - return; - } - - return; - - case 'node': - // Bail if obvious indicators have changed. Implies more serious - // structural changes such that it's not worth it to diff. - if (a.tag !== b.tag || a.namespace !== b.namespace) - { - patches.push(makePatch('p-redraw', index, b)); - return; - } - - var factsDiff = diffFacts(a.facts, b.facts); - - if (typeof factsDiff !== 'undefined') - { - patches.push(makePatch('p-facts', index, factsDiff)); - } - - diffChildren(a, b, patches, index); - return; - - case 'keyed-node': - // Bail if obvious indicators have changed. Implies more serious - // structural changes such that it's not worth it to diff. - if (a.tag !== b.tag || a.namespace !== b.namespace) - { - patches.push(makePatch('p-redraw', index, b)); - return; - } - - var factsDiff = diffFacts(a.facts, b.facts); - - if (typeof factsDiff !== 'undefined') - { - patches.push(makePatch('p-facts', index, factsDiff)); - } - - diffKeyedChildren(a, b, patches, index); - return; - - case 'custom': - if (a.impl !== b.impl) - { - patches.push(makePatch('p-redraw', index, b)); - return; - } - - var factsDiff = diffFacts(a.facts, b.facts); - if (typeof factsDiff !== 'undefined') - { - patches.push(makePatch('p-facts', index, factsDiff)); - } - - var patch = b.impl.diff(a,b); - if (patch) - { - patches.push(makePatch('p-custom', index, patch)); - return; - } - - return; - } -} - - -// assumes the incoming arrays are the same length -function pairwiseRefEqual(as, bs) -{ - for (var i = 0; i < as.length; i++) - { - if (as[i] !== bs[i]) - { - return false; - } - } - - return true; -} - - -// TODO Instead of creating a new diff object, it's possible to just test if -// there *is* a diff. During the actual patch, do the diff again and make the -// modifications directly. This way, there's no new allocations. Worth it? -function diffFacts(a, b, category) -{ - var diff; - - // look for changes and removals - for (var aKey in a) - { - if (aKey === STYLE_KEY || aKey === EVENT_KEY || aKey === ATTR_KEY || aKey === ATTR_NS_KEY) - { - var subDiff = diffFacts(a[aKey], b[aKey] || {}, aKey); - if (subDiff) - { - diff = diff || {}; - diff[aKey] = subDiff; - } - continue; - } - - // remove if not in the new facts - if (!(aKey in b)) - { - diff = diff || {}; - diff[aKey] = - (typeof category === 'undefined') - ? (typeof a[aKey] === 'string' ? '' : null) - : - (category === STYLE_KEY) - ? '' - : - (category === EVENT_KEY || category === ATTR_KEY) - ? undefined - : - { namespace: a[aKey].namespace, value: undefined }; - - continue; - } - - var aValue = a[aKey]; - var bValue = b[aKey]; - - // reference equal, so don't worry about it - if (aValue === bValue && aKey !== 'value' - || category === EVENT_KEY && equalEvents(aValue, bValue)) - { - continue; - } - - diff = diff || {}; - diff[aKey] = bValue; - } - - // add new stuff - for (var bKey in b) - { - if (!(bKey in a)) - { - diff = diff || {}; - diff[bKey] = b[bKey]; - } - } - - return diff; -} - - -function diffChildren(aParent, bParent, patches, rootIndex) -{ - var aChildren = aParent.children; - var bChildren = bParent.children; - - var aLen = aChildren.length; - var bLen = bChildren.length; - - // FIGURE OUT IF THERE ARE INSERTS OR REMOVALS - - if (aLen > bLen) - { - patches.push(makePatch('p-remove-last', rootIndex, aLen - bLen)); - } - else if (aLen < bLen) - { - patches.push(makePatch('p-append', rootIndex, bChildren.slice(aLen))); - } - - // PAIRWISE DIFF EVERYTHING ELSE - - var index = rootIndex; - var minLen = aLen < bLen ? aLen : bLen; - for (var i = 0; i < minLen; i++) - { - index++; - var aChild = aChildren[i]; - diffHelp(aChild, bChildren[i], patches, index); - index += aChild.descendantsCount || 0; - } -} - - - -//////////// KEYED DIFF //////////// - - -function diffKeyedChildren(aParent, bParent, patches, rootIndex) -{ - var localPatches = []; - - var changes = {}; // Dict String Entry - var inserts = []; // Array { index : Int, entry : Entry } - // type Entry = { tag : String, vnode : VNode, index : Int, data : _ } - - var aChildren = aParent.children; - var bChildren = bParent.children; - var aLen = aChildren.length; - var bLen = bChildren.length; - var aIndex = 0; - var bIndex = 0; - - var index = rootIndex; - - while (aIndex < aLen && bIndex < bLen) - { - var a = aChildren[aIndex]; - var b = bChildren[bIndex]; - - var aKey = a._0; - var bKey = b._0; - var aNode = a._1; - var bNode = b._1; - - // check if keys match - - if (aKey === bKey) - { - index++; - diffHelp(aNode, bNode, localPatches, index); - index += aNode.descendantsCount || 0; - - aIndex++; - bIndex++; - continue; - } - - // look ahead 1 to detect insertions and removals. - - var aLookAhead = aIndex + 1 < aLen; - var bLookAhead = bIndex + 1 < bLen; - - if (aLookAhead) - { - var aNext = aChildren[aIndex + 1]; - var aNextKey = aNext._0; - var aNextNode = aNext._1; - var oldMatch = bKey === aNextKey; - } - - if (bLookAhead) - { - var bNext = bChildren[bIndex + 1]; - var bNextKey = bNext._0; - var bNextNode = bNext._1; - var newMatch = aKey === bNextKey; - } - - - // swap a and b - if (aLookAhead && bLookAhead && newMatch && oldMatch) - { - index++; - diffHelp(aNode, bNextNode, localPatches, index); - insertNode(changes, localPatches, aKey, bNode, bIndex, inserts); - index += aNode.descendantsCount || 0; - - index++; - removeNode(changes, localPatches, aKey, aNextNode, index); - index += aNextNode.descendantsCount || 0; - - aIndex += 2; - bIndex += 2; - continue; - } - - // insert b - if (bLookAhead && newMatch) - { - index++; - insertNode(changes, localPatches, bKey, bNode, bIndex, inserts); - diffHelp(aNode, bNextNode, localPatches, index); - index += aNode.descendantsCount || 0; - - aIndex += 1; - bIndex += 2; - continue; - } - - // remove a - if (aLookAhead && oldMatch) - { - index++; - removeNode(changes, localPatches, aKey, aNode, index); - index += aNode.descendantsCount || 0; - - index++; - diffHelp(aNextNode, bNode, localPatches, index); - index += aNextNode.descendantsCount || 0; - - aIndex += 2; - bIndex += 1; - continue; - } - - // remove a, insert b - if (aLookAhead && bLookAhead && aNextKey === bNextKey) - { - index++; - removeNode(changes, localPatches, aKey, aNode, index); - insertNode(changes, localPatches, bKey, bNode, bIndex, inserts); - index += aNode.descendantsCount || 0; - - index++; - diffHelp(aNextNode, bNextNode, localPatches, index); - index += aNextNode.descendantsCount || 0; - - aIndex += 2; - bIndex += 2; - continue; - } - - break; - } - - // eat up any remaining nodes with removeNode and insertNode - - while (aIndex < aLen) - { - index++; - var a = aChildren[aIndex]; - var aNode = a._1; - removeNode(changes, localPatches, a._0, aNode, index); - index += aNode.descendantsCount || 0; - aIndex++; - } - - var endInserts; - while (bIndex < bLen) - { - endInserts = endInserts || []; - var b = bChildren[bIndex]; - insertNode(changes, localPatches, b._0, b._1, undefined, endInserts); - bIndex++; - } - - if (localPatches.length > 0 || inserts.length > 0 || typeof endInserts !== 'undefined') - { - patches.push(makePatch('p-reorder', rootIndex, { - patches: localPatches, - inserts: inserts, - endInserts: endInserts - })); - } -} - - - -//////////// CHANGES FROM KEYED DIFF //////////// - - -var POSTFIX = '_elmW6BL'; - - -function insertNode(changes, localPatches, key, vnode, bIndex, inserts) -{ - var entry = changes[key]; - - // never seen this key before - if (typeof entry === 'undefined') - { - entry = { - tag: 'insert', - vnode: vnode, - index: bIndex, - data: undefined - }; - - inserts.push({ index: bIndex, entry: entry }); - changes[key] = entry; - - return; - } - - // this key was removed earlier, a match! - if (entry.tag === 'remove') - { - inserts.push({ index: bIndex, entry: entry }); - - entry.tag = 'move'; - var subPatches = []; - diffHelp(entry.vnode, vnode, subPatches, entry.index); - entry.index = bIndex; - entry.data.data = { - patches: subPatches, - entry: entry - }; - - return; - } - - // this key has already been inserted or moved, a duplicate! - insertNode(changes, localPatches, key + POSTFIX, vnode, bIndex, inserts); -} - - -function removeNode(changes, localPatches, key, vnode, index) -{ - var entry = changes[key]; - - // never seen this key before - if (typeof entry === 'undefined') - { - var patch = makePatch('p-remove', index, undefined); - localPatches.push(patch); - - changes[key] = { - tag: 'remove', - vnode: vnode, - index: index, - data: patch - }; - - return; - } - - // this key was inserted earlier, a match! - if (entry.tag === 'insert') - { - entry.tag = 'move'; - var subPatches = []; - diffHelp(vnode, entry.vnode, subPatches, index); - - var patch = makePatch('p-remove', index, { - patches: subPatches, - entry: entry - }); - localPatches.push(patch); - - return; - } - - // this key has already been removed or moved, a duplicate! - removeNode(changes, localPatches, key + POSTFIX, vnode, index); -} - - - -//////////// ADD DOM NODES //////////// -// -// Each DOM node has an "index" assigned in order of traversal. It is important -// to minimize our crawl over the actual DOM, so these indexes (along with the -// descendantsCount of virtual nodes) let us skip touching entire subtrees of -// the DOM if we know there are no patches there. - - -function addDomNodes(domNode, vNode, patches, eventNode) -{ - addDomNodesHelp(domNode, vNode, patches, 0, 0, vNode.descendantsCount, eventNode); -} - - -// assumes `patches` is non-empty and indexes increase monotonically. -function addDomNodesHelp(domNode, vNode, patches, i, low, high, eventNode) -{ - var patch = patches[i]; - var index = patch.index; - - while (index === low) - { - var patchType = patch.type; - - if (patchType === 'p-thunk') - { - addDomNodes(domNode, vNode.node, patch.data, eventNode); - } - else if (patchType === 'p-reorder') - { - patch.domNode = domNode; - patch.eventNode = eventNode; - - var subPatches = patch.data.patches; - if (subPatches.length > 0) - { - addDomNodesHelp(domNode, vNode, subPatches, 0, low, high, eventNode); - } - } - else if (patchType === 'p-remove') - { - patch.domNode = domNode; - patch.eventNode = eventNode; - - var data = patch.data; - if (typeof data !== 'undefined') - { - data.entry.data = domNode; - var subPatches = data.patches; - if (subPatches.length > 0) - { - addDomNodesHelp(domNode, vNode, subPatches, 0, low, high, eventNode); - } - } - } - else - { - patch.domNode = domNode; - patch.eventNode = eventNode; - } - - i++; - - if (!(patch = patches[i]) || (index = patch.index) > high) - { - return i; - } - } - - switch (vNode.type) - { - case 'tagger': - var subNode = vNode.node; - - while (subNode.type === "tagger") - { - subNode = subNode.node; - } - - return addDomNodesHelp(domNode, subNode, patches, i, low + 1, high, domNode.elm_event_node_ref); - - case 'node': - var vChildren = vNode.children; - var childNodes = domNode.childNodes; - for (var j = 0; j < vChildren.length; j++) - { - low++; - var vChild = vChildren[j]; - var nextLow = low + (vChild.descendantsCount || 0); - if (low <= index && index <= nextLow) - { - i = addDomNodesHelp(childNodes[j], vChild, patches, i, low, nextLow, eventNode); - if (!(patch = patches[i]) || (index = patch.index) > high) - { - return i; - } - } - low = nextLow; - } - return i; - - case 'keyed-node': - var vChildren = vNode.children; - var childNodes = domNode.childNodes; - for (var j = 0; j < vChildren.length; j++) - { - low++; - var vChild = vChildren[j]._1; - var nextLow = low + (vChild.descendantsCount || 0); - if (low <= index && index <= nextLow) - { - i = addDomNodesHelp(childNodes[j], vChild, patches, i, low, nextLow, eventNode); - if (!(patch = patches[i]) || (index = patch.index) > high) - { - return i; - } - } - low = nextLow; - } - return i; - - case 'text': - case 'thunk': - throw new Error('should never traverse `text` or `thunk` nodes like this'); - } -} - - - -//////////// APPLY PATCHES //////////// - - -function applyPatches(rootDomNode, oldVirtualNode, patches, eventNode) -{ - if (patches.length === 0) - { - return rootDomNode; - } - - addDomNodes(rootDomNode, oldVirtualNode, patches, eventNode); - return applyPatchesHelp(rootDomNode, patches); -} - -function applyPatchesHelp(rootDomNode, patches) -{ - for (var i = 0; i < patches.length; i++) - { - var patch = patches[i]; - var localDomNode = patch.domNode - var newNode = applyPatch(localDomNode, patch); - if (localDomNode === rootDomNode) - { - rootDomNode = newNode; - } - } - return rootDomNode; -} - -function applyPatch(domNode, patch) -{ - switch (patch.type) - { - case 'p-redraw': - return applyPatchRedraw(domNode, patch.data, patch.eventNode); - - case 'p-facts': - applyFacts(domNode, patch.eventNode, patch.data); - return domNode; - - case 'p-text': - domNode.replaceData(0, domNode.length, patch.data); - return domNode; - - case 'p-thunk': - return applyPatchesHelp(domNode, patch.data); - - case 'p-tagger': - if (typeof domNode.elm_event_node_ref !== 'undefined') - { - domNode.elm_event_node_ref.tagger = patch.data; - } - else - { - domNode.elm_event_node_ref = { tagger: patch.data, parent: patch.eventNode }; - } - return domNode; - - case 'p-remove-last': - var i = patch.data; - while (i--) - { - domNode.removeChild(domNode.lastChild); - } - return domNode; - - case 'p-append': - var newNodes = patch.data; - for (var i = 0; i < newNodes.length; i++) - { - domNode.appendChild(render(newNodes[i], patch.eventNode)); - } - return domNode; - - case 'p-remove': - var data = patch.data; - if (typeof data === 'undefined') - { - domNode.parentNode.removeChild(domNode); - return domNode; - } - var entry = data.entry; - if (typeof entry.index !== 'undefined') - { - domNode.parentNode.removeChild(domNode); - } - entry.data = applyPatchesHelp(domNode, data.patches); - return domNode; - - case 'p-reorder': - return applyPatchReorder(domNode, patch); - - case 'p-custom': - var impl = patch.data; - return impl.applyPatch(domNode, impl.data); - - default: - throw new Error('Ran into an unknown patch!'); - } -} - - -function applyPatchRedraw(domNode, vNode, eventNode) -{ - var parentNode = domNode.parentNode; - var newNode = render(vNode, eventNode); - - if (typeof newNode.elm_event_node_ref === 'undefined') - { - newNode.elm_event_node_ref = domNode.elm_event_node_ref; - } - - if (parentNode && newNode !== domNode) - { - parentNode.replaceChild(newNode, domNode); - } - return newNode; -} - - -function applyPatchReorder(domNode, patch) -{ - var data = patch.data; - - // remove end inserts - var frag = applyPatchReorderEndInsertsHelp(data.endInserts, patch); - - // removals - domNode = applyPatchesHelp(domNode, data.patches); - - // inserts - var inserts = data.inserts; - for (var i = 0; i < inserts.length; i++) - { - var insert = inserts[i]; - var entry = insert.entry; - var node = entry.tag === 'move' - ? entry.data - : render(entry.vnode, patch.eventNode); - domNode.insertBefore(node, domNode.childNodes[insert.index]); - } - - // add end inserts - if (typeof frag !== 'undefined') - { - domNode.appendChild(frag); - } - - return domNode; -} - - -function applyPatchReorderEndInsertsHelp(endInserts, patch) -{ - if (typeof endInserts === 'undefined') - { - return; - } - - var frag = localDoc.createDocumentFragment(); - for (var i = 0; i < endInserts.length; i++) - { - var insert = endInserts[i]; - var entry = insert.entry; - frag.appendChild(entry.tag === 'move' - ? entry.data - : render(entry.vnode, patch.eventNode) - ); - } - return frag; -} - - -// PROGRAMS - -var program = makeProgram(checkNoFlags); -var programWithFlags = makeProgram(checkYesFlags); - -function makeProgram(flagChecker) -{ - return F2(function(debugWrap, impl) - { - return function(flagDecoder) - { - return function(object, moduleName, debugMetadata) - { - var checker = flagChecker(flagDecoder, moduleName); - if (typeof debugMetadata === 'undefined') - { - normalSetup(impl, object, moduleName, checker); - } - else - { - debugSetup(A2(debugWrap, debugMetadata, impl), object, moduleName, checker); - } - }; - }; - }); -} - -function staticProgram(vNode) -{ - var nothing = _elm_lang$core$Native_Utils.Tuple2( - _elm_lang$core$Native_Utils.Tuple0, - _elm_lang$core$Platform_Cmd$none - ); - return A2(program, _elm_lang$virtual_dom$VirtualDom_Debug$wrap, { - init: nothing, - view: function() { return vNode; }, - update: F2(function() { return nothing; }), - subscriptions: function() { return _elm_lang$core$Platform_Sub$none; } - })(); -} - - -// FLAG CHECKERS - -function checkNoFlags(flagDecoder, moduleName) -{ - return function(init, flags, domNode) - { - if (typeof flags === 'undefined') - { - return init; - } - - var errorMessage = - 'The `' + moduleName + '` module does not need flags.\n' - + 'Initialize it with no arguments and you should be all set!'; - - crash(errorMessage, domNode); - }; -} - -function checkYesFlags(flagDecoder, moduleName) -{ - return function(init, flags, domNode) - { - if (typeof flagDecoder === 'undefined') - { - var errorMessage = - 'Are you trying to sneak a Never value into Elm? Trickster!\n' - + 'It looks like ' + moduleName + '.main is defined with `programWithFlags` but has type `Program Never`.\n' - + 'Use `program` instead if you do not want flags.' - - crash(errorMessage, domNode); - } - - var result = A2(_elm_lang$core$Native_Json.run, flagDecoder, flags); - if (result.ctor === 'Ok') - { - return init(result._0); - } - - var errorMessage = - 'Trying to initialize the `' + moduleName + '` module with an unexpected flag.\n' - + 'I tried to convert it to an Elm value, but ran into this problem:\n\n' - + result._0; - - crash(errorMessage, domNode); - }; -} - -function crash(errorMessage, domNode) -{ - if (domNode) - { - domNode.innerHTML = - '
' - + '

Oops! Something went wrong when starting your Elm program.

' - + '
' + errorMessage + '
' - + '
'; - } - - throw new Error(errorMessage); -} - - -// NORMAL SETUP - -function normalSetup(impl, object, moduleName, flagChecker) -{ - object['embed'] = function embed(node, flags) - { - while (node.lastChild) - { - node.removeChild(node.lastChild); - } - - return _elm_lang$core$Native_Platform.initialize( - flagChecker(impl.init, flags, node), - impl.update, - impl.subscriptions, - normalRenderer(node, impl.view) - ); - }; - - object['fullscreen'] = function fullscreen(flags) - { - return _elm_lang$core$Native_Platform.initialize( - flagChecker(impl.init, flags, document.body), - impl.update, - impl.subscriptions, - normalRenderer(document.body, impl.view) - ); - }; -} - -function normalRenderer(parentNode, view) -{ - return function(tagger, initialModel) - { - var eventNode = { tagger: tagger, parent: undefined }; - var initialVirtualNode = view(initialModel); - var domNode = render(initialVirtualNode, eventNode); - parentNode.appendChild(domNode); - return makeStepper(domNode, view, initialVirtualNode, eventNode); - }; -} - - -// STEPPER - -var rAF = - typeof requestAnimationFrame !== 'undefined' - ? requestAnimationFrame - : function(callback) { setTimeout(callback, 1000 / 60); }; - -function makeStepper(domNode, view, initialVirtualNode, eventNode) -{ - var state = 'NO_REQUEST'; - var currNode = initialVirtualNode; - var nextModel; - - function updateIfNeeded() - { - switch (state) - { - case 'NO_REQUEST': - throw new Error( - 'Unexpected draw callback.\n' + - 'Please report this to .' - ); - - case 'PENDING_REQUEST': - rAF(updateIfNeeded); - state = 'EXTRA_REQUEST'; - - var nextNode = view(nextModel); - var patches = diff(currNode, nextNode); - domNode = applyPatches(domNode, currNode, patches, eventNode); - currNode = nextNode; - - return; - - case 'EXTRA_REQUEST': - state = 'NO_REQUEST'; - return; - } - } - - return function stepper(model) - { - if (state === 'NO_REQUEST') - { - rAF(updateIfNeeded); - } - state = 'PENDING_REQUEST'; - nextModel = model; - }; -} - - -// DEBUG SETUP - -function debugSetup(impl, object, moduleName, flagChecker) -{ - object['fullscreen'] = function fullscreen(flags) - { - var popoutRef = { doc: undefined }; - return _elm_lang$core$Native_Platform.initialize( - flagChecker(impl.init, flags, document.body), - impl.update(scrollTask(popoutRef)), - impl.subscriptions, - debugRenderer(moduleName, document.body, popoutRef, impl.view, impl.viewIn, impl.viewOut) - ); - }; - - object['embed'] = function fullscreen(node, flags) - { - var popoutRef = { doc: undefined }; - return _elm_lang$core$Native_Platform.initialize( - flagChecker(impl.init, flags, node), - impl.update(scrollTask(popoutRef)), - impl.subscriptions, - debugRenderer(moduleName, node, popoutRef, impl.view, impl.viewIn, impl.viewOut) - ); - }; -} - -function scrollTask(popoutRef) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - var doc = popoutRef.doc; - if (doc) - { - var msgs = doc.getElementsByClassName('debugger-sidebar-messages')[0]; - if (msgs) - { - msgs.scrollTop = msgs.scrollHeight; - } - } - callback(_elm_lang$core$Native_Scheduler.succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - - -function debugRenderer(moduleName, parentNode, popoutRef, view, viewIn, viewOut) -{ - return function(tagger, initialModel) - { - var appEventNode = { tagger: tagger, parent: undefined }; - var eventNode = { tagger: tagger, parent: undefined }; - - // make normal stepper - var appVirtualNode = view(initialModel); - var appNode = render(appVirtualNode, appEventNode); - parentNode.appendChild(appNode); - var appStepper = makeStepper(appNode, view, appVirtualNode, appEventNode); - - // make overlay stepper - var overVirtualNode = viewIn(initialModel)._1; - var overNode = render(overVirtualNode, eventNode); - parentNode.appendChild(overNode); - var wrappedViewIn = wrapViewIn(appEventNode, overNode, viewIn); - var overStepper = makeStepper(overNode, wrappedViewIn, overVirtualNode, eventNode); - - // make debugger stepper - var debugStepper = makeDebugStepper(initialModel, viewOut, eventNode, parentNode, moduleName, popoutRef); - - return function stepper(model) - { - appStepper(model); - overStepper(model); - debugStepper(model); - } - }; -} - -function makeDebugStepper(initialModel, view, eventNode, parentNode, moduleName, popoutRef) -{ - var curr; - var domNode; - - return function stepper(model) - { - if (!model.isDebuggerOpen) - { - return; - } - - if (!popoutRef.doc) - { - curr = view(model); - domNode = openDebugWindow(moduleName, popoutRef, curr, eventNode); - return; - } - - // switch to document of popout - localDoc = popoutRef.doc; - - var next = view(model); - var patches = diff(curr, next); - domNode = applyPatches(domNode, curr, patches, eventNode); - curr = next; - - // switch back to normal document - localDoc = document; - }; -} - -function openDebugWindow(moduleName, popoutRef, virtualNode, eventNode) -{ - var w = 900; - var h = 360; - var x = screen.width - w; - var y = screen.height - h; - var debugWindow = window.open('', '', 'width=' + w + ',height=' + h + ',left=' + x + ',top=' + y); - - // switch to window document - localDoc = debugWindow.document; - - popoutRef.doc = localDoc; - localDoc.title = 'Debugger - ' + moduleName; - localDoc.body.style.margin = '0'; - localDoc.body.style.padding = '0'; - var domNode = render(virtualNode, eventNode); - localDoc.body.appendChild(domNode); - - localDoc.addEventListener('keydown', function(event) { - if (event.metaKey && event.which === 82) - { - window.location.reload(); - } - if (event.which === 38) - { - eventNode.tagger({ ctor: 'Up' }); - event.preventDefault(); - } - if (event.which === 40) - { - eventNode.tagger({ ctor: 'Down' }); - event.preventDefault(); - } - }); - - function close() - { - popoutRef.doc = undefined; - debugWindow.close(); - } - window.addEventListener('unload', close); - debugWindow.addEventListener('unload', function() { - popoutRef.doc = undefined; - window.removeEventListener('unload', close); - eventNode.tagger({ ctor: 'Close' }); - }); - - // switch back to the normal document - localDoc = document; - - return domNode; -} - - -// BLOCK EVENTS - -function wrapViewIn(appEventNode, overlayNode, viewIn) -{ - var ignorer = makeIgnorer(overlayNode); - var blocking = 'Normal'; - var overflow; - - var normalTagger = appEventNode.tagger; - var blockTagger = function() {}; - - return function(model) - { - var tuple = viewIn(model); - var newBlocking = tuple._0.ctor; - appEventNode.tagger = newBlocking === 'Normal' ? normalTagger : blockTagger; - if (blocking !== newBlocking) - { - traverse('removeEventListener', ignorer, blocking); - traverse('addEventListener', ignorer, newBlocking); - - if (blocking === 'Normal') - { - overflow = document.body.style.overflow; - document.body.style.overflow = 'hidden'; - } - - if (newBlocking === 'Normal') - { - document.body.style.overflow = overflow; - } - - blocking = newBlocking; - } - return tuple._1; - } -} - -function traverse(verbEventListener, ignorer, blocking) -{ - switch(blocking) - { - case 'Normal': - return; - - case 'Pause': - return traverseHelp(verbEventListener, ignorer, mostEvents); - - case 'Message': - return traverseHelp(verbEventListener, ignorer, allEvents); - } -} - -function traverseHelp(verbEventListener, handler, eventNames) -{ - for (var i = 0; i < eventNames.length; i++) - { - document.body[verbEventListener](eventNames[i], handler, true); - } -} - -function makeIgnorer(overlayNode) -{ - return function(event) - { - if (event.type === 'keydown' && event.metaKey && event.which === 82) - { - return; - } - - var isScroll = event.type === 'scroll' || event.type === 'wheel'; - - var node = event.target; - while (node !== null) - { - if (node.className === 'elm-overlay-message-details' && isScroll) - { - return; - } - - if (node === overlayNode && !isScroll) - { - return; - } - node = node.parentNode; - } - - event.stopPropagation(); - event.preventDefault(); - } -} - -var mostEvents = [ - 'click', 'dblclick', 'mousemove', - 'mouseup', 'mousedown', 'mouseenter', 'mouseleave', - 'touchstart', 'touchend', 'touchcancel', 'touchmove', - 'pointerdown', 'pointerup', 'pointerover', 'pointerout', - 'pointerenter', 'pointerleave', 'pointermove', 'pointercancel', - 'dragstart', 'drag', 'dragend', 'dragenter', 'dragover', 'dragleave', 'drop', - 'keyup', 'keydown', 'keypress', - 'input', 'change', - 'focus', 'blur' -]; - -var allEvents = mostEvents.concat('wheel', 'scroll'); - - -return { - node: node, - text: text, - custom: custom, - map: F2(map), - - on: F3(on), - style: style, - property: F2(property), - attribute: F2(attribute), - attributeNS: F3(attributeNS), - mapProperty: F2(mapProperty), - - lazy: F2(lazy), - lazy2: F3(lazy2), - lazy3: F4(lazy3), - keyedNode: F3(keyedNode), - - program: program, - programWithFlags: programWithFlags, - staticProgram: staticProgram -}; - -}(); - -var _elm_lang$virtual_dom$VirtualDom$programWithFlags = function (impl) { - return A2(_elm_lang$virtual_dom$Native_VirtualDom.programWithFlags, _elm_lang$virtual_dom$VirtualDom_Debug$wrapWithFlags, impl); -}; -var _elm_lang$virtual_dom$VirtualDom$program = function (impl) { - return A2(_elm_lang$virtual_dom$Native_VirtualDom.program, _elm_lang$virtual_dom$VirtualDom_Debug$wrap, impl); -}; -var _elm_lang$virtual_dom$VirtualDom$keyedNode = _elm_lang$virtual_dom$Native_VirtualDom.keyedNode; -var _elm_lang$virtual_dom$VirtualDom$lazy3 = _elm_lang$virtual_dom$Native_VirtualDom.lazy3; -var _elm_lang$virtual_dom$VirtualDom$lazy2 = _elm_lang$virtual_dom$Native_VirtualDom.lazy2; -var _elm_lang$virtual_dom$VirtualDom$lazy = _elm_lang$virtual_dom$Native_VirtualDom.lazy; -var _elm_lang$virtual_dom$VirtualDom$defaultOptions = {stopPropagation: false, preventDefault: false}; -var _elm_lang$virtual_dom$VirtualDom$onWithOptions = _elm_lang$virtual_dom$Native_VirtualDom.on; -var _elm_lang$virtual_dom$VirtualDom$on = F2( - function (eventName, decoder) { - return A3(_elm_lang$virtual_dom$VirtualDom$onWithOptions, eventName, _elm_lang$virtual_dom$VirtualDom$defaultOptions, decoder); - }); -var _elm_lang$virtual_dom$VirtualDom$style = _elm_lang$virtual_dom$Native_VirtualDom.style; -var _elm_lang$virtual_dom$VirtualDom$mapProperty = _elm_lang$virtual_dom$Native_VirtualDom.mapProperty; -var _elm_lang$virtual_dom$VirtualDom$attributeNS = _elm_lang$virtual_dom$Native_VirtualDom.attributeNS; -var _elm_lang$virtual_dom$VirtualDom$attribute = _elm_lang$virtual_dom$Native_VirtualDom.attribute; -var _elm_lang$virtual_dom$VirtualDom$property = _elm_lang$virtual_dom$Native_VirtualDom.property; -var _elm_lang$virtual_dom$VirtualDom$map = _elm_lang$virtual_dom$Native_VirtualDom.map; -var _elm_lang$virtual_dom$VirtualDom$text = _elm_lang$virtual_dom$Native_VirtualDom.text; -var _elm_lang$virtual_dom$VirtualDom$node = _elm_lang$virtual_dom$Native_VirtualDom.node; -var _elm_lang$virtual_dom$VirtualDom$Options = F2( - function (a, b) { - return {stopPropagation: a, preventDefault: b}; - }); -var _elm_lang$virtual_dom$VirtualDom$Node = {ctor: 'Node'}; -var _elm_lang$virtual_dom$VirtualDom$Property = {ctor: 'Property'}; - -var _elm_lang$html$Html$programWithFlags = _elm_lang$virtual_dom$VirtualDom$programWithFlags; -var _elm_lang$html$Html$program = _elm_lang$virtual_dom$VirtualDom$program; -var _elm_lang$html$Html$beginnerProgram = function (_p0) { - var _p1 = _p0; - return _elm_lang$html$Html$program( - { - init: A2( - _elm_lang$core$Platform_Cmd_ops['!'], - _p1.model, - {ctor: '[]'}), - update: F2( - function (msg, model) { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - A2(_p1.update, msg, model), - {ctor: '[]'}); - }), - view: _p1.view, - subscriptions: function (_p2) { - return _elm_lang$core$Platform_Sub$none; - } - }); -}; -var _elm_lang$html$Html$map = _elm_lang$virtual_dom$VirtualDom$map; -var _elm_lang$html$Html$text = _elm_lang$virtual_dom$VirtualDom$text; -var _elm_lang$html$Html$node = _elm_lang$virtual_dom$VirtualDom$node; -var _elm_lang$html$Html$body = _elm_lang$html$Html$node('body'); -var _elm_lang$html$Html$section = _elm_lang$html$Html$node('section'); -var _elm_lang$html$Html$nav = _elm_lang$html$Html$node('nav'); -var _elm_lang$html$Html$article = _elm_lang$html$Html$node('article'); -var _elm_lang$html$Html$aside = _elm_lang$html$Html$node('aside'); -var _elm_lang$html$Html$h1 = _elm_lang$html$Html$node('h1'); -var _elm_lang$html$Html$h2 = _elm_lang$html$Html$node('h2'); -var _elm_lang$html$Html$h3 = _elm_lang$html$Html$node('h3'); -var _elm_lang$html$Html$h4 = _elm_lang$html$Html$node('h4'); -var _elm_lang$html$Html$h5 = _elm_lang$html$Html$node('h5'); -var _elm_lang$html$Html$h6 = _elm_lang$html$Html$node('h6'); -var _elm_lang$html$Html$header = _elm_lang$html$Html$node('header'); -var _elm_lang$html$Html$footer = _elm_lang$html$Html$node('footer'); -var _elm_lang$html$Html$address = _elm_lang$html$Html$node('address'); -var _elm_lang$html$Html$main_ = _elm_lang$html$Html$node('main'); -var _elm_lang$html$Html$p = _elm_lang$html$Html$node('p'); -var _elm_lang$html$Html$hr = _elm_lang$html$Html$node('hr'); -var _elm_lang$html$Html$pre = _elm_lang$html$Html$node('pre'); -var _elm_lang$html$Html$blockquote = _elm_lang$html$Html$node('blockquote'); -var _elm_lang$html$Html$ol = _elm_lang$html$Html$node('ol'); -var _elm_lang$html$Html$ul = _elm_lang$html$Html$node('ul'); -var _elm_lang$html$Html$li = _elm_lang$html$Html$node('li'); -var _elm_lang$html$Html$dl = _elm_lang$html$Html$node('dl'); -var _elm_lang$html$Html$dt = _elm_lang$html$Html$node('dt'); -var _elm_lang$html$Html$dd = _elm_lang$html$Html$node('dd'); -var _elm_lang$html$Html$figure = _elm_lang$html$Html$node('figure'); -var _elm_lang$html$Html$figcaption = _elm_lang$html$Html$node('figcaption'); -var _elm_lang$html$Html$div = _elm_lang$html$Html$node('div'); -var _elm_lang$html$Html$a = _elm_lang$html$Html$node('a'); -var _elm_lang$html$Html$em = _elm_lang$html$Html$node('em'); -var _elm_lang$html$Html$strong = _elm_lang$html$Html$node('strong'); -var _elm_lang$html$Html$small = _elm_lang$html$Html$node('small'); -var _elm_lang$html$Html$s = _elm_lang$html$Html$node('s'); -var _elm_lang$html$Html$cite = _elm_lang$html$Html$node('cite'); -var _elm_lang$html$Html$q = _elm_lang$html$Html$node('q'); -var _elm_lang$html$Html$dfn = _elm_lang$html$Html$node('dfn'); -var _elm_lang$html$Html$abbr = _elm_lang$html$Html$node('abbr'); -var _elm_lang$html$Html$time = _elm_lang$html$Html$node('time'); -var _elm_lang$html$Html$code = _elm_lang$html$Html$node('code'); -var _elm_lang$html$Html$var = _elm_lang$html$Html$node('var'); -var _elm_lang$html$Html$samp = _elm_lang$html$Html$node('samp'); -var _elm_lang$html$Html$kbd = _elm_lang$html$Html$node('kbd'); -var _elm_lang$html$Html$sub = _elm_lang$html$Html$node('sub'); -var _elm_lang$html$Html$sup = _elm_lang$html$Html$node('sup'); -var _elm_lang$html$Html$i = _elm_lang$html$Html$node('i'); -var _elm_lang$html$Html$b = _elm_lang$html$Html$node('b'); -var _elm_lang$html$Html$u = _elm_lang$html$Html$node('u'); -var _elm_lang$html$Html$mark = _elm_lang$html$Html$node('mark'); -var _elm_lang$html$Html$ruby = _elm_lang$html$Html$node('ruby'); -var _elm_lang$html$Html$rt = _elm_lang$html$Html$node('rt'); -var _elm_lang$html$Html$rp = _elm_lang$html$Html$node('rp'); -var _elm_lang$html$Html$bdi = _elm_lang$html$Html$node('bdi'); -var _elm_lang$html$Html$bdo = _elm_lang$html$Html$node('bdo'); -var _elm_lang$html$Html$span = _elm_lang$html$Html$node('span'); -var _elm_lang$html$Html$br = _elm_lang$html$Html$node('br'); -var _elm_lang$html$Html$wbr = _elm_lang$html$Html$node('wbr'); -var _elm_lang$html$Html$ins = _elm_lang$html$Html$node('ins'); -var _elm_lang$html$Html$del = _elm_lang$html$Html$node('del'); -var _elm_lang$html$Html$img = _elm_lang$html$Html$node('img'); -var _elm_lang$html$Html$iframe = _elm_lang$html$Html$node('iframe'); -var _elm_lang$html$Html$embed = _elm_lang$html$Html$node('embed'); -var _elm_lang$html$Html$object = _elm_lang$html$Html$node('object'); -var _elm_lang$html$Html$param = _elm_lang$html$Html$node('param'); -var _elm_lang$html$Html$video = _elm_lang$html$Html$node('video'); -var _elm_lang$html$Html$audio = _elm_lang$html$Html$node('audio'); -var _elm_lang$html$Html$source = _elm_lang$html$Html$node('source'); -var _elm_lang$html$Html$track = _elm_lang$html$Html$node('track'); -var _elm_lang$html$Html$canvas = _elm_lang$html$Html$node('canvas'); -var _elm_lang$html$Html$math = _elm_lang$html$Html$node('math'); -var _elm_lang$html$Html$table = _elm_lang$html$Html$node('table'); -var _elm_lang$html$Html$caption = _elm_lang$html$Html$node('caption'); -var _elm_lang$html$Html$colgroup = _elm_lang$html$Html$node('colgroup'); -var _elm_lang$html$Html$col = _elm_lang$html$Html$node('col'); -var _elm_lang$html$Html$tbody = _elm_lang$html$Html$node('tbody'); -var _elm_lang$html$Html$thead = _elm_lang$html$Html$node('thead'); -var _elm_lang$html$Html$tfoot = _elm_lang$html$Html$node('tfoot'); -var _elm_lang$html$Html$tr = _elm_lang$html$Html$node('tr'); -var _elm_lang$html$Html$td = _elm_lang$html$Html$node('td'); -var _elm_lang$html$Html$th = _elm_lang$html$Html$node('th'); -var _elm_lang$html$Html$form = _elm_lang$html$Html$node('form'); -var _elm_lang$html$Html$fieldset = _elm_lang$html$Html$node('fieldset'); -var _elm_lang$html$Html$legend = _elm_lang$html$Html$node('legend'); -var _elm_lang$html$Html$label = _elm_lang$html$Html$node('label'); -var _elm_lang$html$Html$input = _elm_lang$html$Html$node('input'); -var _elm_lang$html$Html$button = _elm_lang$html$Html$node('button'); -var _elm_lang$html$Html$select = _elm_lang$html$Html$node('select'); -var _elm_lang$html$Html$datalist = _elm_lang$html$Html$node('datalist'); -var _elm_lang$html$Html$optgroup = _elm_lang$html$Html$node('optgroup'); -var _elm_lang$html$Html$option = _elm_lang$html$Html$node('option'); -var _elm_lang$html$Html$textarea = _elm_lang$html$Html$node('textarea'); -var _elm_lang$html$Html$keygen = _elm_lang$html$Html$node('keygen'); -var _elm_lang$html$Html$output = _elm_lang$html$Html$node('output'); -var _elm_lang$html$Html$progress = _elm_lang$html$Html$node('progress'); -var _elm_lang$html$Html$meter = _elm_lang$html$Html$node('meter'); -var _elm_lang$html$Html$details = _elm_lang$html$Html$node('details'); -var _elm_lang$html$Html$summary = _elm_lang$html$Html$node('summary'); -var _elm_lang$html$Html$menuitem = _elm_lang$html$Html$node('menuitem'); -var _elm_lang$html$Html$menu = _elm_lang$html$Html$node('menu'); - -//import Result // - -var _elm_lang$core$Native_Date = function() { - -function fromString(str) -{ - var date = new Date(str); - return isNaN(date.getTime()) - ? _elm_lang$core$Result$Err('Unable to parse \'' + str + '\' as a date. Dates must be in the ISO 8601 format.') - : _elm_lang$core$Result$Ok(date); -} - -var dayTable = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; -var monthTable = - ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; - - -return { - fromString: fromString, - year: function(d) { return d.getFullYear(); }, - month: function(d) { return { ctor: monthTable[d.getMonth()] }; }, - day: function(d) { return d.getDate(); }, - hour: function(d) { return d.getHours(); }, - minute: function(d) { return d.getMinutes(); }, - second: function(d) { return d.getSeconds(); }, - millisecond: function(d) { return d.getMilliseconds(); }, - toTime: function(d) { return d.getTime(); }, - fromTime: function(t) { return new Date(t); }, - dayOfWeek: function(d) { return { ctor: dayTable[d.getDay()] }; } -}; - -}(); -var _elm_lang$core$Task$onError = _elm_lang$core$Native_Scheduler.onError; -var _elm_lang$core$Task$andThen = _elm_lang$core$Native_Scheduler.andThen; -var _elm_lang$core$Task$spawnCmd = F2( - function (router, _p0) { - var _p1 = _p0; - return _elm_lang$core$Native_Scheduler.spawn( - A2( - _elm_lang$core$Task$andThen, - _elm_lang$core$Platform$sendToApp(router), - _p1._0)); - }); -var _elm_lang$core$Task$fail = _elm_lang$core$Native_Scheduler.fail; -var _elm_lang$core$Task$mapError = F2( - function (convert, task) { - return A2( - _elm_lang$core$Task$onError, - function (_p2) { - return _elm_lang$core$Task$fail( - convert(_p2)); - }, - task); - }); -var _elm_lang$core$Task$succeed = _elm_lang$core$Native_Scheduler.succeed; -var _elm_lang$core$Task$map = F2( - function (func, taskA) { - return A2( - _elm_lang$core$Task$andThen, - function (a) { - return _elm_lang$core$Task$succeed( - func(a)); - }, - taskA); - }); -var _elm_lang$core$Task$map2 = F3( - function (func, taskA, taskB) { - return A2( - _elm_lang$core$Task$andThen, - function (a) { - return A2( - _elm_lang$core$Task$andThen, - function (b) { - return _elm_lang$core$Task$succeed( - A2(func, a, b)); - }, - taskB); - }, - taskA); - }); -var _elm_lang$core$Task$map3 = F4( - function (func, taskA, taskB, taskC) { - return A2( - _elm_lang$core$Task$andThen, - function (a) { - return A2( - _elm_lang$core$Task$andThen, - function (b) { - return A2( - _elm_lang$core$Task$andThen, - function (c) { - return _elm_lang$core$Task$succeed( - A3(func, a, b, c)); - }, - taskC); - }, - taskB); - }, - taskA); - }); -var _elm_lang$core$Task$map4 = F5( - function (func, taskA, taskB, taskC, taskD) { - return A2( - _elm_lang$core$Task$andThen, - function (a) { - return A2( - _elm_lang$core$Task$andThen, - function (b) { - return A2( - _elm_lang$core$Task$andThen, - function (c) { - return A2( - _elm_lang$core$Task$andThen, - function (d) { - return _elm_lang$core$Task$succeed( - A4(func, a, b, c, d)); - }, - taskD); - }, - taskC); - }, - taskB); - }, - taskA); - }); -var _elm_lang$core$Task$map5 = F6( - function (func, taskA, taskB, taskC, taskD, taskE) { - return A2( - _elm_lang$core$Task$andThen, - function (a) { - return A2( - _elm_lang$core$Task$andThen, - function (b) { - return A2( - _elm_lang$core$Task$andThen, - function (c) { - return A2( - _elm_lang$core$Task$andThen, - function (d) { - return A2( - _elm_lang$core$Task$andThen, - function (e) { - return _elm_lang$core$Task$succeed( - A5(func, a, b, c, d, e)); - }, - taskE); - }, - taskD); - }, - taskC); - }, - taskB); - }, - taskA); - }); -var _elm_lang$core$Task$sequence = function (tasks) { - var _p3 = tasks; - if (_p3.ctor === '[]') { - return _elm_lang$core$Task$succeed( - {ctor: '[]'}); - } else { - return A3( - _elm_lang$core$Task$map2, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - _p3._0, - _elm_lang$core$Task$sequence(_p3._1)); - } -}; -var _elm_lang$core$Task$onEffects = F3( - function (router, commands, state) { - return A2( - _elm_lang$core$Task$map, - function (_p4) { - return {ctor: '_Tuple0'}; - }, - _elm_lang$core$Task$sequence( - A2( - _elm_lang$core$List$map, - _elm_lang$core$Task$spawnCmd(router), - commands))); - }); -var _elm_lang$core$Task$init = _elm_lang$core$Task$succeed( - {ctor: '_Tuple0'}); -var _elm_lang$core$Task$onSelfMsg = F3( - function (_p7, _p6, _p5) { - return _elm_lang$core$Task$succeed( - {ctor: '_Tuple0'}); - }); -var _elm_lang$core$Task$command = _elm_lang$core$Native_Platform.leaf('Task'); -var _elm_lang$core$Task$Perform = function (a) { - return {ctor: 'Perform', _0: a}; -}; -var _elm_lang$core$Task$perform = F2( - function (toMessage, task) { - return _elm_lang$core$Task$command( - _elm_lang$core$Task$Perform( - A2(_elm_lang$core$Task$map, toMessage, task))); - }); -var _elm_lang$core$Task$attempt = F2( - function (resultToMessage, task) { - return _elm_lang$core$Task$command( - _elm_lang$core$Task$Perform( - A2( - _elm_lang$core$Task$onError, - function (_p8) { - return _elm_lang$core$Task$succeed( - resultToMessage( - _elm_lang$core$Result$Err(_p8))); - }, - A2( - _elm_lang$core$Task$andThen, - function (_p9) { - return _elm_lang$core$Task$succeed( - resultToMessage( - _elm_lang$core$Result$Ok(_p9))); - }, - task)))); - }); -var _elm_lang$core$Task$cmdMap = F2( - function (tagger, _p10) { - var _p11 = _p10; - return _elm_lang$core$Task$Perform( - A2(_elm_lang$core$Task$map, tagger, _p11._0)); - }); -_elm_lang$core$Native_Platform.effectManagers['Task'] = {pkg: 'elm-lang/core', init: _elm_lang$core$Task$init, onEffects: _elm_lang$core$Task$onEffects, onSelfMsg: _elm_lang$core$Task$onSelfMsg, tag: 'cmd', cmdMap: _elm_lang$core$Task$cmdMap}; - -//import Native.Scheduler // - -var _elm_lang$core$Native_Time = function() { - -var now = _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) -{ - callback(_elm_lang$core$Native_Scheduler.succeed(Date.now())); -}); - -function setInterval_(interval, task) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - var id = setInterval(function() { - _elm_lang$core$Native_Scheduler.rawSpawn(task); - }, interval); - - return function() { clearInterval(id); }; - }); -} - -return { - now: now, - setInterval_: F2(setInterval_) -}; - -}(); -var _elm_lang$core$Time$setInterval = _elm_lang$core$Native_Time.setInterval_; -var _elm_lang$core$Time$spawnHelp = F3( - function (router, intervals, processes) { - var _p0 = intervals; - if (_p0.ctor === '[]') { - return _elm_lang$core$Task$succeed(processes); - } else { - var _p1 = _p0._0; - var spawnRest = function (id) { - return A3( - _elm_lang$core$Time$spawnHelp, - router, - _p0._1, - A3(_elm_lang$core$Dict$insert, _p1, id, processes)); - }; - var spawnTimer = _elm_lang$core$Native_Scheduler.spawn( - A2( - _elm_lang$core$Time$setInterval, - _p1, - A2(_elm_lang$core$Platform$sendToSelf, router, _p1))); - return A2(_elm_lang$core$Task$andThen, spawnRest, spawnTimer); - } - }); -var _elm_lang$core$Time$addMySub = F2( - function (_p2, state) { - var _p3 = _p2; - var _p6 = _p3._1; - var _p5 = _p3._0; - var _p4 = A2(_elm_lang$core$Dict$get, _p5, state); - if (_p4.ctor === 'Nothing') { - return A3( - _elm_lang$core$Dict$insert, - _p5, - { - ctor: '::', - _0: _p6, - _1: {ctor: '[]'} - }, - state); - } else { - return A3( - _elm_lang$core$Dict$insert, - _p5, - {ctor: '::', _0: _p6, _1: _p4._0}, - state); - } - }); -var _elm_lang$core$Time$inMilliseconds = function (t) { - return t; -}; -var _elm_lang$core$Time$millisecond = 1; -var _elm_lang$core$Time$second = 1000 * _elm_lang$core$Time$millisecond; -var _elm_lang$core$Time$minute = 60 * _elm_lang$core$Time$second; -var _elm_lang$core$Time$hour = 60 * _elm_lang$core$Time$minute; -var _elm_lang$core$Time$inHours = function (t) { - return t / _elm_lang$core$Time$hour; -}; -var _elm_lang$core$Time$inMinutes = function (t) { - return t / _elm_lang$core$Time$minute; -}; -var _elm_lang$core$Time$inSeconds = function (t) { - return t / _elm_lang$core$Time$second; -}; -var _elm_lang$core$Time$now = _elm_lang$core$Native_Time.now; -var _elm_lang$core$Time$onSelfMsg = F3( - function (router, interval, state) { - var _p7 = A2(_elm_lang$core$Dict$get, interval, state.taggers); - if (_p7.ctor === 'Nothing') { - return _elm_lang$core$Task$succeed(state); - } else { - var tellTaggers = function (time) { - return _elm_lang$core$Task$sequence( - A2( - _elm_lang$core$List$map, - function (tagger) { - return A2( - _elm_lang$core$Platform$sendToApp, - router, - tagger(time)); - }, - _p7._0)); - }; - return A2( - _elm_lang$core$Task$andThen, - function (_p8) { - return _elm_lang$core$Task$succeed(state); - }, - A2(_elm_lang$core$Task$andThen, tellTaggers, _elm_lang$core$Time$now)); - } - }); -var _elm_lang$core$Time$subscription = _elm_lang$core$Native_Platform.leaf('Time'); -var _elm_lang$core$Time$State = F2( - function (a, b) { - return {taggers: a, processes: b}; - }); -var _elm_lang$core$Time$init = _elm_lang$core$Task$succeed( - A2(_elm_lang$core$Time$State, _elm_lang$core$Dict$empty, _elm_lang$core$Dict$empty)); -var _elm_lang$core$Time$onEffects = F3( - function (router, subs, _p9) { - var _p10 = _p9; - var rightStep = F3( - function (_p12, id, _p11) { - var _p13 = _p11; - return { - ctor: '_Tuple3', - _0: _p13._0, - _1: _p13._1, - _2: A2( - _elm_lang$core$Task$andThen, - function (_p14) { - return _p13._2; - }, - _elm_lang$core$Native_Scheduler.kill(id)) - }; - }); - var bothStep = F4( - function (interval, taggers, id, _p15) { - var _p16 = _p15; - return { - ctor: '_Tuple3', - _0: _p16._0, - _1: A3(_elm_lang$core$Dict$insert, interval, id, _p16._1), - _2: _p16._2 - }; - }); - var leftStep = F3( - function (interval, taggers, _p17) { - var _p18 = _p17; - return { - ctor: '_Tuple3', - _0: {ctor: '::', _0: interval, _1: _p18._0}, - _1: _p18._1, - _2: _p18._2 - }; - }); - var newTaggers = A3(_elm_lang$core$List$foldl, _elm_lang$core$Time$addMySub, _elm_lang$core$Dict$empty, subs); - var _p19 = A6( - _elm_lang$core$Dict$merge, - leftStep, - bothStep, - rightStep, - newTaggers, - _p10.processes, - { - ctor: '_Tuple3', - _0: {ctor: '[]'}, - _1: _elm_lang$core$Dict$empty, - _2: _elm_lang$core$Task$succeed( - {ctor: '_Tuple0'}) - }); - var spawnList = _p19._0; - var existingDict = _p19._1; - var killTask = _p19._2; - return A2( - _elm_lang$core$Task$andThen, - function (newProcesses) { - return _elm_lang$core$Task$succeed( - A2(_elm_lang$core$Time$State, newTaggers, newProcesses)); - }, - A2( - _elm_lang$core$Task$andThen, - function (_p20) { - return A3(_elm_lang$core$Time$spawnHelp, router, spawnList, existingDict); - }, - killTask)); - }); -var _elm_lang$core$Time$Every = F2( - function (a, b) { - return {ctor: 'Every', _0: a, _1: b}; - }); -var _elm_lang$core$Time$every = F2( - function (interval, tagger) { - return _elm_lang$core$Time$subscription( - A2(_elm_lang$core$Time$Every, interval, tagger)); - }); -var _elm_lang$core$Time$subMap = F2( - function (f, _p21) { - var _p22 = _p21; - return A2( - _elm_lang$core$Time$Every, - _p22._0, - function (_p23) { - return f( - _p22._1(_p23)); - }); - }); -_elm_lang$core$Native_Platform.effectManagers['Time'] = {pkg: 'elm-lang/core', init: _elm_lang$core$Time$init, onEffects: _elm_lang$core$Time$onEffects, onSelfMsg: _elm_lang$core$Time$onSelfMsg, tag: 'sub', subMap: _elm_lang$core$Time$subMap}; - -var _elm_lang$core$Date$millisecond = _elm_lang$core$Native_Date.millisecond; -var _elm_lang$core$Date$second = _elm_lang$core$Native_Date.second; -var _elm_lang$core$Date$minute = _elm_lang$core$Native_Date.minute; -var _elm_lang$core$Date$hour = _elm_lang$core$Native_Date.hour; -var _elm_lang$core$Date$dayOfWeek = _elm_lang$core$Native_Date.dayOfWeek; -var _elm_lang$core$Date$day = _elm_lang$core$Native_Date.day; -var _elm_lang$core$Date$month = _elm_lang$core$Native_Date.month; -var _elm_lang$core$Date$year = _elm_lang$core$Native_Date.year; -var _elm_lang$core$Date$fromTime = _elm_lang$core$Native_Date.fromTime; -var _elm_lang$core$Date$toTime = _elm_lang$core$Native_Date.toTime; -var _elm_lang$core$Date$fromString = _elm_lang$core$Native_Date.fromString; -var _elm_lang$core$Date$now = A2(_elm_lang$core$Task$map, _elm_lang$core$Date$fromTime, _elm_lang$core$Time$now); -var _elm_lang$core$Date$Date = {ctor: 'Date'}; -var _elm_lang$core$Date$Sun = {ctor: 'Sun'}; -var _elm_lang$core$Date$Sat = {ctor: 'Sat'}; -var _elm_lang$core$Date$Fri = {ctor: 'Fri'}; -var _elm_lang$core$Date$Thu = {ctor: 'Thu'}; -var _elm_lang$core$Date$Wed = {ctor: 'Wed'}; -var _elm_lang$core$Date$Tue = {ctor: 'Tue'}; -var _elm_lang$core$Date$Mon = {ctor: 'Mon'}; -var _elm_lang$core$Date$Dec = {ctor: 'Dec'}; -var _elm_lang$core$Date$Nov = {ctor: 'Nov'}; -var _elm_lang$core$Date$Oct = {ctor: 'Oct'}; -var _elm_lang$core$Date$Sep = {ctor: 'Sep'}; -var _elm_lang$core$Date$Aug = {ctor: 'Aug'}; -var _elm_lang$core$Date$Jul = {ctor: 'Jul'}; -var _elm_lang$core$Date$Jun = {ctor: 'Jun'}; -var _elm_lang$core$Date$May = {ctor: 'May'}; -var _elm_lang$core$Date$Apr = {ctor: 'Apr'}; -var _elm_lang$core$Date$Mar = {ctor: 'Mar'}; -var _elm_lang$core$Date$Feb = {ctor: 'Feb'}; -var _elm_lang$core$Date$Jan = {ctor: 'Jan'}; - -var _eeue56$elm_all_dict$EveryDict$foldr = F3( - function (f, acc, t) { - foldr: - while (true) { - var _p0 = t; - if (_p0.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v1 = f, - _v2 = A3( - f, - _p0._1, - _p0._2, - A3(_eeue56$elm_all_dict$EveryDict$foldr, f, acc, _p0._4)), - _v3 = _p0._3; - f = _v1; - acc = _v2; - t = _v3; - continue foldr; - } - } - }); -var _eeue56$elm_all_dict$EveryDict$keys = function (dict) { - return A3( - _eeue56$elm_all_dict$EveryDict$foldr, - F3( - function (key, value, keyList) { - return {ctor: '::', _0: key, _1: keyList}; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$EveryDict$values = function (dict) { - return A3( - _eeue56$elm_all_dict$EveryDict$foldr, - F3( - function (key, value, valueList) { - return {ctor: '::', _0: value, _1: valueList}; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$EveryDict$toList = function (dict) { - return A3( - _eeue56$elm_all_dict$EveryDict$foldr, - F3( - function (key, value, list) { - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: key, _1: value}, - _1: list - }; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$EveryDict$foldl = F3( - function (f, acc, dict) { - foldl: - while (true) { - var _p1 = dict; - if (_p1.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v5 = f, - _v6 = A3( - f, - _p1._1, - _p1._2, - A3(_eeue56$elm_all_dict$EveryDict$foldl, f, acc, _p1._3)), - _v7 = _p1._4; - f = _v5; - acc = _v6; - dict = _v7; - continue foldl; - } - } - }); -var _eeue56$elm_all_dict$EveryDict$isBBlack = function (dict) { - var _p2 = dict; - _v8_2: - do { - if (_p2.ctor === 'RBNode_elm_builtin') { - if (_p2._0.ctor === 'BBlack') { - return true; - } else { - break _v8_2; - } - } else { - if (_p2._0.ctor === 'LBBlack') { - return true; - } else { - break _v8_2; - } - } - } while(false); - return false; -}; -var _eeue56$elm_all_dict$EveryDict$showFlag = function (f) { - var _p3 = f; - switch (_p3.ctor) { - case 'Insert': - return 'Insert'; - case 'Remove': - return 'Remove'; - default: - return 'Same'; - } -}; -var _eeue56$elm_all_dict$EveryDict$sizeHelp = F2( - function (n, dict) { - sizeHelp: - while (true) { - var _p4 = dict; - if (_p4.ctor === 'RBEmpty_elm_builtin') { - return n; - } else { - var _v11 = A2(_eeue56$elm_all_dict$EveryDict$sizeHelp, n + 1, _p4._4), - _v12 = _p4._3; - n = _v11; - dict = _v12; - continue sizeHelp; - } - } - }); -var _eeue56$elm_all_dict$EveryDict$size = function (dict) { - return A2(_eeue56$elm_all_dict$EveryDict$sizeHelp, 0, dict); -}; -var _eeue56$elm_all_dict$EveryDict$isEmpty = function (dict) { - var _p5 = dict; - if (_p5.ctor === 'RBEmpty_elm_builtin') { - return true; - } else { - return false; - } -}; -var _eeue56$elm_all_dict$EveryDict$max = function (dict) { - max: - while (true) { - var _p6 = dict; - if (_p6.ctor === 'RBNode_elm_builtin') { - if (_p6._4.ctor === 'RBEmpty_elm_builtin') { - return {ctor: '_Tuple2', _0: _p6._1, _1: _p6._2}; - } else { - var _v15 = _p6._4; - dict = _v15; - continue max; - } - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'EveryDict', - { - start: {line: 127, column: 5}, - end: {line: 135, column: 51} - }, - _p6)('(max Empty) is not defined'); - } - } -}; -var _eeue56$elm_all_dict$EveryDict$min = function (dict) { - min: - while (true) { - var _p8 = dict; - if (_p8.ctor === 'RBNode_elm_builtin') { - if ((_p8._3.ctor === 'RBEmpty_elm_builtin') && (_p8._3._0.ctor === 'LBlack')) { - return {ctor: '_Tuple2', _0: _p8._1, _1: _p8._2}; - } else { - var _v17 = _p8._3; - dict = _v17; - continue min; - } - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'EveryDict', - { - start: {line: 115, column: 5}, - end: {line: 123, column: 51} - }, - _p8)('(min Empty) is not defined'); - } - } -}; -var _eeue56$elm_all_dict$EveryDict$eq = F2( - function (first, second) { - return _elm_lang$core$Native_Utils.eq( - _eeue56$elm_all_dict$EveryDict$toList(first), - _eeue56$elm_all_dict$EveryDict$toList(second)); - }); -var _eeue56$elm_all_dict$EveryDict$ord = _elm_lang$core$Basics$toString; -var _eeue56$elm_all_dict$EveryDict$get_ = F2( - function (targetKey, dict) { - get_: - while (true) { - var _p10 = dict; - if (_p10.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p11 = A2( - _elm_lang$core$Basics$compare, - _eeue56$elm_all_dict$EveryDict$ord(targetKey), - _eeue56$elm_all_dict$EveryDict$ord(_p10._1)); - switch (_p11.ctor) { - case 'LT': - var _v20 = targetKey, - _v21 = _p10._3; - targetKey = _v20; - dict = _v21; - continue get_; - case 'EQ': - return _elm_lang$core$Maybe$Just(_p10._2); - default: - var _v22 = targetKey, - _v23 = _p10._4; - targetKey = _v22; - dict = _v23; - continue get_; - } - } - } - }); -var _eeue56$elm_all_dict$EveryDict$get = F2( - function (targetKey, dict) { - return A2(_eeue56$elm_all_dict$EveryDict$get_, targetKey, dict); - }); -var _eeue56$elm_all_dict$EveryDict$member = F2( - function (key, dict) { - var _p12 = A2(_eeue56$elm_all_dict$EveryDict$get_, key, dict); - if (_p12.ctor === 'Just') { - return true; - } else { - return false; - } - }); -var _eeue56$elm_all_dict$EveryDict$showLColor = function (color) { - var _p13 = color; - if (_p13.ctor === 'LBlack') { - return 'LBlack'; - } else { - return 'LBBlack'; - } -}; -var _eeue56$elm_all_dict$EveryDict$showNColor = function (c) { - var _p14 = c; - switch (_p14.ctor) { - case 'Red': - return 'Red'; - case 'Black': - return 'Black'; - case 'BBlack': - return 'BBlack'; - default: - return 'NBlack'; - } -}; -var _eeue56$elm_all_dict$EveryDict$reportRemBug = F4( - function (msg, c, lgot, rgot) { - return _elm_lang$core$Native_Utils.crash( - 'EveryDict', - { - start: {line: 320, column: 3}, - end: {line: 320, column: 14} - })( - _elm_lang$core$String$concat( - { - ctor: '::', - _0: 'Internal red-black tree invariant violated, expected ', - _1: { - ctor: '::', - _0: msg, - _1: { - ctor: '::', - _0: ' and got ', - _1: { - ctor: '::', - _0: _eeue56$elm_all_dict$EveryDict$showNColor(c), - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: lgot, - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: rgot, - _1: { - ctor: '::', - _0: '\nPlease report this bug to ', - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - })); - }); -var _eeue56$elm_all_dict$EveryDict$NBlack = {ctor: 'NBlack'}; -var _eeue56$elm_all_dict$EveryDict$BBlack = {ctor: 'BBlack'}; -var _eeue56$elm_all_dict$EveryDict$Black = {ctor: 'Black'}; -var _eeue56$elm_all_dict$EveryDict$blackish = function (t) { - var _p15 = t; - if (_p15.ctor === 'RBNode_elm_builtin') { - var _p16 = _p15._0; - return _elm_lang$core$Native_Utils.eq(_p16, _eeue56$elm_all_dict$EveryDict$Black) || _elm_lang$core$Native_Utils.eq(_p16, _eeue56$elm_all_dict$EveryDict$BBlack); - } else { - return true; - } -}; -var _eeue56$elm_all_dict$EveryDict$Red = {ctor: 'Red'}; -var _eeue56$elm_all_dict$EveryDict$moreBlack = function (color) { - var _p17 = color; - switch (_p17.ctor) { - case 'Black': - return _eeue56$elm_all_dict$EveryDict$BBlack; - case 'Red': - return _eeue56$elm_all_dict$EveryDict$Black; - case 'NBlack': - return _eeue56$elm_all_dict$EveryDict$Red; - default: - return _elm_lang$core$Native_Utils.crashCase( - 'EveryDict', - { - start: {line: 294, column: 5}, - end: {line: 298, column: 73} - }, - _p17)('Can\'t make a double black node more black!'); - } -}; -var _eeue56$elm_all_dict$EveryDict$lessBlack = function (color) { - var _p19 = color; - switch (_p19.ctor) { - case 'BBlack': - return _eeue56$elm_all_dict$EveryDict$Black; - case 'Black': - return _eeue56$elm_all_dict$EveryDict$Red; - case 'Red': - return _eeue56$elm_all_dict$EveryDict$NBlack; - default: - return _elm_lang$core$Native_Utils.crashCase( - 'EveryDict', - { - start: {line: 303, column: 5}, - end: {line: 307, column: 75} - }, - _p19)('Can\'t make a negative black node less black!'); - } -}; -var _eeue56$elm_all_dict$EveryDict$LBBlack = {ctor: 'LBBlack'}; -var _eeue56$elm_all_dict$EveryDict$LBlack = {ctor: 'LBlack'}; -var _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin = function (a) { - return {ctor: 'RBEmpty_elm_builtin', _0: a}; -}; -var _eeue56$elm_all_dict$EveryDict$empty = _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_eeue56$elm_all_dict$EveryDict$LBlack); -var _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin = F5( - function (a, b, c, d, e) { - return {ctor: 'RBNode_elm_builtin', _0: a, _1: b, _2: c, _3: d, _4: e}; - }); -var _eeue56$elm_all_dict$EveryDict$ensureBlackRoot = function (dict) { - var _p21 = dict; - if (_p21.ctor === 'RBNode_elm_builtin') { - switch (_p21._0.ctor) { - case 'Red': - return A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p21._1, _p21._2, _p21._3, _p21._4); - case 'Black': - return dict; - default: - return dict; - } - } else { - return dict; - } -}; -var _eeue56$elm_all_dict$EveryDict$lessBlackTree = function (dict) { - var _p22 = dict; - if (_p22.ctor === 'RBNode_elm_builtin') { - return A5( - _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$EveryDict$lessBlack(_p22._0), - _p22._1, - _p22._2, - _p22._3, - _p22._4); - } else { - if (_p22._0.ctor === 'LBBlack') { - return _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_eeue56$elm_all_dict$EveryDict$LBlack); - } else { - return dict; - } - } -}; -var _eeue56$elm_all_dict$EveryDict$blacken = function (t) { - var _p23 = t; - if (_p23.ctor === 'RBEmpty_elm_builtin') { - return _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_eeue56$elm_all_dict$EveryDict$LBlack); - } else { - return A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p23._1, _p23._2, _p23._3, _p23._4); - } -}; -var _eeue56$elm_all_dict$EveryDict$redden = function (t) { - var _p24 = t; - if (_p24.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Native_Utils.crashCase( - 'EveryDict', - { - start: {line: 440, column: 5}, - end: {line: 442, column: 69} - }, - _p24)('can\'t make a Leaf red'); - } else { - return A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Red, _p24._1, _p24._2, _p24._3, _p24._4); - } -}; -var _eeue56$elm_all_dict$EveryDict$balance_node = function (t) { - var assemble = function (col) { - return function (xk) { - return function (xv) { - return function (yk) { - return function (yv) { - return function (zk) { - return function (zv) { - return function (a) { - return function (b) { - return function (c) { - return function (d) { - return A5( - _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$EveryDict$lessBlack(col), - yk, - yv, - A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, xk, xv, a, b), - A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, zk, zv, c, d)); - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - if (_eeue56$elm_all_dict$EveryDict$blackish(t)) { - var _p26 = t; - _v34_6: - do { - _v34_5: - do { - _v34_4: - do { - _v34_3: - do { - _v34_2: - do { - _v34_1: - do { - _v34_0: - do { - if (_p26.ctor === 'RBNode_elm_builtin') { - if (_p26._3.ctor === 'RBNode_elm_builtin') { - if (_p26._4.ctor === 'RBNode_elm_builtin') { - switch (_p26._3._0.ctor) { - case 'Red': - switch (_p26._4._0.ctor) { - case 'Red': - if ((_p26._3._3.ctor === 'RBNode_elm_builtin') && (_p26._3._3._0.ctor === 'Red')) { - break _v34_0; - } else { - if ((_p26._3._4.ctor === 'RBNode_elm_builtin') && (_p26._3._4._0.ctor === 'Red')) { - break _v34_1; - } else { - if ((_p26._4._3.ctor === 'RBNode_elm_builtin') && (_p26._4._3._0.ctor === 'Red')) { - break _v34_2; - } else { - if ((_p26._4._4.ctor === 'RBNode_elm_builtin') && (_p26._4._4._0.ctor === 'Red')) { - break _v34_3; - } else { - break _v34_6; - } - } - } - } - case 'NBlack': - if ((_p26._3._3.ctor === 'RBNode_elm_builtin') && (_p26._3._3._0.ctor === 'Red')) { - break _v34_0; - } else { - if ((_p26._3._4.ctor === 'RBNode_elm_builtin') && (_p26._3._4._0.ctor === 'Red')) { - break _v34_1; - } else { - if (((_p26._0.ctor === 'BBlack') && (_p26._4._3.ctor === 'RBNode_elm_builtin')) && (_p26._4._3._0.ctor === 'Black')) { - break _v34_4; - } else { - break _v34_6; - } - } - } - default: - if ((_p26._3._3.ctor === 'RBNode_elm_builtin') && (_p26._3._3._0.ctor === 'Red')) { - break _v34_0; - } else { - if ((_p26._3._4.ctor === 'RBNode_elm_builtin') && (_p26._3._4._0.ctor === 'Red')) { - break _v34_1; - } else { - break _v34_6; - } - } - } - case 'NBlack': - switch (_p26._4._0.ctor) { - case 'Red': - if ((_p26._4._3.ctor === 'RBNode_elm_builtin') && (_p26._4._3._0.ctor === 'Red')) { - break _v34_2; - } else { - if ((_p26._4._4.ctor === 'RBNode_elm_builtin') && (_p26._4._4._0.ctor === 'Red')) { - break _v34_3; - } else { - if (((_p26._0.ctor === 'BBlack') && (_p26._3._4.ctor === 'RBNode_elm_builtin')) && (_p26._3._4._0.ctor === 'Black')) { - break _v34_5; - } else { - break _v34_6; - } - } - } - case 'NBlack': - if (_p26._0.ctor === 'BBlack') { - if ((_p26._4._3.ctor === 'RBNode_elm_builtin') && (_p26._4._3._0.ctor === 'Black')) { - break _v34_4; - } else { - if ((_p26._3._4.ctor === 'RBNode_elm_builtin') && (_p26._3._4._0.ctor === 'Black')) { - break _v34_5; - } else { - break _v34_6; - } - } - } else { - break _v34_6; - } - default: - if (((_p26._0.ctor === 'BBlack') && (_p26._3._4.ctor === 'RBNode_elm_builtin')) && (_p26._3._4._0.ctor === 'Black')) { - break _v34_5; - } else { - break _v34_6; - } - } - default: - switch (_p26._4._0.ctor) { - case 'Red': - if ((_p26._4._3.ctor === 'RBNode_elm_builtin') && (_p26._4._3._0.ctor === 'Red')) { - break _v34_2; - } else { - if ((_p26._4._4.ctor === 'RBNode_elm_builtin') && (_p26._4._4._0.ctor === 'Red')) { - break _v34_3; - } else { - break _v34_6; - } - } - case 'NBlack': - if (((_p26._0.ctor === 'BBlack') && (_p26._4._3.ctor === 'RBNode_elm_builtin')) && (_p26._4._3._0.ctor === 'Black')) { - break _v34_4; - } else { - break _v34_6; - } - default: - break _v34_6; - } - } - } else { - switch (_p26._3._0.ctor) { - case 'Red': - if ((_p26._3._3.ctor === 'RBNode_elm_builtin') && (_p26._3._3._0.ctor === 'Red')) { - break _v34_0; - } else { - if ((_p26._3._4.ctor === 'RBNode_elm_builtin') && (_p26._3._4._0.ctor === 'Red')) { - break _v34_1; - } else { - break _v34_6; - } - } - case 'NBlack': - if (((_p26._0.ctor === 'BBlack') && (_p26._3._4.ctor === 'RBNode_elm_builtin')) && (_p26._3._4._0.ctor === 'Black')) { - break _v34_5; - } else { - break _v34_6; - } - default: - break _v34_6; - } - } - } else { - if (_p26._4.ctor === 'RBNode_elm_builtin') { - switch (_p26._4._0.ctor) { - case 'Red': - if ((_p26._4._3.ctor === 'RBNode_elm_builtin') && (_p26._4._3._0.ctor === 'Red')) { - break _v34_2; - } else { - if ((_p26._4._4.ctor === 'RBNode_elm_builtin') && (_p26._4._4._0.ctor === 'Red')) { - break _v34_3; - } else { - break _v34_6; - } - } - case 'NBlack': - if (((_p26._0.ctor === 'BBlack') && (_p26._4._3.ctor === 'RBNode_elm_builtin')) && (_p26._4._3._0.ctor === 'Black')) { - break _v34_4; - } else { - break _v34_6; - } - default: - break _v34_6; - } - } else { - break _v34_6; - } - } - } else { - break _v34_6; - } - } while(false); - return assemble(_p26._0)(_p26._3._3._1)(_p26._3._3._2)(_p26._3._1)(_p26._3._2)(_p26._1)(_p26._2)(_p26._3._3._3)(_p26._3._3._4)(_p26._3._4)(_p26._4); - } while(false); - return assemble(_p26._0)(_p26._3._1)(_p26._3._2)(_p26._3._4._1)(_p26._3._4._2)(_p26._1)(_p26._2)(_p26._3._3)(_p26._3._4._3)(_p26._3._4._4)(_p26._4); - } while(false); - return assemble(_p26._0)(_p26._1)(_p26._2)(_p26._4._3._1)(_p26._4._3._2)(_p26._4._1)(_p26._4._2)(_p26._3)(_p26._4._3._3)(_p26._4._3._4)(_p26._4._4); - } while(false); - return assemble(_p26._0)(_p26._1)(_p26._2)(_p26._4._1)(_p26._4._2)(_p26._4._4._1)(_p26._4._4._2)(_p26._3)(_p26._4._3)(_p26._4._4._3)(_p26._4._4._4); - } while(false); - var _p28 = _p26._4._4; - var _p27 = _p28; - if ((_p27.ctor === 'RBNode_elm_builtin') && (_p27._0.ctor === 'Black')) { - return A5( - _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$EveryDict$Black, - _p26._4._3._1, - _p26._4._3._2, - A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p26._1, _p26._2, _p26._3, _p26._4._3._3), - A5( - _eeue56$elm_all_dict$EveryDict$balance, - _eeue56$elm_all_dict$EveryDict$Black, - _p26._4._1, - _p26._4._2, - _p26._4._3._4, - _eeue56$elm_all_dict$EveryDict$redden(_p28))); - } else { - return t; - } - } while(false); - var _p30 = _p26._3._3; - var _p29 = _p30; - if ((_p29.ctor === 'RBNode_elm_builtin') && (_p29._0.ctor === 'Black')) { - return A5( - _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$EveryDict$Black, - _p26._3._4._1, - _p26._3._4._2, - A5( - _eeue56$elm_all_dict$EveryDict$balance, - _eeue56$elm_all_dict$EveryDict$Black, - _p26._3._1, - _p26._3._2, - _eeue56$elm_all_dict$EveryDict$redden(_p30), - _p26._3._4._3), - A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p26._1, _p26._2, _p26._3._4._4, _p26._4)); - } else { - return t; - } - } while(false); - return t; - } else { - return t; - } -}; -var _eeue56$elm_all_dict$EveryDict$balance = F5( - function (c, k, v, l, r) { - return _eeue56$elm_all_dict$EveryDict$balance_node( - A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, c, k, v, l, r)); - }); -var _eeue56$elm_all_dict$EveryDict$bubble = F5( - function (c, k, v, l, r) { - return (_eeue56$elm_all_dict$EveryDict$isBBlack(l) || _eeue56$elm_all_dict$EveryDict$isBBlack(r)) ? A5( - _eeue56$elm_all_dict$EveryDict$balance, - _eeue56$elm_all_dict$EveryDict$moreBlack(c), - k, - v, - _eeue56$elm_all_dict$EveryDict$lessBlackTree(l), - _eeue56$elm_all_dict$EveryDict$lessBlackTree(r)) : A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, c, k, v, l, r); - }); -var _eeue56$elm_all_dict$EveryDict$remove_max = F5( - function (c, k, v, l, r) { - var _p31 = r; - if (_p31.ctor === 'RBEmpty_elm_builtin') { - return A3(_eeue56$elm_all_dict$EveryDict$rem, c, l, r); - } else { - return A5( - _eeue56$elm_all_dict$EveryDict$bubble, - c, - k, - v, - l, - A5(_eeue56$elm_all_dict$EveryDict$remove_max, _p31._0, _p31._1, _p31._2, _p31._3, _p31._4)); - } - }); -var _eeue56$elm_all_dict$EveryDict$rem = F3( - function (c, l, r) { - var _p32 = {ctor: '_Tuple2', _0: l, _1: r}; - if (_p32._0.ctor === 'RBEmpty_elm_builtin') { - if (_p32._1.ctor === 'RBEmpty_elm_builtin') { - var _p33 = c; - switch (_p33.ctor) { - case 'Red': - return _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_eeue56$elm_all_dict$EveryDict$LBlack); - case 'Black': - return _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_eeue56$elm_all_dict$EveryDict$LBBlack); - default: - return _eeue56$elm_all_dict$Native_Debug.crash('cannot have bblack or nblack nodes at this point'); - } - } else { - var _p36 = _p32._1._0; - var _p35 = _p32._0._0; - var _p34 = {ctor: '_Tuple3', _0: c, _1: _p35, _2: _p36}; - if ((((_p34.ctor === '_Tuple3') && (_p34._0.ctor === 'Black')) && (_p34._1.ctor === 'LBlack')) && (_p34._2.ctor === 'Red')) { - return A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p32._1._1, _p32._1._2, _p32._1._3, _p32._1._4); - } else { - return A4( - _eeue56$elm_all_dict$EveryDict$reportRemBug, - 'Black/LBlack/Red', - c, - _eeue56$elm_all_dict$EveryDict$showLColor(_p35), - _eeue56$elm_all_dict$EveryDict$showNColor(_p36)); - } - } - } else { - if (_p32._1.ctor === 'RBEmpty_elm_builtin') { - var _p39 = _p32._1._0; - var _p38 = _p32._0._0; - var _p37 = {ctor: '_Tuple3', _0: c, _1: _p38, _2: _p39}; - if ((((_p37.ctor === '_Tuple3') && (_p37._0.ctor === 'Black')) && (_p37._1.ctor === 'Red')) && (_p37._2.ctor === 'LBlack')) { - return A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Black, _p32._0._1, _p32._0._2, _p32._0._3, _p32._0._4); - } else { - return A4( - _eeue56$elm_all_dict$EveryDict$reportRemBug, - 'Black/Red/LBlack', - c, - _eeue56$elm_all_dict$EveryDict$showNColor(_p38), - _eeue56$elm_all_dict$EveryDict$showLColor(_p39)); - } - } else { - var _p45 = _p32._0._2; - var _p44 = _p32._0._4; - var _p43 = _p32._0._3; - var _p42 = _p32._0._1; - var _p41 = _p32._0._0; - var l_ = A5(_eeue56$elm_all_dict$EveryDict$remove_max, _p41, _p42, _p45, _p43, _p44); - var r = A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _p32._1._0, _p32._1._1, _p32._1._2, _p32._1._3, _p32._1._4); - var l = A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _p41, _p42, _p45, _p43, _p44); - var _p40 = _eeue56$elm_all_dict$EveryDict$max(l); - var k = _p40._0; - var v = _p40._1; - return A5(_eeue56$elm_all_dict$EveryDict$bubble, c, k, v, l_, r); - } - } - }); -var _eeue56$elm_all_dict$EveryDict$map = F2( - function (f, dict) { - var _p46 = dict; - if (_p46.ctor === 'RBEmpty_elm_builtin') { - return _eeue56$elm_all_dict$EveryDict$RBEmpty_elm_builtin(_p46._0); - } else { - var _p47 = _p46._1; - return A5( - _eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, - _p46._0, - _p47, - A2(f, _p47, _p46._2), - A2(_eeue56$elm_all_dict$EveryDict$map, f, _p46._3), - A2(_eeue56$elm_all_dict$EveryDict$map, f, _p46._4)); - } - }); -var _eeue56$elm_all_dict$EveryDict$Same = {ctor: 'Same'}; -var _eeue56$elm_all_dict$EveryDict$Remove = {ctor: 'Remove'}; -var _eeue56$elm_all_dict$EveryDict$Insert = {ctor: 'Insert'}; -var _eeue56$elm_all_dict$EveryDict$update = F3( - function (k, alter, dict) { - var up = function (dict) { - var _p48 = dict; - if (_p48.ctor === 'RBEmpty_elm_builtin') { - var _p49 = alter(_elm_lang$core$Maybe$Nothing); - if (_p49.ctor === 'Nothing') { - return {ctor: '_Tuple2', _0: _eeue56$elm_all_dict$EveryDict$Same, _1: _eeue56$elm_all_dict$EveryDict$empty}; - } else { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Insert, - _1: A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _eeue56$elm_all_dict$EveryDict$Red, k, _p49._0, _eeue56$elm_all_dict$EveryDict$empty, _eeue56$elm_all_dict$EveryDict$empty) - }; - } - } else { - var _p60 = _p48._2; - var _p59 = _p48._4; - var _p58 = _p48._3; - var _p57 = _p48._1; - var _p56 = _p48._0; - var _p50 = A2( - _elm_lang$core$Basics$compare, - _eeue56$elm_all_dict$EveryDict$ord(k), - _eeue56$elm_all_dict$EveryDict$ord(_p57)); - switch (_p50.ctor) { - case 'EQ': - var _p51 = alter( - _elm_lang$core$Maybe$Just(_p60)); - if (_p51.ctor === 'Nothing') { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Remove, - _1: A3(_eeue56$elm_all_dict$EveryDict$rem, _p56, _p58, _p59) - }; - } else { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Same, - _1: A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _p56, _p57, _p51._0, _p58, _p59) - }; - } - case 'LT': - var _p52 = up(_p58); - var flag = _p52._0; - var newLeft = _p52._1; - var _p53 = flag; - switch (_p53.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Same, - _1: A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _p56, _p57, _p60, newLeft, _p59) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Insert, - _1: A5(_eeue56$elm_all_dict$EveryDict$balance, _p56, _p57, _p60, newLeft, _p59) - }; - default: - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Remove, - _1: A5(_eeue56$elm_all_dict$EveryDict$bubble, _p56, _p57, _p60, newLeft, _p59) - }; - } - default: - var _p54 = up(_p59); - var flag = _p54._0; - var newRight = _p54._1; - var _p55 = flag; - switch (_p55.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Same, - _1: A5(_eeue56$elm_all_dict$EveryDict$RBNode_elm_builtin, _p56, _p57, _p60, _p58, newRight) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Insert, - _1: A5(_eeue56$elm_all_dict$EveryDict$balance, _p56, _p57, _p60, _p58, newRight) - }; - default: - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$EveryDict$Remove, - _1: A5(_eeue56$elm_all_dict$EveryDict$bubble, _p56, _p57, _p60, _p58, newRight) - }; - } - } - } - }; - var _p61 = up(dict); - var flag = _p61._0; - var updatedDict = _p61._1; - var _p62 = flag; - switch (_p62.ctor) { - case 'Same': - return updatedDict; - case 'Insert': - return _eeue56$elm_all_dict$EveryDict$ensureBlackRoot(updatedDict); - default: - return _eeue56$elm_all_dict$EveryDict$blacken(updatedDict); - } - }); -var _eeue56$elm_all_dict$EveryDict$insert = F3( - function (key, value, dict) { - return A3( - _eeue56$elm_all_dict$EveryDict$update, - key, - _elm_lang$core$Basics$always( - _elm_lang$core$Maybe$Just(value)), - dict); - }); -var _eeue56$elm_all_dict$EveryDict$singleton = F2( - function (key, value) { - return A3(_eeue56$elm_all_dict$EveryDict$insert, key, value, _eeue56$elm_all_dict$EveryDict$empty); - }); -var _eeue56$elm_all_dict$EveryDict$union = F2( - function (t1, t2) { - return A3(_eeue56$elm_all_dict$EveryDict$foldl, _eeue56$elm_all_dict$EveryDict$insert, t2, t1); - }); -var _eeue56$elm_all_dict$EveryDict$fromList = function (assocs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p63, dict) { - var _p64 = _p63; - return A3(_eeue56$elm_all_dict$EveryDict$insert, _p64._0, _p64._1, dict); - }), - _eeue56$elm_all_dict$EveryDict$empty, - assocs); -}; -var _eeue56$elm_all_dict$EveryDict$filter = F2( - function (predicate, dictionary) { - var add = F3( - function (key, value, dict) { - return A2(predicate, key, value) ? A3(_eeue56$elm_all_dict$EveryDict$insert, key, value, dict) : dict; - }); - return A3(_eeue56$elm_all_dict$EveryDict$foldl, add, _eeue56$elm_all_dict$EveryDict$empty, dictionary); - }); -var _eeue56$elm_all_dict$EveryDict$intersect = F2( - function (t1, t2) { - return A2( - _eeue56$elm_all_dict$EveryDict$filter, - F2( - function (k, _p65) { - return A2(_eeue56$elm_all_dict$EveryDict$member, k, t2); - }), - t1); - }); -var _eeue56$elm_all_dict$EveryDict$partition = F2( - function (predicate, dict) { - var add = F3( - function (key, value, _p66) { - var _p67 = _p66; - var _p69 = _p67._1; - var _p68 = _p67._0; - return A2(predicate, key, value) ? { - ctor: '_Tuple2', - _0: A3(_eeue56$elm_all_dict$EveryDict$insert, key, value, _p68), - _1: _p69 - } : { - ctor: '_Tuple2', - _0: _p68, - _1: A3(_eeue56$elm_all_dict$EveryDict$insert, key, value, _p69) - }; - }); - return A3( - _eeue56$elm_all_dict$EveryDict$foldl, - add, - {ctor: '_Tuple2', _0: _eeue56$elm_all_dict$EveryDict$empty, _1: _eeue56$elm_all_dict$EveryDict$empty}, - dict); - }); -var _eeue56$elm_all_dict$EveryDict$remove = F2( - function (key, dict) { - return A3( - _eeue56$elm_all_dict$EveryDict$update, - key, - _elm_lang$core$Basics$always(_elm_lang$core$Maybe$Nothing), - dict); - }); -var _eeue56$elm_all_dict$EveryDict$diff = F2( - function (t1, t2) { - return A3( - _eeue56$elm_all_dict$EveryDict$foldl, - F3( - function (k, v, t) { - return A2(_eeue56$elm_all_dict$EveryDict$remove, k, t); - }), - t1, - t2); - }); - -var _eeue56$elm_all_dict$AllDict$foldr = F3( - function (f, acc, t) { - foldr: - while (true) { - var _p0 = t; - if (_p0.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v1 = f, - _v2 = A3( - f, - _p0._1, - _p0._2, - A3(_eeue56$elm_all_dict$AllDict$foldr, f, acc, _p0._4)), - _v3 = _p0._3; - f = _v1; - acc = _v2; - t = _v3; - continue foldr; - } - } - }); -var _eeue56$elm_all_dict$AllDict$keys = function (dict) { - return A3( - _eeue56$elm_all_dict$AllDict$foldr, - F3( - function (key, value, keyList) { - return {ctor: '::', _0: key, _1: keyList}; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$AllDict$values = function (dict) { - return A3( - _eeue56$elm_all_dict$AllDict$foldr, - F3( - function (key, value, valueList) { - return {ctor: '::', _0: value, _1: valueList}; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$AllDict$toList = function (dict) { - return A3( - _eeue56$elm_all_dict$AllDict$foldr, - F3( - function (key, value, list) { - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: key, _1: value}, - _1: list - }; - }), - {ctor: '[]'}, - dict); -}; -var _eeue56$elm_all_dict$AllDict$foldl = F3( - function (f, acc, dict) { - foldl: - while (true) { - var _p1 = dict; - if (_p1.ctor === 'RBEmpty_elm_builtin') { - return acc; - } else { - var _v5 = f, - _v6 = A3( - f, - _p1._1, - _p1._2, - A3(_eeue56$elm_all_dict$AllDict$foldl, f, acc, _p1._3)), - _v7 = _p1._4; - f = _v5; - acc = _v6; - dict = _v7; - continue foldl; - } - } - }); -var _eeue56$elm_all_dict$AllDict$isBBlack = function (dict) { - var _p2 = dict; - _v8_2: - do { - if (_p2.ctor === 'RBNode_elm_builtin') { - if (_p2._0.ctor === 'BBlack') { - return true; - } else { - break _v8_2; - } - } else { - if (_p2._0.ctor === 'LBBlack') { - return true; - } else { - break _v8_2; - } - } - } while(false); - return false; -}; -var _eeue56$elm_all_dict$AllDict$showFlag = function (f) { - var _p3 = f; - switch (_p3.ctor) { - case 'Insert': - return 'Insert'; - case 'Remove': - return 'Remove'; - default: - return 'Same'; - } -}; -var _eeue56$elm_all_dict$AllDict$sizeHelp = F2( - function (n, dict) { - sizeHelp: - while (true) { - var _p4 = dict; - if (_p4.ctor === 'RBEmpty_elm_builtin') { - return n; - } else { - var _v11 = A2(_eeue56$elm_all_dict$AllDict$sizeHelp, n + 1, _p4._4), - _v12 = _p4._3; - n = _v11; - dict = _v12; - continue sizeHelp; - } - } - }); -var _eeue56$elm_all_dict$AllDict$size = function (dict) { - return A2(_eeue56$elm_all_dict$AllDict$sizeHelp, 0, dict); -}; -var _eeue56$elm_all_dict$AllDict$isEmpty = function (dict) { - var _p5 = dict; - if (_p5.ctor === 'RBEmpty_elm_builtin') { - return true; - } else { - return false; - } -}; -var _eeue56$elm_all_dict$AllDict$getOrd = function (dict) { - getOrd: - while (true) { - var _p6 = dict; - if (_p6.ctor === 'RBEmpty_elm_builtin') { - return _p6._1; - } else { - var _v15 = _p6._3; - dict = _v15; - continue getOrd; - } - } -}; -var _eeue56$elm_all_dict$AllDict$getHelper = F2( - function (targetKey, dict) { - getHelper: - while (true) { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(dict); - var _p7 = dict; - if (_p7.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p8 = A2( - _elm_lang$core$Basics$compare, - ord(targetKey), - ord(_p7._1)); - switch (_p8.ctor) { - case 'LT': - var _v18 = targetKey, - _v19 = _p7._3; - targetKey = _v18; - dict = _v19; - continue getHelper; - case 'EQ': - return _elm_lang$core$Maybe$Just(_p7._2); - default: - var _v20 = targetKey, - _v21 = _p7._4; - targetKey = _v20; - dict = _v21; - continue getHelper; - } - } - } - }); -var _eeue56$elm_all_dict$AllDict$get = F2( - function (targetKey, dict) { - return A2(_eeue56$elm_all_dict$AllDict$getHelper, targetKey, dict); - }); -var _eeue56$elm_all_dict$AllDict$member = F2( - function (key, dict) { - var _p9 = A2(_eeue56$elm_all_dict$AllDict$getHelper, key, dict); - if (_p9.ctor === 'Just') { - return true; - } else { - return false; - } - }); -var _eeue56$elm_all_dict$AllDict$max = function (dict) { - max: - while (true) { - var _p10 = dict; - if (_p10.ctor === 'RBNode_elm_builtin') { - if (_p10._4.ctor === 'RBEmpty_elm_builtin') { - return {ctor: '_Tuple2', _0: _p10._1, _1: _p10._2}; - } else { - var _v24 = _p10._4; - dict = _v24; - continue max; - } - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDict', - { - start: {line: 157, column: 5}, - end: {line: 165, column: 51} - }, - _p10)('(max Empty) is not defined'); - } - } -}; -var _eeue56$elm_all_dict$AllDict$min = function (dict) { - min: - while (true) { - var _p12 = dict; - if (_p12.ctor === 'RBNode_elm_builtin') { - if ((_p12._3.ctor === 'RBEmpty_elm_builtin') && (_p12._3._0.ctor === 'LBlack')) { - return {ctor: '_Tuple2', _0: _p12._1, _1: _p12._2}; - } else { - var _v26 = _p12._3; - dict = _v26; - continue min; - } - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDict', - { - start: {line: 145, column: 5}, - end: {line: 153, column: 51} - }, - _p12)('(min Empty) is not defined'); - } - } -}; -var _eeue56$elm_all_dict$AllDict$fullEq = F2( - function (first, second) { - return _elm_lang$core$Native_Utils.eq( - _eeue56$elm_all_dict$AllDict$toList(first), - _eeue56$elm_all_dict$AllDict$toList(second)) && _elm_lang$core$Native_Utils.eq( - _eeue56$elm_all_dict$AllDict$getOrd(first), - _eeue56$elm_all_dict$AllDict$getOrd(second)); - }); -var _eeue56$elm_all_dict$AllDict$eq = F2( - function (first, second) { - return _elm_lang$core$Native_Utils.eq( - _eeue56$elm_all_dict$AllDict$toList(first), - _eeue56$elm_all_dict$AllDict$toList(second)); - }); -var _eeue56$elm_all_dict$AllDict$showLColor = function (color) { - var _p14 = color; - if (_p14.ctor === 'LBlack') { - return 'LBlack'; - } else { - return 'LBBlack'; - } -}; -var _eeue56$elm_all_dict$AllDict$showNColor = function (c) { - var _p15 = c; - switch (_p15.ctor) { - case 'Red': - return 'Red'; - case 'Black': - return 'Black'; - case 'BBlack': - return 'BBlack'; - default: - return 'NBlack'; - } -}; -var _eeue56$elm_all_dict$AllDict$reportRemBug = F4( - function (msg, c, lgot, rgot) { - return _elm_lang$core$Native_Utils.crash( - 'AllDict', - { - start: {line: 365, column: 3}, - end: {line: 365, column: 14} - })( - _elm_lang$core$String$concat( - { - ctor: '::', - _0: 'Internal red-black tree invariant violated, expected ', - _1: { - ctor: '::', - _0: msg, - _1: { - ctor: '::', - _0: ' and got ', - _1: { - ctor: '::', - _0: _eeue56$elm_all_dict$AllDict$showNColor(c), - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: lgot, - _1: { - ctor: '::', - _0: '/', - _1: { - ctor: '::', - _0: rgot, - _1: { - ctor: '::', - _0: '\nPlease report this bug to ', - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - })); - }); -var _eeue56$elm_all_dict$AllDict$NBlack = {ctor: 'NBlack'}; -var _eeue56$elm_all_dict$AllDict$BBlack = {ctor: 'BBlack'}; -var _eeue56$elm_all_dict$AllDict$Black = {ctor: 'Black'}; -var _eeue56$elm_all_dict$AllDict$blackish = function (t) { - var _p16 = t; - if (_p16.ctor === 'RBNode_elm_builtin') { - var _p17 = _p16._0; - return _elm_lang$core$Native_Utils.eq(_p17, _eeue56$elm_all_dict$AllDict$Black) || _elm_lang$core$Native_Utils.eq(_p17, _eeue56$elm_all_dict$AllDict$BBlack); - } else { - return true; - } -}; -var _eeue56$elm_all_dict$AllDict$Red = {ctor: 'Red'}; -var _eeue56$elm_all_dict$AllDict$moreBlack = function (color) { - var _p18 = color; - switch (_p18.ctor) { - case 'Black': - return _eeue56$elm_all_dict$AllDict$BBlack; - case 'Red': - return _eeue56$elm_all_dict$AllDict$Black; - case 'NBlack': - return _eeue56$elm_all_dict$AllDict$Red; - default: - return _elm_lang$core$Native_Utils.crashCase( - 'AllDict', - { - start: {line: 339, column: 5}, - end: {line: 343, column: 73} - }, - _p18)('Can\'t make a double black node more black!'); - } -}; -var _eeue56$elm_all_dict$AllDict$lessBlack = function (color) { - var _p20 = color; - switch (_p20.ctor) { - case 'BBlack': - return _eeue56$elm_all_dict$AllDict$Black; - case 'Black': - return _eeue56$elm_all_dict$AllDict$Red; - case 'Red': - return _eeue56$elm_all_dict$AllDict$NBlack; - default: - return _elm_lang$core$Native_Utils.crashCase( - 'AllDict', - { - start: {line: 348, column: 5}, - end: {line: 352, column: 75} - }, - _p20)('Can\'t make a negative black node less black!'); - } -}; -var _eeue56$elm_all_dict$AllDict$LBBlack = {ctor: 'LBBlack'}; -var _eeue56$elm_all_dict$AllDict$LBlack = {ctor: 'LBlack'}; -var _eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin = F2( - function (a, b) { - return {ctor: 'RBEmpty_elm_builtin', _0: a, _1: b}; - }); -var _eeue56$elm_all_dict$AllDict$empty = function (ord) { - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _eeue56$elm_all_dict$AllDict$LBlack, ord); -}; -var _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin = F5( - function (a, b, c, d, e) { - return {ctor: 'RBNode_elm_builtin', _0: a, _1: b, _2: c, _3: d, _4: e}; - }); -var _eeue56$elm_all_dict$AllDict$ensureBlackRoot = function (dict) { - var _p22 = dict; - _v32_2: - do { - if (_p22.ctor === 'RBNode_elm_builtin') { - switch (_p22._0.ctor) { - case 'Red': - return A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p22._1, _p22._2, _p22._3, _p22._4); - case 'Black': - return dict; - default: - break _v32_2; - } - } else { - break _v32_2; - } - } while(false); - return dict; -}; -var _eeue56$elm_all_dict$AllDict$lessBlackTree = function (dict) { - var _p23 = dict; - if (_p23.ctor === 'RBNode_elm_builtin') { - return A5( - _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$AllDict$lessBlack(_p23._0), - _p23._1, - _p23._2, - _p23._3, - _p23._4); - } else { - if (_p23._0.ctor === 'LBBlack') { - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _eeue56$elm_all_dict$AllDict$LBlack, _p23._1); - } else { - return dict; - } - } -}; -var _eeue56$elm_all_dict$AllDict$blacken = function (t) { - var _p24 = t; - if (_p24.ctor === 'RBEmpty_elm_builtin') { - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _eeue56$elm_all_dict$AllDict$LBlack, _p24._1); - } else { - return A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p24._1, _p24._2, _p24._3, _p24._4); - } -}; -var _eeue56$elm_all_dict$AllDict$redden = function (t) { - var _p25 = t; - if (_p25.ctor === 'RBEmpty_elm_builtin') { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDict', - { - start: {line: 486, column: 5}, - end: {line: 488, column: 69} - }, - _p25)('can\'t make a Leaf red'); - } else { - return A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Red, _p25._1, _p25._2, _p25._3, _p25._4); - } -}; -var _eeue56$elm_all_dict$AllDict$balance_node = function (t) { - var assemble = function (col) { - return function (xk) { - return function (xv) { - return function (yk) { - return function (yv) { - return function (zk) { - return function (zv) { - return function (a) { - return function (b) { - return function (c) { - return function (d) { - return A5( - _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$AllDict$lessBlack(col), - yk, - yv, - A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, xk, xv, a, b), - A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, zk, zv, c, d)); - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - if (_eeue56$elm_all_dict$AllDict$blackish(t)) { - var _p27 = t; - _v36_6: - do { - _v36_5: - do { - _v36_4: - do { - _v36_3: - do { - _v36_2: - do { - _v36_1: - do { - _v36_0: - do { - if (_p27.ctor === 'RBNode_elm_builtin') { - if (_p27._3.ctor === 'RBNode_elm_builtin') { - if (_p27._4.ctor === 'RBNode_elm_builtin') { - switch (_p27._3._0.ctor) { - case 'Red': - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - } - } - case 'NBlack': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - if (((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - } - } - default: - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - break _v36_6; - } - } - } - case 'NBlack': - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - if (((_p27._0.ctor === 'BBlack') && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - } - case 'NBlack': - if (_p27._0.ctor === 'BBlack') { - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Black')) { - break _v36_4; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - } else { - break _v36_6; - } - default: - if (((_p27._0.ctor === 'BBlack') && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - } - default: - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } - } else { - switch (_p27._3._0.ctor) { - case 'Red': - if ((_p27._3._3.ctor === 'RBNode_elm_builtin') && (_p27._3._3._0.ctor === 'Red')) { - break _v36_0; - } else { - if ((_p27._3._4.ctor === 'RBNode_elm_builtin') && (_p27._3._4._0.ctor === 'Red')) { - break _v36_1; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((_p27._0.ctor === 'BBlack') && (_p27._3._4.ctor === 'RBNode_elm_builtin')) && (_p27._3._4._0.ctor === 'Black')) { - break _v36_5; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } - } else { - if (_p27._4.ctor === 'RBNode_elm_builtin') { - switch (_p27._4._0.ctor) { - case 'Red': - if ((_p27._4._3.ctor === 'RBNode_elm_builtin') && (_p27._4._3._0.ctor === 'Red')) { - break _v36_2; - } else { - if ((_p27._4._4.ctor === 'RBNode_elm_builtin') && (_p27._4._4._0.ctor === 'Red')) { - break _v36_3; - } else { - break _v36_6; - } - } - case 'NBlack': - if (((_p27._0.ctor === 'BBlack') && (_p27._4._3.ctor === 'RBNode_elm_builtin')) && (_p27._4._3._0.ctor === 'Black')) { - break _v36_4; - } else { - break _v36_6; - } - default: - break _v36_6; - } - } else { - break _v36_6; - } - } - } else { - break _v36_6; - } - } while(false); - return assemble(_p27._0)(_p27._3._3._1)(_p27._3._3._2)(_p27._3._1)(_p27._3._2)(_p27._1)(_p27._2)(_p27._3._3._3)(_p27._3._3._4)(_p27._3._4)(_p27._4); - } while(false); - return assemble(_p27._0)(_p27._3._1)(_p27._3._2)(_p27._3._4._1)(_p27._3._4._2)(_p27._1)(_p27._2)(_p27._3._3)(_p27._3._4._3)(_p27._3._4._4)(_p27._4); - } while(false); - return assemble(_p27._0)(_p27._1)(_p27._2)(_p27._4._3._1)(_p27._4._3._2)(_p27._4._1)(_p27._4._2)(_p27._3)(_p27._4._3._3)(_p27._4._3._4)(_p27._4._4); - } while(false); - return assemble(_p27._0)(_p27._1)(_p27._2)(_p27._4._1)(_p27._4._2)(_p27._4._4._1)(_p27._4._4._2)(_p27._3)(_p27._4._3)(_p27._4._4._3)(_p27._4._4._4); - } while(false); - var _p29 = _p27._4._4; - var _p28 = _p29; - if ((_p28.ctor === 'RBNode_elm_builtin') && (_p28._0.ctor === 'Black')) { - return A5( - _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$AllDict$Black, - _p27._4._3._1, - _p27._4._3._2, - A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p27._1, _p27._2, _p27._3, _p27._4._3._3), - A5( - _eeue56$elm_all_dict$AllDict$balance, - _eeue56$elm_all_dict$AllDict$Black, - _p27._4._1, - _p27._4._2, - _p27._4._3._4, - _eeue56$elm_all_dict$AllDict$redden(_p29))); - } else { - return t; - } - } while(false); - var _p31 = _p27._3._3; - var _p30 = _p31; - if ((_p30.ctor === 'RBNode_elm_builtin') && (_p30._0.ctor === 'Black')) { - return A5( - _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, - _eeue56$elm_all_dict$AllDict$Black, - _p27._3._4._1, - _p27._3._4._2, - A5( - _eeue56$elm_all_dict$AllDict$balance, - _eeue56$elm_all_dict$AllDict$Black, - _p27._3._1, - _p27._3._2, - _eeue56$elm_all_dict$AllDict$redden(_p31), - _p27._3._4._3), - A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p27._1, _p27._2, _p27._3._4._4, _p27._4)); - } else { - return t; - } - } while(false); - return t; - } else { - return t; - } -}; -var _eeue56$elm_all_dict$AllDict$balance = F5( - function (c, k, v, l, r) { - return _eeue56$elm_all_dict$AllDict$balance_node( - A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, c, k, v, l, r)); - }); -var _eeue56$elm_all_dict$AllDict$bubble = F5( - function (c, k, v, l, r) { - return (_eeue56$elm_all_dict$AllDict$isBBlack(l) || _eeue56$elm_all_dict$AllDict$isBBlack(r)) ? A5( - _eeue56$elm_all_dict$AllDict$balance, - _eeue56$elm_all_dict$AllDict$moreBlack(c), - k, - v, - _eeue56$elm_all_dict$AllDict$lessBlackTree(l), - _eeue56$elm_all_dict$AllDict$lessBlackTree(r)) : A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, c, k, v, l, r); - }); -var _eeue56$elm_all_dict$AllDict$remove_max = F5( - function (c, k, v, l, r) { - var _p32 = r; - if (_p32.ctor === 'RBEmpty_elm_builtin') { - return A3(_eeue56$elm_all_dict$AllDict$rem, c, l, r); - } else { - return A5( - _eeue56$elm_all_dict$AllDict$bubble, - c, - k, - v, - l, - A5(_eeue56$elm_all_dict$AllDict$remove_max, _p32._0, _p32._1, _p32._2, _p32._3, _p32._4)); - } - }); -var _eeue56$elm_all_dict$AllDict$rem = F3( - function (c, l, r) { - var _p33 = {ctor: '_Tuple2', _0: l, _1: r}; - if (_p33._0.ctor === 'RBEmpty_elm_builtin') { - if (_p33._1.ctor === 'RBEmpty_elm_builtin') { - var _p35 = _p33._0._1; - var _p34 = c; - switch (_p34.ctor) { - case 'Red': - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _eeue56$elm_all_dict$AllDict$LBlack, _p35); - case 'Black': - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _eeue56$elm_all_dict$AllDict$LBBlack, _p35); - default: - return _eeue56$elm_all_dict$Native_Debug.crash('cannot have bblack or nblack nodes at this point'); - } - } else { - var _p38 = _p33._1._0; - var _p37 = _p33._0._0; - var _p36 = {ctor: '_Tuple3', _0: c, _1: _p37, _2: _p38}; - if ((((_p36.ctor === '_Tuple3') && (_p36._0.ctor === 'Black')) && (_p36._1.ctor === 'LBlack')) && (_p36._2.ctor === 'Red')) { - return A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p33._1._1, _p33._1._2, _p33._1._3, _p33._1._4); - } else { - return A4( - _eeue56$elm_all_dict$AllDict$reportRemBug, - 'Black/LBlack/Red', - c, - _eeue56$elm_all_dict$AllDict$showLColor(_p37), - _eeue56$elm_all_dict$AllDict$showNColor(_p38)); - } - } - } else { - if (_p33._1.ctor === 'RBEmpty_elm_builtin') { - var _p41 = _p33._1._0; - var _p40 = _p33._0._0; - var _p39 = {ctor: '_Tuple3', _0: c, _1: _p40, _2: _p41}; - if ((((_p39.ctor === '_Tuple3') && (_p39._0.ctor === 'Black')) && (_p39._1.ctor === 'Red')) && (_p39._2.ctor === 'LBlack')) { - return A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Black, _p33._0._1, _p33._0._2, _p33._0._3, _p33._0._4); - } else { - return A4( - _eeue56$elm_all_dict$AllDict$reportRemBug, - 'Black/Red/LBlack', - c, - _eeue56$elm_all_dict$AllDict$showNColor(_p40), - _eeue56$elm_all_dict$AllDict$showLColor(_p41)); - } - } else { - var _p47 = _p33._0._2; - var _p46 = _p33._0._4; - var _p45 = _p33._0._3; - var _p44 = _p33._0._1; - var _p43 = _p33._0._0; - var l_ = A5(_eeue56$elm_all_dict$AllDict$remove_max, _p43, _p44, _p47, _p45, _p46); - var r = A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _p33._1._0, _p33._1._1, _p33._1._2, _p33._1._3, _p33._1._4); - var l = A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _p43, _p44, _p47, _p45, _p46); - var _p42 = _eeue56$elm_all_dict$AllDict$max(l); - var k = _p42._0; - var v = _p42._1; - return A5(_eeue56$elm_all_dict$AllDict$bubble, c, k, v, l_, r); - } - } - }); -var _eeue56$elm_all_dict$AllDict$map = F2( - function (f, dict) { - var _p48 = dict; - if (_p48.ctor === 'RBEmpty_elm_builtin') { - return A2(_eeue56$elm_all_dict$AllDict$RBEmpty_elm_builtin, _p48._0, _p48._1); - } else { - var _p49 = _p48._1; - return A5( - _eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, - _p48._0, - _p49, - A2(f, _p49, _p48._2), - A2(_eeue56$elm_all_dict$AllDict$map, f, _p48._3), - A2(_eeue56$elm_all_dict$AllDict$map, f, _p48._4)); - } - }); -var _eeue56$elm_all_dict$AllDict$Same = {ctor: 'Same'}; -var _eeue56$elm_all_dict$AllDict$Remove = {ctor: 'Remove'}; -var _eeue56$elm_all_dict$AllDict$Insert = {ctor: 'Insert'}; -var _eeue56$elm_all_dict$AllDict$update = F3( - function (k, alter, dict) { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(dict); - var empty_ = _eeue56$elm_all_dict$AllDict$empty(ord); - var up = function (dict) { - var _p50 = dict; - if (_p50.ctor === 'RBEmpty_elm_builtin') { - var _p51 = alter(_elm_lang$core$Maybe$Nothing); - if (_p51.ctor === 'Nothing') { - return {ctor: '_Tuple2', _0: _eeue56$elm_all_dict$AllDict$Same, _1: empty_}; - } else { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Insert, - _1: A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _eeue56$elm_all_dict$AllDict$Red, k, _p51._0, empty_, empty_) - }; - } - } else { - var _p62 = _p50._2; - var _p61 = _p50._4; - var _p60 = _p50._3; - var _p59 = _p50._1; - var _p58 = _p50._0; - var _p52 = A2( - _elm_lang$core$Basics$compare, - ord(k), - ord(_p59)); - switch (_p52.ctor) { - case 'EQ': - var _p53 = alter( - _elm_lang$core$Maybe$Just(_p62)); - if (_p53.ctor === 'Nothing') { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Remove, - _1: A3(_eeue56$elm_all_dict$AllDict$rem, _p58, _p60, _p61) - }; - } else { - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Same, - _1: A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _p58, _p59, _p53._0, _p60, _p61) - }; - } - case 'LT': - var _p54 = up(_p60); - var flag = _p54._0; - var newLeft = _p54._1; - var _p55 = flag; - switch (_p55.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Same, - _1: A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _p58, _p59, _p62, newLeft, _p61) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Insert, - _1: A5(_eeue56$elm_all_dict$AllDict$balance, _p58, _p59, _p62, newLeft, _p61) - }; - default: - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Remove, - _1: A5(_eeue56$elm_all_dict$AllDict$bubble, _p58, _p59, _p62, newLeft, _p61) - }; - } - default: - var _p56 = up(_p61); - var flag = _p56._0; - var newRight = _p56._1; - var _p57 = flag; - switch (_p57.ctor) { - case 'Same': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Same, - _1: A5(_eeue56$elm_all_dict$AllDict$RBNode_elm_builtin, _p58, _p59, _p62, _p60, newRight) - }; - case 'Insert': - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Insert, - _1: A5(_eeue56$elm_all_dict$AllDict$balance, _p58, _p59, _p62, _p60, newRight) - }; - default: - return { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$Remove, - _1: A5(_eeue56$elm_all_dict$AllDict$bubble, _p58, _p59, _p62, _p60, newRight) - }; - } - } - } - }; - var _p63 = up(dict); - var flag = _p63._0; - var updatedDict = _p63._1; - var _p64 = flag; - switch (_p64.ctor) { - case 'Same': - return updatedDict; - case 'Insert': - return _eeue56$elm_all_dict$AllDict$ensureBlackRoot(updatedDict); - default: - return _eeue56$elm_all_dict$AllDict$blacken(updatedDict); - } - }); -var _eeue56$elm_all_dict$AllDict$insert = F3( - function (key, value, dict) { - return A3( - _eeue56$elm_all_dict$AllDict$update, - key, - _elm_lang$core$Basics$always( - _elm_lang$core$Maybe$Just(value)), - dict); - }); -var _eeue56$elm_all_dict$AllDict$singleton = F3( - function (ord, key, value) { - return A3( - _eeue56$elm_all_dict$AllDict$insert, - key, - value, - _eeue56$elm_all_dict$AllDict$empty(ord)); - }); -var _eeue56$elm_all_dict$AllDict$union = F2( - function (t1, t2) { - return A3(_eeue56$elm_all_dict$AllDict$foldl, _eeue56$elm_all_dict$AllDict$insert, t2, t1); - }); -var _eeue56$elm_all_dict$AllDict$fromList = F2( - function (ord, assocs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p65, dict) { - var _p66 = _p65; - return A3(_eeue56$elm_all_dict$AllDict$insert, _p66._0, _p66._1, dict); - }), - _eeue56$elm_all_dict$AllDict$empty(ord), - assocs); - }); -var _eeue56$elm_all_dict$AllDict$filter = F2( - function (predicate, dictionary) { - var add = F3( - function (key, value, dict) { - return A2(predicate, key, value) ? A3(_eeue56$elm_all_dict$AllDict$insert, key, value, dict) : dict; - }); - return A3( - _eeue56$elm_all_dict$AllDict$foldl, - add, - _eeue56$elm_all_dict$AllDict$empty( - _eeue56$elm_all_dict$AllDict$getOrd(dictionary)), - dictionary); - }); -var _eeue56$elm_all_dict$AllDict$intersect = F2( - function (t1, t2) { - return A2( - _eeue56$elm_all_dict$AllDict$filter, - F2( - function (k, _p67) { - return A2(_eeue56$elm_all_dict$AllDict$member, k, t2); - }), - t1); - }); -var _eeue56$elm_all_dict$AllDict$partition = F2( - function (predicate, dict) { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(dict); - var add = F3( - function (key, value, _p68) { - var _p69 = _p68; - var _p71 = _p69._1; - var _p70 = _p69._0; - return A2(predicate, key, value) ? { - ctor: '_Tuple2', - _0: A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p70), - _1: _p71 - } : { - ctor: '_Tuple2', - _0: _p70, - _1: A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p71) - }; - }); - return A3( - _eeue56$elm_all_dict$AllDict$foldl, - add, - { - ctor: '_Tuple2', - _0: _eeue56$elm_all_dict$AllDict$empty(ord), - _1: _eeue56$elm_all_dict$AllDict$empty(ord) - }, - dict); - }); -var _eeue56$elm_all_dict$AllDict$remove = F2( - function (key, dict) { - return A3( - _eeue56$elm_all_dict$AllDict$update, - key, - _elm_lang$core$Basics$always(_elm_lang$core$Maybe$Nothing), - dict); - }); -var _eeue56$elm_all_dict$AllDict$diff = F2( - function (t1, t2) { - return A3( - _eeue56$elm_all_dict$AllDict$foldl, - F3( - function (k, v, t) { - return A2(_eeue56$elm_all_dict$AllDict$remove, k, t); - }), - t1, - t2); - }); - -var _elm_lang$core$Set$foldr = F3( - function (f, b, _p0) { - var _p1 = _p0; - return A3( - _elm_lang$core$Dict$foldr, - F3( - function (k, _p2, b) { - return A2(f, k, b); - }), - b, - _p1._0); - }); -var _elm_lang$core$Set$foldl = F3( - function (f, b, _p3) { - var _p4 = _p3; - return A3( - _elm_lang$core$Dict$foldl, - F3( - function (k, _p5, b) { - return A2(f, k, b); - }), - b, - _p4._0); - }); -var _elm_lang$core$Set$toList = function (_p6) { - var _p7 = _p6; - return _elm_lang$core$Dict$keys(_p7._0); -}; -var _elm_lang$core$Set$size = function (_p8) { - var _p9 = _p8; - return _elm_lang$core$Dict$size(_p9._0); -}; -var _elm_lang$core$Set$member = F2( - function (k, _p10) { - var _p11 = _p10; - return A2(_elm_lang$core$Dict$member, k, _p11._0); - }); -var _elm_lang$core$Set$isEmpty = function (_p12) { - var _p13 = _p12; - return _elm_lang$core$Dict$isEmpty(_p13._0); -}; -var _elm_lang$core$Set$Set_elm_builtin = function (a) { - return {ctor: 'Set_elm_builtin', _0: a}; -}; -var _elm_lang$core$Set$empty = _elm_lang$core$Set$Set_elm_builtin(_elm_lang$core$Dict$empty); -var _elm_lang$core$Set$singleton = function (k) { - return _elm_lang$core$Set$Set_elm_builtin( - A2( - _elm_lang$core$Dict$singleton, - k, - {ctor: '_Tuple0'})); -}; -var _elm_lang$core$Set$insert = F2( - function (k, _p14) { - var _p15 = _p14; - return _elm_lang$core$Set$Set_elm_builtin( - A3( - _elm_lang$core$Dict$insert, - k, - {ctor: '_Tuple0'}, - _p15._0)); - }); -var _elm_lang$core$Set$fromList = function (xs) { - return A3(_elm_lang$core$List$foldl, _elm_lang$core$Set$insert, _elm_lang$core$Set$empty, xs); -}; -var _elm_lang$core$Set$map = F2( - function (f, s) { - return _elm_lang$core$Set$fromList( - A2( - _elm_lang$core$List$map, - f, - _elm_lang$core$Set$toList(s))); - }); -var _elm_lang$core$Set$remove = F2( - function (k, _p16) { - var _p17 = _p16; - return _elm_lang$core$Set$Set_elm_builtin( - A2(_elm_lang$core$Dict$remove, k, _p17._0)); - }); -var _elm_lang$core$Set$union = F2( - function (_p19, _p18) { - var _p20 = _p19; - var _p21 = _p18; - return _elm_lang$core$Set$Set_elm_builtin( - A2(_elm_lang$core$Dict$union, _p20._0, _p21._0)); - }); -var _elm_lang$core$Set$intersect = F2( - function (_p23, _p22) { - var _p24 = _p23; - var _p25 = _p22; - return _elm_lang$core$Set$Set_elm_builtin( - A2(_elm_lang$core$Dict$intersect, _p24._0, _p25._0)); - }); -var _elm_lang$core$Set$diff = F2( - function (_p27, _p26) { - var _p28 = _p27; - var _p29 = _p26; - return _elm_lang$core$Set$Set_elm_builtin( - A2(_elm_lang$core$Dict$diff, _p28._0, _p29._0)); - }); -var _elm_lang$core$Set$filter = F2( - function (p, _p30) { - var _p31 = _p30; - return _elm_lang$core$Set$Set_elm_builtin( - A2( - _elm_lang$core$Dict$filter, - F2( - function (k, _p32) { - return p(k); - }), - _p31._0)); - }); -var _elm_lang$core$Set$partition = F2( - function (p, _p33) { - var _p34 = _p33; - var _p35 = A2( - _elm_lang$core$Dict$partition, - F2( - function (k, _p36) { - return p(k); - }), - _p34._0); - var p1 = _p35._0; - var p2 = _p35._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Set$Set_elm_builtin(p1), - _1: _elm_lang$core$Set$Set_elm_builtin(p2) - }; - }); - -var _elm_community$list_extra$List_Extra$greedyGroupsOfWithStep = F3( - function (size, step, xs) { - var okayXs = _elm_lang$core$Native_Utils.cmp( - _elm_lang$core$List$length(xs), - 0) > 0; - var okayArgs = (_elm_lang$core$Native_Utils.cmp(size, 0) > 0) && (_elm_lang$core$Native_Utils.cmp(step, 0) > 0); - var xs_ = A2(_elm_lang$core$List$drop, step, xs); - var group = A2(_elm_lang$core$List$take, size, xs); - return (okayArgs && okayXs) ? { - ctor: '::', - _0: group, - _1: A3(_elm_community$list_extra$List_Extra$greedyGroupsOfWithStep, size, step, xs_) - } : {ctor: '[]'}; - }); -var _elm_community$list_extra$List_Extra$greedyGroupsOf = F2( - function (size, xs) { - return A3(_elm_community$list_extra$List_Extra$greedyGroupsOfWithStep, size, size, xs); - }); -var _elm_community$list_extra$List_Extra$groupsOfWithStep = F3( - function (size, step, xs) { - var okayArgs = (_elm_lang$core$Native_Utils.cmp(size, 0) > 0) && (_elm_lang$core$Native_Utils.cmp(step, 0) > 0); - var xs_ = A2(_elm_lang$core$List$drop, step, xs); - var group = A2(_elm_lang$core$List$take, size, xs); - var okayLength = _elm_lang$core$Native_Utils.eq( - size, - _elm_lang$core$List$length(group)); - return (okayArgs && okayLength) ? { - ctor: '::', - _0: group, - _1: A3(_elm_community$list_extra$List_Extra$groupsOfWithStep, size, step, xs_) - } : {ctor: '[]'}; - }); -var _elm_community$list_extra$List_Extra$groupsOf = F2( - function (size, xs) { - return A3(_elm_community$list_extra$List_Extra$groupsOfWithStep, size, size, xs); - }); -var _elm_community$list_extra$List_Extra$zip5 = _elm_lang$core$List$map5( - F5( - function (v0, v1, v2, v3, v4) { - return {ctor: '_Tuple5', _0: v0, _1: v1, _2: v2, _3: v3, _4: v4}; - })); -var _elm_community$list_extra$List_Extra$zip4 = _elm_lang$core$List$map4( - F4( - function (v0, v1, v2, v3) { - return {ctor: '_Tuple4', _0: v0, _1: v1, _2: v2, _3: v3}; - })); -var _elm_community$list_extra$List_Extra$zip3 = _elm_lang$core$List$map3( - F3( - function (v0, v1, v2) { - return {ctor: '_Tuple3', _0: v0, _1: v1, _2: v2}; - })); -var _elm_community$list_extra$List_Extra$zip = _elm_lang$core$List$map2( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - })); -var _elm_community$list_extra$List_Extra$isSubsequenceOf = F2( - function (subseq, list) { - isSubsequenceOf: - while (true) { - var _p0 = {ctor: '_Tuple2', _0: subseq, _1: list}; - if (_p0._0.ctor === '[]') { - return true; - } else { - if (_p0._1.ctor === '[]') { - return false; - } else { - var _p1 = _p0._1._1; - if (_elm_lang$core$Native_Utils.eq(_p0._0._0, _p0._1._0)) { - var _v1 = _p0._0._1, - _v2 = _p1; - subseq = _v1; - list = _v2; - continue isSubsequenceOf; - } else { - var _v3 = subseq, - _v4 = _p1; - subseq = _v3; - list = _v4; - continue isSubsequenceOf; - } - } - } - } - }); -var _elm_community$list_extra$List_Extra$isPrefixOf = F2( - function (prefix, xs) { - var _p2 = {ctor: '_Tuple2', _0: prefix, _1: xs}; - if (_p2._0.ctor === '[]') { - return true; - } else { - if (_p2._1.ctor === '[]') { - return false; - } else { - return _elm_lang$core$Native_Utils.eq(_p2._0._0, _p2._1._0) && A2(_elm_community$list_extra$List_Extra$isPrefixOf, _p2._0._1, _p2._1._1); - } - } - }); -var _elm_community$list_extra$List_Extra$isSuffixOf = F2( - function (suffix, xs) { - return A2( - _elm_community$list_extra$List_Extra$isPrefixOf, - _elm_lang$core$List$reverse(suffix), - _elm_lang$core$List$reverse(xs)); - }); -var _elm_community$list_extra$List_Extra$isInfixOfHelp = F3( - function (infixHead, infixTail, list) { - isInfixOfHelp: - while (true) { - var _p3 = list; - if (_p3.ctor === '[]') { - return false; - } else { - var _p4 = _p3._1; - if (_elm_lang$core$Native_Utils.eq(_p3._0, infixHead)) { - return A2(_elm_community$list_extra$List_Extra$isPrefixOf, infixTail, _p4); - } else { - var _v7 = infixHead, - _v8 = infixTail, - _v9 = _p4; - infixHead = _v7; - infixTail = _v8; - list = _v9; - continue isInfixOfHelp; - } - } - } - }); -var _elm_community$list_extra$List_Extra$isInfixOf = F2( - function (infixList, list) { - var _p5 = infixList; - if (_p5.ctor === '[]') { - return true; - } else { - return A3(_elm_community$list_extra$List_Extra$isInfixOfHelp, _p5._0, _p5._1, list); - } - }); -var _elm_community$list_extra$List_Extra$selectSplit = function (xs) { - var _p6 = xs; - if (_p6.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p10 = _p6._1; - var _p9 = _p6._0; - return { - ctor: '::', - _0: { - ctor: '_Tuple3', - _0: {ctor: '[]'}, - _1: _p9, - _2: _p10 - }, - _1: A2( - _elm_lang$core$List$map, - function (_p7) { - var _p8 = _p7; - return { - ctor: '_Tuple3', - _0: {ctor: '::', _0: _p9, _1: _p8._0}, - _1: _p8._1, - _2: _p8._2 - }; - }, - _elm_community$list_extra$List_Extra$selectSplit(_p10)) - }; - } -}; -var _elm_community$list_extra$List_Extra$select = function (xs) { - var _p11 = xs; - if (_p11.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p15 = _p11._1; - var _p14 = _p11._0; - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _p14, _1: _p15}, - _1: A2( - _elm_lang$core$List$map, - function (_p12) { - var _p13 = _p12; - return { - ctor: '_Tuple2', - _0: _p13._0, - _1: {ctor: '::', _0: _p14, _1: _p13._1} - }; - }, - _elm_community$list_extra$List_Extra$select(_p15)) - }; - } -}; -var _elm_community$list_extra$List_Extra$tailsHelp = F2( - function (e, list) { - var _p16 = list; - if (_p16.ctor === '::') { - var _p17 = _p16._0; - return { - ctor: '::', - _0: {ctor: '::', _0: e, _1: _p17}, - _1: {ctor: '::', _0: _p17, _1: _p16._1} - }; - } else { - return {ctor: '[]'}; - } - }); -var _elm_community$list_extra$List_Extra$tails = A2( - _elm_lang$core$List$foldr, - _elm_community$list_extra$List_Extra$tailsHelp, - { - ctor: '::', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }); -var _elm_community$list_extra$List_Extra$inits = A2( - _elm_lang$core$List$foldr, - F2( - function (e, acc) { - return { - ctor: '::', - _0: {ctor: '[]'}, - _1: A2( - _elm_lang$core$List$map, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })(e), - acc) - }; - }), - { - ctor: '::', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }); -var _elm_community$list_extra$List_Extra$groupWhileTransitivelyHelp = F4( - function (result, currentGroup, compare, list) { - groupWhileTransitivelyHelp: - while (true) { - var _p18 = list; - if (_p18.ctor === '[]') { - return _elm_lang$core$List$reverse( - _elm_lang$core$List$isEmpty(currentGroup) ? result : _elm_lang$core$List$reverse( - {ctor: '::', _0: currentGroup, _1: result})); - } else { - if (_p18._1.ctor === '[]') { - return _elm_lang$core$List$reverse( - { - ctor: '::', - _0: _elm_lang$core$List$reverse( - {ctor: '::', _0: _p18._0, _1: currentGroup}), - _1: result - }); - } else { - var _p20 = _p18._1; - var _p19 = _p18._0; - if (A2(compare, _p19, _p18._1._0)) { - var _v17 = result, - _v18 = {ctor: '::', _0: _p19, _1: currentGroup}, - _v19 = compare, - _v20 = _p20; - result = _v17; - currentGroup = _v18; - compare = _v19; - list = _v20; - continue groupWhileTransitivelyHelp; - } else { - var _v21 = { - ctor: '::', - _0: _elm_lang$core$List$reverse( - {ctor: '::', _0: _p19, _1: currentGroup}), - _1: result - }, - _v22 = {ctor: '[]'}, - _v23 = compare, - _v24 = _p20; - result = _v21; - currentGroup = _v22; - compare = _v23; - list = _v24; - continue groupWhileTransitivelyHelp; - } - } - } - } - }); -var _elm_community$list_extra$List_Extra$groupWhileTransitively = F2( - function (compare, list) { - return A4( - _elm_community$list_extra$List_Extra$groupWhileTransitivelyHelp, - {ctor: '[]'}, - {ctor: '[]'}, - compare, - list); - }); -var _elm_community$list_extra$List_Extra$stripPrefix = F2( - function (prefix, xs) { - var step = F2( - function (e, m) { - var _p21 = m; - if (_p21.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - if (_p21._0.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Native_Utils.eq(e, _p21._0._0) ? _elm_lang$core$Maybe$Just(_p21._0._1) : _elm_lang$core$Maybe$Nothing; - } - } - }); - return A3( - _elm_lang$core$List$foldl, - step, - _elm_lang$core$Maybe$Just(xs), - prefix); - }); -var _elm_community$list_extra$List_Extra$dropWhileRight = function (p) { - return A2( - _elm_lang$core$List$foldr, - F2( - function (x, xs) { - return (p(x) && _elm_lang$core$List$isEmpty(xs)) ? {ctor: '[]'} : {ctor: '::', _0: x, _1: xs}; - }), - {ctor: '[]'}); -}; -var _elm_community$list_extra$List_Extra$takeWhileRight = function (p) { - var step = F2( - function (x, _p22) { - var _p23 = _p22; - var _p24 = _p23._0; - return (p(x) && _p23._1) ? { - ctor: '_Tuple2', - _0: {ctor: '::', _0: x, _1: _p24}, - _1: true - } : {ctor: '_Tuple2', _0: _p24, _1: false}; - }); - return function (_p25) { - return _elm_lang$core$Tuple$first( - A3( - _elm_lang$core$List$foldr, - step, - { - ctor: '_Tuple2', - _0: {ctor: '[]'}, - _1: true - }, - _p25)); - }; -}; -var _elm_community$list_extra$List_Extra$splitAt = F2( - function (n, xs) { - return { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$List$take, n, xs), - _1: A2(_elm_lang$core$List$drop, n, xs) - }; - }); -var _elm_community$list_extra$List_Extra$groupsOfVarying_ = F3( - function (listOflengths, list, accu) { - groupsOfVarying_: - while (true) { - var _p26 = {ctor: '_Tuple2', _0: listOflengths, _1: list}; - if (((_p26.ctor === '_Tuple2') && (_p26._0.ctor === '::')) && (_p26._1.ctor === '::')) { - var _p27 = A2(_elm_community$list_extra$List_Extra$splitAt, _p26._0._0, list); - var head = _p27._0; - var tail = _p27._1; - var _v28 = _p26._0._1, - _v29 = tail, - _v30 = {ctor: '::', _0: head, _1: accu}; - listOflengths = _v28; - list = _v29; - accu = _v30; - continue groupsOfVarying_; - } else { - return _elm_lang$core$List$reverse(accu); - } - } - }); -var _elm_community$list_extra$List_Extra$groupsOfVarying = F2( - function (listOflengths, list) { - return A3( - _elm_community$list_extra$List_Extra$groupsOfVarying_, - listOflengths, - list, - {ctor: '[]'}); - }); -var _elm_community$list_extra$List_Extra$unfoldr = F2( - function (f, seed) { - var _p28 = f(seed); - if (_p28.ctor === 'Nothing') { - return {ctor: '[]'}; - } else { - return { - ctor: '::', - _0: _p28._0._0, - _1: A2(_elm_community$list_extra$List_Extra$unfoldr, f, _p28._0._1) - }; - } - }); -var _elm_community$list_extra$List_Extra$mapAccumr = F3( - function (f, acc0, list) { - return A3( - _elm_lang$core$List$foldr, - F2( - function (x, _p29) { - var _p30 = _p29; - var _p31 = A2(f, _p30._0, x); - var acc2 = _p31._0; - var y = _p31._1; - return { - ctor: '_Tuple2', - _0: acc2, - _1: {ctor: '::', _0: y, _1: _p30._1} - }; - }), - { - ctor: '_Tuple2', - _0: acc0, - _1: {ctor: '[]'} - }, - list); - }); -var _elm_community$list_extra$List_Extra$mapAccuml = F3( - function (f, acc0, list) { - var _p32 = A3( - _elm_lang$core$List$foldl, - F2( - function (x, _p33) { - var _p34 = _p33; - var _p35 = A2(f, _p34._0, x); - var acc2 = _p35._0; - var y = _p35._1; - return { - ctor: '_Tuple2', - _0: acc2, - _1: {ctor: '::', _0: y, _1: _p34._1} - }; - }), - { - ctor: '_Tuple2', - _0: acc0, - _1: {ctor: '[]'} - }, - list); - var accFinal = _p32._0; - var generatedList = _p32._1; - return { - ctor: '_Tuple2', - _0: accFinal, - _1: _elm_lang$core$List$reverse(generatedList) - }; - }); -var _elm_community$list_extra$List_Extra$scanr1 = F2( - function (f, xs_) { - var _p36 = xs_; - if (_p36.ctor === '[]') { - return {ctor: '[]'}; - } else { - if (_p36._1.ctor === '[]') { - return { - ctor: '::', - _0: _p36._0, - _1: {ctor: '[]'} - }; - } else { - var _p37 = A2(_elm_community$list_extra$List_Extra$scanr1, f, _p36._1); - if (_p37.ctor === '::') { - return { - ctor: '::', - _0: A2(f, _p36._0, _p37._0), - _1: _p37 - }; - } else { - return {ctor: '[]'}; - } - } - } - }); -var _elm_community$list_extra$List_Extra$scanr = F3( - function (f, acc, xs_) { - var _p38 = xs_; - if (_p38.ctor === '[]') { - return { - ctor: '::', - _0: acc, - _1: {ctor: '[]'} - }; - } else { - var _p39 = A3(_elm_community$list_extra$List_Extra$scanr, f, acc, _p38._1); - if (_p39.ctor === '::') { - return { - ctor: '::', - _0: A2(f, _p38._0, _p39._0), - _1: _p39 - }; - } else { - return {ctor: '[]'}; - } - } - }); -var _elm_community$list_extra$List_Extra$scanl1 = F2( - function (f, xs_) { - var _p40 = xs_; - if (_p40.ctor === '[]') { - return {ctor: '[]'}; - } else { - return A3(_elm_lang$core$List$scanl, f, _p40._0, _p40._1); - } - }); -var _elm_community$list_extra$List_Extra$indexedFoldr = F3( - function (func, acc, list) { - var step = F2( - function (x, _p41) { - var _p42 = _p41; - var _p43 = _p42._0; - return { - ctor: '_Tuple2', - _0: _p43 - 1, - _1: A3(func, _p43, x, _p42._1) - }; - }); - return _elm_lang$core$Tuple$second( - A3( - _elm_lang$core$List$foldr, - step, - { - ctor: '_Tuple2', - _0: _elm_lang$core$List$length(list) - 1, - _1: acc - }, - list)); - }); -var _elm_community$list_extra$List_Extra$indexedFoldl = F3( - function (func, acc, list) { - var step = F2( - function (x, _p44) { - var _p45 = _p44; - var _p46 = _p45._0; - return { - ctor: '_Tuple2', - _0: _p46 + 1, - _1: A3(func, _p46, x, _p45._1) - }; - }); - return _elm_lang$core$Tuple$second( - A3( - _elm_lang$core$List$foldl, - step, - {ctor: '_Tuple2', _0: 0, _1: acc}, - list)); - }); -var _elm_community$list_extra$List_Extra$foldr1 = F2( - function (f, xs) { - var mf = F2( - function (x, m) { - return _elm_lang$core$Maybe$Just( - function () { - var _p47 = m; - if (_p47.ctor === 'Nothing') { - return x; - } else { - return A2(f, x, _p47._0); - } - }()); - }); - return A3(_elm_lang$core$List$foldr, mf, _elm_lang$core$Maybe$Nothing, xs); - }); -var _elm_community$list_extra$List_Extra$foldl1 = F2( - function (f, xs) { - var mf = F2( - function (x, m) { - return _elm_lang$core$Maybe$Just( - function () { - var _p48 = m; - if (_p48.ctor === 'Nothing') { - return x; - } else { - return A2(f, _p48._0, x); - } - }()); - }); - return A3(_elm_lang$core$List$foldl, mf, _elm_lang$core$Maybe$Nothing, xs); - }); -var _elm_community$list_extra$List_Extra$reverseAppend = F2( - function (list1, list2) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - list2, - list1); - }); -var _elm_community$list_extra$List_Extra$interweaveHelp = F3( - function (acc, list1, list2) { - interweaveHelp: - while (true) { - var _p49 = {ctor: '_Tuple2', _0: list1, _1: list2}; - if (_p49._0.ctor === '::') { - if (_p49._1.ctor === '::') { - var _v44 = { - ctor: '::', - _0: _p49._1._0, - _1: {ctor: '::', _0: _p49._0._0, _1: acc} - }, - _v45 = _p49._0._1, - _v46 = _p49._1._1; - acc = _v44; - list1 = _v45; - list2 = _v46; - continue interweaveHelp; - } else { - return A2(_elm_community$list_extra$List_Extra$reverseAppend, acc, list1); - } - } else { - return A2(_elm_community$list_extra$List_Extra$reverseAppend, acc, list2); - } - } - }); -var _elm_community$list_extra$List_Extra$interweave = _elm_community$list_extra$List_Extra$interweaveHelp( - {ctor: '[]'}); -var _elm_community$list_extra$List_Extra$permutations = function (xs_) { - var _p50 = xs_; - if (_p50.ctor === '[]') { - return { - ctor: '::', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }; - } else { - var f = function (_p51) { - var _p52 = _p51; - return A2( - _elm_lang$core$List$map, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })(_p52._0), - _elm_community$list_extra$List_Extra$permutations(_p52._1)); - }; - return A2( - _elm_lang$core$List$concatMap, - f, - _elm_community$list_extra$List_Extra$select(_p50)); - } -}; -var _elm_community$list_extra$List_Extra$isPermutationOf = F2( - function (permut, xs) { - return A2( - _elm_lang$core$List$member, - permut, - _elm_community$list_extra$List_Extra$permutations(xs)); - }); -var _elm_community$list_extra$List_Extra$subsequencesNonEmpty = function (xs) { - var _p53 = xs; - if (_p53.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p54 = _p53._0; - var f = F2( - function (ys, r) { - return { - ctor: '::', - _0: ys, - _1: { - ctor: '::', - _0: {ctor: '::', _0: _p54, _1: ys}, - _1: r - } - }; - }); - return { - ctor: '::', - _0: { - ctor: '::', - _0: _p54, - _1: {ctor: '[]'} - }, - _1: A3( - _elm_lang$core$List$foldr, - f, - {ctor: '[]'}, - _elm_community$list_extra$List_Extra$subsequencesNonEmpty(_p53._1)) - }; - } -}; -var _elm_community$list_extra$List_Extra$subsequences = function (xs) { - return { - ctor: '::', - _0: {ctor: '[]'}, - _1: _elm_community$list_extra$List_Extra$subsequencesNonEmpty(xs) - }; -}; -var _elm_community$list_extra$List_Extra$rowsLength = function (listOfLists) { - var _p55 = listOfLists; - if (_p55.ctor === '[]') { - return 0; - } else { - return _elm_lang$core$List$length(_p55._0); - } -}; -var _elm_community$list_extra$List_Extra$transpose = function (listOfLists) { - return A3( - _elm_lang$core$List$foldr, - _elm_lang$core$List$map2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })), - A2( - _elm_lang$core$List$repeat, - _elm_community$list_extra$List_Extra$rowsLength(listOfLists), - {ctor: '[]'}), - listOfLists); -}; -var _elm_community$list_extra$List_Extra$intercalate = function (xs) { - return function (_p56) { - return _elm_lang$core$List$concat( - A2(_elm_lang$core$List$intersperse, xs, _p56)); - }; -}; -var _elm_community$list_extra$List_Extra$filterNot = F2( - function (pred, list) { - return A2( - _elm_lang$core$List$filter, - function (_p57) { - return !pred(_p57); - }, - list); - }); -var _elm_community$list_extra$List_Extra$removeIfIndex = function (predicate) { - return A2( - _elm_community$list_extra$List_Extra$indexedFoldr, - F3( - function (index, item, acc) { - return predicate(index) ? acc : {ctor: '::', _0: item, _1: acc}; - }), - {ctor: '[]'}); -}; -var _elm_community$list_extra$List_Extra$removeAt = F2( - function (index, l) { - if (_elm_lang$core$Native_Utils.cmp(index, 0) < 0) { - return l; - } else { - var tail = _elm_lang$core$List$tail( - A2(_elm_lang$core$List$drop, index, l)); - var head = A2(_elm_lang$core$List$take, index, l); - var _p58 = tail; - if (_p58.ctor === 'Nothing') { - return l; - } else { - return A2(_elm_lang$core$List$append, head, _p58._0); - } - } - }); -var _elm_community$list_extra$List_Extra$stableSortWith = F2( - function (pred, list) { - var predWithIndex = F2( - function (_p60, _p59) { - var _p61 = _p60; - var _p62 = _p59; - var result = A2(pred, _p61._0, _p62._0); - var _p63 = result; - if (_p63.ctor === 'EQ') { - return A2(_elm_lang$core$Basics$compare, _p61._1, _p62._1); - } else { - return result; - } - }); - var listWithIndex = A2( - _elm_lang$core$List$indexedMap, - F2( - function (i, a) { - return {ctor: '_Tuple2', _0: a, _1: i}; - }), - list); - return A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - A2(_elm_lang$core$List$sortWith, predWithIndex, listWithIndex)); - }); -var _elm_community$list_extra$List_Extra$remove = F2( - function (x, xs) { - var _p64 = xs; - if (_p64.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p66 = _p64._1; - var _p65 = _p64._0; - return _elm_lang$core$Native_Utils.eq(x, _p65) ? _p66 : { - ctor: '::', - _0: _p65, - _1: A2(_elm_community$list_extra$List_Extra$remove, x, _p66) - }; - } - }); -var _elm_community$list_extra$List_Extra$updateIfIndex = F3( - function (predicate, update, list) { - return A2( - _elm_lang$core$List$indexedMap, - F2( - function (i, x) { - return predicate(i) ? update(x) : x; - }), - list); - }); -var _elm_community$list_extra$List_Extra$updateAt = F3( - function (index, fn, list) { - if (_elm_lang$core$Native_Utils.cmp(index, 0) < 0) { - return list; - } else { - var tail = A2(_elm_lang$core$List$drop, index, list); - var head = A2(_elm_lang$core$List$take, index, list); - var _p67 = tail; - if (_p67.ctor === '::') { - return A2( - _elm_lang$core$Basics_ops['++'], - head, - { - ctor: '::', - _0: fn(_p67._0), - _1: _p67._1 - }); - } else { - return list; - } - } - }); -var _elm_community$list_extra$List_Extra$setAt = F2( - function (index, value) { - return A2( - _elm_community$list_extra$List_Extra$updateAt, - index, - _elm_lang$core$Basics$always(value)); - }); -var _elm_community$list_extra$List_Extra$updateIf = F3( - function (predicate, update, list) { - return A2( - _elm_lang$core$List$map, - function (item) { - return predicate(item) ? update(item) : item; - }, - list); - }); -var _elm_community$list_extra$List_Extra$replaceIf = F3( - function (predicate, replacement, list) { - return A3( - _elm_community$list_extra$List_Extra$updateIf, - predicate, - _elm_lang$core$Basics$always(replacement), - list); - }); -var _elm_community$list_extra$List_Extra$count = function (predicate) { - return A2( - _elm_lang$core$List$foldl, - F2( - function (x, acc) { - return predicate(x) ? (acc + 1) : acc; - }), - 0); -}; -var _elm_community$list_extra$List_Extra$findIndices = function (predicate) { - var consIndexIf = F3( - function (index, x, acc) { - return predicate(x) ? {ctor: '::', _0: index, _1: acc} : acc; - }); - return A2( - _elm_community$list_extra$List_Extra$indexedFoldr, - consIndexIf, - {ctor: '[]'}); -}; -var _elm_community$list_extra$List_Extra$findIndexHelp = F3( - function (index, predicate, list) { - findIndexHelp: - while (true) { - var _p68 = list; - if (_p68.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - if (predicate(_p68._0)) { - return _elm_lang$core$Maybe$Just(index); - } else { - var _v58 = index + 1, - _v59 = predicate, - _v60 = _p68._1; - index = _v58; - predicate = _v59; - list = _v60; - continue findIndexHelp; - } - } - } - }); -var _elm_community$list_extra$List_Extra$findIndex = _elm_community$list_extra$List_Extra$findIndexHelp(0); -var _elm_community$list_extra$List_Extra$splitWhen = F2( - function (predicate, list) { - return A2( - _elm_lang$core$Maybe$map, - function (i) { - return A2(_elm_community$list_extra$List_Extra$splitAt, i, list); - }, - A2(_elm_community$list_extra$List_Extra$findIndex, predicate, list)); - }); -var _elm_community$list_extra$List_Extra$elemIndices = function (x) { - return _elm_community$list_extra$List_Extra$findIndices( - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - })(x)); -}; -var _elm_community$list_extra$List_Extra$elemIndex = function (x) { - return _elm_community$list_extra$List_Extra$findIndex( - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - })(x)); -}; -var _elm_community$list_extra$List_Extra$find = F2( - function (predicate, list) { - find: - while (true) { - var _p69 = list; - if (_p69.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p70 = _p69._0; - if (predicate(_p70)) { - return _elm_lang$core$Maybe$Just(_p70); - } else { - var _v62 = predicate, - _v63 = _p69._1; - predicate = _v62; - list = _v63; - continue find; - } - } - } - }); -var _elm_community$list_extra$List_Extra$notMember = function (x) { - return function (_p71) { - return !A2(_elm_lang$core$List$member, x, _p71); - }; -}; -var _elm_community$list_extra$List_Extra$reverseMap = F2( - function (f, xs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, acc) { - return { - ctor: '::', - _0: f(x), - _1: acc - }; - }), - {ctor: '[]'}, - xs); - }); -var _elm_community$list_extra$List_Extra$andThen = _elm_lang$core$List$concatMap; -var _elm_community$list_extra$List_Extra$lift2 = F3( - function (f, la, lb) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (a) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (b) { - return { - ctor: '::', - _0: A2(f, a, b), - _1: {ctor: '[]'} - }; - }, - lb); - }, - la); - }); -var _elm_community$list_extra$List_Extra$cartesianProduct = function (ll) { - var _p72 = ll; - if (_p72.ctor === '[]') { - return { - ctor: '::', - _0: {ctor: '[]'}, - _1: {ctor: '[]'} - }; - } else { - return A3( - _elm_community$list_extra$List_Extra$lift2, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - _p72._0, - _elm_community$list_extra$List_Extra$cartesianProduct(_p72._1)); - } -}; -var _elm_community$list_extra$List_Extra$lift3 = F4( - function (f, la, lb, lc) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (a) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (b) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (c) { - return { - ctor: '::', - _0: A3(f, a, b, c), - _1: {ctor: '[]'} - }; - }, - lc); - }, - lb); - }, - la); - }); -var _elm_community$list_extra$List_Extra$lift4 = F5( - function (f, la, lb, lc, ld) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (a) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (b) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (c) { - return A2( - _elm_community$list_extra$List_Extra$andThen, - function (d) { - return { - ctor: '::', - _0: A4(f, a, b, c, d), - _1: {ctor: '[]'} - }; - }, - ld); - }, - lc); - }, - lb); - }, - la); - }); -var _elm_community$list_extra$List_Extra$andMap = F2( - function (l, fl) { - return A3( - _elm_lang$core$List$map2, - F2( - function (x, y) { - return x(y); - }), - fl, - l); - }); -var _elm_community$list_extra$List_Extra$uniqueHelp = F4( - function (f, existing, remaining, accumulator) { - uniqueHelp: - while (true) { - var _p73 = remaining; - if (_p73.ctor === '[]') { - return _elm_lang$core$List$reverse(accumulator); - } else { - var _p75 = _p73._1; - var _p74 = _p73._0; - var computedFirst = f(_p74); - if (A2(_elm_lang$core$Set$member, computedFirst, existing)) { - var _v66 = f, - _v67 = existing, - _v68 = _p75, - _v69 = accumulator; - f = _v66; - existing = _v67; - remaining = _v68; - accumulator = _v69; - continue uniqueHelp; - } else { - var _v70 = f, - _v71 = A2(_elm_lang$core$Set$insert, computedFirst, existing), - _v72 = _p75, - _v73 = {ctor: '::', _0: _p74, _1: accumulator}; - f = _v70; - existing = _v71; - remaining = _v72; - accumulator = _v73; - continue uniqueHelp; - } - } - } - }); -var _elm_community$list_extra$List_Extra$uniqueBy = F2( - function (f, list) { - return A4( - _elm_community$list_extra$List_Extra$uniqueHelp, - f, - _elm_lang$core$Set$empty, - list, - {ctor: '[]'}); - }); -var _elm_community$list_extra$List_Extra$allDifferentBy = F2( - function (f, list) { - return _elm_lang$core$Native_Utils.eq( - _elm_lang$core$List$length(list), - _elm_lang$core$List$length( - A2(_elm_community$list_extra$List_Extra$uniqueBy, f, list))); - }); -var _elm_community$list_extra$List_Extra$allDifferent = function (list) { - return A2(_elm_community$list_extra$List_Extra$allDifferentBy, _elm_lang$core$Basics$identity, list); -}; -var _elm_community$list_extra$List_Extra$unique = function (list) { - return A4( - _elm_community$list_extra$List_Extra$uniqueHelp, - _elm_lang$core$Basics$identity, - _elm_lang$core$Set$empty, - list, - {ctor: '[]'}); -}; -var _elm_community$list_extra$List_Extra$dropWhile = F2( - function (predicate, list) { - dropWhile: - while (true) { - var _p76 = list; - if (_p76.ctor === '[]') { - return {ctor: '[]'}; - } else { - if (predicate(_p76._0)) { - var _v75 = predicate, - _v76 = _p76._1; - predicate = _v75; - list = _v76; - continue dropWhile; - } else { - return list; - } - } - } - }); -var _elm_community$list_extra$List_Extra$takeWhile = function (predicate) { - var takeWhileMemo = F2( - function (memo, list) { - takeWhileMemo: - while (true) { - var _p77 = list; - if (_p77.ctor === '[]') { - return _elm_lang$core$List$reverse(memo); - } else { - var _p78 = _p77._0; - if (predicate(_p78)) { - var _v78 = {ctor: '::', _0: _p78, _1: memo}, - _v79 = _p77._1; - memo = _v78; - list = _v79; - continue takeWhileMemo; - } else { - return _elm_lang$core$List$reverse(memo); - } - } - } - }); - return takeWhileMemo( - {ctor: '[]'}); -}; -var _elm_community$list_extra$List_Extra$span = F2( - function (p, xs) { - return { - ctor: '_Tuple2', - _0: A2(_elm_community$list_extra$List_Extra$takeWhile, p, xs), - _1: A2(_elm_community$list_extra$List_Extra$dropWhile, p, xs) - }; - }); -var _elm_community$list_extra$List_Extra$break = function (p) { - return _elm_community$list_extra$List_Extra$span( - function (_p79) { - return !p(_p79); - }); -}; -var _elm_community$list_extra$List_Extra$groupWhile = F2( - function (eq, xs_) { - var _p80 = xs_; - if (_p80.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p82 = _p80._0; - var _p81 = A2( - _elm_community$list_extra$List_Extra$span, - eq(_p82), - _p80._1); - var ys = _p81._0; - var zs = _p81._1; - return { - ctor: '::', - _0: {ctor: '::', _0: _p82, _1: ys}, - _1: A2(_elm_community$list_extra$List_Extra$groupWhile, eq, zs) - }; - } - }); -var _elm_community$list_extra$List_Extra$group = _elm_community$list_extra$List_Extra$groupWhile( - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - })); -var _elm_community$list_extra$List_Extra$minimumBy = F2( - function (f, ls) { - var minBy = F2( - function (x, _p83) { - var _p84 = _p83; - var _p85 = _p84._1; - var fx = f(x); - return (_elm_lang$core$Native_Utils.cmp(fx, _p85) < 0) ? {ctor: '_Tuple2', _0: x, _1: fx} : {ctor: '_Tuple2', _0: _p84._0, _1: _p85}; - }); - var _p86 = ls; - if (_p86.ctor === '::') { - if (_p86._1.ctor === '[]') { - return _elm_lang$core$Maybe$Just(_p86._0); - } else { - var _p87 = _p86._0; - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Tuple$first( - A3( - _elm_lang$core$List$foldl, - minBy, - { - ctor: '_Tuple2', - _0: _p87, - _1: f(_p87) - }, - _p86._1))); - } - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_community$list_extra$List_Extra$maximumBy = F2( - function (f, ls) { - var maxBy = F2( - function (x, _p88) { - var _p89 = _p88; - var _p90 = _p89._1; - var fx = f(x); - return (_elm_lang$core$Native_Utils.cmp(fx, _p90) > 0) ? {ctor: '_Tuple2', _0: x, _1: fx} : {ctor: '_Tuple2', _0: _p89._0, _1: _p90}; - }); - var _p91 = ls; - if (_p91.ctor === '::') { - if (_p91._1.ctor === '[]') { - return _elm_lang$core$Maybe$Just(_p91._0); - } else { - var _p92 = _p91._0; - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Tuple$first( - A3( - _elm_lang$core$List$foldl, - maxBy, - { - ctor: '_Tuple2', - _0: _p92, - _1: f(_p92) - }, - _p91._1))); - } - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_community$list_extra$List_Extra$uncons = function (xs) { - var _p93 = xs; - if (_p93.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: _p93._0, _1: _p93._1}); - } -}; -var _elm_community$list_extra$List_Extra$swapAt = F3( - function (index1, index2, l) { - swapAt: - while (true) { - if (_elm_lang$core$Native_Utils.eq(index1, index2) || (_elm_lang$core$Native_Utils.cmp(index1, 0) < 0)) { - return l; - } else { - if (_elm_lang$core$Native_Utils.cmp(index1, index2) > 0) { - var _v86 = index2, - _v87 = index1, - _v88 = l; - index1 = _v86; - index2 = _v87; - l = _v88; - continue swapAt; - } else { - var _p94 = A2(_elm_community$list_extra$List_Extra$splitAt, index1, l); - var part1 = _p94._0; - var tail1 = _p94._1; - var _p95 = A2(_elm_community$list_extra$List_Extra$splitAt, index2 - index1, tail1); - var head2 = _p95._0; - var tail2 = _p95._1; - var _p96 = { - ctor: '_Tuple2', - _0: _elm_community$list_extra$List_Extra$uncons(head2), - _1: _elm_community$list_extra$List_Extra$uncons(tail2) - }; - if (((((_p96.ctor === '_Tuple2') && (_p96._0.ctor === 'Just')) && (_p96._0._0.ctor === '_Tuple2')) && (_p96._1.ctor === 'Just')) && (_p96._1._0.ctor === '_Tuple2')) { - return _elm_lang$core$List$concat( - { - ctor: '::', - _0: part1, - _1: { - ctor: '::', - _0: {ctor: '::', _0: _p96._1._0._0, _1: _p96._0._0._1}, - _1: { - ctor: '::', - _0: {ctor: '::', _0: _p96._0._0._0, _1: _p96._1._0._1}, - _1: {ctor: '[]'} - } - } - }); - } else { - return l; - } - } - } - } - }); -var _elm_community$list_extra$List_Extra$cycleHelp = F3( - function (acc, n, list) { - cycleHelp: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(n, 0) > 0) { - var _v90 = A2(_elm_community$list_extra$List_Extra$reverseAppend, list, acc), - _v91 = n - 1, - _v92 = list; - acc = _v90; - n = _v91; - list = _v92; - continue cycleHelp; - } else { - return acc; - } - } - }); -var _elm_community$list_extra$List_Extra$cycle = F2( - function (len, list) { - var cycleLength = _elm_lang$core$List$length(list); - return (_elm_lang$core$Native_Utils.eq(cycleLength, 0) || _elm_lang$core$Native_Utils.eq(cycleLength, len)) ? list : ((_elm_lang$core$Native_Utils.cmp(cycleLength, len) < 0) ? _elm_lang$core$List$reverse( - A2( - _elm_community$list_extra$List_Extra$reverseAppend, - A2( - _elm_lang$core$List$take, - A2(_elm_lang$core$Basics$rem, len, cycleLength), - list), - A3( - _elm_community$list_extra$List_Extra$cycleHelp, - {ctor: '[]'}, - (len / cycleLength) | 0, - list))) : A2(_elm_lang$core$List$take, len, list)); - }); -var _elm_community$list_extra$List_Extra$initialize = F2( - function (n, f) { - var step = F2( - function (i, acc) { - step: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(i, 0) < 0) { - return acc; - } else { - var _v93 = i - 1, - _v94 = { - ctor: '::', - _0: f(i), - _1: acc - }; - i = _v93; - acc = _v94; - continue step; - } - } - }); - return A2( - step, - n - 1, - {ctor: '[]'}); - }); -var _elm_community$list_extra$List_Extra$iterate = F2( - function (f, x) { - var _p97 = f(x); - if (_p97.ctor === 'Just') { - return { - ctor: '::', - _0: x, - _1: A2(_elm_community$list_extra$List_Extra$iterate, f, _p97._0) - }; - } else { - return { - ctor: '::', - _0: x, - _1: {ctor: '[]'} - }; - } - }); -var _elm_community$list_extra$List_Extra$getAt = F2( - function (idx, xs) { - return (_elm_lang$core$Native_Utils.cmp(idx, 0) < 0) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$List$head( - A2(_elm_lang$core$List$drop, idx, xs)); - }); -var _elm_community$list_extra$List_Extra_ops = _elm_community$list_extra$List_Extra_ops || {}; -_elm_community$list_extra$List_Extra_ops['!!'] = _elm_lang$core$Basics$flip(_elm_community$list_extra$List_Extra$getAt); -var _elm_community$list_extra$List_Extra$init = function (items) { - var _p98 = items; - if (_p98.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - return A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$List$reverse, - _elm_lang$core$List$tail( - _elm_lang$core$List$reverse(_p98))); - } -}; -var _elm_community$list_extra$List_Extra$last = function (items) { - last: - while (true) { - var _p99 = items; - if (_p99.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - if (_p99._1.ctor === '[]') { - return _elm_lang$core$Maybe$Just(_p99._0); - } else { - var _v98 = _p99._1; - items = _v98; - continue last; - } - } - } -}; - -var _Gizra$elm_dictlist$AllDictList$equalKeys = F3( - function (key1, key2, dict) { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(dict); - return _elm_lang$core$Native_Utils.eq( - ord(key1), - ord(key2)); - }); -var _Gizra$elm_dictlist$AllDictList$removeKey = F3( - function (key, dict, list) { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(dict); - var keyComparable = ord(key); - return A2(_eeue56$elm_all_dict$AllDict$member, key, dict) ? A2( - _elm_lang$core$List$filter, - function (k) { - return !_elm_lang$core$Native_Utils.eq( - ord(k), - keyComparable); - }, - list) : list; - }); -var _Gizra$elm_dictlist$AllDictList$unsafeGet = F2( - function (key, dict) { - var _p0 = A2(_eeue56$elm_all_dict$AllDict$get, key, dict); - if (_p0.ctor === 'Just') { - return _p0._0; - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDictList', - { - start: {line: 1280, column: 5}, - end: {line: 1285, column: 81} - }, - _p0)('Internal error: AllDictList list not in sync with dict'); - } - }); -var _Gizra$elm_dictlist$AllDictList$toDict = function (_p2) { - var _p3 = _p2; - return A3(_eeue56$elm_all_dict$AllDict$foldl, _elm_lang$core$Dict$insert, _elm_lang$core$Dict$empty, _p3._0); -}; -var _Gizra$elm_dictlist$AllDictList$toAllDict = function (_p4) { - var _p5 = _p4; - return _p5._0; -}; -var _Gizra$elm_dictlist$AllDictList$keys = function (_p6) { - var _p7 = _p6; - return _p7._1; -}; -var _Gizra$elm_dictlist$AllDictList$foldr = F3( - function (func, accum, _p8) { - var _p9 = _p8; - var go = F2( - function (key, acc) { - var _p10 = A2(_eeue56$elm_all_dict$AllDict$get, key, _p9._0); - if (_p10.ctor === 'Just') { - return A3(func, key, _p10._0, acc); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDictList', - { - start: {line: 1072, column: 13}, - end: {line: 1077, column: 89} - }, - _p10)('Internal error: AllDictList list not in sync with dict'); - } - }); - return A3(_elm_lang$core$List$foldr, go, accum, _p9._1); - }); -var _Gizra$elm_dictlist$AllDictList$values = function (dictList) { - return A3( - _Gizra$elm_dictlist$AllDictList$foldr, - F3( - function (key, value, valueList) { - return {ctor: '::', _0: value, _1: valueList}; - }), - {ctor: '[]'}, - dictList); -}; -var _Gizra$elm_dictlist$AllDictList$toList = function (dict) { - return A3( - _Gizra$elm_dictlist$AllDictList$foldr, - F3( - function (key, value, list) { - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: key, _1: value}, - _1: list - }; - }), - {ctor: '[]'}, - dict); -}; -var _Gizra$elm_dictlist$AllDictList$foldl = F3( - function (func, accum, _p12) { - var _p13 = _p12; - var go = F2( - function (key, acc) { - return A3( - func, - key, - A2(_Gizra$elm_dictlist$AllDictList$unsafeGet, key, _p13._0), - acc); - }); - return A3(_elm_lang$core$List$foldl, go, accum, _p13._1); - }); -var _Gizra$elm_dictlist$AllDictList$merge = F6( - function (leftFunc, bothFunc, rightFunc, leftDict, _p14, initialResult) { - var _p15 = _p14; - var _p24 = _p15._0; - var goRight = F3( - function (remainingRight, rightKey, accumRight) { - var _p16 = A2(_eeue56$elm_all_dict$AllDict$get, rightKey, remainingRight); - if (_p16.ctor === 'Just') { - return A3(rightFunc, rightKey, _p16._0, accumRight); - } else { - return accumRight; - } - }); - var goLeft = F3( - function (leftKey, leftValue, _p17) { - var _p18 = _p17; - var _p21 = _p18._0; - var _p20 = _p18._1; - var _p19 = A2(_eeue56$elm_all_dict$AllDict$get, leftKey, _p24); - if (_p19.ctor === 'Just') { - return { - ctor: '_Tuple2', - _0: A2(_eeue56$elm_all_dict$AllDict$remove, leftKey, _p21), - _1: A4(bothFunc, leftKey, leftValue, _p19._0, _p20) - }; - } else { - return { - ctor: '_Tuple2', - _0: _p21, - _1: A3(leftFunc, leftKey, leftValue, _p20) - }; - } - }); - return function (_p22) { - var _p23 = _p22; - return A3( - _elm_lang$core$List$foldl, - goRight(_p23._0), - _p23._1, - _p15._1); - }( - A3( - _Gizra$elm_dictlist$AllDictList$foldl, - goLeft, - {ctor: '_Tuple2', _0: _p24, _1: initialResult}, - leftDict)); - }); -var _Gizra$elm_dictlist$AllDictList$isEmpty = function (_p25) { - var _p26 = _p25; - return _elm_lang$core$List$isEmpty(_p26._1); -}; -var _Gizra$elm_dictlist$AllDictList$size = function (_p27) { - var _p28 = _p27; - return _eeue56$elm_all_dict$AllDict$size(_p28._0); -}; -var _Gizra$elm_dictlist$AllDictList$member = F2( - function (key, _p29) { - var _p30 = _p29; - return A2(_eeue56$elm_all_dict$AllDict$member, key, _p30._0); - }); -var _Gizra$elm_dictlist$AllDictList$get = F2( - function (key, _p31) { - var _p32 = _p31; - return A2(_eeue56$elm_all_dict$AllDict$get, key, _p32._0); - }); -var _Gizra$elm_dictlist$AllDictList$getOrd = function (_p33) { - var _p34 = _p33; - return _eeue56$elm_all_dict$AllDict$getOrd(_p34._0); -}; -var _Gizra$elm_dictlist$AllDictList$fullEq = F2( - function (first, second) { - var secondWithOrd = A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$mapFirst( - _Gizra$elm_dictlist$AllDictList$getOrd(second)), - _Gizra$elm_dictlist$AllDictList$toList(second)); - var firstWithOrd = A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$mapFirst( - _Gizra$elm_dictlist$AllDictList$getOrd(first)), - _Gizra$elm_dictlist$AllDictList$toList(first)); - return _elm_lang$core$Native_Utils.eq(firstWithOrd, secondWithOrd); - }); -var _Gizra$elm_dictlist$AllDictList$eq = F2( - function (first, second) { - return _elm_lang$core$Native_Utils.eq( - _Gizra$elm_dictlist$AllDictList$toList(first), - _Gizra$elm_dictlist$AllDictList$toList(second)); - }); -var _Gizra$elm_dictlist$AllDictList$getAt = F2( - function (index, _p35) { - var _p36 = _p35; - return A2( - _elm_lang$core$Maybe$andThen, - function (key) { - return A2( - _elm_lang$core$Maybe$map, - function (value) { - return {ctor: '_Tuple2', _0: key, _1: value}; - }, - A2(_eeue56$elm_all_dict$AllDict$get, key, _p36._0)); - }, - A2(_elm_community$list_extra$List_Extra$getAt, index, _p36._1)); - }); -var _Gizra$elm_dictlist$AllDictList$getKeyAt = F2( - function (index, _p37) { - var _p38 = _p37; - return A2(_elm_community$list_extra$List_Extra$getAt, index, _p38._1); - }); -var _Gizra$elm_dictlist$AllDictList$indexOfKey = F2( - function (key, _p39) { - var _p40 = _p39; - var ord = _eeue56$elm_all_dict$AllDict$getOrd(_p40._0); - var target = ord(key); - return A2( - _elm_community$list_extra$List_Extra$findIndex, - function (k) { - return _elm_lang$core$Native_Utils.eq( - ord(k), - target); - }, - _p40._1); - }); -var _Gizra$elm_dictlist$AllDictList$next = F2( - function (key, dictlist) { - return A2( - _elm_lang$core$Maybe$andThen, - function (index) { - return A2(_Gizra$elm_dictlist$AllDictList$getAt, index + 1, dictlist); - }, - A2(_Gizra$elm_dictlist$AllDictList$indexOfKey, key, dictlist)); - }); -var _Gizra$elm_dictlist$AllDictList$previous = F2( - function (key, dictlist) { - return A2( - _elm_lang$core$Maybe$andThen, - function (index) { - return A2(_Gizra$elm_dictlist$AllDictList$getAt, index - 1, dictlist); - }, - A2(_Gizra$elm_dictlist$AllDictList$indexOfKey, key, dictlist)); - }); -var _Gizra$elm_dictlist$AllDictList$atRelativePosition = F2( - function (position, dictlist) { - var _p41 = position; - if (_p41.ctor === 'BeforeKey') { - return A2(_Gizra$elm_dictlist$AllDictList$previous, _p41._0, dictlist); - } else { - return A2(_Gizra$elm_dictlist$AllDictList$next, _p41._0, dictlist); - } - }); -var _Gizra$elm_dictlist$AllDictList$minimum = function (_p42) { - var _p43 = _p42; - var go = F3( - function (_p44, value, acc) { - var _p45 = acc; - if (_p45.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Just(value); - } else { - return _elm_lang$core$Maybe$Just( - A2(_elm_lang$core$Basics$min, _p45._0, value)); - } - }); - return A3(_eeue56$elm_all_dict$AllDict$foldl, go, _elm_lang$core$Maybe$Nothing, _p43._0); -}; -var _Gizra$elm_dictlist$AllDictList$maximum = function (_p46) { - var _p47 = _p46; - var go = F3( - function (_p48, value, acc) { - var _p49 = acc; - if (_p49.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Just(value); - } else { - return _elm_lang$core$Maybe$Just( - A2(_elm_lang$core$Basics$max, _p49._0, value)); - } - }); - return A3(_eeue56$elm_all_dict$AllDict$foldl, go, _elm_lang$core$Maybe$Nothing, _p47._0); -}; -var _Gizra$elm_dictlist$AllDictList$product = function (_p50) { - var _p51 = _p50; - return A3( - _eeue56$elm_all_dict$AllDict$foldl, - _elm_lang$core$Basics$always( - F2( - function (x, y) { - return x * y; - })), - 1, - _p51._0); -}; -var _Gizra$elm_dictlist$AllDictList$sum = function (_p52) { - var _p53 = _p52; - return A3( - _eeue56$elm_all_dict$AllDict$foldl, - _elm_lang$core$Basics$always( - F2( - function (x, y) { - return x + y; - })), - 0, - _p53._0); -}; -var _Gizra$elm_dictlist$AllDictList$any = F2( - function (func, _p54) { - var _p55 = _p54; - var go = function (innerList) { - go: - while (true) { - var _p56 = innerList; - if (_p56.ctor === '[]') { - return false; - } else { - var _p57 = _p56._0; - if (A2( - func, - _p57, - A2(_Gizra$elm_dictlist$AllDictList$unsafeGet, _p57, _p55._0))) { - return true; - } else { - var _v29 = _p56._1; - innerList = _v29; - continue go; - } - } - } - }; - return go(_p55._1); - }); -var _Gizra$elm_dictlist$AllDictList$all = F2( - function (func, dictlist) { - return !A2( - _Gizra$elm_dictlist$AllDictList$any, - F2( - function (key, value) { - return !A2(func, key, value); - }), - dictlist); - }); -var _Gizra$elm_dictlist$AllDictList$length = _Gizra$elm_dictlist$AllDictList$size; -var _Gizra$elm_dictlist$AllDictList$head = function (_p58) { - var _p59 = _p58; - return A2( - _elm_lang$core$Maybe$andThen, - function (key) { - return A2( - _elm_lang$core$Maybe$map, - function (value) { - return {ctor: '_Tuple2', _0: key, _1: value}; - }, - A2(_eeue56$elm_all_dict$AllDict$get, key, _p59._0)); - }, - _elm_lang$core$List$head(_p59._1)); -}; -var _Gizra$elm_dictlist$AllDictList$AllDictList = F2( - function (a, b) { - return {ctor: 'AllDictList', _0: a, _1: b}; - }); -var _Gizra$elm_dictlist$AllDictList$cons = F3( - function (key, value, _p60) { - var _p61 = _p60; - var _p62 = _p61._0; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p62), - { - ctor: '::', - _0: key, - _1: A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p62, _p61._1) - }); - }); -var _Gizra$elm_dictlist$AllDictList$append = F2( - function (t1, t2) { - var go = F3( - function (key, value, acc) { - return A2(_Gizra$elm_dictlist$AllDictList$member, key, acc) ? acc : A3(_Gizra$elm_dictlist$AllDictList$cons, key, value, acc); - }); - return A3(_Gizra$elm_dictlist$AllDictList$foldr, go, t2, t1); - }); -var _Gizra$elm_dictlist$AllDictList$union = F2( - function (t1, t2) { - return A3(_Gizra$elm_dictlist$AllDictList$foldr, _Gizra$elm_dictlist$AllDictList$cons, t2, t1); - }); -var _Gizra$elm_dictlist$AllDictList$tail = function (_p63) { - var _p64 = _p63; - var _p65 = _p64._1; - if (_p65.ctor === '::') { - return _elm_lang$core$Maybe$Just( - A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A2(_eeue56$elm_all_dict$AllDict$remove, _p65._0, _p64._0), - _p65._1)); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$elm_dictlist$AllDictList$reverse = function (_p66) { - var _p67 = _p66; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - _p67._0, - _elm_lang$core$List$reverse(_p67._1)); -}; -var _Gizra$elm_dictlist$AllDictList$take = F2( - function (n, _p68) { - var _p69 = _p68; - var _p70 = _p69._0; - var go = function (key) { - return A2( - _eeue56$elm_all_dict$AllDict$insert, - key, - A2(_Gizra$elm_dictlist$AllDictList$unsafeGet, key, _p70)); - }; - var newList = A2(_elm_lang$core$List$take, n, _p69._1); - var newDict = A3( - _elm_lang$core$List$foldl, - go, - _eeue56$elm_all_dict$AllDict$empty( - _eeue56$elm_all_dict$AllDict$getOrd(_p70)), - newList); - return A2(_Gizra$elm_dictlist$AllDictList$AllDictList, newDict, newList); - }); -var _Gizra$elm_dictlist$AllDictList$drop = F2( - function (n, _p71) { - var _p72 = _p71; - var _p73 = _p72._0; - var go = function (key) { - return A2( - _eeue56$elm_all_dict$AllDict$insert, - key, - A2(_Gizra$elm_dictlist$AllDictList$unsafeGet, key, _p73)); - }; - var newList = A2(_elm_lang$core$List$drop, n, _p72._1); - var newDict = A3( - _elm_lang$core$List$foldl, - go, - _eeue56$elm_all_dict$AllDict$empty( - _eeue56$elm_all_dict$AllDict$getOrd(_p73)), - newList); - return A2(_Gizra$elm_dictlist$AllDictList$AllDictList, newDict, newList); - }); -var _Gizra$elm_dictlist$AllDictList$sort = function (_p74) { - var _p75 = _p74; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - _p75._0, - A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - A2( - _elm_lang$core$List$sortBy, - _elm_lang$core$Tuple$second, - _Gizra$elm_dictlist$AllDictList$toList(_p75)))); -}; -var _Gizra$elm_dictlist$AllDictList$sortBy = F2( - function (func, _p76) { - var _p77 = _p76; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - _p77._0, - A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - A2( - _elm_lang$core$List$sortBy, - function (_p78) { - return func( - _elm_lang$core$Tuple$second(_p78)); - }, - _Gizra$elm_dictlist$AllDictList$toList(_p77)))); - }); -var _Gizra$elm_dictlist$AllDictList$sortWith = F2( - function (func, _p79) { - var _p80 = _p79; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - _p80._0, - A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - A2( - _elm_lang$core$List$sortWith, - F2( - function (v1, v2) { - return A2( - func, - _elm_lang$core$Tuple$second(v1), - _elm_lang$core$Tuple$second(v2)); - }), - _Gizra$elm_dictlist$AllDictList$toList(_p80)))); - }); -var _Gizra$elm_dictlist$AllDictList$insertAfter = F4( - function (afterKey, key, value, _p81) { - var _p82 = _p81; - var _p87 = _p82._1; - var _p86 = _p82._0; - var newList = function () { - if (A2(_eeue56$elm_all_dict$AllDict$member, afterKey, _p86)) { - if (A3(_Gizra$elm_dictlist$AllDictList$equalKeys, key, afterKey, _p86)) { - return _p87; - } else { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(_p86); - var afterKeyComparable = ord(afterKey); - var listWithoutKey = A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p86, _p87); - var _p83 = A2( - _elm_community$list_extra$List_Extra$findIndex, - function (k) { - return _elm_lang$core$Native_Utils.eq( - ord(k), - afterKeyComparable); - }, - listWithoutKey); - if (_p83.ctor === 'Just') { - var _p84 = _p83._0; - return A2( - _elm_lang$core$Basics_ops['++'], - A2(_elm_lang$core$List$take, _p84 + 1, listWithoutKey), - { - ctor: '::', - _0: key, - _1: A2(_elm_lang$core$List$drop, _p84 + 1, listWithoutKey) - }); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDictList', - { - start: {line: 692, column: 25}, - end: {line: 703, column: 101} - }, - _p83)('Internal error: AllDictList list not in sync with dict'); - } - } - } else { - return A2( - _elm_lang$core$Basics_ops['++'], - A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p86, _p87), - { - ctor: '::', - _0: key, - _1: {ctor: '[]'} - }); - } - }(); - var newDict = A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p86); - return A2(_Gizra$elm_dictlist$AllDictList$AllDictList, newDict, newList); - }); -var _Gizra$elm_dictlist$AllDictList$insertBefore = F4( - function (beforeKey, key, value, _p88) { - var _p89 = _p88; - var _p94 = _p89._1; - var _p93 = _p89._0; - var newList = function () { - if (A2(_eeue56$elm_all_dict$AllDict$member, beforeKey, _p93)) { - if (A3(_Gizra$elm_dictlist$AllDictList$equalKeys, key, beforeKey, _p93)) { - return _p94; - } else { - var ord = _eeue56$elm_all_dict$AllDict$getOrd(_p93); - var beforeKeyComparable = ord(beforeKey); - var listWithoutKey = A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p93, _p94); - var _p90 = A2( - _elm_community$list_extra$List_Extra$findIndex, - function (k) { - return _elm_lang$core$Native_Utils.eq( - ord(k), - beforeKeyComparable); - }, - listWithoutKey); - if (_p90.ctor === 'Just') { - var _p91 = _p90._0; - return A2( - _elm_lang$core$Basics_ops['++'], - A2(_elm_lang$core$List$take, _p91, listWithoutKey), - { - ctor: '::', - _0: key, - _1: A2(_elm_lang$core$List$drop, _p91, listWithoutKey) - }); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'AllDictList', - { - start: {line: 747, column: 25}, - end: {line: 758, column: 101} - }, - _p90)('Internal error: AllDictList list not in sync with dict'); - } - } - } else { - return { - ctor: '::', - _0: key, - _1: A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p93, _p94) - }; - } - }(); - var newDict = A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p93); - return A2(_Gizra$elm_dictlist$AllDictList$AllDictList, newDict, newList); - }); -var _Gizra$elm_dictlist$AllDictList$insertRelativeTo = function (position) { - var _p95 = position; - if (_p95.ctor === 'BeforeKey') { - return _Gizra$elm_dictlist$AllDictList$insertBefore(_p95._0); - } else { - return _Gizra$elm_dictlist$AllDictList$insertAfter(_p95._0); - } -}; -var _Gizra$elm_dictlist$AllDictList$empty = function (ord) { - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - _eeue56$elm_all_dict$AllDict$empty(ord), - {ctor: '[]'}); -}; -var _Gizra$elm_dictlist$AllDictList$concat = F2( - function (ord, lists) { - return A3( - _elm_lang$core$List$foldr, - _Gizra$elm_dictlist$AllDictList$append, - _Gizra$elm_dictlist$AllDictList$empty(ord), - lists); - }); -var _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom = function (_p96) { - return _Gizra$elm_dictlist$AllDictList$empty( - _Gizra$elm_dictlist$AllDictList$getOrd(_p96)); -}; -var _Gizra$elm_dictlist$AllDictList$indexedMap = F2( - function (func, dictlist) { - var go = F3( - function (key, value, _p97) { - var _p98 = _p97; - var _p99 = _p98._0; - return { - ctor: '_Tuple2', - _0: _p99 + 1, - _1: A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A3( - _eeue56$elm_all_dict$AllDict$insert, - key, - A3(func, _p99, key, value), - _p98._1._0), - {ctor: '::', _0: key, _1: _p98._1._1}) - }; - }); - return _Gizra$elm_dictlist$AllDictList$reverse( - _elm_lang$core$Tuple$second( - A3( - _Gizra$elm_dictlist$AllDictList$foldl, - go, - { - ctor: '_Tuple2', - _0: 0, - _1: _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dictlist) - }, - dictlist))); - }); -var _Gizra$elm_dictlist$AllDictList$filterMap = F2( - function (func, dictlist) { - var go = F3( - function (key, value, acc) { - return A2( - _elm_lang$core$Maybe$withDefault, - acc, - A2( - _elm_lang$core$Maybe$map, - function (result) { - return A3(_Gizra$elm_dictlist$AllDictList$cons, key, result, acc); - }, - A2(func, key, value))); - }); - return A3( - _Gizra$elm_dictlist$AllDictList$foldr, - go, - _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dictlist), - dictlist); - }); -var _Gizra$elm_dictlist$AllDictList$reorder = F2( - function (newKeys, dictlist) { - var go = F2( - function (key, acc) { - var _p100 = A2(_Gizra$elm_dictlist$AllDictList$get, key, dictlist); - if (_p100.ctor === 'Just') { - return A3(_Gizra$elm_dictlist$AllDictList$cons, key, _p100._0, acc); - } else { - return acc; - } - }); - return A3( - _elm_lang$core$List$foldr, - go, - _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dictlist), - newKeys); - }); -var _Gizra$elm_dictlist$AllDictList$insert = F3( - function (key, value, _p101) { - var _p102 = _p101; - var _p104 = _p102._1; - var _p103 = _p102._0; - var newList = A2(_eeue56$elm_all_dict$AllDict$member, key, _p103) ? _p104 : A2( - _elm_lang$core$Basics_ops['++'], - _p104, - { - ctor: '::', - _0: key, - _1: {ctor: '[]'} - }); - var newDict = A3(_eeue56$elm_all_dict$AllDict$insert, key, value, _p103); - return A2(_Gizra$elm_dictlist$AllDictList$AllDictList, newDict, newList); - }); -var _Gizra$elm_dictlist$AllDictList$decodeWithKeys = F3( - function (ord, keys, func) { - var go = F3( - function (jsonValue, key, accum) { - var _p105 = { - ctor: '_Tuple2', - _0: accum, - _1: A2( - _elm_lang$core$Json_Decode$decodeValue, - func(key), - jsonValue) - }; - if (_p105._0.ctor === 'Ok') { - if (_p105._1.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - A3(_Gizra$elm_dictlist$AllDictList$insert, key, _p105._1._0, _p105._0._0)); - } else { - return _elm_lang$core$Result$Err(_p105._1._0); - } - } else { - if (_p105._1.ctor === 'Ok') { - return accum; - } else { - return _elm_lang$core$Result$Err( - A2( - _elm_lang$core$Basics_ops['++'], - _p105._0._0, - A2(_elm_lang$core$Basics_ops['++'], '\n', _p105._1._0))); - } - } - }); - return A2( - _elm_lang$core$Json_Decode$andThen, - function (jsonValue) { - var _p106 = A3( - _elm_lang$core$List$foldl, - go(jsonValue), - _elm_lang$core$Result$Ok( - _Gizra$elm_dictlist$AllDictList$empty(ord)), - keys); - if (_p106.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p106._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p106._0); - } - }, - _elm_lang$core$Json_Decode$value); - }); -var _Gizra$elm_dictlist$AllDictList$decodeKeysAndValues = F3( - function (ord, keyDecoder, func) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (keys) { - return A3(_Gizra$elm_dictlist$AllDictList$decodeWithKeys, ord, keys, func); - }, - keyDecoder); - }); -var _Gizra$elm_dictlist$AllDictList$filter = F2( - function (predicate, dictList) { - var add = F3( - function (key, value, dict) { - return A2(predicate, key, value) ? A3(_Gizra$elm_dictlist$AllDictList$insert, key, value, dict) : dict; - }); - return A3( - _Gizra$elm_dictlist$AllDictList$foldl, - add, - _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dictList), - dictList); - }); -var _Gizra$elm_dictlist$AllDictList$intersect = F2( - function (t1, t2) { - return A2( - _Gizra$elm_dictlist$AllDictList$filter, - F2( - function (k, _p107) { - return A2(_Gizra$elm_dictlist$AllDictList$member, k, t2); - }), - t1); - }); -var _Gizra$elm_dictlist$AllDictList$removeWhen = F2( - function (pred, dict) { - return A2( - _Gizra$elm_dictlist$AllDictList$filter, - F2( - function (k, v) { - return !A2(pred, k, v); - }), - dict); - }); -var _Gizra$elm_dictlist$AllDictList$partition = F2( - function (predicate, dict) { - var emptyLikeDict = _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dict); - var add = F3( - function (key, value, _p108) { - var _p109 = _p108; - var _p111 = _p109._1; - var _p110 = _p109._0; - return A2(predicate, key, value) ? { - ctor: '_Tuple2', - _0: A3(_Gizra$elm_dictlist$AllDictList$insert, key, value, _p110), - _1: _p111 - } : { - ctor: '_Tuple2', - _0: _p110, - _1: A3(_Gizra$elm_dictlist$AllDictList$insert, key, value, _p111) - }; - }); - return A3( - _Gizra$elm_dictlist$AllDictList$foldl, - add, - {ctor: '_Tuple2', _0: emptyLikeDict, _1: emptyLikeDict}, - dict); - }); -var _Gizra$elm_dictlist$AllDictList$fromList = F2( - function (ord, assocs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (_p112, dict) { - var _p113 = _p112; - return A3(_Gizra$elm_dictlist$AllDictList$insert, _p113._0, _p113._1, dict); - }), - _Gizra$elm_dictlist$AllDictList$empty(ord), - assocs); - }); -var _Gizra$elm_dictlist$AllDictList$decodeObject = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$elm_dictlist$AllDictList$fromList(_elm_lang$core$Basics$identity), - _elm_lang$core$Json_Decode$keyValuePairs(decoder)); -}; -var _Gizra$elm_dictlist$AllDictList$decodeArray = F3( - function (ord, keyMapper, valueDecoder) { - return A2( - _elm_lang$core$Json_Decode$map, - function (_p114) { - return A2( - _Gizra$elm_dictlist$AllDictList$fromList, - ord, - A2( - _elm_lang$core$List$map, - function (value) { - return { - ctor: '_Tuple2', - _0: keyMapper(value), - _1: value - }; - }, - _p114)); - }, - _elm_lang$core$Json_Decode$list(valueDecoder)); - }); -var _Gizra$elm_dictlist$AllDictList$decodeArray2 = F3( - function (ord, keyDecoder, valueDecoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$elm_dictlist$AllDictList$fromList(ord), - _elm_lang$core$Json_Decode$list( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - keyDecoder, - valueDecoder))); - }); -var _Gizra$elm_dictlist$AllDictList$fromListBy = F3( - function (ord, keyfn, xs) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (x, acc) { - return A3( - _Gizra$elm_dictlist$AllDictList$insert, - keyfn(x), - x, - acc); - }), - _Gizra$elm_dictlist$AllDictList$empty(ord), - xs); - }); -var _Gizra$elm_dictlist$AllDictList$keepOnly = F2( - function (set, dict) { - return A3( - _elm_lang$core$Set$foldl, - F2( - function (k, acc) { - return A2( - _elm_lang$core$Maybe$withDefault, - acc, - A2( - _elm_lang$core$Maybe$map, - function (v) { - return A3(_Gizra$elm_dictlist$AllDictList$insert, k, v, acc); - }, - A2(_Gizra$elm_dictlist$AllDictList$get, k, dict))); - }), - _Gizra$elm_dictlist$AllDictList$emptyWithOrdFrom(dict), - set); - }); -var _Gizra$elm_dictlist$AllDictList$mapKeys = F3( - function (ord, keyMapper, dict) { - var addKey = F3( - function (key, value, d) { - return A3( - _Gizra$elm_dictlist$AllDictList$insert, - keyMapper(key), - value, - d); - }); - return A3( - _Gizra$elm_dictlist$AllDictList$foldl, - addKey, - _Gizra$elm_dictlist$AllDictList$empty(ord), - dict); - }); -var _Gizra$elm_dictlist$AllDictList$remove = F2( - function (key, _p115) { - var _p116 = _p115; - var _p117 = _p116._0; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A2(_eeue56$elm_all_dict$AllDict$remove, key, _p117), - A3(_Gizra$elm_dictlist$AllDictList$removeKey, key, _p117, _p116._1)); - }); -var _Gizra$elm_dictlist$AllDictList$update = F3( - function (key, alter, dictList) { - var _p118 = alter( - A2(_Gizra$elm_dictlist$AllDictList$get, key, dictList)); - if (_p118.ctor === 'Nothing') { - return A2(_Gizra$elm_dictlist$AllDictList$remove, key, dictList); - } else { - return A3(_Gizra$elm_dictlist$AllDictList$insert, key, _p118._0, dictList); - } - }); -var _Gizra$elm_dictlist$AllDictList$groupBy = F3( - function (ord, keyfn, list) { - return A3( - _elm_lang$core$List$foldr, - F2( - function (x, acc) { - return A3( - _Gizra$elm_dictlist$AllDictList$update, - keyfn(x), - function (_p119) { - return _elm_lang$core$Maybe$Just( - A2( - _elm_lang$core$Maybe$withDefault, - { - ctor: '::', - _0: x, - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$Maybe$map, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })(x), - _p119))); - }, - acc); - }), - _Gizra$elm_dictlist$AllDictList$empty(ord), - list); - }); -var _Gizra$elm_dictlist$AllDictList$diff = F2( - function (t1, t2) { - return A3( - _Gizra$elm_dictlist$AllDictList$foldl, - F3( - function (k, v, t) { - return A2(_Gizra$elm_dictlist$AllDictList$remove, k, t); - }), - t1, - t2); - }); -var _Gizra$elm_dictlist$AllDictList$removeMany = F2( - function (set, dict) { - return A3( - _elm_lang$core$Set$foldl, - F2( - function (k, acc) { - return A2(_Gizra$elm_dictlist$AllDictList$remove, k, acc); - }), - dict, - set); - }); -var _Gizra$elm_dictlist$AllDictList$singleton = F3( - function (ord, key, value) { - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A3(_eeue56$elm_all_dict$AllDict$singleton, ord, key, value), - { - ctor: '::', - _0: key, - _1: {ctor: '[]'} - }); - }); -var _Gizra$elm_dictlist$AllDictList$map = F2( - function (func, _p120) { - var _p121 = _p120; - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - A2(_eeue56$elm_all_dict$AllDict$map, func, _p121._0), - _p121._1); - }); -var _Gizra$elm_dictlist$AllDictList$fromAllDict = function (dict) { - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - dict, - _eeue56$elm_all_dict$AllDict$keys(dict)); -}; -var _Gizra$elm_dictlist$AllDictList$fromDict = function (dict) { - var allDict = A3( - _elm_lang$core$Dict$foldl, - _eeue56$elm_all_dict$AllDict$insert, - _eeue56$elm_all_dict$AllDict$empty(_elm_lang$core$Basics$identity), - dict); - return A2( - _Gizra$elm_dictlist$AllDictList$AllDictList, - allDict, - _elm_lang$core$Dict$keys(dict)); -}; -var _Gizra$elm_dictlist$AllDictList$AfterKey = function (a) { - return {ctor: 'AfterKey', _0: a}; -}; -var _Gizra$elm_dictlist$AllDictList$BeforeKey = function (a) { - return {ctor: 'BeforeKey', _0: a}; -}; -var _Gizra$elm_dictlist$AllDictList$relativePosition = F2( - function (key, dictlist) { - var _p122 = A2(_Gizra$elm_dictlist$AllDictList$previous, key, dictlist); - if (_p122.ctor === 'Just') { - return _elm_lang$core$Maybe$Just( - _Gizra$elm_dictlist$AllDictList$AfterKey(_p122._0._0)); - } else { - var _p123 = A2(_Gizra$elm_dictlist$AllDictList$next, key, dictlist); - if (_p123.ctor === 'Just') { - return _elm_lang$core$Maybe$Just( - _Gizra$elm_dictlist$AllDictList$BeforeKey(_p123._0._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - } - }); - -var _Gizra$elm_dictlist$EveryDictList$mapKeys = _Gizra$elm_dictlist$AllDictList$mapKeys(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$keepOnly = _Gizra$elm_dictlist$AllDictList$keepOnly; -var _Gizra$elm_dictlist$EveryDictList$removeMany = _Gizra$elm_dictlist$AllDictList$removeMany; -var _Gizra$elm_dictlist$EveryDictList$removeWhen = _Gizra$elm_dictlist$AllDictList$removeWhen; -var _Gizra$elm_dictlist$EveryDictList$fromListBy = _Gizra$elm_dictlist$AllDictList$fromListBy(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$groupBy = _Gizra$elm_dictlist$AllDictList$groupBy(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$fromAllDictList = _elm_lang$core$Basics$identity; -var _Gizra$elm_dictlist$EveryDictList$toAllDictList = _elm_lang$core$Basics$identity; -var _Gizra$elm_dictlist$EveryDictList$fromDict = _Gizra$elm_dictlist$AllDictList$fromDict; -var _Gizra$elm_dictlist$EveryDictList$toDict = _Gizra$elm_dictlist$AllDictList$toDict; -var _Gizra$elm_dictlist$EveryDictList$fromList = _Gizra$elm_dictlist$AllDictList$fromList(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$toList = _Gizra$elm_dictlist$AllDictList$toList; -var _Gizra$elm_dictlist$EveryDictList$values = _Gizra$elm_dictlist$AllDictList$values; -var _Gizra$elm_dictlist$EveryDictList$keys = _Gizra$elm_dictlist$AllDictList$keys; -var _Gizra$elm_dictlist$EveryDictList$partition = _Gizra$elm_dictlist$AllDictList$partition; -var _Gizra$elm_dictlist$EveryDictList$filter = _Gizra$elm_dictlist$AllDictList$filter; -var _Gizra$elm_dictlist$EveryDictList$foldr = _Gizra$elm_dictlist$AllDictList$foldr; -var _Gizra$elm_dictlist$EveryDictList$foldl = _Gizra$elm_dictlist$AllDictList$foldl; -var _Gizra$elm_dictlist$EveryDictList$map = _Gizra$elm_dictlist$AllDictList$map; -var _Gizra$elm_dictlist$EveryDictList$merge = _Gizra$elm_dictlist$AllDictList$merge; -var _Gizra$elm_dictlist$EveryDictList$diff = _Gizra$elm_dictlist$AllDictList$diff; -var _Gizra$elm_dictlist$EveryDictList$intersect = _Gizra$elm_dictlist$AllDictList$intersect; -var _Gizra$elm_dictlist$EveryDictList$union = _Gizra$elm_dictlist$AllDictList$union; -var _Gizra$elm_dictlist$EveryDictList$singleton = _Gizra$elm_dictlist$AllDictList$singleton(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$update = _Gizra$elm_dictlist$AllDictList$update; -var _Gizra$elm_dictlist$EveryDictList$remove = _Gizra$elm_dictlist$AllDictList$remove; -var _Gizra$elm_dictlist$EveryDictList$insert = _Gizra$elm_dictlist$AllDictList$insert; -var _Gizra$elm_dictlist$EveryDictList$isEmpty = _Gizra$elm_dictlist$AllDictList$isEmpty; -var _Gizra$elm_dictlist$EveryDictList$size = _Gizra$elm_dictlist$AllDictList$size; -var _Gizra$elm_dictlist$EveryDictList$member = _Gizra$elm_dictlist$AllDictList$member; -var _Gizra$elm_dictlist$EveryDictList$get = _Gizra$elm_dictlist$AllDictList$get; -var _Gizra$elm_dictlist$EveryDictList$eq = _Gizra$elm_dictlist$AllDictList$eq; -var _Gizra$elm_dictlist$EveryDictList$empty = _Gizra$elm_dictlist$AllDictList$empty(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$insertRelativeTo = _Gizra$elm_dictlist$AllDictList$insertRelativeTo; -var _Gizra$elm_dictlist$EveryDictList$atRelativePosition = _Gizra$elm_dictlist$AllDictList$atRelativePosition; -var _Gizra$elm_dictlist$EveryDictList$relativePosition = _Gizra$elm_dictlist$AllDictList$relativePosition; -var _Gizra$elm_dictlist$EveryDictList$insertBefore = _Gizra$elm_dictlist$AllDictList$insertBefore; -var _Gizra$elm_dictlist$EveryDictList$insertAfter = _Gizra$elm_dictlist$AllDictList$insertAfter; -var _Gizra$elm_dictlist$EveryDictList$getAt = _Gizra$elm_dictlist$AllDictList$getAt; -var _Gizra$elm_dictlist$EveryDictList$getKeyAt = _Gizra$elm_dictlist$AllDictList$getKeyAt; -var _Gizra$elm_dictlist$EveryDictList$reorder = _Gizra$elm_dictlist$AllDictList$reorder; -var _Gizra$elm_dictlist$EveryDictList$previous = _Gizra$elm_dictlist$AllDictList$previous; -var _Gizra$elm_dictlist$EveryDictList$next = _Gizra$elm_dictlist$AllDictList$next; -var _Gizra$elm_dictlist$EveryDictList$indexOfKey = _Gizra$elm_dictlist$AllDictList$indexOfKey; -var _Gizra$elm_dictlist$EveryDictList$sortWith = _Gizra$elm_dictlist$AllDictList$sortWith; -var _Gizra$elm_dictlist$EveryDictList$sortBy = _Gizra$elm_dictlist$AllDictList$sortBy; -var _Gizra$elm_dictlist$EveryDictList$sort = _Gizra$elm_dictlist$AllDictList$sort; -var _Gizra$elm_dictlist$EveryDictList$drop = _Gizra$elm_dictlist$AllDictList$drop; -var _Gizra$elm_dictlist$EveryDictList$take = _Gizra$elm_dictlist$AllDictList$take; -var _Gizra$elm_dictlist$EveryDictList$minimum = _Gizra$elm_dictlist$AllDictList$minimum; -var _Gizra$elm_dictlist$EveryDictList$maximum = _Gizra$elm_dictlist$AllDictList$maximum; -var _Gizra$elm_dictlist$EveryDictList$product = _Gizra$elm_dictlist$AllDictList$product; -var _Gizra$elm_dictlist$EveryDictList$sum = _Gizra$elm_dictlist$AllDictList$sum; -var _Gizra$elm_dictlist$EveryDictList$concat = _Gizra$elm_dictlist$AllDictList$concat(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$append = _Gizra$elm_dictlist$AllDictList$append; -var _Gizra$elm_dictlist$EveryDictList$any = _Gizra$elm_dictlist$AllDictList$any; -var _Gizra$elm_dictlist$EveryDictList$all = _Gizra$elm_dictlist$AllDictList$all; -var _Gizra$elm_dictlist$EveryDictList$reverse = _Gizra$elm_dictlist$AllDictList$reverse; -var _Gizra$elm_dictlist$EveryDictList$length = _Gizra$elm_dictlist$AllDictList$length; -var _Gizra$elm_dictlist$EveryDictList$filterMap = _Gizra$elm_dictlist$AllDictList$filterMap; -var _Gizra$elm_dictlist$EveryDictList$indexedMap = _Gizra$elm_dictlist$AllDictList$indexedMap; -var _Gizra$elm_dictlist$EveryDictList$tail = _Gizra$elm_dictlist$AllDictList$tail; -var _Gizra$elm_dictlist$EveryDictList$head = _Gizra$elm_dictlist$AllDictList$head; -var _Gizra$elm_dictlist$EveryDictList$cons = _Gizra$elm_dictlist$AllDictList$cons; -var _Gizra$elm_dictlist$EveryDictList$decodeArray2 = _Gizra$elm_dictlist$AllDictList$decodeArray2(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$decodeArray = _Gizra$elm_dictlist$AllDictList$decodeArray(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$decodeKeysAndValues = _Gizra$elm_dictlist$AllDictList$decodeKeysAndValues(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$decodeWithKeys = _Gizra$elm_dictlist$AllDictList$decodeWithKeys(_elm_lang$core$Basics$toString); -var _Gizra$elm_dictlist$EveryDictList$decodeObject = _Gizra$elm_dictlist$AllDictList$decodeObject; - -var _elm_community$json_extra$Json_Decode_Extra$when = F3( - function (checkDecoder, check, passDecoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (checkVal) { - return check(checkVal) ? passDecoder : _elm_lang$core$Json_Decode$fail( - A2( - _elm_lang$core$Basics_ops['++'], - 'Check failed with input `', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(checkVal), - '`'))); - }, - checkDecoder); - }); -var _elm_community$json_extra$Json_Decode_Extra$combine = A2( - _elm_lang$core$List$foldr, - _elm_lang$core$Json_Decode$map2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })), - _elm_lang$core$Json_Decode$succeed( - {ctor: '[]'})); -var _elm_community$json_extra$Json_Decode_Extra$collection = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (length) { - return _elm_community$json_extra$Json_Decode_Extra$combine( - A2( - _elm_lang$core$List$map, - function (index) { - return A2( - _elm_lang$core$Json_Decode$field, - _elm_lang$core$Basics$toString(index), - decoder); - }, - A2(_elm_lang$core$List$range, 0, length - 1))); - }, - A2(_elm_lang$core$Json_Decode$field, 'length', _elm_lang$core$Json_Decode$int)); -}; -var _elm_community$json_extra$Json_Decode_Extra$fromResult = function (result) { - var _p0 = result; - if (_p0.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p0._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p0._0); - } -}; -var _elm_community$json_extra$Json_Decode_Extra$parseInt = A2( - _elm_lang$core$Json_Decode$andThen, - function (_p1) { - return _elm_community$json_extra$Json_Decode_Extra$fromResult( - _elm_lang$core$String$toInt(_p1)); - }, - _elm_lang$core$Json_Decode$string); -var _elm_community$json_extra$Json_Decode_Extra$parseFloat = A2( - _elm_lang$core$Json_Decode$andThen, - function (_p2) { - return _elm_community$json_extra$Json_Decode_Extra$fromResult( - _elm_lang$core$String$toFloat(_p2)); - }, - _elm_lang$core$Json_Decode$string); -var _elm_community$json_extra$Json_Decode_Extra$doubleEncoded = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (_p3) { - return _elm_community$json_extra$Json_Decode_Extra$fromResult( - A2(_elm_lang$core$Json_Decode$decodeString, decoder, _p3)); - }, - _elm_lang$core$Json_Decode$string); -}; -var _elm_community$json_extra$Json_Decode_Extra$keys = A2( - _elm_lang$core$Json_Decode$map, - A2( - _elm_lang$core$List$foldl, - F2( - function (_p4, acc) { - var _p5 = _p4; - return {ctor: '::', _0: _p5._0, _1: acc}; - }), - {ctor: '[]'}), - _elm_lang$core$Json_Decode$keyValuePairs( - _elm_lang$core$Json_Decode$succeed( - {ctor: '_Tuple0'}))); -var _elm_community$json_extra$Json_Decode_Extra$sequenceHelp = F2( - function (decoders, jsonValues) { - return (!_elm_lang$core$Native_Utils.eq( - _elm_lang$core$List$length(jsonValues), - _elm_lang$core$List$length(decoders))) ? _elm_lang$core$Json_Decode$fail('Number of decoders does not match number of values') : _elm_community$json_extra$Json_Decode_Extra$fromResult( - A3( - _elm_lang$core$List$foldr, - _elm_lang$core$Result$map2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })), - _elm_lang$core$Result$Ok( - {ctor: '[]'}), - A3(_elm_lang$core$List$map2, _elm_lang$core$Json_Decode$decodeValue, decoders, jsonValues))); - }); -var _elm_community$json_extra$Json_Decode_Extra$sequence = function (decoders) { - return A2( - _elm_lang$core$Json_Decode$andThen, - _elm_community$json_extra$Json_Decode_Extra$sequenceHelp(decoders), - _elm_lang$core$Json_Decode$list(_elm_lang$core$Json_Decode$value)); -}; -var _elm_community$json_extra$Json_Decode_Extra$indexedList = function (indexedDecoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (values) { - return _elm_community$json_extra$Json_Decode_Extra$sequence( - A2( - _elm_lang$core$List$map, - indexedDecoder, - A2( - _elm_lang$core$List$range, - 0, - _elm_lang$core$List$length(values) - 1))); - }, - _elm_lang$core$Json_Decode$list(_elm_lang$core$Json_Decode$value)); -}; -var _elm_community$json_extra$Json_Decode_Extra$optionalField = F2( - function (fieldName, decoder) { - var finishDecoding = function (json) { - var _p6 = A2( - _elm_lang$core$Json_Decode$decodeValue, - A2(_elm_lang$core$Json_Decode$field, fieldName, _elm_lang$core$Json_Decode$value), - json); - if (_p6.ctor === 'Ok') { - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Maybe$Just, - A2(_elm_lang$core$Json_Decode$field, fieldName, decoder)); - } else { - return _elm_lang$core$Json_Decode$succeed(_elm_lang$core$Maybe$Nothing); - } - }; - return A2(_elm_lang$core$Json_Decode$andThen, finishDecoding, _elm_lang$core$Json_Decode$value); - }); -var _elm_community$json_extra$Json_Decode_Extra$withDefault = F2( - function (fallback, decoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Maybe$withDefault(fallback), - _elm_lang$core$Json_Decode$maybe(decoder)); - }); -var _elm_community$json_extra$Json_Decode_Extra$decodeDictFromTuples = F2( - function (keyDecoder, tuples) { - var _p7 = tuples; - if (_p7.ctor === '[]') { - return _elm_lang$core$Json_Decode$succeed(_elm_lang$core$Dict$empty); - } else { - var _p8 = A2(_elm_lang$core$Json_Decode$decodeString, keyDecoder, _p7._0._0); - if (_p8.ctor === 'Ok') { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (_p9) { - return _elm_lang$core$Json_Decode$succeed( - A3(_elm_lang$core$Dict$insert, _p8._0, _p7._0._1, _p9)); - }, - A2(_elm_community$json_extra$Json_Decode_Extra$decodeDictFromTuples, keyDecoder, _p7._1)); - } else { - return _elm_lang$core$Json_Decode$fail(_p8._0); - } - } - }); -var _elm_community$json_extra$Json_Decode_Extra$dict2 = F2( - function (keyDecoder, valueDecoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - _elm_community$json_extra$Json_Decode_Extra$decodeDictFromTuples(keyDecoder), - _elm_lang$core$Json_Decode$keyValuePairs(valueDecoder)); - }); -var _elm_community$json_extra$Json_Decode_Extra$set = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Set$fromList, - _elm_lang$core$Json_Decode$list(decoder)); -}; -var _elm_community$json_extra$Json_Decode_Extra$date = A2( - _elm_lang$core$Json_Decode$andThen, - function (_p10) { - return _elm_community$json_extra$Json_Decode_Extra$fromResult( - _elm_lang$core$Date$fromString(_p10)); - }, - _elm_lang$core$Json_Decode$string); -var _elm_community$json_extra$Json_Decode_Extra$andMap = _elm_lang$core$Json_Decode$map2( - F2( - function (x, y) { - return y(x); - })); -var _elm_community$json_extra$Json_Decode_Extra_ops = _elm_community$json_extra$Json_Decode_Extra_ops || {}; -_elm_community$json_extra$Json_Decode_Extra_ops['|:'] = _elm_lang$core$Basics$flip(_elm_community$json_extra$Json_Decode_Extra$andMap); - -var _Gizra$circuit_bid$Utils_Json$first = _elm_lang$core$Json_Decode$at( - { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - }); -var _Gizra$circuit_bid$Utils_Json$decodeTotalPages = A2(_elm_lang$core$Json_Decode$field, 'totalPages', _elm_lang$core$Json_Decode$int); -var _Gizra$circuit_bid$Utils_Json$resultToDecoder = function (res) { - var _p0 = res; - if (_p0.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p0._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p0._0); - } -}; -var _Gizra$circuit_bid$Utils_Json$decodePrice = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$int, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Basics$floor, - A2( - _elm_lang$core$Json_Decode$andThen, - function (_p1) { - return _Gizra$circuit_bid$Utils_Json$resultToDecoder( - _elm_lang$core$String$toFloat(_p1)); - }, - _elm_lang$core$Json_Decode$string)), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty = F3( - function (property, keyDecoder, valDecoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$elm_dictlist$EveryDictList$fromList, - _elm_lang$core$Json_Decode$list( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, property, keyDecoder), - valDecoder))); - }); -var _Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictByProperty = F3( - function (property, keyDecoder, valDecoder) { - return A2( - _elm_lang$core$Json_Decode$map, - _eeue56$elm_all_dict$EveryDict$fromList, - _elm_lang$core$Json_Decode$list( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, property, keyDecoder), - valDecoder))); - }); -var _Gizra$circuit_bid$Utils_Json$decodeListAsDictByProperty = F4( - function (property, keyDecoder, valDecoder, stringFunc) { - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Dict$fromList, - A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$List$map( - _elm_lang$core$Tuple$mapFirst(stringFunc)), - _elm_lang$core$Json_Decode$list( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, property, keyDecoder), - valDecoder)))); - }); -var _Gizra$circuit_bid$Utils_Json$decodeAsString = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$string, - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Basics$toString, _elm_lang$core$Json_Decode$int), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Basics$toString, _elm_lang$core$Json_Decode$float), - _1: {ctor: '[]'} - } - } - }); -var _Gizra$circuit_bid$Utils_Json$decodeInt = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$int, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Basics$floor, - A2( - _elm_lang$core$Json_Decode$andThen, - function (_p2) { - return _Gizra$circuit_bid$Utils_Json$resultToDecoder( - _elm_lang$core$String$toFloat(_p2)); - }, - _elm_lang$core$Json_Decode$string)), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Utils_Json$decodeListAsDict = function (decoder) { - return A4(_Gizra$circuit_bid$Utils_Json$decodeListAsDictByProperty, 'id', _Gizra$circuit_bid$Utils_Json$decodeInt, decoder, _elm_lang$core$Basics$toString); -}; -var _Gizra$circuit_bid$Utils_Json$decodeFloat = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$float, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$andThen, - _Gizra$circuit_bid$Utils_Json$resultToDecoder, - A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$String$toFloat, _elm_lang$core$Json_Decode$string)), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Utils_Json$decodeError = A2(_elm_lang$core$Json_Decode$field, 'title', _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Utils_Json$decodeEmptyArrayAsEmptyDict = A2( - _elm_lang$core$Json_Decode$andThen, - function (list) { - var length = _elm_lang$core$List$length(list); - return _elm_lang$core$Native_Utils.eq(length, 0) ? _elm_lang$core$Json_Decode$succeed(_elm_lang$core$Dict$empty) : _elm_lang$core$Json_Decode$fail( - A2( - _elm_lang$core$Basics_ops['++'], - 'Expected an empty array, not an array with length: ', - _elm_lang$core$Basics$toString(length))); - }, - _elm_lang$core$Json_Decode$list(_elm_lang$core$Json_Decode$value)); -var _Gizra$circuit_bid$Utils_Json$decodeDateFromEpoch = A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Date$fromTime, _elm_lang$core$Json_Decode$float); -var _Gizra$circuit_bid$Utils_Json$decodeDate = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_community$json_extra$Json_Decode_Extra$date, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Utils_Json$decodeDateFromEpoch, - _1: {ctor: '[]'} - } - }); - -var _Gizra$circuit_bid$Amount$getLocalFromCurrency = function (currency) { - var _p0 = currency; - switch (_p0.ctor) { - case 'CHF': - return _cuducos$elm_format_number$FormatNumber_Locales$spanishLocale; - case 'EUR': - return _cuducos$elm_format_number$FormatNumber_Locales$spanishLocale; - case 'GBP': - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - case 'HKD': - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - case 'HRN': - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - case 'ILS': - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - case 'USD': - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - default: - return _cuducos$elm_format_number$FormatNumber_Locales$usLocale; - } -}; -var _Gizra$circuit_bid$Amount$showWithCurrency = F3( - function (wrapper, currency, value) { - var _p1 = currency; - switch (_p1.ctor) { - case 'CHF': - return { - ctor: '::', - _0: value, - _1: { - ctor: '::', - _0: wrapper('CHF'), - _1: {ctor: '[]'} - } - }; - case 'EUR': - return { - ctor: '::', - _0: value, - _1: { - ctor: '::', - _0: wrapper('€'), - _1: {ctor: '[]'} - } - }; - case 'GBP': - return { - ctor: '::', - _0: wrapper('£'), - _1: { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - } - }; - case 'HKD': - return { - ctor: '::', - _0: value, - _1: { - ctor: '::', - _0: wrapper('HK$'), - _1: {ctor: '[]'} - } - }; - case 'HRN': - return { - ctor: '::', - _0: wrapper('₴'), - _1: { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - } - }; - case 'ILS': - return { - ctor: '::', - _0: wrapper('₪'), - _1: { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - } - }; - case 'USD': - return { - ctor: '::', - _0: wrapper('$'), - _1: { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - } - }; - default: - return { - ctor: '::', - _0: wrapper('₴'), - _1: { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - } - }; - } - }); -var _Gizra$circuit_bid$Amount$showAmountWithCurrencyText = F2( - function (_p2, currency) { - var _p3 = _p2; - var locale = _Gizra$circuit_bid$Amount$getLocalFromCurrency(currency); - var value = A2( - _cuducos$elm_format_number$FormatNumber$format, - _elm_lang$core$Native_Utils.update( - locale, - {decimals: 0}), - _elm_lang$core$Basics$toFloat(_p3._0)); - return _elm_lang$core$String$concat( - A3(_Gizra$circuit_bid$Amount$showWithCurrency, _elm_lang$core$Basics$identity, currency, value)); - }); -var _Gizra$circuit_bid$Amount$showAmountWithCurrency = F2( - function (amount, currency) { - return _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, amount, currency)); - }); -var _Gizra$circuit_bid$Amount$extract = function (_p4) { - var _p5 = _p4; - return _p5._0; -}; -var _Gizra$circuit_bid$Amount$compare = F3( - function (comparator, _p7, _p6) { - var _p8 = _p7; - var _p9 = _p6; - return A2(comparator, _p8._0, _p9._0); - }); -var _Gizra$circuit_bid$Amount$compareInfix = F3( - function (x, comparator, y) { - return A3(_Gizra$circuit_bid$Amount$compare, comparator, x, y); - }); -var _Gizra$circuit_bid$Amount$encodeAmountRestriction = function (amountRestriction) { - var _p10 = amountRestriction; - switch (_p10.ctor) { - case 'None': - return _elm_lang$core$Json_Encode$string('0'); - case 'Regular': - return _elm_lang$core$Json_Encode$string( - _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Amount$extract(_p10._0))); - default: - return _elm_lang$core$Json_Encode$string('-1'); - } -}; -var _Gizra$circuit_bid$Amount$encodeAmount = function (_p11) { - var _p12 = _p11; - return _elm_lang$core$Json_Encode$int(_p12._0); -}; -var _Gizra$circuit_bid$Amount$Amount = function (a) { - return {ctor: 'Amount', _0: a}; -}; -var _Gizra$circuit_bid$Amount$decodeAmount = A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Amount$Amount, _Gizra$circuit_bid$Utils_Json$decodeInt); -var _Gizra$circuit_bid$Amount$zero = _Gizra$circuit_bid$Amount$Amount(0); -var _Gizra$circuit_bid$Amount$map = F2( - function (fn, _p13) { - var _p14 = _p13; - return _Gizra$circuit_bid$Amount$Amount( - fn(_p14._0)); - }); -var _Gizra$circuit_bid$Amount$map2 = F3( - function (fn, _p16, _p15) { - var _p17 = _p16; - var _p18 = _p15; - return _Gizra$circuit_bid$Amount$Amount( - A2(fn, _p17._0, _p18._0)); - }); -var _Gizra$circuit_bid$Amount$add = _Gizra$circuit_bid$Amount$map2( - F2( - function (x, y) { - return x + y; - })); -var _Gizra$circuit_bid$Amount$sum = A2(_elm_lang$core$List$foldl, _Gizra$circuit_bid$Amount$add, _Gizra$circuit_bid$Amount$zero); -var _Gizra$circuit_bid$Amount$subtract = _Gizra$circuit_bid$Amount$map2( - F2( - function (x, y) { - return x - y; - })); -var _Gizra$circuit_bid$Amount$Unlimited = {ctor: 'Unlimited'}; -var _Gizra$circuit_bid$Amount$Regular = function (a) { - return {ctor: 'Regular', _0: a}; -}; -var _Gizra$circuit_bid$Amount$None = {ctor: 'None'}; -var _Gizra$circuit_bid$Amount$decodeAmountRestriction = A2( - _elm_lang$core$Json_Decode$andThen, - function (val) { - return (_elm_lang$core$Native_Utils.cmp(val, -1) < 0) ? _elm_lang$core$Json_Decode$fail( - A2( - _elm_lang$core$Basics_ops['++'], - 'Amount restriction cannot be below -1, but it was', - _elm_lang$core$Basics$toString(val))) : (_elm_lang$core$Native_Utils.eq(val, -1) ? _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Amount$Unlimited) : (_elm_lang$core$Native_Utils.eq(val, 0) ? _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Amount$None) : _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Amount$Regular( - _Gizra$circuit_bid$Amount$Amount(val))))); - }, - _Gizra$circuit_bid$Utils_Json$decodeInt); - -var _elm_lang$html$Html_Attributes$map = _elm_lang$virtual_dom$VirtualDom$mapProperty; -var _elm_lang$html$Html_Attributes$attribute = _elm_lang$virtual_dom$VirtualDom$attribute; -var _elm_lang$html$Html_Attributes$contextmenu = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'contextmenu', value); -}; -var _elm_lang$html$Html_Attributes$draggable = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'draggable', value); -}; -var _elm_lang$html$Html_Attributes$itemprop = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'itemprop', value); -}; -var _elm_lang$html$Html_Attributes$tabindex = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'tabIndex', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$charset = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'charset', value); -}; -var _elm_lang$html$Html_Attributes$height = function (value) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'height', - _elm_lang$core$Basics$toString(value)); -}; -var _elm_lang$html$Html_Attributes$width = function (value) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'width', - _elm_lang$core$Basics$toString(value)); -}; -var _elm_lang$html$Html_Attributes$formaction = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'formAction', value); -}; -var _elm_lang$html$Html_Attributes$list = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'list', value); -}; -var _elm_lang$html$Html_Attributes$minlength = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'minLength', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$maxlength = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'maxlength', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$size = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'size', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$form = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'form', value); -}; -var _elm_lang$html$Html_Attributes$cols = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'cols', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$rows = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'rows', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$challenge = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'challenge', value); -}; -var _elm_lang$html$Html_Attributes$media = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'media', value); -}; -var _elm_lang$html$Html_Attributes$rel = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'rel', value); -}; -var _elm_lang$html$Html_Attributes$datetime = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'datetime', value); -}; -var _elm_lang$html$Html_Attributes$pubdate = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'pubdate', value); -}; -var _elm_lang$html$Html_Attributes$colspan = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'colspan', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$rowspan = function (n) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - 'rowspan', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$manifest = function (value) { - return A2(_elm_lang$html$Html_Attributes$attribute, 'manifest', value); -}; -var _elm_lang$html$Html_Attributes$property = _elm_lang$virtual_dom$VirtualDom$property; -var _elm_lang$html$Html_Attributes$stringProperty = F2( - function (name, string) { - return A2( - _elm_lang$html$Html_Attributes$property, - name, - _elm_lang$core$Json_Encode$string(string)); - }); -var _elm_lang$html$Html_Attributes$class = function (name) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'className', name); -}; -var _elm_lang$html$Html_Attributes$id = function (name) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'id', name); -}; -var _elm_lang$html$Html_Attributes$title = function (name) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'title', name); -}; -var _elm_lang$html$Html_Attributes$accesskey = function ($char) { - return A2( - _elm_lang$html$Html_Attributes$stringProperty, - 'accessKey', - _elm_lang$core$String$fromChar($char)); -}; -var _elm_lang$html$Html_Attributes$dir = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'dir', value); -}; -var _elm_lang$html$Html_Attributes$dropzone = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'dropzone', value); -}; -var _elm_lang$html$Html_Attributes$lang = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'lang', value); -}; -var _elm_lang$html$Html_Attributes$content = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'content', value); -}; -var _elm_lang$html$Html_Attributes$httpEquiv = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'httpEquiv', value); -}; -var _elm_lang$html$Html_Attributes$language = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'language', value); -}; -var _elm_lang$html$Html_Attributes$src = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'src', value); -}; -var _elm_lang$html$Html_Attributes$alt = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'alt', value); -}; -var _elm_lang$html$Html_Attributes$preload = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'preload', value); -}; -var _elm_lang$html$Html_Attributes$poster = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'poster', value); -}; -var _elm_lang$html$Html_Attributes$kind = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'kind', value); -}; -var _elm_lang$html$Html_Attributes$srclang = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'srclang', value); -}; -var _elm_lang$html$Html_Attributes$sandbox = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'sandbox', value); -}; -var _elm_lang$html$Html_Attributes$srcdoc = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'srcdoc', value); -}; -var _elm_lang$html$Html_Attributes$type_ = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'type', value); -}; -var _elm_lang$html$Html_Attributes$value = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'value', value); -}; -var _elm_lang$html$Html_Attributes$defaultValue = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'defaultValue', value); -}; -var _elm_lang$html$Html_Attributes$placeholder = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'placeholder', value); -}; -var _elm_lang$html$Html_Attributes$accept = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'accept', value); -}; -var _elm_lang$html$Html_Attributes$acceptCharset = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'acceptCharset', value); -}; -var _elm_lang$html$Html_Attributes$action = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'action', value); -}; -var _elm_lang$html$Html_Attributes$autocomplete = function (bool) { - return A2( - _elm_lang$html$Html_Attributes$stringProperty, - 'autocomplete', - bool ? 'on' : 'off'); -}; -var _elm_lang$html$Html_Attributes$enctype = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'enctype', value); -}; -var _elm_lang$html$Html_Attributes$method = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'method', value); -}; -var _elm_lang$html$Html_Attributes$name = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'name', value); -}; -var _elm_lang$html$Html_Attributes$pattern = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'pattern', value); -}; -var _elm_lang$html$Html_Attributes$for = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'htmlFor', value); -}; -var _elm_lang$html$Html_Attributes$max = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'max', value); -}; -var _elm_lang$html$Html_Attributes$min = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'min', value); -}; -var _elm_lang$html$Html_Attributes$step = function (n) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'step', n); -}; -var _elm_lang$html$Html_Attributes$wrap = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'wrap', value); -}; -var _elm_lang$html$Html_Attributes$usemap = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'useMap', value); -}; -var _elm_lang$html$Html_Attributes$shape = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'shape', value); -}; -var _elm_lang$html$Html_Attributes$coords = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'coords', value); -}; -var _elm_lang$html$Html_Attributes$keytype = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'keytype', value); -}; -var _elm_lang$html$Html_Attributes$align = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'align', value); -}; -var _elm_lang$html$Html_Attributes$cite = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'cite', value); -}; -var _elm_lang$html$Html_Attributes$href = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'href', value); -}; -var _elm_lang$html$Html_Attributes$target = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'target', value); -}; -var _elm_lang$html$Html_Attributes$downloadAs = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'download', value); -}; -var _elm_lang$html$Html_Attributes$hreflang = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'hreflang', value); -}; -var _elm_lang$html$Html_Attributes$ping = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'ping', value); -}; -var _elm_lang$html$Html_Attributes$start = function (n) { - return A2( - _elm_lang$html$Html_Attributes$stringProperty, - 'start', - _elm_lang$core$Basics$toString(n)); -}; -var _elm_lang$html$Html_Attributes$headers = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'headers', value); -}; -var _elm_lang$html$Html_Attributes$scope = function (value) { - return A2(_elm_lang$html$Html_Attributes$stringProperty, 'scope', value); -}; -var _elm_lang$html$Html_Attributes$boolProperty = F2( - function (name, bool) { - return A2( - _elm_lang$html$Html_Attributes$property, - name, - _elm_lang$core$Json_Encode$bool(bool)); - }); -var _elm_lang$html$Html_Attributes$hidden = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'hidden', bool); -}; -var _elm_lang$html$Html_Attributes$contenteditable = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'contentEditable', bool); -}; -var _elm_lang$html$Html_Attributes$spellcheck = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'spellcheck', bool); -}; -var _elm_lang$html$Html_Attributes$async = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'async', bool); -}; -var _elm_lang$html$Html_Attributes$defer = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'defer', bool); -}; -var _elm_lang$html$Html_Attributes$scoped = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'scoped', bool); -}; -var _elm_lang$html$Html_Attributes$autoplay = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'autoplay', bool); -}; -var _elm_lang$html$Html_Attributes$controls = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'controls', bool); -}; -var _elm_lang$html$Html_Attributes$loop = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'loop', bool); -}; -var _elm_lang$html$Html_Attributes$default = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'default', bool); -}; -var _elm_lang$html$Html_Attributes$seamless = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'seamless', bool); -}; -var _elm_lang$html$Html_Attributes$checked = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'checked', bool); -}; -var _elm_lang$html$Html_Attributes$selected = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'selected', bool); -}; -var _elm_lang$html$Html_Attributes$autofocus = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'autofocus', bool); -}; -var _elm_lang$html$Html_Attributes$disabled = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'disabled', bool); -}; -var _elm_lang$html$Html_Attributes$multiple = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'multiple', bool); -}; -var _elm_lang$html$Html_Attributes$novalidate = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'noValidate', bool); -}; -var _elm_lang$html$Html_Attributes$readonly = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'readOnly', bool); -}; -var _elm_lang$html$Html_Attributes$required = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'required', bool); -}; -var _elm_lang$html$Html_Attributes$ismap = function (value) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'isMap', value); -}; -var _elm_lang$html$Html_Attributes$download = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'download', bool); -}; -var _elm_lang$html$Html_Attributes$reversed = function (bool) { - return A2(_elm_lang$html$Html_Attributes$boolProperty, 'reversed', bool); -}; -var _elm_lang$html$Html_Attributes$classList = function (list) { - return _elm_lang$html$Html_Attributes$class( - A2( - _elm_lang$core$String$join, - ' ', - A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - A2(_elm_lang$core$List$filter, _elm_lang$core$Tuple$second, list)))); -}; -var _elm_lang$html$Html_Attributes$style = _elm_lang$virtual_dom$VirtualDom$style; - -var _Gizra$elm_essentials$Gizra_Json$decodeJsonInString = function (decoder) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (s) { - var _p0 = A2(_elm_lang$core$Json_Decode$decodeString, decoder, s); - if (_p0.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p0._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p0._0); - } - }, - _elm_lang$core$Json_Decode$string); -}; -var _Gizra$elm_essentials$Gizra_Json$decodeEmptyArrayAs = function ($default) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (list) { - var length = _elm_lang$core$List$length(list); - return _elm_lang$core$Native_Utils.eq(length, 0) ? _elm_lang$core$Json_Decode$succeed($default) : _elm_lang$core$Json_Decode$fail( - A2( - _elm_lang$core$Basics_ops['++'], - 'Expected an empty array, not an array with length: ', - _elm_lang$core$Basics$toString(length))); - }, - _elm_lang$core$Json_Decode$list(_elm_lang$core$Json_Decode$value)); -}; -var _Gizra$elm_essentials$Gizra_Json$decodeFloat = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$float, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$andThen, - function (s) { - var _p1 = _elm_lang$core$String$toFloat(s); - if (_p1.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p1._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p1._0); - } - }, - _elm_lang$core$Json_Decode$string), - _1: {ctor: '[]'} - } - }); -var _Gizra$elm_essentials$Gizra_Json$decodeIntToString = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$string, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$andThen, - function (v) { - return _elm_lang$core$Json_Decode$succeed( - _elm_lang$core$Basics$toString(v)); - }, - _elm_lang$core$Json_Decode$int), - _1: {ctor: '[]'} - } - }); -var _Gizra$elm_essentials$Gizra_Json$decodeInt = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$int, - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$andThen, - function (s) { - var _p2 = _elm_lang$core$String$toInt(s); - if (_p2.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p2._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p2._0); - } - }, - _elm_lang$core$Json_Decode$string), - _1: {ctor: '[]'} - } - }); -var _Gizra$elm_essentials$Gizra_Json$decodeIntDict = _elm_community$json_extra$Json_Decode_Extra$dict2(_Gizra$elm_essentials$Gizra_Json$decodeInt); -var _Gizra$elm_essentials$Gizra_Json$encodeAnyDict = F2( - function (keyFunc, valueFunc) { - return function (_p3) { - return _elm_lang$core$Json_Encode$object( - A2( - _elm_lang$core$List$map, - function (_p4) { - var _p5 = _p4; - return { - ctor: '_Tuple2', - _0: keyFunc(_p5._0), - _1: valueFunc(_p5._1) - }; - }, - _elm_lang$core$Dict$toList(_p3))); - }; - }); -var _Gizra$elm_essentials$Gizra_Json$encodeDict = _Gizra$elm_essentials$Gizra_Json$encodeAnyDict(_elm_lang$core$Basics$identity); - -var _elm_lang$http$Native_Http = function() { - - -// ENCODING AND DECODING - -function encodeUri(string) -{ - return encodeURIComponent(string); -} - -function decodeUri(string) -{ - try - { - return _elm_lang$core$Maybe$Just(decodeURIComponent(string)); - } - catch(e) - { - return _elm_lang$core$Maybe$Nothing; - } -} - - -// SEND REQUEST - -function toTask(request, maybeProgress) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - var xhr = new XMLHttpRequest(); - - configureProgress(xhr, maybeProgress); - - xhr.addEventListener('error', function() { - callback(_elm_lang$core$Native_Scheduler.fail({ ctor: 'NetworkError' })); - }); - xhr.addEventListener('timeout', function() { - callback(_elm_lang$core$Native_Scheduler.fail({ ctor: 'Timeout' })); - }); - xhr.addEventListener('load', function() { - callback(handleResponse(xhr, request.expect.responseToResult)); - }); - - try - { - xhr.open(request.method, request.url, true); - } - catch (e) - { - return callback(_elm_lang$core$Native_Scheduler.fail({ ctor: 'BadUrl', _0: request.url })); - } - - configureRequest(xhr, request); - send(xhr, request.body); - - return function() { xhr.abort(); }; - }); -} - -function configureProgress(xhr, maybeProgress) -{ - if (maybeProgress.ctor === 'Nothing') - { - return; - } - - xhr.addEventListener('progress', function(event) { - if (!event.lengthComputable) - { - return; - } - _elm_lang$core$Native_Scheduler.rawSpawn(maybeProgress._0({ - bytes: event.loaded, - bytesExpected: event.total - })); - }); -} - -function configureRequest(xhr, request) -{ - function setHeader(pair) - { - xhr.setRequestHeader(pair._0, pair._1); - } - - A2(_elm_lang$core$List$map, setHeader, request.headers); - xhr.responseType = request.expect.responseType; - xhr.withCredentials = request.withCredentials; - - if (request.timeout.ctor === 'Just') - { - xhr.timeout = request.timeout._0; - } -} - -function send(xhr, body) -{ - switch (body.ctor) - { - case 'EmptyBody': - xhr.send(); - return; - - case 'StringBody': - xhr.setRequestHeader('Content-Type', body._0); - xhr.send(body._1); - return; - - case 'FormDataBody': - xhr.send(body._0); - return; - } -} - - -// RESPONSES - -function handleResponse(xhr, responseToResult) -{ - var response = toResponse(xhr); - - if (xhr.status < 200 || 300 <= xhr.status) - { - response.body = xhr.responseText; - return _elm_lang$core$Native_Scheduler.fail({ - ctor: 'BadStatus', - _0: response - }); - } - - var result = responseToResult(response); - - if (result.ctor === 'Ok') - { - return _elm_lang$core$Native_Scheduler.succeed(result._0); - } - else - { - response.body = xhr.responseText; - return _elm_lang$core$Native_Scheduler.fail({ - ctor: 'BadPayload', - _0: result._0, - _1: response - }); - } -} - -function toResponse(xhr) -{ - return { - status: { code: xhr.status, message: xhr.statusText }, - headers: parseHeaders(xhr.getAllResponseHeaders()), - url: xhr.responseURL, - body: xhr.response - }; -} - -function parseHeaders(rawHeaders) -{ - var headers = _elm_lang$core$Dict$empty; - - if (!rawHeaders) - { - return headers; - } - - var headerPairs = rawHeaders.split('\u000d\u000a'); - for (var i = headerPairs.length; i--; ) - { - var headerPair = headerPairs[i]; - var index = headerPair.indexOf('\u003a\u0020'); - if (index > 0) - { - var key = headerPair.substring(0, index); - var value = headerPair.substring(index + 2); - - headers = A3(_elm_lang$core$Dict$update, key, function(oldValue) { - if (oldValue.ctor === 'Just') - { - return _elm_lang$core$Maybe$Just(value + ', ' + oldValue._0); - } - return _elm_lang$core$Maybe$Just(value); - }, headers); - } - } - - return headers; -} - - -// EXPECTORS - -function expectStringResponse(responseToResult) -{ - return { - responseType: 'text', - responseToResult: responseToResult - }; -} - -function mapExpect(func, expect) -{ - return { - responseType: expect.responseType, - responseToResult: function(response) { - var convertedResponse = expect.responseToResult(response); - return A2(_elm_lang$core$Result$map, func, convertedResponse); - } - }; -} - - -// BODY - -function multipart(parts) -{ - var formData = new FormData(); - - while (parts.ctor !== '[]') - { - var part = parts._0; - formData.append(part._0, part._1); - parts = parts._1; - } - - return { ctor: 'FormDataBody', _0: formData }; -} - -return { - toTask: F2(toTask), - expectStringResponse: expectStringResponse, - mapExpect: F2(mapExpect), - multipart: multipart, - encodeUri: encodeUri, - decodeUri: decodeUri -}; - -}(); - -var _elm_lang$http$Http_Internal$map = F2( - function (func, request) { - return _elm_lang$core$Native_Utils.update( - request, - { - expect: A2(_elm_lang$http$Native_Http.mapExpect, func, request.expect) - }); - }); -var _elm_lang$http$Http_Internal$RawRequest = F7( - function (a, b, c, d, e, f, g) { - return {method: a, headers: b, url: c, body: d, expect: e, timeout: f, withCredentials: g}; - }); -var _elm_lang$http$Http_Internal$Request = function (a) { - return {ctor: 'Request', _0: a}; -}; -var _elm_lang$http$Http_Internal$Expect = {ctor: 'Expect'}; -var _elm_lang$http$Http_Internal$FormDataBody = {ctor: 'FormDataBody'}; -var _elm_lang$http$Http_Internal$StringBody = F2( - function (a, b) { - return {ctor: 'StringBody', _0: a, _1: b}; - }); -var _elm_lang$http$Http_Internal$EmptyBody = {ctor: 'EmptyBody'}; -var _elm_lang$http$Http_Internal$Header = F2( - function (a, b) { - return {ctor: 'Header', _0: a, _1: b}; - }); - -var _elm_lang$http$Http$decodeUri = _elm_lang$http$Native_Http.decodeUri; -var _elm_lang$http$Http$encodeUri = _elm_lang$http$Native_Http.encodeUri; -var _elm_lang$http$Http$expectStringResponse = _elm_lang$http$Native_Http.expectStringResponse; -var _elm_lang$http$Http$expectJson = function (decoder) { - return _elm_lang$http$Http$expectStringResponse( - function (response) { - return A2(_elm_lang$core$Json_Decode$decodeString, decoder, response.body); - }); -}; -var _elm_lang$http$Http$expectString = _elm_lang$http$Http$expectStringResponse( - function (response) { - return _elm_lang$core$Result$Ok(response.body); - }); -var _elm_lang$http$Http$multipartBody = _elm_lang$http$Native_Http.multipart; -var _elm_lang$http$Http$stringBody = _elm_lang$http$Http_Internal$StringBody; -var _elm_lang$http$Http$jsonBody = function (value) { - return A2( - _elm_lang$http$Http_Internal$StringBody, - 'application/json', - A2(_elm_lang$core$Json_Encode$encode, 0, value)); -}; -var _elm_lang$http$Http$emptyBody = _elm_lang$http$Http_Internal$EmptyBody; -var _elm_lang$http$Http$header = _elm_lang$http$Http_Internal$Header; -var _elm_lang$http$Http$request = _elm_lang$http$Http_Internal$Request; -var _elm_lang$http$Http$post = F3( - function (url, body, decoder) { - return _elm_lang$http$Http$request( - { - method: 'POST', - headers: {ctor: '[]'}, - url: url, - body: body, - expect: _elm_lang$http$Http$expectJson(decoder), - timeout: _elm_lang$core$Maybe$Nothing, - withCredentials: false - }); - }); -var _elm_lang$http$Http$get = F2( - function (url, decoder) { - return _elm_lang$http$Http$request( - { - method: 'GET', - headers: {ctor: '[]'}, - url: url, - body: _elm_lang$http$Http$emptyBody, - expect: _elm_lang$http$Http$expectJson(decoder), - timeout: _elm_lang$core$Maybe$Nothing, - withCredentials: false - }); - }); -var _elm_lang$http$Http$getString = function (url) { - return _elm_lang$http$Http$request( - { - method: 'GET', - headers: {ctor: '[]'}, - url: url, - body: _elm_lang$http$Http$emptyBody, - expect: _elm_lang$http$Http$expectString, - timeout: _elm_lang$core$Maybe$Nothing, - withCredentials: false - }); -}; -var _elm_lang$http$Http$toTask = function (_p0) { - var _p1 = _p0; - return A2(_elm_lang$http$Native_Http.toTask, _p1._0, _elm_lang$core$Maybe$Nothing); -}; -var _elm_lang$http$Http$send = F2( - function (resultToMessage, request) { - return A2( - _elm_lang$core$Task$attempt, - resultToMessage, - _elm_lang$http$Http$toTask(request)); - }); -var _elm_lang$http$Http$Response = F4( - function (a, b, c, d) { - return {url: a, status: b, headers: c, body: d}; - }); -var _elm_lang$http$Http$BadPayload = F2( - function (a, b) { - return {ctor: 'BadPayload', _0: a, _1: b}; - }); -var _elm_lang$http$Http$BadStatus = function (a) { - return {ctor: 'BadStatus', _0: a}; -}; -var _elm_lang$http$Http$NetworkError = {ctor: 'NetworkError'}; -var _elm_lang$http$Http$Timeout = {ctor: 'Timeout'}; -var _elm_lang$http$Http$BadUrl = function (a) { - return {ctor: 'BadUrl', _0: a}; -}; -var _elm_lang$http$Http$StringPart = F2( - function (a, b) { - return {ctor: 'StringPart', _0: a, _1: b}; - }); -var _elm_lang$http$Http$stringPart = _elm_lang$http$Http$StringPart; - -var _lukewestby$elm_http_builder$HttpBuilder$replace = F2( - function (old, $new) { - return function (_p0) { - return A2( - _elm_lang$core$String$join, - $new, - A2(_elm_lang$core$String$split, old, _p0)); - }; - }); -var _lukewestby$elm_http_builder$HttpBuilder$queryEscape = function (_p1) { - return A3( - _lukewestby$elm_http_builder$HttpBuilder$replace, - '%20', - '+', - _elm_lang$http$Http$encodeUri(_p1)); -}; -var _lukewestby$elm_http_builder$HttpBuilder$queryPair = function (_p2) { - var _p3 = _p2; - return A2( - _elm_lang$core$Basics_ops['++'], - _lukewestby$elm_http_builder$HttpBuilder$queryEscape(_p3._0), - A2( - _elm_lang$core$Basics_ops['++'], - '=', - _lukewestby$elm_http_builder$HttpBuilder$queryEscape(_p3._1))); -}; -var _lukewestby$elm_http_builder$HttpBuilder$joinUrlEncoded = function (args) { - return A2( - _elm_lang$core$String$join, - '&', - A2(_elm_lang$core$List$map, _lukewestby$elm_http_builder$HttpBuilder$queryPair, args)); -}; -var _lukewestby$elm_http_builder$HttpBuilder$toRequest = function (builder) { - var encodedParams = _lukewestby$elm_http_builder$HttpBuilder$joinUrlEncoded(builder.queryParams); - var fullUrl = _elm_lang$core$String$isEmpty(encodedParams) ? builder.url : A2( - _elm_lang$core$Basics_ops['++'], - builder.url, - A2(_elm_lang$core$Basics_ops['++'], '?', encodedParams)); - return _elm_lang$http$Http$request( - {method: builder.method, url: fullUrl, headers: builder.headers, body: builder.body, expect: builder.expect, timeout: builder.timeout, withCredentials: builder.withCredentials}); -}; -var _lukewestby$elm_http_builder$HttpBuilder$toTaskPlain = function (builder) { - return _elm_lang$http$Http$toTask( - _lukewestby$elm_http_builder$HttpBuilder$toRequest(builder)); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withCacheBuster = F2( - function (paramName, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - cacheBuster: _elm_lang$core$Maybe$Just(paramName) - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withQueryParams = F2( - function (queryParams, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - queryParams: A2(_elm_lang$core$Basics_ops['++'], builder.queryParams, queryParams) - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$toTaskWithCacheBuster = F2( - function (paramName, builder) { - var request = function (timestamp) { - return _lukewestby$elm_http_builder$HttpBuilder$toTaskPlain( - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: paramName, - _1: _elm_lang$core$Basics$toString(timestamp) - }, - _1: {ctor: '[]'} - }, - builder)); - }; - return A2(_elm_lang$core$Task$andThen, request, _elm_lang$core$Time$now); - }); -var _lukewestby$elm_http_builder$HttpBuilder$toTask = function (builder) { - var _p4 = builder.cacheBuster; - if (_p4.ctor === 'Just') { - return A2(_lukewestby$elm_http_builder$HttpBuilder$toTaskWithCacheBuster, _p4._0, builder); - } else { - return _lukewestby$elm_http_builder$HttpBuilder$toTaskPlain(builder); - } -}; -var _lukewestby$elm_http_builder$HttpBuilder$send = F2( - function (tagger, builder) { - return A2( - _elm_lang$core$Task$attempt, - tagger, - _lukewestby$elm_http_builder$HttpBuilder$toTask(builder)); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withExpectString = function (builder) { - return _elm_lang$core$Native_Utils.update( - builder, - {expect: _elm_lang$http$Http$expectString}); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withExpectJson = F2( - function (decoder, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - expect: _elm_lang$http$Http$expectJson(decoder) - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withExpect = F2( - function (expect, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - {expect: expect}); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withCredentials = function (builder) { - return _elm_lang$core$Native_Utils.update( - builder, - {withCredentials: true}); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withTimeout = F2( - function (timeout, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - timeout: _elm_lang$core$Maybe$Just(timeout) - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withBody = F2( - function (body, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - {body: body}); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withStringBody = F2( - function (contentType, value) { - return _lukewestby$elm_http_builder$HttpBuilder$withBody( - A2(_elm_lang$http$Http$stringBody, contentType, value)); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withUrlEncodedBody = function (_p5) { - return A2( - _lukewestby$elm_http_builder$HttpBuilder$withStringBody, - 'application/x-www-form-urlencoded', - _lukewestby$elm_http_builder$HttpBuilder$joinUrlEncoded(_p5)); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withJsonBody = function (value) { - return _lukewestby$elm_http_builder$HttpBuilder$withBody( - _elm_lang$http$Http$jsonBody(value)); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withMultipartStringBody = function (partPairs) { - return _lukewestby$elm_http_builder$HttpBuilder$withBody( - _elm_lang$http$Http$multipartBody( - A2( - _elm_lang$core$List$map, - _elm_lang$core$Basics$uncurry(_elm_lang$http$Http$stringPart), - partPairs))); -}; -var _lukewestby$elm_http_builder$HttpBuilder$withBearerToken = F2( - function (value, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - headers: { - ctor: '::', - _0: A2( - _elm_lang$http$Http$header, - 'Authorization', - A2(_elm_lang$core$Basics_ops['++'], 'Bearer ', value)), - _1: builder.headers - } - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withHeaders = F2( - function (headerPairs, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - headers: A2( - _elm_lang$core$Basics_ops['++'], - A2( - _elm_lang$core$List$map, - _elm_lang$core$Basics$uncurry(_elm_lang$http$Http$header), - headerPairs), - builder.headers) - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$withHeader = F3( - function (key, value, builder) { - return _elm_lang$core$Native_Utils.update( - builder, - { - headers: { - ctor: '::', - _0: A2(_elm_lang$http$Http$header, key, value), - _1: builder.headers - } - }); - }); -var _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl = F2( - function (method, url) { - return { - method: method, - url: url, - headers: {ctor: '[]'}, - body: _elm_lang$http$Http$emptyBody, - expect: _elm_lang$http$Http$expectStringResponse( - function (_p6) { - return _elm_lang$core$Result$Ok( - {ctor: '_Tuple0'}); - }), - timeout: _elm_lang$core$Maybe$Nothing, - withCredentials: false, - queryParams: {ctor: '[]'}, - cacheBuster: _elm_lang$core$Maybe$Nothing - }; - }); -var _lukewestby$elm_http_builder$HttpBuilder$get = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('GET'); -var _lukewestby$elm_http_builder$HttpBuilder$post = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('POST'); -var _lukewestby$elm_http_builder$HttpBuilder$put = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('PUT'); -var _lukewestby$elm_http_builder$HttpBuilder$patch = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('PATCH'); -var _lukewestby$elm_http_builder$HttpBuilder$delete = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('DELETE'); -var _lukewestby$elm_http_builder$HttpBuilder$options = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('OPTIONS'); -var _lukewestby$elm_http_builder$HttpBuilder$trace = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('TRACE'); -var _lukewestby$elm_http_builder$HttpBuilder$head = _lukewestby$elm_http_builder$HttpBuilder$requestWithMethodAndUrl('HEAD'); -var _lukewestby$elm_http_builder$HttpBuilder$RequestBuilder = F9( - function (a, b, c, d, e, f, g, h, i) { - return {method: a, headers: b, url: c, body: d, expect: e, timeout: f, withCredentials: g, queryParams: h, cacheBuster: i}; - }); - -var _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid = function (_p0) { - var _p1 = _p0; - return _p1._0; -}; -var _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid = function (_p2) { - return _elm_lang$core$Json_Encode$string( - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p2)); -}; -var _Gizra$elm_restful$Restful_Endpoint$fromEntityId = function (_p3) { - var _p4 = _p3; - return _p4._0; -}; -var _Gizra$elm_restful$Restful_Endpoint$encodeEntityId = function (_p5) { - return _elm_lang$core$Json_Encode$int( - _Gizra$elm_restful$Restful_Endpoint$fromEntityId(_p5)); -}; -var _Gizra$elm_restful$Restful_Endpoint$decodeDrupalData = _elm_lang$core$Json_Decode$field('data'); -var _Gizra$elm_restful$Restful_Endpoint$decodeSingleDrupalEntity = function (_p6) { - return _Gizra$elm_restful$Restful_Endpoint$decodeDrupalData( - A2(_elm_lang$core$Json_Decode$index, 0, _p6)); -}; -var _Gizra$elm_restful$Restful_Endpoint$decodeDrupalList = function (_p7) { - return _Gizra$elm_restful$Restful_Endpoint$decodeDrupalData( - _elm_lang$core$Json_Decode$list(_p7)); -}; -var _Gizra$elm_restful$Restful_Endpoint$decodeDrupalId = function (wrapper) { - return A2( - _elm_lang$core$Json_Decode$map, - wrapper, - A2(_elm_lang$core$Json_Decode$field, 'id', _Gizra$elm_essentials$Gizra_Json$decodeInt)); -}; -var _Gizra$elm_restful$Restful_Endpoint$withOffsetAndRange = F3( - function (backend, offset, range) { - var rangeParam = A2( - _elm_lang$core$Maybe$map, - function (r) { - return { - ctor: '_Tuple2', - _0: backend.rangeParam, - _1: _elm_lang$core$Basics$toString(r) - }; - }, - range); - var offsetParam = _elm_lang$core$Native_Utils.eq(offset, 0) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: backend.offsetParam, - _1: _elm_lang$core$Basics$toString(offset) - }); - return _lukewestby$elm_http_builder$HttpBuilder$withQueryParams( - A2( - _elm_lang$core$List$filterMap, - _elm_lang$core$Basics$identity, - { - ctor: '::', - _0: offsetParam, - _1: { - ctor: '::', - _0: rangeParam, - _1: {ctor: '[]'} - } - })); - }); -var _Gizra$elm_restful$Restful_Endpoint$toTaskMaybe = function (_p8) { - var _p9 = _p8; - var _p11 = _p9._0; - return A2( - _elm_lang$core$Task$onError, - function (err) { - var _p10 = err; - if (_p10.ctor === 'BadStatus') { - return _elm_lang$core$Native_Utils.eq(_p10._0.status.code, 404) ? _elm_lang$core$Task$succeed(_elm_lang$core$Maybe$Nothing) : _elm_lang$core$Task$fail( - _p11(err)); - } else { - return _elm_lang$core$Task$fail( - _p11(err)); - } - }, - A2( - _elm_lang$core$Task$map, - _elm_lang$core$Maybe$Just, - _lukewestby$elm_http_builder$HttpBuilder$toTask(_p9._2))); -}; -var _Gizra$elm_restful$Restful_Endpoint$toTask = function (_p12) { - var _p13 = _p12; - return A2( - _elm_lang$core$Task$mapError, - _p13._0, - _lukewestby$elm_http_builder$HttpBuilder$toTask(_p13._2)); -}; -var _Gizra$elm_restful$Restful_Endpoint$toCmdMaybe = F2( - function (tagger, request) { - return A2( - _elm_lang$core$Task$attempt, - tagger, - _Gizra$elm_restful$Restful_Endpoint$toTaskMaybe(request)); - }); -var _Gizra$elm_restful$Restful_Endpoint$toCmd = F2( - function (tagger, request) { - return A2( - _elm_lang$core$Task$attempt, - tagger, - _Gizra$elm_restful$Restful_Endpoint$toTask(request)); - }); -var _Gizra$elm_restful$Restful_Endpoint$expectSingleWithKey = F2( - function (_p14, key) { - var _p15 = _p14; - var _p16 = _p15._0; - return _lukewestby$elm_http_builder$HttpBuilder$withExpect( - _elm_lang$http$Http$expectJson( - A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Tuple$second, - _p16.backend.decodeSingleItem( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _elm_lang$core$Json_Decode$succeed(key), - _p16.decodeValue))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$expectSingle = function (_p17) { - var _p18 = _p17; - var _p19 = _p18._0; - return _lukewestby$elm_http_builder$HttpBuilder$withExpect( - _elm_lang$http$Http$expectJson( - _p19.backend.decodeSingleItem( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _p19.decodeKey, - _p19.decodeValue)))); -}; -var _Gizra$elm_restful$Restful_Endpoint$decodeItemList = function (_p20) { - var _p21 = _p20; - var _p22 = _p21._0; - return _p22.backend.decodeMultipleItems( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _p22.decodeKey, - _p22.decodeValue)); -}; -var _Gizra$elm_restful$Restful_Endpoint$expectMany = function (_p23) { - var _p24 = _p23; - return _lukewestby$elm_http_builder$HttpBuilder$withExpect( - _elm_lang$http$Http$expectJson( - _Gizra$elm_restful$Restful_Endpoint$decodeItemList(_p24))); -}; -var _Gizra$elm_restful$Restful_Endpoint_ops = _Gizra$elm_restful$Restful_Endpoint_ops || {}; -_Gizra$elm_restful$Restful_Endpoint_ops[''] = F2( - function (left, right) { - if (_elm_lang$core$String$isEmpty(left)) { - return right; - } else { - if (_elm_lang$core$String$isEmpty(right)) { - return left; - } else { - var _p25 = { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$String$endsWith, '/', left), - _1: A2(_elm_lang$core$String$startsWith, '/', right) - }; - _v9_2: - do { - if (_p25.ctor === '_Tuple2') { - if (_p25._0 === false) { - if (_p25._1 === false) { - return A2( - _elm_lang$core$Basics_ops['++'], - left, - A2(_elm_lang$core$Basics_ops['++'], '/', right)); - } else { - break _v9_2; - } - } else { - if (_p25._1 === true) { - return A2( - _elm_lang$core$Basics_ops['++'], - left, - A2(_elm_lang$core$String$dropLeft, 1, right)); - } else { - break _v9_2; - } - } - } else { - break _v9_2; - } - } while(false); - return A2(_elm_lang$core$Basics_ops['++'], left, right); - } - } - }); -var _Gizra$elm_restful$Restful_Endpoint$urlForKey = F3( - function (backendUrl, _p26, key) { - var _p27 = _p26; - var _p28 = _p27._0; - return A2( - _Gizra$elm_restful$Restful_Endpoint_ops[''], - A2(_Gizra$elm_restful$Restful_Endpoint_ops[''], backendUrl, _p28.path), - _p28.keyToUrlPart(key)); - }); -var _Gizra$elm_restful$Restful_Endpoint$urlForManyKeys = F3( - function (backendUrl, _p29, keys) { - var _p30 = _p29; - var _p31 = _p30._0; - var ids = _p31.backend.manyKeys( - A2(_elm_lang$core$List$map, _p31.keyToUrlPart, keys)); - return A2( - _Gizra$elm_restful$Restful_Endpoint_ops[''], - A2(_Gizra$elm_restful$Restful_Endpoint_ops[''], backendUrl, _p31.path), - ids); - }); -var _Gizra$elm_restful$Restful_Endpoint$encodeEmptyObject = function (a) { - return _elm_lang$core$Json_Encode$object( - {ctor: '[]'}); -}; -var _Gizra$elm_restful$Restful_Endpoint$encodeEmptyParams = function (p) { - return {ctor: '[]'}; -}; -var _Gizra$elm_restful$Restful_Endpoint$decodeDrupalCount = A2(_elm_lang$core$Json_Decode$field, 'count', _Gizra$elm_essentials$Gizra_Json$decodeInt); -var _Gizra$elm_restful$Restful_Endpoint$unwrapBackend = function (_p32) { - var _p33 = _p32; - return _p33._0; -}; -var _Gizra$elm_restful$Restful_Endpoint$EndPointRec = F9( - function (a, b, c, d, e, f, g, h, i) { - return {backend: a, decodeKey: b, decodeValue: c, encodeCreatedValue: d, encodeParams: e, encodeValue: f, keyToUrlPart: g, mapError: h, path: i}; - }); -var _Gizra$elm_restful$Restful_Endpoint$BackendRec = F7( - function (a, b, c, d, e, f, g) { - return {decodeCount: a, decodeMultipleItems: b, decodeSingleItem: c, manyKeys: d, offsetParam: e, rangeParam: f, tokenStrategy: g}; - }); -var _Gizra$elm_restful$Restful_Endpoint$QueryResult = F4( - function (a, b, c, d) { - return {params: a, offset: b, items: c, count: d}; - }); -var _Gizra$elm_restful$Restful_Endpoint$expectMultiple = F3( - function (_p34, params, offset) { - var _p35 = _p34; - return _lukewestby$elm_http_builder$HttpBuilder$withExpect( - _elm_lang$http$Http$expectJson( - A3( - _elm_lang$core$Json_Decode$map2, - A2(_Gizra$elm_restful$Restful_Endpoint$QueryResult, params, offset), - _Gizra$elm_restful$Restful_Endpoint$decodeItemList(_p35), - _p35._0.backend.decodeCount))); - }); -var _Gizra$elm_restful$Restful_Endpoint$CrudOperations = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return {$delete: a, get: b, getMany: c, patch: d, patchAny: e, patchFull: f, post: g, put: h, select: i, selectRange: j}; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$elm_restful$Restful_Endpoint$ReadOnly = {ctor: 'ReadOnly'}; -var _Gizra$elm_restful$Restful_Endpoint$ReadWrite = {ctor: 'ReadWrite'}; -var _Gizra$elm_restful$Restful_Endpoint$EndPoint = function (a) { - return {ctor: 'EndPoint', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$withBackend = F2( - function (_p37, _p36) { - var _p38 = _p37; - var _p39 = _p36; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p39._0, - {backend: _p38._0})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withParamsEncoder = F2( - function (encodeParams, _p40) { - var _p41 = _p40; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p41._0, - {encodeParams: encodeParams})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withKeyEncoder = F2( - function (keyToUrlPart, _p42) { - var _p43 = _p42; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p43._0, - {keyToUrlPart: keyToUrlPart})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withValueEncoder = F2( - function (encodeValue, _p44) { - var _p45 = _p44; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p45._0, - {encodeValue: encodeValue, encodeCreatedValue: encodeValue})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withCreatedEncoder = F2( - function (encodeCreatedValue, _p46) { - var _p47 = _p46; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p47._0, - {encodeCreatedValue: encodeCreatedValue})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withErrorDecoder = F2( - function (mapError, _p48) { - var _p49 = _p48; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p49._0, - {mapError: mapError})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withPath = F2( - function (path, _p50) { - var _p51 = _p50; - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - _elm_lang$core$Native_Utils.update( - _p51._0, - {path: path})); - }); -var _Gizra$elm_restful$Restful_Endpoint$endpoint = F4( - function (path, decodeKey, decodeValue, backend) { - return _Gizra$elm_restful$Restful_Endpoint$EndPoint( - { - backend: _Gizra$elm_restful$Restful_Endpoint$unwrapBackend(backend), - decodeKey: decodeKey, - decodeValue: decodeValue, - encodeCreatedValue: _Gizra$elm_restful$Restful_Endpoint$encodeEmptyObject, - encodeParams: _Gizra$elm_restful$Restful_Endpoint$encodeEmptyParams, - encodeValue: _Gizra$elm_restful$Restful_Endpoint$encodeEmptyObject, - keyToUrlPart: _elm_lang$core$Basics$toString, - mapError: _elm_lang$core$Basics$identity, - path: path - }); - }); -var _Gizra$elm_restful$Restful_Endpoint$Backend = function (a) { - return {ctor: 'Backend', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$withItems = F3( - function (decodeSingleItem, decodeMultipleItems, _p52) { - var _p53 = _p52; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p53._0, - {decodeSingleItem: decodeSingleItem, decodeMultipleItems: decodeMultipleItems})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withDrupalItems = A2(_Gizra$elm_restful$Restful_Endpoint$withItems, _Gizra$elm_restful$Restful_Endpoint$decodeSingleDrupalEntity, _Gizra$elm_restful$Restful_Endpoint$decodeDrupalList); -var _Gizra$elm_restful$Restful_Endpoint$withPlainItems = A2(_Gizra$elm_restful$Restful_Endpoint$withItems, _elm_lang$core$Basics$identity, _elm_lang$core$Json_Decode$list); -var _Gizra$elm_restful$Restful_Endpoint$withManyKeys = F2( - function (manyKeys, _p54) { - var _p55 = _p54; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p55._0, - {manyKeys: manyKeys})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withCountDecoder = F2( - function (decodeCount, _p56) { - var _p57 = _p56; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p57._0, - {decodeCount: decodeCount})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withDrupalCountDecoder = _Gizra$elm_restful$Restful_Endpoint$withCountDecoder(_Gizra$elm_restful$Restful_Endpoint$decodeDrupalCount); -var _Gizra$elm_restful$Restful_Endpoint$withOffsetParam = F2( - function (offsetParam, _p58) { - var _p59 = _p58; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p59._0, - {offsetParam: offsetParam})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withRangeParam = F2( - function (rangeParam, _p60) { - var _p61 = _p60; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p61._0, - {rangeParam: rangeParam})); - }); -var _Gizra$elm_restful$Restful_Endpoint$withTokenStrategy = F2( - function (tokenStrategy, _p62) { - var _p63 = _p62; - return _Gizra$elm_restful$Restful_Endpoint$Backend( - _elm_lang$core$Native_Utils.update( - _p63._0, - {tokenStrategy: tokenStrategy})); - }); -var _Gizra$elm_restful$Restful_Endpoint$TokenUrlParam = function (a) { - return {ctor: 'TokenUrlParam', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$tokenUrlParam = _Gizra$elm_restful$Restful_Endpoint$TokenUrlParam; -var _Gizra$elm_restful$Restful_Endpoint$backend = _Gizra$elm_restful$Restful_Endpoint$Backend( - { - decodeSingleItem: _elm_lang$core$Basics$identity, - decodeMultipleItems: _elm_lang$core$Json_Decode$list, - decodeCount: _Gizra$elm_restful$Restful_Endpoint$decodeDrupalCount, - manyKeys: _elm_lang$core$String$join(','), - offsetParam: 'offset', - rangeParam: 'range', - tokenStrategy: _Gizra$elm_restful$Restful_Endpoint$tokenUrlParam('access_token') - }); -var _Gizra$elm_restful$Restful_Endpoint$drupalBackend = _Gizra$elm_restful$Restful_Endpoint$withDrupalItems(_Gizra$elm_restful$Restful_Endpoint$backend); -var _Gizra$elm_restful$Restful_Endpoint$TokenHeader = function (a) { - return {ctor: 'TokenHeader', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$tokenHeader = _Gizra$elm_restful$Restful_Endpoint$TokenHeader; -var _Gizra$elm_restful$Restful_Endpoint$CrudRequest = F3( - function (a, b, c) { - return {ctor: 'CrudRequest', _0: a, _1: b, _2: c}; - }); -var _Gizra$elm_restful$Restful_Endpoint$modifyRequest = F2( - function (func, _p64) { - var _p65 = _p64; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p65._0, - _p65._1, - func(_p65._2)); - }); -var _Gizra$elm_restful$Restful_Endpoint$withAccessToken = F2( - function (token, _p66) { - var _p67 = _p66; - var func = function () { - var _p68 = _p67._1; - if (_p68.ctor === 'TokenHeader') { - return A2(_lukewestby$elm_http_builder$HttpBuilder$withHeader, _p68._0, token); - } else { - return _lukewestby$elm_http_builder$HttpBuilder$withQueryParams( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _p68._0, _1: token}, - _1: {ctor: '[]'} - }); - } - }(); - return A2(_Gizra$elm_restful$Restful_Endpoint$modifyRequest, func, _p67); - }); -var _Gizra$elm_restful$Restful_Endpoint$applyAccessToken = F2( - function (accessToken, ops) { - var addAccessToken = _Gizra$elm_restful$Restful_Endpoint$withAccessToken(accessToken); - var apply2 = F2( - function (func, a) { - return function (_p69) { - return addAccessToken( - A2(func, a, _p69)); - }; - }); - var apply3 = F3( - function (func, a, b) { - return function (_p70) { - return addAccessToken( - A3(func, a, b, _p70)); - }; - }); - var apply4 = F4( - function (func, a, b, c) { - return function (_p71) { - return addAccessToken( - A4(func, a, b, c, _p71)); - }; - }); - return { - $delete: apply2(ops.$delete), - get: apply2(ops.get), - getMany: apply2(ops.getMany), - patch: apply4(ops.patch), - patchAny: apply3(ops.patchAny), - patchFull: apply3(ops.patchFull), - post: apply2(ops.post), - put: apply3(ops.put), - select: apply2(ops.select), - selectRange: apply4(ops.selectRange) - }; - }); -var _Gizra$elm_restful$Restful_Endpoint$withoutDecoder = _Gizra$elm_restful$Restful_Endpoint$modifyRequest( - _lukewestby$elm_http_builder$HttpBuilder$withExpect( - _elm_lang$http$Http$expectJson( - _elm_lang$core$Json_Decode$succeed( - {ctor: '_Tuple0'})))); -var _Gizra$elm_restful$Restful_Endpoint$select = F3( - function (backendUrl, _p72, params) { - var _p73 = _p72; - var _p74 = _p73._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p74.mapError, - _p74.backend.tokenStrategy, - A4( - _Gizra$elm_restful$Restful_Endpoint$expectMultiple, - _p73, - params, - 0, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - _p74.encodeParams(params), - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_Gizra$elm_restful$Restful_Endpoint_ops[''], backendUrl, _p74.path))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$selectRange = F5( - function (backendUrl, _p75, params, offset, range) { - var _p76 = _p75; - var _p77 = _p76._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p77.mapError, - _p77.backend.tokenStrategy, - A4( - _Gizra$elm_restful$Restful_Endpoint$expectMultiple, - _p76, - params, - offset, - A4( - _Gizra$elm_restful$Restful_Endpoint$withOffsetAndRange, - _p77.backend, - offset, - range, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - _p77.encodeParams(params), - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_Gizra$elm_restful$Restful_Endpoint_ops[''], backendUrl, _p77.path)))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$get = F3( - function (backendUrl, _p78, key) { - var _p79 = _p78; - var _p81 = _p79; - var _p80 = _p79._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p80.mapError, - _p80.backend.tokenStrategy, - A3( - _Gizra$elm_restful$Restful_Endpoint$expectSingleWithKey, - _p81, - key, - _lukewestby$elm_http_builder$HttpBuilder$get( - A3(_Gizra$elm_restful$Restful_Endpoint$urlForKey, backendUrl, _p81, key)))); - }); -var _Gizra$elm_restful$Restful_Endpoint$getMany = F3( - function (backendUrl, _p82, keys) { - var _p83 = _p82; - var _p85 = _p83; - var _p84 = _p83._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p84.mapError, - _p84.backend.tokenStrategy, - A2( - _Gizra$elm_restful$Restful_Endpoint$expectMany, - _p85, - _lukewestby$elm_http_builder$HttpBuilder$get( - A3(_Gizra$elm_restful$Restful_Endpoint$urlForManyKeys, backendUrl, _p85, keys)))); - }); -var _Gizra$elm_restful$Restful_Endpoint$post = F3( - function (backendUrl, _p86, created) { - var _p87 = _p86; - var _p88 = _p87._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p88.mapError, - _p88.backend.tokenStrategy, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _p88.encodeCreatedValue(created), - A2( - _Gizra$elm_restful$Restful_Endpoint$expectSingle, - _p87, - _lukewestby$elm_http_builder$HttpBuilder$post( - A2(_Gizra$elm_restful$Restful_Endpoint_ops[''], backendUrl, _p88.path))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$put = F4( - function (backendUrl, _p89, key, value) { - var _p90 = _p89; - var _p92 = _p90; - var _p91 = _p90._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p91.mapError, - _p91.backend.tokenStrategy, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _p91.encodeValue(value), - A3( - _Gizra$elm_restful$Restful_Endpoint$expectSingleWithKey, - _p92, - key, - _lukewestby$elm_http_builder$HttpBuilder$put( - A3(_Gizra$elm_restful$Restful_Endpoint$urlForKey, backendUrl, _p92, key))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$patchAny = F4( - function (backendUrl, _p93, key, json) { - var _p94 = _p93; - var _p96 = _p94; - var _p95 = _p94._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p95.mapError, - _p95.backend.tokenStrategy, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - json, - A3( - _Gizra$elm_restful$Restful_Endpoint$expectSingleWithKey, - _p96, - key, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A3(_Gizra$elm_restful$Restful_Endpoint$urlForKey, backendUrl, _p96, key))))); - }); -var _Gizra$elm_restful$Restful_Endpoint$patch = F5( - function (backendUrl, endpoint, key, value, encoder) { - return A4( - _Gizra$elm_restful$Restful_Endpoint$patchAny, - backendUrl, - endpoint, - key, - encoder(value)); - }); -var _Gizra$elm_restful$Restful_Endpoint$patchFull = F4( - function (backendUrl, _p97, key, value) { - var _p98 = _p97; - return A5(_Gizra$elm_restful$Restful_Endpoint$patch, backendUrl, _p98, key, value, _p98._0.encodeValue); - }); -var _Gizra$elm_restful$Restful_Endpoint$delete = F3( - function (backendUrl, _p99, key) { - var _p100 = _p99; - var _p101 = _p100._0; - return A3( - _Gizra$elm_restful$Restful_Endpoint$CrudRequest, - _p101.mapError, - _p101.backend.tokenStrategy, - _lukewestby$elm_http_builder$HttpBuilder$delete( - A3(_Gizra$elm_restful$Restful_Endpoint$urlForKey, backendUrl, _p100, key))); - }); -var _Gizra$elm_restful$Restful_Endpoint$applyBackendUrl = function (backendUrl) { - return { - $delete: _Gizra$elm_restful$Restful_Endpoint$delete(backendUrl), - get: _Gizra$elm_restful$Restful_Endpoint$get(backendUrl), - getMany: _Gizra$elm_restful$Restful_Endpoint$getMany(backendUrl), - patch: _Gizra$elm_restful$Restful_Endpoint$patch(backendUrl), - patchAny: _Gizra$elm_restful$Restful_Endpoint$patchAny(backendUrl), - patchFull: _Gizra$elm_restful$Restful_Endpoint$patchFull(backendUrl), - post: _Gizra$elm_restful$Restful_Endpoint$post(backendUrl), - put: _Gizra$elm_restful$Restful_Endpoint$put(backendUrl), - select: _Gizra$elm_restful$Restful_Endpoint$select(backendUrl), - selectRange: _Gizra$elm_restful$Restful_Endpoint$selectRange(backendUrl) - }; -}; -var _Gizra$elm_restful$Restful_Endpoint$EntityId = function (a) { - return {ctor: 'EntityId', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$toEntityId = _Gizra$elm_restful$Restful_Endpoint$EntityId; -var _Gizra$elm_restful$Restful_Endpoint$drupalEndpoint = F2( - function (path, decodeValue) { - return A2( - _Gizra$elm_restful$Restful_Endpoint$withKeyEncoder, - function (_p102) { - return _elm_lang$core$Basics$toString( - _Gizra$elm_restful$Restful_Endpoint$fromEntityId(_p102)); - }, - A4( - _Gizra$elm_restful$Restful_Endpoint$endpoint, - path, - _Gizra$elm_restful$Restful_Endpoint$decodeDrupalId(_Gizra$elm_restful$Restful_Endpoint$toEntityId), - decodeValue, - _Gizra$elm_restful$Restful_Endpoint$drupalBackend)); - }); -var _Gizra$elm_restful$Restful_Endpoint$decodeEntityId = A2(_elm_lang$core$Json_Decode$map, _Gizra$elm_restful$Restful_Endpoint$toEntityId, _Gizra$elm_essentials$Gizra_Json$decodeInt); -var _Gizra$elm_restful$Restful_Endpoint$EntityUuid = function (a) { - return {ctor: 'EntityUuid', _0: a}; -}; -var _Gizra$elm_restful$Restful_Endpoint$toEntityUuid = _Gizra$elm_restful$Restful_Endpoint$EntityUuid; -var _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid = A2(_elm_lang$core$Json_Decode$map, _Gizra$elm_restful$Restful_Endpoint$toEntityUuid, _elm_lang$core$Json_Decode$string); - -var _Gizra$circuit_bid$Backend_Entities$BidderInfoIdType = {ctor: 'BidderInfoIdType'}; -var _Gizra$circuit_bid$Backend_Entities$CreditRequestIdType = {ctor: 'CreditRequestIdType'}; -var _Gizra$circuit_bid$Backend_Entities$SaleIdType = {ctor: 'SaleIdType'}; -var _Gizra$circuit_bid$Backend_Entities$SessionIdType = {ctor: 'SessionIdType'}; -var _Gizra$circuit_bid$Backend_Entities$SiteIdType = {ctor: 'SiteIdType'}; -var _Gizra$circuit_bid$Backend_Entities$SaleUuidType = {ctor: 'SaleUuidType'}; -var _Gizra$circuit_bid$Backend_Entities$SiteUuidType = {ctor: 'SiteUuidType'}; -var _Gizra$circuit_bid$Backend_Entities$ItemId = function (a) { - return {ctor: 'ItemId', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Entities$ItemUuid = function (a) { - return {ctor: 'ItemUuid', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Entities$UserId = function (a) { - return {ctor: 'UserId', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Entities$UserUuidType = {ctor: 'UserUuidType'}; - -var _Gizra$circuit_bid$Bid_Model$Bid = F9( - function (a, b, c, d, e, f, g, h, i) { - return {amount: a, status: b, changed: c, deletedStatus: d, created: e, bidType: f, underExtension: g, alternativeBids: h, willMaxOut: i}; - }); -var _Gizra$circuit_bid$Bid_Model$Deleted = function (a) { - return {ctor: 'Deleted', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$NotDeleted = {ctor: 'NotDeleted'}; -var _Gizra$circuit_bid$Bid_Model$PostSale = {ctor: 'PostSale'}; -var _Gizra$circuit_bid$Bid_Model$Mail = {ctor: 'Mail'}; -var _Gizra$circuit_bid$Bid_Model$Internet = {ctor: 'Internet'}; -var _Gizra$circuit_bid$Bid_Model$Floor = {ctor: 'Floor'}; -var _Gizra$circuit_bid$Bid_Model$Book = F2( - function (a, b) { - return {ctor: 'Book', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Bid_Model$AutoAgent = {ctor: 'AutoAgent'}; -var _Gizra$circuit_bid$Bid_Model$Agent = {ctor: 'Agent'}; -var _Gizra$circuit_bid$Bid_Model$Outbid = function (a) { - return {ctor: 'Outbid', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$RejectedBellowMinimum = function (a) { - return {ctor: 'RejectedBellowMinimum', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$RejectedMailAfterSetLastFloor = function (a) { - return {ctor: 'RejectedMailAfterSetLastFloor', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$RejectedCreditLimit = function (a) { - return {ctor: 'RejectedCreditLimit', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$RejectedBidderMax = function (a) { - return {ctor: 'RejectedBidderMax', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$Rejected = function (a) { - return {ctor: 'Rejected', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$AcceptedDuplicatedAmount = function (a) { - return {ctor: 'AcceptedDuplicatedAmount', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$Accepted = function (a) { - return {ctor: 'Accepted', _0: a}; -}; -var _Gizra$circuit_bid$Bid_Model$BidKey = function (a) { - return {ctor: 'BidKey', _0: a}; -}; - -var _Gizra$circuit_bid$Country$regions = function (country) { - var _p0 = country; - switch (_p0) { - case 'AC': - return {ctor: '[]'}; - case 'AD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-07', _1: 'Andorra la Vella'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-02', _1: 'Canillo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-03', _1: 'Encamp'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-08', _1: 'Escaldes-Engordany'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-04', _1: 'La Massana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-05', _1: 'Ordino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AD-06', _1: 'Sant Julià de Lòria'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'AE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-AZ', _1: 'Abū Z̧aby'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-AJ', _1: '‘Ajmān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-FU', _1: 'Al Fujayrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-SH', _1: 'Ash Shāriqah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-DU', _1: 'Dubayy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-RK', _1: 'Ra’s al Khaymah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AE-UQ', _1: 'Umm al Qaywayn'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'AF': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-BDS', _1: 'Badakhshān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-BDG', _1: 'Bādghīs'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-BGL', _1: 'Baghlān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-BAL', _1: 'Balkh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-BAM', _1: 'Bāmyān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-DAY', _1: 'Dāykundī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-FRA', _1: 'Farāh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-FYB', _1: 'Fāryāb'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-GHA', _1: 'Ghaznī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-GHO', _1: 'Ghōr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-HEL', _1: 'Helmand'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-HER', _1: 'Herāt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-JOW', _1: 'Jowzjān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KAB', _1: 'Kābul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KAN', _1: 'Kandahār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KAP', _1: 'Kāpīsā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KHO', _1: 'Khōst'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KNR', _1: 'Kunaṟ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-KDZ', _1: 'Kunduz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-LAG', _1: 'Laghmān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-LOG', _1: 'Lōgar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-NAN', _1: 'Nangarhār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-NIM', _1: 'Nīmrōz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-NUR', _1: 'Nūristān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-PKA', _1: 'Paktīkā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-PIA', _1: 'Paktiyā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-PAN', _1: 'Panjshayr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-PAR', _1: 'Parwān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-SAM', _1: 'Samangān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-SAR', _1: 'Sar-e Pul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-TAK', _1: 'Takhār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-URU', _1: 'Uruzgān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-WAR', _1: 'Wardak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AF-ZAB', _1: 'Zābul'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'AG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-03', _1: 'Saint George'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-04', _1: 'Saint John'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-05', _1: 'Saint Mary'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-06', _1: 'Saint Paul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-07', _1: 'Saint Peter'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-08', _1: 'Saint Philip'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-10', _1: 'Barbuda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AG-11', _1: 'Redonda'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'AI': - return {ctor: '[]'}; - case 'AL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-01', _1: 'Berat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-09', _1: 'Dibër'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-02', _1: 'Durrës'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-03', _1: 'Elbasan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-04', _1: 'Fier'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-05', _1: 'Gjirokastër'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-06', _1: 'Korçë'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-07', _1: 'Kukës'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-08', _1: 'Lezhë'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-10', _1: 'Shkodër'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-11', _1: 'Tiranë'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AL-12', _1: 'Vlorë'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'AM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-ER', _1: 'Erevan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-AG', _1: 'Aragac̣otn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-AR', _1: 'Ararat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-AV', _1: 'Armavir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-GR', _1: 'Geġark\'unik\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-KT', _1: 'Kotayk\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-LO', _1: 'Loṙi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-SH', _1: 'Širak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-SU', _1: 'Syunik\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-TV', _1: 'Tavuš'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AM-VD', _1: 'Vayoć Jor'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'AO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-BGO', _1: 'Bengo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-BGU', _1: 'Benguela'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-BIE', _1: 'Bié'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-CAB', _1: 'Cabinda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-CNN', _1: 'Cunene'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-HUA', _1: 'Huambo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-HUI', _1: 'Huíla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-CCU', _1: 'Kuando Kubango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-CNO', _1: 'Kwanza Norte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-CUS', _1: 'Kwanza Sul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-LUA', _1: 'Luanda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-LNO', _1: 'Lunda Norte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-LSU', _1: 'Lunda Sul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-MAL', _1: 'Malange'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-MOX', _1: 'Moxico'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-NAM', _1: 'Namibe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-UIG', _1: 'Uíge'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AO-ZAI', _1: 'Zaire'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'AQ': - return {ctor: '[]'}; - case 'AR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-C', _1: 'Ciudad Autónoma de Buenos Aires'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-B', _1: 'Buenos Aires'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-K', _1: 'Catamarca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-H', _1: 'Chaco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-U', _1: 'Chubut'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-X', _1: 'Córdoba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-W', _1: 'Corrientes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-E', _1: 'Entre Ríos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-P', _1: 'Formosa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-Y', _1: 'Jujuy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-L', _1: 'La Pampa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-F', _1: 'La Rioja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-M', _1: 'Mendoza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-N', _1: 'Misiones'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-Q', _1: 'Neuquén'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-R', _1: 'Río Negro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-A', _1: 'Salta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-J', _1: 'San Juan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-D', _1: 'San Luis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-Z', _1: 'Santa Cruz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-S', _1: 'Santa Fe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-G', _1: 'Santiago del Estero'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-V', _1: 'Tierra del Fuego'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AR-T', _1: 'Tucumán'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'AS': - return {ctor: '[]'}; - case 'AT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-1', _1: 'Burgenland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-2', _1: 'Kärnten'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-3', _1: 'Niederösterreich'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-4', _1: 'Oberösterreich'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-5', _1: 'Salzburg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-6', _1: 'Steiermark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-7', _1: 'Tirol'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-8', _1: 'Vorarlberg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AT-9', _1: 'Wien'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'AU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-NSW', _1: 'New South Wales'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-QLD', _1: 'Queensland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-SA', _1: 'South Australia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-TAS', _1: 'Tasmania'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-VIC', _1: 'Victoria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-WA', _1: 'Western Australia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-ACT', _1: 'Australian Capital Territory'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AU-NT', _1: 'Northern Territory'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'AW': - return {ctor: '[]'}; - case 'AX': - return {ctor: '[]'}; - case 'AZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'AZ-NX', _1: 'Naxçıvan'}, - _1: {ctor: '[]'} - }; - case 'BA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BA-BIH', _1: 'Federacija Bosna i Hercegovina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BA-SRP', _1: 'Republika Srpska'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BA-BRC', _1: 'Brčko distrikt'}, - _1: {ctor: '[]'} - } - } - }; - case 'BB': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-01', _1: 'Christ Church'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-02', _1: 'Saint Andrew'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-03', _1: 'Saint George'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-04', _1: 'Saint James'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-05', _1: 'Saint John'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-06', _1: 'Saint Joseph'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-07', _1: 'Saint Lucy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-08', _1: 'Saint Michael'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-09', _1: 'Saint Peter'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-10', _1: 'Saint Philip'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BB-11', _1: 'Saint Thomas'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'BD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-A', _1: 'Barisal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-B', _1: 'Chittagong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-C', _1: 'Dhaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-D', _1: 'Khulna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-H', _1: 'Mymensingh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-E', _1: 'Rajshahi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-F', _1: 'Rangpur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BD-G', _1: 'Sylhet'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'BE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BE-BRU', _1: 'Brussels Hoofdstedelijk Gewest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BE-VLG', _1: 'Vlaams Gewest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BE-WAL', _1: 'Région Wallonne'}, - _1: {ctor: '[]'} - } - } - }; - case 'BF': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-01', _1: 'Boucle du Mouhoun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-02', _1: 'Cascades'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-03', _1: 'Centre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-04', _1: 'Centre-Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-05', _1: 'Centre-Nord'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-06', _1: 'Centre-Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-07', _1: 'Centre-Sud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-08', _1: 'Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-09', _1: 'Hauts-Bassins'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-10', _1: 'Nord'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-11', _1: 'Plateau-Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-12', _1: 'Sahel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BF-13', _1: 'Sud-Ouest'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-01', _1: 'Blagoevgrad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-02', _1: 'Burgas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-08', _1: 'Dobrich'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-07', _1: 'Gabrovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-26', _1: 'Haskovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-09', _1: 'Kardzhali'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-10', _1: 'Kyustendil'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-11', _1: 'Lovech'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-12', _1: 'Montana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-13', _1: 'Pazardzhik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-14', _1: 'Pernik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-15', _1: 'Pleven'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-16', _1: 'Plovdiv'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-17', _1: 'Razgrad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-18', _1: 'Ruse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-27', _1: 'Shumen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-19', _1: 'Silistra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-20', _1: 'Sliven'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-21', _1: 'Smolyan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-23', _1: 'Sofia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-22', _1: 'Sofia (stolitsa)'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-24', _1: 'Stara Zagora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-25', _1: 'Targovishte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-03', _1: 'Varna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-04', _1: 'Veliko Tarnovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-05', _1: 'Vidin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-06', _1: 'Vratsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BG-28', _1: 'Yambol'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BH-13', _1: 'Al ‘Āşimah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BH-14', _1: 'Al Janūbīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BH-15', _1: 'Al Muḩarraq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BH-17', _1: 'Ash Shamālīyah'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'BI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-BB', _1: 'Bubanza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-BM', _1: 'Bujumbura Mairie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-BL', _1: 'Bujumbura Rural'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-BR', _1: 'Bururi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-CA', _1: 'Cankuzo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-CI', _1: 'Cibitoke'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-GI', _1: 'Gitega'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-KR', _1: 'Karuzi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-KY', _1: 'Kayanza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-KI', _1: 'Kirundo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-MA', _1: 'Makamba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-MU', _1: 'Muramvya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-MY', _1: 'Muyinga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-MW', _1: 'Mwaro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-NG', _1: 'Ngozi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-RM', _1: 'Rumonge'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-RT', _1: 'Rutana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BI-RY', _1: 'Ruyigi'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BJ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-AL', _1: 'Alibori'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-AK', _1: 'Atacora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-AQ', _1: 'Atlantique'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-BO', _1: 'Borgou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-CO', _1: 'Collines'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-KO', _1: 'Couffo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-DO', _1: 'Donga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-LI', _1: 'Littoral'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-MO', _1: 'Mono'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-OU', _1: 'Ouémé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-PL', _1: 'Plateau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BJ-ZO', _1: 'Zou'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BL': - return {ctor: '[]'}; - case 'BM': - return {ctor: '[]'}; - case 'BN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BN-BE', _1: 'Belait'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BN-BM', _1: 'Brunei-Muara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BN-TE', _1: 'Temburong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BN-TU', _1: 'Tutong'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'BO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-C', _1: 'Cochabamba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-H', _1: 'Chuquisaca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-B', _1: 'El Beni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-L', _1: 'La Paz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-O', _1: 'Oruro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-N', _1: 'Pando'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-P', _1: 'Potosí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-S', _1: 'Santa Cruz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BO-T', _1: 'Tarija'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'BQ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BQ-BO', _1: 'Bonaire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BQ-SA', _1: 'Saba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BQ-SE', _1: 'Sint Eustatius'}, - _1: {ctor: '[]'} - } - } - }; - case 'BR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-DF', _1: 'Distrito Federal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-AC', _1: 'Acre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-AL', _1: 'Alagoas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-AP', _1: 'Amapá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-AM', _1: 'Amazonas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-BA', _1: 'Bahia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-CE', _1: 'Ceará'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-ES', _1: 'Espírito Santo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-GO', _1: 'Goiás'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-MA', _1: 'Maranhão'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-MT', _1: 'Mato Grosso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-MS', _1: 'Mato Grosso do Sul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-MG', _1: 'Minas Gerais'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-PA', _1: 'Pará'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-PB', _1: 'Paraíba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-PR', _1: 'Paraná'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-PE', _1: 'Pernambuco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-PI', _1: 'Piauí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-RJ', _1: 'Rio de Janeiro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-RN', _1: 'Rio Grande do Norte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-RS', _1: 'Rio Grande do Sul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-RO', _1: 'Rondônia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-RR', _1: 'Roraima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-SC', _1: 'Santa Catarina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-SP', _1: 'São Paulo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-SE', _1: 'Sergipe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BR-TO', _1: 'Tocantins'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-AK', _1: 'Acklins'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-BY', _1: 'Berry Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-BI', _1: 'Bimini'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-BP', _1: 'Black Point'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-CI', _1: 'Cat Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-CO', _1: 'Central Abaco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-CS', _1: 'Central Andros'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-CE', _1: 'Central Eleuthera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-FP', _1: 'City of Freeport'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-CK', _1: 'Crooked Island and Long Cay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-EG', _1: 'East Grand Bahama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-EX', _1: 'Exuma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-GC', _1: 'Grand Cay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-HI', _1: 'Harbour Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-HT', _1: 'Hope Town'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-IN', _1: 'Inagua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-LI', _1: 'Long Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-MC', _1: 'Mangrove Cay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-MG', _1: 'Mayaguana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-MI', _1: 'Moores Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-NO', _1: 'North Abaco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-NS', _1: 'North Andros'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-NE', _1: 'North Eleuthera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-RI', _1: 'Ragged Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-RC', _1: 'Rum Cay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-SS', _1: 'San Salvador'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-SO', _1: 'South Abaco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-SA', _1: 'South Andros'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-SE', _1: 'South Eleuthera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-SW', _1: 'Spanish Wells'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BS-WG', _1: 'West Grand Bahama'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-33', _1: 'Bumthang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-12', _1: 'Chhukha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-22', _1: 'Dagana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-GA', _1: 'Gasa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-13', _1: 'Ha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-44', _1: 'Lhuentse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-42', _1: 'Monggar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-11', _1: 'Paro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-43', _1: 'Pemagatshel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-23', _1: 'Punakha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-45', _1: 'Samdrup Jongkha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-14', _1: 'Samtse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-31', _1: 'Sarpang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-15', _1: 'Thimphu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-41', _1: 'Trashigang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-TY', _1: 'Trashi Yangtse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-32', _1: 'Trongsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-21', _1: 'Tsirang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-24', _1: 'Wangdue Phodrang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BT-34', _1: 'Zhemgang'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BV': - return {ctor: '[]'}; - case 'BW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-CE', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-CH', _1: 'Chobe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-FR', _1: 'Francistown'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-GA', _1: 'Gaborone'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-GH', _1: 'Ghanzi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-JW', _1: 'Jwaneng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-KG', _1: 'Kgalagadi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-KL', _1: 'Kgatleng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-KW', _1: 'Kweneng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-LO', _1: 'Lobatse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-NE', _1: 'North East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-NW', _1: 'North West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-SP', _1: 'Selibe Phikwe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-SE', _1: 'South East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-SO', _1: 'Southern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BW-ST', _1: 'Sowa Town'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'BY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-BR', _1: 'Brestskaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-HO', _1: 'Homyel\'skaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-HR', _1: 'Hrodzenskaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-MA', _1: 'Mahilyowskaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-MI', _1: 'Minskaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-VI', _1: 'Vitsyebskaya voblasts\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BY-HM', _1: 'Horad Minsk'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'BZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-BZ', _1: 'Belize'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-CY', _1: 'Cayo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-CZL', _1: 'Corozal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-OW', _1: 'Orange Walk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-SC', _1: 'Stann Creek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'BZ-TOL', _1: 'Toledo'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'CA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-AB', _1: 'Alberta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-BC', _1: 'British Columbia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-MB', _1: 'Manitoba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-NB', _1: 'New Brunswick'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-NL', _1: 'Newfoundland and Labrador'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-NS', _1: 'Nova Scotia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-ON', _1: 'Ontario'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-PE', _1: 'Prince Edward Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-QC', _1: 'Quebec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-SK', _1: 'Saskatchewan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-NT', _1: 'Northwest Territories'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-NU', _1: 'Nunavut'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CA-YT', _1: 'Yukon'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CC': - return {ctor: '[]'}; - case 'CD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KN', _1: 'Kinshasa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-BC', _1: 'Kongo Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-EQ', _1: 'Équateur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KE', _1: 'Kasaï-Oriental'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-MA', _1: 'Maniema'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-NK', _1: 'Nord-Kivu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-SK', _1: 'Sud-Kivu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-BU', _1: 'Bas-Uélé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-HK', _1: 'Haut-Katanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-HL', _1: 'Haut-Lomami'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-HU', _1: 'Haut-Uélé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-IT', _1: 'Ituri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KC', _1: 'Kasaï Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KG', _1: 'Kwango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KL', _1: 'Kwilu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-KS', _1: 'Kasaï'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-LO', _1: 'Lomami'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-LU', _1: 'Lualaba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-MN', _1: 'Mai-Ndombe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-MO', _1: 'Mongala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-NU', _1: 'Nord-Ubangi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-SA', _1: 'Sankuru'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-SU', _1: 'Sud-Ubangi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-TA', _1: 'Tanganyika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-TO', _1: 'Tshopo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CD-TU', _1: 'Tshuapa'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CF': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-BGF', _1: 'Bangui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-BB', _1: 'Bamingui-Bangoran'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-BK', _1: 'Basse-Kotto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-HK', _1: 'Haute-Kotto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-HM', _1: 'Haut-Mbomou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-HS', _1: 'Haute-Sangha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-KG', _1: 'Kémo-Gribingui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-LB', _1: 'Lobaye'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-MB', _1: 'Mbomou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-NM', _1: 'Nana-Mambéré'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-MP', _1: 'Ombella-Mpoko'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-UK', _1: 'Ouaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-AC', _1: 'Ouham'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-OP', _1: 'Ouham-Pendé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-VK', _1: 'Vakaga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-KB', _1: 'Gribingui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CF-SE', _1: 'Sangha'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-BZV', _1: 'Brazzaville'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-11', _1: 'Bouenza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-08 !', _1: 'Cuvette'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-15', _1: 'Cuvette-Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-05 !', _1: 'Kouilou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-02 !', _1: 'Lékoumou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-07 !', _1: 'Likouala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-09 !', _1: 'Niari'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-14', _1: 'Plateaux'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-16', _1: 'Pointe-Noire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-12', _1: 'Pool'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CG-13', _1: 'Sangha'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-AG', _1: 'Aargau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-AR', _1: 'Appenzell Ausserrhoden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-AI', _1: 'Appenzell Innerrhoden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-BL', _1: 'Basel-Landschaft'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-BS', _1: 'Basel-Stadt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-BE', _1: 'Bern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-FR', _1: 'Fribourg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-GE', _1: 'Genève'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-GL', _1: 'Glarus'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-GR', _1: 'Graubünden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-JU', _1: 'Jura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-LU', _1: 'Luzern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-NE', _1: 'Neuchâtel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-NW', _1: 'Nidwalden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-OW', _1: 'Obwalden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-SG', _1: 'Sankt Gallen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-SH', _1: 'Schaffhausen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-SZ', _1: 'Schwyz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-SO', _1: 'Solothurn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-TG', _1: 'Thurgau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-TI', _1: 'Ticino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-UR', _1: 'Uri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-VS', _1: 'Valais'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-VD', _1: 'Vaud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-ZG', _1: 'Zug'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CH-ZH', _1: 'Zürich'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-AB', _1: 'Abidjan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-BS', _1: 'Bas-Sassandra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-CM', _1: 'Comoé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-DN', _1: 'Denguélé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-GD', _1: 'Gôh-Djiboua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-LC', _1: 'Lacs'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-LG', _1: 'Lagunes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-MG', _1: 'Montagnes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-SM', _1: 'Sassandra-Marahoué'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-SV', _1: 'Savanes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-VB', _1: 'Vallée du Bandama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-WR', _1: 'Woroba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-YM', _1: 'Yamoussoukro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CI-ZZ', _1: 'Zanzan'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CK': - return {ctor: '[]'}; - case 'CL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-AI', _1: 'Aysén'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-AN', _1: 'Antofagasta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-AR', _1: 'Araucanía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-AP', _1: 'Arica y Parinacota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-AT', _1: 'Atacama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-BI', _1: 'Biobío'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-CO', _1: 'Coquimbo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-LI', _1: 'Libertador General Bernardo O\'Higgins'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-LL', _1: 'Los Lagos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-LR', _1: 'Los Ríos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-MA', _1: 'Magallanes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-ML', _1: 'Maule'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-RM', _1: 'Región Metropolitana de Santiago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-TA', _1: 'Tarapacá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CL-VS', _1: 'Valparaíso'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-AD', _1: 'Adamaoua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-CE', _1: 'Centre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-ES', _1: 'East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-EN', _1: 'Far North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-LT', _1: 'Littoral'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-NO', _1: 'North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-NW', _1: 'North-West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-SU', _1: 'South'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-SW', _1: 'South-West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CM-OU', _1: 'West'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'CN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-11', _1: 'Beijing'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-12', _1: 'Tianjin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-13', _1: 'Hebei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-14', _1: 'Shanxi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-15', _1: 'Nei Mongol'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-21', _1: 'Liaoning'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-22', _1: 'Jilin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-23', _1: 'Heilongjiang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-31', _1: 'Shanghai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-32', _1: 'Jiangsu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-33', _1: 'Zhejiang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-34', _1: 'Anhui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-35', _1: 'Fujian'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-36', _1: 'Jiangxi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-37', _1: 'Shandong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-41', _1: 'Henan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-42', _1: 'Hubei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-43', _1: 'Hunan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-44', _1: 'Guangdong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-45', _1: 'Guangxi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-46', _1: 'Hainan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-50', _1: 'Chongqing'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-51', _1: 'Sichuan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-52', _1: 'Guizhou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-53', _1: 'Yunnan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-54', _1: 'Xizang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-61', _1: 'Shaanxi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-62', _1: 'Gansu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-63', _1: 'Qinghai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-64', _1: 'Ningxia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-65', _1: 'Xinjiang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-71', _1: 'Taiwan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-91', _1: 'Hong Kong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CN-92', _1: 'Macao'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-DC', _1: 'Distrito Capital de Bogotá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-AMA', _1: 'Amazonas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-ANT', _1: 'Antioquia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-ARA', _1: 'Arauca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-ATL', _1: 'Atlántico'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-BOL', _1: 'Bolívar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-BOY', _1: 'Boyacá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CAL', _1: 'Caldas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CAQ', _1: 'Caquetá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CAS', _1: 'Casanare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CAU', _1: 'Cauca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CES', _1: 'Cesar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-COR', _1: 'Córdoba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CUN', _1: 'Cundinamarca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-CHO', _1: 'Chocó'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-GUA', _1: 'Guainía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-GUV', _1: 'Guaviare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-HUI', _1: 'Huila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-LAG', _1: 'La Guajira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-MAG', _1: 'Magdalena'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-MET', _1: 'Meta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-NAR', _1: 'Nariño'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-NSA', _1: 'Norte de Santander'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-PUT', _1: 'Putumayo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-QUI', _1: 'Quindío'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-RIS', _1: 'Risaralda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-SAP', _1: 'San Andrés, Providencia y Santa Catalina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-SAN', _1: 'Santander'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-SUC', _1: 'Sucre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-TOL', _1: 'Tolima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-VAC', _1: 'Valle del Cauca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-VAU', _1: 'Vaupés'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CO-VID', _1: 'Vichada'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CP': - return {ctor: '[]'}; - case 'CR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-A', _1: 'Alajuela'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-C', _1: 'Cartago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-G', _1: 'Guanacaste'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-H', _1: 'Heredia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-L', _1: 'Limón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-P', _1: 'Puntarenas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CR-SJ', _1: 'San José'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'CU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-15', _1: 'Artemisa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-09', _1: 'Camagüey'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-08', _1: 'Ciego de Ávila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-06', _1: 'Cienfuegos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-12', _1: 'Granma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-14', _1: 'Guantánamo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-11', _1: 'Holguín'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-03', _1: 'La Habana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-10', _1: 'Las Tunas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-04', _1: 'Matanzas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-16', _1: 'Mayabeque'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-01', _1: 'Pinar del Río'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-07', _1: 'Sancti Spíritus'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-13', _1: 'Santiago de Cuba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-05', _1: 'Villa Clara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CU-99', _1: 'Isla de la Juventud'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'CV': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CV-B', _1: 'Ilhas de Barlavento'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CV-S', _1: 'Ilhas de Sotavento'}, - _1: {ctor: '[]'} - } - }; - case 'CW': - return {ctor: '[]'}; - case 'CX': - return {ctor: '[]'}; - case 'CY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-04', _1: 'Famagusta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-06', _1: 'Kyrenia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-03', _1: 'Larnaca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-01', _1: 'Nicosia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-02', _1: 'Limassol'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CY-05', _1: 'Paphos'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'CZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-31', _1: 'Jihočeský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-64', _1: 'Jihomoravský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-41', _1: 'Karlovarský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-52', _1: 'Královéhradecký kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-51', _1: 'Liberecký kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-80', _1: 'Moravskoslezský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-71', _1: 'Olomoucký kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-53', _1: 'Pardubický kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-32', _1: 'Plzeňský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-10', _1: 'Praha, hlavní město'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-20', _1: 'Středočeský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-42', _1: 'Ústecký kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-63', _1: 'Vysočina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'CZ-72', _1: 'Zlínský kraj'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'DE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-BW', _1: 'Baden-Württemberg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-BY', _1: 'Bayern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-BE', _1: 'Berlin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-BB', _1: 'Brandenburg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-HB', _1: 'Bremen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-HH', _1: 'Hamburg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-HE', _1: 'Hessen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-MV', _1: 'Mecklenburg-Vorpommern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-NI', _1: 'Niedersachsen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-NW', _1: 'Nordrhein-Westfalen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-RP', _1: 'Rheinland-Pfalz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-SL', _1: 'Saarland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-SN', _1: 'Sachsen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-ST', _1: 'Sachsen-Anhalt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-SH', _1: 'Schleswig-Holstein'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DE-TH', _1: 'Thüringen'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'DG': - return {ctor: '[]'}; - case 'DJ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-AS', _1: 'Ali Sabieh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-AR', _1: 'Arta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-DI', _1: 'Dikhil'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-OB', _1: 'Obock'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-TA', _1: 'Tadjourah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DJ-DJ', _1: 'Djibouti'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'DK': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DK-84', _1: 'Hovedstaden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DK-82', _1: 'Midtjylland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DK-81', _1: 'Nordjylland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DK-85', _1: 'Sjælland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DK-83', _1: 'Syddanmark'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'DM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-02', _1: 'Saint Andrew'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-03', _1: 'Saint David'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-04', _1: 'Saint George'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-05', _1: 'Saint John'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-06', _1: 'Saint Joseph'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-07', _1: 'Saint Luke'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-08', _1: 'Saint Mark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-09', _1: 'Saint Patrick'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-10', _1: 'Saint Paul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DM-11', _1: 'Saint Peter'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'DO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-33', _1: 'Distrito Nacional'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-40', _1: 'Azua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-41', _1: 'Baoruco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-38', _1: 'Barahona'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-38', _1: 'Dajabón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-34', _1: 'Duarte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-33', _1: 'El Seibo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-42', _1: 'Espaillat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-35', _1: 'Hato Mayor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-39', _1: 'Independencia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-38', _1: 'La Altagracia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-42', _1: 'Elías Piña'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-37', _1: 'La Romana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-42', _1: 'La Vega'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-36', _1: 'María Trinidad Sánchez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-33', _1: 'Monseñor Nouel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-36', _1: 'Monte Cristi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-34', _1: 'Monte Plata'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-39', _1: 'Pedernales'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-38', _1: 'Peravia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-41', _1: 'Puerto Plata'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-35', _1: 'Hermanas Mirabal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-33', _1: 'Samaná'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-33', _1: 'San Cristóbal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-41', _1: 'San José de Ocoa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-41', _1: 'San Juan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-37', _1: 'San Pedro de Macorís'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-39', _1: 'Sánchez Ramírez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-36', _1: 'Santiago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-35', _1: 'Santiago Rodríguez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-34', _1: 'Santo Domingo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DO-40', _1: 'Valverde'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'DZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-01', _1: 'Adrar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-44', _1: 'Aïn Defla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-46', _1: 'Aïn Témouchent'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-16', _1: 'Alger'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-23', _1: 'Annaba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-05', _1: 'Batna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-08', _1: 'Béchar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-06', _1: 'Béjaïa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-07', _1: 'Biskra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-09', _1: 'Blida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-34', _1: 'Bordj Bou Arréridj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-10', _1: 'Bouira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-35', _1: 'Boumerdès'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-02', _1: 'Chlef'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-25', _1: 'Constantine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-17', _1: 'Djelfa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-32', _1: 'El Bayadh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-39', _1: 'El Oued'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-36', _1: 'El Tarf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-47', _1: 'Ghardaïa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-24', _1: 'Guelma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-33', _1: 'Illizi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-18', _1: 'Jijel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-40', _1: 'Khenchela'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-03', _1: 'Laghouat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-28', _1: 'M\'sila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-29', _1: 'Mascara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-26', _1: 'Médéa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-43', _1: 'Mila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-27', _1: 'Mostaganem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-45', _1: 'Naama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-31', _1: 'Oran'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-30', _1: 'Ouargla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-04', _1: 'Oum el Bouaghi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-48', _1: 'Relizane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-20', _1: 'Saïda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-19', _1: 'Sétif'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-22', _1: 'Sidi Bel Abbès'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-21', _1: 'Skikda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-41', _1: 'Souk Ahras'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-11', _1: 'Tamanrasset'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-12', _1: 'Tébessa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-14', _1: 'Tiaret'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-37', _1: 'Tindouf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-42', _1: 'Tipaza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-38', _1: 'Tissemsilt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-15', _1: 'Tizi Ouzou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'DZ-13', _1: 'Tlemcen'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'EA': - return {ctor: '[]'}; - case 'EC': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-A', _1: 'Azuay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-B', _1: 'Bolívar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-F', _1: 'Cañar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-C', _1: 'Carchi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-H', _1: 'Chimborazo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-X', _1: 'Cotopaxi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-O', _1: 'El Oro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-E', _1: 'Esmeraldas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-W', _1: 'Galápagos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-G', _1: 'Guayas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-I', _1: 'Imbabura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-L', _1: 'Loja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-R', _1: 'Los Ríos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-M', _1: 'Manabí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-S', _1: 'Morona-Santiago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-N', _1: 'Napo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-D', _1: 'Orellana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-Y', _1: 'Pastaza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-P', _1: 'Pichincha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-SE', _1: 'Santa Elena'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-SD', _1: 'Santo Domingo de los Tsáchilas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-U', _1: 'Sucumbíos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-T', _1: 'Tungurahua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EC-Z', _1: 'Zamora-Chinchipe'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'EE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-37', _1: 'Harjumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-39', _1: 'Hiiumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-44', _1: 'Ida-Virumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-49', _1: 'Jõgevamaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-51', _1: 'Järvamaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-57', _1: 'Läänemaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-59', _1: 'Lääne-Virumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-65', _1: 'Põlvamaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-67', _1: 'Pärnumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-70', _1: 'Raplamaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-74', _1: 'Saaremaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-78', _1: 'Tartumaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-82', _1: 'Valgamaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-84', _1: 'Viljandimaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EE-86', _1: 'Võrumaa'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'EG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-DK', _1: 'Ad Daqahlīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-BA', _1: 'Al Baḩr al Aḩmar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-BH', _1: 'Al Buḩayrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-FYM', _1: 'Al Fayyūm'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-GH', _1: 'Al Gharbīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-ALX', _1: 'Al Iskandarīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-IS', _1: 'Al Ismāʿīlīyyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-GZ', _1: 'Al Jīzah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-MNF', _1: 'Al Minūfīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-MN', _1: 'Al Minyā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-C', _1: 'Al Qāhirah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-KB', _1: 'Al Qalyūbīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-LX', _1: 'Al Uqşur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-WAD', _1: 'Al Wādī al Jadīd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-SHR', _1: 'Ash Sharqīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-SUZ', _1: 'As Suways'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-ASN', _1: 'Aswān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-AST', _1: 'Asyūţ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-BNS', _1: 'Banī Suwayf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-PTS', _1: 'Būr Sa‘īd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-DT', _1: 'Dumyāţ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-JS', _1: 'Janūb Sīnā\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-KFS', _1: 'Kafr ash Shaykh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-MT', _1: 'Maţrūḩ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-KN', _1: 'Qinā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-SIN', _1: 'Shamāl Sīnā\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'EG-SHG', _1: 'Sūhāj'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'EH': - return {ctor: '[]'}; - case 'ER': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-MA', _1: 'Al Awsaţ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-DU', _1: 'Al Janūbĩ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-AN', _1: 'Ansabā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-DK', _1: 'Janūbī al Baḩrī al Aḩmar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-GB', _1: 'Qāsh-Barkah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ER-SK', _1: 'Shimālī al Baḩrī al Aḩmar'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'ES': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-AN', _1: 'Andalucía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-AR', _1: 'Aragón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-AS', _1: 'Asturias, Principado de'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CN', _1: 'Canarias'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CB', _1: 'Cantabria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CM', _1: 'Castilla-La Mancha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CL', _1: 'Castilla y León'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CT', _1: 'Catalunya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-EX', _1: 'Extremadura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-GA', _1: 'Galicia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-IB', _1: 'Illes Balears'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-RI', _1: 'La Rioja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-MD', _1: 'Madrid, Comunidad de'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-MC', _1: 'Murcia, Región de'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-NC', _1: 'Navarra, Comunidad Foral de'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-PV', _1: 'País Vasco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-VC', _1: 'Valenciana, Comunidad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-CE', _1: 'Ceuta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ES-ML', _1: 'Melilla'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'ET': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-AA', _1: 'Addis Ababa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-DD', _1: 'Dire Dawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-AF', _1: 'Afar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-AM', _1: 'Amara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-BE', _1: 'Benshangul-Gumaz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-GA', _1: 'Gambela Peoples'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-HA', _1: 'Harari People'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-OR', _1: 'Oromia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-SO', _1: 'Somali'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-TI', _1: 'Tigrai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ET-SN', _1: 'Southern Nations, Nationalities and Peoples'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'EU': - return {ctor: '[]'}; - case 'EZ': - return {ctor: '[]'}; - case 'FI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-01', _1: 'Ahvenanmaan maakunta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-02', _1: 'Etelä-Karjala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-03', _1: 'Etelä-Pohjanmaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-04', _1: 'Etelä-Savo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-05', _1: 'Kainuu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-06', _1: 'Kanta-Häme'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-07', _1: 'Keski-Pohjanmaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-08', _1: 'Keski-Suomi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-09', _1: 'Kymenlaakso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-10', _1: 'Lappi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-11', _1: 'Pirkanmaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-12', _1: 'Pohjanmaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-13', _1: 'Pohjois-Karjala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-14', _1: 'Pohjois-Pohjanmaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-15', _1: 'Pohjois-Savo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-16', _1: 'Päijät-Häme'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-17', _1: 'Satakunta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-18', _1: 'Uusimaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FI-19', _1: 'Varsinais-Suomi'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'FJ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FJ-C', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FJ-E', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FJ-N', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FJ-W', _1: 'Western'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FJ-R', _1: 'Rotuma'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'FK': - return {ctor: '[]'}; - case 'FM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FM-TRK', _1: 'Chuuk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FM-KSA', _1: 'Kosrae'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FM-PNI', _1: 'Pohnpei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FM-YAP', _1: 'Yap'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'FO': - return {ctor: '[]'}; - case 'FR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-ARA', _1: 'Auvergne-Rhône-Alpes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-BFC', _1: 'Bourgogne-Franche-Comté'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-BRE', _1: 'Bretagne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-CVL', _1: 'Centre-Val de Loire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-COR', _1: 'Corse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-GES', _1: 'Grand Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-HDF', _1: 'Hauts-de-France'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-IDF', _1: 'Île-de-France'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-NOR', _1: 'Normandie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-NAQ', _1: 'Nouvelle-Aquitaine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-OCC', _1: 'Occitanie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-PDL', _1: 'Pays de la Loire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'FR-PAC', _1: 'Provence-Alpes-Côte d\'Azur'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'GA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-1', _1: 'Estuaire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-2', _1: 'Haut-Ogooué'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-3', _1: 'Moyen-Ogooué'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-4', _1: 'Ngounié'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-5', _1: 'Nyanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-6', _1: 'Ogooué-Ivindo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-7', _1: 'Ogooué-Lolo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-8', _1: 'Ogooué-Maritime'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GA-9', _1: 'Woleu-Ntem'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'GB': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GB-ENG', _1: 'England'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GB-NIR', _1: 'Northern Ireland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GB-SCT', _1: 'Scotland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GB-WLS', _1: 'Wales'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'GD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-01', _1: 'Saint Andrew'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-02', _1: 'Saint David'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-03', _1: 'Saint George'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-04', _1: 'Saint John'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-05', _1: 'Saint Mark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-06', _1: 'Saint Patrick'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GD-10', _1: 'Southern Grenadine Islands'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'GE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-AB', _1: 'Abkhazia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-AJ', _1: 'Ajaria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-TB', _1: 'Tbilisi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-GU', _1: 'Guria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-IM', _1: 'Imereti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-KA', _1: 'K\'akheti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-KK', _1: 'Kvemo Kartli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-MM', _1: 'Mtskheta-Mtianeti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-RL', _1: 'Rach\'a-Lechkhumi-Kvemo Svaneti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-SZ', _1: 'Samegrelo-Zemo Svaneti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-SJ', _1: 'Samtskhe-Javakheti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GE-SK', _1: 'Shida Kartli'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'GF': - return {ctor: '[]'}; - case 'GG': - return {ctor: '[]'}; - case 'GH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-AH', _1: 'Ashanti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-BA', _1: 'Brong-Ahafo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-CP', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-EP', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-AA', _1: 'Greater Accra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-NP', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-UE', _1: 'Upper East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-UW', _1: 'Upper West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-TV', _1: 'Volta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GH-WP', _1: 'Western'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'GI': - return {ctor: '[]'}; - case 'GL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GL-KU', _1: 'Kommune Kujalleq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GL-SM', _1: 'Kommuneqarfik Sermersooq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GL-QA', _1: 'Qaasuitsup Kommunia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GL-QE', _1: 'Qeqqata Kommunia'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'GM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-B', _1: 'Banjul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-M', _1: 'Central River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-L', _1: 'Lower River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-N', _1: 'North Bank'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-U', _1: 'Upper River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GM-W', _1: 'Western'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'GN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-B', _1: 'Boké'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-F', _1: 'Faranah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-K', _1: 'Kankan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-D', _1: 'Kindia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-L', _1: 'Labé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-M', _1: 'Mamou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-N', _1: 'Nzérékoré'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GN-C', _1: 'Conakry'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'GP': - return {ctor: '[]'}; - case 'GQ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GQ-C', _1: 'Región Continental'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GQ-I', _1: 'Región Insular'}, - _1: {ctor: '[]'} - } - }; - case 'GR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-A', _1: 'Anatolikí Makedonía kai Thráki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-I', _1: 'Attikí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-G', _1: 'Dytikí Elláda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-C', _1: 'Dytikí Makedonía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-F', _1: 'Ionía Nísia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-D', _1: 'Ípeiros'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-B', _1: 'Kentrikí Makedonía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-M', _1: 'Krítí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-L', _1: 'Notío Aigaío'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-J', _1: 'Peloponnísos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-H', _1: 'Stereá Elláda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-E', _1: 'Thessalía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GR-K', _1: 'Voreío Aigaío'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'GS': - return {ctor: '[]'}; - case 'GT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-AV', _1: 'Alta Verapaz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-BV', _1: 'Baja Verapaz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-CM', _1: 'Chimaltenango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-CQ', _1: 'Chiquimula'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-PR', _1: 'El Progreso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-ES', _1: 'Escuintla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-GU', _1: 'Guatemala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-HU', _1: 'Huehuetenango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-IZ', _1: 'Izabal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-JA', _1: 'Jalapa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-JU', _1: 'Jutiapa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-PE', _1: 'Petén'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-QZ', _1: 'Quetzaltenango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-QC', _1: 'Quiché'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-RE', _1: 'Retalhuleu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-SA', _1: 'Sacatepéquez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-SM', _1: 'San Marcos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-SR', _1: 'Santa Rosa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-SO', _1: 'Sololá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-SU', _1: 'Suchitepéquez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-TO', _1: 'Totonicapán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GT-ZA', _1: 'Zacapa'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'GU': - return {ctor: '[]'}; - case 'GW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-L', _1: 'Bissau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-BA', _1: 'Bafatá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-BM', _1: 'Biombo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-BL', _1: 'Bolama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-CA', _1: 'Cacheu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-GA', _1: 'Gabú'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-OI', _1: 'Oio'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-QU', _1: 'Quinara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GW-TO', _1: 'Tombali'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'GY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-BA', _1: 'Barima-Waini'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-CU', _1: 'Cuyuni-Mazaruni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-DE', _1: 'Demerara-Mahaica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-EB', _1: 'East Berbice-Corentyne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-ES', _1: 'Essequibo Islands-West Demerara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-MA', _1: 'Mahaica-Berbice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-PM', _1: 'Pomeroon-Supenaam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-PT', _1: 'Potaro-Siparuni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-UD', _1: 'Upper Demerara-Berbice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'GY-UT', _1: 'Upper Takutu-Upper Essequibo'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'HK': - return {ctor: '[]'}; - case 'HM': - return {ctor: '[]'}; - case 'HN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-AT', _1: 'Atlántida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-CH', _1: 'Choluteca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-CL', _1: 'Colón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-CM', _1: 'Comayagua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-CP', _1: 'Copán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-CR', _1: 'Cortés'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-EP', _1: 'El Paraíso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-FM', _1: 'Francisco Morazán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-GD', _1: 'Gracias a Dios'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-IN', _1: 'Intibucá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-IB', _1: 'Islas de la Bahía'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-LP', _1: 'La Paz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-LE', _1: 'Lempira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-OC', _1: 'Ocotepeque'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-OL', _1: 'Olancho'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-SB', _1: 'Santa Bárbara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-VA', _1: 'Valle'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HN-YO', _1: 'Yoro'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'HR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-21', _1: 'Grad Zagreb'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-07', _1: 'Bjelovarsko-bilogorska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-12', _1: 'Brodsko-posavska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-19', _1: 'Dubrovačko-neretvanska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-18', _1: 'Istarska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-04', _1: 'Karlovačka županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-06', _1: 'Koprivničko-križevačka županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-02', _1: 'Krapinsko-zagorska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-09', _1: 'Ličko-senjska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-20', _1: 'Međimurska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-14', _1: 'Osječko-baranjska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-11', _1: 'Požeško-slavonska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-08', _1: 'Primorsko-goranska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-03', _1: 'Sisačko-moslavačka županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-17', _1: 'Splitsko-dalmatinska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-15', _1: 'Šibensko-kninska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-05', _1: 'Varaždinska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-10', _1: 'Virovitičko-podravska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-16', _1: 'Vukovarsko-srijemska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-13', _1: 'Zadarska županija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HR-01', _1: 'Zagrebačka županija'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'HT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-AR', _1: 'Artibonite'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-CE', _1: 'Centre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-GA', _1: 'Grand’Anse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-NI', _1: 'Nippes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-ND', _1: 'Nord'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-NE', _1: 'Nord-Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-NO', _1: 'Nord-Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-OU', _1: 'Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-SD', _1: 'Sud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HT-SE', _1: 'Sud-Est'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'HU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BU', _1: 'Budapest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BK', _1: 'Bács-Kiskun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BA', _1: 'Baranya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BE', _1: 'Békés'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BZ', _1: 'Borsod-Abaúj-Zemplén'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-CS', _1: 'Csongrád'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-FE', _1: 'Fejér'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-GS', _1: 'Győr-Moson-Sopron'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-HB', _1: 'Hajdú-Bihar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-HE', _1: 'Heves'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-JN', _1: 'Jász-Nagykun-Szolnok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-KE', _1: 'Komárom-Esztergom'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-NO', _1: 'Nógrád'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-PE', _1: 'Pest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SO', _1: 'Somogy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SZ', _1: 'Szabolcs-Szatmár-Bereg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-TO', _1: 'Tolna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-VA', _1: 'Vas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-VE', _1: 'Veszprém'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-ZA', _1: 'Zala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-BC', _1: 'Békéscsaba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-DE', _1: 'Debrecen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-DU', _1: 'Dunaújváros'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-EG', _1: 'Eger'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-ER', _1: 'Érd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-GY', _1: 'Győr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-HV', _1: 'Hódmezővásárhely'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-KV', _1: 'Kaposvár'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-KM', _1: 'Kecskemét'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-MI', _1: 'Miskolc'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-NK', _1: 'Nagykanizsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-NY', _1: 'Nyíregyháza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-PS', _1: 'Pécs'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-ST', _1: 'Salgótarján'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SN', _1: 'Sopron'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SD', _1: 'Szeged'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SF', _1: 'Székesfehérvár'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SS', _1: 'Szekszárd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SK', _1: 'Szolnok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-SH', _1: 'Szombathely'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-TB', _1: 'Tatabánya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-VM', _1: 'Veszprém'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'HU-ZE', _1: 'Zalaegerszeg'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'IC': - return {ctor: '[]'}; - case 'ID': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-JW', _1: 'Jawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-KA', _1: 'Kalimantan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-ML', _1: 'Maluku'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-NU', _1: 'Nusa Tenggara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-PP', _1: 'Papua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-SL', _1: 'Sulawesi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ID-SM', _1: 'Sumatera'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'IE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IE-C', _1: 'Connacht'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IE-L', _1: 'Leinster'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IE-M', _1: 'Munster'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IE-U', _1: 'Ulster'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'IL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-D', _1: 'מחוז הדרום'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-M', _1: 'מָחוֹז הַמֶרְכָּז'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-Z', _1: 'מחוז הצפון'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-HA', _1: 'מחוז חיפה'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-TA', _1: 'מָחוֹז תֵּל אָבִיב'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IL-JM', _1: 'מחוז ירושלים'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'IM': - return {ctor: '[]'}; - case 'IN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-AP', _1: 'Andhra Pradesh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-AR', _1: 'Arunachal Pradesh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-AS', _1: 'Assam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-BR', _1: 'Bihar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-CT', _1: 'Chhattisgarh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-GA', _1: 'Goa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-GJ', _1: 'Gujarat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-HR', _1: 'Haryana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-HP', _1: 'Himachal Pradesh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-JK', _1: 'Jammu and Kashmir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-JH', _1: 'Jharkhand'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-KA', _1: 'Karnataka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-KL', _1: 'Kerala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-MP', _1: 'Madhya Pradesh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-MH', _1: 'Maharashtra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-MN', _1: 'Manipur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-ML', _1: 'Meghalaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-MZ', _1: 'Mizoram'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-NL', _1: 'Nagaland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-OR', _1: 'Odisha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-PB', _1: 'Punjab'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-RJ', _1: 'Rajasthan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-SK', _1: 'Sikkim'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-TN', _1: 'Tamil Nadu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-TG', _1: 'Telangana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-TR', _1: 'Tripura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-UT', _1: 'Uttarakhand'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-UP', _1: 'Uttar Pradesh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-WB', _1: 'West Bengal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-AN', _1: 'Andaman and Nicobar Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-CH', _1: 'Chandigarh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-DN', _1: 'Dadra and Nagar Haveli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-DD', _1: 'Daman and Diu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-DL', _1: 'Delhi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-LD', _1: 'Lakshadweep'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IN-PY', _1: 'Puducherry'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'IO': - return {ctor: '[]'}; - case 'IQ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-AN', _1: 'Al Anbār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-BA', _1: 'Al Başrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-MU', _1: 'Al Muthanná'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-QA', _1: 'Al Qādisīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-NA', _1: 'An Najaf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-AR', _1: 'Arbīl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-SU', _1: 'As Sulaymānīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-BB', _1: 'Bābil'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-BG', _1: 'Baghdād'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-DA', _1: 'Dahūk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-DQ', _1: 'Dhī Qār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-DI', _1: 'Diyālá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-KA', _1: 'Karbalā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-KI', _1: 'Kirkūk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-MA', _1: 'Maysān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-NI', _1: 'Nīnawá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-SD', _1: 'Şalāḩ ad Dīn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IQ-WA', _1: 'Wāsiţ'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'IR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-32', _1: 'Alborz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-03', _1: 'Ardabīl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-02', _1: 'Āz̄arbāyjān-e Gharbī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-01', _1: 'Āz̄arbāyjān-e Sharqī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-06', _1: 'Būshehr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-08', _1: 'Chahār Maḩāl va Bakhtīārī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-04', _1: 'Eşfahān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-14', _1: 'Fārs'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-19', _1: 'Gīlān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-27', _1: 'Golestān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-24', _1: 'Hamadān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-23', _1: 'Hormozgān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-05', _1: 'Īlām'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-15', _1: 'Kermān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-17', _1: 'Kermānshāh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-29', _1: 'Khorāsān-e Jonūbī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-30', _1: 'Khorāsān-e Raẕavī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-31', _1: 'Khorāsān-e Shomālī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-10', _1: 'Khūzestān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-18', _1: 'Kohgīlūyeh va Bowyer Aḩmad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-16', _1: 'Kordestān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-20', _1: 'Lorestān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-22', _1: 'Markazī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-21', _1: 'Māzandarān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-28', _1: 'Qazvīn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-26', _1: 'Qom'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-12', _1: 'Semnān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-13', _1: 'Sīstān va Balūchestān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-07', _1: 'Tehrān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-25', _1: 'Yazd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IR-11', _1: 'Zanjān'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'IS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-1', _1: 'Höfuðborgarsvæði utan Reykjavíkur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-2', _1: 'Suðurnes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-3', _1: 'Vesturland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-4', _1: 'Vestfirðir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-5', _1: 'Norðurland vestra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-6', _1: 'Norðurland eystra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-7', _1: 'Austurland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IS-8', _1: 'Suðurland'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'IT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-65', _1: 'Abruzzo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-77', _1: 'Basilicata'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-78', _1: 'Calabria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-72', _1: 'Campania'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-45', _1: 'Emilia-Romagna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-36', _1: 'Friuli-Venezia Giulia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-62', _1: 'Lazio'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-42', _1: 'Liguria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-25', _1: 'Lombardia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-57', _1: 'Marche'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-67', _1: 'Molise'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-21', _1: 'Piemonte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-75', _1: 'Puglia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-88', _1: 'Sardegna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-82', _1: 'Sicilia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-52', _1: 'Toscana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-32', _1: 'Trentino-Alto Adige'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-55', _1: 'Umbria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-23', _1: 'Valle d\'Aosta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'IT-34', _1: 'Veneto'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'JE': - return {ctor: '[]'}; - case 'JM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-13', _1: 'Clarendon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-09', _1: 'Hanover'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-01', _1: 'Kingston'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-12', _1: 'Manchester'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-04', _1: 'Portland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-02', _1: 'Saint Andrew'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-06', _1: 'Saint Ann'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-14', _1: 'Saint Catherine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-11', _1: 'Saint Elizabeth'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-08', _1: 'Saint James'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-05', _1: 'Saint Mary'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-03', _1: 'Saint Thomas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-07', _1: 'Trelawny'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JM-10', _1: 'Westmoreland'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'JO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-AJ', _1: '‘Ajlūn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-AQ', _1: 'Al ‘Aqabah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-BA', _1: 'Al Balqā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-KA', _1: 'Al Karak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-MA', _1: 'Al Mafraq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-AM', _1: 'Al ‘A̅şimah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-AT', _1: 'Aţ Ţafīlah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-AZ', _1: 'Az Zarqā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-IR', _1: 'Irbid'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-JA', _1: 'Jarash'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-MN', _1: 'Ma‘ān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JO-MD', _1: 'Mādabā'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'JP': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-23', _1: 'Aiti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-05', _1: 'Akita'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-02', _1: 'Aomori'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-38', _1: 'Ehime'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-21', _1: 'Gihu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-10', _1: 'Gunma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-34', _1: 'Hirosima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-01', _1: 'Hokkaidô'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-18', _1: 'Hukui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-40', _1: 'Hukuoka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-07', _1: 'Hukusima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-28', _1: 'Hyôgo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-08', _1: 'Ibaraki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-17', _1: 'Isikawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-03', _1: 'Iwate'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-37', _1: 'Kagawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-46', _1: 'Kagosima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-14', _1: 'Kanagawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-39', _1: 'Kôti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-43', _1: 'Kumamoto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-26', _1: 'Kyôto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-24', _1: 'Mie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-04', _1: 'Miyagi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-45', _1: 'Miyazaki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-20', _1: 'Nagano'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-42', _1: 'Nagasaki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-29', _1: 'Nara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-15', _1: 'Niigata'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-44', _1: 'Ôita'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-33', _1: 'Okayama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-47', _1: 'Okinawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-27', _1: 'Ôsaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-41', _1: 'Saga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-11', _1: 'Saitama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-25', _1: 'Siga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-32', _1: 'Simane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-22', _1: 'Sizuoka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-12', _1: 'Tiba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-09', _1: 'Totigi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-36', _1: 'Tokusima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-13', _1: 'Tôkyô'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-31', _1: 'Tottori'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-16', _1: 'Toyama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-30', _1: 'Wakayama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-06', _1: 'Yamagata'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-35', _1: 'Yamaguti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'JP-19', _1: 'Yamanasi'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'KE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-01', _1: 'Baringo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-02', _1: 'Bomet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-03', _1: 'Bungoma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-04', _1: 'Busia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-05', _1: 'Elgeyo/Marakwet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-06', _1: 'Embu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-07', _1: 'Garissa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-08', _1: 'Homa Bay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-09', _1: 'Isiolo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-10', _1: 'Kajiado'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-11', _1: 'Kakamega'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-12', _1: 'Kericho'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-13', _1: 'Kiambu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-14', _1: 'Kilifi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-15', _1: 'Kirinyaga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-16', _1: 'Kisii'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-17', _1: 'Kisumu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-18', _1: 'Kitui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-19', _1: 'Kwale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-20', _1: 'Laikipia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-21', _1: 'Lamu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-22', _1: 'Machakos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-23', _1: 'Makueni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-24', _1: 'Mandera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-25', _1: 'Marsabit'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-26', _1: 'Meru'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-27', _1: 'Migori'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-28', _1: 'Mombasa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-29', _1: 'Murang\'a'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-30', _1: 'Nairobi City'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-31', _1: 'Nakuru'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-32', _1: 'Nandi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-33', _1: 'Narok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-34', _1: 'Nyamira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-35', _1: 'Nyandarua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-36', _1: 'Nyeri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-37', _1: 'Samburu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-38', _1: 'Siaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-39', _1: 'Taita/Taveta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-40', _1: 'Tana River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-41', _1: 'Tharaka-Nithi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-42', _1: 'Trans Nzoia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-43', _1: 'Turkana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-44', _1: 'Uasin Gishu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-45', _1: 'Vihiga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-46', _1: 'Wajir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KE-47', _1: 'West Pokot'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'KG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-GB', _1: 'Bishkek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-GO', _1: 'Osh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-B', _1: 'Batken'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-C', _1: 'Chü'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-J', _1: 'Jalal-Abad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-N', _1: 'Naryn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-O', _1: 'Osh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-T', _1: 'Talas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KG-Y', _1: 'Ysyk-Köl'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'KH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-12', _1: 'Phnom Penh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-02 !', _1: 'Baat Dambang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-01 !', _1: 'Banteay Mean Chey'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-03 !', _1: 'Kampong Chaam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-04 !', _1: 'Kampong Chhnang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-05 !', _1: 'Kampong Spueu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-06 !', _1: 'Kampong Thum'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-07 !', _1: 'Kampot'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-08 !', _1: 'Kandaal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-09 !', _1: 'Kaoh Kong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-10', _1: 'Kracheh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-23', _1: 'Krong Kaeb'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-24', _1: 'Krong Pailin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-18', _1: 'Krong Preah Sihanouk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-11', _1: 'Mondol Kiri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-22', _1: 'Otdar Mean Chey'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-15', _1: 'Pousaat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-13', _1: 'Preah Vihear'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-14', _1: 'Prey Veaeng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-16', _1: 'Rotanak Kiri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-17', _1: 'Siem Reab'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-19', _1: 'Stueng Traeng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-20', _1: 'Svaay Rieng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-21', _1: 'Taakaev'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KH-25', _1: 'Tbong Khmum'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'KI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KI-G', _1: 'Gilbert Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KI-L', _1: 'Line Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KI-P', _1: 'Phoenix Islands'}, - _1: {ctor: '[]'} - } - } - }; - case 'KM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KM-G', _1: 'Grande Comore'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KM-A', _1: 'Anjouan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KM-M', _1: 'Mohéli'}, - _1: {ctor: '[]'} - } - } - }; - case 'KN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KN-K', _1: 'Saint Kitts'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KN-N', _1: 'Nevis'}, - _1: {ctor: '[]'} - } - }; - case 'KP': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-01', _1: 'Pyongyang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-13', _1: 'Rason'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-02', _1: 'South Pyongan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-03', _1: 'North Pyongan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-04', _1: 'Chagang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-05', _1: 'South Hwanghae'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-06', _1: 'North Hwanghae'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-07', _1: 'Kangwon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-08', _1: 'South Hamgyong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-09', _1: 'North Hamgyong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KP-10', _1: 'Ryanggang'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'KR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-11', _1: 'Seoul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-26', _1: 'Busan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-27', _1: 'Daegu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-30', _1: 'Daejeon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-29', _1: 'Gwangju'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-28', _1: 'Incheon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-31', _1: 'Ulsan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-50', _1: 'Sejong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-43', _1: 'North Chungcheong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-44', _1: 'South Chungcheong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-42', _1: 'Gangwon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-41', _1: 'Gyeonggi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-47', _1: 'North Gyeongsang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-48', _1: 'South Gyeongsang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-45', _1: 'North Jeolla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-46', _1: 'South Jeolla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KR-49', _1: 'Jeju'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'KW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-AH', _1: 'Al Aḩmadi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-FA', _1: 'Al Farwānīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-JA', _1: 'Al Jahrā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-KU', _1: 'Al ‘Āşimah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-HA', _1: 'Ḩawallī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KW-MU', _1: 'Mubārak al Kabīr'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'KY': - return {ctor: '[]'}; - case 'KZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-ALA', _1: 'Almaty'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-AST', _1: 'Astana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-ALM', _1: 'Almaty oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-AKM', _1: 'Aqmola oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-AKT', _1: 'Aqtöbe oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-ATY', _1: 'Atyraū oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-BAY', _1: 'Bayqongyr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-ZAP', _1: 'Batys Qazaqstan oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-MAN', _1: 'Mangghystaū oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-YUZ', _1: 'Ongtüstik Qazaqstan oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-PAV', _1: 'Pavlodar oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-KAR', _1: 'Qaraghandy oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-KUS', _1: 'Qostanay oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-KZY', _1: 'Qyzylorda oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-VOS', _1: 'Shyghys Qazaqstan oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-SEV', _1: 'Soltüstik Qazaqstan oblysy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'KZ-ZHA', _1: 'Zhambyl oblysy'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'LA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-VT', _1: 'Vientiane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-AT', _1: 'Attapu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-BK', _1: 'Bokèo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-BL', _1: 'Bolikhamsai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-CH', _1: 'Champasak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-HO', _1: 'Houaphan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-KH', _1: 'Khammouan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-LM', _1: 'Louang Namtha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-LP', _1: 'Louangphabang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-OU', _1: 'Oudômxai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-PH', _1: 'Phôngsali'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-SL', _1: 'Salavan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-SV', _1: 'Savannakhét'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-VI', _1: 'Vientiane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-XA', _1: 'Xaignabouli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-XE', _1: 'Xékong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-XI', _1: 'Xiangkhouang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LA-XS', _1: 'Xaisômboun'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'LB': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-AK', _1: 'Aakkâr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-BH', _1: 'Baalbek-Hermel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-BI', _1: 'Béqaa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-BA', _1: 'Beyrouth'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-AS', _1: 'Liban-Nord'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-JA', _1: 'Liban-Sud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-JL', _1: 'Mont-Liban'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LB-NA', _1: 'Nabatîyé'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'LC': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-01', _1: 'Anse la Raye'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-12', _1: 'Canaries'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-02', _1: 'Castries'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-03', _1: 'Choiseul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-05', _1: 'Dennery'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-06', _1: 'Gros Islet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-07', _1: 'Laborie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-08', _1: 'Micoud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-10', _1: 'Soufrière'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LC-11', _1: 'Vieux Fort'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'LI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-01', _1: 'Balzers'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-02', _1: 'Eschen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-03', _1: 'Gamprin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-04', _1: 'Mauren'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-05', _1: 'Planken'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-06', _1: 'Ruggell'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-07', _1: 'Schaan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-08', _1: 'Schellenberg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-09', _1: 'Triesen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-10', _1: 'Triesenberg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LI-11', _1: 'Vaduz'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'LK': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-1', _1: 'Western Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-2', _1: 'Central Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-3', _1: 'Southern Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-4', _1: 'Northern Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-5', _1: 'Eastern Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-6', _1: 'North Western Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-7', _1: 'North Central Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-8', _1: 'Uva Province'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LK-9', _1: 'Sabaragamuwa Province'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'LR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-BM', _1: 'Bomi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-BG', _1: 'Bong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-GP', _1: 'Gbarpolu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-GB', _1: 'Grand Bassa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-CM', _1: 'Grand Cape Mount'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-GG', _1: 'Grand Gedeh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-GK', _1: 'Grand Kru'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-LO', _1: 'Lofa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-MG', _1: 'Margibi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-MY', _1: 'Maryland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-MO', _1: 'Montserrado'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-NI', _1: 'Nimba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-RI', _1: 'River Cess'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-RG', _1: 'River Gee'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LR-SI', _1: 'Sinoe'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'LS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-D', _1: 'Berea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-B', _1: 'Butha-Buthe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-C', _1: 'Leribe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-E', _1: 'Mafeteng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-A', _1: 'Maseru'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-F', _1: 'Mohale\'s Hoek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-J', _1: 'Mokhotlong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-H', _1: 'Qacha\'s Nek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-G', _1: 'Quthing'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LS-K', _1: 'Thaba-Tseka'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'LT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-AL', _1: 'Alytaus Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-KU', _1: 'Kauno Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-KL', _1: 'Klaipėdos Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-MR', _1: 'Marijampolės Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-PN', _1: 'Panevėžio Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-SA', _1: 'Šiaulių Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-TA', _1: 'Tauragės Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-TE', _1: 'Telšių Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-UT', _1: 'Utenos Apskritis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LT-VL', _1: 'Vilniaus Apskritis'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'LU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-CA', _1: 'Capellen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-CL', _1: 'Clervaux'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-DI', _1: 'Diekirch'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-EC', _1: 'Echternach'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-ES', _1: 'Esch-sur-Alzette'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-GR', _1: 'Grevenmacher'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-LU', _1: 'Luxembourg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-ME', _1: 'Mersch'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-RD', _1: 'Redange'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-RM', _1: 'Remich'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-VD', _1: 'Vianden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LU-WI', _1: 'Wiltz'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'LV': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-001', _1: 'Aglonas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-002', _1: 'Aizkraukles novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-003', _1: 'Aizputes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-004', _1: 'Aknīstes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-005', _1: 'Alojas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-006', _1: 'Alsungas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-007', _1: 'Alūksnes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-008', _1: 'Amatas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-009', _1: 'Apes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-010', _1: 'Auces novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-011', _1: 'Ādažu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-012', _1: 'Babītes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-013', _1: 'Baldones novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-014', _1: 'Baltinavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-015', _1: 'Balvu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-016', _1: 'Bauskas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-017', _1: 'Beverīnas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-018', _1: 'Brocēnu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-019', _1: 'Burtnieku novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-020', _1: 'Carnikavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-021', _1: 'Cesvaines novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-022', _1: 'Cēsu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-023', _1: 'Ciblas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-024', _1: 'Dagdas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-025', _1: 'Daugavpils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-026', _1: 'Dobeles novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-027', _1: 'Dundagas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-028', _1: 'Durbes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-029', _1: 'Engures novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-030', _1: 'Ērgļu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-031', _1: 'Garkalnes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-032', _1: 'Grobiņas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-033', _1: 'Gulbenes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-034', _1: 'Iecavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-035', _1: 'Ikšķiles novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-036', _1: 'Ilūkstes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-037', _1: 'Inčukalna novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-038', _1: 'Jaunjelgavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-039', _1: 'Jaunpiebalgas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-040', _1: 'Jaunpils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-041', _1: 'Jelgavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-042', _1: 'Jēkabpils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-043', _1: 'Kandavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-044', _1: 'Kārsavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-045', _1: 'Kocēnu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-046', _1: 'Kokneses novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-047', _1: 'Krāslavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-048', _1: 'Krimuldas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-049', _1: 'Krustpils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-050', _1: 'Kuldīgas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-051', _1: 'Ķeguma novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-052', _1: 'Ķekavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-053', _1: 'Lielvārdes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-054', _1: 'Limbažu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-055', _1: 'Līgatnes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-056', _1: 'Līvānu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-057', _1: 'Lubānas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-058', _1: 'Ludzas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-059', _1: 'Madonas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-060', _1: 'Mazsalacas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-061', _1: 'Mālpils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-062', _1: 'Mārupes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-063', _1: 'Mērsraga novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-064', _1: 'Naukšēnu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-065', _1: 'Neretas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-066', _1: 'Nīcas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-067', _1: 'Ogres novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-068', _1: 'Olaines novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-069', _1: 'Ozolnieku novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-070', _1: 'Pārgaujas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-071', _1: 'Pāvilostas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-072', _1: 'Pļaviņu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-073', _1: 'Preiļu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-074', _1: 'Priekules novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-075', _1: 'Priekuļu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-076', _1: 'Raunas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-077', _1: 'Rēzeknes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-078', _1: 'Riebiņu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-079', _1: 'Rojas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-080', _1: 'Ropažu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-081', _1: 'Rucavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-082', _1: 'Rugāju novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-083', _1: 'Rundāles novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-084', _1: 'Rūjienas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-085', _1: 'Salas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-086', _1: 'Salacgrīvas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-087', _1: 'Salaspils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-088', _1: 'Saldus novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-089', _1: 'Saulkrastu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-090', _1: 'Sējas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-091', _1: 'Siguldas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-092', _1: 'Skrīveru novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-093', _1: 'Skrundas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-094', _1: 'Smiltenes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-095', _1: 'Stopiņu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-096', _1: 'Strenču novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-097', _1: 'Talsu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-098', _1: 'Tērvetes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-099', _1: 'Tukuma novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-100', _1: 'Vaiņodes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-101', _1: 'Valkas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-102', _1: 'Varakļānu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-103', _1: 'Vārkavas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-104', _1: 'Vecpiebalgas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-105', _1: 'Vecumnieku novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-106', _1: 'Ventspils novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-107', _1: 'Viesītes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-108', _1: 'Viļakas novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-109', _1: 'Viļānu novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-110', _1: 'Zilupes novads'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-DGV', _1: 'Daugavpils'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-JEL', _1: 'Jelgava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-JKB', _1: 'Jēkabpils'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-JUR', _1: 'Jūrmala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-LPX', _1: 'Liepāja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-REZ', _1: 'Rēzekne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-RIX', _1: 'Rīga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-VMR', _1: 'Valmiera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LV-VEN', _1: 'Ventspils'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'LY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-BU', _1: 'Al Buţnān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-JA', _1: 'Al Jabal al Akhḑar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-JG', _1: 'Al Jabal al Gharbī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-JI', _1: 'Al Jafārah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-JU', _1: 'Al Jufrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-KF', _1: 'Al Kufrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-MJ', _1: 'Al Marj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-MB', _1: 'Al Marqab'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-WA', _1: 'Al Wāḩāt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-NQ', _1: 'An Nuqaţ al Khams'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-ZA', _1: 'Az Zāwiyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-BA', _1: 'Banghāzī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-DR', _1: 'Darnah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-GT', _1: 'Ghāt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-MI', _1: 'Mişrātah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-MQ', _1: 'Murzuq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-NL', _1: 'Nālūt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-SB', _1: 'Sabhā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-SR', _1: 'Surt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-TB', _1: 'Ţarābulus'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-WD', _1: 'Wādī al Ḩayāt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'LY-WS', _1: 'Wādī ash Shāţiʾ'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-09', _1: 'Chaouia-Ouardigha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-10', _1: 'Doukhala-Abda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-05', _1: 'Fès-Boulemane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-02', _1: 'Gharb-Chrarda-Beni Hssen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-08', _1: 'Grand Casablanca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-14', _1: 'Guelmim-Es Semara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-15', _1: 'Laâyoune-Boujdour-Sakia el Hamra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-04', _1: 'Oriental'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-11', _1: 'Marrakech-Tensift-Al Haouz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-06', _1: 'Meknès-Tafilalet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-16', _1: 'Oued ed Dahab-Lagouira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-07', _1: 'Rabat-Salé-Zemmour-Zaer'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-13', _1: 'Souss-Massa-Drâa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-12', _1: 'Tadla-Azilal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-01', _1: 'Tanger-Tétouan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MA-03', _1: 'Taza-Al Hoceima-Taounate'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MC': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-FO', _1: 'Fontvieille'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-JE', _1: 'Jardin Exotique'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-CL', _1: 'La Colle'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-CO', _1: 'La Condamine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-GA', _1: 'La Gare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-SO', _1: 'La Source'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-LA', _1: 'Larvotto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-MA', _1: 'Malbousquet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-MO', _1: 'Monaco-Ville'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-MG', _1: 'Moneghetti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-MC', _1: 'Monte-Carlo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-MU', _1: 'Moulins'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-PH', _1: 'Port-Hercule'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-SR', _1: 'Saint-Roman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-SD', _1: 'Sainte-Dévote'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-SP', _1: 'Spélugues'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MC-VR', _1: 'Vallon de la Rousse'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-GA', _1: 'Găgăuzia, Unitatea teritorială autonomă'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-BA', _1: 'Bălți'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-BD', _1: 'Bender'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CU', _1: 'Chișinău'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-AN', _1: 'Anenii Noi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-BS', _1: 'Basarabeasca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-BR', _1: 'Briceni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CA', _1: 'Cahul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CT', _1: 'Cantemir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CL', _1: 'Călărași'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CS', _1: 'Căușeni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CM', _1: 'Cimișlia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-CR', _1: 'Criuleni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-DO', _1: 'Dondușeni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-DR', _1: 'Drochia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-DU', _1: 'Dubăsari'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-ED', _1: 'Edineț'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-FA', _1: 'Fălești'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-FL', _1: 'Florești'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-GL', _1: 'Glodeni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-HI', _1: 'Hîncești'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-IA', _1: 'Ialoveni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-LE', _1: 'Leova'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-NI', _1: 'Nisporeni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-OC', _1: 'Ocnița'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-OR', _1: 'Orhei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-RE', _1: 'Rezina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-RI', _1: 'Rîșcani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-SI', _1: 'Sîngerei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-SO', _1: 'Soroca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-ST', _1: 'Strășeni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-SD', _1: 'Șoldănești'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-SV', _1: 'Ștefan Vodă'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-TA', _1: 'Taraclia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-TE', _1: 'Telenești'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-UN', _1: 'Ungheni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MD-SN', _1: 'Stînga Nistrului, unitatea teritorială din'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'ME': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-01', _1: 'Andrijevica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-02', _1: 'Bar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-03', _1: 'Berane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-04', _1: 'Bijelo Polje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-05', _1: 'Budva'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-06', _1: 'Cetinje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-07', _1: 'Danilovgrad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-08', _1: 'Herceg-Novi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-09', _1: 'Kolašin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-10', _1: 'Kotor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-11', _1: 'Mojkovac'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-12', _1: 'Nikšić'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-13', _1: 'Plav'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-14', _1: 'Pljevlja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-15', _1: 'Plužine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-16', _1: 'Podgorica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-17', _1: 'Rožaje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-18', _1: 'Šavnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-19', _1: 'Tivat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-20', _1: 'Ulcinj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-21', _1: 'Žabljak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-22', _1: 'Gusinje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ME-23', _1: 'Petnjica'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MF': - return {ctor: '[]'}; - case 'MG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-T', _1: 'Antananarivo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-D', _1: 'Antsiranana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-F', _1: 'Fianarantsoa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-M', _1: 'Mahajanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-A', _1: 'Toamasina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MG-U', _1: 'Toliara'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'MH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MH-L', _1: 'Ralik chain'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MH-T', _1: 'Ratak chain'}, - _1: {ctor: '[]'} - } - }; - case 'MK': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-02', _1: 'Aračinovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-03', _1: 'Berovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-04', _1: 'Bitola'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-05', _1: 'Bogdanci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-06', _1: 'Bogovinje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-07', _1: 'Bosilovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-08', _1: 'Brvenica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-78', _1: 'Centar Župa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-80', _1: 'Čaška'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-81', _1: 'Češinovo-Obleševo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-82', _1: 'Čučer Sandevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-21', _1: 'Debar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-22', _1: 'Debarca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-23', _1: 'Delčevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-25', _1: 'Demir Hisar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-24', _1: 'Demir Kapija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-26', _1: 'Dojran'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-27', _1: 'Dolneni'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-18', _1: 'Gevgelija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-19', _1: 'Gostivar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-20', _1: 'Gradsko'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-34', _1: 'Ilinden'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-35', _1: 'Jegunovce'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-37', _1: 'Karbinci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-36', _1: 'Kavadarci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-40', _1: 'Kičevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-42', _1: 'Kočani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-41', _1: 'Konče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-43', _1: 'Kratovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-44', _1: 'Kriva Palanka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-45', _1: 'Krivogaštani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-46', _1: 'Kruševo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-47', _1: 'Kumanovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-48', _1: 'Lipkovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-49', _1: 'Lozovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-51', _1: 'Makedonska Kamenica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-52', _1: 'Makedonski Brod'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-50', _1: 'Mavrovo i Rostuša'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-53', _1: 'Mogila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-54', _1: 'Negotino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-55', _1: 'Novaci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-56', _1: 'Novo Selo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-58', _1: 'Ohrid'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-60', _1: 'Pehčevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-59', _1: 'Petrovec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-61', _1: 'Plasnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-62', _1: 'Prilep'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-63', _1: 'Probištip'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-64', _1: 'Radoviš'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-65', _1: 'Rankovce'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-66', _1: 'Resen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-67', _1: 'Rosoman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-85', _1: 'Skopje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-70', _1: 'Sopište'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-71', _1: 'Staro Nagoričane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-72', _1: 'Struga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-73', _1: 'Strumica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-74', _1: 'Studeničani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-69', _1: 'Sveti Nikole'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-83', _1: 'Štip'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-75', _1: 'Tearce'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-76', _1: 'Tetovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-10', _1: 'Valandovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-11', _1: 'Vasilevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-13', _1: 'Veles'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-12', _1: 'Vevčani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-14', _1: 'Vinica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-16', _1: 'Vrapčište'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-32', _1: 'Zelenikovo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-33', _1: 'Zrnovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MK-30', _1: 'Želino'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'ML': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-BKO', _1: 'Bamako'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-7', _1: 'Gao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-1', _1: 'Kayes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-8', _1: 'Kidal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-2', _1: 'Koulikoro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-5', _1: 'Mopti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-4', _1: 'Ségou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-3', _1: 'Sikasso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ML-6', _1: 'Tombouctou'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'MM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-07', _1: 'Ayeyawady'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-02', _1: 'Bago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-03', _1: 'Magway'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-04', _1: 'Mandalay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-01', _1: 'Sagaing'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-05', _1: 'Taninthayi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-06', _1: 'Yangon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-14', _1: 'Chin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-11', _1: 'Kachin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-12', _1: 'Kayah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-13', _1: 'Kayin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-15', _1: 'Mon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-16', _1: 'Rakhine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-17', _1: 'Shan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MM-18', _1: 'Nay Pyi Taw'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-001 !', _1: 'Ulaanbaatar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-073', _1: 'Arhangay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-069', _1: 'Bayanhongor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-071', _1: 'Bayan-Ölgiy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-067', _1: 'Bulgan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-037', _1: 'Darhan uul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-061', _1: 'Dornod'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-063', _1: 'Dornogovĭ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-059', _1: 'Dundgovĭ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-057', _1: 'Dzavhan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-065', _1: 'Govĭ-Altay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-064', _1: 'Govĭ-Sümber'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-039', _1: 'Hentiy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-043', _1: 'Hovd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-041', _1: 'Hövsgöl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-053', _1: 'Ömnögovĭ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-035', _1: 'Orhon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-055', _1: 'Övörhangay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-049', _1: 'Selenge'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-051', _1: 'Sühbaatar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-047', _1: 'Töv'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MN-046', _1: 'Uvs'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MO': - return {ctor: '[]'}; - case 'MP': - return {ctor: '[]'}; - case 'MQ': - return {ctor: '[]'}; - case 'MR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-07', _1: 'Adrar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-03', _1: 'Assaba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-05', _1: 'Brakna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-08', _1: 'Dakhlet Nouâdhibou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-04', _1: 'Gorgol'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-10', _1: 'Guidimaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-01', _1: 'Hodh ech Chargui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-02', _1: 'Hodh el Gharbi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-12', _1: 'Inchiri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-14', _1: 'Nouakchott Nord'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-13', _1: 'Nouakchott Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-15', _1: 'Nouakchott Sud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-09', _1: 'Tagant'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-11', _1: 'Tiris Zemmour'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MR-06', _1: 'Trarza'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MS': - return {ctor: '[]'}; - case 'MT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-01', _1: 'Attard'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-02', _1: 'Balzan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-03', _1: 'Birgu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-04', _1: 'Birkirkara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-05', _1: 'Birżebbuġa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-06', _1: 'Bormla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-07', _1: 'Dingli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-08', _1: 'Fgura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-09', _1: 'Floriana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-10', _1: 'Fontana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-11', _1: 'Gudja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-12', _1: 'Gżira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-13', _1: 'Għajnsielem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-14', _1: 'Għarb'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-15', _1: 'Għargħur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-16', _1: 'Għasri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-17', _1: 'Għaxaq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-18', _1: 'Ħamrun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-19', _1: 'Iklin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-20', _1: 'Isla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-21', _1: 'Kalkara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-22', _1: 'Kerċem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-23', _1: 'Kirkop'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-24', _1: 'Lija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-25', _1: 'Luqa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-26', _1: 'Marsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-27', _1: 'Marsaskala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-28', _1: 'Marsaxlokk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-29', _1: 'Mdina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-30', _1: 'Mellieħa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-31', _1: 'Mġarr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-32', _1: 'Mosta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-33', _1: 'Mqabba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-34', _1: 'Msida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-35', _1: 'Mtarfa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-36', _1: 'Munxar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-37', _1: 'Nadur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-38', _1: 'Naxxar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-39', _1: 'Paola'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-40', _1: 'Pembroke'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-41', _1: 'Pietà'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-42', _1: 'Qala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-43', _1: 'Qormi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-44', _1: 'Qrendi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-45', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-46', _1: 'Rabat Malta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-47', _1: 'Safi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-48', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-49', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-50', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-51', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-52', _1: 'Sannat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-53', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-54', _1: 'Santa Venera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-55', _1: 'Siġġiewi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-56', _1: 'Sliema'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-57', _1: 'Swieqi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-58', _1: 'Ta\' Xbiex'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-59', _1: 'Tarxien'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-60', _1: 'Valletta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-61', _1: 'Xagħra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-62', _1: 'Xewkija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-63', _1: 'Xgħajra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-64', _1: 'Żabbar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-65', _1: 'mt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-66', _1: 'Żebbuġ Malta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-67', _1: 'Żejtun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MT-68', _1: 'Żurrieq'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-BR', _1: 'Beau Bassin-Rose Hill'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-CU', _1: 'Curepipe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-PU', _1: 'Port Louis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-QB', _1: 'Quatre Bornes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-VP', _1: 'Vacoas-Phoenix'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-AG', _1: 'Agalega Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-CC', _1: 'Cargados Carajos Shoals'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-RO', _1: 'Rodrigues Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-BL', _1: 'Black River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-FL', _1: 'Flacq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-GP', _1: 'Grand Port'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-MO', _1: 'Moka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-PA', _1: 'Pamplemousses'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-PW', _1: 'Plaines Wilhems'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-PL', _1: 'Port Louis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-RR', _1: 'Rivière du Rempart'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MU-SA', _1: 'Savanne'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MV': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-MLE', _1: 'Male'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-CE', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-NO', _1: 'North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-NC', _1: 'North Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-SU', _1: 'South'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-SC', _1: 'South Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-UN', _1: 'Upper North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MV-US', _1: 'Upper South'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'MW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MW-C', _1: 'Central Region'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MW-N', _1: 'Northern Region'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MW-S', _1: 'Southern Region'}, - _1: {ctor: '[]'} - } - } - }; - case 'MX': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-CMX', _1: 'Mexican Federal District'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-AGU', _1: 'Aguascalientes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-BCN', _1: 'Baja California'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-BCS', _1: 'Baja California Sur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-CAM', _1: 'Campeche'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-COA', _1: 'Coahuila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-COL', _1: 'Colima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-CHP', _1: 'Chiapas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-CHH', _1: 'Chihuahua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-DUR', _1: 'Durango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-GUA', _1: 'Guanajuato'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-GRO', _1: 'Guerrero'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-HID', _1: 'Hidalgo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-JAL', _1: 'Jalisco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-MEX', _1: 'México'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-MIC', _1: 'Michoacán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-MOR', _1: 'Morelos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-NAY', _1: 'Nayarit'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-NLE', _1: 'Nuevo León'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-OAX', _1: 'Oaxaca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-PUE', _1: 'Puebla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-QUE', _1: 'Querétaro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-ROO', _1: 'Quintana Roo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-SLP', _1: 'San Luis Potosí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-SIN', _1: 'Sinaloa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-SON', _1: 'Sonora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-TAB', _1: 'Tabasco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-TAM', _1: 'Tamaulipas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-TLA', _1: 'Tlaxcala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-VER', _1: 'Veracruz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-YUC', _1: 'Yucatán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MX-ZAC', _1: 'Zacatecas'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-14', _1: 'Wilayah Persekutuan Kuala Lumpur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-15', _1: 'Wilayah Persekutuan Labuan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-16', _1: 'Wilayah Persekutuan Putrajaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-01', _1: 'Johor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-02', _1: 'Kedah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-03', _1: 'Kelantan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-04', _1: 'Melaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-05', _1: 'Negeri Sembilan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-06', _1: 'Pahang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-08', _1: 'Perak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-09', _1: 'Perlis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-07', _1: 'Pulau Pinang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-12', _1: 'Sabah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-13', _1: 'Sarawak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-10', _1: 'Selangor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MY-11', _1: 'Terengganu'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'MZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-MPM', _1: 'Maputo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-P', _1: 'Cabo Delgado'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-G', _1: 'Gaza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-I', _1: 'Inhambane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-B', _1: 'Manica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-L', _1: 'Maputo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-N', _1: 'Nampula'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-A', _1: 'Niassa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-S', _1: 'Sofala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-T', _1: 'Tete'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'MZ-Q', _1: 'Zambézia'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'NA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-ER', _1: 'Erongo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-HA', _1: 'Hardap'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-KA', _1: 'Karas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-KE', _1: 'Kavango East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-KW', _1: 'Kavango West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-KH', _1: 'Khomas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-KU', _1: 'Kunene'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-OW', _1: 'Ohangwena'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-OH', _1: 'Omaheke'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-OS', _1: 'Omusati'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-ON', _1: 'Oshana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-OT', _1: 'Oshikoto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-OD', _1: 'Otjozondjupa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NA-CA', _1: 'Zambezi'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NC': - return {ctor: '[]'}; - case 'NE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-8', _1: 'Niamey'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-1', _1: 'Agadez'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-2', _1: 'Diffa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-3', _1: 'Dosso'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-4', _1: 'Maradi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-5', _1: 'Tahoua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-6', _1: 'Tillabéri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NE-7', _1: 'Zinder'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'NF': - return {ctor: '[]'}; - case 'NG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-FC', _1: 'Abuja Federal Capital Territory'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-AB', _1: 'Abia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-AD', _1: 'Adamawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-AK', _1: 'Akwa Ibom'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-AN', _1: 'Anambra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-BA', _1: 'Bauchi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-BY', _1: 'Bayelsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-BE', _1: 'Benue'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-BO', _1: 'Borno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-CR', _1: 'Cross River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-DE', _1: 'Delta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-EB', _1: 'Ebonyi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-ED', _1: 'Edo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-EK', _1: 'Ekiti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-EN', _1: 'Enugu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-GO', _1: 'Gombe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-IM', _1: 'Imo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-JI', _1: 'Jigawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KD', _1: 'Kaduna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KN', _1: 'Kano'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KT', _1: 'Katsina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KE', _1: 'Kebbi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KO', _1: 'Kogi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-KW', _1: 'Kwara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-LA', _1: 'Lagos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-NA', _1: 'Nasarawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-NI', _1: 'Niger'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-OG', _1: 'Ogun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-ON', _1: 'Ondo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-OS', _1: 'Osun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-OY', _1: 'Oyo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-PL', _1: 'Plateau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-RI', _1: 'Rivers'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-SO', _1: 'Sokoto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-TA', _1: 'Taraba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-YO', _1: 'Yobe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NG-ZA', _1: 'Zamfara'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-BO', _1: 'Boaco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-CA', _1: 'Carazo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-CI', _1: 'Chinandega'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-CO', _1: 'Chontales'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-ES', _1: 'Estelí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-GR', _1: 'Granada'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-JI', _1: 'Jinotega'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-LE', _1: 'León'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-MD', _1: 'Madriz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-MN', _1: 'Managua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-MS', _1: 'Masaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-MT', _1: 'Matagalpa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-NS', _1: 'Nueva Segovia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-SJ', _1: 'Río San Juan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-RI', _1: 'Rivas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-AN', _1: 'Atlántico Norte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NI-AS', _1: 'Atlántico Sur'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-DR', _1: 'Drenthe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-FL', _1: 'Flevoland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-FR', _1: 'Fryslân'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-GE', _1: 'Gelderland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-GR', _1: 'Groningen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-LI', _1: 'Limburg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-NB', _1: 'Noord-Brabant'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-NH', _1: 'Noord-Holland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-OV', _1: 'Overijssel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-UT', _1: 'Utrecht'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-ZE', _1: 'Zeeland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NL-ZH', _1: 'Zuid-Holland'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-02', _1: 'Akershus'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-09', _1: 'Aust-Agder'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-06', _1: 'Buskerud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-20', _1: 'Finnmark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-04', _1: 'Hedmark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-12', _1: 'Hordaland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-15', _1: 'Møre og Romsdal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-18', _1: 'Nordland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-17', _1: 'Nord-Trøndelag'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-05', _1: 'Oppland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-03', _1: 'Oslo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-11', _1: 'Rogaland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-14', _1: 'Sogn og Fjordane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-16', _1: 'Sør-Trøndelag'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-08', _1: 'Telemark'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-19', _1: 'Troms'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-10', _1: 'Vest-Agder'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-07', _1: 'Vestfold'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-01', _1: 'Østfold'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-22', _1: 'Jan Mayen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NO-21', _1: 'Svalbard'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NP': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NP-1', _1: 'Madhyamanchal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NP-2', _1: 'Madhya Pashchimanchal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NP-3', _1: 'Pashchimanchal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NP-4', _1: 'Purwanchal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NP-5', _1: 'Sudur Pashchimanchal'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'NR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-01', _1: 'Aiwo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-02', _1: 'Anabar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-03', _1: 'Anetan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-04', _1: 'Anibare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-05', _1: 'Baiti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-06', _1: 'Boe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-07', _1: 'Buada'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-08', _1: 'Denigomodu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-09', _1: 'Ewa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-10', _1: 'Ijuw'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-11', _1: 'Meneng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-12', _1: 'Nibok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-13', _1: 'Uaboe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NR-14', _1: 'Yaren'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'NU': - return {ctor: '[]'}; - case 'NZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-AUK', _1: 'Auckland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-BOP', _1: 'Bay of Plenty'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-CAN', _1: 'Canterbury'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-GIS', _1: 'Gisborne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-HKB', _1: 'Hawke\'s Bay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-MBH', _1: 'Marlborough'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-MWT', _1: 'Manawatu-Wanganui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-NSN', _1: 'Nelson'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-NTL', _1: 'Northland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-OTA', _1: 'Otago'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-STL', _1: 'Southland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-TAS', _1: 'Tasman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-TKI', _1: 'Taranaki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-WKO', _1: 'Waikato'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-WGN', _1: 'Wellington'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-WTC', _1: 'West Coast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'NZ-CIT', _1: 'Chatham Islands Territory'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'OM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-DA', _1: 'Ad Dākhilīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-BS', _1: 'Shamāl al Bāţinah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-BJ', _1: 'Janūb al Bāţinah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-WU', _1: 'Al Wusţá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-SS', _1: 'Shamāl ash Sharqīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-SJ', _1: 'Janūb ash Sharqīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-ZA', _1: 'Az̧ Z̧āhirah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-BU', _1: 'Al Buraymī'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-MA', _1: 'Masqaţ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-MU', _1: 'Musandam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'OM-ZU', _1: 'Z̧ufār'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'PA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-1', _1: 'Bocas del Toro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-4', _1: 'Chiriquí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-2', _1: 'Coclé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-3', _1: 'Colón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-5', _1: 'Darién'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-6', _1: 'Herrera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-7', _1: 'Los Santos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-8', _1: 'Panamá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-9', _1: 'Veraguas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-10', _1: 'Panamá Oeste'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-EM', _1: 'Emberá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-KY', _1: 'Kuna Yala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PA-NB', _1: 'Ngöbe-Buglé'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-LMA', _1: 'Municipalidad Metropolitana de Lima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-AMA', _1: 'Amazonas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-ANC', _1: 'Ancash'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-APU', _1: 'Apurímac'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-ARE', _1: 'Arequipa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-AYA', _1: 'Ayacucho'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-CAJ', _1: 'Cajamarca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-CUS', _1: 'Cusco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-CAL', _1: 'El Callao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-HUV', _1: 'Huancavelica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-HUC', _1: 'Huánuco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-ICA', _1: 'Ica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-JUN', _1: 'Junín'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-LAL', _1: 'La Libertad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-LAM', _1: 'Lambayeque'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-LIM', _1: 'Lima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-LOR', _1: 'Loreto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-MDD', _1: 'Madre de Dios'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-MOQ', _1: 'Moquegua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-PAS', _1: 'Pasco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-PIU', _1: 'Piura'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-PUN', _1: 'Puno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-SAM', _1: 'San Martín'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-TAC', _1: 'Tacna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-TUM', _1: 'Tumbes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PE-UCA', _1: 'Ucayali'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PF': - return {ctor: '[]'}; - case 'PG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-NCD', _1: 'National Capital District'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-CPM', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-CPK', _1: 'Chimbu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-EHG', _1: 'Eastern Highlands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-EBR', _1: 'East New Britain'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-ESW', _1: 'East Sepik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-EPW', _1: 'Enga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-GPK', _1: 'Gulf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-HLA', _1: 'Hela'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-JWK', _1: 'Jiwaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-MPM', _1: 'Madang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-MRL', _1: 'Manus'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-MBA', _1: 'Milne Bay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-MPL', _1: 'Morobe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-NIK', _1: 'New Ireland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-NPP', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-SAN', _1: 'West Sepik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-SHM', _1: 'Southern Highlands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-WPD', _1: 'Western'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-WHM', _1: 'Western Highlands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-WBK', _1: 'West New Britain'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PG-NSB', _1: 'Bougainville'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-14', _1: 'Autonomous Region in Muslim Mindanao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-05', _1: 'Bicol'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-02', _1: 'Cagayan Valley'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-40', _1: 'Calabarzon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-13', _1: 'Caraga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-03', _1: 'Central Luzon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-07', _1: 'Central Visayas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-15', _1: 'Cordillera Administrative Region'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-11', _1: 'Davao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-08', _1: 'Eastern Visayas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-01', _1: 'Ilocos'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-41', _1: 'Mimaropa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-00', _1: 'National Capital Region'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-10', _1: 'Northern Mindanao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-12', _1: 'Soccsksargen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-06', _1: 'Western Visayas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PH-09', _1: 'Zamboanga Peninsula'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PK': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-IS', _1: 'Islamabad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-BA', _1: 'Balochistan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-KP', _1: 'Khyber Pakhtunkhwa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-PB', _1: 'Punjab'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-SD', _1: 'Sindh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-TA', _1: 'Federally Administered Tribal Areas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-JK', _1: 'Azad Kashmir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PK-GB', _1: 'Gilgit-Baltistan'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'PL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-DS', _1: 'Dolnośląskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-KP', _1: 'Kujawsko-pomorskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-LU', _1: 'Lubelskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-LB', _1: 'Lubuskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-LD', _1: 'Łódzkie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-MA', _1: 'Małopolskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-MZ', _1: 'Mazowieckie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-OP', _1: 'Opolskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-PK', _1: 'Podkarpackie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-PD', _1: 'Podlaskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-PM', _1: 'Pomorskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-SL', _1: 'Śląskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-SK', _1: 'Świętokrzyskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-WN', _1: 'Warmińsko-mazurskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-WP', _1: 'Wielkopolskie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PL-ZP', _1: 'Zachodniopomorskie'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PM': - return {ctor: '[]'}; - case 'PN': - return {ctor: '[]'}; - case 'PR': - return {ctor: '[]'}; - case 'PS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PS-GZZ', _1: 'Gaza Strip'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PS-WBK', _1: 'West Bank'}, - _1: {ctor: '[]'} - } - }; - case 'PT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-01', _1: 'Aveiro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-02', _1: 'Beja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-03', _1: 'Braga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-04', _1: 'Bragança'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-05', _1: 'Castelo Branco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-06', _1: 'Coimbra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-07', _1: 'Évora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-08', _1: 'Faro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-09', _1: 'Guarda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-10', _1: 'Leiria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-11', _1: 'Lisboa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-12', _1: 'Portalegre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-13', _1: 'Porto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-14', _1: 'Santarém'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-15', _1: 'Setúbal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-16', _1: 'Viana do Castelo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-17', _1: 'Vila Real'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-18', _1: 'Viseu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-20', _1: 'Região Autónoma dos Açores'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PT-30', _1: 'Região Autónoma da Madeira'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-002', _1: 'Aimeliik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-004', _1: 'Airai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-010', _1: 'Angaur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-050', _1: 'Hatobohei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-100', _1: 'Kayangel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-150', _1: 'Koror'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-212', _1: 'Melekeok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-214', _1: 'Ngaraard'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-218', _1: 'Ngarchelong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-222', _1: 'Ngardmau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-224', _1: 'Ngatpang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-226', _1: 'Ngchesar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-227', _1: 'Ngeremlengui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-228', _1: 'Ngiwal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-350', _1: 'Peleliu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PW-370', _1: 'Sonsorol'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'PY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-ASU', _1: 'Asunción'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-16', _1: 'Alto Paraguay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-10', _1: 'Alto Paraná'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-13', _1: 'Amambay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-19', _1: 'Boquerón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-05 !', _1: 'Caaguazú'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-06 !', _1: 'Caazapá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-14', _1: 'Canindeyú'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-11', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-01 !', _1: 'Concepción'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-03 !', _1: 'Cordillera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-04 !', _1: 'Guairá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-07 !', _1: 'Itapúa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-08 !', _1: 'Misiones'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-12', _1: 'Ñeembucú'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-09 !', _1: 'Paraguarí'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-15', _1: 'Presidente Hayes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'PY-02 !', _1: 'San Pedro'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'QA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-DA', _1: 'Ad Dawḩah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-KH', _1: 'Al Khawr wa adh Dhakhīrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-WA', _1: 'Al Wakrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-RA', _1: 'Ar Rayyān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-MS', _1: 'Ash Shamāl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-ZA', _1: 'Az̧ Za̧`āyin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'QA-US', _1: 'Umm Şalāl'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - }; - case 'QO': - return {ctor: '[]'}; - case 'RE': - return {ctor: '[]'}; - case 'RO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-AB', _1: 'Alba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-AR', _1: 'Arad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-AG', _1: 'Argeș'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BC', _1: 'Bacău'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BH', _1: 'Bihor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BN', _1: 'Bistrița-Năsăud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BT', _1: 'Botoșani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BV', _1: 'Brașov'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BR', _1: 'Brăila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-BZ', _1: 'Buzău'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-CS', _1: 'Caraș-Severin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-CL', _1: 'Călărași'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-CJ', _1: 'Cluj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-CT', _1: 'Constanța'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-CV', _1: 'Covasna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-DB', _1: 'Dâmbovița'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-DJ', _1: 'Dolj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-GL', _1: 'Galați'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-GR', _1: 'Giurgiu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-GJ', _1: 'Gorj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-HR', _1: 'Harghita'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-HD', _1: 'Hunedoara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-IL', _1: 'Ialomița'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-IS', _1: 'Iași'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-IF', _1: 'Ilfov'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-MM', _1: 'Maramureș'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-MH', _1: 'Mehedinți'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-MS', _1: 'Mureș'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-NT', _1: 'Neamț'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-OT', _1: 'Olt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-PH', _1: 'Prahova'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-SM', _1: 'Satu Mare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-SJ', _1: 'Sălaj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-SB', _1: 'Sibiu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-SV', _1: 'Suceava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-TR', _1: 'Teleorman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-TM', _1: 'Timiș'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-TL', _1: 'Tulcea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-VS', _1: 'Vaslui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-VL', _1: 'Vâlcea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-VN', _1: 'Vrancea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RO-B', _1: 'București'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'RS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RS-KM', _1: 'Kosovo-Metohija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RS-VO', _1: 'Vojvodina'}, - _1: {ctor: '[]'} - } - }; - case 'RU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-AD', _1: 'Adygeya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-AL', _1: 'Altay, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-BA', _1: 'Bashkortostan, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-BU', _1: 'Buryatiya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-CE', _1: 'Chechenskaya Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-CU', _1: 'Chuvashskaya Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-DA', _1: 'Dagestan, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-IN', _1: 'Ingushetiya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KB', _1: 'Kabardino-Balkarskaya Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KL', _1: 'Kalmykiya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KC', _1: 'Karachayevo-Cherkesskaya Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KR', _1: 'Kareliya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KK', _1: 'Khakasiya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KO', _1: 'Komi, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ME', _1: 'Mariy El, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-MO', _1: 'Mordoviya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SA', _1: 'Sakha, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SE', _1: 'Severnaya Osetiya-Alaniya, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TA', _1: 'Tatarstan, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TY', _1: 'Tyva, Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-UD', _1: 'Udmurtskaya Respublika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ALT', _1: 'Altayskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KAM', _1: 'Kamchatskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KHA', _1: 'Khabarovskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KDA', _1: 'Krasnodarskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KYA', _1: 'Krasnoyarskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-PER', _1: 'Permskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-PRI', _1: 'Primorskiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-STA', _1: 'Stavropol\'skiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ZAB', _1: 'Zabaykal\'skiy kray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-AMU', _1: 'Amurskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ARK', _1: 'Arkhangel\'skaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-AST', _1: 'Astrakhanskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-BEL', _1: 'Belgorodskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-BRY', _1: 'Bryanskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-CHE', _1: 'Chelyabinskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-IRK', _1: 'Irkutskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-IVA', _1: 'Ivanovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KGD', _1: 'Kaliningradskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KLU', _1: 'Kaluzhskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KEM', _1: 'Kemerovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KIR', _1: 'Kirovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KOS', _1: 'Kostromskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KGN', _1: 'Kurganskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KRS', _1: 'Kurskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-LEN', _1: 'Leningradskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-LIP', _1: 'Lipetskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-MAG', _1: 'Magadanskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-MOS', _1: 'Moskovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-MUR', _1: 'Murmanskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-NIZ', _1: 'Nizhegorodskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-NGR', _1: 'Novgorodskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-NVS', _1: 'Novosibirskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-OMS', _1: 'Omskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ORE', _1: 'Orenburgskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ORL', _1: 'Orlovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-PNZ', _1: 'Penzenskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-PSK', _1: 'Pskovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ROS', _1: 'Rostovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-RYA', _1: 'Ryazanskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SAK', _1: 'Sakhalinskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SAM', _1: 'Samarskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SAR', _1: 'Saratovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SMO', _1: 'Smolenskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SVE', _1: 'Sverdlovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TAM', _1: 'Tambovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TOM', _1: 'Tomskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TUL', _1: 'Tul\'skaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TVE', _1: 'Tverskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-TYU', _1: 'Tyumenskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-ULY', _1: 'Ul\'yanovskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-VLA', _1: 'Vladimirskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-VGG', _1: 'Volgogradskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-VLG', _1: 'Vologodskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-VOR', _1: 'Voronezhskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-YAR', _1: 'Yaroslavskaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-MOW', _1: 'Moskva'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-SPE', _1: 'Sankt-Peterburg'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-YEV', _1: 'Yevreyskaya avtonomnaya oblast\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-CHU', _1: 'Chukotskiy avtonomnyy okrug'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-KHM', _1: 'Khanty-Mansiyskiy avtonomnyy okrug-Yugra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-NEN', _1: 'Nenetskiy avtonomnyy okrug'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RU-YAN', _1: 'Yamalo-Nenetskiy avtonomnyy okrug'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'RW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RW-01', _1: 'City of Kigali'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RW-02', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RW-03', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RW-04', _1: 'Western'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'RW-05', _1: 'Southern'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'SA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-11', _1: 'Al Bāḩah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-08', _1: 'Al Ḩudūd ash Shamālīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-12', _1: 'Al Jawf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-03', _1: 'Al Madīnah al Munawwarah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-05', _1: 'Al Qaşīm'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-01', _1: 'Ar Riyāḑ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-04', _1: 'Ash Sharqīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-14', _1: '\'Asīr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-06', _1: 'Ḩā\'il'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-09', _1: 'Jāzān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-02', _1: 'Makkah al Mukarramah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-10', _1: 'Najrān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SA-07', _1: 'Tabūk'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SB': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-CT', _1: 'Capital Territory'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-CE', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-CH', _1: 'Choiseul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-GU', _1: 'Guadalcanal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-IS', _1: 'Isabel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-MK', _1: 'Makira-Ulawa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-ML', _1: 'Malaita'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-RB', _1: 'Rennell and Bellona'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-TE', _1: 'Temotu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SB-WE', _1: 'Western'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'SC': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-01', _1: 'Anse aux Pins'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-02', _1: 'Anse Boileau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-03', _1: 'Anse Etoile'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-05', _1: 'Anse Royale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-04', _1: 'Au Cap'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-06', _1: 'Baie Lazare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-07', _1: 'Baie Sainte Anne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-08', _1: 'Beau Vallon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-09', _1: 'Bel Air'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-10', _1: 'Bel Ombre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-11', _1: 'Cascade'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-12', _1: 'Glacis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-13', _1: 'Grand Anse Mahe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-14', _1: 'Grand Anse Praslin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-15', _1: 'La Digue'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-16', _1: 'English River'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-24', _1: 'Les Mamelles'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-17', _1: 'Mont Buxton'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-18', _1: 'Mont Fleuri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-19', _1: 'Plaisance'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-20', _1: 'Pointe Larue'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-21', _1: 'Port Glaud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-25', _1: 'Roche Caiman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-22', _1: 'Saint Louis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SC-23', _1: 'Takamaka'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-RS', _1: 'Al Baḩr al Aḩmar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-GZ', _1: 'Al Jazīrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-KH', _1: 'Al Kharţūm'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-GD', _1: 'Al Qaḑārif'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-NR', _1: 'Nahr an Nīl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-NW', _1: 'An Nīl al Abyaḑ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-NB', _1: 'An Nīl al Azraq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-NO', _1: 'Ash Shamālīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-DW', _1: 'Gharb Dārfūr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-GK', _1: 'Gharb Kurdufān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-DS', _1: 'Janūb Dārfūr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-KS', _1: 'Janūb Kurdufān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-KA', _1: 'Kassalā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-DN', _1: 'Shamāl Dārfūr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-KN', _1: 'Shiamāl Kurdufān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-DE', _1: 'Sharq Dārfūr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-SI', _1: 'Sinnār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SD-DC', _1: 'Wasaţ Dārfūr Zālinjay'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-K', _1: 'Blekinge län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-10', _1: 'Dalarnas län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-20', _1: 'Gotlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-09', _1: 'Gävleborgs län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-21', _1: 'Hallands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-13', _1: 'Jämtlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-23', _1: 'Jönköpings län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-06', _1: 'Kalmar län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-08', _1: 'Kronobergs län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-07', _1: 'Norrbottens län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-25', _1: 'Skåne län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-12', _1: 'Stockholms län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-01', _1: 'Södermanlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-04', _1: 'Uppsala län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-03', _1: 'Värmlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-17', _1: 'Västerbottens län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-24', _1: 'Västernorrlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-22', _1: 'Västmanlands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-19', _1: 'Västra Götalands län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-14', _1: 'Örebro län'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SE-18', _1: 'Östergötlands län'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SG-01', _1: 'Central Singapore'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SG-02', _1: 'North East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SG-03', _1: 'North West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SG-04', _1: 'South East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SG-05', _1: 'South West'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'SH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SH-AC', _1: 'Ascension'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SH-HL', _1: 'Saint Helena'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SH-TA', _1: 'Tristan da Cunha'}, - _1: {ctor: '[]'} - } - } - }; - case 'SI': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-001', _1: 'Ajdovščina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-195', _1: 'Apače'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-002', _1: 'Beltinci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-148', _1: 'Benedikt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-149', _1: 'Bistrica ob Sotli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-003', _1: 'Bled'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-150', _1: 'Bloke'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-004', _1: 'Bohinj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-005', _1: 'Borovnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-006', _1: 'Bovec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-151', _1: 'Braslovče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-007', _1: 'Brda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-009', _1: 'Brežice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-008', _1: 'Brezovica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-152', _1: 'Cankova'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-011', _1: 'Celje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-012', _1: 'Cerklje na Gorenjskem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-013', _1: 'Cerknica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-014', _1: 'Cerkno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-153', _1: 'Cerkvenjak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-196', _1: 'Cirkulane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-015', _1: 'Črenšovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-016', _1: 'Črna na Koroškem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-017', _1: 'Črnomelj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-018', _1: 'Destrnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-019', _1: 'Divača'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-154', _1: 'Dobje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-020', _1: 'Dobrepolje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-155', _1: 'Dobrna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-021', _1: 'Dobrova–Polhov Gradec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-156', _1: 'Dobrovnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-157', _1: 'Dolenjske Toplice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-022', _1: 'Dol pri Ljubljani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-023', _1: 'Domžale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-024', _1: 'Dornava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-025', _1: 'Dravograd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-026', _1: 'Duplek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-027', _1: 'Gorenja vas–Poljane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-028', _1: 'Gorišnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-207', _1: 'Gorje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-029', _1: 'Gornja Radgona'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-030', _1: 'Gornji Grad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-031', _1: 'Gornji Petrovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-158', _1: 'Grad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-032', _1: 'Grosuplje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-159', _1: 'Hajdina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-160', _1: 'Hoče–Slivnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-161', _1: 'Hodoš'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-162', _1: 'Horjul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-034', _1: 'Hrastnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-035', _1: 'Hrpelje-Kozina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-036', _1: 'Idrija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-037', _1: 'Ig'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-038', _1: 'Ilirska Bistrica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-039', _1: 'Ivančna Gorica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-040', _1: 'Izola'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-041', _1: 'Jesenice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-163', _1: 'Jezersko'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-042', _1: 'Juršinci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-043', _1: 'Kamnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-044', _1: 'Kanal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-045', _1: 'Kidričevo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-046', _1: 'Kobarid'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-047', _1: 'Kobilje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-048', _1: 'Kočevje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-049', _1: 'Komen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-164', _1: 'Komenda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-050', _1: 'Koper'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-197', _1: 'Kosanjevica na Krki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-165', _1: 'Kostel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-051', _1: 'Kozje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-052', _1: 'Kranj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-053', _1: 'Kranjska Gora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-166', _1: 'Križevci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-054', _1: 'Krško'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-055', _1: 'Kungota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-056', _1: 'Kuzma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-057', _1: 'Laško'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-058', _1: 'Lenart'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-059', _1: 'Lendava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-060', _1: 'Litija'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-061', _1: 'Ljubljana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-062', _1: 'Ljubno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-063', _1: 'Ljutomer'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-064', _1: 'Logatec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-208', _1: 'Log-Dragomer'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-065', _1: 'Loška Dolina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-066', _1: 'Loški Potok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-167', _1: 'Lovrenc na Pohorju'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-067', _1: 'Luče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-068', _1: 'Lukovica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-069', _1: 'Majšperk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-198', _1: 'Makole'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-070', _1: 'Maribor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-168', _1: 'Markovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-071', _1: 'Medvode'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-072', _1: 'Mengeš'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-073', _1: 'Metlika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-074', _1: 'Mežica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-169', _1: 'Miklavž na Dravskem Polju'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-075', _1: 'Miren-Kostanjevica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-212', _1: 'Mirna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-170', _1: 'Mirna Peč'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-076', _1: 'Mislinja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-199', _1: 'Mokronog-Trebelno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-077', _1: 'Moravče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-078', _1: 'Moravske Toplice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-079', _1: 'Mozirje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-080', _1: 'Murska Sobota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-081', _1: 'Muta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-082', _1: 'Naklo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-083', _1: 'Nazarje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-084', _1: 'Nova Gorica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-085', _1: 'Novo Mesto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-086', _1: 'Odranci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-171', _1: 'Oplotnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-087', _1: 'Ormož'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-088', _1: 'Osilnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-089', _1: 'Pesnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-090', _1: 'Piran'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-091', _1: 'Pivka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-092', _1: 'Podčetrtek'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-172', _1: 'Podlehnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-093', _1: 'Podvelka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-200', _1: 'Poljčane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-173', _1: 'Polzela'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-094', _1: 'Postojna'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-174', _1: 'Prebold'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-095', _1: 'Preddvor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-175', _1: 'Prevalje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-096', _1: 'Ptuj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-097', _1: 'Puconci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-098', _1: 'Rače–Fram'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-099', _1: 'Radeče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-100', _1: 'Radenci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-101', _1: 'Radlje ob Dravi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-102', _1: 'Radovljica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-103', _1: 'Ravne na Koroškem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-176', _1: 'Razkrižje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-209', _1: 'Rečica ob Savinji'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-201', _1: 'Renče-Vogrsko'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-104', _1: 'Ribnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-177', _1: 'Ribnica na Pohorju'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-106', _1: 'Rogaška Slatina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-105', _1: 'Rogašovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-107', _1: 'Rogatec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-108', _1: 'Ruše'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-178', _1: 'Selnica ob Dravi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-109', _1: 'Semič'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-110', _1: 'Sevnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-111', _1: 'Sežana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-112', _1: 'Slovenj Gradec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-113', _1: 'Slovenska Bistrica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-114', _1: 'Slovenske Konjice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-179', _1: 'Sodražica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-180', _1: 'Solčava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-202', _1: 'Središče ob Dravi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-115', _1: 'Starše'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-203', _1: 'Straža'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-181', _1: 'Sveta Ana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-204', _1: 'Sveta Trojica v Slovenskih Goricah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-182', _1: 'Sveti Andraž v Slovenskih Goricah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-116', _1: 'Sveti Jurij'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-210', _1: 'Sveti Jurij v Slovenskih Goricah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-205', _1: 'Sveti Tomaž'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-033', _1: 'Šalovci'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-183', _1: 'Šempeter-Vrtojba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-117', _1: 'Šenčur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-118', _1: 'Šentilj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-119', _1: 'Šentjernej'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-120', _1: 'Šentjur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-211', _1: 'Šentrupert'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-121', _1: 'Škocjan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-122', _1: 'Škofja Loka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-123', _1: 'Škofljica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-124', _1: 'Šmarje pri Jelšah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-206', _1: 'Šmarješke Toplice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-125', _1: 'Šmartno ob Paki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-194', _1: 'Šmartno pri Litiji'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-126', _1: 'Šoštanj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-127', _1: 'Štore'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-184', _1: 'Tabor'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-010', _1: 'Tišina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-128', _1: 'Tolmin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-129', _1: 'Trbovlje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-130', _1: 'Trebnje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-185', _1: 'Trnovska Vas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-186', _1: 'Trzin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-131', _1: 'Tržič'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-132', _1: 'Turnišče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-133', _1: 'Velenje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-187', _1: 'Velika Polana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-134', _1: 'Velike Lašče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-188', _1: 'Veržej'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-135', _1: 'Videm'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-136', _1: 'Vipava'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-137', _1: 'Vitanje'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-138', _1: 'Vodice'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-139', _1: 'Vojnik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-189', _1: 'Vransko'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-140', _1: 'Vrhnika'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-141', _1: 'Vuzenica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-142', _1: 'Zagorje ob Savi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-143', _1: 'Zavrč'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-144', _1: 'Zreče'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-190', _1: 'Žalec'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-146', _1: 'Železniki'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-191', _1: 'Žetale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-147', _1: 'Žiri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-192', _1: 'Žirovnica'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-193', _1: 'Žužemberk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SI-213', _1: 'Ankaran'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SJ': - return {ctor: '[]'}; - case 'SK': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-BC', _1: 'Banskobystrický kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-BL', _1: 'Bratislavský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-KI', _1: 'Košický kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-NI', _1: 'Nitriansky kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-PV', _1: 'Prešovský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-TC', _1: 'Trenčiansky kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-TA', _1: 'Trnavský kraj'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SK-ZI', _1: 'Žilinský kraj'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'SL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SL-W', _1: 'Western Area'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SL-E', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SL-N', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SL-S', _1: 'Southern'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'SM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-01', _1: 'Acquaviva'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-06', _1: 'Borgo Maggiore'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-02', _1: 'Chiesanuova'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-03', _1: 'Domagnano'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-04', _1: 'Faetano'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-05', _1: 'Fiorentino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-08', _1: 'Montegiardino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-07', _1: 'San Marino'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SM-09', _1: 'Serravalle'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'SN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-DK', _1: 'Dakar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-DB', _1: 'Diourbel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-FK', _1: 'Fatick'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-KA', _1: 'Kaffrine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-KL', _1: 'Kaolack'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-KE', _1: 'Kédougou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-KD', _1: 'Kolda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-LG', _1: 'Louga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-MT', _1: 'Matam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-SL', _1: 'Saint-Louis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-SE', _1: 'Sédhiou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-TC', _1: 'Tambacounda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-TH', _1: 'Thiès'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SN-ZG', _1: 'Ziguinchor'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-AW', _1: 'Awdal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-BK', _1: 'Bakool'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-BN', _1: 'Banaadir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-BR', _1: 'Bari'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-BY', _1: 'Bay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-GA', _1: 'Galguduud'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-GE', _1: 'Gedo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-HI', _1: 'Hiiraan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-JD', _1: 'Jubbada Dhexe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-JH', _1: 'Jubbada Hoose'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-MU', _1: 'Mudug'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-NU', _1: 'Nugaal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-SA', _1: 'Sanaag'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-SD', _1: 'Shabeellaha Dhexe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-SH', _1: 'Shabeellaha Hoose'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-SO', _1: 'Sool'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-TO', _1: 'Togdheer'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SO-WO', _1: 'Woqooyi Galbeed'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-BR', _1: 'Brokopondo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-CM', _1: 'Commewijne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-CR', _1: 'Coronie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-MA', _1: 'Marowijne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-NI', _1: 'Nickerie'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-PR', _1: 'Para'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-PM', _1: 'Paramaribo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-SA', _1: 'Saramacca'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-SI', _1: 'Sipaliwini'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SR-WA', _1: 'Wanica'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'SS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-EC', _1: 'Central Equatoria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-EE', _1: 'Eastern Equatoria'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-JG', _1: 'Jonglei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-LK', _1: 'Lakes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-BN', _1: 'Northern Bahr el Ghazal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-UY', _1: 'Unity'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-NU', _1: 'Upper Nile'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-WR', _1: 'Warrap'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-BW', _1: 'Western Bahr el Ghazal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SS-EW', _1: 'Western Equatoria'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'ST': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ST-P', _1: 'Príncipe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ST-S', _1: 'São Tomé'}, - _1: {ctor: '[]'} - } - }; - case 'SV': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-AH', _1: 'Ahuachapán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-CA', _1: 'Cabañas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-CU', _1: 'Cuscatlán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-CH', _1: 'Chalatenango'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-LI', _1: 'La Libertad'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-PA', _1: 'La Paz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-UN', _1: 'La Unión'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-MO', _1: 'Morazán'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-SM', _1: 'San Miguel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-SS', _1: 'San Salvador'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-SA', _1: 'Santa Ana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-SV', _1: 'San Vicente'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-SO', _1: 'Sonsonate'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SV-US', _1: 'Usulután'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SX': - return {ctor: '[]'}; - case 'SY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-HA', _1: 'Al Ḩasakah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-LA', _1: 'Al Lādhiqīyah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-QU', _1: 'Al Qunayţirah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-RA', _1: 'Ar Raqqah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-SU', _1: 'As Suwaydā\''}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-DR', _1: 'Dar\'ā'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-DY', _1: 'Dayr az Zawr'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-DI', _1: 'Dimashq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-HL', _1: 'Ḩalab'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-HM', _1: 'Ḩamāh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-HI', _1: 'Ḩimş'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-ID', _1: 'Idlib'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-RD', _1: 'Rīf Dimashq'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SY-TA', _1: 'Ţarţūs'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'SZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SZ-HH', _1: 'Hhohho'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SZ-LU', _1: 'Lubombo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SZ-MA', _1: 'Manzini'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'SZ-SH', _1: 'Shiselweni'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'TA': - return {ctor: '[]'}; - case 'TC': - return {ctor: '[]'}; - case 'TD': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-BA', _1: 'Batha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-LC', _1: 'Lac'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-BG', _1: 'Bahr el Gazel'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-BO', _1: 'Borkou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-HL', _1: 'Hadjer Lamis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-EE', _1: 'Ennedi-Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-EO', _1: 'Ennedi-Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-KA', _1: 'Kanem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-LO', _1: 'Logone-Occidental'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-LR', _1: 'Logone-Oriental'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-ND', _1: 'Ville de Ndjamena'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-MA', _1: 'Mandoul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-MO', _1: 'Mayo-Kébbi-Ouest'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-ME', _1: 'Mayo-Kébbi-Est'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-GR', _1: 'Guéra'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-SA', _1: 'Salamat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-MC', _1: 'Moyen-Chari'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-CB', _1: 'Chari-Baguirmi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-SI', _1: 'Sila'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-TA', _1: 'Tandjilé'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-TI', _1: 'Tibesti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-OD', _1: 'Ouaddaï'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TD-WF', _1: 'Wadi Fira'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TF': - return {ctor: '[]'}; - case 'TG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TG-C', _1: 'Centre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TG-K', _1: 'Kara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TG-M', _1: 'Maritime'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TG-P', _1: 'Plateaux'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TG-S', _1: 'Savannes'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'TH': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-10', _1: 'Bangkok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-S', _1: 'Phatthaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-37', _1: 'Amnat Charoen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-15', _1: 'Ang Thong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-38', _1: 'Bueng Kan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-31', _1: 'Buri Ram'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-24', _1: 'Chachoengsao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-18', _1: 'Chai Nat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-36', _1: 'Chaiyaphum'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-22', _1: 'Chanthaburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-50', _1: 'Chiang Mai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-57', _1: 'Chiang Rai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-20', _1: 'Chon Buri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-86', _1: 'Chumphon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-46', _1: 'Kalasin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-62', _1: 'Kamphaeng Phet'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-71', _1: 'Kanchanaburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-40', _1: 'Khon Kaen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-81', _1: 'Krabi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-52', _1: 'Lampang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-51', _1: 'Lamphun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-42', _1: 'Loei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-16', _1: 'Lop Buri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-58', _1: 'Mae Hong Son'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-44', _1: 'Maha Sarakham'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-49', _1: 'Mukdahan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-26', _1: 'Nakhon Nayok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-73', _1: 'Nakhon Pathom'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-48', _1: 'Nakhon Phanom'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-30', _1: 'Nakhon Ratchasima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-60', _1: 'Nakhon Sawan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-80', _1: 'Nakhon Si Thammarat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-55', _1: 'Nan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-96', _1: 'Narathiwat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-39', _1: 'Nong Bua Lam Phu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-43', _1: 'Nong Khai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-12', _1: 'Nonthaburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-13', _1: 'Pathum Thani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-94', _1: 'Pattani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-82', _1: 'Phangnga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-93', _1: 'Phatthalung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-56', _1: 'Phayao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-67', _1: 'Phetchabun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-76', _1: 'Phetchaburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-66', _1: 'Phichit'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-65', _1: 'Phitsanulok'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-54', _1: 'Phrae'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-14', _1: 'Phra Nakhon Si Ayutthaya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-83', _1: 'Phuket'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-25', _1: 'Prachin Buri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-77', _1: 'Prachuap Khiri Khan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-85', _1: 'Ranong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-70', _1: 'Ratchaburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-21', _1: 'Rayong'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-45', _1: 'Roi Et'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-27', _1: 'Sa Kaeo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-47', _1: 'Sakon Nakhon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-11', _1: 'Samut Prakan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-74', _1: 'Samut Sakhon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-75', _1: 'Samut Songkhram'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-19', _1: 'Saraburi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-91', _1: 'Satun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-17', _1: 'Sing Buri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-33', _1: 'Si Sa Ket'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-90', _1: 'Songkhla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-64', _1: 'Sukhothai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-72', _1: 'Suphan Buri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-84', _1: 'Surat Thani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-32', _1: 'Surin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-63', _1: 'Tak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-92', _1: 'Trang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-23', _1: 'Trat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-34', _1: 'Ubon Ratchathani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-41', _1: 'Udon Thani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-61', _1: 'Uthai Thani'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-53', _1: 'Uttaradit'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-95', _1: 'Yala'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TH-35', _1: 'Yasothon'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TJ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TJ-DU', _1: 'Dushanbe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TJ-GB', _1: 'Kŭhistoni Badakhshon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TJ-KT', _1: 'Khatlon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TJ-SU', _1: 'Sughd'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TJ-RA', _1: 'Nohiyahoi Tobei Jumhurí'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'TK': - return {ctor: '[]'}; - case 'TL': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-AL', _1: 'Aileu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-AN', _1: 'Ainaro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-BA', _1: 'Baucau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-BO', _1: 'Bobonaro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-CO', _1: 'Cova Lima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-DI', _1: 'Díli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-ER', _1: 'Ermera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-LA', _1: 'Lautem'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-LI', _1: 'Liquiça'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-MT', _1: 'Manatuto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-MF', _1: 'Manufahi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-OE', _1: 'Oecussi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TL-VI', _1: 'Viqueque'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-A', _1: 'Ahal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-B', _1: 'Balkan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-D', _1: 'Daşoguz'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-L', _1: 'Lebap'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-M', _1: 'Mary'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TM-S', _1: 'Aşgabat'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'TN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-31', _1: 'Béja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-13', _1: 'Ben Arous'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-23', _1: 'Bizerte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-81', _1: 'Gabès'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-71', _1: 'Gafsa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-32', _1: 'Jendouba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-41', _1: 'Kairouan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-42', _1: 'Kasserine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-73', _1: 'Kébili'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-12', _1: 'L\'Ariana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-14', _1: 'La Manouba'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-33', _1: 'Le Kef'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-53', _1: 'Mahdia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-82', _1: 'Médenine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-52', _1: 'Monastir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-21', _1: 'Nabeul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-61', _1: 'Sfax'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-43', _1: 'Sidi Bouzid'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-34', _1: 'Siliana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-51', _1: 'Sousse'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-83', _1: 'Tataouine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-72', _1: 'Tozeur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-11', _1: 'Tunis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TN-22', _1: 'Zaghouan'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TO': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TO-01', _1: '\'Eua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TO-02', _1: 'Ha\'apai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TO-03', _1: 'Niuas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TO-04', _1: 'Tongatapu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TO-05', _1: 'Vava\'u'}, - _1: {ctor: '[]'} - } - } - } - } - }; - case 'TR': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-01', _1: 'Adana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-02', _1: 'Adıyaman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-03', _1: 'Afyonkarahisar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-04', _1: 'Ağrı'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-68', _1: 'Aksaray'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-05', _1: 'Amasya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-06', _1: 'Ankara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-07', _1: 'Antalya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-75', _1: 'Ardahan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-08', _1: 'Artvin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-09', _1: 'Aydın'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-10', _1: 'Balıkesir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-74', _1: 'Bartın'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-72', _1: 'Batman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-69', _1: 'Bayburt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-11', _1: 'Bilecik'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-12', _1: 'Bingöl'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-13', _1: 'Bitlis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-14', _1: 'Bolu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-15', _1: 'Burdur'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-16', _1: 'Bursa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-17', _1: 'Çanakkale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-18', _1: 'Çankırı'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-19', _1: 'Çorum'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-20', _1: 'Denizli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-21', _1: 'Diyarbakır'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-81', _1: 'Düzce'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-22', _1: 'Edirne'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-23', _1: 'Elazığ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-24', _1: 'Erzincan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-25', _1: 'Erzurum'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-26', _1: 'Eskişehir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-27', _1: 'Gaziantep'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-28', _1: 'Giresun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-29', _1: 'Gümüşhane'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-30', _1: 'Hakkâri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-31', _1: 'Hatay'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-76', _1: 'Iğdır'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-32', _1: 'Isparta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-34', _1: 'İstanbul'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-35', _1: 'İzmir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-46', _1: 'Kahramanmaraş'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-78', _1: 'Karabük'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-70', _1: 'Karaman'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-36', _1: 'Kars'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-37', _1: 'Kastamonu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-38', _1: 'Kayseri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-71', _1: 'Kırıkkale'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-39', _1: 'Kırklareli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-40', _1: 'Kırşehir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-79', _1: 'Kilis'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-41', _1: 'Kocaeli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-42', _1: 'Konya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-43', _1: 'Kütahya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-44', _1: 'Malatya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-45', _1: 'Manisa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-47', _1: 'Mardin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-33', _1: 'Mersin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-48', _1: 'Muğla'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-49', _1: 'Muş'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-50', _1: 'Nevşehir'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-51', _1: 'Niğde'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-52', _1: 'Ordu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-80', _1: 'Osmaniye'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-53', _1: 'Rize'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-54', _1: 'Sakarya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-55', _1: 'Samsun'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-56', _1: 'Siirt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-57', _1: 'Sinop'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-58', _1: 'Sivas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-63', _1: 'Şanlıurfa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-73', _1: 'Şırnak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-59', _1: 'Tekirdağ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-60', _1: 'Tokat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-61', _1: 'Trabzon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-62', _1: 'Tunceli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-64', _1: 'Uşak'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-65', _1: 'Van'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-77', _1: 'Yalova'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-66', _1: 'Yozgat'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TR-67', _1: 'Zonguldak'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TT': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-CTT', _1: 'Couva-Tabaquite-Talparo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-DMN', _1: 'Diego Martin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-MRC', _1: 'Mayaro-Rio Claro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-PED', _1: 'Penal-Debe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-PRT', _1: 'Princes Town'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-SGE', _1: 'Sangre Grande'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-SJL', _1: 'San Juan-Laventille'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-SIP', _1: 'Siparia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-TUP', _1: 'Tunapuna-Piarco'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-ARI', _1: 'Arima'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-CHA', _1: 'Chaguanas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-PTF', _1: 'Point Fortin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-POS', _1: 'Port of Spain'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-SFO', _1: 'San Fernando'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TT-TOB', _1: 'Tobago'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TV': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-FUN', _1: 'Funafuti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NMG', _1: 'Nanumanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NMA', _1: 'Nanumea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NIT', _1: 'Niutao'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NUI', _1: 'Nui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NKF', _1: 'Nukufetau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-NKL', _1: 'Nukulaelae'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TV-VAI', _1: 'Vaitupu'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - }; - case 'TW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-CHA', _1: 'Changhua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-CYI', _1: 'Chiayi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-CYQ', _1: 'Chiayi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-HSZ', _1: 'Hsinchu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-HSQ', _1: 'Hsinchu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-HUA', _1: 'Hualien'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-KHH', _1: 'Kaohsiung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-KEE', _1: 'Keelung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-KIN', _1: 'Kinmen'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-LIE', _1: 'Lienchiang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-MIA', _1: 'Miaoli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-NAN', _1: 'Nantou'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-NWT', _1: 'New Taipei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-PEN', _1: 'Penghu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-PIF', _1: 'Pingtung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-TXG', _1: 'Taichung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-TNN', _1: 'Tainan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-TPE', _1: 'Taipei'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-TTT', _1: 'Taitung'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-TAO', _1: 'Taoyuan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-ILA', _1: 'Yilan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TW-YUN', _1: 'Yunlin'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'TZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-01', _1: 'Arusha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-02', _1: 'Dar es Salaam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-03', _1: 'Dodoma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-27', _1: 'Geita'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-04', _1: 'Iringa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-05', _1: 'Kagera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-06', _1: 'Pemba North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-07', _1: 'Zanzibar North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-28', _1: 'Katavi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-08', _1: 'Kigoma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-09', _1: 'Kilimanjaro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-10', _1: 'Pemba South'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-11', _1: 'Zanzibar South'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-12', _1: 'Lindi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-26', _1: 'Manyara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-13', _1: 'Mara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-14', _1: 'Mbeya'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-15', _1: 'Zanzibar West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-16', _1: 'Morogoro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-17', _1: 'Mtwara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-18', _1: 'Mwanza'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-29', _1: 'Njombe'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-19', _1: 'Coast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-20', _1: 'Rukwa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-21', _1: 'Ruvuma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-22', _1: 'Shinyanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-30', _1: 'Simiyu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-23', _1: 'Singida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-24', _1: 'Tabora'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'TZ-25', _1: 'Tanga'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'UA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-71', _1: 'Cherkaska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-74', _1: 'Chernihivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-77', _1: 'Chernivetska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-12', _1: 'Dnipropetrovska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-14', _1: 'Donetska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-26', _1: 'Ivano-Frankivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-63', _1: 'Kharkivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-65', _1: 'Khersonska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-68', _1: 'Khmelnytska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-35', _1: 'Kirovohradska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-32', _1: 'Kyivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-09', _1: 'Luhanska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-46', _1: 'Lvivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-48', _1: 'Mykolaivska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-51', _1: 'Odeska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-53', _1: 'Poltavska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-56', _1: 'Rivnenska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-59', _1: 'Sumska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-61', _1: 'Ternopilska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-05', _1: 'Vinnytska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-07', _1: 'Volynska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-21', _1: 'Zakarpatska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-23', _1: 'Zaporizka oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-18', _1: 'Zhytomyrska oblast'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-43', _1: 'Avtonomna Respublika Krym'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-30', _1: 'Kyiv'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UA-40', _1: 'Sevastopol'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'UG': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UG-C', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UG-E', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UG-N', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UG-W', _1: 'Western'}, - _1: {ctor: '[]'} - } - } - } - }; - case 'UM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-81', _1: 'Baker Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-84', _1: 'Howland Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-86', _1: 'Jarvis Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-67', _1: 'Johnston Atoll'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-89', _1: 'Kingman Reef'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-71', _1: 'Midway Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-76', _1: 'Navassa Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-95', _1: 'Palmyra Atoll'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UM-79', _1: 'Wake Island'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'UN': - return {ctor: '[]'}; - case 'US': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-AL', _1: 'Alabama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-AK', _1: 'Alaska'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-AZ', _1: 'Arizona'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-AR', _1: 'Arkansas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-CA', _1: 'California'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-CO', _1: 'Colorado'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-CT', _1: 'Connecticut'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-DE', _1: 'Delaware'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-FL', _1: 'Florida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-GA', _1: 'Georgia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-HI', _1: 'Hawaii'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-ID', _1: 'Idaho'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-IL', _1: 'Illinois'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-IN', _1: 'Indiana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-IA', _1: 'Iowa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-KS', _1: 'Kansas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-KY', _1: 'Kentucky'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-LA', _1: 'Louisiana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-ME', _1: 'Maine'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MD', _1: 'Maryland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MA', _1: 'Massachusetts'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MI', _1: 'Michigan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MN', _1: 'Minnesota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MS', _1: 'Mississippi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MO', _1: 'Missouri'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MT', _1: 'Montana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NE', _1: 'Nebraska'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NV', _1: 'Nevada'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NH', _1: 'New Hampshire'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NJ', _1: 'New Jersey'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NM', _1: 'New Mexico'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NY', _1: 'New York'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-NC', _1: 'North Carolina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-ND', _1: 'North Dakota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-OH', _1: 'Ohio'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-OK', _1: 'Oklahoma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-OR', _1: 'Oregon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-PA', _1: 'Pennsylvania'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-RI', _1: 'Rhode Island'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-SC', _1: 'South Carolina'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-SD', _1: 'South Dakota'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-TN', _1: 'Tennessee'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-TX', _1: 'Texas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-UT', _1: 'Utah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-VT', _1: 'Vermont'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-VA', _1: 'Virginia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-WA', _1: 'Washington'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-WV', _1: 'West Virginia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-WI', _1: 'Wisconsin'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-WY', _1: 'Wyoming'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-DC', _1: 'District of Columbia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-AS', _1: 'American Samoa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-GU', _1: 'Guam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-MP', _1: 'Northern Mariana Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-PR', _1: 'Puerto Rico'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-UM', _1: 'United States Minor Outlying Islands'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'US-VI', _1: 'Virgin Islands, U.S.'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'UY': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-AR', _1: 'Artigas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-CA', _1: 'Canelones'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-CL', _1: 'Cerro Largo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-CO', _1: 'Colonia'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-DU', _1: 'Durazno'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-FS', _1: 'Flores'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-FD', _1: 'Florida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-LA', _1: 'Lavalleja'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-MA', _1: 'Maldonado'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-MO', _1: 'Montevideo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-PA', _1: 'Paysandú'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-RN', _1: 'Río Negro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-RV', _1: 'Rivera'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-RO', _1: 'Rocha'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-SA', _1: 'Salto'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-SJ', _1: 'San José'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-SO', _1: 'Soriano'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-TA', _1: 'Tacuarembó'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UY-TT', _1: 'Treinta y Tres'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'UZ': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-TK', _1: 'Toshkent'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-AN', _1: 'Andijon'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-BU', _1: 'Buxoro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-FA', _1: 'Farg‘ona'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-JI', _1: 'Jizzax'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-NG', _1: 'Namangan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-NW', _1: 'Navoiy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-QA', _1: 'Qashqadaryo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-SA', _1: 'Samarqand'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-SI', _1: 'Sirdaryo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-SU', _1: 'Surxondaryo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-TO', _1: 'Toshkent'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-XO', _1: 'Xorazm'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'UZ-QR', _1: 'Qoraqalpog‘iston Respublikasi'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'VA': - return {ctor: '[]'}; - case 'VC': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-01', _1: 'Charlotte'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-06', _1: 'Grenadines'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-02', _1: 'Saint Andrew'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-03', _1: 'Saint David'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-04', _1: 'Saint George'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VC-05', _1: 'Saint Patrick'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'VE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-W', _1: 'Dependencias Federales'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-A', _1: 'Distrito Federal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-Z', _1: 'Amazonas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-B', _1: 'Anzoátegui'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-C', _1: 'Apure'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-D', _1: 'Aragua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-E', _1: 'Barinas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-F', _1: 'Bolívar'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-G', _1: 'Carabobo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-H', _1: 'Cojedes'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-Y', _1: 'Delta Amacuro'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-I', _1: 'Falcón'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-J', _1: 'Guárico'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-K', _1: 'Lara'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-L', _1: 'Mérida'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-M', _1: 'Miranda'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-N', _1: 'Monagas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-O', _1: 'Nueva Esparta'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-P', _1: 'Portuguesa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-R', _1: 'Sucre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-S', _1: 'Táchira'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-T', _1: 'Trujillo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-X', _1: 'Vargas'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-U', _1: 'Yaracuy'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VE-V', _1: 'Zulia'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'VG': - return {ctor: '[]'}; - case 'VI': - return {ctor: '[]'}; - case 'VN': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-44', _1: 'An Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-43', _1: 'Bà Rịa–Vũng Tàu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-54', _1: 'Bắc Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-53', _1: 'Bắc Kạn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-55', _1: 'Bạc Liêu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-56', _1: 'Bắc Ninh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-50', _1: 'Bến Tre'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-31', _1: 'Bình Định'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-57', _1: 'Bình Dương'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-58', _1: 'Bình Phước'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-40', _1: 'Bình Thuận'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-59', _1: 'Cà Mau'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-04', _1: 'Cao Bằng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-33', _1: 'Đắk Lắk'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-72', _1: 'Đắk Nông'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-71', _1: 'Điện Biên'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-39', _1: 'Đồng Nai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-45', _1: 'Đồng Tháp'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-30', _1: 'Gia Lai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-03', _1: 'Hà Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-63', _1: 'Hà Nam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-23', _1: 'Hà Tĩnh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-61', _1: 'Hải Dương'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-73', _1: 'Hậu Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-14', _1: 'Hòa Bình'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-66', _1: 'Hưng Yên'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-34', _1: 'Khánh Hòa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-47', _1: 'Kiên Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-28', _1: 'Kon Tum'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-01', _1: 'Lai Châu'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-35', _1: 'Lâm Đồng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-09', _1: 'Lạng Sơn'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-02', _1: 'Lào Cai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-41', _1: 'Long An'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-67', _1: 'Nam Định'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-22', _1: 'Nghệ An'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-18', _1: 'Ninh Bình'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-36', _1: 'Ninh Thuận'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-68', _1: 'Phú Thọ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-32', _1: 'Phú Yên'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-24', _1: 'Quảng Bình'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-27', _1: 'Quảng Nam'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-29', _1: 'Quảng Ngãi'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-13', _1: 'Quảng Ninh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-25', _1: 'Quảng Trị'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-52', _1: 'Sóc Trăng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-05', _1: 'Sơn La'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-37', _1: 'Tây Ninh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-20', _1: 'Thái Bình'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-69', _1: 'Thái Nguyên'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-21', _1: 'Thanh Hóa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-26', _1: 'Thừa Thiên–Huế'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-46', _1: 'Tiền Giang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-51', _1: 'Trà Vinh'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-07', _1: 'Tuyên Quang'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-49', _1: 'Vĩnh Long'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-70', _1: 'Vĩnh Phúc'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-06', _1: 'Yên Bái'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-CT', _1: 'Cần Thơ'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-DN', _1: 'Đà Nẵng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-HN', _1: 'Hà Nội'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-HP', _1: 'Hải Phòng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VN-SG', _1: 'Hồ Chí Minh'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'VU': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-MAP', _1: 'Malampa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-PAM', _1: 'Pénama'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-SAM', _1: 'Sanma'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-SEE', _1: 'Shéfa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-TAE', _1: 'Taféa'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'VU-TOB', _1: 'Torba'}, - _1: {ctor: '[]'} - } - } - } - } - } - }; - case 'WF': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WF-AL', _1: 'Alo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WF-SG', _1: 'Sigave'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WF-UV', _1: 'Uvea'}, - _1: {ctor: '[]'} - } - } - }; - case 'WS': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-AA', _1: 'A\'ana'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-AL', _1: 'Aiga-i-le-Tai'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-AT', _1: 'Atua'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-FA', _1: 'Fa\'asaleleaga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-GE', _1: 'Gaga\'emauga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-GI', _1: 'Gagaifomauga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-PA', _1: 'Palauli'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-SA', _1: 'Satupa\'itea'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-TU', _1: 'Tuamasaga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-VF', _1: 'Va\'a-o-Fonoti'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'WS-VS', _1: 'Vaisigano'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }; - case 'XK': - return {ctor: '[]'}; - case 'YE': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-SA', _1: 'Amānat al ‘Āşimah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-AB', _1: 'Abyān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-AD', _1: '‘Adan'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-DA', _1: 'Aḑ Ḑāli‘'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-BA', _1: 'Al Bayḑā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-HU', _1: 'Al Ḩudaydah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-JA', _1: 'Al Jawf'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-MR', _1: 'Al Mahrah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-MW', _1: 'Al Maḩwīt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-AM', _1: '‘Amrān'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-SU', _1: 'Arkhabīl Suquţrá'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-DH', _1: 'Dhamār'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-HD', _1: 'Ḩaḑramawt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-HJ', _1: 'Ḩajjah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-IB', _1: 'Ibb'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-LA', _1: 'Laḩij'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-MA', _1: 'Ma’rib'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-RA', _1: 'Raymah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-SD', _1: 'Şāʻdah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-SN', _1: 'Şanʻā’'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-SH', _1: 'Shabwah'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'YE-TA', _1: 'Tā‘izz'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }; - case 'YT': - return {ctor: '[]'}; - case 'ZA': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-EC', _1: 'Eastern Cape'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-FS', _1: 'Free State'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-GT', _1: 'Gauteng'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-NL', _1: 'KwaZulu-Natal'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-LP', _1: 'Limpopo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-MP', _1: 'Mpumalanga'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-NC', _1: 'Northern Cape'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-NW', _1: 'North West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZA-WC', _1: 'Western Cape'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - }; - case 'ZM': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-02', _1: 'Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-08', _1: 'Copperbelt'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-03', _1: 'Eastern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-04', _1: 'Luapula'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-09', _1: 'Lusaka'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-05', _1: 'Northern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-06', _1: 'North-Western'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-07', _1: 'Southern'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-01', _1: 'Western'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZM-10', _1: 'Muchinga'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - case 'ZW': - return { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-BU', _1: 'Bulawayo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-HA', _1: 'Harare'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MA', _1: 'Manicaland'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MC', _1: 'Mashonaland Central'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-ME', _1: 'Mashonaland East'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MW', _1: 'Mashonaland West'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MV', _1: 'Masvingo'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MN', _1: 'Matabeleland North'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MS', _1: 'Matabeleland South'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'ZW-MI', _1: 'Midlands'}, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }; - default: - return {ctor: '[]'}; - } -}; -var _Gizra$circuit_bid$Country$ZW = {ctor: 'ZW'}; -var _Gizra$circuit_bid$Country$ZM = {ctor: 'ZM'}; -var _Gizra$circuit_bid$Country$ZA = {ctor: 'ZA'}; -var _Gizra$circuit_bid$Country$YT = {ctor: 'YT'}; -var _Gizra$circuit_bid$Country$YE = {ctor: 'YE'}; -var _Gizra$circuit_bid$Country$XK = {ctor: 'XK'}; -var _Gizra$circuit_bid$Country$WS = {ctor: 'WS'}; -var _Gizra$circuit_bid$Country$WF = {ctor: 'WF'}; -var _Gizra$circuit_bid$Country$VU = {ctor: 'VU'}; -var _Gizra$circuit_bid$Country$VN = {ctor: 'VN'}; -var _Gizra$circuit_bid$Country$VI = {ctor: 'VI'}; -var _Gizra$circuit_bid$Country$VG = {ctor: 'VG'}; -var _Gizra$circuit_bid$Country$VE = {ctor: 'VE'}; -var _Gizra$circuit_bid$Country$VC = {ctor: 'VC'}; -var _Gizra$circuit_bid$Country$VA = {ctor: 'VA'}; -var _Gizra$circuit_bid$Country$UZ = {ctor: 'UZ'}; -var _Gizra$circuit_bid$Country$UY = {ctor: 'UY'}; -var _Gizra$circuit_bid$Country$US = {ctor: 'US'}; -var _Gizra$circuit_bid$Country$UN = {ctor: 'UN'}; -var _Gizra$circuit_bid$Country$UM = {ctor: 'UM'}; -var _Gizra$circuit_bid$Country$UG = {ctor: 'UG'}; -var _Gizra$circuit_bid$Country$UA = {ctor: 'UA'}; -var _Gizra$circuit_bid$Country$TZ = {ctor: 'TZ'}; -var _Gizra$circuit_bid$Country$TW = {ctor: 'TW'}; -var _Gizra$circuit_bid$Country$TV = {ctor: 'TV'}; -var _Gizra$circuit_bid$Country$TT = {ctor: 'TT'}; -var _Gizra$circuit_bid$Country$TR = {ctor: 'TR'}; -var _Gizra$circuit_bid$Country$TO = {ctor: 'TO'}; -var _Gizra$circuit_bid$Country$TN = {ctor: 'TN'}; -var _Gizra$circuit_bid$Country$TM = {ctor: 'TM'}; -var _Gizra$circuit_bid$Country$TL = {ctor: 'TL'}; -var _Gizra$circuit_bid$Country$TK = {ctor: 'TK'}; -var _Gizra$circuit_bid$Country$TJ = {ctor: 'TJ'}; -var _Gizra$circuit_bid$Country$TH = {ctor: 'TH'}; -var _Gizra$circuit_bid$Country$TG = {ctor: 'TG'}; -var _Gizra$circuit_bid$Country$TF = {ctor: 'TF'}; -var _Gizra$circuit_bid$Country$TD = {ctor: 'TD'}; -var _Gizra$circuit_bid$Country$TC = {ctor: 'TC'}; -var _Gizra$circuit_bid$Country$TA = {ctor: 'TA'}; -var _Gizra$circuit_bid$Country$SZ = {ctor: 'SZ'}; -var _Gizra$circuit_bid$Country$SY = {ctor: 'SY'}; -var _Gizra$circuit_bid$Country$SX = {ctor: 'SX'}; -var _Gizra$circuit_bid$Country$SV = {ctor: 'SV'}; -var _Gizra$circuit_bid$Country$ST = {ctor: 'ST'}; -var _Gizra$circuit_bid$Country$SS = {ctor: 'SS'}; -var _Gizra$circuit_bid$Country$SR = {ctor: 'SR'}; -var _Gizra$circuit_bid$Country$SO = {ctor: 'SO'}; -var _Gizra$circuit_bid$Country$SN = {ctor: 'SN'}; -var _Gizra$circuit_bid$Country$SM = {ctor: 'SM'}; -var _Gizra$circuit_bid$Country$SL = {ctor: 'SL'}; -var _Gizra$circuit_bid$Country$SK = {ctor: 'SK'}; -var _Gizra$circuit_bid$Country$SJ = {ctor: 'SJ'}; -var _Gizra$circuit_bid$Country$SI = {ctor: 'SI'}; -var _Gizra$circuit_bid$Country$SH = {ctor: 'SH'}; -var _Gizra$circuit_bid$Country$SG = {ctor: 'SG'}; -var _Gizra$circuit_bid$Country$SE = {ctor: 'SE'}; -var _Gizra$circuit_bid$Country$SD = {ctor: 'SD'}; -var _Gizra$circuit_bid$Country$SC = {ctor: 'SC'}; -var _Gizra$circuit_bid$Country$SB = {ctor: 'SB'}; -var _Gizra$circuit_bid$Country$SA = {ctor: 'SA'}; -var _Gizra$circuit_bid$Country$RW = {ctor: 'RW'}; -var _Gizra$circuit_bid$Country$RU = {ctor: 'RU'}; -var _Gizra$circuit_bid$Country$RS = {ctor: 'RS'}; -var _Gizra$circuit_bid$Country$RO = {ctor: 'RO'}; -var _Gizra$circuit_bid$Country$RE = {ctor: 'RE'}; -var _Gizra$circuit_bid$Country$QO = {ctor: 'QO'}; -var _Gizra$circuit_bid$Country$QA = {ctor: 'QA'}; -var _Gizra$circuit_bid$Country$PY = {ctor: 'PY'}; -var _Gizra$circuit_bid$Country$PW = {ctor: 'PW'}; -var _Gizra$circuit_bid$Country$PT = {ctor: 'PT'}; -var _Gizra$circuit_bid$Country$PS = {ctor: 'PS'}; -var _Gizra$circuit_bid$Country$PR = {ctor: 'PR'}; -var _Gizra$circuit_bid$Country$PN = {ctor: 'PN'}; -var _Gizra$circuit_bid$Country$PM = {ctor: 'PM'}; -var _Gizra$circuit_bid$Country$PL = {ctor: 'PL'}; -var _Gizra$circuit_bid$Country$PK = {ctor: 'PK'}; -var _Gizra$circuit_bid$Country$PH = {ctor: 'PH'}; -var _Gizra$circuit_bid$Country$PG = {ctor: 'PG'}; -var _Gizra$circuit_bid$Country$PF = {ctor: 'PF'}; -var _Gizra$circuit_bid$Country$PE = {ctor: 'PE'}; -var _Gizra$circuit_bid$Country$PA = {ctor: 'PA'}; -var _Gizra$circuit_bid$Country$OM = {ctor: 'OM'}; -var _Gizra$circuit_bid$Country$NZ = {ctor: 'NZ'}; -var _Gizra$circuit_bid$Country$NU = {ctor: 'NU'}; -var _Gizra$circuit_bid$Country$NR = {ctor: 'NR'}; -var _Gizra$circuit_bid$Country$NP = {ctor: 'NP'}; -var _Gizra$circuit_bid$Country$NO = {ctor: 'NO'}; -var _Gizra$circuit_bid$Country$NL = {ctor: 'NL'}; -var _Gizra$circuit_bid$Country$NI = {ctor: 'NI'}; -var _Gizra$circuit_bid$Country$NG = {ctor: 'NG'}; -var _Gizra$circuit_bid$Country$NF = {ctor: 'NF'}; -var _Gizra$circuit_bid$Country$NE = {ctor: 'NE'}; -var _Gizra$circuit_bid$Country$NC = {ctor: 'NC'}; -var _Gizra$circuit_bid$Country$NA = {ctor: 'NA'}; -var _Gizra$circuit_bid$Country$MZ = {ctor: 'MZ'}; -var _Gizra$circuit_bid$Country$MY = {ctor: 'MY'}; -var _Gizra$circuit_bid$Country$MX = {ctor: 'MX'}; -var _Gizra$circuit_bid$Country$MW = {ctor: 'MW'}; -var _Gizra$circuit_bid$Country$MV = {ctor: 'MV'}; -var _Gizra$circuit_bid$Country$MU = {ctor: 'MU'}; -var _Gizra$circuit_bid$Country$MT = {ctor: 'MT'}; -var _Gizra$circuit_bid$Country$MS = {ctor: 'MS'}; -var _Gizra$circuit_bid$Country$MR = {ctor: 'MR'}; -var _Gizra$circuit_bid$Country$MQ = {ctor: 'MQ'}; -var _Gizra$circuit_bid$Country$MP = {ctor: 'MP'}; -var _Gizra$circuit_bid$Country$MO = {ctor: 'MO'}; -var _Gizra$circuit_bid$Country$MN = {ctor: 'MN'}; -var _Gizra$circuit_bid$Country$MM = {ctor: 'MM'}; -var _Gizra$circuit_bid$Country$ML = {ctor: 'ML'}; -var _Gizra$circuit_bid$Country$MK = {ctor: 'MK'}; -var _Gizra$circuit_bid$Country$MH = {ctor: 'MH'}; -var _Gizra$circuit_bid$Country$MG = {ctor: 'MG'}; -var _Gizra$circuit_bid$Country$MF = {ctor: 'MF'}; -var _Gizra$circuit_bid$Country$ME = {ctor: 'ME'}; -var _Gizra$circuit_bid$Country$MD = {ctor: 'MD'}; -var _Gizra$circuit_bid$Country$MC = {ctor: 'MC'}; -var _Gizra$circuit_bid$Country$MA = {ctor: 'MA'}; -var _Gizra$circuit_bid$Country$LY = {ctor: 'LY'}; -var _Gizra$circuit_bid$Country$LV = {ctor: 'LV'}; -var _Gizra$circuit_bid$Country$LU = {ctor: 'LU'}; -var _Gizra$circuit_bid$Country$LT = {ctor: 'LT'}; -var _Gizra$circuit_bid$Country$LS = {ctor: 'LS'}; -var _Gizra$circuit_bid$Country$LR = {ctor: 'LR'}; -var _Gizra$circuit_bid$Country$LK = {ctor: 'LK'}; -var _Gizra$circuit_bid$Country$LI = {ctor: 'LI'}; -var _Gizra$circuit_bid$Country$LC = {ctor: 'LC'}; -var _Gizra$circuit_bid$Country$LB = {ctor: 'LB'}; -var _Gizra$circuit_bid$Country$LA = {ctor: 'LA'}; -var _Gizra$circuit_bid$Country$KZ = {ctor: 'KZ'}; -var _Gizra$circuit_bid$Country$KY = {ctor: 'KY'}; -var _Gizra$circuit_bid$Country$KW = {ctor: 'KW'}; -var _Gizra$circuit_bid$Country$KR = {ctor: 'KR'}; -var _Gizra$circuit_bid$Country$KP = {ctor: 'KP'}; -var _Gizra$circuit_bid$Country$KN = {ctor: 'KN'}; -var _Gizra$circuit_bid$Country$KM = {ctor: 'KM'}; -var _Gizra$circuit_bid$Country$KI = {ctor: 'KI'}; -var _Gizra$circuit_bid$Country$KH = {ctor: 'KH'}; -var _Gizra$circuit_bid$Country$KG = {ctor: 'KG'}; -var _Gizra$circuit_bid$Country$KE = {ctor: 'KE'}; -var _Gizra$circuit_bid$Country$JP = {ctor: 'JP'}; -var _Gizra$circuit_bid$Country$JO = {ctor: 'JO'}; -var _Gizra$circuit_bid$Country$JM = {ctor: 'JM'}; -var _Gizra$circuit_bid$Country$JE = {ctor: 'JE'}; -var _Gizra$circuit_bid$Country$IT = {ctor: 'IT'}; -var _Gizra$circuit_bid$Country$IS = {ctor: 'IS'}; -var _Gizra$circuit_bid$Country$IR = {ctor: 'IR'}; -var _Gizra$circuit_bid$Country$IQ = {ctor: 'IQ'}; -var _Gizra$circuit_bid$Country$IO = {ctor: 'IO'}; -var _Gizra$circuit_bid$Country$IN = {ctor: 'IN'}; -var _Gizra$circuit_bid$Country$IM = {ctor: 'IM'}; -var _Gizra$circuit_bid$Country$IL = {ctor: 'IL'}; -var _Gizra$circuit_bid$Country$IE = {ctor: 'IE'}; -var _Gizra$circuit_bid$Country$ID = {ctor: 'ID'}; -var _Gizra$circuit_bid$Country$IC = {ctor: 'IC'}; -var _Gizra$circuit_bid$Country$HU = {ctor: 'HU'}; -var _Gizra$circuit_bid$Country$HT = {ctor: 'HT'}; -var _Gizra$circuit_bid$Country$HR = {ctor: 'HR'}; -var _Gizra$circuit_bid$Country$HN = {ctor: 'HN'}; -var _Gizra$circuit_bid$Country$HM = {ctor: 'HM'}; -var _Gizra$circuit_bid$Country$HK = {ctor: 'HK'}; -var _Gizra$circuit_bid$Country$GY = {ctor: 'GY'}; -var _Gizra$circuit_bid$Country$GW = {ctor: 'GW'}; -var _Gizra$circuit_bid$Country$GU = {ctor: 'GU'}; -var _Gizra$circuit_bid$Country$GT = {ctor: 'GT'}; -var _Gizra$circuit_bid$Country$GS = {ctor: 'GS'}; -var _Gizra$circuit_bid$Country$GR = {ctor: 'GR'}; -var _Gizra$circuit_bid$Country$GQ = {ctor: 'GQ'}; -var _Gizra$circuit_bid$Country$GP = {ctor: 'GP'}; -var _Gizra$circuit_bid$Country$GN = {ctor: 'GN'}; -var _Gizra$circuit_bid$Country$GM = {ctor: 'GM'}; -var _Gizra$circuit_bid$Country$GL = {ctor: 'GL'}; -var _Gizra$circuit_bid$Country$GI = {ctor: 'GI'}; -var _Gizra$circuit_bid$Country$GH = {ctor: 'GH'}; -var _Gizra$circuit_bid$Country$GG = {ctor: 'GG'}; -var _Gizra$circuit_bid$Country$GF = {ctor: 'GF'}; -var _Gizra$circuit_bid$Country$GE = {ctor: 'GE'}; -var _Gizra$circuit_bid$Country$GD = {ctor: 'GD'}; -var _Gizra$circuit_bid$Country$GB = {ctor: 'GB'}; -var _Gizra$circuit_bid$Country$GA = {ctor: 'GA'}; -var _Gizra$circuit_bid$Country$FR = {ctor: 'FR'}; -var _Gizra$circuit_bid$Country$FO = {ctor: 'FO'}; -var _Gizra$circuit_bid$Country$FM = {ctor: 'FM'}; -var _Gizra$circuit_bid$Country$FK = {ctor: 'FK'}; -var _Gizra$circuit_bid$Country$FJ = {ctor: 'FJ'}; -var _Gizra$circuit_bid$Country$FI = {ctor: 'FI'}; -var _Gizra$circuit_bid$Country$EZ = {ctor: 'EZ'}; -var _Gizra$circuit_bid$Country$EU = {ctor: 'EU'}; -var _Gizra$circuit_bid$Country$ET = {ctor: 'ET'}; -var _Gizra$circuit_bid$Country$ES = {ctor: 'ES'}; -var _Gizra$circuit_bid$Country$ER = {ctor: 'ER'}; -var _Gizra$circuit_bid$Country$EH = {ctor: 'EH'}; -var _Gizra$circuit_bid$Country$EG = {ctor: 'EG'}; -var _Gizra$circuit_bid$Country$EE = {ctor: 'EE'}; -var _Gizra$circuit_bid$Country$EC = {ctor: 'EC'}; -var _Gizra$circuit_bid$Country$EA = {ctor: 'EA'}; -var _Gizra$circuit_bid$Country$DZ = {ctor: 'DZ'}; -var _Gizra$circuit_bid$Country$DO = {ctor: 'DO'}; -var _Gizra$circuit_bid$Country$DM = {ctor: 'DM'}; -var _Gizra$circuit_bid$Country$DK = {ctor: 'DK'}; -var _Gizra$circuit_bid$Country$DJ = {ctor: 'DJ'}; -var _Gizra$circuit_bid$Country$DG = {ctor: 'DG'}; -var _Gizra$circuit_bid$Country$DE = {ctor: 'DE'}; -var _Gizra$circuit_bid$Country$CZ = {ctor: 'CZ'}; -var _Gizra$circuit_bid$Country$CY = {ctor: 'CY'}; -var _Gizra$circuit_bid$Country$CX = {ctor: 'CX'}; -var _Gizra$circuit_bid$Country$CW = {ctor: 'CW'}; -var _Gizra$circuit_bid$Country$CV = {ctor: 'CV'}; -var _Gizra$circuit_bid$Country$CU = {ctor: 'CU'}; -var _Gizra$circuit_bid$Country$CR = {ctor: 'CR'}; -var _Gizra$circuit_bid$Country$CP = {ctor: 'CP'}; -var _Gizra$circuit_bid$Country$CO = {ctor: 'CO'}; -var _Gizra$circuit_bid$Country$CN = {ctor: 'CN'}; -var _Gizra$circuit_bid$Country$CM = {ctor: 'CM'}; -var _Gizra$circuit_bid$Country$CL = {ctor: 'CL'}; -var _Gizra$circuit_bid$Country$CK = {ctor: 'CK'}; -var _Gizra$circuit_bid$Country$CI = {ctor: 'CI'}; -var _Gizra$circuit_bid$Country$CH = {ctor: 'CH'}; -var _Gizra$circuit_bid$Country$CG = {ctor: 'CG'}; -var _Gizra$circuit_bid$Country$CF = {ctor: 'CF'}; -var _Gizra$circuit_bid$Country$CD = {ctor: 'CD'}; -var _Gizra$circuit_bid$Country$CC = {ctor: 'CC'}; -var _Gizra$circuit_bid$Country$CA = {ctor: 'CA'}; -var _Gizra$circuit_bid$Country$BZ = {ctor: 'BZ'}; -var _Gizra$circuit_bid$Country$BY = {ctor: 'BY'}; -var _Gizra$circuit_bid$Country$BW = {ctor: 'BW'}; -var _Gizra$circuit_bid$Country$BV = {ctor: 'BV'}; -var _Gizra$circuit_bid$Country$BT = {ctor: 'BT'}; -var _Gizra$circuit_bid$Country$BS = {ctor: 'BS'}; -var _Gizra$circuit_bid$Country$BR = {ctor: 'BR'}; -var _Gizra$circuit_bid$Country$BQ = {ctor: 'BQ'}; -var _Gizra$circuit_bid$Country$BO = {ctor: 'BO'}; -var _Gizra$circuit_bid$Country$BN = {ctor: 'BN'}; -var _Gizra$circuit_bid$Country$BM = {ctor: 'BM'}; -var _Gizra$circuit_bid$Country$BL = {ctor: 'BL'}; -var _Gizra$circuit_bid$Country$BJ = {ctor: 'BJ'}; -var _Gizra$circuit_bid$Country$BI = {ctor: 'BI'}; -var _Gizra$circuit_bid$Country$BH = {ctor: 'BH'}; -var _Gizra$circuit_bid$Country$BG = {ctor: 'BG'}; -var _Gizra$circuit_bid$Country$BF = {ctor: 'BF'}; -var _Gizra$circuit_bid$Country$BE = {ctor: 'BE'}; -var _Gizra$circuit_bid$Country$BD = {ctor: 'BD'}; -var _Gizra$circuit_bid$Country$BB = {ctor: 'BB'}; -var _Gizra$circuit_bid$Country$BA = {ctor: 'BA'}; -var _Gizra$circuit_bid$Country$AZ = {ctor: 'AZ'}; -var _Gizra$circuit_bid$Country$AX = {ctor: 'AX'}; -var _Gizra$circuit_bid$Country$AW = {ctor: 'AW'}; -var _Gizra$circuit_bid$Country$AU = {ctor: 'AU'}; -var _Gizra$circuit_bid$Country$AT = {ctor: 'AT'}; -var _Gizra$circuit_bid$Country$AS = {ctor: 'AS'}; -var _Gizra$circuit_bid$Country$AR = {ctor: 'AR'}; -var _Gizra$circuit_bid$Country$AQ = {ctor: 'AQ'}; -var _Gizra$circuit_bid$Country$AO = {ctor: 'AO'}; -var _Gizra$circuit_bid$Country$AM = {ctor: 'AM'}; -var _Gizra$circuit_bid$Country$AL = {ctor: 'AL'}; -var _Gizra$circuit_bid$Country$AI = {ctor: 'AI'}; -var _Gizra$circuit_bid$Country$AG = {ctor: 'AG'}; -var _Gizra$circuit_bid$Country$AF = {ctor: 'AF'}; -var _Gizra$circuit_bid$Country$AE = {ctor: 'AE'}; -var _Gizra$circuit_bid$Country$AD = {ctor: 'AD'}; -var _Gizra$circuit_bid$Country$AC = {ctor: 'AC'}; -var _Gizra$circuit_bid$Country$allCountries = { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AQ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AX, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$AZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BB, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BJ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BQ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$BZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CX, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$CZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DJ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$DZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ER, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ES, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ET, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$EZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FJ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$FR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GB, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GQ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$GY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$HU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ID, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IQ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$IT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$JE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$JM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$JO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$JP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$KZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LB, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$LY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ME, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ML, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MQ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MX, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$MZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NP, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$NZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$OM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$PY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$QA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$QO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$RE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$RO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$RS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$RU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$RW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SB, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SJ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ST, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SX, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$SZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TD, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TH, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TJ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TL, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TO, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TR, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TV, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TW, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$TZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$US, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UY, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$UZ, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VC, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VG, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VI, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VN, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$VU, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$WF, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$WS, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$XK, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$YE, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$YT, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ZA, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ZM, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Country$ZW, - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -}; - -var _Gizra$circuit_bid$BidStep_Model$BidStep = F3( - function (a, b, c) { - return {from: a, amount: b, type_: c}; - }); -var _Gizra$circuit_bid$BidStep_Model$AutomaticRound = {ctor: 'AutomaticRound'}; -var _Gizra$circuit_bid$BidStep_Model$Manual = {ctor: 'Manual'}; -var _Gizra$circuit_bid$BidStep_Model$Regular = {ctor: 'Regular'}; - -var _stoeffel$editable$Editable$isDirtyWith = F2( - function (f, x) { - var _p0 = x; - if (_p0.ctor === 'ReadOnly') { - return false; - } else { - return A2(f, _p0._0, _p0._1); - } - }); -var _stoeffel$editable$Editable$isDirty = function (x) { - return A2( - _stoeffel$editable$Editable$isDirtyWith, - F2( - function (x, y) { - return !_elm_lang$core$Native_Utils.eq(x, y); - }), - x); -}; -var _stoeffel$editable$Editable$value = function (x) { - var _p1 = x; - if (_p1.ctor === 'Editable') { - return _p1._1; - } else { - return _p1._0; - } -}; -var _stoeffel$editable$Editable$ReadOnly = function (a) { - return {ctor: 'ReadOnly', _0: a}; -}; -var _stoeffel$editable$Editable$save = function (x) { - var _p2 = x; - if (_p2.ctor === 'Editable') { - return _stoeffel$editable$Editable$ReadOnly(_p2._1); - } else { - return x; - } -}; -var _stoeffel$editable$Editable$cancel = function (x) { - var _p3 = x; - if (_p3.ctor === 'Editable') { - return _stoeffel$editable$Editable$ReadOnly(_p3._0); - } else { - return x; - } -}; -var _stoeffel$editable$Editable$Editable = F2( - function (a, b) { - return {ctor: 'Editable', _0: a, _1: b}; - }); -var _stoeffel$editable$Editable$edit = function (x) { - var _p4 = x; - if (_p4.ctor === 'Editable') { - return x; - } else { - var _p5 = _p4._0; - return A2(_stoeffel$editable$Editable$Editable, _p5, _p5); - } -}; -var _stoeffel$editable$Editable$map = F2( - function (f, x) { - var _p6 = x; - if (_p6.ctor === 'Editable') { - return A2( - _stoeffel$editable$Editable$Editable, - _p6._0, - f(_p6._1)); - } else { - return _stoeffel$editable$Editable$ReadOnly(_p6._0); - } - }); -var _stoeffel$editable$Editable$update = function (value) { - return _stoeffel$editable$Editable$map( - _elm_lang$core$Basics$always(value)); -}; - -var _krisajenkins$remotedata$RemoteData$isNotAsked = function (data) { - var _p0 = data; - if (_p0.ctor === 'NotAsked') { - return true; - } else { - return false; - } -}; -var _krisajenkins$remotedata$RemoteData$isLoading = function (data) { - var _p1 = data; - if (_p1.ctor === 'Loading') { - return true; - } else { - return false; - } -}; -var _krisajenkins$remotedata$RemoteData$isFailure = function (data) { - var _p2 = data; - if (_p2.ctor === 'Failure') { - return true; - } else { - return false; - } -}; -var _krisajenkins$remotedata$RemoteData$isSuccess = function (data) { - var _p3 = data; - if (_p3.ctor === 'Success') { - return true; - } else { - return false; - } -}; -var _krisajenkins$remotedata$RemoteData$withDefault = F2( - function ($default, data) { - var _p4 = data; - if (_p4.ctor === 'Success') { - return _p4._0; - } else { - return $default; - } - }); -var _krisajenkins$remotedata$RemoteData$Success = function (a) { - return {ctor: 'Success', _0: a}; -}; -var _krisajenkins$remotedata$RemoteData$succeed = _krisajenkins$remotedata$RemoteData$Success; -var _krisajenkins$remotedata$RemoteData$prism = { - reverseGet: _krisajenkins$remotedata$RemoteData$Success, - getOption: function (data) { - var _p5 = data; - if (_p5.ctor === 'Success') { - return _elm_lang$core$Maybe$Just(_p5._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } - } -}; -var _krisajenkins$remotedata$RemoteData$Failure = function (a) { - return {ctor: 'Failure', _0: a}; -}; -var _krisajenkins$remotedata$RemoteData$fromMaybe = F2( - function (error, maybe) { - var _p6 = maybe; - if (_p6.ctor === 'Nothing') { - return _krisajenkins$remotedata$RemoteData$Failure(error); - } else { - return _krisajenkins$remotedata$RemoteData$Success(_p6._0); - } - }); -var _krisajenkins$remotedata$RemoteData$fromResult = function (result) { - var _p7 = result; - if (_p7.ctor === 'Err') { - return _krisajenkins$remotedata$RemoteData$Failure(_p7._0); - } else { - return _krisajenkins$remotedata$RemoteData$Success(_p7._0); - } -}; -var _krisajenkins$remotedata$RemoteData$asCmd = _elm_lang$core$Task$attempt(_krisajenkins$remotedata$RemoteData$fromResult); -var _krisajenkins$remotedata$RemoteData$sendRequest = _elm_lang$http$Http$send(_krisajenkins$remotedata$RemoteData$fromResult); -var _krisajenkins$remotedata$RemoteData$fromTask = function (_p8) { - return A2( - _elm_lang$core$Task$onError, - function (_p9) { - return _elm_lang$core$Task$succeed( - _krisajenkins$remotedata$RemoteData$Failure(_p9)); - }, - A2(_elm_lang$core$Task$map, _krisajenkins$remotedata$RemoteData$Success, _p8)); -}; -var _krisajenkins$remotedata$RemoteData$Loading = {ctor: 'Loading'}; -var _krisajenkins$remotedata$RemoteData$NotAsked = {ctor: 'NotAsked'}; -var _krisajenkins$remotedata$RemoteData$map = F2( - function (f, data) { - var _p10 = data; - switch (_p10.ctor) { - case 'Success': - return _krisajenkins$remotedata$RemoteData$Success( - f(_p10._0)); - case 'Loading': - return _krisajenkins$remotedata$RemoteData$Loading; - case 'NotAsked': - return _krisajenkins$remotedata$RemoteData$NotAsked; - default: - return _krisajenkins$remotedata$RemoteData$Failure(_p10._0); - } - }); -var _krisajenkins$remotedata$RemoteData$toMaybe = function (_p11) { - return A2( - _krisajenkins$remotedata$RemoteData$withDefault, - _elm_lang$core$Maybe$Nothing, - A2(_krisajenkins$remotedata$RemoteData$map, _elm_lang$core$Maybe$Just, _p11)); -}; -var _krisajenkins$remotedata$RemoteData$mapError = F2( - function (f, data) { - var _p12 = data; - switch (_p12.ctor) { - case 'Success': - return _krisajenkins$remotedata$RemoteData$Success(_p12._0); - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure( - f(_p12._0)); - case 'Loading': - return _krisajenkins$remotedata$RemoteData$Loading; - default: - return _krisajenkins$remotedata$RemoteData$NotAsked; - } - }); -var _krisajenkins$remotedata$RemoteData$mapBoth = F2( - function (successFn, errorFn) { - return function (_p13) { - return A2( - _krisajenkins$remotedata$RemoteData$mapError, - errorFn, - A2(_krisajenkins$remotedata$RemoteData$map, successFn, _p13)); - }; - }); -var _krisajenkins$remotedata$RemoteData$andThen = F2( - function (f, data) { - var _p14 = data; - switch (_p14.ctor) { - case 'Success': - return f(_p14._0); - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure(_p14._0); - case 'NotAsked': - return _krisajenkins$remotedata$RemoteData$NotAsked; - default: - return _krisajenkins$remotedata$RemoteData$Loading; - } - }); -var _krisajenkins$remotedata$RemoteData$andMap = F2( - function (wrappedValue, wrappedFunction) { - var _p15 = {ctor: '_Tuple2', _0: wrappedFunction, _1: wrappedValue}; - _v11_5: - do { - _v11_4: - do { - _v11_3: - do { - _v11_2: - do { - switch (_p15._0.ctor) { - case 'Success': - switch (_p15._1.ctor) { - case 'Success': - return _krisajenkins$remotedata$RemoteData$Success( - _p15._0._0(_p15._1._0)); - case 'Failure': - break _v11_2; - case 'Loading': - break _v11_4; - default: - return _krisajenkins$remotedata$RemoteData$NotAsked; - } - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure(_p15._0._0); - case 'Loading': - switch (_p15._1.ctor) { - case 'Failure': - break _v11_2; - case 'Loading': - break _v11_3; - case 'NotAsked': - break _v11_3; - default: - break _v11_3; - } - default: - switch (_p15._1.ctor) { - case 'Failure': - break _v11_2; - case 'Loading': - break _v11_4; - case 'NotAsked': - break _v11_5; - default: - break _v11_5; - } - } - } while(false); - return _krisajenkins$remotedata$RemoteData$Failure(_p15._1._0); - } while(false); - return _krisajenkins$remotedata$RemoteData$Loading; - } while(false); - return _krisajenkins$remotedata$RemoteData$Loading; - } while(false); - return _krisajenkins$remotedata$RemoteData$NotAsked; - }); -var _krisajenkins$remotedata$RemoteData$map2 = F3( - function (f, a, b) { - return A2( - _krisajenkins$remotedata$RemoteData$andMap, - b, - A2(_krisajenkins$remotedata$RemoteData$map, f, a)); - }); -var _krisajenkins$remotedata$RemoteData$fromList = A2( - _elm_lang$core$List$foldr, - _krisajenkins$remotedata$RemoteData$map2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })), - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '[]'})); -var _krisajenkins$remotedata$RemoteData$map3 = F4( - function (f, a, b, c) { - return A2( - _krisajenkins$remotedata$RemoteData$andMap, - c, - A2( - _krisajenkins$remotedata$RemoteData$andMap, - b, - A2(_krisajenkins$remotedata$RemoteData$map, f, a))); - }); -var _krisajenkins$remotedata$RemoteData$append = F2( - function (a, b) { - return A2( - _krisajenkins$remotedata$RemoteData$andMap, - b, - A2( - _krisajenkins$remotedata$RemoteData$map, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - a)); - }); -var _krisajenkins$remotedata$RemoteData$update = F2( - function (f, remoteData) { - var _p16 = remoteData; - switch (_p16.ctor) { - case 'Success': - var _p17 = f(_p16._0); - var first = _p17._0; - var second = _p17._1; - return { - ctor: '_Tuple2', - _0: _krisajenkins$remotedata$RemoteData$Success(first), - _1: second - }; - case 'NotAsked': - return {ctor: '_Tuple2', _0: _krisajenkins$remotedata$RemoteData$NotAsked, _1: _elm_lang$core$Platform_Cmd$none}; - case 'Loading': - return {ctor: '_Tuple2', _0: _krisajenkins$remotedata$RemoteData$Loading, _1: _elm_lang$core$Platform_Cmd$none}; - default: - return { - ctor: '_Tuple2', - _0: _krisajenkins$remotedata$RemoteData$Failure(_p16._0), - _1: _elm_lang$core$Platform_Cmd$none - }; - } - }); - -var _Gizra$elm_editable_webdata$Editable_WebData$toWebData = function (_p0) { - var _p1 = _p0; - return _p1._1; -}; -var _Gizra$elm_editable_webdata$Editable_WebData$toEditable = function (_p2) { - var _p3 = _p2; - return _p3._0; -}; -var _Gizra$elm_editable_webdata$Editable_WebData$EditableWebData = F2( - function (a, b) { - return {ctor: 'EditableWebData', _0: a, _1: b}; - }); -var _Gizra$elm_editable_webdata$Editable_WebData$create = function (record) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$EditableWebData, - _stoeffel$editable$Editable$ReadOnly(record), - _krisajenkins$remotedata$RemoteData$NotAsked); -}; -var _Gizra$elm_editable_webdata$Editable_WebData$map = F2( - function (f, _p4) { - var _p5 = _p4; - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$EditableWebData, - f(_p5._0), - _p5._1); - }); -var _Gizra$elm_editable_webdata$Editable_WebData$state = F2( - function (newWebData, _p6) { - var _p7 = _p6; - return A2(_Gizra$elm_editable_webdata$Editable_WebData$EditableWebData, _p7._0, newWebData); - }); - -var _elm_lang$core$Random$onSelfMsg = F3( - function (_p1, _p0, seed) { - return _elm_lang$core$Task$succeed(seed); - }); -var _elm_lang$core$Random$magicNum8 = 2147483562; -var _elm_lang$core$Random$range = function (_p2) { - return {ctor: '_Tuple2', _0: 0, _1: _elm_lang$core$Random$magicNum8}; -}; -var _elm_lang$core$Random$magicNum7 = 2147483399; -var _elm_lang$core$Random$magicNum6 = 2147483563; -var _elm_lang$core$Random$magicNum5 = 3791; -var _elm_lang$core$Random$magicNum4 = 40692; -var _elm_lang$core$Random$magicNum3 = 52774; -var _elm_lang$core$Random$magicNum2 = 12211; -var _elm_lang$core$Random$magicNum1 = 53668; -var _elm_lang$core$Random$magicNum0 = 40014; -var _elm_lang$core$Random$step = F2( - function (_p3, seed) { - var _p4 = _p3; - return _p4._0(seed); - }); -var _elm_lang$core$Random$onEffects = F3( - function (router, commands, seed) { - var _p5 = commands; - if (_p5.ctor === '[]') { - return _elm_lang$core$Task$succeed(seed); - } else { - var _p6 = A2(_elm_lang$core$Random$step, _p5._0._0, seed); - var value = _p6._0; - var newSeed = _p6._1; - return A2( - _elm_lang$core$Task$andThen, - function (_p7) { - return A3(_elm_lang$core$Random$onEffects, router, _p5._1, newSeed); - }, - A2(_elm_lang$core$Platform$sendToApp, router, value)); - } - }); -var _elm_lang$core$Random$listHelp = F4( - function (list, n, generate, seed) { - listHelp: - while (true) { - if (_elm_lang$core$Native_Utils.cmp(n, 1) < 0) { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$List$reverse(list), - _1: seed - }; - } else { - var _p8 = generate(seed); - var value = _p8._0; - var newSeed = _p8._1; - var _v2 = {ctor: '::', _0: value, _1: list}, - _v3 = n - 1, - _v4 = generate, - _v5 = newSeed; - list = _v2; - n = _v3; - generate = _v4; - seed = _v5; - continue listHelp; - } - } - }); -var _elm_lang$core$Random$minInt = -2147483648; -var _elm_lang$core$Random$maxInt = 2147483647; -var _elm_lang$core$Random$iLogBase = F2( - function (b, i) { - return (_elm_lang$core$Native_Utils.cmp(i, b) < 0) ? 1 : (1 + A2(_elm_lang$core$Random$iLogBase, b, (i / b) | 0)); - }); -var _elm_lang$core$Random$command = _elm_lang$core$Native_Platform.leaf('Random'); -var _elm_lang$core$Random$Generator = function (a) { - return {ctor: 'Generator', _0: a}; -}; -var _elm_lang$core$Random$list = F2( - function (n, _p9) { - var _p10 = _p9; - return _elm_lang$core$Random$Generator( - function (seed) { - return A4( - _elm_lang$core$Random$listHelp, - {ctor: '[]'}, - n, - _p10._0, - seed); - }); - }); -var _elm_lang$core$Random$map = F2( - function (func, _p11) { - var _p12 = _p11; - return _elm_lang$core$Random$Generator( - function (seed0) { - var _p13 = _p12._0(seed0); - var a = _p13._0; - var seed1 = _p13._1; - return { - ctor: '_Tuple2', - _0: func(a), - _1: seed1 - }; - }); - }); -var _elm_lang$core$Random$map2 = F3( - function (func, _p15, _p14) { - var _p16 = _p15; - var _p17 = _p14; - return _elm_lang$core$Random$Generator( - function (seed0) { - var _p18 = _p16._0(seed0); - var a = _p18._0; - var seed1 = _p18._1; - var _p19 = _p17._0(seed1); - var b = _p19._0; - var seed2 = _p19._1; - return { - ctor: '_Tuple2', - _0: A2(func, a, b), - _1: seed2 - }; - }); - }); -var _elm_lang$core$Random$pair = F2( - function (genA, genB) { - return A3( - _elm_lang$core$Random$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - genA, - genB); - }); -var _elm_lang$core$Random$map3 = F4( - function (func, _p22, _p21, _p20) { - var _p23 = _p22; - var _p24 = _p21; - var _p25 = _p20; - return _elm_lang$core$Random$Generator( - function (seed0) { - var _p26 = _p23._0(seed0); - var a = _p26._0; - var seed1 = _p26._1; - var _p27 = _p24._0(seed1); - var b = _p27._0; - var seed2 = _p27._1; - var _p28 = _p25._0(seed2); - var c = _p28._0; - var seed3 = _p28._1; - return { - ctor: '_Tuple2', - _0: A3(func, a, b, c), - _1: seed3 - }; - }); - }); -var _elm_lang$core$Random$map4 = F5( - function (func, _p32, _p31, _p30, _p29) { - var _p33 = _p32; - var _p34 = _p31; - var _p35 = _p30; - var _p36 = _p29; - return _elm_lang$core$Random$Generator( - function (seed0) { - var _p37 = _p33._0(seed0); - var a = _p37._0; - var seed1 = _p37._1; - var _p38 = _p34._0(seed1); - var b = _p38._0; - var seed2 = _p38._1; - var _p39 = _p35._0(seed2); - var c = _p39._0; - var seed3 = _p39._1; - var _p40 = _p36._0(seed3); - var d = _p40._0; - var seed4 = _p40._1; - return { - ctor: '_Tuple2', - _0: A4(func, a, b, c, d), - _1: seed4 - }; - }); - }); -var _elm_lang$core$Random$map5 = F6( - function (func, _p45, _p44, _p43, _p42, _p41) { - var _p46 = _p45; - var _p47 = _p44; - var _p48 = _p43; - var _p49 = _p42; - var _p50 = _p41; - return _elm_lang$core$Random$Generator( - function (seed0) { - var _p51 = _p46._0(seed0); - var a = _p51._0; - var seed1 = _p51._1; - var _p52 = _p47._0(seed1); - var b = _p52._0; - var seed2 = _p52._1; - var _p53 = _p48._0(seed2); - var c = _p53._0; - var seed3 = _p53._1; - var _p54 = _p49._0(seed3); - var d = _p54._0; - var seed4 = _p54._1; - var _p55 = _p50._0(seed4); - var e = _p55._0; - var seed5 = _p55._1; - return { - ctor: '_Tuple2', - _0: A5(func, a, b, c, d, e), - _1: seed5 - }; - }); - }); -var _elm_lang$core$Random$andThen = F2( - function (callback, _p56) { - var _p57 = _p56; - return _elm_lang$core$Random$Generator( - function (seed) { - var _p58 = _p57._0(seed); - var result = _p58._0; - var newSeed = _p58._1; - var _p59 = callback(result); - var genB = _p59._0; - return genB(newSeed); - }); - }); -var _elm_lang$core$Random$State = F2( - function (a, b) { - return {ctor: 'State', _0: a, _1: b}; - }); -var _elm_lang$core$Random$initState = function (seed) { - var s = A2(_elm_lang$core$Basics$max, seed, 0 - seed); - var q = (s / (_elm_lang$core$Random$magicNum6 - 1)) | 0; - var s2 = A2(_elm_lang$core$Basics_ops['%'], q, _elm_lang$core$Random$magicNum7 - 1); - var s1 = A2(_elm_lang$core$Basics_ops['%'], s, _elm_lang$core$Random$magicNum6 - 1); - return A2(_elm_lang$core$Random$State, s1 + 1, s2 + 1); -}; -var _elm_lang$core$Random$next = function (_p60) { - var _p61 = _p60; - var _p63 = _p61._1; - var _p62 = _p61._0; - var k2 = (_p63 / _elm_lang$core$Random$magicNum3) | 0; - var rawState2 = (_elm_lang$core$Random$magicNum4 * (_p63 - (k2 * _elm_lang$core$Random$magicNum3))) - (k2 * _elm_lang$core$Random$magicNum5); - var newState2 = (_elm_lang$core$Native_Utils.cmp(rawState2, 0) < 0) ? (rawState2 + _elm_lang$core$Random$magicNum7) : rawState2; - var k1 = (_p62 / _elm_lang$core$Random$magicNum1) | 0; - var rawState1 = (_elm_lang$core$Random$magicNum0 * (_p62 - (k1 * _elm_lang$core$Random$magicNum1))) - (k1 * _elm_lang$core$Random$magicNum2); - var newState1 = (_elm_lang$core$Native_Utils.cmp(rawState1, 0) < 0) ? (rawState1 + _elm_lang$core$Random$magicNum6) : rawState1; - var z = newState1 - newState2; - var newZ = (_elm_lang$core$Native_Utils.cmp(z, 1) < 0) ? (z + _elm_lang$core$Random$magicNum8) : z; - return { - ctor: '_Tuple2', - _0: newZ, - _1: A2(_elm_lang$core$Random$State, newState1, newState2) - }; -}; -var _elm_lang$core$Random$split = function (_p64) { - var _p65 = _p64; - var _p68 = _p65._1; - var _p67 = _p65._0; - var _p66 = _elm_lang$core$Tuple$second( - _elm_lang$core$Random$next(_p65)); - var t1 = _p66._0; - var t2 = _p66._1; - var new_s2 = _elm_lang$core$Native_Utils.eq(_p68, 1) ? (_elm_lang$core$Random$magicNum7 - 1) : (_p68 - 1); - var new_s1 = _elm_lang$core$Native_Utils.eq(_p67, _elm_lang$core$Random$magicNum6 - 1) ? 1 : (_p67 + 1); - return { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$Random$State, new_s1, t2), - _1: A2(_elm_lang$core$Random$State, t1, new_s2) - }; -}; -var _elm_lang$core$Random$Seed = function (a) { - return {ctor: 'Seed', _0: a}; -}; -var _elm_lang$core$Random$int = F2( - function (a, b) { - return _elm_lang$core$Random$Generator( - function (_p69) { - var _p70 = _p69; - var _p75 = _p70._0; - var base = 2147483561; - var f = F3( - function (n, acc, state) { - f: - while (true) { - var _p71 = n; - if (_p71 === 0) { - return {ctor: '_Tuple2', _0: acc, _1: state}; - } else { - var _p72 = _p75.next(state); - var x = _p72._0; - var nextState = _p72._1; - var _v27 = n - 1, - _v28 = x + (acc * base), - _v29 = nextState; - n = _v27; - acc = _v28; - state = _v29; - continue f; - } - } - }); - var _p73 = (_elm_lang$core$Native_Utils.cmp(a, b) < 0) ? {ctor: '_Tuple2', _0: a, _1: b} : {ctor: '_Tuple2', _0: b, _1: a}; - var lo = _p73._0; - var hi = _p73._1; - var k = (hi - lo) + 1; - var n = A2(_elm_lang$core$Random$iLogBase, base, k); - var _p74 = A3(f, n, 1, _p75.state); - var v = _p74._0; - var nextState = _p74._1; - return { - ctor: '_Tuple2', - _0: lo + A2(_elm_lang$core$Basics_ops['%'], v, k), - _1: _elm_lang$core$Random$Seed( - _elm_lang$core$Native_Utils.update( - _p75, - {state: nextState})) - }; - }); - }); -var _elm_lang$core$Random$bool = A2( - _elm_lang$core$Random$map, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - })(1), - A2(_elm_lang$core$Random$int, 0, 1)); -var _elm_lang$core$Random$float = F2( - function (a, b) { - return _elm_lang$core$Random$Generator( - function (seed) { - var _p76 = A2( - _elm_lang$core$Random$step, - A2(_elm_lang$core$Random$int, _elm_lang$core$Random$minInt, _elm_lang$core$Random$maxInt), - seed); - var number = _p76._0; - var newSeed = _p76._1; - var negativeOneToOne = _elm_lang$core$Basics$toFloat(number) / _elm_lang$core$Basics$toFloat(_elm_lang$core$Random$maxInt - _elm_lang$core$Random$minInt); - var _p77 = (_elm_lang$core$Native_Utils.cmp(a, b) < 0) ? {ctor: '_Tuple2', _0: a, _1: b} : {ctor: '_Tuple2', _0: b, _1: a}; - var lo = _p77._0; - var hi = _p77._1; - var scaled = ((lo + hi) / 2) + ((hi - lo) * negativeOneToOne); - return {ctor: '_Tuple2', _0: scaled, _1: newSeed}; - }); - }); -var _elm_lang$core$Random$initialSeed = function (n) { - return _elm_lang$core$Random$Seed( - { - state: _elm_lang$core$Random$initState(n), - next: _elm_lang$core$Random$next, - split: _elm_lang$core$Random$split, - range: _elm_lang$core$Random$range - }); -}; -var _elm_lang$core$Random$init = A2( - _elm_lang$core$Task$andThen, - function (t) { - return _elm_lang$core$Task$succeed( - _elm_lang$core$Random$initialSeed( - _elm_lang$core$Basics$round(t))); - }, - _elm_lang$core$Time$now); -var _elm_lang$core$Random$Generate = function (a) { - return {ctor: 'Generate', _0: a}; -}; -var _elm_lang$core$Random$generate = F2( - function (tagger, generator) { - return _elm_lang$core$Random$command( - _elm_lang$core$Random$Generate( - A2(_elm_lang$core$Random$map, tagger, generator))); - }); -var _elm_lang$core$Random$cmdMap = F2( - function (func, _p78) { - var _p79 = _p78; - return _elm_lang$core$Random$Generate( - A2(_elm_lang$core$Random$map, func, _p79._0)); - }); -_elm_lang$core$Native_Platform.effectManagers['Random'] = {pkg: 'elm-lang/core', init: _elm_lang$core$Random$init, onEffects: _elm_lang$core$Random$onEffects, onSelfMsg: _elm_lang$core$Random$onSelfMsg, tag: 'cmd', cmdMap: _elm_lang$core$Random$cmdMap}; - -var _mgold$elm_nonempty_list$List_Nonempty$foldl1 = F2( - function (f, _p0) { - var _p1 = _p0; - return A3(_elm_lang$core$List$foldl, f, _p1._0, _p1._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$foldl = F3( - function (f, b, _p2) { - var _p3 = _p2; - return A3( - _elm_lang$core$List$foldl, - f, - b, - {ctor: '::', _0: _p3._0, _1: _p3._1}); - }); -var _mgold$elm_nonempty_list$List_Nonempty$any = F2( - function (f, _p4) { - var _p5 = _p4; - return f(_p5._0) || A2(_elm_lang$core$List$any, f, _p5._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$all = F2( - function (f, _p6) { - var _p7 = _p6; - return f(_p7._0) && A2(_elm_lang$core$List$all, f, _p7._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$member = F2( - function (y, _p8) { - var _p9 = _p8; - return _elm_lang$core$Native_Utils.eq(_p9._0, y) || A2(_elm_lang$core$List$member, y, _p9._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$length = function (_p10) { - var _p11 = _p10; - return _elm_lang$core$List$length(_p11._1) + 1; -}; -var _mgold$elm_nonempty_list$List_Nonempty$isSingleton = function (_p12) { - var _p13 = _p12; - return _elm_lang$core$List$isEmpty(_p13._1); -}; -var _mgold$elm_nonempty_list$List_Nonempty$get = F2( - function (i, _p14) { - var _p15 = _p14; - var find = F2( - function (k, ys) { - find: - while (true) { - var _p16 = ys; - if (_p16.ctor === '[]') { - return _elm_lang$core$Native_Utils.crashCase( - 'List.Nonempty', - { - start: {line: 131, column: 13}, - end: {line: 139, column: 40} - }, - _p16)('This can\'t happen: attempted to take value at safe index from empty list'); - } else { - if (_elm_lang$core$Native_Utils.eq(k, 0)) { - return _p16._0; - } else { - var _v9 = k - 1, - _v10 = _p16._1; - k = _v9; - ys = _v10; - continue find; - } - } - } - }); - var j = A2( - _elm_lang$core$Basics_ops['%'], - i, - _mgold$elm_nonempty_list$List_Nonempty$length(_p15)); - return _elm_lang$core$Native_Utils.eq(j, 0) ? _p15._0 : A2(find, j - 1, _p15._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$sample = function (nonempty) { - return A2( - _elm_lang$core$Random$map, - function (i) { - return A2(_mgold$elm_nonempty_list$List_Nonempty$get, i, nonempty); - }, - A2( - _elm_lang$core$Random$int, - 0, - _mgold$elm_nonempty_list$List_Nonempty$length(nonempty) - 1)); -}; -var _mgold$elm_nonempty_list$List_Nonempty$toList = function (_p18) { - var _p19 = _p18; - return {ctor: '::', _0: _p19._0, _1: _p19._1}; -}; -var _mgold$elm_nonempty_list$List_Nonempty$tail = function (_p20) { - var _p21 = _p20; - return _p21._1; -}; -var _mgold$elm_nonempty_list$List_Nonempty$head = function (_p22) { - var _p23 = _p22; - return _p23._0; -}; -var _mgold$elm_nonempty_list$List_Nonempty$Nonempty = F2( - function (a, b) { - return {ctor: 'Nonempty', _0: a, _1: b}; - }); -var _mgold$elm_nonempty_list$List_Nonempty$fromElement = function (x) { - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - x, - {ctor: '[]'}); -}; -var _mgold$elm_nonempty_list$List_Nonempty$fromList = function (ys) { - var _p24 = ys; - if (_p24.ctor === '::') { - return _elm_lang$core$Maybe$Just( - A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p24._0, _p24._1)); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _mgold$elm_nonempty_list$List_Nonempty$cons = F2( - function (y, _p25) { - var _p26 = _p25; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - y, - {ctor: '::', _0: _p26._0, _1: _p26._1}); - }); -var _mgold$elm_nonempty_list$List_Nonempty_ops = _mgold$elm_nonempty_list$List_Nonempty_ops || {}; -_mgold$elm_nonempty_list$List_Nonempty_ops[':::'] = _mgold$elm_nonempty_list$List_Nonempty$cons; -var _mgold$elm_nonempty_list$List_Nonempty$append = F2( - function (_p28, _p27) { - var _p29 = _p28; - var _p30 = _p27; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p29._0, - A2( - _elm_lang$core$Basics_ops['++'], - _p29._1, - {ctor: '::', _0: _p30._0, _1: _p30._1})); - }); -var _mgold$elm_nonempty_list$List_Nonempty$pop = function (_p31) { - var _p32 = _p31; - var _p34 = _p32._1; - var _p33 = _p34; - if (_p33.ctor === '[]') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p32._0, _p34); - } else { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p33._0, _p33._1); - } -}; -var _mgold$elm_nonempty_list$List_Nonempty$reverse = function (_p35) { - var _p36 = _p35; - var revapp = function (_p37) { - revapp: - while (true) { - var _p38 = _p37; - var _p41 = _p38._0; - var _p40 = _p38._1; - var _p39 = _p38._2; - if (_p39.ctor === '[]') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p40, _p41); - } else { - var _v23 = { - ctor: '_Tuple3', - _0: {ctor: '::', _0: _p40, _1: _p41}, - _1: _p39._0, - _2: _p39._1 - }; - _p37 = _v23; - continue revapp; - } - } - }; - return revapp( - { - ctor: '_Tuple3', - _0: {ctor: '[]'}, - _1: _p36._0, - _2: _p36._1 - }); -}; -var _mgold$elm_nonempty_list$List_Nonempty$concat = function (_p42) { - var _p43 = _p42; - var _p44 = _p43._0; - var tl = A2( - _elm_lang$core$Basics_ops['++'], - _mgold$elm_nonempty_list$List_Nonempty$tail(_p44), - _elm_lang$core$List$concat( - A2(_elm_lang$core$List$map, _mgold$elm_nonempty_list$List_Nonempty$toList, _p43._1))); - var hd = _mgold$elm_nonempty_list$List_Nonempty$head(_p44); - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, hd, tl); -}; -var _mgold$elm_nonempty_list$List_Nonempty$replaceHead = F2( - function (y, _p45) { - var _p46 = _p45; - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, y, _p46._1); - }); -var _mgold$elm_nonempty_list$List_Nonempty$replaceTail = F2( - function (ys, _p47) { - var _p48 = _p47; - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p48._0, ys); - }); -var _mgold$elm_nonempty_list$List_Nonempty$dropTail = function (_p49) { - var _p50 = _p49; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p50._0, - {ctor: '[]'}); -}; -var _mgold$elm_nonempty_list$List_Nonempty$map = F2( - function (f, _p51) { - var _p52 = _p51; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - f(_p52._0), - A2(_elm_lang$core$List$map, f, _p52._1)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$concatMap = F2( - function (f, xs) { - return _mgold$elm_nonempty_list$List_Nonempty$concat( - A2(_mgold$elm_nonempty_list$List_Nonempty$map, f, xs)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$map2 = F3( - function (f, _p54, _p53) { - var _p55 = _p54; - var _p56 = _p53; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - A2(f, _p55._0, _p56._0), - A3(_elm_lang$core$List$map2, f, _p55._1, _p56._1)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$andMap = _mgold$elm_nonempty_list$List_Nonempty$map2( - F2( - function (x, y) { - return y(x); - })); -var _mgold$elm_nonempty_list$List_Nonempty$indexedMap = F2( - function (f, _p57) { - var _p58 = _p57; - var wrapped = F2( - function (i, d) { - return A2(f, i + 1, d); - }); - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - A2(f, 0, _p58._0), - A2(_elm_lang$core$List$indexedMap, wrapped, _p58._1)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$filter = F3( - function (p, d, _p59) { - var _p60 = _p59; - var _p63 = _p60._1; - var _p62 = _p60._0; - if (p(_p62)) { - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p62, - A2(_elm_lang$core$List$filter, p, _p63)); - } else { - var _p61 = A2(_elm_lang$core$List$filter, p, _p63); - if (_p61.ctor === '[]') { - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - d, - {ctor: '[]'}); - } else { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p61._0, _p61._1); - } - } - }); -var _mgold$elm_nonempty_list$List_Nonempty$sort = function (_p64) { - var _p65 = _p64; - var _p66 = _elm_lang$core$List$sort( - {ctor: '::', _0: _p65._0, _1: _p65._1}); - if (_p66.ctor === '::') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p66._0, _p66._1); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'List.Nonempty', - { - start: {line: 360, column: 5}, - end: {line: 365, column: 92} - }, - _p66)('This can\'t happen: sorting a nonempty list returned an empty list'); - } -}; -var _mgold$elm_nonempty_list$List_Nonempty$sortBy = F2( - function (f, _p68) { - var _p69 = _p68; - var _p70 = A2( - _elm_lang$core$List$sortBy, - f, - {ctor: '::', _0: _p69._0, _1: _p69._1}); - if (_p70.ctor === '::') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p70._0, _p70._1); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'List.Nonempty', - { - start: {line: 372, column: 5}, - end: {line: 377, column: 94} - }, - _p70)('This can\'t happen: sortBying a nonempty list returned an empty list'); - } - }); -var _mgold$elm_nonempty_list$List_Nonempty$sortWith = F2( - function (f, _p72) { - var _p73 = _p72; - var _p74 = A2( - _elm_lang$core$List$sortWith, - f, - {ctor: '::', _0: _p73._0, _1: _p73._1}); - if (_p74.ctor === '::') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p74._0, _p74._1); - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'List.Nonempty', - { - start: {line: 384, column: 5}, - end: {line: 389, column: 96} - }, - _p74)('This can\'t happen: sortWithing a nonempty list returned an empty list'); - } - }); -var _mgold$elm_nonempty_list$List_Nonempty$dedup = function (_p76) { - var _p77 = _p76; - var dedupe = F3( - function (prev, done, next) { - dedupe: - while (true) { - var _p78 = next; - if (_p78.ctor === '[]') { - return A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, prev, done); - } else { - var _p80 = _p78._1; - var _p79 = _p78._0; - if (_elm_lang$core$Native_Utils.eq(_p79, prev)) { - var _v42 = prev, - _v43 = done, - _v44 = _p80; - prev = _v42; - done = _v43; - next = _v44; - continue dedupe; - } else { - var _v45 = _p79, - _v46 = {ctor: '::', _0: prev, _1: done}, - _v47 = _p80; - prev = _v45; - done = _v46; - next = _v47; - continue dedupe; - } - } - } - }); - return _mgold$elm_nonempty_list$List_Nonempty$reverse( - A3( - dedupe, - _p77._0, - {ctor: '[]'}, - _p77._1)); -}; -var _mgold$elm_nonempty_list$List_Nonempty$uniq = function (_p81) { - var _p82 = _p81; - var _p86 = _p82._0; - var unique = F3( - function (seen, done, next) { - unique: - while (true) { - var _p83 = next; - if (_p83.ctor === '[]') { - return done; - } else { - var _p85 = _p83._1; - var _p84 = _p83._0; - if (A2(_elm_lang$core$List$member, _p84, seen)) { - var _v50 = seen, - _v51 = done, - _v52 = _p85; - seen = _v50; - done = _v51; - next = _v52; - continue unique; - } else { - var _v53 = {ctor: '::', _0: _p84, _1: seen}, - _v54 = A2(_mgold$elm_nonempty_list$List_Nonempty_ops[':::'], _p84, done), - _v55 = _p85; - seen = _v53; - done = _v54; - next = _v55; - continue unique; - } - } - } - }); - return _mgold$elm_nonempty_list$List_Nonempty$reverse( - A3( - unique, - { - ctor: '::', - _0: _p86, - _1: {ctor: '[]'} - }, - A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p86, - {ctor: '[]'}), - _p82._1)); -}; -var _mgold$elm_nonempty_list$List_Nonempty$scanl = F3( - function (f, b, _p87) { - var _p88 = _p87; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - b, - A3( - _elm_lang$core$List$scanl, - f, - A2(f, _p88._0, b), - _p88._1)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$scanl1 = F2( - function (f, _p89) { - var _p90 = _p89; - var _p92 = _p90._0; - var _p91 = _p90._1; - if (_p91.ctor === '[]') { - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p92, - {ctor: '[]'}); - } else { - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - _p92, - A3( - _elm_lang$core$List$scanl, - f, - A2(f, _p91._0, _p92), - _p91._1)); - } - }); -var _mgold$elm_nonempty_list$List_Nonempty$zip = F2( - function (_p94, _p93) { - var _p95 = _p94; - var _p96 = _p93; - return A2( - _mgold$elm_nonempty_list$List_Nonempty$Nonempty, - {ctor: '_Tuple2', _0: _p95._0, _1: _p96._0}, - A3( - _elm_lang$core$List$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _p95._1, - _p96._1)); - }); -var _mgold$elm_nonempty_list$List_Nonempty$unzip = function (_p97) { - var _p98 = _p97; - var _p99 = _elm_lang$core$List$unzip(_p98._1); - var xs = _p99._0; - var ys = _p99._1; - return { - ctor: '_Tuple2', - _0: A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p98._0._0, xs), - _1: A2(_mgold$elm_nonempty_list$List_Nonempty$Nonempty, _p98._0._1, ys) - }; -}; - -var _Gizra$circuit_bid$Item_Model$emptyImageStyle = {original: '', big: '', small: ''}; -var _Gizra$circuit_bid$Item_Model$Item = F7( - function (a, b, c, d, e, f, g) { - return {uuid: a, lotId: b, name: c, image: d, description: e, estimatedPrice: f, calculated: g}; - }); -var _Gizra$circuit_bid$Item_Model$ImageStyle = F3( - function (a, b, c) { - return {original: a, big: b, small: c}; - }); -var _Gizra$circuit_bid$Item_Model$StaticItem = F5( - function (a, b, c, d, e) { - return {name: a, image: b, description: c, estimatedPrice: d, lotId: e}; - }); -var _Gizra$circuit_bid$Item_Model$CalculatedItem = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return function (m) { - return function (n) { - return function (o) { - return function (p) { - return function (q) { - return function (r) { - return function (s) { - return {startingPrice: a, openingPrice: b, currentPrice: c, nextPrice: d, status: e, note: f, publicMessage: g, bidSteps: h, bids: i, bookBids: j, agentBids: k, minimumPrice: l, winningBid: m, winningUserTotalWon: n, callRequests: o, rallyStatus: p, consigner: q, autoClerk: r, futureBookBidAmounts: s}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Item_Model$CallRequest = function (a) { - return {bidderNumber: a}; -}; -var _Gizra$circuit_bid$Item_Model$Consigner = F3( - function (a, b, c) { - return {name: a, id: b, uuid: c}; - }); -var _Gizra$circuit_bid$Item_Model$Bump = function (a) { - return {ctor: 'Bump', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$Round = function (a) { - return {ctor: 'Round', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$GoneTransition = {ctor: 'GoneTransition'}; -var _Gizra$circuit_bid$Item_Model$Going = {ctor: 'Going'}; -var _Gizra$circuit_bid$Item_Model$Open = {ctor: 'Open'}; -var _Gizra$circuit_bid$Item_Model$Paused = {ctor: 'Paused'}; -var _Gizra$circuit_bid$Item_Model$Unsold = {ctor: 'Unsold'}; -var _Gizra$circuit_bid$Item_Model$Sold = {ctor: 'Sold'}; -var _Gizra$circuit_bid$Item_Model$MailOnly = {ctor: 'MailOnly'}; -var _Gizra$circuit_bid$Item_Model$LiveOnly = function (a) { - return {ctor: 'LiveOnly', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$ItemNotActiveButAlreadyHasLiveBids = {ctor: 'ItemNotActiveButAlreadyHasLiveBids'}; -var _Gizra$circuit_bid$Item_Model$Withdrawn = {ctor: 'Withdrawn'}; -var _Gizra$circuit_bid$Item_Model$SaleClosed = {ctor: 'SaleClosed'}; -var _Gizra$circuit_bid$Item_Model$SaleNotStarted = {ctor: 'SaleNotStarted'}; -var _Gizra$circuit_bid$Item_Model$ItemClosed = function (a) { - return {ctor: 'ItemClosed', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$ReadOnlyStatus = function (a) { - return {ctor: 'ReadOnlyStatus', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$EditableStatus = function (a) { - return {ctor: 'EditableStatus', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$OffStep = {ctor: 'OffStep'}; -var _Gizra$circuit_bid$Item_Model$OnStep = {ctor: 'OnStep'}; -var _Gizra$circuit_bid$Item_Model$None = {ctor: 'None'}; -var _Gizra$circuit_bid$Item_Model$Opening = function (a) { - return {ctor: 'Opening', _0: a}; -}; -var _Gizra$circuit_bid$Item_Model$Current = function (a) { - return {ctor: 'Current', _0: a}; -}; - -var _elm_community$maybe_extra$Maybe_Extra$foldrValues = F2( - function (item, list) { - var _p0 = item; - if (_p0.ctor === 'Nothing') { - return list; - } else { - return {ctor: '::', _0: _p0._0, _1: list}; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$values = A2( - _elm_lang$core$List$foldr, - _elm_community$maybe_extra$Maybe_Extra$foldrValues, - {ctor: '[]'}); -var _elm_community$maybe_extra$Maybe_Extra$filter = F2( - function (f, m) { - var _p1 = A2(_elm_lang$core$Maybe$map, f, m); - if ((_p1.ctor === 'Just') && (_p1._0 === true)) { - return m; - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$traverseArray = function (f) { - var step = F2( - function (e, acc) { - var _p2 = f(e); - if (_p2.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - return A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Array$push(_p2._0), - acc); - } - }); - return A2( - _elm_lang$core$Array$foldl, - step, - _elm_lang$core$Maybe$Just(_elm_lang$core$Array$empty)); -}; -var _elm_community$maybe_extra$Maybe_Extra$combineArray = _elm_community$maybe_extra$Maybe_Extra$traverseArray(_elm_lang$core$Basics$identity); -var _elm_community$maybe_extra$Maybe_Extra$traverse = function (f) { - var step = F2( - function (e, acc) { - var _p3 = f(e); - if (_p3.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - return A2( - _elm_lang$core$Maybe$map, - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })(_p3._0), - acc); - } - }); - return A2( - _elm_lang$core$List$foldr, - step, - _elm_lang$core$Maybe$Just( - {ctor: '[]'})); -}; -var _elm_community$maybe_extra$Maybe_Extra$combine = _elm_community$maybe_extra$Maybe_Extra$traverse(_elm_lang$core$Basics$identity); -var _elm_community$maybe_extra$Maybe_Extra$toArray = function (m) { - var _p4 = m; - if (_p4.ctor === 'Nothing') { - return _elm_lang$core$Array$empty; - } else { - return A2(_elm_lang$core$Array$repeat, 1, _p4._0); - } -}; -var _elm_community$maybe_extra$Maybe_Extra$toList = function (m) { - var _p5 = m; - if (_p5.ctor === 'Nothing') { - return {ctor: '[]'}; - } else { - return { - ctor: '::', - _0: _p5._0, - _1: {ctor: '[]'} - }; - } -}; -var _elm_community$maybe_extra$Maybe_Extra$orElse = F2( - function (ma, mb) { - var _p6 = mb; - if (_p6.ctor === 'Nothing') { - return ma; - } else { - return mb; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$orElseLazy = F2( - function (fma, mb) { - var _p7 = mb; - if (_p7.ctor === 'Nothing') { - return fma( - {ctor: '_Tuple0'}); - } else { - return mb; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$orLazy = F2( - function (ma, fmb) { - var _p8 = ma; - if (_p8.ctor === 'Nothing') { - return fmb( - {ctor: '_Tuple0'}); - } else { - return ma; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$or = F2( - function (ma, mb) { - var _p9 = ma; - if (_p9.ctor === 'Nothing') { - return mb; - } else { - return ma; - } - }); -var _elm_community$maybe_extra$Maybe_Extra$prev = _elm_lang$core$Maybe$map2(_elm_lang$core$Basics$always); -var _elm_community$maybe_extra$Maybe_Extra$next = _elm_lang$core$Maybe$map2( - _elm_lang$core$Basics$flip(_elm_lang$core$Basics$always)); -var _elm_community$maybe_extra$Maybe_Extra$andMap = _elm_lang$core$Maybe$map2( - F2( - function (x, y) { - return y(x); - })); -var _elm_community$maybe_extra$Maybe_Extra$unpack = F3( - function (d, f, m) { - var _p10 = m; - if (_p10.ctor === 'Nothing') { - return d( - {ctor: '_Tuple0'}); - } else { - return f(_p10._0); - } - }); -var _elm_community$maybe_extra$Maybe_Extra$unwrap = F3( - function (d, f, m) { - var _p11 = m; - if (_p11.ctor === 'Nothing') { - return d; - } else { - return f(_p11._0); - } - }); -var _elm_community$maybe_extra$Maybe_Extra$isJust = function (m) { - var _p12 = m; - if (_p12.ctor === 'Nothing') { - return false; - } else { - return true; - } -}; -var _elm_community$maybe_extra$Maybe_Extra$isNothing = function (m) { - var _p13 = m; - if (_p13.ctor === 'Nothing') { - return true; - } else { - return false; - } -}; -var _elm_community$maybe_extra$Maybe_Extra$join = function (mx) { - var _p14 = mx; - if (_p14.ctor === 'Just') { - return _p14._0; - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _elm_community$maybe_extra$Maybe_Extra_ops = _elm_community$maybe_extra$Maybe_Extra_ops || {}; -_elm_community$maybe_extra$Maybe_Extra_ops['?'] = F2( - function (mx, x) { - return A2(_elm_lang$core$Maybe$withDefault, x, mx); - }); - -var _Gizra$circuit_bid$Translate$translateCountry = function (country) { - var _p0 = country; - switch (_p0.ctor) { - case 'AC': - return {english: 'Ascension Island', dutch: 'Ascension Island', german: 'Ascension', hebrew: 'האי אסנשן', russian: 'Остров Вознесения', chinese: '阿森松岛', french: 'Île de l\'Ascension'}; - case 'AD': - return {english: 'Andorra', dutch: 'Andorra', german: 'Andorra', hebrew: 'אנדורה', russian: 'Андорра', chinese: '安道尔', french: 'Andorre'}; - case 'AE': - return {english: 'United Arab Emirates', dutch: 'United Arab Emirates', german: 'Vereinigte Arabische Emirate', hebrew: 'איחוד האמירויות הערביות', russian: 'Объединенные Арабские Эмираты', chinese: '阿拉伯联合酋长国', french: 'Émirats arabes unis'}; - case 'AF': - return {english: 'Afghanistan', dutch: 'Afghanistan', german: 'Afghanistan', hebrew: 'אפגניסטן', russian: 'Афганистан', chinese: '阿富汗', french: 'Afghanistan'}; - case 'AG': - return {english: 'Antigua & Barbuda', dutch: 'Antigua & Barbuda', german: 'Antigua und Barbuda', hebrew: 'אנטיגואה וברבודה', russian: 'Антигуа и Барбуда', chinese: '安提瓜和巴布达', french: 'Antigua-et-Barbuda'}; - case 'AI': - return {english: 'Anguilla', dutch: 'Anguilla', german: 'Anguilla', hebrew: 'אנגילה', russian: 'Ангилья', chinese: '安圭拉', french: 'Anguilla'}; - case 'AL': - return {english: 'Albania', dutch: 'Albanië', german: 'Albanien', hebrew: 'אלבניה', russian: 'Албания', chinese: '阿尔巴尼亚', french: 'Albanie'}; - case 'AM': - return {english: 'Armenia', dutch: 'Armenië', german: 'Armenien', hebrew: 'ארמניה', russian: 'Армения', chinese: '亚美尼亚', french: 'Arménie'}; - case 'AO': - return {english: 'Angola', dutch: 'Angola', german: 'Angola', hebrew: 'אנגולה', russian: 'Ангола', chinese: '安哥拉', french: 'Angola'}; - case 'AQ': - return {english: 'Antarctica', dutch: 'Antarctica', german: 'Antarktis', hebrew: 'אנטארקטיקה', russian: 'Антарктика', chinese: '南极洲', french: 'Antarctique'}; - case 'AR': - return {english: 'Argentina', dutch: 'Argentinië', german: 'Argentinien', hebrew: 'ארגנטינה', russian: 'Аргентина', chinese: '阿根廷', french: 'Argentine'}; - case 'AS': - return {english: 'American Samoa', dutch: 'American Samoa', german: 'Amerikanisch-Samoa', hebrew: 'סמואה האמריקנית', russian: 'Американское Самоа', chinese: '美属萨摩亚', french: 'Samoa américaines'}; - case 'AT': - return {english: 'Austria', dutch: 'Oostenrijk', german: 'Österreich', hebrew: 'אוסטריה', russian: 'Австрия', chinese: '奥地利', french: 'Autriche'}; - case 'AU': - return {english: 'Australia', dutch: 'Australië', german: 'Australien', hebrew: 'אוסטרליה', russian: 'Австралия', chinese: '澳大利亚', french: 'Australie'}; - case 'AW': - return {english: 'Aruba', dutch: 'Aruba', german: 'Aruba', hebrew: 'ארובה', russian: 'Аруба', chinese: '阿鲁巴', french: 'Aruba'}; - case 'AX': - return {english: 'Åland Islands', dutch: 'Åland Islands', german: 'Ålandinseln', hebrew: 'איי אולנד', russian: 'Аландские острова', chinese: '奥兰群岛', french: 'Îles Åland'}; - case 'AZ': - return {english: 'Azerbaijan', dutch: 'Azerbeidzjan', german: 'Aserbaidschan', hebrew: 'אזרבייג׳ן', russian: 'Азербайджан', chinese: '阿塞拜疆', french: 'Azerbaïdjan'}; - case 'BA': - return {english: 'Bosnia & Herzegovina', dutch: 'Bosnia & Herzegovina', german: 'Bosnien und Herzegowina', hebrew: 'בוסניה והרצגובינה', russian: 'Босния и Герцеговина', chinese: '波斯尼亚和黑塞哥维那', french: 'Bosnie-Herzégovine'}; - case 'BB': - return {english: 'Barbados', dutch: 'Barbados', german: 'Barbados', hebrew: 'ברבדוס', russian: 'Барбадос', chinese: '巴巴多斯', french: 'Barbade'}; - case 'BD': - return {english: 'Bangladesh', dutch: 'Bangladesh', german: 'Bangladesch', hebrew: 'בנגלדש', russian: 'Бангладеш', chinese: '孟加拉国', french: 'Bangladesh'}; - case 'BE': - return {english: 'Belgium', dutch: 'België', german: 'Belgien', hebrew: 'בלגיה', russian: 'Бельгия', chinese: '比利时', french: 'Belgique'}; - case 'BF': - return {english: 'Burkina Faso', dutch: 'Burkina Faso', german: 'Burkina Faso', hebrew: 'בורקינה פאסו', russian: 'Буркина-Фасо', chinese: '布基纳法索', french: 'Burkina Faso'}; - case 'BG': - return {english: 'Bulgaria', dutch: 'Bulgarije', german: 'Bulgarien', hebrew: 'בולגריה', russian: 'Болгария', chinese: '保加利亚', french: 'Bulgarie'}; - case 'BH': - return {english: 'Bahrain', dutch: 'Bahrein', german: 'Bahrain', hebrew: 'בחריין', russian: 'Бахрейн', chinese: '巴林', french: 'Bahreïn'}; - case 'BI': - return {english: 'Burundi', dutch: 'Burundi', german: 'Burundi', hebrew: 'בורונדי', russian: 'Бурунди', chinese: '布隆迪', french: 'Burundi'}; - case 'BJ': - return {english: 'Benin', dutch: 'Benin', german: 'Benin', hebrew: 'בנין', russian: 'Бенин', chinese: '贝宁', french: 'Bénin'}; - case 'BL': - return {english: 'St. Barthélemy', dutch: 'St. Barthélemy', german: 'St. Barthélemy', hebrew: 'סנט ברתולומיאו', russian: 'Сент-Бартелеми', chinese: '圣巴泰勒米', french: 'Saint-Barthélemy'}; - case 'BM': - return {english: 'Bermuda', dutch: 'Bermuda', german: 'Bermuda', hebrew: 'ברמודה', russian: 'Бермуды', chinese: '百慕大', french: 'Bermudes'}; - case 'BN': - return {english: 'Brunei', dutch: 'Brunei', german: 'Brunei Darussalam', hebrew: 'ברוניי', russian: 'Бруней', chinese: '文莱', french: 'Brunei'}; - case 'BO': - return {english: 'Bolivia', dutch: 'Bolivia', german: 'Bolivien', hebrew: 'בוליביה', russian: 'Боливия', chinese: '玻利维亚', french: 'Bolivie'}; - case 'BQ': - return {english: 'Caribbean Netherlands', dutch: 'Caribbean Netherlands', german: 'Bonaire, Sint Eustatius und Saba', hebrew: 'האיים הקריביים ההולנדיים', russian: 'Карибские Нидерланды', chinese: '荷兰加勒比区', french: 'Pays-Bas caribéens'}; - case 'BR': - return {english: 'Brazil', dutch: 'Brazilië', german: 'Brasilien', hebrew: 'ברזיל', russian: 'Бразилия', chinese: '巴西', french: 'Brésil'}; - case 'BS': - return {english: 'Bahamas', dutch: 'Bahama\'s', german: 'Bahamas', hebrew: 'איי בהאמה', russian: 'Багамы', chinese: '巴哈马', french: 'Bahamas'}; - case 'BT': - return {english: 'Bhutan', dutch: 'Bhutan', german: 'Bhutan', hebrew: 'בהוטן', russian: 'Бутан', chinese: '不丹', french: 'Bhoutan'}; - case 'BV': - return {english: 'Bouvet Island', dutch: 'Bouvet', german: 'Bouvetinsel', hebrew: 'איי בובה', russian: 'Остров Буве', chinese: '布韦岛', french: 'Île Bouvet'}; - case 'BW': - return {english: 'Botswana', dutch: 'Botswana', german: 'Botsuana', hebrew: 'בוצוואנה', russian: 'Ботсвана', chinese: '博茨瓦纳', french: 'Botswana'}; - case 'BY': - return {english: 'Belarus', dutch: 'Wit-Rusland', german: 'Belarus', hebrew: 'בלארוס', russian: 'Беларусь', chinese: '白俄罗斯', french: 'Biélorussie'}; - case 'BZ': - return {english: 'Belize', dutch: 'Belize', german: 'Belize', hebrew: 'בליז', russian: 'Белиз', chinese: '伯利兹', french: 'Belize'}; - case 'CA': - return {english: 'Canada', dutch: 'Canada', german: 'Kanada', hebrew: 'קנדה', russian: 'Канада', chinese: '加拿大', french: 'Canada'}; - case 'CC': - return {english: 'Cocos (Keeling) Islands', dutch: 'Cocoseilanden', german: 'Kokosinseln', hebrew: 'איי קוקוס (קילינג)', russian: 'Кокосовые (Килинг) острова', chinese: '科科斯(基林)群岛', french: 'Îles Cocos (Keeling)'}; - case 'CD': - return {english: 'Congo - Kinshasa', dutch: 'Congo - Kinshasa', german: 'Kongo-Kinshasa', hebrew: 'קונגו - קינשאסה', russian: 'Конго - Киншаса', chinese: '刚果(金)', french: 'Congo - Kinshasa'}; - case 'CF': - return {english: 'Central African Republic', dutch: 'Central African Republic', german: 'Zentralafrikanische Republik', hebrew: 'הרפובליקה של מרכז אפריקה', russian: 'Центральноафриканская Республика', chinese: '中非共和国', french: 'République centrafricaine'}; - case 'CG': - return {english: 'Congo - Brazzaville', dutch: 'Congo - Brazzaville', german: 'Kongo-Brazzaville', hebrew: 'קונגו - ברזאויל', russian: 'Конго - Браззавиль', chinese: '刚果(布)', french: 'Congo - Brazzaville'}; - case 'CH': - return {english: 'Switzerland', dutch: 'Zwitserland', german: 'Schweiz', hebrew: 'שווייץ', russian: 'Швейцария', chinese: '瑞士', french: 'Suisse'}; - case 'CI': - return {english: 'Côte d’Ivoire', dutch: 'Ivoorkust', german: 'Elfenbeinküste', hebrew: 'חוף השנהב', russian: 'Кот-д\'Ивуар', chinese: '科特迪瓦', french: 'Côte d\'Ivoire'}; - case 'CK': - return {english: 'Cook Islands', dutch: 'Cookeilanden', german: 'Cookinseln', hebrew: 'איי קוק', russian: 'Острова Кука', chinese: '库克群岛', french: 'Îles Cook'}; - case 'CV': - return {english: 'Cape Verde', dutch: 'Kaapverdië', german: 'Cabo Verde', hebrew: 'כף ורדה', russian: 'Кабо-Верде', chinese: '佛得角', french: 'Cap-Vert'}; - case 'CW': - return {english: 'Curaçao', dutch: 'Curaçao', german: 'Curaçao', hebrew: 'קוראסאו', russian: 'Кюрасао', chinese: '库拉索', french: 'Curaçao'}; - case 'CX': - return {english: 'Christmas Island', dutch: 'Christmas Island', german: 'Weihnachtsinsel', hebrew: 'האי כריסטמס', russian: 'Остров Рождества', chinese: '圣诞岛', french: 'Île Christmas'}; - case 'CY': - return {english: 'Cyprus', dutch: 'Cyprus', german: 'Zypern', hebrew: 'קפריסין', russian: 'Кипр', chinese: '塞浦路斯', french: 'Chypre'}; - case 'CZ': - return {english: 'Czechia', dutch: 'Tsjechië', german: 'Tschechien', hebrew: 'צ’כיה', russian: 'Чехия', chinese: '捷克', french: 'Tchéquie'}; - case 'DE': - return {english: 'Germany', dutch: 'Duitsland', german: 'Deutschland', hebrew: 'גרמניה', russian: 'Германия', chinese: '德国', french: 'Allemagne'}; - case 'DG': - return {english: 'Diego Garcia', dutch: 'Diego Garcia', german: 'Diego Garcia', hebrew: 'דייגו גרסיה', russian: 'Диего-Гарсия', chinese: '迭戈加西亚', french: 'Diego Garcia'}; - case 'CL': - return {english: 'Chile', dutch: 'Chili', german: 'Chile', hebrew: 'צ’ילה', russian: 'Чили', chinese: '智利', french: 'Chili'}; - case 'CM': - return {english: 'Cameroon', dutch: 'Kameroen', german: 'Kamerun', hebrew: 'קמרון', russian: 'Камерун', chinese: '喀麦隆', french: 'Cameroun'}; - case 'CN': - return {english: 'China', dutch: 'China', german: 'China', hebrew: 'סין', russian: 'Китай', chinese: '中国', french: 'Chine'}; - case 'CO': - return {english: 'Colombia', dutch: 'Colombia', german: 'Kolumbien', hebrew: 'קולומביה', russian: 'Колумбия', chinese: '哥伦比亚', french: 'Colombie'}; - case 'CP': - return {english: 'Clipperton Island', dutch: 'Clipperton Island', german: 'Clipperton-Insel', hebrew: 'האי קליפרטון', russian: 'Остров Клиппертон', chinese: '克利珀顿岛', french: 'Île Clipperton'}; - case 'CR': - return {english: 'Costa Rica', dutch: 'Costa Rica', german: 'Costa Rica', hebrew: 'קוסטה ריקה', russian: 'Коста-Рика', chinese: '哥斯达黎加', french: 'Costa Rica'}; - case 'CU': - return {english: 'Cuba', dutch: 'Cuba', german: 'Kuba', hebrew: 'קובה', russian: 'Куба', chinese: '古巴', french: 'Cuba'}; - case 'DJ': - return {english: 'Djibouti', dutch: 'Djibouti', german: 'Dschibuti', hebrew: 'ג׳יבוטי', russian: 'Джибути', chinese: '吉布提', french: 'Djibouti'}; - case 'DK': - return {english: 'Denmark', dutch: 'Denemarken', german: 'Dänemark', hebrew: 'דנמרק', russian: 'Дания', chinese: '丹麦', french: 'Danemark'}; - case 'DM': - return {english: 'Dominica', dutch: 'Dominica', german: 'Dominica', hebrew: 'דומיניקה', russian: 'Доминика', chinese: '多米尼克', french: 'Dominique'}; - case 'DO': - return {english: 'Dominican Republic', dutch: 'Dominican Republic', german: 'Dominikanische Republik', hebrew: 'הרפובליקה הדומיניקנית', russian: 'Доминиканская Республика', chinese: '多米尼加共和国', french: 'République dominicaine'}; - case 'DZ': - return {english: 'Algeria', dutch: 'Algerije', german: 'Algerien', hebrew: 'אלג׳יריה', russian: 'Алжир', chinese: '阿尔及利亚', french: 'Algérie'}; - case 'EA': - return {english: 'Ceuta & Melilla', dutch: 'Ceuta & Melilla', german: 'Ceuta und Melilla', hebrew: 'סאוטה ומלייה', russian: 'Сеута и Мелилья', chinese: '休达与梅利利亚', french: 'Ceuta et Melilla'}; - case 'EC': - return {english: 'Ecuador', dutch: 'Ecuador', german: 'Ecuador', hebrew: 'אקוודור', russian: 'Эквадор', chinese: '厄瓜多尔', french: 'Équateur'}; - case 'EE': - return {english: 'Estonia', dutch: 'Estland', german: 'Estland', hebrew: 'אסטוניה', russian: 'Эстония', chinese: '爱沙尼亚', french: 'Estonie'}; - case 'EG': - return {english: 'Egypt', dutch: 'Egypte', german: 'Ägypten', hebrew: 'מצרים', russian: 'Египет', chinese: '埃及', french: 'Égypte'}; - case 'EH': - return {english: 'Western Sahara', dutch: 'Western Sahara', german: 'Westsahara', hebrew: 'סהרה המערבית', russian: 'Западная Сахара', chinese: '西撒哈拉', french: 'Sahara occidental'}; - case 'ER': - return {english: 'Eritrea', dutch: 'Eritrea', german: 'Eritrea', hebrew: 'אריתריאה', russian: 'Эритрея', chinese: '厄立特里亚', french: 'Érythrée'}; - case 'ES': - return {english: 'Spain', dutch: 'Spanje', german: 'Spanien', hebrew: 'ספרד', russian: 'Испания', chinese: '西班牙', french: 'Espagne'}; - case 'ET': - return {english: 'Ethiopia', dutch: 'Ethiopië', german: 'Äthiopien', hebrew: 'אתיופיה', russian: 'Эфиопия', chinese: '埃塞俄比亚', french: 'Éthiopie'}; - case 'EU': - return {english: 'European Union', dutch: 'European Union', german: 'Europäische Union', hebrew: 'האיחוד האירופי', russian: 'Европейский союз', chinese: '欧洲联盟', french: 'Union européenne'}; - case 'EZ': - return {english: 'Eurozone', dutch: 'Eurozone', german: 'EZ', hebrew: 'EZ', russian: 'Еврозона', chinese: '欧元区', french: 'Zone euro'}; - case 'FI': - return {english: 'Finland', dutch: 'Finland', german: 'Finnland', hebrew: 'פינלנד', russian: 'Финляндия', chinese: '芬兰', french: 'Finlande'}; - case 'FJ': - return {english: 'Fiji', dutch: 'Fiji', german: 'Fidschi', hebrew: 'פיג׳י', russian: 'Фиджи', chinese: '斐济', french: 'Fidji'}; - case 'FK': - return {english: 'Falkland Islands', dutch: 'Falkland Islands', german: 'Falklandinseln', hebrew: 'איי פוקלנד', russian: 'Фолклендские острова', chinese: '福克兰群岛', french: 'Îles Malouines'}; - case 'FM': - return {english: 'Micronesia', dutch: 'Micronesië', german: 'Mikronesien', hebrew: 'מיקרונזיה', russian: 'Микронезия', chinese: '密克罗尼西亚', french: 'Micronésie'}; - case 'FO': - return {english: 'Faroe Islands', dutch: 'Faeröer', german: 'Färöer', hebrew: 'איי פארו', russian: 'Фарерские острова', chinese: '法罗群岛', french: 'Îles Féroé'}; - case 'FR': - return {english: 'France', dutch: 'Frankrijk', german: 'Frankreich', hebrew: 'צרפת', russian: 'Франция', chinese: '法国', french: 'France'}; - case 'GA': - return {english: 'Gabon', dutch: 'Gabon', german: 'Gabun', hebrew: 'גבון', russian: 'Габон', chinese: '加蓬', french: 'Gabon'}; - case 'GB': - return {english: 'United Kingdom', dutch: 'Verenigd Koninkrijk', german: 'Vereinigtes Königreich', hebrew: 'הממלכה המאוחדת', russian: 'Великобритания', chinese: '英国', french: 'Royaume-Uni'}; - case 'GD': - return {english: 'Grenada', dutch: 'Grenada', german: 'Grenada', hebrew: 'גרנדה', russian: 'Гренада', chinese: '格林纳达', french: 'Grenade'}; - case 'GE': - return {english: 'Georgia', dutch: 'Georgië', german: 'Georgien', hebrew: 'גאורגיה', russian: 'Грузия', chinese: '格鲁吉亚', french: 'Géorgie'}; - case 'GF': - return {english: 'French Guiana', dutch: 'Frans-Guyana', german: 'Französisch-Guayana', hebrew: 'גיאנה הצרפתית', russian: 'Французская Гвиана', chinese: '法属圭亚那', french: 'Guyane française'}; - case 'GG': - return {english: 'Guernsey', dutch: 'Guernsey', german: 'Guernsey', hebrew: 'גרנסי', russian: 'Гернси', chinese: '根西岛', french: 'Guernesey'}; - case 'GH': - return {english: 'Ghana', dutch: 'Ghana', german: 'Ghana', hebrew: 'גאנה', russian: 'Гана', chinese: '加纳', french: 'Ghana'}; - case 'GI': - return {english: 'Gibraltar', dutch: 'Gibraltar', german: 'Gibraltar', hebrew: 'גיברלטר', russian: 'Гибралтар', chinese: '直布罗陀', french: 'Gibraltar'}; - case 'GL': - return {english: 'Greenland', dutch: 'Groenland', german: 'Grönland', hebrew: 'גרינלנד', russian: 'Гренландия', chinese: '格陵兰', french: 'Groenland'}; - case 'GM': - return {english: 'Gambia', dutch: 'Gambia', german: 'Gambia', hebrew: 'גמביה', russian: 'Гамбия', chinese: '冈比亚', french: 'Gambie'}; - case 'GN': - return {english: 'Guinea', dutch: 'Guinee', german: 'Guinea', hebrew: 'גינאה', russian: 'Гвинея', chinese: '几内亚', french: 'Guinée'}; - case 'GP': - return {english: 'Guadeloupe', dutch: 'Guadeloupe', german: 'Guadeloupe', hebrew: 'גוואדלופ', russian: 'Гваделупа', chinese: '瓜德罗普', french: 'Guadeloupe'}; - case 'GQ': - return {english: 'Equatorial Guinea', dutch: 'Equatoriaal-Guinea', german: 'Äquatorialguinea', hebrew: 'גינאה המשוונית', russian: 'Экваториальная Гвинея', chinese: '赤道几内亚', french: 'Guinée équatoriale'}; - case 'GR': - return {english: 'Greece', dutch: 'Griekenland', german: 'Griechenland', hebrew: 'יוון', russian: 'Греция', chinese: '希腊', french: 'Grèce'}; - case 'GS': - return {english: 'South Georgia & South Sandwich Islands', dutch: 'Zuid-Georgië en de Zuidelijke Sandwicheilanden', german: 'Südgeorgien und die Südlichen Sandwichinseln', hebrew: 'ג׳ורג׳יה הדרומית ואיי סנדוויץ׳ הדרומיים', russian: 'Южная Георгия и Южные Сандвичевы острова', chinese: '南乔治亚和南桑威奇群岛', french: 'Géorgie du Sud et les îles Sandwich du Sud'}; - case 'GT': - return {english: 'Guatemala', dutch: 'Guatemala', german: 'Guatemala', hebrew: 'גואטמלה', russian: 'Гватемала', chinese: '危地马拉', french: 'Guatemala'}; - case 'GU': - return {english: 'Guam', dutch: 'Guam', german: 'Guam', hebrew: 'גואם', russian: 'Гуам', chinese: '关岛', french: 'Guam'}; - case 'GW': - return {english: 'Guinea-Bissau', dutch: 'Guinee-Bissau', german: 'Guinea-Bissau', hebrew: 'גינאה ביסאו', russian: 'Гвинея-Бисау', chinese: '几内亚比绍', french: 'Guinée-Bissau'}; - case 'GY': - return {english: 'Guyana', dutch: 'Guyana', german: 'Guyana', hebrew: 'גיאנה', russian: 'Гайана', chinese: '圭亚那', french: 'Guyane'}; - case 'HK': - return {english: 'Hong Kong SAR China', dutch: 'Hong Kong', german: 'Sonderverwaltungszone Hongkong', hebrew: 'הונג קונג (מחוז מנהלי מיוחד של סין)', russian: 'Гонконг (САР)', chinese: '香港特别行政区', french: 'Hong Kong'}; - case 'HM': - return {english: 'Heard & McDonald Islands', dutch: 'Heard & McDonald Islands', german: 'Heard und McDonaldinseln', hebrew: 'איי הרד ומקדונלד', russian: 'Острова Херд и Макдональд', chinese: '赫德与麦克唐纳群岛', french: 'Îles Heard et MacDonald'}; - case 'HN': - return {english: 'Honduras', dutch: 'Honduras', german: 'Honduras', hebrew: 'הונדורס', russian: 'Гондурас', chinese: '洪都拉斯', french: 'Honduras'}; - case 'HR': - return {english: 'Croatia', dutch: 'Kroatië', german: 'Kroatien', hebrew: 'קרואטיה', russian: 'Хорватия', chinese: '克罗地亚', french: 'Croatie'}; - case 'HT': - return {english: 'Haiti', dutch: 'Haïti', german: 'Haiti', hebrew: 'האיטי', russian: 'Гаити', chinese: '海地', french: 'Haïti'}; - case 'HU': - return {english: 'Hungary', dutch: 'Hongarije', german: 'Ungarn', hebrew: 'הונגריה', russian: 'Венгрия', chinese: '匈牙利', french: 'Hongrie'}; - case 'IC': - return {english: 'Canary Islands', dutch: 'Canary Islands', german: 'Kanarische Inseln', hebrew: 'האיים הקנריים', russian: 'Канарские острова', chinese: '加那利群岛', french: 'Îles Canaries'}; - case 'ID': - return {english: 'Indonesia', dutch: 'Indonesië', german: 'Indonesien', hebrew: 'אינדונזיה', russian: 'Индонезия', chinese: '印度尼西亚', french: 'Indonésie'}; - case 'IE': - return {english: 'Ireland', dutch: 'Ierland', german: 'Irland', hebrew: 'אירלנד', russian: 'Ирландия', chinese: '爱尔兰', french: 'Irlande'}; - case 'IL': - return {english: 'Israel', dutch: 'Israël', german: 'Israel', hebrew: 'ישראל', russian: 'Израиль', chinese: '以色列', french: 'Israël'}; - case 'IM': - return {english: 'Isle of Man', dutch: 'Man', german: 'Isle of Man', hebrew: 'האי מאן', russian: 'Остров Мэн', chinese: '马恩岛', french: 'Île de Man'}; - case 'IN': - return {english: 'India', dutch: 'India', german: 'Indien', hebrew: 'הודו', russian: 'Индия', chinese: '印度', french: 'Inde'}; - case 'IO': - return {english: 'British Indian Ocean Territory', dutch: 'British Indian Ocean Territory', german: 'Britisches Territorium im Indischen Ozean', hebrew: 'הטריטוריה הבריטית באוקיינוס ההודי', russian: 'Британская территория Индийского океана', chinese: '英属印度洋领地', french: 'Territoire britannique de l\'océan Indien'}; - case 'IQ': - return {english: 'Iraq', dutch: 'Irak', german: 'Irak', hebrew: 'עיראק', russian: 'Ирак', chinese: '伊拉克', french: 'Irak'}; - case 'IR': - return {english: 'Iran', dutch: 'Iran', german: 'Iran', hebrew: 'איראן', russian: 'Иран', chinese: '伊朗', french: 'Iran'}; - case 'IS': - return {english: 'Iceland', dutch: 'IJsland', german: 'Island', hebrew: 'איסלנד', russian: 'Исландия', chinese: '冰岛', french: 'Islande'}; - case 'IT': - return {english: 'Italy', dutch: 'Italië', german: 'Italien', hebrew: 'איטליה', russian: 'Италия', chinese: '意大利', french: 'Italie'}; - case 'JE': - return {english: 'Jersey', dutch: 'Jersey', german: 'Jersey', hebrew: 'ג׳רסי', russian: 'Джерси', chinese: '泽西', french: 'Jersey'}; - case 'JM': - return {english: 'Jamaica', dutch: 'Jamaica', german: 'Jamaika', hebrew: 'ג׳מייקה', russian: 'Ямайка', chinese: '牙买加', french: 'Jamaïque'}; - case 'JO': - return {english: 'Jordan', dutch: 'Jordanië', german: 'Jordanien', hebrew: 'ירדן', russian: 'Иордания', chinese: '约旦', french: 'Jordanie'}; - case 'JP': - return {english: 'Japan', dutch: 'Japan', german: 'Japan', hebrew: 'יפן', russian: 'Япония', chinese: '日本', french: 'Japon'}; - case 'KE': - return {english: 'Kenya', dutch: 'Kenia', german: 'Kenia', hebrew: 'קניה', russian: 'Кения', chinese: '肯尼亚', french: 'Kenya'}; - case 'KG': - return {english: 'Kyrgyzstan', dutch: 'Kirgizië', german: 'Kirgisistan', hebrew: 'קירגיזסטן', russian: 'Киргизия', chinese: '吉尔吉斯斯坦', french: 'Kirghizistan'}; - case 'KH': - return {english: 'Cambodia', dutch: 'Cambodja', german: 'Kambodscha', hebrew: 'קמבודיה', russian: 'Камбоджа', chinese: '柬埔寨', french: 'Cambodge'}; - case 'KI': - return {english: 'Kiribati', dutch: 'Kiribati', german: 'Kiribati', hebrew: 'קיריבאטי', russian: 'Кирибати', chinese: '基里巴斯', french: 'Kiribati'}; - case 'KM': - return {english: 'Comoros', dutch: 'Comoren', german: 'Komoren', hebrew: 'קומורו', russian: 'Коморы', chinese: '科摩罗', french: 'Comores'}; - case 'KN': - return {english: 'St. Kitts & Nevis', dutch: 'St. Kitts & Nevis', german: 'St. Kitts und Nevis', hebrew: 'סנט קיטס ונוויס', russian: 'Сент-Китс и Невис', chinese: '圣基茨和尼维斯', french: 'Saint-Christophe-et-Niévès'}; - case 'KP': - return {english: 'North Korea', dutch: 'Noord-Korea', german: 'Nordkorea', hebrew: 'קוריאה הצפונית', russian: 'Северная Корея', chinese: '朝鲜', french: 'Corée du Nord'}; - case 'KR': - return {english: 'South Korea', dutch: 'Zuid-Korea', german: 'Südkorea', hebrew: 'קוריאה הדרומית', russian: 'Южная Корея', chinese: '韩国', french: 'Corée du Sud'}; - case 'KW': - return {english: 'Kuwait', dutch: 'Koeweit', german: 'Kuwait', hebrew: 'כווית', russian: 'Кувейт', chinese: '科威特', french: 'Koweït'}; - case 'KY': - return {english: 'Cayman Islands', dutch: 'Cayman Islands', german: 'Kaimaninseln', hebrew: 'איי קיימן', russian: 'Каймановы острова', chinese: '开曼群岛', french: 'Îles Caïmans'}; - case 'KZ': - return {english: 'Kazakhstan', dutch: 'Kazachstan', german: 'Kasachstan', hebrew: 'קזחסטן', russian: 'Казахстан', chinese: '哈萨克斯坦', french: 'Kazakhstan'}; - case 'LA': - return {english: 'Laos', dutch: 'Laos', german: 'Laos', hebrew: 'לאוס', russian: 'Лаос', chinese: '老挝', french: 'Laos'}; - case 'LB': - return {english: 'Lebanon', dutch: 'Libanon', german: 'Libanon', hebrew: 'לבנון', russian: 'Ливан', chinese: '黎巴嫩', french: 'Liban'}; - case 'LC': - return {english: 'St. Lucia', dutch: 'Saint Lucia', german: 'St. Lucia', hebrew: 'סנט לוסיה', russian: 'Сент-Люсия', chinese: '圣卢西亚', french: 'Sainte-Lucie'}; - case 'LI': - return {english: 'Liechtenstein', dutch: 'Liechtenstein', german: 'Liechtenstein', hebrew: 'ליכטנשטיין', russian: 'Лихтенштейн', chinese: '列支敦士登', french: 'Liechtenstein'}; - case 'LK': - return {english: 'Sri Lanka', dutch: 'Sri Lanka', german: 'Sri Lanka', hebrew: 'סרי לנקה', russian: 'Шри-Ланка', chinese: '斯里兰卡', french: 'Sri Lanka'}; - case 'LR': - return {english: 'Liberia', dutch: 'Liberia', german: 'Liberia', hebrew: 'ליבריה', russian: 'Либерия', chinese: '利比里亚', french: 'Libéria'}; - case 'LS': - return {english: 'Lesotho', dutch: 'Lesotho', german: 'Lesotho', hebrew: 'לסוטו', russian: 'Лесото', chinese: '莱索托', french: 'Lesotho'}; - case 'LT': - return {english: 'Lithuania', dutch: 'Lithuania', german: 'Litauen', hebrew: 'ליטא', russian: 'Литва', chinese: '立陶宛', french: 'Lituanie'}; - case 'LU': - return {english: 'Luxembourg', dutch: 'Luxemburg', german: 'Luxemburg', hebrew: 'לוקסמבורג', russian: 'Люксембург', chinese: '卢森堡', french: 'Luxembourg'}; - case 'LV': - return {english: 'Latvia', dutch: 'Letland', german: 'Lettland', hebrew: 'לטביה', russian: 'Латвия', chinese: '拉脱维亚', french: 'Lettonie'}; - case 'LY': - return {english: 'Libya', dutch: 'Libië', german: 'Libyen', hebrew: 'לוב', russian: 'Ливия', chinese: '利比亚', french: 'Libye'}; - case 'MA': - return {english: 'Morocco', dutch: 'Marokko', german: 'Marokko', hebrew: 'מרוקו', russian: 'Марокко', chinese: '摩洛哥', french: 'Maroc'}; - case 'MC': - return {english: 'Monaco', dutch: 'Monaco', german: 'Monaco', hebrew: 'מונקו', russian: 'Монако', chinese: '摩纳哥', french: 'Monaco'}; - case 'MD': - return {english: 'Moldova', dutch: 'Moldavië', german: 'Republik Moldau', hebrew: 'מולדובה', russian: 'Молдова', chinese: '摩尔多瓦', french: 'Moldavie'}; - case 'ME': - return {english: 'Montenegro', dutch: 'Montenegro', german: 'Montenegro', hebrew: 'מונטנגרו', russian: 'Черногория', chinese: '黑山', french: 'Monténégro'}; - case 'MF': - return {english: 'St. Martin', dutch: 'St. Martin', german: 'St. Martin', hebrew: 'סן מרטן', russian: 'Сен-Мартен', chinese: '圣马丁', french: 'Saint-Martin'}; - case 'MG': - return {english: 'Madagascar', dutch: 'Madagaskar', german: 'Madagaskar', hebrew: 'מדגסקר', russian: 'Мадагаскар', chinese: '马达加斯加', french: 'Madagascar'}; - case 'MH': - return {english: 'Marshall Islands', dutch: 'Marshall Islands', german: 'Marshallinseln', hebrew: 'איי מרשל', russian: 'Маршалловы Острова', chinese: '马绍尔群岛', french: 'Îles Marshall'}; - case 'MK': - return {english: 'Macedonia', dutch: 'Macedonia', german: 'Mazedonien', hebrew: 'מקדוניה', russian: 'Македония', chinese: '马其顿', french: 'Macédoine'}; - case 'ML': - return {english: 'Mali', dutch: 'Mali', german: 'Mali', hebrew: 'מאלי', russian: 'Мали', chinese: '马里', french: 'Mali'}; - case 'MM': - return {english: 'Myanmar (Burma)', dutch: 'Myanmar', german: 'Myanmar', hebrew: 'מיאנמר (בורמה)', russian: 'Мьянма (Бирма)', chinese: '缅甸', french: 'Myanmar (Birmanie)'}; - case 'MN': - return {english: 'Mongolia', dutch: 'Mongolië', german: 'Mongolei', hebrew: 'מונגוליה', russian: 'Монголия', chinese: '蒙古', french: 'Mongolie'}; - case 'MO': - return {english: 'Macau SAR China', dutch: 'Macau', german: 'Sonderverwaltungsregion Macau', hebrew: 'מקאו (מחוז מנהלי מיוחד של סין)', russian: 'Макао (особый административный район Китая)', chinese: '澳门特别行政区', french: 'Macao RAS Chine'}; - case 'MP': - return {english: 'Northern Mariana Islands', dutch: 'Northern Mariana Islands', german: 'Nördliche Marianen', hebrew: 'איי מריאנה הצפוניים', russian: 'Северные Марианские острова', chinese: '北马里亚纳群岛', french: 'Îles Mariannes du Nord'}; - case 'MQ': - return {english: 'Martinique', dutch: 'Martinique', german: 'Martinique', hebrew: 'מרטיניק', russian: 'Мартиника', chinese: '马提尼克', french: 'Martinique'}; - case 'MR': - return {english: 'Mauritania', dutch: 'Mauritanië', german: 'Mauretanien', hebrew: 'מאוריטניה', russian: 'Мавритания', chinese: '毛里塔尼亚', french: 'Mauritanie'}; - case 'MS': - return {english: 'Montserrat', dutch: 'Montserrat', german: 'Montserrat', hebrew: 'מונסראט', russian: 'Монтсеррат', chinese: '蒙特塞拉特', french: 'Montserrat'}; - case 'MT': - return {english: 'Malta', dutch: 'Malta', german: 'Malta', hebrew: 'מלטה', russian: 'Мальта', chinese: '马耳他', french: 'Malte'}; - case 'MU': - return {english: 'Mauritius', dutch: 'Mauritius', german: 'Mauritius', hebrew: 'מאוריציוס', russian: 'Маврикий', chinese: '毛里求斯', french: 'Maurice'}; - case 'MV': - return {english: 'Maldives', dutch: 'Maldiven', german: 'Malediven', hebrew: 'האיים המלדיביים', russian: 'Мальдивы', chinese: '马尔代夫', french: 'Maldives'}; - case 'MW': - return {english: 'Malawi', dutch: 'Malawi', german: 'Malawi', hebrew: 'מלאווי', russian: 'Малави', chinese: '马拉维', french: 'Malawi'}; - case 'MX': - return {english: 'Mexico', dutch: 'Mexico', german: 'Mexiko', hebrew: 'מקסיקו', russian: 'Мексика', chinese: '墨西哥', french: 'Mexique'}; - case 'MY': - return {english: 'Malaysia', dutch: 'Maleisië', german: 'Malaysia', hebrew: 'מלזיה', russian: 'Малайзия', chinese: '马来西亚', french: 'Malaisie'}; - case 'MZ': - return {english: 'Mozambique', dutch: 'Mozambique', german: 'Mosambik', hebrew: 'מוזמביק', russian: 'Мозамбик', chinese: '莫桑比克', french: 'Mozambique'}; - case 'NA': - return {english: 'Namibia', dutch: 'Namibië', german: 'Namibia', hebrew: 'נמיביה', russian: 'Намибия', french: 'Namibie', chinese: '纳米比亚'}; - case 'NC': - return {english: 'New Caledonia', dutch: 'Nieuw-Caledonië', german: 'Neukaledonien', hebrew: 'קלדוניה החדשה', russian: 'Новая Каледония', french: 'Nouvelle-Calédonie', chinese: '新喀里多尼亚'}; - case 'NE': - return {english: 'Niger', dutch: 'Niger', german: 'Niger', hebrew: 'ניז׳ר', russian: 'Нигер', chinese: '尼日尔', french: 'Niger'}; - case 'NF': - return {english: 'Norfolk Island', dutch: 'Norfolk', german: 'Norfolkinsel', hebrew: 'איי נורפוק', russian: 'Остров Норфолк', chinese: '诺福克岛', french: 'Île Norfolk'}; - case 'NG': - return {english: 'Nigeria', dutch: 'Nigeria', german: 'Nigeria', hebrew: 'ניגריה', russian: 'Нигерия', chinese: '尼日利亚', french: 'Nigeria'}; - case 'NI': - return {english: 'Nicaragua', dutch: 'Nicaragua', german: 'Nicaragua', hebrew: 'ניקרגואה', russian: 'Никарагуа', chinese: '尼加拉瓜', french: 'Nicaragua'}; - case 'NL': - return {english: 'Netherlands', dutch: 'Nederland', german: 'Niederlande', hebrew: 'הולנד', russian: 'Нидерланды', chinese: '荷兰', french: 'Pays-Bas'}; - case 'NO': - return {english: 'Norway', dutch: 'Noorwegen', german: 'Norwegen', hebrew: 'נורווגיה', russian: 'Норвегия', chinese: '挪威', french: 'Norvège'}; - case 'NP': - return {english: 'Nepal', dutch: 'Nepal', german: 'Nepal', hebrew: 'נפאל', russian: 'Непал', chinese: '尼泊尔', french: 'Népal'}; - case 'NR': - return {english: 'Nauru', dutch: 'Nauru', german: 'Nauru', hebrew: 'נאורו', russian: 'Науру', chinese: '瑙鲁', french: 'Nauru'}; - case 'NU': - return {english: 'Niue', dutch: 'Niue', german: 'Niue', hebrew: 'ניווה', russian: 'Ниуэ', chinese: '纽埃', french: 'Niue'}; - case 'NZ': - return {english: 'New Zealand', dutch: 'Nieuw-Zeeland', german: 'Neuseeland', hebrew: 'ניו זילנד', russian: 'Новая Зеландия', chinese: '新西兰', french: 'Nouvelle-Zélande'}; - case 'OM': - return {english: 'Oman', dutch: 'Oman', german: 'Oman', hebrew: 'עומאן', russian: 'Оман', chinese: '阿曼', french: 'Oman'}; - case 'PA': - return {english: 'Panama', dutch: 'Panama', german: 'Panama', hebrew: 'פנמה', russian: 'Панама', chinese: '巴拿马', french: 'Panama'}; - case 'PE': - return {english: 'Peru', dutch: 'Peru', german: 'Peru', hebrew: 'פרו', russian: 'Перу', chinese: '秘鲁', french: 'Pérou'}; - case 'PF': - return {english: 'French Polynesia', dutch: 'French Polynesia', german: 'Französisch-Polynesien', hebrew: 'פולינזיה הצרפתית', russian: 'Французская Полинезия', chinese: '法属波利尼西亚', french: 'Polynésie française'}; - case 'PG': - return {english: 'Papua New Guinea', dutch: 'Papua New Guinea', german: 'Papua-Neuguinea', hebrew: 'פפואה גינאה החדשה', russian: 'Папуа — Новая Гвинея', chinese: '巴布亚新几内亚', french: 'Papouasie-Nouvelle-Guinée'}; - case 'PH': - return {english: 'Philippines', dutch: 'Filippijnen', german: 'Philippinen', hebrew: 'הפיליפינים', russian: 'Филиппины', chinese: '菲律宾', french: 'Philippines'}; - case 'PK': - return {english: 'Pakistan', dutch: 'Pakistan', german: 'Pakistan', hebrew: 'פקיסטן', russian: 'Пакистан', chinese: '巴基斯坦', french: 'Pakistan'}; - case 'PL': - return {english: 'Poland', dutch: 'Polen', german: 'Polen', hebrew: 'פולין', russian: 'Польша', chinese: '波兰', french: 'Pologne'}; - case 'PM': - return {english: 'Saint Pierre and Miquelon', dutch: 'Saint Pierre en Miquelon', german: 'Saint-Pierre und Miquelon', hebrew: 'סן פייר ומיקלון', russian: 'Сен-Пьер и Микелон', chinese: '圣皮埃尔和密克隆群岛', french: 'Saint-Pierre-et-Miquelon'}; - case 'PN': - return {english: 'Pitcairn Islands', dutch: 'Pitcairn Islands', german: 'Pitcairninseln', hebrew: 'איי פיטקרן', russian: 'Острова Питкэрн', chinese: '皮特凯恩群岛', french: 'Îles Pitcairn'}; - case 'PR': - return {english: 'Puerto Rico', dutch: 'Puerto Rico', german: 'Puerto Rico', hebrew: 'פוארטו ריקו', russian: 'Пуэрто-Рико', chinese: '波多黎各', french: 'Porto Rico'}; - case 'PS': - return {english: 'Palestinian Territories', dutch: 'Palestinian Territories', german: 'Palästinensische Autonomiegebiete', hebrew: 'השטחים הפלסטיניים', russian: 'Палестинские территории', chinese: '巴勒斯坦领土', french: 'Territoires palestiniens'}; - case 'PT': - return {english: 'Portugal', dutch: 'Portugal', german: 'Portugal', hebrew: 'פורטוגל', russian: 'Португалия', chinese: '葡萄牙', french: 'Portugal'}; - case 'PW': - return {english: 'Palau', dutch: 'Palau', german: 'Palau', hebrew: 'פלאו', russian: 'Палау', chinese: '帕劳', french: 'Palaos'}; - case 'PY': - return {english: 'Paraguay', dutch: 'Paraguay', german: 'Paraguay', hebrew: 'פרגוואי', russian: 'Парагвай', chinese: '巴拉圭', french: 'Paraguay'}; - case 'QA': - return {english: 'Qatar', dutch: 'Qatar', german: 'Katar', hebrew: 'קטאר', russian: 'Катар', chinese: '卡塔尔', french: 'Qatar'}; - case 'QO': - return {english: 'Outlying Oceania', dutch: 'Outlying Oceania', german: 'Äußeres Ozeanien', hebrew: 'טריטוריות באוקיאניה', russian: 'Отдаленная Океания', chinese: '外属大洋洲', french: 'Océanie éloignée'}; - case 'RE': - return {english: 'Réunion', dutch: 'Rëunion', german: 'Réunion', hebrew: 'ראוניון', russian: 'Реюньон', chinese: '留尼汪', french: 'La Réunion'}; - case 'RO': - return {english: 'Romania', dutch: 'Roemenië', german: 'Rumänien', hebrew: 'רומניה', russian: 'Румыния', chinese: '罗马尼亚', french: 'Roumanie'}; - case 'RS': - return {english: 'Serbia', dutch: 'Servië', german: 'Serbien', hebrew: 'סרביה', russian: 'Сербия', chinese: '塞尔维亚', french: 'Serbie'}; - case 'RU': - return {english: 'Russia', dutch: 'Rusland', german: 'Russland', hebrew: 'רוסיה', russian: 'Россия', chinese: '俄罗斯', french: 'Russie'}; - case 'RW': - return {english: 'Rwanda', dutch: 'Rwanda', german: 'Ruanda', hebrew: 'רואנדה', russian: 'Руанда', chinese: '卢旺达', french: 'Rwanda'}; - case 'SA': - return {english: 'Saudi Arabia', dutch: 'Saoedi-Arabië', german: 'Saudi-Arabien', hebrew: 'ערב הסעודית', russian: 'Саудовская Аравия', chinese: '沙特阿拉伯', french: 'Arabie saoudite'}; - case 'SB': - return {english: 'Solomon Islands', dutch: 'Solomon Islands', german: 'Salomonen', hebrew: 'איי שלמה', russian: 'Соломоновы острова', chinese: '所罗门群岛', french: 'Îles Salomon'}; - case 'SC': - return {english: 'Seychelles', dutch: 'Seychellen', german: 'Seychellen', hebrew: 'איי סיישל', russian: 'Сейшельские острова', chinese: '塞舌尔', french: 'Seychelles'}; - case 'SD': - return {english: 'Sudan', dutch: 'Soedan', german: 'Sudan', hebrew: 'סודן', russian: 'Судан', chinese: '苏丹', french: 'Soudan'}; - case 'SE': - return {english: 'Sweden', dutch: 'Zweden', german: 'Schweden', hebrew: 'שוודיה', russian: 'Швеция', chinese: '瑞典', french: 'Suède'}; - case 'SG': - return {english: 'Singapore', dutch: 'Singapore', german: 'Singapur', hebrew: 'סינגפור', russian: 'Сингапур', chinese: '新加坡', french: 'Singapour'}; - case 'SH': - return {english: 'St. Helena', dutch: 'Sint Helena', german: 'St. Helena', hebrew: 'סנט הלנה', russian: 'Остров Святой Елены', chinese: '圣赫勒拿', french: 'Sainte-Hélène'}; - case 'SI': - return {english: 'Slovenia', dutch: 'Slovenië', german: 'Slowenien', hebrew: 'סלובניה', russian: 'Словения', chinese: '斯洛文尼亚', french: 'Slovénie'}; - case 'SJ': - return {english: 'Svalbard & Jan Mayen', dutch: 'Svalbard & Jan Mayen', german: 'Spitzbergen', hebrew: 'סוולבארד ויאן מאיין', russian: 'Шпицберген и Ян-Майен', chinese: '斯瓦尔巴特和扬马廷', french: 'Svalbard et Jan Mayen'}; - case 'SK': - return {english: 'Slovakia', dutch: 'Slowakije', german: 'Slowakei', hebrew: 'סלובקיה', russian: 'Словакия', chinese: '斯洛伐克', french: 'Slovaquie'}; - case 'SL': - return {english: 'Sierra Leone', dutch: 'Sierra Leone', german: 'Sierra Leone', hebrew: 'סיירה לאונה', russian: 'Сьерра-Леоне', chinese: '塞拉利昂', french: 'Sierra Leone'}; - case 'SM': - return {english: 'San Marino', dutch: 'San Marino', german: 'San Marino', hebrew: 'סן מרינו', russian: 'Сан-Марино', chinese: '圣马力诺', french: 'Saint-Marin'}; - case 'SN': - return {english: 'Senegal', dutch: 'Senegal', german: 'Senegal', hebrew: 'סנגל', russian: 'Сенегал', chinese: '塞内加尔', french: 'Sénégal'}; - case 'SO': - return {english: 'Somalia', dutch: 'Somalië', german: 'Somalia', hebrew: 'סומליה', russian: 'Сомали', chinese: '索马里', french: 'Somalie'}; - case 'SR': - return {english: 'Suriname', dutch: 'Suriname', german: 'Suriname', hebrew: 'סורינם', russian: 'Суринам', chinese: '苏里南', french: 'Suriname'}; - case 'SS': - return {english: 'South Sudan', dutch: 'Zuid-Soedan', german: 'Südsudan', hebrew: 'דרום סודן', russian: 'Южный Судан', chinese: '南苏丹', french: 'Soudan du Sud'}; - case 'ST': - return {english: 'São Tomé & Príncipe', dutch: 'São Tomé & Príncipe', german: 'São Tomé und Príncipe', hebrew: 'סאו טומה ופרינסיפה', russian: 'Сан-Томе и Принсипи', chinese: '圣多美和普林西比', french: 'Sao Tomé-et-Principe'}; - case 'SV': - return {english: 'El Salvador', dutch: 'El Salvador', german: 'El Salvador', hebrew: 'אל סלבדור', russian: 'Сальвадор', chinese: '萨尔瓦多', french: 'Salvador'}; - case 'SX': - return {english: 'Sint Maarten', dutch: 'Sint Maarten', german: 'Sint Maarten', hebrew: 'סנט מארטן', russian: 'Синт-Мартен', chinese: '圣马丁', french: 'Sint Maarten'}; - case 'SY': - return {english: 'Syria', dutch: 'Syrië', german: 'Syrien', hebrew: 'סוריה', russian: 'Сирия', chinese: '叙利亚', french: 'Syrie'}; - case 'SZ': - return {english: 'Swaziland', dutch: 'Swaziland', german: 'Swasiland', hebrew: 'סווזילנד', russian: 'Свазиленд', chinese: '斯威士兰', french: 'Swaziland'}; - case 'TA': - return {english: 'Tristan da Cunha', dutch: 'Tristan da Cunha', german: 'Tristan da Cunha', hebrew: 'טריסטן דה קונה', russian: 'Тристан-да-Кунья', chinese: '特里斯坦-达库尼亚', french: 'Tristan da Cunha'}; - case 'TC': - return {english: 'Turks & Caicos Islands', dutch: 'Turks & Caicos Islands', german: 'Turks- und Caicosinseln', hebrew: 'איי טורקס וקאיקוס', russian: 'Острова Теркс и Кайкос', chinese: '特克斯和凯科斯群岛', french: 'Îles Turques-et-Caïques'}; - case 'TD': - return {english: 'Chad', dutch: 'Tsjaad', german: 'Tschad', hebrew: 'צ׳אד', russian: 'Чад', chinese: '乍得', french: 'Tchad'}; - case 'TF': - return {english: 'French Southern Territories', dutch: 'French Southern Territories', german: 'Französische Süd- und Antarktisgebiete', hebrew: 'הטריטוריות הדרומיות של צרפת', russian: 'Французские Южные и Антарктические территории', chinese: '法属南部领地', french: 'Terres australes françaises'}; - case 'TG': - return {english: 'Togo', dutch: 'Togo', german: 'Togo', hebrew: 'טוגו', russian: 'Того', chinese: '多哥', french: 'Togo'}; - case 'TH': - return {english: 'Thailand', dutch: 'Thailand', german: 'Thailand', hebrew: 'תאילנד', russian: 'Таиланд', chinese: '泰国', french: 'Thaïlande'}; - case 'TJ': - return {english: 'Tajikistan', dutch: 'Tadzjikistan', german: 'Tadschikistan', hebrew: 'טג׳יקיסטן', russian: 'Таджикистан', chinese: '塔吉克斯坦', french: 'Tadjikistan'}; - case 'TK': - return {english: 'Tokelau', dutch: 'Tokelau', german: 'Tokelau', hebrew: 'טוקלאו', russian: 'Токелау', chinese: '托克劳', french: 'Tokelau'}; - case 'TL': - return {english: 'Timor-Leste', dutch: 'Oost-Timor', german: 'Osttimor', hebrew: 'טימור לסטה', russian: 'Восточный Тимор', chinese: '东帝汶', french: 'Timor oriental'}; - case 'TM': - return {english: 'Turkmenistan', dutch: 'Turkmenistan', german: 'Turkmenistan', hebrew: 'טורקמניסטן', russian: 'Туркмения', chinese: '土库曼斯坦', french: 'Turkménistan'}; - case 'TN': - return {english: 'Tunisia', dutch: 'Tunesië', german: 'Tunesien', hebrew: 'טוניסיה', russian: 'Тунис', chinese: '突尼斯', french: 'Tunisie'}; - case 'TO': - return {english: 'Tonga', dutch: 'Tonga', german: 'Tonga', hebrew: 'טונגה', russian: 'Тонга', chinese: '汤加', french: 'Tonga'}; - case 'TR': - return {english: 'Turkey', dutch: 'Turkije', german: 'Türkei', hebrew: 'טורקיה', russian: 'Турция', chinese: '土耳其', french: 'Turquie'}; - case 'TT': - return {english: 'Trinidad & Tobago', dutch: 'Trinidad & Tobago', german: 'Trinidad und Tobago', hebrew: 'טרינידד וטובגו', russian: 'Тринидад и Тобаго', chinese: '特立尼达和多巴哥', french: 'Trinité-et-Tobago'}; - case 'TV': - return {english: 'Tuvalu', dutch: 'Tuvalu', german: 'Tuvalu', hebrew: 'טובאלו', russian: 'Тувалу', chinese: '图瓦卢', french: 'Tuvalu'}; - case 'TW': - return {english: 'Taiwan', dutch: 'Taiwan', german: 'Taiwan', hebrew: 'טייוואן', russian: 'Тайвань', chinese: '台湾', french: 'Taïwan'}; - case 'TZ': - return {english: 'Tanzania', dutch: 'Tanzania', german: 'Tansania', hebrew: 'טנזניה', russian: 'Танзания', chinese: '坦桑尼亚', french: 'Tanzanie'}; - case 'UA': - return {english: 'Ukraine', dutch: 'Oekraine', german: 'Ukraine', hebrew: 'אוקראינה', russian: 'Украина', chinese: '乌克兰', french: 'Ukraine'}; - case 'UG': - return {english: 'Uganda', dutch: 'Oeganda', german: 'Uganda', hebrew: 'אוגנדה', russian: 'Уганда', chinese: '乌干达', french: 'Ouganda'}; - case 'UM': - return {english: 'U.S. Outlying Islands', dutch: 'U.S. Outlying Islands', german: 'Amerikanische Überseeinseln', hebrew: 'האיים המרוחקים הקטנים של ארה״ב', russian: 'Внешние малые острова США', chinese: '美国本土外小岛屿', french: 'Îles mineures éloignées des États-Unis'}; - case 'UN': - return {english: 'United Nations', dutch: 'United Nations', german: 'Vereinte Nationen', hebrew: 'האומות המאוחדות', russian: 'Организация Объединённых Наций', chinese: '联合国', french: 'Nations unies'}; - case 'US': - return {english: 'United States', dutch: 'United States', german: 'Vereinigte Staaten', hebrew: 'ארצות הברית', russian: 'США', chinese: '美国', french: 'États-Unis'}; - case 'UY': - return {english: 'Uruguay', dutch: 'Uruguay', german: 'Uruguay', hebrew: 'אורוגוואי', russian: 'Уругвай', chinese: '乌拉圭', french: 'Uruguay'}; - case 'UZ': - return {english: 'Uzbekistan', dutch: 'Oezbekistan', german: 'Usbekistan', hebrew: 'אוזבקיסטן', russian: 'Узбекистан', chinese: '乌兹别克斯坦', french: 'Ouzbékistan'}; - case 'VA': - return {english: 'Vatican City', dutch: 'Vaticaan', german: 'Vatikanstadt', hebrew: 'הוותיקן', russian: 'Ватикан', chinese: '梵蒂冈', french: 'Vatican'}; - case 'VC': - return {english: 'St. Vincent & Grenadines', dutch: 'St. Vincent & Grenadines', german: 'St. Vincent und die Grenadinen', hebrew: 'סנט וינסנט והגרנדינים', russian: 'Сент-Винсент и Гренадины', chinese: '圣文森特和格林纳丁斯', french: 'Saint-Vincent-et-les-Grenadines'}; - case 'VE': - return {english: 'Venezuela', dutch: 'Venezuela', german: 'Venezuela', hebrew: 'ונצואלה', russian: 'Венесуэла', chinese: '委内瑞拉', french: 'Venezuela'}; - case 'VG': - return {english: 'British Virgin Islands', dutch: 'British Virgin Islands', german: 'Britische Jungferninseln', hebrew: 'איי הבתולה הבריטיים', russian: 'Британские Виргинские острова', chinese: '英属维尔京群岛', french: 'Îles Vierges britanniques'}; - case 'VI': - return {english: 'U.S. Virgin Islands', dutch: 'U.S. Virgin Islands', german: 'Amerikanische Jungferninseln', hebrew: 'איי הבתולה של ארצות הברית', russian: 'Американские Виргинские острова', chinese: '美属维尔京群岛', french: 'Îles Vierges des États-Unis'}; - case 'VN': - return {english: 'Vietnam', dutch: 'Vietnam', german: 'Vietnam', hebrew: 'וייטנאם', russian: 'Вьетнам', chinese: '越南', french: 'Viêt Nam'}; - case 'VU': - return {english: 'Vanuatu', dutch: 'Vanuatu', german: 'Vanuatu', hebrew: 'ונואטו', russian: 'Вануату', chinese: '瓦努阿图', french: 'Vanuatu'}; - case 'WF': - return {english: 'Wallis & Futuna', dutch: 'Wallis & Futuna', german: 'Wallis und Futuna', hebrew: 'איי ווליס ופוטונה', russian: 'Уоллис и Футуна', chinese: '瓦利斯和富图纳', french: 'Wallis-et-Futuna'}; - case 'WS': - return {english: 'Samoa', dutch: 'Samoa', german: 'Samoa', hebrew: 'סמואה', russian: 'Самоа', chinese: '萨摩亚', french: 'Samoa'}; - case 'XK': - return {english: 'Kosovo', dutch: 'Kosovo', german: 'Kosovo', hebrew: 'קוסובו', russian: 'Косово', chinese: '科索沃', french: 'Kosovo'}; - case 'YE': - return {english: 'Yemen', dutch: 'Jemen', german: 'Jemen', hebrew: 'תימן', russian: 'Йемен', chinese: '也门', french: 'Yémen'}; - case 'YT': - return {english: 'Mayotte', dutch: 'Mayotte', german: 'Mayotte', hebrew: 'מאיוט', russian: 'Майотта', chinese: '马约特', french: 'Mayotte'}; - case 'ZA': - return {english: 'South Africa', dutch: 'Zuid-Afrika', german: 'Südafrika', hebrew: 'דרום אפריקה', russian: 'Южная Африка', chinese: '南非', french: 'Afrique du Sud'}; - case 'ZM': - return {english: 'Zambia', dutch: 'Zambia', german: 'Sambia', hebrew: 'זמביה', russian: 'Замбия', chinese: '赞比亚', french: 'Zambie'}; - default: - return {english: 'Zimbabwe', dutch: 'Zimbabwe', german: 'Simbabwe', hebrew: 'זימבבואה', russian: 'Зимбабве', chinese: '津巴布韦', french: 'Zimbabwe'}; - } -}; -var _Gizra$circuit_bid$Translate$languageToString = function (lang) { - var _p1 = lang; - switch (_p1.ctor) { - case 'English': - return 'English'; - case 'Chinese': - return 'Chinese'; - case 'Dutch': - return 'Dutch'; - case 'German': - return 'Deutsch'; - case 'Hebrew': - return 'עברית'; - case 'Russian': - return 'русский'; - default: - return 'français'; - } -}; -var _Gizra$circuit_bid$Translate$languageToCode = function (lang) { - var _p2 = lang; - switch (_p2.ctor) { - case 'English': - return 'en'; - case 'Chinese': - return 'zh-hans'; - case 'Dutch': - return 'nl'; - case 'German': - return 'de'; - case 'Hebrew': - return 'he'; - case 'Russian': - return 'ru'; - default: - return 'fr'; - } -}; -var _Gizra$circuit_bid$Translate$selectTranslation = F2( - function (lang, transSet) { - var _p3 = lang; - switch (_p3.ctor) { - case 'English': - return function (_) { - return _.english; - }(transSet); - case 'Chinese': - return function (_) { - return _.chinese; - }(transSet); - case 'Dutch': - return function (_) { - return _.dutch; - }(transSet); - case 'German': - return function (_) { - return _.german; - }(transSet); - case 'Hebrew': - return function (_) { - return _.hebrew; - }(transSet); - case 'Russian': - return function (_) { - return _.russian; - }(transSet); - default: - return function (_) { - return _.french; - }(transSet); - } - }); -var _Gizra$circuit_bid$Translate$translateString = F2( - function (language, transId) { - var translationSet = function () { - var _p4 = transId; - switch (_p4.ctor) { - case 'AcceptTerms': - return {english: 'Accept Terms', dutch: 'Voorwaarden accepteren', german: 'AGB akzeptieren', hebrew: 'הסכמה לתנאים', russian: 'Принять условия', chinese: '接受条款', french: 'Accepter les conditions'}; - case 'AccessDenied': - return {english: 'Access denied', dutch: 'Toegang geweigerd', german: 'Zugriff abgelehnt', hebrew: 'גישה נדחתה', russian: 'Доступ запрещен', chinese: '访问被拒绝', french: 'Accès refusé'}; - case 'AccountPendingApproval': - return {english: 'Account pending approval', dutch: 'Account wacht op goedkeuring', german: 'Konto ist ausstehend', hebrew: 'חשבון טרם אושר', russian: 'Учетная запись ожидает одобрения', chinese: '帐户待批准', french: 'Compte en attente d\'approbation'}; - case 'Active': - return {english: 'Active', dutch: 'Actief', german: 'Aktiv', hebrew: 'פעיל', russian: 'Активный', chinese: '活跃的', french: 'Actif'}; - case 'AddNextBid': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Place bid ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'biedeb plaatsen ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Gebot abgeben ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'הוסף הצעה ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Сделать ставку ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '出价 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Placer une offre ', value) - }; - case 'Address': - return {english: 'Address', dutch: 'Adres', german: 'Adresse', hebrew: 'כתובת', russian: 'Адрес', chinese: '地址', french: 'Adresse'}; - case 'AddressLine1': - return {english: 'Address 1', dutch: 'Adres 1', german: 'Adresse Zeile 1', hebrew: 'שורת כתובת 1', russian: 'Адрес 1', chinese: '地址1', french: 'Adresse ligne 1'}; - case 'AddressLine2': - return {english: 'Address 2', dutch: 'Adres 2', german: 'Adresse Zeile 1', hebrew: 'שורת כתובת 2', russian: 'Адрес 2', chinese: '地址2', french: 'Adresse ligne 2'}; - case 'AgentBidder': - return {english: 'Online agent', dutch: 'Autobod', german: 'Autogebot ', hebrew: 'סוכן חכם', russian: 'Онлайн-агент', chinese: '在线代理', french: 'Agent en ligne'}; - case 'AmountLimit': - var _p5 = _p4._0; - switch (_p5.ctor) { - case 'None': - return {english: 'None', dutch: 'Geen', german: 'Keiner', hebrew: 'ללא', russian: 'Отсутствует', chinese: '无', french: 'Aucun'}; - case 'Regular': - var extracted = _Gizra$circuit_bid$Amount$extract(_p5._0); - var value = _elm_lang$core$Native_Utils.eq(extracted, 0) ? '' : _elm_lang$core$Basics$toString(extracted); - return {english: value, dutch: value, german: value, hebrew: value, russian: value, chinese: value, french: value}; - default: - return {english: 'Unlimited', dutch: 'Onbeperkt', german: 'Unlimited', hebrew: 'ללא הגבלה', russian: 'Неограниченно', chinese: '无限的', french: 'Illimité'}; - } - case 'AmountRestrictionLabel': - var _p6 = _p4._0; - switch (_p6.ctor) { - case 'None': - return {english: 'None', dutch: 'Geen', german: 'Keiner', hebrew: 'ללא', russian: 'Отсутствует', chinese: '无', french: 'Aucun'}; - case 'Regular': - return {english: 'Up to', dutch: 'Tot', german: 'Bis zu', hebrew: 'עד', russian: 'До', chinese: '高达', french: 'Jusqu\'à'}; - default: - return {english: 'Unlimited', dutch: 'Onbeperkt', german: 'Unlimited', hebrew: 'ללא הגבלה', russian: 'Неограниченно', chinese: '无限的', french: 'Illimité'}; - } - case 'AuctioneerNotes': - return {english: 'Auctioneer Notes', dutch: 'Opmerkingen van veilingmeester', german: 'Auktionator Notizen', hebrew: 'הערות מנהל מכירה', russian: 'Примечания аукционера', chinese: '拍卖师备注', french: 'Notes de l\'enchérisseur'}; - case 'AutoClerkToggle': - return {english: 'Run auction automatically (Auto-clerk)', dutch: 'Veiling automatisch laten verlopen (Auto-clerk)', german: 'Auktion automatisch ablaufen lassen (Auto-clerk)', hebrew: 'הרץ מכירה באופן אוטומטי (מוכר - אוטומטי)', russian: 'Запустить аукцион автоматически (Авто-клерк)', chinese: '自动运行拍卖 (自动助手)', french: 'Exécuter l\'enchère automatiquement (Auto-clerk)'}; - case 'Archaeology': - return {english: 'Archaeology', dutch: 'Archeologie', german: 'Archaeology', hebrew: 'ארכיאולוגיה', russian: 'Археология', chinese: '考古学', french: 'Archéologie'}; - case 'AuctioneerPage': - return {english: 'Auctioneer Page', dutch: 'Pagina veilingmeester', german: 'Auktionatorseite', hebrew: 'דף מנהלי מכירה', russian: 'Страница аукционера', chinese: '拍卖师页面', french: 'Page de l\'enchérisseur'}; - case 'Bidder': - return {english: 'Bidder', dutch: 'Bieder', german: 'Bieter', hebrew: 'קונה', russian: 'Участник торгов', chinese: '出价者', french: 'Enchérisseur'}; - case 'BidderLimit': - return {english: 'Bidder Limit', dutch: 'Biederslimiet', german: 'Bieter-Limit', hebrew: 'הגבלה עצמית', russian: 'Лимит участника', chinese: '出价者限制', french: 'Limite de l\'enchérisseur'}; - case 'BidderLimitDescription': - return {english: 'Set your own limit over the bids you will place.', dutch: 'Stel uw eigen limiet in op de biedingen die u plaatst.', german: 'Legen Sie ein eigenes Limit für die Gebote fest, die Sie platzieren.', hebrew: 'קבע את ההגבלה שלך להצעות אותן תגיש', russian: 'Установите свой собственный лимит для ставок, которые вы будете размещать.', chinese: '为您要放置的出价设置自己的限制。', french: 'Définissez votre propre limite pour les offres que vous allez placer.'}; - case 'Bids': - return {english: 'Bids', dutch: 'Biedingen', german: 'Gebote', hebrew: 'הצעות', russian: 'Ставки', chinese: '出价', french: 'Enchères'}; - case 'BidAcceptedMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - var _p7 = _p4._2; - switch (_p7.ctor) { - case 'Agent': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Online agent)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, '(Autobod)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, '(Autogebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (סוכן חכם)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Автоматический агент)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (在线代理)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Agent en ligne)') - }; - case 'AutoAgent': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Online agent)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, '(Autobod)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, '(Autogebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (סוכן חכם)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Автоматический агент)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (在线代理)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Agent en ligne)') - }; - case 'Book': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Book)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (boek)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Buchgebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (הצעה מראש)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (По книге)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (预订出价)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Offre sur le livre)') - }; - case 'Floor': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Floor)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Zaal)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Saalgebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (הצעה מהחדר)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Зал)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (现场出价)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Offre sur place)') - }; - case 'Internet': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Online)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Online)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Online-Gebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (אונליין)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Онлайн)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (在线)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (En ligne)') - }; - case 'Mail': - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Mail)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (schriftelijk)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Mail-Gebot)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (הצעה במייל)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Почтой)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (邮件出价)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Par mail)') - }; - default: - return { - english: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Post Sale)'), - dutch: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Na verkoop)'), - german: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Postverkauf)'), - hebrew: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (לאחר המכירה)'), - russian: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (После продажи)'), - chinese: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (售后)'), - french: A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' (Après vente)') - }; - } - case 'BidAcceptedOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been accepted')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is geaccepteerd')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde akzeptiert')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' התקבלה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваше предложение на сумму ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' было принято')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été acceptée')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价已被接受')) - }; - case 'BidChangedToFloorMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'A bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been changed to a floor bid by the auctioneer')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Een bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is door de veilingmeester gewijzigd in een minimumbod')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ein Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde beim Auktionator auf ein Saalgebot geändert')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעה בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' שונתה להצעת חדר על ידי מנהל המכירה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставка ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была изменена аукционистом на зальную ставку')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '出价 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 已被拍卖师更改为现场出价')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'L\'offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été changée en offre sur place par le commissaire-priseur')) - }; - case 'BidChangedToFloorOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been changed to a floor bid by the auctioneer')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is door de veilingmeester gewijzigd in een zaalbod')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde vom Auktionator in ein Saalgebot geändert')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך של ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' שונתה להצעת חדר על ידי מנהל המכירה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была изменена аукционистом на зальную ставку')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '拍卖官已将您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价更改为现场出价')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été changée en une offre sur place par le commissaire-priseur')) - }; - case 'BidDeletedMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'A bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been revoked by the auctioneer')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Een bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is ingetrokken door de veilingmeester')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ein Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde beim Auktionator gelöscht')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעה בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נמחקה על ידי מנהל המכירה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставка ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отменена аукционистом')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '出价 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 已被拍卖师撤销')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'L\'offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été révoquée par le commissaire-priseur')) - }; - case 'BidDeletedOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been revoked by the auctioneer')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is ingetrokken door de veilingmeester')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde beim Auktionator gelöscht')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נמחקה על ידי מנהל המכירה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отменена аукционером')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价已被拍卖师撤销')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été réfutée par le commissaire-priseur')) - }; - case 'BidRejectedBidderMaxOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of amount ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' was rejected for exceeding your limit')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' werd afgewezen wegens overschrijding van uw limiet')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde für die Überschreitung Ihrer Grenze abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה בשל חריגה מהגבול שקבעת לך')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отклонена из-за превышения вашего лимита')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价由于超过您的限制而被拒绝')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été refusée car elle dépassait votre limite')) - }; - case 'BidRejectedCreditLimitOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of amount ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' was rejected for exceeding your credit limit')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' werd afgewezen wegens overschrijding van uw limiet')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde für die Überschreitung des Kreditlimits abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה בשל חריגה מהאשראי שלך')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отклонена из-за превышения вашего кредитного лимита')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价由于超过您的信用限制而被拒绝')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été refusée car elle dépassait votre plafond de crédit')) - }; - case 'BidRejectedMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'A bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been rejected')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Een bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is afgewezen')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ein Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעה בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставка ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отклонена')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '出价 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 被拒绝')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'L\'offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été rejetée')) - }; - case 'BidRejectedOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been rejected')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is afgewezen')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отклонена')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价被拒绝')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été refusée')) - }; - case 'BidRejectedDuplicateAmountMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' has been rejected - Duplicate amount')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' is afgewezen - Dubbel bedrag')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde abgelehnt - Doppelter Betrag')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'ההצעה שלך של ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה - סכום כפול')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была отклонена - Повторная сумма')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的出价 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 被拒绝了 - 重复金额')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été rejetée - Montant en double')) - }; - case 'BidOutbidMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'A bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' was outbid by a book bid')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Een bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' werd overboden door een boek bod')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ein Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde von einem Buchgebot überboten')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעה בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה בעבור הצעה מראש')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставка ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была перебита ставкой по книге')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '出价 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 已被书面出价超过')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'L\'offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été surenchérie par une offre sur le livre')) - }; - case 'BidOutbidOwnMessage': - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' was outbid by a book bid')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' werd overboden door een boek bod')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot von ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' wurde von einem Buchgebot überboten')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתך בסך ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' נדחתה בעבור הצעה מראש')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' была перебита ставкой по книге')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 出价被书面出价超过')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' a été surenchérie par une offre sur le livre')) - }; - case 'BidsLimit': - return {english: 'Bids Limit', dutch: 'Biedingslimiet', german: 'Kreditlimit', hebrew: 'הגבלת הצעות', russian: 'Лимит ставок', chinese: '出价限制', french: 'Limite des offres'}; - case 'BidsLimitExplanation': - return {english: '(maximum amount allowed for bidding for each sale)', dutch: '(maximumbedrag dat voor elke veiling mag worden geboden)', german: 'Kreditlimit', hebrew: 'סכום מקסימלי של הצעות בכל מכירה', russian: '(максимальная сумма для ставок на каждой продаже)', chinese: '(每次拍卖的最大出价金额)', french: '(montant maximum autorisé pour les enchères pour chaque vente)'}; - case 'BidStep': - return {english: 'Bid step', dutch: 'Biedstap', german: 'Gebotsstufen', hebrew: 'מדרגת הצעת מחיר', russian: 'Шаг ставки', chinese: '出价步骤', french: 'Pas de l\'offre'}; - case 'BidStepAmount': - return {english: 'Amount', dutch: 'Hoeveelheid', german: 'Gebot', hebrew: 'סכום', russian: 'Сумма', chinese: '金额', french: 'Montant'}; - case 'BidStepFrom': - return {english: 'From', dutch: 'Van', german: 'von', hebrew: 'מסכום', russian: 'От', chinese: '从', french: 'De'}; - case 'Book': - return {english: 'Book', dutch: 'Boek', german: 'Buchgebot', hebrew: 'הצעה מראש', russian: 'Книга', chinese: '书', french: 'Livre'}; - case 'BookBids': - return {english: 'Book bids', dutch: 'Boek biedingen', german: 'Buchgebote', hebrew: 'הצעות מראש', russian: 'Ставки по книге', chinese: '书面出价', french: 'Offres sur le livre'}; - case 'BuyNow': - return {english: 'Buy Now', dutch: 'Nu kopen', german: 'Jetzt kaufen', hebrew: 'קנה עכשיו', russian: 'Купить сейчас', chinese: '立即购买', french: 'Acheter maintenant'}; - case 'CallRequests': - return {english: 'Call Requests', dutch: 'Oproepverzoeken', german: 'Anrufanfragen', hebrew: 'בקשות שיחה', russian: 'Запросы на звонок', chinese: '呼叫请求', french: 'Demandes d\'appel'}; - case 'Cancel': - return {english: 'Cancel', dutch: 'Annuleren', german: 'Abbrechen', hebrew: 'בטל', russian: 'Отмена', chinese: '取消', french: 'Annuler'}; - case 'ChangeBidAmount': - return {english: 'Change bid amount', dutch: 'Biedingsbedrag wijzigen', german: 'Gebot ändern', hebrew: 'שנה', russian: 'Изменить сумму ставки', chinese: '更改出价金额', french: 'Changer le montant de l\'offre'}; - case 'ChangeBidStep': - return {english: 'Step', dutch: 'Stap', german: 'Gebotsschritt', hebrew: 'מדרגת הצעה', russian: 'Шаг', chinese: '步骤', french: 'Étape'}; - case 'ChangeOpeningPrice': - return {english: 'Change Opening Price ', dutch: 'Wijziging Inzet', german: 'Ausruf aktualisieren ', hebrew: ' עדכן מחיר פתיחה', russian: 'Изменить начальную цену', chinese: '更改开盘价', french: 'Changer le prix d\'ouverture'}; - case 'ChangePassword': - return {english: 'Change password', dutch: 'Verander wachtwoord', german: 'Passwort ändern', hebrew: 'שנה סיסמא', russian: 'Изменить пароль', chinese: '更改密码', french: 'Changer le mot de passe'}; - case 'City': - return {english: 'City', dutch: 'Stad', german: 'Stadt', hebrew: 'עיר', russian: 'Город', chinese: '城市', french: 'Ville'}; - case 'ClerkPage': - return {english: 'Clerk Page', dutch: 'Winkelbediendepagina', german: 'AuctionHelper', hebrew: 'דף מוכר', russian: 'Страница клерка', chinese: '职员页面', french: 'Page du commis'}; - case 'Closed': - return {english: 'Closed', dutch: 'Gesloten', german: 'geschlossen', hebrew: 'סגור', russian: 'Закрыто', chinese: '已关闭', french: 'Fermé'}; - case 'ClosedEnded': - return {english: 'Closed - auction ended', dutch: 'Gesloten - veiling afgelopen', german: 'geschlossen - Die Auktion ist beendet', hebrew: 'מכירה הסתיימה', russian: 'Закрыто - аукцион завершен', chinese: '已结束 - 拍卖结束', french: 'Fermé - vente aux enchères terminée'}; - case 'ClosedNotStarted': - return {english: 'Closed - not started', dutch: 'Gesloten - niet gestart', german: 'geschlossen - die Auktion hat noch nicht angefangen', hebrew: 'מכירה סגורה - טרם התחילה', russian: 'Закрыто - не началось', chinese: '已关闭 - 未开始', french: 'Fermé - pas commencé'}; - case 'ClosedItems': - return {english: 'Closed Items', dutch: 'Gesloten kavels', german: 'beendete Lose', hebrew: 'פריטים סגורים', russian: 'Закрытые лоты', chinese: '已关闭的物品', french: 'Articles fermés'}; - case 'Israeliana': - return {english: 'Israeliana', dutch: 'Israeliana', german: 'Israeliana', hebrew: 'ישראלינה', russian: 'Израилиана', chinese: '以色列艺术品', french: 'Israéliana'}; - case 'ConfirmPassword': - return {english: 'Confirm password', dutch: 'Bevestig wachtwoord', german: 'Passwort bestätigen', hebrew: 'אישור סיסמא', russian: 'Подтвердите пароль', chinese: '确认密码', french: 'Confirmer le mot de passe'}; - case 'Connected': - return {english: 'Connected', dutch: 'Verbonden', german: 'Verbunden', hebrew: 'מחובר', russian: 'Подключено', chinese: '已连接', french: 'Connecté'}; - case 'ConnectedUsers': - var countText = A2( - _elm_lang$core$Basics_ops['++'], - '(', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(_p4._0), - ')')); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Connected users ', countText), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Verbonden gebruikers ', countText), - german: A2(_elm_lang$core$Basics_ops['++'], 'Verbundene Benutzer ', countText), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'משתמשים מחוברים ', countText), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Подключенные пользователи ', countText), - chinese: A2(_elm_lang$core$Basics_ops['++'], '已连接的用户 ', countText), - french: A2(_elm_lang$core$Basics_ops['++'], 'Utilisateurs connectés ', countText) - }; - case 'Country': - return {english: 'Country', dutch: 'Land', german: 'Land', hebrew: 'ארץ', russian: 'Страна', chinese: '国家', french: 'Pays'}; - case 'CountryName': - return _Gizra$circuit_bid$Translate$translateCountry(_p4._0); - case 'CreateAccount': - return {english: 'Create an account', dutch: 'Account aanmaken', german: 'Ein Konto erstellen', hebrew: 'פתיחת חשבון', russian: 'Создать учетную запись', chinese: '创建帐户', french: 'Créer un compte'}; - case 'CreditRequest': - return {english: 'Credit request for Online Live Bidding', dutch: 'Kredietaanvraag voor online live bieden', german: 'Limitanfrage für das Online-Live-Bieten', hebrew: 'בקש אשראי', russian: 'Запрос на кредит для онлайн-ставок', chinese: '在线直播竞标的信用要求', french: 'Demande de crédit pour les enchères en ligne en direct'}; - case 'CreditRequests': - return {english: 'Credit Requests', dutch: '', german: '', hebrew: '', russian: '', chinese: '', french: ''}; - case 'CreditRequestDescription': - return {english: 'Enter the amount you want set as credit for the online live bidding. Once this limit is reached during the live auction you are not able to place further bids.', dutch: 'Voer het bedrag in dat u wilt instellen als tegoed voor het online live bieden. Zodra deze limiet is bereikt tijdens de live veiling, kunt u niet meer bieden.', german: 'Geben Sie die Summe ein, für die Sie voraussichtlich während der Online-Live-Auktion bieten werden. Sobald dieses Limit während der Online-Live-Auktion erreicht wird, können Sie keine weiteren Gebote mehr abgeben.', hebrew: 'הכנס את הסכום אותו תרצה כאשראי ממנהל המכירה.', russian: 'Введите сумму, которую вы хотите установить в качестве кредита для онлайн-ставок в реальном времени. Как только это ограничение будет достигнуто во время аукциона, вы не сможете делать дальнейшие ставки.', chinese: '请输入您希望设置为在线实时竞标的信用额度。在实时拍卖中达到此限额后,您将无法再进一步出价。', french: 'Entrez le montant que vous souhaitez définir comme crédit pour les enchères en direct en ligne. Une fois cette limite atteinte lors de la vente aux enchères en direct, vous ne pourrez plus enchérir.'}; - case 'CreditRequestPending': - return {english: 'Thank you very much for your request. We\'ll check it out immediately. ', dutch: 'Hartelijk dank voor uw verzoek. We gaan het meteen bekijken.', german: 'Vielen Dank für die Beantragung des Kredit-Limits. Wir werden es umgehend prüfen.', hebrew: 'תודה על בקשתך, נבדוק את הבקשה מיידית', russian: 'Большое спасибо за ваш запрос. Мы немедленно его рассмотрим.', chinese: '感谢您的请求,我们会立即查看。', french: 'Merci beaucoup pour votre demande. Nous l\'examinerons immédiatement.'}; - case 'CreditUnlimited': - return {english: 'You have unlimited credit.', dutch: 'Je hebt onbeperkt tegoed', german: 'Sie haben unbegrenzten Kredit', hebrew: 'יש לך אשראי ללא הגבלה', russian: 'У вас неограниченный кредит.', chinese: '您有无限的信用额度。', french: 'Vous avez un crédit illimité.'}; - case 'CurrentCredit': - var _p8 = _p4._0; - switch (_p8.ctor) { - case 'None': - return {english: 'No credit', dutch: 'Geen krediet', german: 'Kein Kredit', hebrew: 'אין אשראי', russian: 'У вас нет кредита', chinese: '您没有信用额度', french: 'Vous n\'avez pas de crédit'}; - case 'Regular': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p8._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Your current credit is ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Uw huidige tegoed is ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Ihr aktuelles Limit beträgt ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'האשראי שלך הוא ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Ваш текущий кредит составляет ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '您当前的信用额度为 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Votre crédit actuel est de ', value) - }; - default: - return {english: 'Your current credit is unlimited', dutch: 'Uw huidige tegoed is onbeperkt', german: 'Ihr aktuelles Guthaben ist unbegrenzt', hebrew: 'האשראי שלך הוא ללא הגבלה', russian: 'Ваш текущий кредит неограничен', chinese: '您当前的信用额度是无限的', french: 'Votre crédit actuel est illimité'}; - } - case 'CurrentCreditAndPending': - var _p10 = _p4._2; - var _p9 = {ctor: '_Tuple2', _0: _p4._0, _1: _p4._1}; - if (((_p9.ctor === '_Tuple2') && (_p9._0.ctor === 'Regular')) && (_p9._1.ctor === 'Regular')) { - var pending = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p9._1._0, _p10); - var existing = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p9._0._0, _p10); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your current credit is ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], ' and you have a pending request for ', pending))), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw huidige tegoed is ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], '. en je hebt een lopende aanvraag voor ', pending))), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr aktuelles Limit beträgt ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], '. Sie haben eine ausstehende Anfrage über ', pending))), - hebrew: 'אשראי', - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваш текущий кредит составляет ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], ', и у вас есть ожидающий запрос на ', pending))), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您当前的信用额度为 ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], ',并且您有一个挂起的请求 ', pending))), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre crédit actuel est de ', - A2( - _elm_lang$core$Basics_ops['++'], - existing, - A2(_elm_lang$core$Basics_ops['++'], ' et vous avez une demande en attente de ', pending))) - }; - } else { - return {english: 'Your current credit is unlimited', dutch: 'Uw huidige tegoed is onbeperkt', german: 'Ihr aktuelles Guthaben ist unbegrenzt', hebrew: 'האשראי שלך הוא ללא הגבלה', russian: 'Ваш текущий кредит неограничен', chinese: '您当前的信用额度是无限的', french: 'Votre crédit actuel est illimité'}; - } - case 'CurrentPrice': - return {english: 'Current price', dutch: 'Huidige prijs', german: 'Aktuelles Gebot', hebrew: 'מחיר נוכחי', russian: 'Текущая цена', chinese: '当前价格', french: 'Prix actuel'}; - case 'CurrentPriceAmount': - var _p12 = _p4._1; - var _p11 = _p4._0; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Current ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Huidige prijs ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Aktuelles Gebot ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'מחיר נוכחי ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Текущая ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '当前价格 ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Prix actuel ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p11, _p12)) - }; - case 'CurrentSession': - return {english: 'Current session', dutch: 'Huidige sessie', german: 'Aktuelle Session', hebrew: 'חלק נוכחי', russian: 'Текущая сессия', chinese: '当前会话', french: 'Session actuelle'}; - case 'CurrentStep': - var value = _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Amount$extract(_p4._0)); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Current bid step: ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Huidige biedstap: ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Aktueller Gebotsschritt: ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'מדרגת הצעה: ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Текущий шаг ставки: ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '当前出价步骤:', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Étape d\'enchère actuelle: ', value) - }; - case 'Dashboard': - return {english: 'Dashboard', dutch: 'Dashboard', german: 'Dashboard', hebrew: 'לוח נתונים', russian: 'Панель управления', chinese: '仪表板', french: 'Tableau de bord'}; - case 'Edit': - return {english: 'Edit', dutch: 'Bewerking', german: 'Bearbeiten', hebrew: 'עריכה', russian: 'Редактировать', chinese: '编辑', french: 'Éditer'}; - case 'Email': - return {english: 'Email', dutch: 'Email', german: 'E-Mail', hebrew: 'אימייל', russian: 'Электронная почта', chinese: '电子邮件', french: 'E-mail'}; - case 'EnterYourBid': - return {english: 'Enter your bid', dutch: 'Voer uw bod in', german: 'Geben Sie Ihr Gebot ein', hebrew: 'להוסיף הצעה', russian: 'Введите вашу ставку', chinese: '输入您的出价', french: 'Entrez votre offre'}; - case 'EmailInfo': - return {english: 'A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.', dutch: 'Een geldig e-mailadres. Alle e-mails van het systeem worden naar dit adres gestuurd. Het e-mailadres wordt niet openbaar gemaakt en wordt alleen gebruikt als je een nieuw wachtwoord wilt ontvangen of bepaald nieuws of meldingen per e-mail wilt ontvangen', german: 'Eine gültige E-Mail-Adresse. Alle E-Mails vom System werden an diese Adresse gesendet. Die E-Mail-Adresse wird nicht öffentlich gemacht und wird nur verwendet, wenn Sie ein neues Passwort erhalten oder bestimmte Nachrichten oder Benachrichtigungen per E-Mail erhalten möchten.', hebrew: 'אימייל מאומת. כל ההודעות מהמערכת ישלחו לכתובת זו. הכתובת לא תתפרסם ותשמש רק במידה ותרצה לקבל סיסמה חדשה או לקבל חדשות מסוימות או הודעות באמצעות האימייל.', russian: 'Действующий адрес электронной почты. Все письма от системы будут отправляться на этот адрес. Адрес электронной почты не будет опубликован и будет использоваться только в том случае, если вы захотите получить новый пароль или получить определенные новости или уведомления по электронной почте.', chinese: '一个有效的电子邮件地址。系统的所有电子邮件都会发送到这个地址。电子邮件地址不会公开,只有当您希望收到新的密码或希望通过电子邮件接收某些新闻或通知时才会使用。', french: 'Une adresse e-mail valide. Tous les e-mails du système seront envoyés à cette adresse. L\'adresse e-mail n\'est pas rendue publique et ne sera utilisée que si vous souhaitez recevoir un nouveau mot de passe ou si vous souhaitez recevoir certaines nouvelles ou notifications par e-mail.'}; - case 'EnterYourPassword': - return {english: 'Enter your password', dutch: 'Voer uw wachtwoord in', german: 'Bitte geben Sie Ihr Passwort ein', hebrew: 'הכניסו את סיסמתכם', russian: 'Введите ваш пароль', chinese: '输入您的密码', french: 'Entrez votre mot de passe'}; - case 'EnterNewPassword': - return {english: 'Enter New Password', dutch: 'Voer een nieuw wachtwoord in', german: 'Neues Passwort eingeben', hebrew: 'הכניסו סיסמא חדשה', russian: 'Введите новый пароль', chinese: '输入新密码', french: 'Entrez un nouveau mot de passe'}; - case 'EnterYourUsername': - return {english: 'Enter your username', dutch: 'Typ je gebruikersnaam', german: 'Geben Sie Ihren Benutzernamen ein', hebrew: 'הכניסו את שם המשתמש שלכם', russian: 'Введите ваше имя пользователя', chinese: '输入您的用户名', french: 'Entrez votre nom d\'utilisateur'}; - case 'ErrorBadUrl': - return {english: 'URL is not valid.', dutch: 'URL is niet geldig', german: 'URL ist ungültig', hebrew: 'ה-URL אינו תקני', russian: 'URL недействителен', chinese: 'URL无效', french: 'L\'URL n\'est pas valide'}; - case 'ErrorBadPayload': - var _p13 = _p4._0; - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'The server responded with data of an unexpected type: ', _p13), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'De server reageerde met gegevens van een onverwacht type: ', _p13), - german: A2(_elm_lang$core$Basics_ops['++'], 'Der Server antwortete mit Daten eines unerwarteten Typs: ', _p13), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'השרת הגיב עם נתונים מסוג בלתי צפוי: ', _p13), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Сервер ответил данными неожиданного типа: ', _p13), - chinese: A2(_elm_lang$core$Basics_ops['++'], '服务器返回了意外类型的数据:', _p13), - french: A2(_elm_lang$core$Basics_ops['++'], 'Le serveur a répondu avec des données d\'un type inattendu: ', _p13) - }; - case 'ErrorBadStatus': - var _p14 = _p4._0; - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Error:\n\n', _p14), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Fout:\n\n', _p14), - german: A2(_elm_lang$core$Basics_ops['++'], 'Fehler:\n\n', _p14), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'שגיאה:\n\n', _p14), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Ошибка:\n\n', _p14), - chinese: A2(_elm_lang$core$Basics_ops['++'], '错误:\n\n', _p14), - french: A2(_elm_lang$core$Basics_ops['++'], 'Erreur :\n\n', _p14) - }; - case 'ErrorNetworkError': - return {english: 'There was a network error.', dutch: 'Er was een netwerkfout', german: 'Es gab einen Netzwerkfehler.', hebrew: 'הייתה בעיה ברשת', russian: 'Произошла ошибка сети.', chinese: '出现网络错误。', french: 'Il y a eu une erreur réseau.'}; - case 'ErrorTimeout': - return {english: 'The network request timed out.', dutch: 'Het netwerkverzoek is verlopen', german: 'Die Netzwerkanforderung wurde zeitüberschritten.', hebrew: 'הבקשה לרשת הסתיימה מבלי לקבל תגובה', russian: 'Время ожидания запроса к сети истекло.', chinese: '网络请求超时。', french: 'La demande réseau a expiré.'}; - case 'ErrorRegistration': - return {english: 'Registration error, the email is invalid or already exists for another user', dutch: 'Registratiefout, de e-mail is ongeldig of bestaat al voor een andere gebruiker', german: 'Registrierungsfehler, die E-Mail ist ungültig oder existiert bereits für einen anderen Benutzer', hebrew: 'שגיאת הרשמה, האימייל או שאינו חוקי או שכבר קיים למשתמש אחר', russian: 'Ошибка регистрации, электронная почта недействительна или уже существует для другого пользователя', chinese: '注册错误,电子邮件无效或已被其他用户使用', french: 'Erreur d\'inscription, l\'email est invalide ou existe déjà pour un autre utilisateur'}; - case 'Est': - var _p16 = _p4._0; - var _p15 = _p4._1; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Est. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Schatting. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Schätzung. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הערכה ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Оценка. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '估计. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Est. ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p15, _p16)) - }; - case 'Estimate': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._1, _p4._0); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Estimate ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Schatting ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Schätzung ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'הערכה ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Оценка ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '估计 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Estimation ', value) - }; - case 'FieldIsRequired': - return {english: 'This field is required', dutch: 'Dit veld is verplicht', german: 'Dieses Feld ist erforderlich', hebrew: 'שדה זה הוא חובה', russian: 'Это поле обязательно для заполнения', chinese: '该字段是必填的', french: 'Ce champ est obligatoire'}; - case 'FirstName': - return {english: 'First Name', dutch: 'Voornaam', german: 'Vorname', hebrew: 'שם פרטי', russian: 'Имя', chinese: '名字', french: 'Prénom'}; - case 'ForgotMyPassword': - return {english: 'Forgot my Password', dutch: 'Mijn wachtwoord vergeten', german: 'Passwort vergessen', hebrew: 'שכחתי את הסיסמא', russian: 'Забыли пароль', chinese: '忘记了我的密码', french: 'J\'ai oublié mon mot de passe'}; - case 'ForgotPassword': - return {english: 'Forgot password', dutch: 'Wachtwoord vergeten', german: 'Passwort vergessen', hebrew: 'שכחתי את הסיסמא', russian: 'Забыли пароль', chinese: '忘记密码', french: 'Mot de passe oublié'}; - case 'ForgotPasswordLogin': - return {english: 'Login', dutch: 'Login', german: 'Login', hebrew: 'התחברות', russian: 'Войти', chinese: '登录', french: 'Connexion'}; - case 'ForgotYourPassword': - return {english: 'Forgot your password?', dutch: 'Uw wachtwoord vergeten?', german: 'Passwort vergessen?', hebrew: 'שכחת את הסיסמא?', russian: 'Забыли ваш пароль?', chinese: '忘记了您的密码?', french: 'Vous avez oublié votre mot de passe?'}; - case 'FloorBidder': - return {english: 'Floor', dutch: 'Zaal', german: 'Saal', hebrew: 'חדר', russian: 'Зал', chinese: '现场', french: 'Salle'}; - case 'Going': - return {english: 'Going', dutch: 'Gaan', german: 'zum ersten...zum zweiten...', hebrew: 'עומד להיסגר', russian: 'Текущая ставка', chinese: '进行中', french: 'En cours'}; - case 'Gone': - return {english: 'Gone', dutch: 'Weg', german: 'Verkauft', hebrew: 'סגור', russian: 'Продано', chinese: '已售', french: 'Vendu'}; - case 'Hours': - return {english: 'Hours', dutch: 'Uren', german: 'Stunden', hebrew: 'שעות', russian: 'Часы', chinese: '小时', french: 'Heures'}; - case 'IHaveAcceptedTheAuctioneersTerms': - return {english: 'I have read and accepted the Auctioneers\' Terms and Conditions and I agree to abide by them.', dutch: 'Ik heb de veilingmeesters gelezen en geaccepteerd.', german: 'Ich habe die AGBs gelesen und aktzeptiere diese.', hebrew: 'קראתי את התנאים ואני מסכים להם', russian: 'Я прочитал и принял условия аукционера и согласен им следовать.', chinese: '我已阅读并接受拍卖师的条款和条件,并同意遵守它们。', french: 'J\'ai lu et accepté les termes et conditions de l\'enchérisseur et je m\'engage à les respecter.'}; - case 'IncludingBuyersPremium': - return {english: 'Including buyer\'s premium', dutch: 'Inclusief koperspremie', german: 'Einschließlich der Käuferprämie', hebrew: 'כולל עמלת קונה', russian: 'Включая премию покупателя', chinese: '包括买家佣金', french: 'Incluant la prime de l\'acheteur'}; - case 'InvalidEmail': - return {english: 'Invalid email address', dutch: 'Ongeldig e-mailadres', german: 'Ungültige E-Mail', hebrew: 'אימייל לא תקין', russian: 'Неверный адрес электронной почты', chinese: '无效的邮箱地址', french: 'Adresse e-mail invalide'}; - case 'AreaOfInterest': - return {english: 'Area of Interest', dutch: 'Gebied van intresse', german: 'Sammelgebiete', hebrew: 'תחום עניין', russian: 'Область интереса', chinese: '兴趣领域', french: 'Domaine d\'intérêt'}; - case 'InternetBidder': - return {english: 'Internet Bidder', dutch: 'Internetbieder', german: 'Internetbieter', hebrew: 'מציע באינטרנט', russian: 'Интернет-ставщик', chinese: '互联网竞拍者', french: 'Enchérisseur Internet'}; - case 'ItemGoingMessage': - return {english: 'Going once... Going twice...', dutch: 'Niemand meer... niemand meer dan...', german: 'zum ersten...zum zweiten', hebrew: '... פעם ראשונה ... פעם שניה', russian: 'Первый раз... Второй раз...', chinese: '第一次... 第二次...', french: 'Une fois... Deux fois...'}; - case 'ItemNotActiveButAlreadyHasLiveBids': - return {english: 'Mail Bid is closed for this item', dutch: 'Mail Bod is gesloten voor dit item', german: 'keine schriftlichen Gebote mehr möglich', hebrew: 'מכירה במייל סגורה עבור פריט זה', russian: 'Почтовое предложение закрыто для этого товара', chinese: '此商品的邮件出价已关闭', french: 'L\'offre par courrier est fermée pour cet article'}; - case 'ItemOpenMessage': - var _p17 = _p4._0; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' open for bidding')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Kavel ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' open voor bieden')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' offen für Gebote')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'פריט ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' פתוח להצעות')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Лот ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' открыт для ставок')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '批次 ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' 开放竞标')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p17, ' ouvert aux enchères')) - }; - case 'ItemPausedMessage': - var _p18 = _p4._0; - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Bidding paused on Lot ', _p18), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Bieden gepauzeerd op kavel ', _p18), - german: A2(_elm_lang$core$Basics_ops['++'], 'Los noch nicht aktiv ', _p18), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'הצעות הופסקו על פריט ', _p18), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставки на лот ', - A2(_elm_lang$core$Basics_ops['++'], _p18, ' приостановлены')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '批次 ', - A2(_elm_lang$core$Basics_ops['++'], _p18, ' 竞标暂停')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Les enchères sur le lot ', - A2(_elm_lang$core$Basics_ops['++'], _p18, ' sont en pause')) - }; - case 'ItemSoldMessage': - var _p19 = _p4._0; - var amountWithCurrency = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._1, _p4._2); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' sold for ', amountWithCurrency))), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Kavel ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' verkocht voor ', amountWithCurrency))), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' verkauft für ', amountWithCurrency))), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'פריט ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' נמכר ב', amountWithCurrency))), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Лот ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' продан за ', amountWithCurrency))), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '批次 ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2( - _elm_lang$core$Basics_ops['++'], - ' 已以 ', - A2(_elm_lang$core$Basics_ops['++'], amountWithCurrency, ' 销售')))), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2( - _elm_lang$core$Basics_ops['++'], - _p19, - A2(_elm_lang$core$Basics_ops['++'], ' vendu pour ', amountWithCurrency))) - }; - case 'ItemUnsoldMessage': - var _p20 = _p4._0; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' unsold')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Kavel ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' niet verkocht')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' nicht verkauft')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'פריט ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' לא נמכר')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Лот ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' не продан')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '批次 ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' 未售出')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p20, ' invendu')) - }; - case 'ItemWithdrawnMessage': - var _p21 = _p4._0; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' has been removed from the sale')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Kavel ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' is uit de veiling gehaald')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Lot ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' wurde aus dem Verkauf entfernt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'פריט ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' הוסר מהמכירה')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Лот ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' был удален из продажи')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '批次 ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' 已从销售中移除')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Le lot ', - A2(_elm_lang$core$Basics_ops['++'], _p21, ' a été retiré de la vente')) - }; - case 'Items': - return {english: 'Items', dutch: 'Kavel', german: 'Lose', hebrew: 'פריטים', russian: 'Предметы', chinese: '物品', french: 'Articles'}; - case 'ItemsCounter': - var totalStr = _elm_lang$core$Basics$toString(_p4._1); - var countStr = _elm_lang$core$Basics$toString(_p4._0); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' of ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' lots'))), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' van ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' kavels'))), - german: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' von ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' Losen'))), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' מתוך ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' פריטים'))), - russian: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' из ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' лотов'))), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' 共 ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' 批次'))), - french: A2( - _elm_lang$core$Basics_ops['++'], - countStr, - A2( - _elm_lang$core$Basics_ops['++'], - ' sur ', - A2(_elm_lang$core$Basics_ops['++'], totalStr, ' lots'))) - }; - case 'Joined': - return {english: 'Joined', dutch: 'lid geworden', german: 'Beigetreten', hebrew: 'זמן הצטרפות', russian: 'Присоединился', chinese: '已加入', french: 'Rejoint'}; - case 'JoinLiveAuction': - return {english: 'Join Live Auction', dutch: 'Doe mee met de live veiling', german: 'Treten Sie der Live-Auktion bei', hebrew: 'למכירה החיה', russian: 'Присоединиться к живому аукциону', chinese: '参与现场拍卖', french: 'Rejoindre la vente aux enchères en direct'}; - case 'Jewelry': - return {english: 'Jewelry', dutch: 'Schmuck', german: 'Schmuck', hebrew: 'תכשיטים', russian: 'Ювелирные изделия', chinese: '珠宝', french: 'Bijoux'}; - case 'JumpToItem': - return {english: 'Go', dutch: 'Gaan', german: 'Los', hebrew: 'עבור', russian: 'Идти', chinese: '前往', french: 'Aller'}; - case 'LastName': - return {english: 'Last name', dutch: 'Achternaam', german: 'Nachname', hebrew: 'שם משפחה', russian: 'Фамилия', chinese: '姓', french: 'Nom de famille'}; - case 'LastToFloor': - return {english: 'Set to floor', dutch: 'Instellen op zaal', german: 'Als Saalgebot festlegen', hebrew: 'שנה להצעת חדר', russian: 'Установить на пол', chinese: '设置到现场', french: 'Régler au sol'}; - case 'LoadingAuction': - return {english: 'Loading Auction', dutch: 'Veiling laden', german: 'Auktion wird geladen', hebrew: 'טוען מכירה', russian: 'Загрузка аукциона', chinese: '加载拍卖', french: 'Chargement de l\'enchère'}; - case 'Live': - return {english: 'Live', dutch: 'Live', german: 'Live', hebrew: 'מכירה חיה', russian: 'В прямом эфире', chinese: '直播', french: 'En direct'}; - case 'LiveAuctionOpen': - return {english: 'Live auction open', dutch: 'Live veiling geopend', german: 'Liveauktion', hebrew: 'מכירה פתוחה', russian: 'Открытый аукцион в прямом эфире', chinese: '现场拍卖开启', french: 'Enchères en direct ouvertes'}; - case 'Login': - return {english: 'Login', dutch: 'Log in', german: 'Login', hebrew: 'התחברות', russian: 'Войти', chinese: '登录', french: 'Connexion'}; - case 'LoginVerb': - return {english: 'Login', dutch: 'Log in', german: 'Login', hebrew: 'התחבר', russian: 'Вход', chinese: '登录', french: 'Se connecter'}; - case 'Logout': - return {english: 'Logout', dutch: 'Uitloggen', german: 'Abmelden', hebrew: 'יציאה', russian: 'Выход', chinese: '登出', french: 'Déconnexion'}; - case 'Lot': - return {english: 'Lot', dutch: 'Kavel', german: 'Los', hebrew: 'פריט', russian: 'Лот', chinese: '批次', french: 'Lot'}; - case 'LotCloseIn': - return {english: 'Lot closing in', dutch: 'Kavel nadert', german: 'Los schließt in', hebrew: 'פריט נסגר עוד', russian: 'Лот закрывается', chinese: '批次即将关闭', french: 'Lot se ferme dans'}; - case 'LotValue': - var _p22 = _p4._0; - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Lot ', _p22), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Kavel ', _p22), - german: A2(_elm_lang$core$Basics_ops['++'], 'Los ', _p22), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'פריט ', _p22), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Лот ', _p22), - chinese: A2(_elm_lang$core$Basics_ops['++'], '批次 ', _p22), - french: A2(_elm_lang$core$Basics_ops['++'], 'Lot ', _p22) - }; - case 'LotWithdrawnFromSale': - return {english: 'Lot withdrawn from sale', dutch: 'Kavel uit de veiling gehaald', german: 'Dieses Los wurde zurückgezogen', hebrew: 'פריט זה הוצא מהמכירה', russian: 'Лот был отозван с продажи', chinese: '批次已撤销出售', french: 'Lot retiré de la vente'}; - case 'Mail': - return {english: 'Mail', dutch: 'Schriftelijk', german: 'Schriftlich', hebrew: 'מייל', russian: 'Почта', chinese: '邮件', french: 'Courrier'}; - case 'MailAuctionOpen': - return {english: 'Mail auction open', dutch: 'Schriftelijk veiling geopend', german: 'Schriftliche Auktion', hebrew: 'מכירה במייל פתוחה', russian: 'Открытый почтовый аукцион', chinese: '邮件拍卖开启', french: 'Enchère par courrier ouverte'}; - case 'Manuscripts': - return {english: 'Manuscripts', dutch: 'Manuscript', german: 'Manuskripte', hebrew: 'ספרים', russian: 'Манускрипты', chinese: '手稿', french: 'Manuscrits'}; - case 'Messages': - return {english: 'Messages', dutch: 'Berichten', german: 'Meldungen', hebrew: 'הודעות', russian: 'Сообщения', chinese: '消息', french: 'Messages'}; - case 'MinimumPrice': - var formattedPrice = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._1, _p4._0); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Minimum price ', formattedPrice), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Minimum prijs ', formattedPrice), - german: A2(_elm_lang$core$Basics_ops['++'], 'Minimaler Preis ', formattedPrice), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'מחיר מינימלי ', formattedPrice), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Минимальная цена ', formattedPrice), - chinese: A2(_elm_lang$core$Basics_ops['++'], '最低价格 ', formattedPrice), - french: A2(_elm_lang$core$Basics_ops['++'], 'Prix minimum ', formattedPrice) - }; - case 'Minutes': - return {english: 'Minutes', dutch: 'Minuten', german: 'Minutten', hebrew: 'דקות', russian: 'Минуты', chinese: '分钟', french: 'Minutes'}; - case 'MyAccount': - return {english: 'My Account', dutch: 'Mijn rekening', german: 'Mein Konto', hebrew: 'החשבון שלי', russian: 'Мой аккаунт', chinese: '我的账户', french: 'Mon compte'}; - case 'MyBid': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'My bid: ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Mijn bod: ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Mein Gebot: ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'ההצעה שלי: ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Моя ставка: ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '我的出价: ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Mon offre: ', value) - }; - case 'MyBids': - return {english: 'My Bids', dutch: 'Mijn biedingen', german: 'Meine Gebote', hebrew: 'ההצעות שלי', russian: 'Мои ставки', chinese: '我的出价', french: 'Mes offres'}; - case 'MyBidTitle': - return {english: 'My Bid', dutch: 'Mijn bod', german: 'Mein Gebot', hebrew: 'ההצעה שלי', russian: 'Моя ставка', chinese: '我的出价', french: 'Mon offre'}; - case 'Name': - return {english: 'Name', dutch: 'Naam', german: 'Name', hebrew: 'שם', russian: 'Имя', chinese: '名称', french: 'Nom'}; - case 'NoBidsPlaced': - return {english: 'No bids placed', dutch: 'Geen biedingen geplaatst', german: 'Keine Gebote gegeben', hebrew: 'לא הוגשו הצעות', russian: 'Ставок не было сделано', chinese: '没有出价', french: 'Aucune offre placée'}; - case 'NoClosed': - return {english: 'No item is closed yet', dutch: 'Er is nog geen kavel gesloten', german: 'Kein Los ist bereits versteigert', hebrew: 'אין פריטים שנסגרו', russian: 'Предметы еще не закрыты', chinese: '尚无关闭的项目', french: 'Aucun article n\'est encore fermé'}; - case 'NoConnectedSales': - return {english: 'No connected sales', dutch: 'No connected sales', german: 'No connected sales', hebrew: 'אין מכירות מקושרות', russian: 'Нет связанных продаж', chinese: '没有关联的销售', french: 'Aucune vente connectée'}; - case 'MyCredit': - return {english: 'My Credit', dutch: 'Mijn tegoed', german: 'Mein Kredit', hebrew: 'האשראי שלי', russian: 'Мой кредит', chinese: '我的信用', french: 'Mon crédit'}; - case 'NextBid': - return {english: 'Next bid', dutch: 'Volgend bod', german: 'Nächstes Gebot', hebrew: 'הצעה הבאה', russian: 'Следующая ставка', chinese: '下一个出价', french: 'Prochaine offre'}; - case 'NoSelectedItem': - return {english: 'No selected item', dutch: 'Geen geselecteerd item', german: 'No selected item', hebrew: 'אין פריט נבחר', russian: 'Пункт не выбран', chinese: '未选择的项目', french: 'Aucun article sélectionné'}; - case 'NotConnected': - return {english: 'Not Connected', dutch: 'Niet verbonden', german: 'nicht verbunden', hebrew: 'לא מחובר', russian: 'Не подключен', chinese: '未连接', french: 'Non connecté'}; - case 'NotSold': - return {english: 'Not Sold', dutch: 'Niet verkocht', german: 'Nicht verkauft', hebrew: 'לא נמכר', russian: 'Не продано', chinese: '未出售', french: 'Non vendu'}; - case 'NowBidding': - return {english: 'Now Bidding', dutch: 'Nu bieden', german: 'Aktives Los', hebrew: 'עכשיו במכירה', russian: 'Текущий лот', chinese: '正在出价', french: 'En cours d\'enchère'}; - case 'Numismatics': - return {english: 'Numismatics', dutch: 'Numismatics', german: 'Numismatics', hebrew: 'מטבעות', russian: 'Нумизматика', chinese: '钱币学', french: 'Numismatique'}; - case 'NumberInput': - return {english: 'Please type in the number without thousands separator and decimal places.', dutch: 'Typ het getal in zonder scheidingsteken voor duizendtallen en decimalen.', german: 'Bitte geben Sie die Zahl ohne Tausendertrennzeichen und Dezimalstellen ein.', hebrew: 'אנא הזן מספר ללא סימון לאלפים או נקודה עשרונית', russian: 'Пожалуйста, введите число без разделителя тысяч и десятичных знаков.', chinese: '请不要使用千位分隔符和小数点输入数字。', french: 'Veuillez taper le nombre sans séparateur de milliers et sans décimales.'}; - case 'Offer': - return {english: 'Offer', dutch: 'Aanbod', german: 'Gebot', hebrew: 'הצעה', russian: 'Предложение', chinese: '报价', french: 'Offre'}; - case 'Online': - return {english: 'Online', dutch: 'Online', german: 'Online', hebrew: 'מחובר', russian: 'Онлайн', chinese: '在线', french: 'En ligne'}; - case 'OnlineAgent': - return {english: 'Online agent', dutch: 'Autobod', german: 'Autogebot', hebrew: 'סוכן חכם', russian: 'Онлайн-агент', chinese: '在线代理', french: 'Agent en ligne'}; - case 'Opening': - return {english: 'Opening', dutch: 'Inzet', german: 'Ausruf', hebrew: 'פתיחה', russian: 'Открытие', chinese: '开盘', french: 'Ouverture'}; - case 'OpeningPrice': - return {english: 'Opening price', dutch: 'Inzet', german: 'Ausruf', hebrew: 'מחיר פתיחה', russian: 'Начальная цена', chinese: '开盘价', french: 'Prix d\'ouverture'}; - case 'OpeningPriceAmount': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Opening price ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Inzet ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Ausruf ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'מחיר פתיחה ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Начальная цена ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '开盘价 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Prix d\'ouverture ', value) - }; - case 'Or': - return {english: 'Or', dutch: 'of', german: 'oder', hebrew: 'או', russian: 'или', chinese: '或', french: 'Ou'}; - case 'OtherBidRevokedMessage': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'A bid of ', - A2(_elm_lang$core$Basics_ops['++'], value, ' has been revoked')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Een bod van ', - A2(_elm_lang$core$Basics_ops['++'], value, ' is ingetrokken')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ein Gebot in Höhe von ', - A2(_elm_lang$core$Basics_ops['++'], value, ' wurde abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'נדחתה', - A2(_elm_lang$core$Basics_ops['++'], value, 'הצעה בסכום')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], value, ' была отменена')), - chinese: A2(_elm_lang$core$Basics_ops['++'], value, '的出价已被撤销'), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Une offre de ', - A2(_elm_lang$core$Basics_ops['++'], value, ' a été révoquée')) - }; - case 'OwnBidRevokedMessage': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Your bid of ', - A2(_elm_lang$core$Basics_ops['++'], value, ' has been revoked')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Uw bod van ', - A2(_elm_lang$core$Basics_ops['++'], value, ' is ingetrokken')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot in Höhe von ', - A2(_elm_lang$core$Basics_ops['++'], value, ' wurde abgelehnt')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'נדחתה', - A2(_elm_lang$core$Basics_ops['++'], value, 'הצעתכם בסכום')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], value, ' была отменена')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您的', - A2(_elm_lang$core$Basics_ops['++'], value, '出价已被撤销')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], value, ' a été révoquée')) - }; - case 'OwnBidRevokedToFloorMessage': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'The auctioneer revoked your bid of ', - A2(_elm_lang$core$Basics_ops['++'], value, ' for a floor bid')), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'De veilingmeester heeft uw bod van ingetrokken ', - A2(_elm_lang$core$Basics_ops['++'], value, ' voor een bodembod')), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ihr Gebot in Höhe von ', - A2(_elm_lang$core$Basics_ops['++'], value, ' wurde abgelehnt, da ein gleich hoges Saalgebot früher einging')), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'הצעתכם בסכום ', - A2(_elm_lang$core$Basics_ops['++'], value, ' נדחתה בעבור הצעה מהחדר')), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Ваша ставка в размере ', - A2(_elm_lang$core$Basics_ops['++'], value, ' была отменена в пользу ставки из зала')), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '由于有地板出价,您的', - A2(_elm_lang$core$Basics_ops['++'], value, '出价已被拍卖师撤销')), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'L\'enchérisseur a révoqué votre offre de ', - A2(_elm_lang$core$Basics_ops['++'], value, ' pour une enchère au sol')) - }; - case 'PageNotFound': - return {english: 'Sorry, nothing found in this URL.', dutch: 'Sorry, nothing found in this URL', german: 'Entschuldigung, unter dieser URL konnten wir nichts finden', hebrew: 'טעות, הדף לא נמצא', russian: 'Извините, по этому URL ничего не найдено.', chinese: '抱歉,此链接未找到任何内容。', french: 'Désolé, rien n\'a été trouvé à cette URL.'}; - case 'Password': - return {english: 'Password', dutch: 'Wachtwoord', german: 'Passwort', hebrew: 'סיסמא', russian: 'Пароль', chinese: '密码', french: 'Mot de passe'}; - case 'PasswordsDontMatch': - return {english: 'Passwords don\'t match', dutch: 'Wachtwoorden komen niet overeen', german: 'Passwörter stimmen nicht überein', hebrew: 'הסיסמאות אינן זהות', russian: 'Пароли не совпадают', chinese: '密码不匹配', french: 'Les mots de passe ne correspondent pas'}; - case 'Paused': - return {english: 'Please Wait', dutch: 'Even geduld aub', german: 'Bitte warten', hebrew: 'מושהה', russian: 'Пожалуйста, подождите', chinese: '请稍等', french: 'Veuillez patienter'}; - case 'PausedBackShortly': - return {english: 'Paused - back shortly', dutch: 'Gepauzeerd - binnenkort terug', german: 'Pause - gleich geht es weiter!', hebrew: 'בהפסקה - תשוב בקרוב', russian: 'Пауза - скоро продолжим', chinese: '暂停 - 即将回来', french: 'Pause - de retour sous peu'}; - case 'PausedBackShortlyMessage': - return {english: 'Auction is paused. We will be back shortly.', dutch: 'Veiling is gepauzeerd. We zullen snel terug zijn.', german: 'PAUSE. Es geht in Kürze weiter.', hebrew: 'המכירה בהפסקה. נשוב בקרוב.', russian: 'Аукцион приостановлен. Мы скоро вернемся.', chinese: '拍卖已暂停。我们很快会回来。', french: 'L\'enchère est en pause. Nous serons de retour sous peu.'}; - case 'PausedStartingSoon': - return {english: 'Starting soon', dutch: 'Begint binnenkort', german: 'Bald geht es los!', hebrew: 'בהמתנה - מתחילה בקרוב', russian: 'Скоро начнется', chinese: '即将开始', french: 'Commence bientôt'}; - case 'PausedStartingSoonMessage': - return {english: 'The auction will start shortly.', dutch: 'De veiling start binnenkort.', german: 'Die Auktion beginnt in Kürze.', hebrew: 'המכירה תתחיל בקרוב.', russian: 'Аукцион скоро начнется.', chinese: '拍卖即将开始。', french: 'L\'enchère commencera sous peu.'}; - case 'Philately': - return {english: 'Philately', dutch: 'Philately', german: 'Philately', hebrew: 'בולים', russian: 'Филателия', chinese: '邮票收藏', french: 'Philatélie'}; - case 'PhoneNumber': - return {english: 'Phone number', dutch: 'Telefoonnummer', german: 'Telefonnummer', hebrew: 'טלפון', russian: 'Номер телефона', chinese: '电话号码', french: 'Numéro de téléphone'}; - case 'PlaceBid': - return {english: 'Place Bid', dutch: 'Bod plaatsen', german: 'Gebot abgeben', hebrew: 'הגש הצעה', russian: 'Сделать ставку', chinese: '出价', french: 'Placer une offre'}; - case 'PlaceBidAmount': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Place Bid ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Bod plaatsen ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Gebot abgeben ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'הגש הצעה ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Сделать ставку ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '出价 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Faire une offre ', value) - }; - case 'PleaseWait': - return {english: 'Please wait...', dutch: 'Even geduld aub...', german: 'Die Auktion beginnt am ', hebrew: 'נא להמתין...', russian: 'Пожалуйста, подождите...', chinese: '请稍候...', french: 'Veuillez patienter...'}; - case 'PostSale': - return {english: 'Post Sale', dutch: 'Na verkoop', german: 'Post Verkauf', hebrew: 'לאחר המכירה', russian: 'После продажи', chinese: '售后', french: 'Après vente'}; - case 'Public': - return {english: 'Public', dutch: 'Openbaar', german: 'Öffentlichkeit', hebrew: 'פומבי', russian: 'Публичный', chinese: '公共的', french: 'Public'}; - case 'PublicMessage': - return {english: 'Public Message', dutch: 'Openbaar bericht', german: 'Öffentliche Nachricht', hebrew: 'הודעה לציבור', russian: 'Публичное сообщение', chinese: '公开消息', french: 'Message public'}; - case 'Private': - return {english: 'Private', dutch: 'Privaat', german: 'Privatgelände', hebrew: 'פרטי', russian: 'Частный', chinese: '私人的', french: 'Privé'}; - case 'Register': - return {english: 'Register', dutch: 'Register', german: 'Registrieren', hebrew: 'הרשמה', russian: 'Регистрация', chinese: '注册', french: 'S\'inscrire'}; - case 'RegisterVerb': - return {english: 'Register', dutch: 'Register', german: 'Registrieren', hebrew: 'הרשם', russian: 'Зарегистрироваться', chinese: '注册', french: 'S\'inscrire'}; - case 'RejectedBidderMax': - return {english: 'Maxed out (Bidder max)', dutch: 'Limiet bereikt (Bidder max)', german: 'Maximalgeböt erschöpft!', hebrew: 'סכום מעבר ליתרה (יתרת מגישה)', russian: 'Достигнут предел (Максимум для участника)', chinese: '已达最大限制(出价者最大)', french: 'Limite atteinte (Max de l\'enchérisseur)'}; - case 'RejectedCreditLimit': - return {english: 'Maxed out (Credit limit)', dutch: 'Limiet bereikt (Krediet)', german: 'Kreditlimit erschöpft', hebrew: 'סכום מעבר ליתרה (הקצאת אשראי)', russian: 'Достигнут кредитный лимит', chinese: '已达信用额度上限', french: 'Limite de crédit atteinte'}; - case 'Requested': - return {english: 'Requested', dutch: '', german: '', hebrew: '', russian: '', chinese: '', french: ''}; - case 'References': - return {english: 'References/Areas of interest', dutch: 'Referenties/Interessegebieden', german: 'Referenzen/Interessengebiete', hebrew: 'הפניות', russian: 'Рекомендации/Области интереса', chinese: '参考/感兴趣的领域', french: 'Références/Zones d\'intérêt'}; - case 'ReloadSale': - return {english: 'Re-load Sale', dutch: 'Uitverkoop opnieuw laden', german: 'Auktion neu laden', hebrew: 'טען מכירה מחדש', russian: 'Перезагрузить продажу', chinese: '重新加载销售', french: 'Recharger la vente'}; - case 'RequestMoreCredit': - return {english: 'Request more credit', dutch: 'Vraag meer krediet aan', german: 'Verlangen Sie mehr Kredit', hebrew: 'בקש עוד אשראי', russian: 'Запросить больше кредита', chinese: '请求更多的信用', french: 'Demander plus de crédit'}; - case 'ResetPassword': - return {english: 'Reset password', dutch: 'Wachtwoord opnieuw instellen', german: 'Schicke mein Passwort', hebrew: 'שלח את הסיסמא שלי', russian: 'Сбросить пароль', chinese: '重设密码', french: 'Réinitialiser le mot de passe'}; - case 'Retry': - return {english: 'Retry', dutch: 'Opnieuw proberen', german: 'Nochmal', hebrew: 'נסה שנית', russian: 'Повторить', chinese: '重试', french: 'Réessayer'}; - case 'SaleCreateMessage': - return {english: 'Sale created', dutch: 'Veiling gemaakt', german: 'Auktion angelegt', hebrew: 'מכירה נוצרה', russian: 'Продажа создана', chinese: '销售已创建', french: 'Vente créée'}; - case 'SaleUpdateMessage': - return {english: 'Sale updated', dutch: 'Veiling bijgewerkt', german: 'Auktion aktualisiert', hebrew: 'מכירה עודכנה', russian: 'Продажа обновлена', chinese: '销售已更新', french: 'Vente mise à jour'}; - case 'SaleIsClosed': - return {english: 'Sale is closed', dutch: 'Veiling is gesloten', german: 'Die Auktion ist beendet', hebrew: 'מכירה סגורה', russian: 'Продажа закрыта', chinese: '销售已关闭', french: 'La vente est fermée'}; - case 'SaleIsClosedMessage': - return {english: 'The auction has ended. Thank you for participating.', dutch: 'De veiling is afgelopen. bedankt voor het meedoen', german: 'Die Auktion ist beendet. Vielen Dank für Ihre Teilnahme.', hebrew: 'המכירה הסתיימה. תודה על השתתפותך.', russian: 'Аукцион завершен. Спасибо за участие.', chinese: '拍卖已结束。感谢您的参与。', french: 'La vente aux enchères est terminée. Merci de votre participation.'}; - case 'SaleIsPending': - return {english: 'Sale is pending', dutch: 'Veiling in behandeling', german: 'Die Auktion startet am', hebrew: 'מכירה בהמתנה', russian: 'Продажа в ожидании', chinese: '销售待定', french: 'Vente en attente'}; - case 'SaleStatus': - return {english: 'Sale status', dutch: 'Veilingstatus', german: 'Auktionsstatus', hebrew: 'מצב המכירה', russian: 'Статус продажи', chinese: '销售状态', french: 'Statut de vente'}; - case 'Save': - return {english: 'Save', dutch: 'Opslaan', german: 'Speichern', hebrew: 'שמירה', russian: 'Сохранить', chinese: '保存', french: 'Sauvegarder'}; - case 'Send': - return {english: 'Send', dutch: 'Versturen', german: 'Senden', hebrew: 'שליחה', russian: 'Отправить', chinese: '发送', french: 'Envoyer'}; - case 'SignInNow': - return {english: 'Sign In Now', dutch: 'Meld u nu aan', german: 'Jetzt anmelden', hebrew: 'הכנס עכשיו', russian: 'Войти сейчас', chinese: '现在登录', french: 'Se connecter'}; - case 'SignInToYourAccount': - return {english: 'Sign in to your account', dutch: 'Log in op uw account', german: 'Melden Sie sich bei Ihrem Konto an', hebrew: 'כניסה לחשבונך', russian: 'Войти в ваш аккаунт', chinese: '登录到您的帐户', french: 'Connectez-vous à votre compte'}; - case 'SelectACountry': - return {english: 'Select a country...', dutch: 'Selecteer een land...', german: 'Land auswählen...', hebrew: 'בחר מדינה', russian: 'Выберите страну...', chinese: '选择一个国家...', french: 'Sélectionnez un pays...'}; - case 'SelectAState': - return {english: 'Select a state...', dutch: 'Selecteer een staat...', german: 'Bundesland auswählen...', hebrew: 'בחר אזור', russian: 'Выберите штат...', chinese: '选择一个州...', french: 'Sélectionnez un état...'}; - case 'SignOut': - return {english: 'Sign Out', dutch: 'Afmelden', german: 'Ausloggen', hebrew: 'התנתק', russian: 'Выход', chinese: '登出', french: 'Se déconnecter'}; - case 'Sold': - return {english: 'Sold', dutch: 'Verkocht', german: 'verkauft', hebrew: 'נמכר', russian: 'Продано', chinese: '已售出', french: 'Vendu'}; - case 'SoldForTitle': - return {english: 'Sold For', dutch: 'Verkocht voor', german: 'Verkauft für', hebrew: 'נמכר', russian: 'Продано за', chinese: '售价', french: 'Vendu pour'}; - case 'SignUp': - return {english: 'Sign up', dutch: 'Inschrijven', german: 'Anmeleden', hebrew: 'הרשמה', russian: 'Регистрация', chinese: '注册', french: 'S\'inscrire'}; - case 'SignUpNow': - return {english: 'Sign Up Now', dutch: 'Meld u nu aan', german: 'Anmelden jetzt', hebrew: 'הרשם עכשיו', russian: 'Зарегистрироваться сейчас', chinese: '现在注册', french: 'Inscrivez-vous maintenant'}; - case 'SoldFor': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Sold for ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Verkocht voor ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'verkauft für ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'נמכר ב ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Продано за ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '售价 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Vendu pour ', value) - }; - case 'Standby': - return {english: 'Standby...', dutch: 'Standby...', german: 'Warten...', hebrew: 'נא להמתין...', russian: 'Ожидание...', chinese: '待机...', french: 'En attente...'}; - case 'StartPrice': - return {english: 'Start Price', dutch: 'Inzet', german: 'Ausruf', hebrew: 'מחיר פתיחה', russian: 'Начальная цена', chinese: '起始价格', french: 'Prix de départ'}; - case 'StartWithAmount': - var _p24 = _p4._0; - var _p23 = _p4._1; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Start ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Inzet ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Ausruf ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - 'פתיחה ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Старт с ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '起始金额 ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Début ', - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p23, _p24)) - }; - case 'StartingPrice': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._1, _p4._0); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Starting price ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Startprijs ', value), - german: A2(_elm_lang$core$Basics_ops['++'], 'Startpreis ', value), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'מחיר התחלתי ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Начальная цена ', value), - chinese: A2(_elm_lang$core$Basics_ops['++'], '起始价 ', value), - french: A2(_elm_lang$core$Basics_ops['++'], 'Prix de départ ', value) - }; - case 'State': - return {english: 'State', dutch: 'Staat', german: 'Staat', hebrew: 'מדינה', russian: 'Штат', chinese: '州', french: 'État'}; - case 'SubscribeToNewsletter': - return {english: 'Subscribe to our newsletter', dutch: 'Abonneer op onze nieuwsbrief', german: 'für den Newsletter anmelden', hebrew: 'הרשם לרשימת תפוצה', russian: 'Подписаться на нашу рассылку', chinese: '订阅我们的新闻简报', french: 'S\'abonner à notre newsletter'}; - case 'ToPlaceBid': - return {english: 'To Place Bid', dutch: 'Om bod te plaatsen', german: 'Um ein Gebot bieten', hebrew: 'להגשת הצעה', russian: 'Сделать ставку', chinese: '出价', french: 'Placer une offre'}; - case 'TotalWon': - return {english: 'Total Won', dutch: 'Totaal gekocht', german: 'Insgesamt gewonnen', hebrew: 'סך זכיות', russian: 'Всего выиграно', chinese: '总共赢得', french: 'Total gagné'}; - case 'ToUpdateBid': - return {english: 'To Update Bid', dutch: 'Bod bijwerken', german: 'Um das Gebot aktualisieren', hebrew: 'לעדכון ההצעה', russian: 'Обновить ставку', chinese: '更新出价', french: 'Mettre à jour l\'enchère'}; - case 'UpdatePausedMessage': - return {english: 'Update Paused Message', dutch: 'Update onderbroken bericht', german: 'Pausierte Auktion Nachricht aktualisieren', hebrew: 'עדכון הודעת מכירה בהפסקה', russian: 'Обновить сообщение о паузе', chinese: '更新暂停消息', french: 'Mettre à jour le message en pause'}; - case 'UnknownBidder': - return {english: 'Unknown Bidder!', dutch: 'Onbekende bieder!', german: 'Unknown Bidder!', hebrew: 'מציע לא ידוע!', russian: 'Неизвестный участник!', chinese: '未知出价者!', french: 'Enchérisseur inconnu!'}; - case 'UnrecognizedCredentialsMessage': - return {english: 'Sorry, unrecognized username or password', dutch: 'Sorry, niet-herkende gebruikersnaam of wachtwoord', german: 'Benutzername oder Passwort ist falsch', hebrew: 'שם משתמש או סיסמה אינם מזוהים', russian: 'Извините, неузнаваемое имя пользователя или пароль', chinese: '对不起,无法识别的用户名或密码', french: 'Désolé, nom d\'utilisateur ou mot de passe non reconnu'}; - case 'Unsold': - return {english: 'Unsold', dutch: 'Niet verkocht', german: 'unverkauft', hebrew: 'לא נמכר', russian: 'Не продано', chinese: '未售出', french: 'Non vendu'}; - case 'UpdateMyAccount': - return {english: 'Update My Account', dutch: 'Mijn account bijwerken', german: 'Meinen Account aktualisieren', hebrew: 'עדכן חשבון', russian: 'Обновить мой аккаунт', chinese: '更新我的账户', french: 'Mettre à jour mon compte'}; - case 'Username': - return {english: 'Username', dutch: 'Username', german: 'Benutzername', hebrew: 'שם משתמש', russian: 'Имя пользователя', chinese: '用户名', french: 'Nom d\'utilisateur'}; - case 'UsernameEmail': - return {english: 'Email', dutch: 'Email', german: 'E-Mail', hebrew: 'אימייל', russian: 'Электронная почта', chinese: '电子邮件', french: 'Email'}; - case 'Welcome': - var _p25 = _p4._0; - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'Welcome ', _p25), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Welkom ', _p25), - german: A2(_elm_lang$core$Basics_ops['++'], 'Willkommen ', _p25), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'שלום ', _p25), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Добро пожаловать, ', _p25), - chinese: A2(_elm_lang$core$Basics_ops['++'], '欢迎 ', _p25), - french: A2(_elm_lang$core$Basics_ops['++'], 'Bienvenue ', _p25) - }; - case 'WelcomeMessage': - var _p30 = _p4._1; - var _p29 = _p4._4; - var _p28 = _p4._3; - var _p27 = _p4._0; - var _p26 = _p4._2; - return { - english: A2( - _elm_lang$core$Basics_ops['++'], - 'Welcome ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') to ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))), - dutch: A2( - _elm_lang$core$Basics_ops['++'], - 'Welkom ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') op ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Willkommen ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') bei ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))), - hebrew: A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' מספר מציע (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') ברוכים הבאים למכירה ', - A2( - _elm_lang$core$Basics_ops['++'], - _p28, - A2(_elm_lang$core$Basics_ops['++'], ' ב־', _p29)))))))), - russian: A2( - _elm_lang$core$Basics_ops['++'], - 'Добро пожаловать ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') на ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '欢迎 ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') 来到 ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))), - french: A2( - _elm_lang$core$Basics_ops['++'], - 'Bienvenue ', - A2( - _elm_lang$core$Basics_ops['++'], - _p27, - A2( - _elm_lang$core$Basics_ops['++'], - ' - ', - A2( - _elm_lang$core$Basics_ops['++'], - _p30, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _p26, - A2( - _elm_lang$core$Basics_ops['++'], - ') sur ', - A2( - _elm_lang$core$Basics_ops['++'], - _p29, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p28))))))))) - }; - case 'WillBeUsedAsYourUsername': - return {english: '(Will be used as your username)', dutch: '(Wordt gebruikt als uw gebruikersnaam)', german: '(Wird als Benutzernamen verwendet)', hebrew: '(ישמש כשם משתמש)', russian: '(Будет использоваться в качестве вашего имени пользователя)', chinese: '(将用作您的用户名)', french: '(Sera utilisé comme votre nom d\'utilisateur)'}; - case 'YouAreTheHighestBidder': - return {english: 'You are the highest bidder!', dutch: 'U bent de hoogste bieder!', german: 'Sie sind der Höchstbietende', hebrew: '!ההצעה שלך היא הגבוה ביותר', russian: 'Вы высший участник!', chinese: '您是最高出价者!', french: 'Vous êtes le plus offrant!'}; - case 'YouMustAgreeToTheTerms': - return {english: 'You must agree to the terms and conditions', dutch: 'U moet akkoord gaan met de algemene voorwaarden', german: 'Sie müssen die AGB zustimmen', hebrew: 'יש להסכים לתנאי השימוש', russian: 'Вы должны согласиться с условиями и положениями', chinese: '您必须同意条款和条件', french: 'Vous devez accepter les termes et conditions'}; - case 'YourAccountDetailsHaveBeenUpdated': - return {english: 'Your account details have been updated', dutch: 'Uw accountgegevens zijn bijgewerkt', german: 'Ihre Accountdetails wurden erfolgreich aktualisiert', hebrew: 'חשבונך עודכן', russian: 'Данные вашего аккаунта были обновлены', chinese: '您的账户详情已更新', french: 'Les détails de votre compte ont été mis à jour'}; - case 'YourAccountIsPendingApproval': - return {english: 'Your account is pending approval for bidding.', dutch: 'Uw account wacht op goedkeuring voor bieden', german: 'Ihr Kundenkonto wird geprüft und in Kürze freigegeben.', hebrew: 'חשבונך טרם אושר להגשת הצעות.', russian: 'Ваш аккаунт ожидает одобрения для участия в торгах.', chinese: '您的账户正在等待出价审批。', french: 'Votre compte est en attente d\'approbation pour enchérir.'}; - case 'YourPasswordHasBeenChanged': - return {english: 'Your password has been changed.', dutch: 'Je wachtwoord is gewijzigd', german: 'Ihr Passwort wurde geändert.', hebrew: 'הסיסמא שונתה.', russian: 'Ваш пароль был изменен.', chinese: '您的密码已更改。', french: 'Votre mot de passe a été changé.'}; - case 'YouWillReceiveEmail': - return {english: 'A password reset email will be sent to you.', dutch: 'Er wordt een e-mail voor het opnieuw instellen van uw wachtwoord naar u verzonden', german: 'Ein Passwort zurücksetzen Email wird Ihnen zugesandt.', hebrew: 'אימייל לאיפוס סיסמא ישלח אליך.', russian: 'Вам будет отправлено письмо с инструкциями по сбросу пароля.', chinese: '将向您发送密码重置邮件。', french: 'Un e-mail de réinitialisation de mot de passe vous sera envoyé.'}; - case 'YouWon': - var value = A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p4._0, _p4._1); - return { - english: A2(_elm_lang$core$Basics_ops['++'], 'You won this lot for ', value), - dutch: A2(_elm_lang$core$Basics_ops['++'], 'Je hebt dit kavel gekocht voor ', value), - german: A2( - _elm_lang$core$Basics_ops['++'], - 'Sie haben dieses Los für ', - A2(_elm_lang$core$Basics_ops['++'], value, ' gewonnen')), - hebrew: A2(_elm_lang$core$Basics_ops['++'], 'זכית בפריט זה עבור ', value), - russian: A2(_elm_lang$core$Basics_ops['++'], 'Вы выиграли этот лот за ', value), - chinese: A2( - _elm_lang$core$Basics_ops['++'], - '您以 ', - A2(_elm_lang$core$Basics_ops['++'], value, ' 赢得了这个批次')), - french: A2(_elm_lang$core$Basics_ops['++'], 'Vous avez remporté ce lot pour ', value) - }; - case 'YouWonThisLot': - return {english: 'You won this lot!', dutch: 'Je hebt dit kavel gekocht', german: 'Sie haben dieses Los gewonnen!', hebrew: 'זכית בפריט זה!', russian: 'Вы выиграли этот лот!', chinese: '您赢得了这个批次!', french: 'Vous avez remporté ce lot !'}; - default: - return {english: 'Zip code', dutch: 'Postcode', german: 'PLZ', hebrew: 'מיקוד', russian: 'Почтовый индекс', chinese: '邮编', french: 'Code postal'}; - } - }(); - return A2(_Gizra$circuit_bid$Translate$selectTranslation, language, translationSet); - }); -var _Gizra$circuit_bid$Translate$translateHtml = F2( - function (language, transId) { - var translationSet = function () { - var _p31 = transId; - switch (_p31.ctor) { - case 'AgreedWithTerms': - var aAttr = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2(_elm_lang$core$Basics_ops['++'], _p31._0, '/terms-conditions')), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_blank'), - _1: {ctor: '[]'} - } - }; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('I have read and accepted the Auctioneers '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Terms and Conditions'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' and I agree to abide by them.'), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ik heb de veilingmeesters gelezen en geaccepteerd '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Voorwaarden'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' en ik ga ermee akkoord me eraan te houden'), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ich habe die '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('AGB'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' gelesen und stimme ihnen zu'), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('קראתי והסכמתי ל'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('תנאים וההגבלות'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' ואני מסכים לפעול לפיהם.'), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Я прочитал и принял '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Условия и положения'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' аукционера и согласен им следовать.'), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('我已阅读并接受拍卖行的'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('条款和条件'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(',并同意遵守它们。'), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('J\'ai lu et accepté les '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Termes et Conditions'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' de l\'enchérisseur et je m\'engage à les respecter.'), - _1: {ctor: '[]'} - } - } - } - }; - case 'BidderLimitWithAmount': - var _p32 = _p31._0; - switch (_p32.ctor) { - case 'None': - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bidder Limit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('None'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Biederslimiet'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Geen'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bieter-Limit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Keins'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הגבלה עצמית'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('ללא'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Лимит участников'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Нет'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('出价者限制'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('无'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Limite des enchérisseurs'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Aucun'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - case 'Regular': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p32._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bidder Limit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Biederslimiet'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bieter-Limit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הגבלה עצמית'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Лимит участников'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('出价者限制'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Limite des enchérisseurs'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - default: - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bidder Limit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Not set'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Biederslimiet'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Niet ingesteld'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Bieter-Limit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('nicht gesetzt'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הגבלה עצמית'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('לא נקבע'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Лимит участников'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Не установлено'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('出价者限制'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('未设置'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Limite des enchérisseurs'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Non défini'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - } - case 'ClerkCurrentPriceAmount': - var _p34 = _p31._1; - var _p33 = _p31._0; - if (_p33.ctor === 'Current') { - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p33._0, _p34), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Current'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Huidig'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Aktuelles Gebot'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר נוכחי'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Текущий'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('当前'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Actuel'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - } else { - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p33._0, _p34), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Opening'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Inzet'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Ausruf'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר פתיחה'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Начальная ставка'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('起始价'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Ouverture'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - } - case 'Consigner': - var nameHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('name'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p31._0), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Consignor - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Inbrenger - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Einlieferer - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מפקיד - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Грузоотправитель - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('寄售人 - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Expéditeur - '), - _1: { - ctor: '::', - _0: nameHtml, - _1: {ctor: '[]'} - } - } - }; - case 'CreditLimit': - var _p36 = _p31._1; - var _p35 = _p31._0; - switch (_p35.ctor) { - case 'None': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _Gizra$circuit_bid$Amount$zero, _p36), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Credit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('krediet'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Kredit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('אשראי'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Кредит'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('信用'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Crédit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'Regular': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p35._0, _p36), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Credit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('krediet'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Kredit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('אשראי'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Кредит'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('信用'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Crédit'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - default: - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Credit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Unlimited'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Krediet'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Onbeperkt'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Kredit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('unbegrenzt'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - hebrew: {ctor: '[]'}, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Кредит'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Без ограничений'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('信用'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('无限'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Crédit'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Illimité'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - } - case 'CreditRequestBlock': - var aAttrs = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href(_p31._0), - _1: {ctor: '[]'} - }; - return { - english: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('You have no credit!'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('In order to place bids you will need to '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Request Credit'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' , and have it approved.'), - _1: {ctor: '[]'} - } - } - } - }, - dutch: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Je hebt geen krediet!'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Om te kunnen bieden moet u een '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('kredietlimiet aanvragen'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' en deze moet worden goedgekeurd.'), - _1: {ctor: '[]'} - } - } - } - }, - german: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Sie haben kein Kreditlimit !'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Um Gebote abgeben zu können müssen Sie '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('dieses beantragen'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' und genehmigen lassen.'), - _1: {ctor: '[]'} - } - } - } - }, - hebrew: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('אין לך אשראי!'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('על מנת להגיש הצעות יש '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('לבקש אשראי'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' , ושהוא יאושר.'), - _1: {ctor: '[]'} - } - } - } - }, - russian: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('У вас нет кредита!'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Чтобы делать ставки, вам нужно '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Запросить кредит'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(', и он должен быть одобрен.'), - _1: {ctor: '[]'} - } - } - } - }, - chinese: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('您没有信用额度!'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('为了出价,您需要 '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('申请信用'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' 并获得批准。'), - _1: {ctor: '[]'} - } - } - } - }, - french: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Vous n\'avez pas de crédit !'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Pour faire des offres, vous devez '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Demander un crédit'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' et il doit être approuvé.'), - _1: {ctor: '[]'} - } - } - } - } - }; - case 'EstPrice': - var _p38 = _p31._1; - var _p37 = _p31._0; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Est. '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Evaluatie '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Einschätzung'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הערכה'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Оценка. '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('估价. '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Est. '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline estimated-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p37, _p38), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - case 'FirstTimeLoginMessage': - return { - english: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Thank you for registering with us.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Your account is currently pending approval for bidding. You will be contacted by someone from our staff once you have been approved to bid.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Best of luck!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Bedankt voor het registreren bij ons.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Uw account wacht momenteel op goedkeuring voor bieden. Er wordt contact met u opgenomen door iemand van onze medewerkers zodra u bent goedgekeurd om te bieden.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Veel succes!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Danke für Ihre Registrierung.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Ihr Benutzerkonto wird nun überprüft und eingerichtet.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Viel Glück!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('תודה שנרשמת.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('חשבונך ממתין לאישור למתן הצעות. ניצור איתך קשר כאשר חשבונך יאושר.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('בהצלחה!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Спасибо за регистрацию у нас.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Ваш аккаунт в настоящее время ожидает одобрения для ставок. Вам свяжутся, как только ваш запрос будет одобрен.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Удачи!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('感谢您在我们这里注册.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('您的账户目前正在等待竞标批准。一旦您获得批准,我们的工作人员将与您联系。'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('祝你好运!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-message-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Merci de vous être inscrit chez nous.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Votre compte est actuellement en attente d\'approbation pour enchérir. Vous serez contacté par l\'un de nos membres du personnel une fois que vous aurez été approuvé.'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Bonne chance!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }; - case 'LoginOrRegister': - var registerAttrs = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href(_p31._1), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_top'), - _1: {ctor: '[]'} - } - }; - var loginAttrs = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href(_p31._0), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_top'), - _1: {ctor: '[]'} - } - }; - return { - english: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Login'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' Or '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Register'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Login'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' Or '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Register'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Login'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' Oder '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Registrieren'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('התחברות'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' או '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('הרשם'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Вход'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' Или '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Регистрация'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('登录'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' 或 '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('注册'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Connexion'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' Ou '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - registerAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('S\'inscrire'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }; - case 'MailCurrentPriceAmount': - var _p40 = _p31._1; - var _p39 = _p31._0; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Current price '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Huidige prijs '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Aktuelles Gebot '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר נוכחי '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Текущая цена '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('当前价格 '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Prix actuel '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p39, _p40), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - case 'MailOpeningPriceAmount': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p31._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Opening price '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Inzet '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ausruf '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר פתיחה '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Начальная цена '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('起拍价 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Prix d\'ouverture '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'MinPrice': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med minimum-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p31._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Min. '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Min. '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Minimum'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מינימום'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Мин. '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('最低 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Min. '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'NextBidWithAmount': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p31._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Next '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Naast '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Nächste '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הבא '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Следующая ставка '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('下一个出价 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Prochaine offre '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'PendingRequest': - var _p41 = _p31._0; - if (_p41.ctor === 'Regular') { - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p41._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Pending request:'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: {ctor: '[]'}, - german: {ctor: '[]'}, - hebrew: {ctor: '[]'}, - russian: {ctor: '[]'}, - chinese: {ctor: '[]'}, - french: {ctor: '[]'} - }; - } else { - return { - english: {ctor: '[]'}, - dutch: {ctor: '[]'}, - german: {ctor: '[]'}, - hebrew: {ctor: '[]'}, - russian: {ctor: '[]'}, - chinese: {ctor: '[]'}, - french: {ctor: '[]'} - }; - } - case 'RoomCurrentPriceAmount': - var _p43 = _p31._1; - var _p42 = _p31._0; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Current'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Huidig'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Aktuelles Gebot'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר נוכחי'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Текущее '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('当前'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Actuel'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p42, _p43), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }; - case 'RoomOpeningPriceAmount': - var _p45 = _p31._1; - var _p44 = _p31._0; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Opening'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Inzet'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ausruf'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר פתיחה'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Начальная цена'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('开盘价'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Prix d\'ouverture'), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('price-value'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p44, _p45), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }; - case 'Seconds': - var _p46 = _p31._0; - var getText = function (txt) { - return { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('counter'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - _elm_lang$core$Basics$toString(_p46)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('seconds'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(txt), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }; - }; - return _elm_lang$core$Native_Utils.eq(_p46, 1) ? { - english: getText('second'), - dutch: getText('tweede'), - german: getText('Sekunde'), - hebrew: getText('שניות'), - russian: getText('секунда'), - chinese: getText('秒'), - french: getText('seconde') - } : { - english: getText('seconds'), - dutch: getText('seconden'), - german: getText('Sekunden'), - hebrew: getText('שניות'), - russian: getText('секунды'), - chinese: getText('秒'), - french: getText('secondes') - }; - case 'Start': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med pipeline start-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p31._0, _p31._1), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Start '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Inzet '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ausruf '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('מחיר התחלתי '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Начать с '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('起始价格 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Commencer à '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'ToPlaceBidLogin': - var redirect = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (url) { - return A2(_elm_lang$core$Basics_ops['++'], '?redirect=', url); - }, - _p31._0._1); - var loginAttrs = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2( - _elm_lang$core$Basics_ops['++'], - _p31._0._0, - A2(_elm_lang$core$Basics_ops['++'], '/login', redirect))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_top'), - _1: {ctor: '[]'} - } - }; - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('To place bids please'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('login'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Graag bieden'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('login'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Um bieten zu können, bitte'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('einloggen'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('להגשת הצעה, בבקשה'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('התחבר'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Чтобы делать ставки, пожалуйста'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('войдите'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('要出价,请'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('登录'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Pour enchérir, veuillez'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - loginAttrs, - { - ctor: '::', - _0: _elm_lang$html$Html$text('connecter'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }; - case 'TotalSpentAmount': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p31._0, _p31._1)), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Total Won '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Totaal gekocht '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Insgesamt gewonnen '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('סך כל הזכיות '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Всего выиграно '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('总共获胜 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Total remporté '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - case 'YourCurrentAgentBidIsWithAmount': - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p31._0, _p31._1)), - _1: {ctor: '[]'} - }); - var icon = A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-black-tie'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}); - return { - english: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Your current Online Agent bid is '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - dutch: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Uw huidige Autobod is '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - german: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ihr aktuelles Autogebot beträgt'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - hebrew: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('הצעת הסוכן החכם שלך היא '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - russian: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ваша текущая ставка онлайн-агента составляет '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - chinese: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('您当前的在线代理出价是 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }, - french: { - ctor: '::', - _0: icon, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Votre offre actuelle de l\'agent en ligne est de '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - } - }; - default: - var amountHtml = A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p31._0, _p31._1)), - _1: {ctor: '[]'} - }); - return { - english: { - ctor: '::', - _0: _elm_lang$html$Html$text('Your current bid is '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - dutch: { - ctor: '::', - _0: _elm_lang$html$Html$text('Uw huidige bieden is '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - german: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ihr aktuelles Gebot beträgt'), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - hebrew: { - ctor: '::', - _0: _elm_lang$html$Html$text('הצעתך הנוכחית היא '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - russian: { - ctor: '::', - _0: _elm_lang$html$Html$text('Ваша текущая ставка составляет '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - chinese: { - ctor: '::', - _0: _elm_lang$html$Html$text('您当前的出价是 '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - }, - french: { - ctor: '::', - _0: _elm_lang$html$Html$text('Votre offre actuelle est de '), - _1: { - ctor: '::', - _0: amountHtml, - _1: {ctor: '[]'} - } - } - }; - } - }(); - return A2( - _elm_lang$core$List$map, - _elm_lang$html$Html$map(_elm_lang$core$Basics$never), - A2(_Gizra$circuit_bid$Translate$selectTranslation, language, translationSet)); - }); -var _Gizra$circuit_bid$Translate$translateText = F2( - function (language, transId) { - return _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, transId)); - }); -var _Gizra$circuit_bid$Translate$TranslationSet = F7( - function (a, b, c, d, e, f, g) { - return {english: a, chinese: b, dutch: c, german: d, hebrew: e, russian: f, french: g}; - }); -var _Gizra$circuit_bid$Translate$French = {ctor: 'French'}; -var _Gizra$circuit_bid$Translate$Russian = {ctor: 'Russian'}; -var _Gizra$circuit_bid$Translate$Hebrew = {ctor: 'Hebrew'}; -var _Gizra$circuit_bid$Translate$German = {ctor: 'German'}; -var _Gizra$circuit_bid$Translate$Dutch = {ctor: 'Dutch'}; -var _Gizra$circuit_bid$Translate$Chinese = {ctor: 'Chinese'}; -var _Gizra$circuit_bid$Translate$English = {ctor: 'English'}; -var _Gizra$circuit_bid$Translate$allLanguages = { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$English, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$Chinese, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$Dutch, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$German, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$Hebrew, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$Russian, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Translate$French, - _1: {ctor: '[]'} - } - } - } - } - } - } -}; -var _Gizra$circuit_bid$Translate$languageFromString = function (str) { - var _p47 = str; - switch (_p47) { - case 'English': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$English); - case 'Chinese': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Chinese); - case 'Dutch': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Dutch); - case 'German': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$German); - case 'Hebrew': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Hebrew); - case 'Russian': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Russian); - case 'French': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$French); - default: - return _elm_lang$core$Result$Err('Not a language'); - } -}; -var _Gizra$circuit_bid$Translate$languageFromCode = function (str) { - var _p48 = str; - switch (_p48) { - case 'en': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$English); - case 'zh-hans': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Chinese); - case 'nl': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Dutch); - case 'de': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$German); - case 'he': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Hebrew); - case 'ru': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$Russian); - case 'fr': - return _elm_lang$core$Result$Ok(_Gizra$circuit_bid$Translate$French); - default: - return _elm_lang$core$Result$Err('Not a language'); - } -}; -var _Gizra$circuit_bid$Translate$YourCurrentBidIsWithAmount = F2( - function (a, b) { - return {ctor: 'YourCurrentBidIsWithAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$YourCurrentAgentBidIsWithAmount = F2( - function (a, b) { - return {ctor: 'YourCurrentAgentBidIsWithAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$TotalSpentAmount = F2( - function (a, b) { - return {ctor: 'TotalSpentAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$ToPlaceBidLogin = function (a) { - return {ctor: 'ToPlaceBidLogin', _0: a}; -}; -var _Gizra$circuit_bid$Translate$Start = F2( - function (a, b) { - return {ctor: 'Start', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Seconds = function (a) { - return {ctor: 'Seconds', _0: a}; -}; -var _Gizra$circuit_bid$Translate$RoomOpeningPriceAmount = F2( - function (a, b) { - return {ctor: 'RoomOpeningPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$RoomCurrentPriceAmount = F2( - function (a, b) { - return {ctor: 'RoomCurrentPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$PendingRequest = F2( - function (a, b) { - return {ctor: 'PendingRequest', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$NextBidWithAmount = F2( - function (a, b) { - return {ctor: 'NextBidWithAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$MinPrice = F2( - function (a, b) { - return {ctor: 'MinPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$MailOpeningPriceAmount = F2( - function (a, b) { - return {ctor: 'MailOpeningPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$MailCurrentPriceAmount = F2( - function (a, b) { - return {ctor: 'MailCurrentPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$LoginOrRegister = F2( - function (a, b) { - return {ctor: 'LoginOrRegister', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$FirstTimeLoginMessage = {ctor: 'FirstTimeLoginMessage'}; -var _Gizra$circuit_bid$Translate$EstPrice = F2( - function (a, b) { - return {ctor: 'EstPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$CreditRequestBlock = function (a) { - return {ctor: 'CreditRequestBlock', _0: a}; -}; -var _Gizra$circuit_bid$Translate$CreditLimit = F2( - function (a, b) { - return {ctor: 'CreditLimit', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Consigner = function (a) { - return {ctor: 'Consigner', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ClerkCurrentPriceAmount = F2( - function (a, b) { - return {ctor: 'ClerkCurrentPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidderLimitWithAmount = F2( - function (a, b) { - return {ctor: 'BidderLimitWithAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$AgreedWithTerms = function (a) { - return {ctor: 'AgreedWithTerms', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ZipCode = {ctor: 'ZipCode'}; -var _Gizra$circuit_bid$Translate$YouWonThisLot = {ctor: 'YouWonThisLot'}; -var _Gizra$circuit_bid$Translate$YouWon = F2( - function (a, b) { - return {ctor: 'YouWon', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$YouWillReceiveEmail = {ctor: 'YouWillReceiveEmail'}; -var _Gizra$circuit_bid$Translate$YourPasswordHasBeenChanged = {ctor: 'YourPasswordHasBeenChanged'}; -var _Gizra$circuit_bid$Translate$YourAccountIsPendingApproval = {ctor: 'YourAccountIsPendingApproval'}; -var _Gizra$circuit_bid$Translate$YourAccountDetailsHaveBeenUpdated = {ctor: 'YourAccountDetailsHaveBeenUpdated'}; -var _Gizra$circuit_bid$Translate$YouMustAgreeToTheTerms = {ctor: 'YouMustAgreeToTheTerms'}; -var _Gizra$circuit_bid$Translate$YouAreTheHighestBidder = {ctor: 'YouAreTheHighestBidder'}; -var _Gizra$circuit_bid$Translate$WillBeUsedAsYourUsername = {ctor: 'WillBeUsedAsYourUsername'}; -var _Gizra$circuit_bid$Translate$WelcomeMessage = F5( - function (a, b, c, d, e) { - return {ctor: 'WelcomeMessage', _0: a, _1: b, _2: c, _3: d, _4: e}; - }); -var _Gizra$circuit_bid$Translate$Welcome = function (a) { - return {ctor: 'Welcome', _0: a}; -}; -var _Gizra$circuit_bid$Translate$UpdatePausedMessage = {ctor: 'UpdatePausedMessage'}; -var _Gizra$circuit_bid$Translate$UsernameEmail = {ctor: 'UsernameEmail'}; -var _Gizra$circuit_bid$Translate$Username = {ctor: 'Username'}; -var _Gizra$circuit_bid$Translate$UpdateMyAccount = {ctor: 'UpdateMyAccount'}; -var _Gizra$circuit_bid$Translate$Unsold = {ctor: 'Unsold'}; -var _Gizra$circuit_bid$Translate$UnrecognizedCredentialsMessage = {ctor: 'UnrecognizedCredentialsMessage'}; -var _Gizra$circuit_bid$Translate$UnknownBidder = {ctor: 'UnknownBidder'}; -var _Gizra$circuit_bid$Translate$TotalWon = {ctor: 'TotalWon'}; -var _Gizra$circuit_bid$Translate$ToUpdateBid = {ctor: 'ToUpdateBid'}; -var _Gizra$circuit_bid$Translate$ToPlaceBid = {ctor: 'ToPlaceBid'}; -var _Gizra$circuit_bid$Translate$SubscribeToNewsletter = {ctor: 'SubscribeToNewsletter'}; -var _Gizra$circuit_bid$Translate$State = {ctor: 'State'}; -var _Gizra$circuit_bid$Translate$StartWithAmount = F2( - function (a, b) { - return {ctor: 'StartWithAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$StartPrice = {ctor: 'StartPrice'}; -var _Gizra$circuit_bid$Translate$StartingPrice = F2( - function (a, b) { - return {ctor: 'StartingPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Standby = {ctor: 'Standby'}; -var _Gizra$circuit_bid$Translate$SignUpNow = {ctor: 'SignUpNow'}; -var _Gizra$circuit_bid$Translate$SignUp = {ctor: 'SignUp'}; -var _Gizra$circuit_bid$Translate$SignOut = {ctor: 'SignOut'}; -var _Gizra$circuit_bid$Translate$SignInToYourAccount = {ctor: 'SignInToYourAccount'}; -var _Gizra$circuit_bid$Translate$SignInNow = {ctor: 'SignInNow'}; -var _Gizra$circuit_bid$Translate$SoldForTitle = {ctor: 'SoldForTitle'}; -var _Gizra$circuit_bid$Translate$SoldFor = F2( - function (a, b) { - return {ctor: 'SoldFor', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Sold = {ctor: 'Sold'}; -var _Gizra$circuit_bid$Translate$SelectAState = {ctor: 'SelectAState'}; -var _Gizra$circuit_bid$Translate$SelectACountry = {ctor: 'SelectACountry'}; -var _Gizra$circuit_bid$Translate$Send = {ctor: 'Send'}; -var _Gizra$circuit_bid$Translate$Save = {ctor: 'Save'}; -var _Gizra$circuit_bid$Translate$SaleStatus = {ctor: 'SaleStatus'}; -var _Gizra$circuit_bid$Translate$SaleIsPending = {ctor: 'SaleIsPending'}; -var _Gizra$circuit_bid$Translate$SaleIsClosedMessage = {ctor: 'SaleIsClosedMessage'}; -var _Gizra$circuit_bid$Translate$SaleIsClosed = {ctor: 'SaleIsClosed'}; -var _Gizra$circuit_bid$Translate$SaleUpdateMessage = {ctor: 'SaleUpdateMessage'}; -var _Gizra$circuit_bid$Translate$SaleCreateMessage = {ctor: 'SaleCreateMessage'}; -var _Gizra$circuit_bid$Translate$Retry = {ctor: 'Retry'}; -var _Gizra$circuit_bid$Translate$ResetPassword = {ctor: 'ResetPassword'}; -var _Gizra$circuit_bid$Translate$RequestMoreCredit = {ctor: 'RequestMoreCredit'}; -var _Gizra$circuit_bid$Translate$ReloadSale = {ctor: 'ReloadSale'}; -var _Gizra$circuit_bid$Translate$Requested = {ctor: 'Requested'}; -var _Gizra$circuit_bid$Translate$RejectedCreditLimit = {ctor: 'RejectedCreditLimit'}; -var _Gizra$circuit_bid$Translate$RejectedBidderMax = {ctor: 'RejectedBidderMax'}; -var _Gizra$circuit_bid$Translate$RegisterVerb = {ctor: 'RegisterVerb'}; -var _Gizra$circuit_bid$Translate$Register = {ctor: 'Register'}; -var _Gizra$circuit_bid$Translate$References = {ctor: 'References'}; -var _Gizra$circuit_bid$Translate$Private = {ctor: 'Private'}; -var _Gizra$circuit_bid$Translate$PublicMessage = {ctor: 'PublicMessage'}; -var _Gizra$circuit_bid$Translate$Public = {ctor: 'Public'}; -var _Gizra$circuit_bid$Translate$PostSale = {ctor: 'PostSale'}; -var _Gizra$circuit_bid$Translate$PleaseWait = {ctor: 'PleaseWait'}; -var _Gizra$circuit_bid$Translate$PlaceBidAmount = F2( - function (a, b) { - return {ctor: 'PlaceBidAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$PlaceBid = {ctor: 'PlaceBid'}; -var _Gizra$circuit_bid$Translate$PhoneNumber = {ctor: 'PhoneNumber'}; -var _Gizra$circuit_bid$Translate$Philately = {ctor: 'Philately'}; -var _Gizra$circuit_bid$Translate$PausedStartingSoonMessage = {ctor: 'PausedStartingSoonMessage'}; -var _Gizra$circuit_bid$Translate$PausedStartingSoon = {ctor: 'PausedStartingSoon'}; -var _Gizra$circuit_bid$Translate$PausedBackShortlyMessage = {ctor: 'PausedBackShortlyMessage'}; -var _Gizra$circuit_bid$Translate$PausedBackShortly = {ctor: 'PausedBackShortly'}; -var _Gizra$circuit_bid$Translate$Paused = {ctor: 'Paused'}; -var _Gizra$circuit_bid$Translate$PasswordsDontMatch = {ctor: 'PasswordsDontMatch'}; -var _Gizra$circuit_bid$Translate$Password = {ctor: 'Password'}; -var _Gizra$circuit_bid$Translate$PageNotFound = {ctor: 'PageNotFound'}; -var _Gizra$circuit_bid$Translate$OwnBidRevokedToFloorMessage = F2( - function (a, b) { - return {ctor: 'OwnBidRevokedToFloorMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$OwnBidRevokedMessage = F2( - function (a, b) { - return {ctor: 'OwnBidRevokedMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$OtherBidRevokedMessage = F2( - function (a, b) { - return {ctor: 'OtherBidRevokedMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Or = {ctor: 'Or'}; -var _Gizra$circuit_bid$Translate$OpeningPriceAmount = F2( - function (a, b) { - return {ctor: 'OpeningPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$OpeningPrice = {ctor: 'OpeningPrice'}; -var _Gizra$circuit_bid$Translate$Opening = {ctor: 'Opening'}; -var _Gizra$circuit_bid$Translate$OnlineAgent = {ctor: 'OnlineAgent'}; -var _Gizra$circuit_bid$Translate$Online = {ctor: 'Online'}; -var _Gizra$circuit_bid$Translate$Offer = {ctor: 'Offer'}; -var _Gizra$circuit_bid$Translate$NumberInput = {ctor: 'NumberInput'}; -var _Gizra$circuit_bid$Translate$Numismatics = {ctor: 'Numismatics'}; -var _Gizra$circuit_bid$Translate$NowBidding = {ctor: 'NowBidding'}; -var _Gizra$circuit_bid$Translate$NotSold = {ctor: 'NotSold'}; -var _Gizra$circuit_bid$Translate$NotConnected = {ctor: 'NotConnected'}; -var _Gizra$circuit_bid$Translate$NoSelectedItem = {ctor: 'NoSelectedItem'}; -var _Gizra$circuit_bid$Translate$NextBid = {ctor: 'NextBid'}; -var _Gizra$circuit_bid$Translate$NoConnectedSales = {ctor: 'NoConnectedSales'}; -var _Gizra$circuit_bid$Translate$NoClosed = {ctor: 'NoClosed'}; -var _Gizra$circuit_bid$Translate$NoBidsPlaced = {ctor: 'NoBidsPlaced'}; -var _Gizra$circuit_bid$Translate$MyBid = F2( - function (a, b) { - return {ctor: 'MyBid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Name = {ctor: 'Name'}; -var _Gizra$circuit_bid$Translate$MyAccount = {ctor: 'MyAccount'}; -var _Gizra$circuit_bid$Translate$Minutes = {ctor: 'Minutes'}; -var _Gizra$circuit_bid$Translate$MyCredit = {ctor: 'MyCredit'}; -var _Gizra$circuit_bid$Translate$MyBids = {ctor: 'MyBids'}; -var _Gizra$circuit_bid$Translate$MyBidTitle = {ctor: 'MyBidTitle'}; -var _Gizra$circuit_bid$Translate$MinimumPrice = F2( - function (a, b) { - return {ctor: 'MinimumPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Messages = {ctor: 'Messages'}; -var _Gizra$circuit_bid$Translate$Manuscripts = {ctor: 'Manuscripts'}; -var _Gizra$circuit_bid$Translate$MailAuctionOpen = {ctor: 'MailAuctionOpen'}; -var _Gizra$circuit_bid$Translate$Mail = {ctor: 'Mail'}; -var _Gizra$circuit_bid$Translate$LotWithdrawnFromSale = {ctor: 'LotWithdrawnFromSale'}; -var _Gizra$circuit_bid$Translate$LotValue = function (a) { - return {ctor: 'LotValue', _0: a}; -}; -var _Gizra$circuit_bid$Translate$LotCloseIn = {ctor: 'LotCloseIn'}; -var _Gizra$circuit_bid$Translate$Lot = {ctor: 'Lot'}; -var _Gizra$circuit_bid$Translate$Logout = {ctor: 'Logout'}; -var _Gizra$circuit_bid$Translate$LoginVerb = {ctor: 'LoginVerb'}; -var _Gizra$circuit_bid$Translate$Login = {ctor: 'Login'}; -var _Gizra$circuit_bid$Translate$LoadingAuction = {ctor: 'LoadingAuction'}; -var _Gizra$circuit_bid$Translate$LastToFloor = {ctor: 'LastToFloor'}; -var _Gizra$circuit_bid$Translate$LiveAuctionOpen = {ctor: 'LiveAuctionOpen'}; -var _Gizra$circuit_bid$Translate$Live = {ctor: 'Live'}; -var _Gizra$circuit_bid$Translate$LastName = {ctor: 'LastName'}; -var _Gizra$circuit_bid$Translate$JumpToItem = {ctor: 'JumpToItem'}; -var _Gizra$circuit_bid$Translate$JoinLiveAuction = {ctor: 'JoinLiveAuction'}; -var _Gizra$circuit_bid$Translate$Joined = {ctor: 'Joined'}; -var _Gizra$circuit_bid$Translate$Jewelry = {ctor: 'Jewelry'}; -var _Gizra$circuit_bid$Translate$ItemsCounter = F2( - function (a, b) { - return {ctor: 'ItemsCounter', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Items = {ctor: 'Items'}; -var _Gizra$circuit_bid$Translate$Israeliana = {ctor: 'Israeliana'}; -var _Gizra$circuit_bid$Translate$InvalidEmail = {ctor: 'InvalidEmail'}; -var _Gizra$circuit_bid$Translate$InternetBidder = {ctor: 'InternetBidder'}; -var _Gizra$circuit_bid$Translate$IHaveAcceptedTheAuctioneersTerms = {ctor: 'IHaveAcceptedTheAuctioneersTerms'}; -var _Gizra$circuit_bid$Translate$ItemWithdrawnMessage = function (a) { - return {ctor: 'ItemWithdrawnMessage', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ItemUnsoldMessage = function (a) { - return {ctor: 'ItemUnsoldMessage', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ItemSoldMessage = F3( - function (a, b, c) { - return {ctor: 'ItemSoldMessage', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Translate$ItemPausedMessage = function (a) { - return {ctor: 'ItemPausedMessage', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ItemOpenMessage = function (a) { - return {ctor: 'ItemOpenMessage', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ItemNotActiveButAlreadyHasLiveBids = {ctor: 'ItemNotActiveButAlreadyHasLiveBids'}; -var _Gizra$circuit_bid$Translate$ItemGoingMessage = {ctor: 'ItemGoingMessage'}; -var _Gizra$circuit_bid$Translate$IncludingBuyersPremium = {ctor: 'IncludingBuyersPremium'}; -var _Gizra$circuit_bid$Translate$Hours = {ctor: 'Hours'}; -var _Gizra$circuit_bid$Translate$Gone = {ctor: 'Gone'}; -var _Gizra$circuit_bid$Translate$Going = {ctor: 'Going'}; -var _Gizra$circuit_bid$Translate$ForgotYourPassword = {ctor: 'ForgotYourPassword'}; -var _Gizra$circuit_bid$Translate$ForgotPasswordLogin = {ctor: 'ForgotPasswordLogin'}; -var _Gizra$circuit_bid$Translate$ForgotPassword = {ctor: 'ForgotPassword'}; -var _Gizra$circuit_bid$Translate$ForgotMyPassword = {ctor: 'ForgotMyPassword'}; -var _Gizra$circuit_bid$Translate$FloorBidder = {ctor: 'FloorBidder'}; -var _Gizra$circuit_bid$Translate$FirstName = {ctor: 'FirstName'}; -var _Gizra$circuit_bid$Translate$FieldIsRequired = {ctor: 'FieldIsRequired'}; -var _Gizra$circuit_bid$Translate$Estimate = F2( - function (a, b) { - return {ctor: 'Estimate', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Est = F2( - function (a, b) { - return {ctor: 'Est', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$ErrorRegistration = {ctor: 'ErrorRegistration'}; -var _Gizra$circuit_bid$Translate$ErrorTimeout = {ctor: 'ErrorTimeout'}; -var _Gizra$circuit_bid$Translate$ErrorNetworkError = {ctor: 'ErrorNetworkError'}; -var _Gizra$circuit_bid$Translate$ErrorBadStatus = function (a) { - return {ctor: 'ErrorBadStatus', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ErrorBadPayload = function (a) { - return {ctor: 'ErrorBadPayload', _0: a}; -}; -var _Gizra$circuit_bid$Translate$ErrorBadUrl = {ctor: 'ErrorBadUrl'}; -var _Gizra$circuit_bid$Translate$EnterYourUsername = {ctor: 'EnterYourUsername'}; -var _Gizra$circuit_bid$Translate$EnterNewPassword = {ctor: 'EnterNewPassword'}; -var _Gizra$circuit_bid$Translate$EnterYourPassword = {ctor: 'EnterYourPassword'}; -var _Gizra$circuit_bid$Translate$EmailInfo = {ctor: 'EmailInfo'}; -var _Gizra$circuit_bid$Translate$EnterYourBid = {ctor: 'EnterYourBid'}; -var _Gizra$circuit_bid$Translate$Email = {ctor: 'Email'}; -var _Gizra$circuit_bid$Translate$Edit = {ctor: 'Edit'}; -var _Gizra$circuit_bid$Translate$Dashboard = {ctor: 'Dashboard'}; -var _Gizra$circuit_bid$Translate$CurrentStep = function (a) { - return {ctor: 'CurrentStep', _0: a}; -}; -var _Gizra$circuit_bid$Translate$CurrentSession = {ctor: 'CurrentSession'}; -var _Gizra$circuit_bid$Translate$CurrentPriceAmount = F2( - function (a, b) { - return {ctor: 'CurrentPriceAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$CurrentPrice = {ctor: 'CurrentPrice'}; -var _Gizra$circuit_bid$Translate$CurrentCreditAndPending = F3( - function (a, b, c) { - return {ctor: 'CurrentCreditAndPending', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Translate$CurrentCredit = F2( - function (a, b) { - return {ctor: 'CurrentCredit', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$CreditUnlimited = {ctor: 'CreditUnlimited'}; -var _Gizra$circuit_bid$Translate$CreditRequestPending = {ctor: 'CreditRequestPending'}; -var _Gizra$circuit_bid$Translate$CreditRequestDescription = {ctor: 'CreditRequestDescription'}; -var _Gizra$circuit_bid$Translate$CreditRequests = {ctor: 'CreditRequests'}; -var _Gizra$circuit_bid$Translate$CreditRequest = {ctor: 'CreditRequest'}; -var _Gizra$circuit_bid$Translate$CreateAccount = {ctor: 'CreateAccount'}; -var _Gizra$circuit_bid$Translate$CountryName = function (a) { - return {ctor: 'CountryName', _0: a}; -}; -var _Gizra$circuit_bid$Translate$Country = {ctor: 'Country'}; -var _Gizra$circuit_bid$Translate$ConnectedUsers = function (a) { - return {ctor: 'ConnectedUsers', _0: a}; -}; -var _Gizra$circuit_bid$Translate$Connected = {ctor: 'Connected'}; -var _Gizra$circuit_bid$Translate$ConfirmPassword = {ctor: 'ConfirmPassword'}; -var _Gizra$circuit_bid$Translate$ClosedNotStarted = {ctor: 'ClosedNotStarted'}; -var _Gizra$circuit_bid$Translate$ClosedItems = {ctor: 'ClosedItems'}; -var _Gizra$circuit_bid$Translate$ClosedEnded = {ctor: 'ClosedEnded'}; -var _Gizra$circuit_bid$Translate$Closed = {ctor: 'Closed'}; -var _Gizra$circuit_bid$Translate$ClerkPage = {ctor: 'ClerkPage'}; -var _Gizra$circuit_bid$Translate$City = {ctor: 'City'}; -var _Gizra$circuit_bid$Translate$ChangePassword = {ctor: 'ChangePassword'}; -var _Gizra$circuit_bid$Translate$ChangeOpeningPrice = {ctor: 'ChangeOpeningPrice'}; -var _Gizra$circuit_bid$Translate$ChangeBidStep = {ctor: 'ChangeBidStep'}; -var _Gizra$circuit_bid$Translate$ChangeBidAmount = {ctor: 'ChangeBidAmount'}; -var _Gizra$circuit_bid$Translate$Cancel = {ctor: 'Cancel'}; -var _Gizra$circuit_bid$Translate$CallRequests = {ctor: 'CallRequests'}; -var _Gizra$circuit_bid$Translate$BookBids = {ctor: 'BookBids'}; -var _Gizra$circuit_bid$Translate$Book = {ctor: 'Book'}; -var _Gizra$circuit_bid$Translate$BuyNow = {ctor: 'BuyNow'}; -var _Gizra$circuit_bid$Translate$BidOutbidOwnMessage = F2( - function (a, b) { - return {ctor: 'BidOutbidOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidOutbidMessage = F2( - function (a, b) { - return {ctor: 'BidOutbidMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidRejectedDuplicateAmountMessage = F2( - function (a, b) { - return {ctor: 'BidRejectedDuplicateAmountMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidRejectedOwnMessage = F2( - function (a, b) { - return {ctor: 'BidRejectedOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidRejectedMessage = F2( - function (a, b) { - return {ctor: 'BidRejectedMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidRejectedCreditLimitOwnMessage = F2( - function (a, b) { - return {ctor: 'BidRejectedCreditLimitOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidRejectedBidderMaxOwnMessage = F2( - function (a, b) { - return {ctor: 'BidRejectedBidderMaxOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidDeletedOwnMessage = F2( - function (a, b) { - return {ctor: 'BidDeletedOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidDeletedMessage = F2( - function (a, b) { - return {ctor: 'BidDeletedMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidChangedToFloorOwnMessage = F2( - function (a, b) { - return {ctor: 'BidChangedToFloorOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidChangedToFloorMessage = F2( - function (a, b) { - return {ctor: 'BidChangedToFloorMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidAcceptedOwnMessage = F2( - function (a, b) { - return {ctor: 'BidAcceptedOwnMessage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$BidAcceptedMessage = F3( - function (a, b, c) { - return {ctor: 'BidAcceptedMessage', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Translate$BidStepFrom = {ctor: 'BidStepFrom'}; -var _Gizra$circuit_bid$Translate$BidStepAmount = {ctor: 'BidStepAmount'}; -var _Gizra$circuit_bid$Translate$BidStep = {ctor: 'BidStep'}; -var _Gizra$circuit_bid$Translate$BidsLimitExplanation = {ctor: 'BidsLimitExplanation'}; -var _Gizra$circuit_bid$Translate$BidsLimit = {ctor: 'BidsLimit'}; -var _Gizra$circuit_bid$Translate$Bids = {ctor: 'Bids'}; -var _Gizra$circuit_bid$Translate$BidderLimitDescription = {ctor: 'BidderLimitDescription'}; -var _Gizra$circuit_bid$Translate$BidderLimit = {ctor: 'BidderLimit'}; -var _Gizra$circuit_bid$Translate$Bidder = {ctor: 'Bidder'}; -var _Gizra$circuit_bid$Translate$AutoClerkToggle = {ctor: 'AutoClerkToggle'}; -var _Gizra$circuit_bid$Translate$AuctioneerNotes = {ctor: 'AuctioneerNotes'}; -var _Gizra$circuit_bid$Translate$AuctioneerPage = {ctor: 'AuctioneerPage'}; -var _Gizra$circuit_bid$Translate$Archaeology = {ctor: 'Archaeology'}; -var _Gizra$circuit_bid$Translate$AreaOfInterest = {ctor: 'AreaOfInterest'}; -var _Gizra$circuit_bid$Translate$AmountRestrictionLabel = function (a) { - return {ctor: 'AmountRestrictionLabel', _0: a}; -}; -var _Gizra$circuit_bid$Translate$AmountLimit = function (a) { - return {ctor: 'AmountLimit', _0: a}; -}; -var _Gizra$circuit_bid$Translate$AgentBidder = {ctor: 'AgentBidder'}; -var _Gizra$circuit_bid$Translate$AddressLine2 = {ctor: 'AddressLine2'}; -var _Gizra$circuit_bid$Translate$AddressLine1 = {ctor: 'AddressLine1'}; -var _Gizra$circuit_bid$Translate$Address = {ctor: 'Address'}; -var _Gizra$circuit_bid$Translate$AddNextBid = F2( - function (a, b) { - return {ctor: 'AddNextBid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Translate$Active = {ctor: 'Active'}; -var _Gizra$circuit_bid$Translate$AccountPendingApproval = {ctor: 'AccountPendingApproval'}; -var _Gizra$circuit_bid$Translate$AccessDenied = {ctor: 'AccessDenied'}; -var _Gizra$circuit_bid$Translate$AcceptTerms = {ctor: 'AcceptTerms'}; - -var _Gizra$circuit_bid$Alert$UnrecognizedCredentials = {ctor: 'UnrecognizedCredentials'}; -var _Gizra$circuit_bid$Alert$OwnBidRevokedToFloor = function (a) { - return {ctor: 'OwnBidRevokedToFloor', _0: a}; -}; -var _Gizra$circuit_bid$Alert$OwnBidRevoked = function (a) { - return {ctor: 'OwnBidRevoked', _0: a}; -}; -var _Gizra$circuit_bid$Alert$OtherBidRevoked = function (a) { - return {ctor: 'OtherBidRevoked', _0: a}; -}; -var _Gizra$circuit_bid$Alert$Outbid = function (a) { - return {ctor: 'Outbid', _0: a}; -}; -var _Gizra$circuit_bid$Alert$BidRejectedDuplicateAmount = function (a) { - return {ctor: 'BidRejectedDuplicateAmount', _0: a}; -}; -var _Gizra$circuit_bid$Alert$BidRejectedBidderMaxLimit = function (a) { - return {ctor: 'BidRejectedBidderMaxLimit', _0: a}; -}; -var _Gizra$circuit_bid$Alert$BidRejectedCreditLimit = function (a) { - return {ctor: 'BidRejectedCreditLimit', _0: a}; -}; -var _Gizra$circuit_bid$Alert$BidRejected = function (a) { - return {ctor: 'BidRejected', _0: a}; -}; -var _Gizra$circuit_bid$Alert$BidAccepted = function (a) { - return {ctor: 'BidAccepted', _0: a}; -}; -var _Gizra$circuit_bid$Alert$Success = {ctor: 'Success'}; -var _Gizra$circuit_bid$Alert$Notice = {ctor: 'Notice'}; -var _Gizra$circuit_bid$Alert$Error = {ctor: 'Error'}; -var _Gizra$circuit_bid$Alert$viewAlert = F3( - function (language, currency, alert) { - var viewAlertHelper = F2( - function (alertLevel, message) { - var _p0 = function () { - var _p1 = alertLevel; - switch (_p1.ctor) { - case 'Success': - return {ctor: '_Tuple2', _0: 'success', _1: 'fa-check'}; - case 'Notice': - return {ctor: '_Tuple2', _0: 'warning', _1: 'fa-exclamation'}; - default: - return {ctor: '_Tuple2', _0: 'error', _1: 'fa-exclamation-triangle'}; - } - }(); - var messageClass = _p0._0; - var iconClass = _p0._1; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class( - A2(_elm_lang$core$Basics_ops['++'], 'popups ', messageClass)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class( - A2(_elm_lang$core$Basics_ops['++'], 'fa ', iconClass)), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, message), - _1: {ctor: '[]'} - } - }); - }); - var _p2 = alert; - switch (_p2.ctor) { - case 'BidAccepted': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Success, - A2(_Gizra$circuit_bid$Translate$BidAcceptedOwnMessage, _p2._0, currency)); - case 'BidRejected': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$BidRejectedOwnMessage, _p2._0, currency)); - case 'BidRejectedCreditLimit': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$BidRejectedCreditLimitOwnMessage, _p2._0, currency)); - case 'BidRejectedBidderMaxLimit': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$BidRejectedBidderMaxOwnMessage, _p2._0, currency)); - case 'BidRejectedDuplicateAmount': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$BidRejectedDuplicateAmountMessage, _p2._0, currency)); - case 'Outbid': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Notice, - A2(_Gizra$circuit_bid$Translate$BidOutbidOwnMessage, _p2._0, currency)); - case 'OtherBidRevoked': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Notice, - A2(_Gizra$circuit_bid$Translate$OtherBidRevokedMessage, _p2._0, currency)); - case 'OwnBidRevoked': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$OwnBidRevokedMessage, _p2._0, currency)); - case 'OwnBidRevokedToFloor': - return A2( - viewAlertHelper, - _Gizra$circuit_bid$Alert$Error, - A2(_Gizra$circuit_bid$Translate$OwnBidRevokedToFloorMessage, _p2._0, currency)); - default: - return A2(viewAlertHelper, _Gizra$circuit_bid$Alert$Error, _Gizra$circuit_bid$Translate$UnrecognizedCredentialsMessage); - } - }); - -var _Gizra$circuit_bid$App_PageType$PageNotFound = {ctor: 'PageNotFound'}; -var _Gizra$circuit_bid$App_PageType$SaleRoom = function (a) { - return {ctor: 'SaleRoom', _0: a}; -}; -var _Gizra$circuit_bid$App_PageType$SaleClerk = function (a) { - return {ctor: 'SaleClerk', _0: a}; -}; -var _Gizra$circuit_bid$App_PageType$SaleAuctioneer = function (a) { - return {ctor: 'SaleAuctioneer', _0: a}; -}; -var _Gizra$circuit_bid$App_PageType$Sale = function (a) { - return {ctor: 'Sale', _0: a}; -}; -var _Gizra$circuit_bid$App_PageType$Logout = {ctor: 'Logout'}; -var _Gizra$circuit_bid$App_PageType$Dashboard = {ctor: 'Dashboard'}; -var _Gizra$circuit_bid$App_PageType$AccessDenied = {ctor: 'AccessDenied'}; - -var _elm_lang$html$Html_Events$keyCode = A2(_elm_lang$core$Json_Decode$field, 'keyCode', _elm_lang$core$Json_Decode$int); -var _elm_lang$html$Html_Events$targetChecked = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'target', - _1: { - ctor: '::', - _0: 'checked', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$bool); -var _elm_lang$html$Html_Events$targetValue = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'target', - _1: { - ctor: '::', - _0: 'value', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string); -var _elm_lang$html$Html_Events$defaultOptions = _elm_lang$virtual_dom$VirtualDom$defaultOptions; -var _elm_lang$html$Html_Events$onWithOptions = _elm_lang$virtual_dom$VirtualDom$onWithOptions; -var _elm_lang$html$Html_Events$on = _elm_lang$virtual_dom$VirtualDom$on; -var _elm_lang$html$Html_Events$onFocus = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'focus', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onBlur = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'blur', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onSubmitOptions = _elm_lang$core$Native_Utils.update( - _elm_lang$html$Html_Events$defaultOptions, - {preventDefault: true}); -var _elm_lang$html$Html_Events$onSubmit = function (msg) { - return A3( - _elm_lang$html$Html_Events$onWithOptions, - 'submit', - _elm_lang$html$Html_Events$onSubmitOptions, - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onCheck = function (tagger) { - return A2( - _elm_lang$html$Html_Events$on, - 'change', - A2(_elm_lang$core$Json_Decode$map, tagger, _elm_lang$html$Html_Events$targetChecked)); -}; -var _elm_lang$html$Html_Events$onInput = function (tagger) { - return A2( - _elm_lang$html$Html_Events$on, - 'input', - A2(_elm_lang$core$Json_Decode$map, tagger, _elm_lang$html$Html_Events$targetValue)); -}; -var _elm_lang$html$Html_Events$onMouseOut = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseout', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onMouseOver = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseover', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onMouseLeave = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseleave', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onMouseEnter = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseenter', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onMouseUp = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseup', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onMouseDown = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'mousedown', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onDoubleClick = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'dblclick', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$onClick = function (msg) { - return A2( - _elm_lang$html$Html_Events$on, - 'click', - _elm_lang$core$Json_Decode$succeed(msg)); -}; -var _elm_lang$html$Html_Events$Options = F2( - function (a, b) { - return {stopPropagation: a, preventDefault: b}; - }); - -var _Gizra$circuit_bid$PaginatedData$getItemsByPager = F3( - function (identifier, _p0, pageProperty) { - var _p1 = _p0; - var _p5 = _p1.pager; - var _p4 = _p1.data; - if (_elm_lang$core$Native_Utils.cmp( - _eeue56$elm_all_dict$EveryDict$size(_p5), - 1) < 1) { - return _p4; - } else { - var currentPage = A2( - _elm_lang$core$Maybe$withDefault, - 1, - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, pageProperty)); - var pagerInfo = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, currentPage, _p5)); - var _p2 = pagerInfo; - if ((_p2.ctor === 'Success') && (_p2._0.ctor === '_Tuple2')) { - var lastIndex = A2( - _elm_lang$core$Maybe$withDefault, - 0, - A2(_Gizra$elm_dictlist$EveryDictList$indexOfKey, _p2._0._1, _p4)); - var firstIndex = A2( - _elm_lang$core$Maybe$withDefault, - 0, - A2(_Gizra$elm_dictlist$EveryDictList$indexOfKey, _p2._0._0, _p4)); - return A3( - _elm_lang$core$List$foldl, - F2( - function (index, accum) { - var _p3 = A2(_Gizra$elm_dictlist$EveryDictList$getAt, index, _p4); - if (_p3.ctor === 'Just') { - return A3(_Gizra$elm_dictlist$EveryDictList$insert, _p3._0._0, _p3._0._1, accum); - } else { - return accum; - } - }), - _Gizra$elm_dictlist$EveryDictList$empty, - A2(_elm_lang$core$List$range, firstIndex, lastIndex)); - } else { - return _Gizra$elm_dictlist$EveryDictList$empty; - } - } - }); -var _Gizra$circuit_bid$PaginatedData$viewPager = F4( - function (identifier, _p6, pageProperty, func) { - var _p7 = _p6; - var _p8 = _p7.pager; - if (_elm_lang$core$Native_Utils.cmp( - _eeue56$elm_all_dict$EveryDict$size(_p8), - 1) < 1) { - return _elm_lang$html$Html$text(''); - } else { - var currentPage = A2( - _elm_lang$core$Maybe$withDefault, - 1, - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, pageProperty)); - return A2( - _elm_lang$html$Html$ul, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pagination'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - function (pageNumber) { - var aAttr = _elm_lang$core$Native_Utils.eq(pageNumber, currentPage) ? { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript:void(0);'), - _1: {ctor: '[]'} - } : { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - func(pageNumber)), - _1: {ctor: '[]'} - }; - return A2( - _elm_lang$html$Html$li, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'active', - _1: _elm_lang$core$Native_Utils.eq(pageNumber, currentPage) - }, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - aAttr, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - _elm_lang$core$Basics$toString(pageNumber)), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - }, - _elm_lang$core$List$sort( - _eeue56$elm_all_dict$EveryDict$keys(_p8)))); - } - }); -var _Gizra$circuit_bid$PaginatedData$emptyPaginatedData = {data: _Gizra$elm_dictlist$EveryDictList$empty, pager: _eeue56$elm_all_dict$EveryDict$empty, totalCount: 0}; -var _Gizra$circuit_bid$PaginatedData$fetchPaginated = F3( - function (_p10, _p9, func) { - var _p11 = _p10; - var _p14 = _p11._0; - var _p13 = _p11._1; - var _p12 = _p9; - var isPreviousRequestFailed = _krisajenkins$remotedata$RemoteData$isFailure( - A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, _p14, _p13))); - var currentPage = A2( - _elm_lang$core$Maybe$withDefault, - 1, - A2(_eeue56$elm_all_dict$EveryDict$get, _p12._0, _p12._1)); - var existingData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, _p14, _p13)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existingData)); - var currentPageData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, currentPage, existingDataAndPager.pager)); - var hasNextPage = A2(_eeue56$elm_all_dict$EveryDict$member, currentPage + 1, existingDataAndPager.pager); - var nextPageData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, currentPage + 1, existingDataAndPager.pager)); - return (!isPreviousRequestFailed) ? (_krisajenkins$remotedata$RemoteData$isNotAsked(currentPageData) ? { - ctor: '::', - _0: _elm_lang$core$Maybe$Just( - func(currentPage)), - _1: {ctor: '[]'} - } : ((hasNextPage && (_krisajenkins$remotedata$RemoteData$isNotAsked(nextPageData) && (_elm_lang$core$Native_Utils.cmp( - _Gizra$elm_dictlist$EveryDictList$size(existingDataAndPager.data), - existingDataAndPager.totalCount) < 0))) ? { - ctor: '::', - _0: _elm_lang$core$Maybe$Just( - func(currentPage + 1)), - _1: {ctor: '[]'} - } : {ctor: '[]'})) : {ctor: '[]'}; - }); -var _Gizra$circuit_bid$PaginatedData$fetchAll = F2( - function (_p15, func) { - var _p16 = _p15; - var _p24 = _p16._0; - var _p23 = _p16._1; - var isPreviousRequestFailed = _krisajenkins$remotedata$RemoteData$isFailure( - A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, _p24, _p23))); - var existingData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, _p24, _p23)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existingData)); - var currentPage = A2( - _elm_lang$core$Maybe$withDefault, - 1, - A2( - _elm_lang$core$Maybe$andThen, - function (_p17) { - var _p18 = _p17; - return _elm_lang$core$Maybe$Just(_p18._0); - }, - _elm_lang$core$List$head( - _elm_lang$core$List$reverse( - A2( - _elm_lang$core$List$sortBy, - function (_p19) { - var _p20 = _p19; - return _p20._0; - }, - A2( - _elm_lang$core$List$filter, - function (_p21) { - var _p22 = _p21; - return _krisajenkins$remotedata$RemoteData$isSuccess(_p22._1); - }, - _eeue56$elm_all_dict$EveryDict$toList(existingDataAndPager.pager))))))); - var currentPageData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, currentPage, existingDataAndPager.pager)); - var hasNextPage = A2(_eeue56$elm_all_dict$EveryDict$member, currentPage + 1, existingDataAndPager.pager); - var nextPageData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, currentPage + 1, existingDataAndPager.pager)); - return (!isPreviousRequestFailed) ? (_krisajenkins$remotedata$RemoteData$isNotAsked(currentPageData) ? { - ctor: '::', - _0: _elm_lang$core$Maybe$Just( - func(currentPage)), - _1: {ctor: '[]'} - } : ((hasNextPage && _krisajenkins$remotedata$RemoteData$isNotAsked(nextPageData)) ? { - ctor: '::', - _0: _elm_lang$core$Maybe$Just( - func(currentPage + 1)), - _1: {ctor: '[]'} - } : {ctor: '[]'})) : {ctor: '[]'}; - }); -var _Gizra$circuit_bid$PaginatedData$get = F3( - function (identifier, key, dict) { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var dataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - return A2(_Gizra$elm_dictlist$EveryDictList$get, key, dataAndPager.data); - }); -var _Gizra$circuit_bid$PaginatedData$update = F4( - function (identifier, key, func, dict) { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var dataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - var _p25 = A2(_Gizra$elm_dictlist$EveryDictList$get, key, dataAndPager.data); - if (_p25.ctor === 'Nothing') { - return dict; - } else { - var valueUpdated = func(_p25._0); - var dataAndPagerUpdated = _elm_lang$core$Native_Utils.update( - dataAndPager, - { - data: A3(_Gizra$elm_dictlist$EveryDictList$insert, key, valueUpdated, dataAndPager.data) - }); - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Success(dataAndPagerUpdated), - dict); - } - }); -var _Gizra$circuit_bid$PaginatedData$remove = F3( - function (identifier, key, dict) { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var dataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - var dataAndPagerUpdated = _elm_lang$core$Native_Utils.update( - dataAndPager, - { - data: A2(_Gizra$elm_dictlist$EveryDictList$remove, key, dataAndPager.data) - }); - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Success(dataAndPagerUpdated), - dict); - }); -var _Gizra$circuit_bid$PaginatedData$setPageAsLoading = F3( - function (identifier, pageNumber, dict) { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - var pagerUpdated = A3(_eeue56$elm_all_dict$EveryDict$insert, pageNumber, _krisajenkins$remotedata$RemoteData$Loading, existingDataAndPager.pager); - var existingDataAndPagerUpdated = _elm_lang$core$Native_Utils.update( - existingDataAndPager, - {pager: pagerUpdated}); - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Success(existingDataAndPagerUpdated), - dict); - }); -var _Gizra$circuit_bid$PaginatedData$insertMultiple = F8( - function (identifier, pageNumber, webdata, defaultItemFunc, getItemFunc, insertFunc, insertAfterFunc, dict) { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - var _p26 = webdata; - _v11_2: - do { - switch (_p26.ctor) { - case 'Success': - if (_p26._0.ctor === '_Tuple2') { - var _p32 = _p26._0._1; - var _p31 = _p26._0._0; - var totalItems = _Gizra$elm_dictlist$EveryDictList$size(_p31); - var totalPages = _elm_lang$core$Basics$ceiling( - _elm_lang$core$Basics$toFloat(_p32) / _elm_lang$core$Basics$toFloat(totalItems)); - var _p27 = { - ctor: '_Tuple2', - _0: A2( - _elm_lang$core$Maybe$withDefault, - defaultItemFunc(0), - A2( - _elm_lang$core$Maybe$andThen, - getItemFunc, - A2(_Gizra$elm_dictlist$EveryDictList$getAt, 0, _p31))), - _1: A2( - _elm_lang$core$Maybe$withDefault, - defaultItemFunc(0), - A2( - _elm_lang$core$Maybe$andThen, - getItemFunc, - A2(_Gizra$elm_dictlist$EveryDictList$getAt, totalItems - 1, _p31))) - }; - var firstItem = _p27._0; - var lastItem = _p27._1; - var pagerUpdated = _elm_lang$core$Native_Utils.eq(_p32, 0) ? A3( - _eeue56$elm_all_dict$EveryDict$insert, - pageNumber, - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: firstItem, _1: lastItem}), - existingDataAndPager.pager) : ((_elm_lang$core$Native_Utils.cmp( - _eeue56$elm_all_dict$EveryDict$size(existingDataAndPager.pager), - 1) < 1) ? A3( - _elm_lang$core$List$foldl, - F2( - function (index, accum) { - var value = _elm_lang$core$Native_Utils.eq(index, pageNumber) ? _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: firstItem, _1: lastItem}) : _krisajenkins$remotedata$RemoteData$NotAsked; - return A3(_eeue56$elm_all_dict$EveryDict$insert, index, value, accum); - }), - _eeue56$elm_all_dict$EveryDict$empty, - A2(_elm_lang$core$List$range, 1, totalPages)) : A3( - _eeue56$elm_all_dict$EveryDict$insert, - pageNumber, - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: firstItem, _1: lastItem}), - existingDataAndPager.pager)); - var maybePreviousItemLastUuid = (_elm_lang$core$Native_Utils.cmp(pageNumber, 1) > 0) ? A3( - _elm_lang$core$List$foldl, - F2( - function (index, accum) { - var pagerInfo = A2( - _elm_lang$core$Maybe$andThen, - _krisajenkins$remotedata$RemoteData$toMaybe, - A2(_eeue56$elm_all_dict$EveryDict$get, pageNumber - 1, existingDataAndPager.pager)); - var _p28 = accum; - if (_p28.ctor === 'Just') { - return accum; - } else { - var _p29 = pagerInfo; - if (_p29.ctor === 'Nothing') { - return accum; - } else { - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Tuple$second(_p29._0)); - } - } - }), - _elm_lang$core$Maybe$Nothing, - _elm_lang$core$List$reverse( - A2(_elm_lang$core$List$range, 1, pageNumber - 1))) : _elm_lang$core$Maybe$Nothing; - var itemsUpdated = function () { - var _p30 = maybePreviousItemLastUuid; - if (_p30.ctor === 'Nothing') { - return _elm_lang$core$Native_Utils.eq(_p32, 0) ? _Gizra$elm_dictlist$EveryDictList$empty : A3(_Gizra$elm_dictlist$EveryDictList$foldl, insertFunc, existingDataAndPager.data, _p31); - } else { - return _elm_lang$core$Tuple$second( - A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - insertAfterFunc, - {ctor: '_Tuple2', _0: _p30._0, _1: existingDataAndPager.data}, - _Gizra$elm_dictlist$EveryDictList$reverse(_p31))); - } - }(); - var existingDataAndPagerUpdated = _elm_lang$core$Native_Utils.update( - existingDataAndPager, - {data: itemsUpdated, pager: pagerUpdated, totalCount: _p32}); - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Success(existingDataAndPagerUpdated), - dict); - } else { - break _v11_2; - } - case 'Failure': - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Failure(_p26._0), - dict); - default: - break _v11_2; - } - } while(false); - return dict; - }); -var _Gizra$circuit_bid$PaginatedData$insertDirectlyFromClient = F3( - function (identifier, _p33, dict) { - var _p34 = _p33; - var _p40 = _p34._0; - var _p35 = A3(_Gizra$circuit_bid$PaginatedData$get, identifier, _p40, dict); - if (_p35.ctor === 'Just') { - return dict; - } else { - var existing = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$Success(_Gizra$circuit_bid$PaginatedData$emptyPaginatedData), - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existing)); - var _p36 = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '_Tuple2', _0: 1, _1: _krisajenkins$remotedata$RemoteData$NotAsked}, - _elm_lang$core$List$head( - _elm_lang$core$List$reverse( - A2( - _elm_lang$core$List$sortBy, - function (_p37) { - var _p38 = _p37; - return _p38._0; - }, - _eeue56$elm_all_dict$EveryDict$toList(existingDataAndPager.pager))))); - var page = _p36._0; - var pager = _p36._1; - var pagerUpdated = function () { - var _p39 = pager; - _v18_2: - do { - switch (_p39.ctor) { - case 'NotAsked': - return _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: _p40, _1: _p40}); - case 'Success': - if (_p39._0.ctor === '_Tuple2') { - return _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: _p39._0._0, _1: _p40}); - } else { - break _v18_2; - } - default: - break _v18_2; - } - } while(false); - return pager; - }(); - var existingDataAndPagerUpdated = _elm_lang$core$Native_Utils.update( - existingDataAndPager, - { - data: A3(_Gizra$elm_dictlist$EveryDictList$insert, _p40, _p34._1, existingDataAndPager.data), - pager: A3(_eeue56$elm_all_dict$EveryDict$insert, page, pagerUpdated, existingDataAndPager.pager), - totalCount: existingDataAndPager.totalCount + 1 - }); - return A3( - _eeue56$elm_all_dict$EveryDict$insert, - identifier, - _krisajenkins$remotedata$RemoteData$Success(existingDataAndPagerUpdated), - dict); - } - }); -var _Gizra$circuit_bid$PaginatedData$PaginatedData = F3( - function (a, b, c) { - return {data: a, pager: b, totalCount: c}; - }); - -var _Gizra$circuit_bid$Backend_BidderInfo_Model$BidderInfo = F6( - function (a, b, c, d, e, f) { - return {bidderNumber: a, agent: b, amountRestrictions: c, totalSpent: d, userId: e, userName: f}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$BidderInfoParams = F2( - function (a, b) { - return {saleUuid: a, pageNumber: b}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Website = function (a) { - return {ctor: 'Website', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Phone = function (a) { - return {ctor: 'Phone', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Mail = function (a) { - return {ctor: 'Mail', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$FloorByAgent = function (a) { - return {ctor: 'FloorByAgent', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Floor = function (a) { - return {ctor: 'Floor', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$External = function (a) { - return {ctor: 'External', _0: a}; -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid = {ctor: 'MaxBid'}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$MailCredit = {ctor: 'MailCredit'}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit = {ctor: 'LiveCredit'}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$emptyBidderInfo = { - bidderNumber: _Gizra$circuit_bid$Backend_BidderInfo_Model$Floor(0), - agent: _elm_lang$core$Maybe$Nothing, - amountRestrictions: _eeue56$elm_all_dict$EveryDict$fromList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit, _1: _Gizra$circuit_bid$Amount$Unlimited}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$MailCredit, _1: _Gizra$circuit_bid$Amount$Unlimited}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid, _1: _Gizra$circuit_bid$Amount$Unlimited}, - _1: {ctor: '[]'} - } - } - }), - totalSpent: _Gizra$circuit_bid$Amount$zero, - userName: _elm_lang$core$Maybe$Nothing, - userId: _elm_lang$core$Maybe$Nothing -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Update = F2( - function (a, b) { - return {ctor: 'Update', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$SetSelectedAmountRestriction = F3( - function (a, b, c) { - return {ctor: 'SetSelectedAmountRestriction', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Save = F2( - function (a, b) { - return {ctor: 'Save', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$HandleSave = F3( - function (a, b, c) { - return {ctor: 'HandleSave', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$HandleFetch = F3( - function (a, b, c) { - return {ctor: 'HandleFetch', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Model$Fetch = F2( - function (a, b) { - return {ctor: 'Fetch', _0: a, _1: b}; - }); - -var _Gizra$elm_storage_key$StorageKey$value = function (storageKey) { - var _p0 = storageKey; - if (_p0.ctor === 'Existing') { - return _elm_lang$core$Maybe$Just(_p0._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$elm_storage_key$StorageKey$Existing = function (a) { - return {ctor: 'Existing', _0: a}; -}; -var _Gizra$elm_storage_key$StorageKey$New = {ctor: 'New'}; -var _Gizra$elm_storage_key$StorageKey$isNew = function (storageKey) { - return _elm_lang$core$Native_Utils.eq(storageKey, _Gizra$elm_storage_key$StorageKey$New); -}; -var _Gizra$elm_storage_key$StorageKey$isExisting = function (storageKey) { - return !_Gizra$elm_storage_key$StorageKey$isNew(storageKey); -}; - -var _Gizra$circuit_bid$Backend_CreditRequest_Model$CreditRequest = F4( - function (a, b, c, d) { - return {credit: a, status: b, userUuid: c, userId: d}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$CreditRequestParams = F2( - function (a, b) { - return {saleUuid: a, userUuid: b}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$CreateInfo = F3( - function (a, b, c) { - return {saleUuid: a, userUuid: b, amount: c}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$Rejected = {ctor: 'Rejected'}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$Approved = {ctor: 'Approved'}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$Pending = {ctor: 'Pending'}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$emptyCreditRequest = function (userUuid) { - return {credit: _Gizra$circuit_bid$Amount$None, status: _Gizra$circuit_bid$Backend_CreditRequest_Model$Pending, userUuid: userUuid, userId: _elm_lang$core$Maybe$Nothing}; -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$UpdateStatus = F3( - function (a, b, c) { - return {ctor: 'UpdateStatus', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$SetAmount = F2( - function (a, b) { - return {ctor: 'SetAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$Save = F2( - function (a, b) { - return {ctor: 'Save', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleUpdate = F2( - function (a, b) { - return {ctor: 'HandleUpdate', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleFetch = function (a) { - return {ctor: 'HandleFetch', _0: a}; -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleCreateForPrivileged = F2( - function (a, b) { - return {ctor: 'HandleCreateForPrivileged', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleCreate = function (a) { - return {ctor: 'HandleCreate', _0: a}; -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Model$Fetch = F2( - function (a, b) { - return {ctor: 'Fetch', _0: a, _1: b}; - }); - -var _Gizra$circuit_bid$Message_Model$Message = F2( - function (a, b) { - return {timestamp: a, messageType: b}; - }); -var _Gizra$circuit_bid$Message_Model$MessageId = function (a) { - return {ctor: 'MessageId', _0: a}; -}; -var _Gizra$circuit_bid$Message_Model$SaleUpdateActiveItem = F2( - function (a, b) { - return {ctor: 'SaleUpdateActiveItem', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$ItemUpdate = F2( - function (a, b) { - return {ctor: 'ItemUpdate', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$ClerkPublic = function (a) { - return {ctor: 'ClerkPublic', _0: a}; -}; -var _Gizra$circuit_bid$Message_Model$BidRejectedBellowMinimum = F2( - function (a, b) { - return {ctor: 'BidRejectedBellowMinimum', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidRejectedCreditLimit = F2( - function (a, b) { - return {ctor: 'BidRejectedCreditLimit', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidRejectedBidderMax = F2( - function (a, b) { - return {ctor: 'BidRejectedBidderMax', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidRejected = F2( - function (a, b) { - return {ctor: 'BidRejected', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidOutbid = F2( - function (a, b) { - return {ctor: 'BidOutbid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidDeleted = F2( - function (a, b) { - return {ctor: 'BidDeleted', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidChangedToFloor = F2( - function (a, b) { - return {ctor: 'BidChangedToFloor', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Message_Model$BidAccepted = F2( - function (a, b) { - return {ctor: 'BidAccepted', _0: a, _1: b}; - }); - -var _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest = {ctor: 'NoQueuedRequest'}; -var _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed = function (a) { - return {ctor: 'QueuedRequestFailed', _0: a}; -}; -var _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted = {ctor: 'QueuedRequestCompleted'}; -var _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued = function (a) { - return {ctor: 'QueuedRequestQueued', _0: a}; -}; -var _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent = {ctor: 'QueuedRequestSent'}; - -var _Gizra$circuit_bid$Backend_Session_Model$Session = F6( - function (a, b, c, d, e, f) { - return {name: a, firstItem: b, lastItem: c, delta: d, itemCount: e, batchCount: f}; - }); - -var _Gizra$circuit_bid$Sale_Model$Sale = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return function (m) { - return function (n) { - return function (o) { - return function (p) { - return function (q) { - return function (r) { - return function (s) { - return function (t) { - return function (u) { - return function (v) { - return function (w) { - return function (x) { - return {id: a, label: b, status: c, item: d, session: e, sessions: f, languages: g, baseUrl: h, liveAuctionStart: i, revision: j, site: k, siteShortName: l, siteLabel: m, siteLogoUrl: n, siteBackofficeUrl: o, currentTime: p, currency: q, uuid: r, videoUrl: s, websiteRangeStart: t, websiteRangeEnd: u, pausedMessage: v, autoClerk: w, currenciesInfo: x}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Sale_Model$SaleUpdateData = F6( - function (a, b, c, d, e, f) { - return {label: a, status: b, autoClerk: c, pausedMessage: d, item: e, session: f}; - }); -var _Gizra$circuit_bid$Sale_Model$AutoClerkEnabled = F2( - function (a, b) { - return {ctor: 'AutoClerkEnabled', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Sale_Model$AutoClerkDisabled = {ctor: 'AutoClerkDisabled'}; -var _Gizra$circuit_bid$Sale_Model$ClosedEnded = {ctor: 'ClosedEnded'}; -var _Gizra$circuit_bid$Sale_Model$PausedBackShortly = {ctor: 'PausedBackShortly'}; -var _Gizra$circuit_bid$Sale_Model$LiveAuctionOpen = {ctor: 'LiveAuctionOpen'}; -var _Gizra$circuit_bid$Sale_Model$PausedStartingSoon = {ctor: 'PausedStartingSoon'}; -var _Gizra$circuit_bid$Sale_Model$MailAuctionOpen = {ctor: 'MailAuctionOpen'}; -var _Gizra$circuit_bid$Sale_Model$ClosedNotStarted = {ctor: 'ClosedNotStarted'}; -var _Gizra$circuit_bid$Sale_Model$HandleFetchedSaleTitleFromJson = function (a) { - return {ctor: 'HandleFetchedSaleTitleFromJson', _0: a}; -}; - -var _Gizra$circuit_bid$Pusher_Model$eventNames = { - ctor: '::', - _0: 'bid__delete', - _1: { - ctor: '::', - _0: 'bid__update', - _1: { - ctor: '::', - _0: 'bidder_info__update', - _1: { - ctor: '::', - _0: 'credit_request__create', - _1: { - ctor: '::', - _0: 'credit_request__update', - _1: { - ctor: '::', - _0: 'connected_users__sale__heartbeat', - _1: { - ctor: '::', - _0: 'connected_users__sale__place_bid__mouse_enter', - _1: { - ctor: '::', - _0: 'connected_users__sale__place_bid__mouse_leave', - _1: { - ctor: '::', - _0: 'item__update', - _1: { - ctor: '::', - _0: 'message__create', - _1: { - ctor: '::', - _0: 'sale__update', - _1: { - ctor: '::', - _0: 'livequeue__post_execute', - _1: { - ctor: '::', - _0: 'clerk__sale__queued_bids_update', - _1: { - ctor: '::', - _0: 'clerk__sale__active_to_going_update', - _1: { - ctor: '::', - _0: 'force_reload', - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } -}; -var _Gizra$circuit_bid$Pusher_Model$emptyModel = { - currentChannel: _elm_lang$core$Maybe$Nothing, - errors: {ctor: '[]'} -}; -var _Gizra$circuit_bid$Pusher_Model$Model = F2( - function (a, b) { - return {currentChannel: a, errors: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$PusherConfig = F5( - function (a, b, c, d, e) { - return {key: a, cluster: b, authEndpoint: c, channelNames: d, eventNames: e}; - }); -var _Gizra$circuit_bid$Pusher_Model$PusherError = F2( - function (a, b) { - return {code: a, message: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$PusherAppKey = F2( - function (a, b) { - return {key: a, cluster: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$PusherEvent = function (a) { - return {data: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$ConnectedUserData = F2( - function (a, b) { - return {websiteBidderNumber: a, date: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteData = F2( - function (a, b) { - return {taskId: a, result: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdateData = F2( - function (a, b) { - return {bid: a, nextBid: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$emptyClerkQueuedBidsUpdateData = A2(_Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdateData, _elm_lang$core$Maybe$Nothing, _elm_lang$core$Maybe$Nothing); -var _Gizra$circuit_bid$Pusher_Model$UsEast1 = {ctor: 'UsEast1'}; -var _Gizra$circuit_bid$Pusher_Model$EuWest1 = {ctor: 'EuWest1'}; -var _Gizra$circuit_bid$Pusher_Model$ApSouthEast1 = {ctor: 'ApSouthEast1'}; -var _Gizra$circuit_bid$Pusher_Model$AccessToken = function (a) { - return {ctor: 'AccessToken', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$Privileged = function (a) { - return {ctor: 'Privileged', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$Public = function (a) { - return {ctor: 'Public', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$ChangedToFloor = {ctor: 'ChangedToFloor'}; -var _Gizra$circuit_bid$Pusher_Model$Delete = {ctor: 'Delete'}; -var _Gizra$circuit_bid$Pusher_Model$ClerkActiveToGoingUpdate = {ctor: 'ClerkActiveToGoingUpdate'}; -var _Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdate = function (a) { - return {ctor: 'ClerkQueuedBidsUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecute = function (a) { - return {ctor: 'LiveQueuePostExecute', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$SaleUpdate = function (a) { - return {ctor: 'SaleUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSalePlaceBidMouseLeave = function (a) { - return {ctor: 'ConnectedUsersSalePlaceBidMouseLeave', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSalePlaceBidMouseEnter = function (a) { - return {ctor: 'ConnectedUsersSalePlaceBidMouseEnter', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSaleHeartbeat = function (a) { - return {ctor: 'ConnectedUsersSaleHeartbeat', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$MessageCreate = F2( - function (a, b) { - return {ctor: 'MessageCreate', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$ItemUpdate = F2( - function (a, b) { - return {ctor: 'ItemUpdate', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$CreditRequestUpdate = function (a) { - return {ctor: 'CreditRequestUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$CreditRequestCreate = function (a) { - return {ctor: 'CreditRequestCreate', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$BidderInfoUpdate = function (a) { - return {ctor: 'BidderInfoUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$BidUpdate = F3( - function (a, b, c) { - return {ctor: 'BidUpdate', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pusher_Model$BidDelete = F4( - function (a, b, c, d) { - return {ctor: 'BidDelete', _0: a, _1: b, _2: c, _3: d}; - }); -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleItemFailure = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateSaleItemFailure', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleItemSuccess = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateSaleItemSuccess', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleSessionFailure = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateSaleSessionFailure', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleSessionSuccess = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateSaleSessionSuccess', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateItemStatusFailure = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateItemStatusFailure', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateItemStatusSuccess = function (a) { - return {ctor: 'LiveQueuePostExecuteUpdateItemStatusSuccess', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteLastToFloorFailure = function (a) { - return {ctor: 'LiveQueuePostExecuteLastToFloorFailure', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteLastToFloorSuccess = function (a) { - return {ctor: 'LiveQueuePostExecuteLastToFloorSuccess', _0: a}; -}; -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecutePlaceBidFailure = F2( - function (a, b) { - return {ctor: 'LiveQueuePostExecutePlaceBidFailure', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecutePlaceBidSuccess = F2( - function (a, b) { - return {ctor: 'LiveQueuePostExecutePlaceBidSuccess', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pusher_Model$Logout = {ctor: 'Logout'}; -var _Gizra$circuit_bid$Pusher_Model$Login = F3( - function (a, b, c) { - return {ctor: 'Login', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pusher_Model$HandleError = function (a) { - return {ctor: 'HandleError', _0: a}; -}; - -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidMouseLeave = {ctor: 'PlaceBidMouseLeave'}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidMouseEnter = {ctor: 'PlaceBidMouseEnter'}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$HeartBeat = {ctor: 'HeartBeat'}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$ActiveToGoingUpdate = {ctor: 'ActiveToGoingUpdate'}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate = function (a) { - return {ctor: 'QueuedBidsUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidHover = function (a) { - return {ctor: 'PlaceBidHover', _0: a}; -}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$Present = function (a) { - return {ctor: 'Present', _0: a}; -}; -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$SetStatus = F2( - function (a, b) { - return {ctor: 'SetStatus', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_Model$ProcessConnectedUserStatus = function (a) { - return {ctor: 'ProcessConnectedUserStatus', _0: a}; -}; - -var _Gizra$circuit_bid$Backend_Site_Model$Site = F4( - function (a, b, c, d) { - return {name: a, backofficeUrl: b, currency: c, defaultLanguage: d}; - }); - -var _Gizra$circuit_bid$Backend_Model$emptyModelBackend = {bidderInfo: _eeue56$elm_all_dict$EveryDict$empty, bidderInfoByBidderNumber: _elm_lang$core$Dict$empty, connectedUsers: _eeue56$elm_all_dict$EveryDict$empty, creditRequests: _krisajenkins$remotedata$RemoteData$NotAsked, site: _krisajenkins$remotedata$RemoteData$NotAsked}; -var _Gizra$circuit_bid$Backend_Model$ModelBackend = F5( - function (a, b, c, d, e) { - return {bidderInfo: a, bidderInfoByBidderNumber: b, connectedUsers: c, creditRequests: d, site: e}; - }); -var _Gizra$circuit_bid$Backend_Model$MsgCreditRequest = function (a) { - return {ctor: 'MsgCreditRequest', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Model$MsgConnectedUser = function (a) { - return {ctor: 'MsgConnectedUser', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Model$MsgBidderInfo = function (a) { - return {ctor: 'MsgBidderInfo', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Model$HandleFetchSite = function (a) { - return {ctor: 'HandleFetchSite', _0: a}; -}; -var _Gizra$circuit_bid$Backend_Model$FetchSite = function (a) { - return {ctor: 'FetchSite', _0: a}; -}; - -var _Gizra$circuit_bid$Keen_Model$AppKey = F2( - function (a, b) { - return {projectId: a, writeKey: b}; - }); - -var _Gizra$circuit_bid$Config_Model$Config = F6( - function (a, b, c, d, e, f) { - return {backendUrl: a, name: b, pusherKey: c, debug: d, keen: e, serverless: f}; - }); - -var _Gizra$circuit_bid$Error_Model$Error = F3( - function (a, b, c) { - return {module_: a, location: b, error: c}; - }); -var _Gizra$circuit_bid$Error_Model$Plain = function (a) { - return {ctor: 'Plain', _0: a}; -}; -var _Gizra$circuit_bid$Error_Model$Http = function (a) { - return {ctor: 'Http', _0: a}; -}; - -var _Gizra$circuit_bid$ItemManager_Model$emptyModel = {items: _Gizra$elm_dictlist$EveryDictList$empty, lotMap: _Gizra$elm_dictlist$EveryDictList$empty}; -var _Gizra$circuit_bid$ItemManager_Model$Model = F2( - function (a, b) { - return {items: a, lotMap: b}; - }); -var _Gizra$circuit_bid$ItemManager_Model$LotMap = F2( - function (a, b) { - return {lotId: a, itemId: b}; - }); -var _Gizra$circuit_bid$ItemManager_Model$HandlePusherEvent = function (a) { - return {ctor: 'HandlePusherEvent', _0: a}; -}; -var _Gizra$circuit_bid$ItemManager_Model$HandleFetchedStaticItems = function (a) { - return {ctor: 'HandleFetchedStaticItems', _0: a}; -}; -var _Gizra$circuit_bid$ItemManager_Model$HandleFetchedCalculatedItems = F2( - function (a, b) { - return {ctor: 'HandleFetchedCalculatedItems', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$ItemManager_Model$FetchedStaticItems = function (a) { - return {ctor: 'FetchedStaticItems', _0: a}; -}; -var _Gizra$circuit_bid$ItemManager_Model$FetchOwnCalculatedItems = function (a) { - return {ctor: 'FetchOwnCalculatedItems', _0: a}; -}; -var _Gizra$circuit_bid$ItemManager_Model$FetchCalculatedItems = function (a) { - return {ctor: 'FetchCalculatedItems', _0: a}; -}; -var _Gizra$circuit_bid$ItemManager_Model$FetchAllBySale = function (a) { - return {ctor: 'FetchAllBySale', _0: a}; -}; - -var _Gizra$circuit_bid$User_Model$AuthenticatedUser = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return function (m) { - return {name: a, firstName: b, lastName: c, email: d, phone: e, address: f, references: g, id: h, site: i, uuid: j, status: k, userType: l, websiteBidderInfo: m}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$User_Model$Address = F6( - function (a, b, c, d, e, f) { - return {country: a, addressLine1: b, addressLine2: c, city: d, state: e, zipCode: f}; - }); -var _Gizra$circuit_bid$User_Model$Authenticated = function (a) { - return {ctor: 'Authenticated', _0: a}; -}; -var _Gizra$circuit_bid$User_Model$Anonymous = {ctor: 'Anonymous'}; -var _Gizra$circuit_bid$User_Model$Privileged = {ctor: 'Privileged'}; -var _Gizra$circuit_bid$User_Model$Bidder = {ctor: 'Bidder'}; -var _Gizra$circuit_bid$User_Model$Pending = {ctor: 'Pending'}; -var _Gizra$circuit_bid$User_Model$Active = {ctor: 'Active'}; - -var _Gizra$circuit_bid$Login_Model$LoginForm = F2( - function (a, b) { - return {name: a, pass: b}; - }); -var _Gizra$circuit_bid$Login_Model$emptyModel = { - loginForm: A2(_Gizra$circuit_bid$Login_Model$LoginForm, '', ''), - status: _krisajenkins$remotedata$RemoteData$NotAsked -}; -var _Gizra$circuit_bid$Login_Model$Model = F2( - function (a, b) { - return {loginForm: a, status: b}; - }); -var _Gizra$circuit_bid$Login_Model$SalePage = {ctor: 'SalePage'}; -var _Gizra$circuit_bid$Login_Model$LoginPage = {ctor: 'LoginPage'}; -var _Gizra$circuit_bid$Login_Model$TryLogin = function (a) { - return {ctor: 'TryLogin', _0: a}; -}; -var _Gizra$circuit_bid$Login_Model$SetPassword = function (a) { - return {ctor: 'SetPassword', _0: a}; -}; -var _Gizra$circuit_bid$Login_Model$SetName = function (a) { - return {ctor: 'SetName', _0: a}; -}; -var _Gizra$circuit_bid$Login_Model$HandleFetchedUser = F2( - function (a, b) { - return {ctor: 'HandleFetchedUser', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Login_Model$HandleFetchedAccessToken = function (a) { - return {ctor: 'HandleFetchedAccessToken', _0: a}; -}; - -var _Gizra$circuit_bid$BidderId_Model$BidderId = F8( - function (a, b, c, d, e, f, g, h) { - return {saleUuid: a, userId: b, userName: c, userFirstName: d, userLastName: e, website: f, phone: g, floor: h}; - }); -var _Gizra$circuit_bid$BidderId_Model$InvalidRange = {ctor: 'InvalidRange'}; -var _Gizra$circuit_bid$BidderId_Model$NotDigits = {ctor: 'NotDigits'}; -var _Gizra$circuit_bid$BidderId_Model$NoInput = {ctor: 'NoInput'}; - -var _elm_lang$dom$Native_Dom = function() { - -var fakeNode = { - addEventListener: function() {}, - removeEventListener: function() {} -}; - -var onDocument = on(typeof document !== 'undefined' ? document : fakeNode); -var onWindow = on(typeof window !== 'undefined' ? window : fakeNode); - -function on(node) -{ - return function(eventName, decoder, toTask) - { - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) { - - function performTask(event) - { - var result = A2(_elm_lang$core$Json_Decode$decodeValue, decoder, event); - if (result.ctor === 'Ok') - { - _elm_lang$core$Native_Scheduler.rawSpawn(toTask(result._0)); - } - } - - node.addEventListener(eventName, performTask); - - return function() - { - node.removeEventListener(eventName, performTask); - }; - }); - }; -} - -var rAF = typeof requestAnimationFrame !== 'undefined' - ? requestAnimationFrame - : function(callback) { callback(); }; - -function withNode(id, doStuff) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - rAF(function() - { - var node = document.getElementById(id); - if (node === null) - { - callback(_elm_lang$core$Native_Scheduler.fail({ ctor: 'NotFound', _0: id })); - return; - } - callback(_elm_lang$core$Native_Scheduler.succeed(doStuff(node))); - }); - }); -} - - -// FOCUS - -function focus(id) -{ - return withNode(id, function(node) { - node.focus(); - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - -function blur(id) -{ - return withNode(id, function(node) { - node.blur(); - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - - -// SCROLLING - -function getScrollTop(id) -{ - return withNode(id, function(node) { - return node.scrollTop; - }); -} - -function setScrollTop(id, desiredScrollTop) -{ - return withNode(id, function(node) { - node.scrollTop = desiredScrollTop; - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - -function toBottom(id) -{ - return withNode(id, function(node) { - node.scrollTop = node.scrollHeight; - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - -function getScrollLeft(id) -{ - return withNode(id, function(node) { - return node.scrollLeft; - }); -} - -function setScrollLeft(id, desiredScrollLeft) -{ - return withNode(id, function(node) { - node.scrollLeft = desiredScrollLeft; - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - -function toRight(id) -{ - return withNode(id, function(node) { - node.scrollLeft = node.scrollWidth; - return _elm_lang$core$Native_Utils.Tuple0; - }); -} - - -// SIZE - -function width(options, id) -{ - return withNode(id, function(node) { - switch (options.ctor) - { - case 'Content': - return node.scrollWidth; - case 'VisibleContent': - return node.clientWidth; - case 'VisibleContentWithBorders': - return node.offsetWidth; - case 'VisibleContentWithBordersAndMargins': - var rect = node.getBoundingClientRect(); - return rect.right - rect.left; - } - }); -} - -function height(options, id) -{ - return withNode(id, function(node) { - switch (options.ctor) - { - case 'Content': - return node.scrollHeight; - case 'VisibleContent': - return node.clientHeight; - case 'VisibleContentWithBorders': - return node.offsetHeight; - case 'VisibleContentWithBordersAndMargins': - var rect = node.getBoundingClientRect(); - return rect.bottom - rect.top; - } - }); -} - -return { - onDocument: F3(onDocument), - onWindow: F3(onWindow), - - focus: focus, - blur: blur, - - getScrollTop: getScrollTop, - setScrollTop: F2(setScrollTop), - getScrollLeft: getScrollLeft, - setScrollLeft: F2(setScrollLeft), - toBottom: toBottom, - toRight: toRight, - - height: F2(height), - width: F2(width) -}; - -}(); - -var _elm_lang$dom$Dom$blur = _elm_lang$dom$Native_Dom.blur; -var _elm_lang$dom$Dom$focus = _elm_lang$dom$Native_Dom.focus; -var _elm_lang$dom$Dom$NotFound = function (a) { - return {ctor: 'NotFound', _0: a}; -}; - -var _elm_lang$dom$Dom_LowLevel$onWindow = _elm_lang$dom$Native_Dom.onWindow; -var _elm_lang$dom$Dom_LowLevel$onDocument = _elm_lang$dom$Native_Dom.onDocument; - -var _elm_lang$core$Process$kill = _elm_lang$core$Native_Scheduler.kill; -var _elm_lang$core$Process$sleep = _elm_lang$core$Native_Scheduler.sleep; -var _elm_lang$core$Process$spawn = _elm_lang$core$Native_Scheduler.spawn; - -var _elm_lang$keyboard$Keyboard$onSelfMsg = F3( - function (router, _p0, state) { - var _p1 = _p0; - var _p2 = A2(_elm_lang$core$Dict$get, _p1.category, state); - if (_p2.ctor === 'Nothing') { - return _elm_lang$core$Task$succeed(state); - } else { - var send = function (tagger) { - return A2( - _elm_lang$core$Platform$sendToApp, - router, - tagger(_p1.keyCode)); - }; - return A2( - _elm_lang$core$Task$andThen, - function (_p3) { - return _elm_lang$core$Task$succeed(state); - }, - _elm_lang$core$Task$sequence( - A2(_elm_lang$core$List$map, send, _p2._0.taggers))); - } - }); -var _elm_lang$keyboard$Keyboard_ops = _elm_lang$keyboard$Keyboard_ops || {}; -_elm_lang$keyboard$Keyboard_ops['&>'] = F2( - function (task1, task2) { - return A2( - _elm_lang$core$Task$andThen, - function (_p4) { - return task2; - }, - task1); - }); -var _elm_lang$keyboard$Keyboard$init = _elm_lang$core$Task$succeed(_elm_lang$core$Dict$empty); -var _elm_lang$keyboard$Keyboard$categorizeHelpHelp = F2( - function (value, maybeValues) { - var _p5 = maybeValues; - if (_p5.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Just( - { - ctor: '::', - _0: value, - _1: {ctor: '[]'} - }); - } else { - return _elm_lang$core$Maybe$Just( - {ctor: '::', _0: value, _1: _p5._0}); - } - }); -var _elm_lang$keyboard$Keyboard$categorizeHelp = F2( - function (subs, subDict) { - categorizeHelp: - while (true) { - var _p6 = subs; - if (_p6.ctor === '[]') { - return subDict; - } else { - var _v4 = _p6._1, - _v5 = A3( - _elm_lang$core$Dict$update, - _p6._0._0, - _elm_lang$keyboard$Keyboard$categorizeHelpHelp(_p6._0._1), - subDict); - subs = _v4; - subDict = _v5; - continue categorizeHelp; - } - } - }); -var _elm_lang$keyboard$Keyboard$categorize = function (subs) { - return A2(_elm_lang$keyboard$Keyboard$categorizeHelp, subs, _elm_lang$core$Dict$empty); -}; -var _elm_lang$keyboard$Keyboard$keyCode = A2(_elm_lang$core$Json_Decode$field, 'keyCode', _elm_lang$core$Json_Decode$int); -var _elm_lang$keyboard$Keyboard$subscription = _elm_lang$core$Native_Platform.leaf('Keyboard'); -var _elm_lang$keyboard$Keyboard$Watcher = F2( - function (a, b) { - return {taggers: a, pid: b}; - }); -var _elm_lang$keyboard$Keyboard$Msg = F2( - function (a, b) { - return {category: a, keyCode: b}; - }); -var _elm_lang$keyboard$Keyboard$onEffects = F3( - function (router, newSubs, oldState) { - var rightStep = F3( - function (category, taggers, task) { - return A2( - _elm_lang$core$Task$andThen, - function (state) { - return A2( - _elm_lang$core$Task$andThen, - function (pid) { - return _elm_lang$core$Task$succeed( - A3( - _elm_lang$core$Dict$insert, - category, - A2(_elm_lang$keyboard$Keyboard$Watcher, taggers, pid), - state)); - }, - _elm_lang$core$Process$spawn( - A3( - _elm_lang$dom$Dom_LowLevel$onDocument, - category, - _elm_lang$keyboard$Keyboard$keyCode, - function (_p7) { - return A2( - _elm_lang$core$Platform$sendToSelf, - router, - A2(_elm_lang$keyboard$Keyboard$Msg, category, _p7)); - }))); - }, - task); - }); - var bothStep = F4( - function (category, _p8, taggers, task) { - var _p9 = _p8; - return A2( - _elm_lang$core$Task$map, - A2( - _elm_lang$core$Dict$insert, - category, - A2(_elm_lang$keyboard$Keyboard$Watcher, taggers, _p9.pid)), - task); - }); - var leftStep = F3( - function (category, _p10, task) { - var _p11 = _p10; - return A2( - _elm_lang$keyboard$Keyboard_ops['&>'], - _elm_lang$core$Process$kill(_p11.pid), - task); - }); - return A6( - _elm_lang$core$Dict$merge, - leftStep, - bothStep, - rightStep, - oldState, - _elm_lang$keyboard$Keyboard$categorize(newSubs), - _elm_lang$core$Task$succeed(_elm_lang$core$Dict$empty)); - }); -var _elm_lang$keyboard$Keyboard$MySub = F2( - function (a, b) { - return {ctor: 'MySub', _0: a, _1: b}; - }); -var _elm_lang$keyboard$Keyboard$presses = function (tagger) { - return _elm_lang$keyboard$Keyboard$subscription( - A2(_elm_lang$keyboard$Keyboard$MySub, 'keypress', tagger)); -}; -var _elm_lang$keyboard$Keyboard$downs = function (tagger) { - return _elm_lang$keyboard$Keyboard$subscription( - A2(_elm_lang$keyboard$Keyboard$MySub, 'keydown', tagger)); -}; -var _elm_lang$keyboard$Keyboard$ups = function (tagger) { - return _elm_lang$keyboard$Keyboard$subscription( - A2(_elm_lang$keyboard$Keyboard$MySub, 'keyup', tagger)); -}; -var _elm_lang$keyboard$Keyboard$subMap = F2( - function (func, _p12) { - var _p13 = _p12; - return A2( - _elm_lang$keyboard$Keyboard$MySub, - _p13._0, - function (_p14) { - return func( - _p13._1(_p14)); - }); - }); -_elm_lang$core$Native_Platform.effectManagers['Keyboard'] = {pkg: 'elm-lang/keyboard', init: _elm_lang$keyboard$Keyboard$init, onEffects: _elm_lang$keyboard$Keyboard$onEffects, onSelfMsg: _elm_lang$keyboard$Keyboard$onSelfMsg, tag: 'sub', subMap: _elm_lang$keyboard$Keyboard$subMap}; - -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$toChar = function (key) { - var _p0 = key; - switch (_p0.ctor) { - case 'Spacebar': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr(' ')); - case 'Zero': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('0')); - case 'One': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('1')); - case 'Two': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('2')); - case 'Three': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('3')); - case 'Four': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('4')); - case 'Five': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('5')); - case 'Six': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('6')); - case 'Seven': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('7')); - case 'Eight': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('8')); - case 'Nine': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('9')); - case 'A': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('A')); - case 'B': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('B')); - case 'C': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('C')); - case 'D': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('D')); - case 'E': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('E')); - case 'F': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('F')); - case 'G': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('G')); - case 'H': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('H')); - case 'I': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('I')); - case 'J': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('J')); - case 'K': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('K')); - case 'L': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('L')); - case 'M': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('M')); - case 'N': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('N')); - case 'O': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('O')); - case 'P': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('P')); - case 'Q': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('Q')); - case 'R': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('R')); - case 'S': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('S')); - case 'T': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('T')); - case 'U': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('U')); - case 'V': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('V')); - case 'W': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('W')); - case 'X': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('X')); - case 'Y': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('Y')); - case 'Z': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('Z')); - case 'NumpadZero': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('0')); - case 'NumpadOne': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('1')); - case 'NumpadTwo': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('2')); - case 'NumpadThree': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('3')); - case 'NumpadFour': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('4')); - case 'NumpadFive': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('5')); - case 'NumpadSix': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('6')); - case 'NumpadSeven': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('7')); - case 'NumpadEight': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('8')); - case 'NumpadNine': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('9')); - case 'Multiply': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('*')); - case 'Add': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('+')); - case 'Subtract': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('-')); - case 'Divide': - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Native_Utils.chr('/')); - default: - return _elm_lang$core$Maybe$Nothing; - } -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Unknown = function (a) { - return {ctor: 'Unknown', _0: a}; -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Ambiguous = function (a) { - return {ctor: 'Ambiguous', _0: a}; -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Divide = {ctor: 'Divide'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Decimal = {ctor: 'Decimal'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Subtract = {ctor: 'Subtract'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Add = {ctor: 'Add'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Multiply = {ctor: 'Multiply'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadNine = {ctor: 'NumpadNine'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadEight = {ctor: 'NumpadEight'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadSeven = {ctor: 'NumpadSeven'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadSix = {ctor: 'NumpadSix'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadFive = {ctor: 'NumpadFive'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadFour = {ctor: 'NumpadFour'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadThree = {ctor: 'NumpadThree'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadTwo = {ctor: 'NumpadTwo'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadOne = {ctor: 'NumpadOne'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadZero = {ctor: 'NumpadZero'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F12 = {ctor: 'F12'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F11 = {ctor: 'F11'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F10 = {ctor: 'F10'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F9 = {ctor: 'F9'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F8 = {ctor: 'F8'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F7 = {ctor: 'F7'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F6 = {ctor: 'F6'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F5 = {ctor: 'F5'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F4 = {ctor: 'F4'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F3 = {ctor: 'F3'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F2 = {ctor: 'F2'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F1 = {ctor: 'F1'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$ScrollLock = {ctor: 'ScrollLock'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumLock = {ctor: 'NumLock'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$ChromeSearch = {ctor: 'ChromeSearch'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Command = {ctor: 'Command'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Windows = {ctor: 'Windows'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$code = function (key) { - var _p1 = key; - switch (_p1.ctor) { - case 'Backspace': - return _elm_lang$core$Maybe$Just(8); - case 'Tab': - return _elm_lang$core$Maybe$Just(9); - case 'Enter': - return _elm_lang$core$Maybe$Just(13); - case 'Shift': - return _elm_lang$core$Maybe$Just(16); - case 'Ctrl': - return _elm_lang$core$Maybe$Just(17); - case 'Alt': - return _elm_lang$core$Maybe$Just(18); - case 'PauseBreak': - return _elm_lang$core$Maybe$Just(19); - case 'CapsLock': - return _elm_lang$core$Maybe$Just(20); - case 'Escape': - return _elm_lang$core$Maybe$Just(27); - case 'Spacebar': - return _elm_lang$core$Maybe$Just(32); - case 'PageUp': - return _elm_lang$core$Maybe$Just(33); - case 'PageDown': - return _elm_lang$core$Maybe$Just(34); - case 'End': - return _elm_lang$core$Maybe$Just(35); - case 'Home': - return _elm_lang$core$Maybe$Just(36); - case 'Left': - return _elm_lang$core$Maybe$Just(37); - case 'Up': - return _elm_lang$core$Maybe$Just(38); - case 'Right': - return _elm_lang$core$Maybe$Just(39); - case 'Down': - return _elm_lang$core$Maybe$Just(40); - case 'PrintScreen': - return _elm_lang$core$Maybe$Just(44); - case 'Insert': - return _elm_lang$core$Maybe$Just(45); - case 'Delete': - return _elm_lang$core$Maybe$Just(46); - case 'Zero': - return _elm_lang$core$Maybe$Just(48); - case 'One': - return _elm_lang$core$Maybe$Just(49); - case 'Two': - return _elm_lang$core$Maybe$Just(50); - case 'Three': - return _elm_lang$core$Maybe$Just(51); - case 'Four': - return _elm_lang$core$Maybe$Just(52); - case 'Five': - return _elm_lang$core$Maybe$Just(53); - case 'Six': - return _elm_lang$core$Maybe$Just(54); - case 'Seven': - return _elm_lang$core$Maybe$Just(55); - case 'Eight': - return _elm_lang$core$Maybe$Just(56); - case 'Nine': - return _elm_lang$core$Maybe$Just(57); - case 'A': - return _elm_lang$core$Maybe$Just(65); - case 'B': - return _elm_lang$core$Maybe$Just(66); - case 'C': - return _elm_lang$core$Maybe$Just(67); - case 'D': - return _elm_lang$core$Maybe$Just(68); - case 'E': - return _elm_lang$core$Maybe$Just(69); - case 'F': - return _elm_lang$core$Maybe$Just(70); - case 'G': - return _elm_lang$core$Maybe$Just(71); - case 'H': - return _elm_lang$core$Maybe$Just(72); - case 'I': - return _elm_lang$core$Maybe$Just(73); - case 'J': - return _elm_lang$core$Maybe$Just(74); - case 'K': - return _elm_lang$core$Maybe$Just(75); - case 'L': - return _elm_lang$core$Maybe$Just(76); - case 'M': - return _elm_lang$core$Maybe$Just(77); - case 'N': - return _elm_lang$core$Maybe$Just(78); - case 'O': - return _elm_lang$core$Maybe$Just(79); - case 'P': - return _elm_lang$core$Maybe$Just(80); - case 'Q': - return _elm_lang$core$Maybe$Just(81); - case 'R': - return _elm_lang$core$Maybe$Just(82); - case 'S': - return _elm_lang$core$Maybe$Just(83); - case 'T': - return _elm_lang$core$Maybe$Just(84); - case 'U': - return _elm_lang$core$Maybe$Just(85); - case 'V': - return _elm_lang$core$Maybe$Just(86); - case 'W': - return _elm_lang$core$Maybe$Just(87); - case 'X': - return _elm_lang$core$Maybe$Just(88); - case 'Y': - return _elm_lang$core$Maybe$Just(89); - case 'Z': - return _elm_lang$core$Maybe$Just(90); - case 'Ambiguous': - return A2( - _elm_lang$core$List$all, - A2( - _elm_lang$core$Basics$flip, - _elm_lang$core$List$member, - { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$Windows, - _1: { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$Command, - _1: { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$ChromeSearch, - _1: {ctor: '[]'} - } - } - }), - _p1._0) ? _elm_lang$core$Maybe$Just(91) : _elm_lang$core$Maybe$Nothing; - case 'Windows': - return _elm_lang$core$Maybe$Just(91); - case 'Command': - return _elm_lang$core$Maybe$Just(91); - case 'ChromeSearch': - return _elm_lang$core$Maybe$Just(91); - case 'NumpadZero': - return _elm_lang$core$Maybe$Just(96); - case 'NumpadOne': - return _elm_lang$core$Maybe$Just(97); - case 'NumpadTwo': - return _elm_lang$core$Maybe$Just(98); - case 'NumpadThree': - return _elm_lang$core$Maybe$Just(99); - case 'NumpadFour': - return _elm_lang$core$Maybe$Just(100); - case 'NumpadFive': - return _elm_lang$core$Maybe$Just(101); - case 'NumpadSix': - return _elm_lang$core$Maybe$Just(102); - case 'NumpadSeven': - return _elm_lang$core$Maybe$Just(103); - case 'NumpadEight': - return _elm_lang$core$Maybe$Just(104); - case 'NumpadNine': - return _elm_lang$core$Maybe$Just(105); - case 'Multiply': - return _elm_lang$core$Maybe$Just(106); - case 'Add': - return _elm_lang$core$Maybe$Just(107); - case 'Subtract': - return _elm_lang$core$Maybe$Just(109); - case 'Decimal': - return _elm_lang$core$Maybe$Just(110); - case 'Divide': - return _elm_lang$core$Maybe$Just(111); - case 'F1': - return _elm_lang$core$Maybe$Just(112); - case 'F2': - return _elm_lang$core$Maybe$Just(113); - case 'F3': - return _elm_lang$core$Maybe$Just(114); - case 'F4': - return _elm_lang$core$Maybe$Just(115); - case 'F5': - return _elm_lang$core$Maybe$Just(116); - case 'F6': - return _elm_lang$core$Maybe$Just(117); - case 'F7': - return _elm_lang$core$Maybe$Just(118); - case 'F8': - return _elm_lang$core$Maybe$Just(119); - case 'F9': - return _elm_lang$core$Maybe$Just(120); - case 'F10': - return _elm_lang$core$Maybe$Just(121); - case 'F11': - return _elm_lang$core$Maybe$Just(122); - case 'F12': - return _elm_lang$core$Maybe$Just(123); - case 'NumLock': - return _elm_lang$core$Maybe$Just(144); - case 'ScrollLock': - return _elm_lang$core$Maybe$Just(145); - default: - return _elm_lang$core$Maybe$Nothing; - } -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$PauseBreak = {ctor: 'PauseBreak'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$PrintScreen = {ctor: 'PrintScreen'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Insert = {ctor: 'Insert'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Nine = {ctor: 'Nine'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Eight = {ctor: 'Eight'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Seven = {ctor: 'Seven'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Six = {ctor: 'Six'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Five = {ctor: 'Five'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Four = {ctor: 'Four'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Three = {ctor: 'Three'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Two = {ctor: 'Two'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$One = {ctor: 'One'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Zero = {ctor: 'Zero'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Home = {ctor: 'Home'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$End = {ctor: 'End'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$PageDown = {ctor: 'PageDown'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$PageUp = {ctor: 'PageUp'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Delete = {ctor: 'Delete'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Backspace = {ctor: 'Backspace'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Enter = {ctor: 'Enter'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Escape = {ctor: 'Escape'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Spacebar = {ctor: 'Spacebar'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$CapsLock = {ctor: 'CapsLock'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Tab = {ctor: 'Tab'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Alt = {ctor: 'Alt'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Ctrl = function (a) { - return {ctor: 'Ctrl', _0: a}; -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Shift = function (a) { - return {ctor: 'Shift', _0: a}; -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Down = {ctor: 'Down'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Up = {ctor: 'Up'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Right = {ctor: 'Right'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Left = {ctor: 'Left'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Z = {ctor: 'Z'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Y = {ctor: 'Y'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$X = {ctor: 'X'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$W = {ctor: 'W'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$V = {ctor: 'V'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$U = {ctor: 'U'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$T = {ctor: 'T'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$S = {ctor: 'S'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$R = {ctor: 'R'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$Q = {ctor: 'Q'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$P = {ctor: 'P'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$O = {ctor: 'O'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$N = {ctor: 'N'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$M = {ctor: 'M'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$L = {ctor: 'L'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$K = {ctor: 'K'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$J = {ctor: 'J'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$I = {ctor: 'I'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$H = {ctor: 'H'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$G = {ctor: 'G'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$F = {ctor: 'F'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$E = {ctor: 'E'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$D = {ctor: 'D'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$C = {ctor: 'C'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$B = {ctor: 'B'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$A = {ctor: 'A'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$fromCode = function (code) { - var _p2 = code; - switch (_p2) { - case 8: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Backspace; - case 9: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Tab; - case 13: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Enter; - case 16: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Shift(_elm_lang$core$Maybe$Nothing); - case 17: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Ctrl(_elm_lang$core$Maybe$Nothing); - case 18: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Alt; - case 19: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$PauseBreak; - case 20: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$CapsLock; - case 27: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Escape; - case 32: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Spacebar; - case 33: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$PageUp; - case 34: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$PageDown; - case 35: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$End; - case 36: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Home; - case 37: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Left; - case 38: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Up; - case 39: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Right; - case 40: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Down; - case 44: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$PrintScreen; - case 45: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Insert; - case 46: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Delete; - case 48: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Zero; - case 49: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$One; - case 50: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Two; - case 51: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Three; - case 52: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Four; - case 53: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Five; - case 54: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Six; - case 55: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Seven; - case 56: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Eight; - case 57: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Nine; - case 65: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$A; - case 66: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$B; - case 67: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$C; - case 68: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$D; - case 69: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$E; - case 70: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F; - case 71: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$G; - case 72: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$H; - case 73: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$I; - case 74: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$J; - case 75: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$K; - case 76: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$L; - case 77: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$M; - case 78: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$N; - case 79: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$O; - case 80: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$P; - case 81: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Q; - case 82: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$R; - case 83: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$S; - case 84: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$T; - case 85: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$U; - case 86: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$V; - case 87: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$W; - case 88: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$X; - case 89: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Y; - case 90: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Z; - case 91: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Ambiguous( - { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$Windows, - _1: { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$Command, - _1: { - ctor: '::', - _0: _SwiftsNamesake$proper_keyboard$Keyboard_Key$ChromeSearch, - _1: {ctor: '[]'} - } - } - }); - case 96: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadZero; - case 97: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadOne; - case 98: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadTwo; - case 99: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadThree; - case 100: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadFour; - case 101: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadFive; - case 102: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadSix; - case 103: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadSeven; - case 104: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadEight; - case 105: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumpadNine; - case 106: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Multiply; - case 107: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Add; - case 109: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Subtract; - case 110: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Decimal; - case 111: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Divide; - case 112: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F1; - case 113: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F2; - case 114: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F3; - case 115: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F4; - case 116: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F5; - case 117: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F6; - case 118: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F7; - case 119: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F8; - case 120: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F9; - case 121: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F10; - case 122: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F11; - case 123: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$F12; - case 144: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$NumLock; - case 145: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$ScrollLock; - default: - return _SwiftsNamesake$proper_keyboard$Keyboard_Key$Unknown(code); - } -}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$RightHand = {ctor: 'RightHand'}; -var _SwiftsNamesake$proper_keyboard$Keyboard_Key$LeftHand = {ctor: 'LeftHand'}; - -var _Gizra$elm_keyboard_event$Keyboard_Event$decodeKey = _elm_lang$core$Json_Decode$maybe( - A2( - _elm_lang$core$Json_Decode$andThen, - function (key) { - return _elm_lang$core$String$isEmpty(key) ? _elm_lang$core$Json_Decode$fail('empty key') : _elm_lang$core$Json_Decode$succeed(key); - }, - A2(_elm_lang$core$Json_Decode$field, 'key', _elm_lang$core$Json_Decode$string))); -var _Gizra$elm_keyboard_event$Keyboard_Event$decodeNonZero = A2( - _elm_lang$core$Json_Decode$andThen, - function (code) { - return _elm_lang$core$Native_Utils.eq(code, 0) ? _elm_lang$core$Json_Decode$fail('code was zero') : _elm_lang$core$Json_Decode$succeed(code); - }, - _elm_lang$core$Json_Decode$int); -var _Gizra$elm_keyboard_event$Keyboard_Event$decodeKeyCode = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'keyCode', _Gizra$elm_keyboard_event$Keyboard_Event$decodeNonZero), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'which', _Gizra$elm_keyboard_event$Keyboard_Event$decodeNonZero), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'charCode', _Gizra$elm_keyboard_event$Keyboard_Event$decodeNonZero), - _1: { - ctor: '::', - _0: _elm_lang$core$Json_Decode$succeed(0), - _1: {ctor: '[]'} - } - } - } - }); -var _Gizra$elm_keyboard_event$Keyboard_Event$KeyboardEvent = F7( - function (a, b, c, d, e, f, g) { - return {altKey: a, ctrlKey: b, key: c, keyCode: d, metaKey: e, repeat: f, shiftKey: g}; - }); -var _Gizra$elm_keyboard_event$Keyboard_Event$decodeKeyboardEvent = A8( - _elm_lang$core$Json_Decode$map7, - _Gizra$elm_keyboard_event$Keyboard_Event$KeyboardEvent, - A2(_elm_lang$core$Json_Decode$field, 'altKey', _elm_lang$core$Json_Decode$bool), - A2(_elm_lang$core$Json_Decode$field, 'ctrlKey', _elm_lang$core$Json_Decode$bool), - _Gizra$elm_keyboard_event$Keyboard_Event$decodeKey, - A2(_elm_lang$core$Json_Decode$map, _SwiftsNamesake$proper_keyboard$Keyboard_Key$fromCode, _Gizra$elm_keyboard_event$Keyboard_Event$decodeKeyCode), - A2(_elm_lang$core$Json_Decode$field, 'metaKey', _elm_lang$core$Json_Decode$bool), - A2(_elm_lang$core$Json_Decode$field, 'repeat', _elm_lang$core$Json_Decode$bool), - A2(_elm_lang$core$Json_Decode$field, 'shiftKey', _elm_lang$core$Json_Decode$bool)); -var _Gizra$elm_keyboard_event$Keyboard_Event$considerKeyboardEvent = function (func) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (event) { - var _p0 = func(event); - if (_p0.ctor === 'Just') { - return _elm_lang$core$Json_Decode$succeed(_p0._0); - } else { - return _elm_lang$core$Json_Decode$fail('Ignoring keyboard event'); - } - }, - _Gizra$elm_keyboard_event$Keyboard_Event$decodeKeyboardEvent); -}; - -var _Gizra$circuit_bid$Pages_Clerk_Model$emptyModel = { - queuedBids: _eeue56$elm_all_dict$EveryDict$empty, - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest, - manualStepInput: _elm_lang$core$Maybe$Nothing, - customBidInput: _elm_lang$core$Maybe$Nothing, - editableBidderIds: _eeue56$elm_all_dict$EveryDict$empty, - floorBidBeingPlaced: _elm_lang$core$Maybe$Nothing, - item: _Gizra$circuit_bid$ItemManager_Model$emptyModel, - queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest, - queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest, - openingPriceForm: _elm_lang$core$Maybe$Nothing, - publicMessages: _krisajenkins$remotedata$RemoteData$NotAsked, - pausedMessageInput: _Gizra$elm_editable_webdata$Editable_WebData$create(''), - sale: _krisajenkins$remotedata$RemoteData$NotAsked, - publicMessageInput: '', - publicMessagesSendRequest: _krisajenkins$remotedata$RemoteData$NotAsked, - currentItemSelection: _elm_lang$core$Maybe$Nothing, - itemChangeRequest: _krisajenkins$remotedata$RemoteData$NotAsked, - currentSessionSelection: _elm_lang$core$Maybe$Nothing, - queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$Model = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return function (m) { - return function (n) { - return function (o) { - return function (p) { - return function (q) { - return function (r) { - return function (s) { - return {queuedBids: a, queuedBidRequestState: b, manualStepInput: c, customBidInput: d, editableBidderIds: e, floorBidBeingPlaced: f, item: g, queuedItemUpdateRequestState: h, queuedSetToFloorRequestState: i, openingPriceForm: j, publicMessages: k, pausedMessageInput: l, sale: m, publicMessageInput: n, publicMessagesSendRequest: o, currentItemSelection: p, itemChangeRequest: q, currentSessionSelection: r, queuedSaleUpdateRequestState: s}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$CustomBid = {ctor: 'CustomBid'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$NextBid = {ctor: 'NextBid'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$UpdateCreditRequestStatus = F3( - function (a, b, c) { - return {ctor: 'UpdateCreditRequestStatus', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleKeyboardEvent = F2( - function (a, b) { - return {ctor: 'HandleKeyboardEvent', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$Subscribe = function (a) { - return {ctor: 'Subscribe', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SubmitPublicMessage = {ctor: 'SubmitPublicMessage'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SubmitPausedMessage = {ctor: 'SubmitPausedMessage'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetSaleStatus = F2( - function (a, b) { - return {ctor: 'SetSaleStatus', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetPublicMessageInput = function (a) { - return {ctor: 'SetPublicMessageInput', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetPausedMessage = function (a) { - return {ctor: 'SetPausedMessage', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetEditableItemStatus = F3( - function (a, b, c) { - return {ctor: 'SetEditableItemStatus', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentSessionSelection = function (a) { - return {ctor: 'SetCurrentSessionSelection', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentSession = F2( - function (a, b) { - return {ctor: 'SetCurrentSession', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentItemSelection = function (a) { - return {ctor: 'SetCurrentItemSelection', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentItem = F2( - function (a, b) { - return {ctor: 'SetCurrentItem', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetClosedItemBidUnderExtension = F3( - function (a, b, c) { - return {ctor: 'SetClosedItemBidUnderExtension', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetBidStepInput = function (a) { - return {ctor: 'SetBidStepInput', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetBidStep = F2( - function (a, b) { - return {ctor: 'SetBidStep', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$SetAutoClerkStatus = F2( - function (a, b) { - return {ctor: 'SetAutoClerkStatus', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$ProcessSubscriptions = function (a) { - return {ctor: 'ProcessSubscriptions', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$PlaceFloorBid = F4( - function (a, b, c, d) { - return {ctor: 'PlaceFloorBid', _0: a, _1: b, _2: c, _3: d}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceStart = {ctor: 'OpeningPriceStart'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceSave = function (a) { - return {ctor: 'OpeningPriceSave', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceEdit = function (a) { - return {ctor: 'OpeningPriceEdit', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceCancel = {ctor: 'OpeningPriceCancel'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$MsgItemManager = function (a) { - return {ctor: 'MsgItemManager', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$SetItemLastToFloor = F2( - function (a, b) { - return {ctor: 'SetItemLastToFloor', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandlePusherEvent = function (a) { - return {ctor: 'HandlePusherEvent', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleUndeletedBid = F3( - function (a, b, c) { - return {ctor: 'HandleUndeletedBid', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleDeletedBid = function (a) { - return {ctor: 'HandleDeletedBid', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedWinningBidder = F3( - function (a, b, c) { - return {ctor: 'HandleUpdatedWinningBidder', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedUnderExtension = F3( - function (a, b, c) { - return {ctor: 'HandleUpdatedUnderExtension', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedItem = function (a) { - return {ctor: 'HandleUpdatedItem', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedCurrentPrice = F2( - function (a, b) { - return {ctor: 'HandleUpdatedCurrentPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleSubmitedPublicMessage = function (a) { - return {ctor: 'HandleSubmitedPublicMessage', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleSetSale = function (a) { - return {ctor: 'HandleSetSale', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleLastToFloorQueued = function (a) { - return {ctor: 'HandleLastToFloorQueued', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleItemUpdateQueued = function (a) { - return {ctor: 'HandleItemUpdateQueued', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleSaleUpdateQueued = function (a) { - return {ctor: 'HandleSaleUpdateQueued', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleFetchedSale = function (a) { - return {ctor: 'HandleFetchedSale', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleFetchedMessages = function (a) { - return {ctor: 'HandleFetchedMessages', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleBidPlaced = F3( - function (a, b, c) { - return {ctor: 'HandleBidPlaced', _0: a, _1: b, _2: c}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$HandleClerkEvent = function (a) { - return {ctor: 'HandleClerkEvent', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$FocusResult = function (a) { - return {ctor: 'FocusResult', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder = F2( - function (a, b) { - return {ctor: 'EditWinningBidder', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$UndeleteBid = F2( - function (a, b) { - return {ctor: 'UndeleteBid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$DeleteBid = F2( - function (a, b) { - return {ctor: 'DeleteBid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Clerk_Model$CustomBidAmountUpdate = function (a) { - return {ctor: 'CustomBidAmountUpdate', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$Save = {ctor: 'Save'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$Cancel = {ctor: 'Cancel'}; -var _Gizra$circuit_bid$Pages_Clerk_Model$Update = function (a) { - return {ctor: 'Update', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Clerk_Model$Start = function (a) { - return {ctor: 'Start', _0: a}; -}; - -var _debois$elm_dom$DOM$className = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'className', - _1: {ctor: '[]'} - }, - _elm_lang$core$Json_Decode$string); -var _debois$elm_dom$DOM$scrollTop = A2(_elm_lang$core$Json_Decode$field, 'scrollTop', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$scrollLeft = A2(_elm_lang$core$Json_Decode$field, 'scrollLeft', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$offsetTop = A2(_elm_lang$core$Json_Decode$field, 'offsetTop', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$offsetLeft = A2(_elm_lang$core$Json_Decode$field, 'offsetLeft', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$offsetHeight = A2(_elm_lang$core$Json_Decode$field, 'offsetHeight', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$offsetWidth = A2(_elm_lang$core$Json_Decode$field, 'offsetWidth', _elm_lang$core$Json_Decode$float); -var _debois$elm_dom$DOM$childNodes = function (decoder) { - var loop = F2( - function (idx, xs) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (_p0) { - return A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Json_Decode$succeed(xs), - A2( - _elm_lang$core$Maybe$map, - function (x) { - return A2( - loop, - idx + 1, - {ctor: '::', _0: x, _1: xs}); - }, - _p0)); - }, - _elm_lang$core$Json_Decode$maybe( - A2( - _elm_lang$core$Json_Decode$field, - _elm_lang$core$Basics$toString(idx), - decoder))); - }); - return A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$List$reverse, - A2( - _elm_lang$core$Json_Decode$field, - 'childNodes', - A2( - loop, - 0, - {ctor: '[]'}))); -}; -var _debois$elm_dom$DOM$childNode = function (idx) { - return _elm_lang$core$Json_Decode$at( - { - ctor: '::', - _0: 'childNodes', - _1: { - ctor: '::', - _0: _elm_lang$core$Basics$toString(idx), - _1: {ctor: '[]'} - } - }); -}; -var _debois$elm_dom$DOM$parentElement = function (decoder) { - return A2(_elm_lang$core$Json_Decode$field, 'parentElement', decoder); -}; -var _debois$elm_dom$DOM$previousSibling = function (decoder) { - return A2(_elm_lang$core$Json_Decode$field, 'previousSibling', decoder); -}; -var _debois$elm_dom$DOM$nextSibling = function (decoder) { - return A2(_elm_lang$core$Json_Decode$field, 'nextSibling', decoder); -}; -var _debois$elm_dom$DOM$offsetParent = F2( - function (x, decoder) { - return _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$field, - 'offsetParent', - _elm_lang$core$Json_Decode$null(x)), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'offsetParent', decoder), - _1: {ctor: '[]'} - } - }); - }); -var _debois$elm_dom$DOM$position = F2( - function (x, y) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (_p1) { - var _p2 = _p1; - var _p4 = _p2._1; - var _p3 = _p2._0; - return A2( - _debois$elm_dom$DOM$offsetParent, - {ctor: '_Tuple2', _0: _p3, _1: _p4}, - A2(_debois$elm_dom$DOM$position, _p3, _p4)); - }, - A5( - _elm_lang$core$Json_Decode$map4, - F4( - function (scrollLeft, scrollTop, offsetLeft, offsetTop) { - return {ctor: '_Tuple2', _0: (x + offsetLeft) - scrollLeft, _1: (y + offsetTop) - scrollTop}; - }), - _debois$elm_dom$DOM$scrollLeft, - _debois$elm_dom$DOM$scrollTop, - _debois$elm_dom$DOM$offsetLeft, - _debois$elm_dom$DOM$offsetTop)); - }); -var _debois$elm_dom$DOM$boundingClientRect = A4( - _elm_lang$core$Json_Decode$map3, - F3( - function (_p5, width, height) { - var _p6 = _p5; - return {top: _p6._1, left: _p6._0, width: width, height: height}; - }), - A2(_debois$elm_dom$DOM$position, 0, 0), - _debois$elm_dom$DOM$offsetWidth, - _debois$elm_dom$DOM$offsetHeight); -var _debois$elm_dom$DOM$target = function (decoder) { - return A2(_elm_lang$core$Json_Decode$field, 'target', decoder); -}; -var _debois$elm_dom$DOM$Rectangle = F4( - function (a, b, c, d) { - return {top: a, left: b, width: c, height: d}; - }); - -var _mbr$elm_mouse_events$MouseEvents$Position = F2( - function (a, b) { - return {x: a, y: b}; - }); -var _mbr$elm_mouse_events$MouseEvents$relPos = function (ev) { - return A2(_mbr$elm_mouse_events$MouseEvents$Position, ev.clientPos.x - ev.targetPos.x, ev.clientPos.y - ev.targetPos.y); -}; -var _mbr$elm_mouse_events$MouseEvents$mouseEvent = F3( - function (clientX, clientY, target) { - return { - clientPos: A2(_mbr$elm_mouse_events$MouseEvents$Position, clientX, clientY), - targetPos: A2( - _mbr$elm_mouse_events$MouseEvents$Position, - _elm_lang$core$Basics$truncate(target.left), - _elm_lang$core$Basics$truncate(target.top)) - }; - }); -var _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder = A4( - _elm_lang$core$Json_Decode$map3, - _mbr$elm_mouse_events$MouseEvents$mouseEvent, - A2(_elm_lang$core$Json_Decode$field, 'clientX', _elm_lang$core$Json_Decode$int), - A2(_elm_lang$core$Json_Decode$field, 'clientY', _elm_lang$core$Json_Decode$int), - A2(_elm_lang$core$Json_Decode$field, 'target', _debois$elm_dom$DOM$boundingClientRect)); -var _mbr$elm_mouse_events$MouseEvents$onMouseEnter = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseenter', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseOver = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseover', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseMove = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mousemove', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseDown = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mousedown', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseUp = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseup', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onClick = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'click', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onDoubleClick = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'dblclick', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onContextMenu = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'contextmenu', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onWheel = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'wheel', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseLeave = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseleave', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onMouseOut = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'mouseout', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onSelect = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'select', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onPointerLockChange = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'pointerlockchange', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$onPointerLockError = function (target) { - return A2( - _elm_lang$html$Html_Events$on, - 'pointerlockerror', - A2(_elm_lang$core$Json_Decode$map, target, _mbr$elm_mouse_events$MouseEvents$mouseEventDecoder)); -}; -var _mbr$elm_mouse_events$MouseEvents$MouseEvent = F2( - function (a, b) { - return {clientPos: a, targetPos: b}; - }); - -var _Gizra$circuit_bid$Pages_Sale_Model$emptyModel = { - sale: _krisajenkins$remotedata$RemoteData$NotAsked, - item: _Gizra$circuit_bid$ItemManager_Model$emptyModel, - nextBidIncrements: {ctor: '[]'}, - carouselPosition: 0, - numberOfCarouselItems: 5, - queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest, - clerkHighestQueuedBidData: _Gizra$circuit_bid$Pusher_Model$emptyClerkQueuedBidsUpdateData, - asyncGoingItemStatus: false, - publicMessages: _krisajenkins$remotedata$RemoteData$NotAsked, - alert: _elm_lang$core$Maybe$Nothing, - login: _Gizra$circuit_bid$Login_Model$emptyModel -}; -var _Gizra$circuit_bid$Pages_Sale_Model$Model = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return {sale: a, item: b, nextBidIncrements: c, carouselPosition: d, numberOfCarouselItems: e, queuedRequestState: f, clerkHighestQueuedBidData: g, asyncGoingItemStatus: h, publicMessages: i, alert: j, login: k}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$Subscribe = function (a) { - return {ctor: 'Subscribe', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$PlaceBidMouseLeave = function (a) { - return {ctor: 'PlaceBidMouseLeave', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$PlaceBidMouseEnter = function (a) { - return {ctor: 'PlaceBidMouseEnter', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$PlaceBid = F2( - function (a, b) { - return {ctor: 'PlaceBid', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Model$MsgLogin = function (a) { - return {ctor: 'MsgLogin', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager = function (a) { - return {ctor: 'MsgItemManager', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$ItemsPrevious = {ctor: 'ItemsPrevious'}; -var _Gizra$circuit_bid$Pages_Sale_Model$ItemsNext = {ctor: 'ItemsNext'}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleUpdatedCurrentPrice = F2( - function (a, b) { - return {ctor: 'HandleUpdatedCurrentPrice', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Model$HandlePusherEvent = function (a) { - return {ctor: 'HandlePusherEvent', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedMessages = function (a) { - return {ctor: 'HandleFetchedMessages', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedCurrenciesInfoFromJson = function (a) { - return {ctor: 'HandleFetchedCurrenciesInfoFromJson', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedSaleTitleFromJson = function (a) { - return {ctor: 'HandleFetchedSaleTitleFromJson', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedSale = function (a) { - return {ctor: 'HandleFetchedSale', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$HandleBidPlaced = F2( - function (a, b) { - return {ctor: 'HandleBidPlaced', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Model$HandleConnectedUserEvent = function (a) { - return {ctor: 'HandleConnectedUserEvent', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$FetchItems = {ctor: 'FetchItems'}; -var _Gizra$circuit_bid$Pages_Sale_Model$CreditRequestSetAmount = F2( - function (a, b) { - return {ctor: 'CreditRequestSetAmount', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Model$CreditRequestSave = F2( - function (a, b) { - return {ctor: 'CreditRequestSave', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Model$ConnectedUserHeartbeat = function (a) { - return {ctor: 'ConnectedUserHeartbeat', _0: a}; -}; -var _Gizra$circuit_bid$Pages_Sale_Model$BidAmountDecrement = {ctor: 'BidAmountDecrement'}; -var _Gizra$circuit_bid$Pages_Sale_Model$BidAmountIncrement = function (a) { - return {ctor: 'BidAmountIncrement', _0: a}; -}; - -var _Gizra$circuit_bid$App_Model$emptyModel = { - accessToken: '', - activePage: _Gizra$circuit_bid$App_PageType$AccessDenied, - backend: _Gizra$circuit_bid$Backend_Model$emptyModelBackend, - config: _krisajenkins$remotedata$RemoteData$NotAsked, - currentDate: _elm_lang$core$Date$fromTime(0), - errors: {ctor: '[]'}, - language: _Gizra$circuit_bid$Translate$English, - offline: false, - pageAuctioneer: _Gizra$circuit_bid$Pages_Clerk_Model$emptyModel, - pageClerk: _Gizra$circuit_bid$Pages_Clerk_Model$emptyModel, - pageRoom: _Gizra$circuit_bid$Pages_Sale_Model$emptyModel, - pageSale: _Gizra$circuit_bid$Pages_Sale_Model$emptyModel, - pageItem: _Gizra$circuit_bid$ItemManager_Model$emptyModel, - pusher: _Gizra$circuit_bid$Pusher_Model$emptyModel, - parentBaseUrl: '', - redirectUrl: _elm_lang$core$Maybe$Nothing, - siteShortName: '', - user: _elm_lang$core$Maybe$Nothing -}; -var _Gizra$circuit_bid$App_Model$Model = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return function (m) { - return function (n) { - return function (o) { - return function (p) { - return function (q) { - return function (r) { - return {accessToken: a, activePage: b, backend: c, config: d, currentDate: e, errors: f, language: g, offline: h, pageAuctioneer: i, pageClerk: j, pageItem: k, pageRoom: l, pageSale: m, pusher: n, parentBaseUrl: o, redirectUrl: p, siteShortName: q, user: r}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$App_Model$Flags = F4( - function (a, b, c, d) { - return {accessToken: a, hostname: b, languageCode: c, parentBaseUrl: d}; - }); -var _Gizra$circuit_bid$App_Model$Tick = function (a) { - return {ctor: 'Tick', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$SetLanguage = function (a) { - return {ctor: 'SetLanguage', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$SetCurrentDate = function (a) { - return {ctor: 'SetCurrentDate', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$SetAuthentication = function (a) { - return {ctor: 'SetAuthentication', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$SetActivePage = F2( - function (a, b) { - return {ctor: 'SetActivePage', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$App_Model$NoOp = {ctor: 'NoOp'}; -var _Gizra$circuit_bid$App_Model$MsgPusher = function (a) { - return {ctor: 'MsgPusher', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$MsgPagesSale = function (a) { - return {ctor: 'MsgPagesSale', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$MsgPagesClerk = function (a) { - return {ctor: 'MsgPagesClerk', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$MsgLogin = function (a) { - return {ctor: 'MsgLogin', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$MsgItemManager = function (a) { - return {ctor: 'MsgItemManager', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$MsgBackend = function (a) { - return {ctor: 'MsgBackend', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$Logout = function (a) { - return {ctor: 'Logout', _0: a}; -}; -var _Gizra$circuit_bid$App_Model$HandleOfflineEvent = function (a) { - return {ctor: 'HandleOfflineEvent', _0: a}; -}; - -var _elm_lang$html$Html_Keyed$node = _elm_lang$virtual_dom$VirtualDom$keyedNode; -var _elm_lang$html$Html_Keyed$ol = _elm_lang$html$Html_Keyed$node('ol'); -var _elm_lang$html$Html_Keyed$ul = _elm_lang$html$Html_Keyed$node('ul'); - -var _Gizra$elm_essentials$Gizra_Html$voidHref = _elm_lang$html$Html_Attributes$href('javascript: void(0)'); -var _Gizra$elm_essentials$Gizra_Html$emptyNode = _elm_lang$html$Html$text(''); -var _Gizra$elm_essentials$Gizra_Html$showIf = F2( - function (condition, html) { - return condition ? html : _Gizra$elm_essentials$Gizra_Html$emptyNode; - }); -var _Gizra$elm_essentials$Gizra_Html$showMaybe = _elm_lang$core$Maybe$withDefault(_Gizra$elm_essentials$Gizra_Html$emptyNode); -var _Gizra$elm_essentials$Gizra_Html$preventDefault = {preventDefault: true, stopPropagation: false}; -var _Gizra$elm_essentials$Gizra_Html$stopPropagation = {preventDefault: false, stopPropagation: true}; -var _Gizra$elm_essentials$Gizra_Html$preventDefaultAndStopPropagation = {preventDefault: true, stopPropagation: true}; -var _Gizra$elm_essentials$Gizra_Html$floatToPx = function (val) { - return A2( - _elm_lang$core$Basics_ops['++'], - A2(_myrho$elm_round$Round$round, 1, val), - 'px'); -}; -var _Gizra$elm_essentials$Gizra_Html$intToPx = function (val) { - return A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(val), - 'px'); -}; -var _Gizra$elm_essentials$Gizra_Html$keyed = F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }); -var _Gizra$elm_essentials$Gizra_Html$divKeyed = _elm_lang$html$Html_Keyed$node('div'); -var _Gizra$elm_essentials$Gizra_Html$keyedDivKeyed = F3( - function (key, attrs, children) { - return A2( - _Gizra$elm_essentials$Gizra_Html$keyed, - key, - A2(_Gizra$elm_essentials$Gizra_Html$divKeyed, attrs, children)); - }); - -var _Gizra$circuit_bid$Utils_WebData$whenNotAsked = F2( - function (msg, data) { - var _p0 = data; - if (_p0.ctor === 'NotAsked') { - return _elm_lang$core$Maybe$Just(msg); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _Gizra$circuit_bid$Utils_WebData$getError = function (remoteData) { - var _p1 = remoteData; - if (_p1.ctor === 'Failure') { - return _elm_lang$core$Maybe$Just(_p1._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$circuit_bid$Utils_WebData$sendWithHandler = F3( - function (decoder, tagger, builder) { - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(decoder), - builder)); - }); -var _Gizra$circuit_bid$Utils_WebData$whenSuccess = F3( - function (remoteData, $default, func) { - var _p2 = remoteData; - if (_p2.ctor === 'Success') { - return func(_p2._0); - } else { - return $default; - } - }); -var _Gizra$circuit_bid$Utils_WebData$decodeTitle = A2(_elm_lang$core$Json_Decode$field, 'title', _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Utils_WebData$errorString = F2( - function (language, error) { - var _p3 = error; - switch (_p3.ctor) { - case 'BadUrl': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$ErrorBadUrl); - case 'BadPayload': - return A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$ErrorBadPayload(_p3._0)); - case 'NetworkError': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$ErrorNetworkError); - case 'Timeout': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$ErrorTimeout); - default: - var _p5 = _p3._0; - return A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$ErrorBadStatus( - function () { - var _p4 = A2(_elm_lang$core$Json_Decode$decodeString, _Gizra$circuit_bid$Utils_WebData$decodeTitle, _p5.body); - if (_p4.ctor === 'Ok') { - return _p4._0; - } else { - return _p5.status.message; - } - }())); - } - }); -var _Gizra$circuit_bid$Utils_WebData$viewError = F2( - function (language, error) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('alert alert-danger'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Utils_WebData$errorString, language, error)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Utils_WebData$editableWebDataViewMaybeError = F2( - function (language, editable) { - var _p6 = _Gizra$elm_editable_webdata$Editable_WebData$toWebData(editable); - if (_p6.ctor === 'Failure') { - return A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, _p6._0); - } else { - return _Gizra$elm_essentials$Gizra_Html$emptyNode; - } - }); - -var _Gizra$circuit_bid$Pages_Clerk_Fetch$fetch = F4( - function (authUser, backend, saleUuid, model) { - var creditRequests = A2( - _Gizra$circuit_bid$Utils_WebData$whenNotAsked, - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2(_Gizra$circuit_bid$Backend_CreditRequest_Model$Fetch, saleUuid, _elm_lang$core$Maybe$Nothing)), - backend.creditRequests); - var bidderInfo = A2( - _Gizra$circuit_bid$PaginatedData$fetchAll, - {ctor: '_Tuple2', _0: saleUuid, _1: backend.bidderInfo}, - function (pageNumber) { - return _Gizra$circuit_bid$Backend_Model$MsgBidderInfo( - A2(_Gizra$circuit_bid$Backend_BidderInfo_Model$Fetch, saleUuid, pageNumber)); - }); - return A2( - _elm_lang$core$List$filterMap, - _elm_lang$core$Basics$identity, - {ctor: '::', _0: creditRequests, _1: bidderInfo}); - }); - -var _Gizra$circuit_bid$Pages_Sale_Fetch$fetch = F3( - function (authUser, backend, saleId) { - var creditRequests = A2( - _Gizra$circuit_bid$Utils_WebData$whenNotAsked, - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2( - _Gizra$circuit_bid$Backend_CreditRequest_Model$Fetch, - saleId, - _elm_lang$core$Maybe$Just(authUser.uuid))), - backend.creditRequests); - var itemsPager = A2( - _Gizra$circuit_bid$PaginatedData$fetchAll, - {ctor: '_Tuple2', _0: saleId, _1: backend.bidderInfo}, - function (pageNumber) { - return _Gizra$circuit_bid$Backend_Model$MsgBidderInfo( - A2(_Gizra$circuit_bid$Backend_BidderInfo_Model$Fetch, saleId, pageNumber)); - }); - return A2( - _elm_lang$core$List$filterMap, - _elm_lang$core$Basics$identity, - {ctor: '::', _0: creditRequests, _1: itemsPager}); - }); - -var _Gizra$circuit_bid$User_Utils$map = F2( - function (f, user) { - var _p0 = user; - if (_p0.ctor === 'Authenticated') { - return _Gizra$circuit_bid$User_Model$Authenticated( - f(_p0._0)); - } else { - return user; - } - }); -var _Gizra$circuit_bid$User_Utils$withAuthenticatedUser = F3( - function ($default, user, func) { - var _p1 = user; - if (_p1.ctor === 'Authenticated') { - return func(_p1._0); - } else { - return $default; - } - }); -var _Gizra$circuit_bid$User_Utils$getWebsiteBidderInfoEditable = F3( - function (user, modelBackend, saleUuid) { - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - _elm_lang$core$Maybe$Nothing, - user, - function (authUser) { - return A2( - _elm_lang$core$Maybe$andThen, - function (bidderInfoId) { - return A2( - _elm_lang$core$Maybe$andThen, - function (editable) { - return _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: bidderInfoId, _1: editable}); - }, - A3(_Gizra$circuit_bid$PaginatedData$get, saleUuid, bidderInfoId, modelBackend.bidderInfo)); - }, - A2(_eeue56$elm_all_dict$EveryDict$get, saleUuid, authUser.websiteBidderInfo)); - }); - }); -var _Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo = F3( - function (user, modelBackend, saleUuid) { - return A2( - _elm_lang$core$Maybe$andThen, - function (_p2) { - var _p3 = _p2; - return _elm_lang$core$Maybe$Just( - _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(_p3._1))); - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfoEditable, user, modelBackend, saleUuid)); - }); -var _Gizra$circuit_bid$User_Utils$isActive = function (user) { - var _p4 = user; - if (_p4.ctor === 'Authenticated') { - return _elm_lang$core$Native_Utils.eq(_p4._0.status, _Gizra$circuit_bid$User_Model$Active); - } else { - return false; - } -}; -var _Gizra$circuit_bid$User_Utils$isPrivileged = function (user) { - var _p5 = user; - if (_p5.ctor === 'Authenticated') { - return _elm_lang$core$Native_Utils.eq(_p5._0.userType, _Gizra$circuit_bid$User_Model$Privileged); - } else { - return false; - } -}; -var _Gizra$circuit_bid$User_Utils$isAuthenticated = function (user) { - var _p6 = user; - if (_p6.ctor === 'Authenticated') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$User_Utils$isAnonymous = function (user) { - return !_Gizra$circuit_bid$User_Utils$isAuthenticated(user); -}; - -var _Gizra$circuit_bid$App_Fetch$fetch = function (model) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - {ctor: '[]'}, - function (user) { - var clerkFetch = function (saleUuid) { - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - {ctor: '[]'}, - user, - function (authUser) { - return A2( - _elm_lang$core$List$map, - function (subMsg) { - return _Gizra$circuit_bid$App_Model$MsgBackend(subMsg); - }, - A4(_Gizra$circuit_bid$Pages_Clerk_Fetch$fetch, authUser, model.backend, saleUuid, model.pageClerk)); - }); - }; - var _p0 = model.activePage; - switch (_p0.ctor) { - case 'Sale': - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - {ctor: '[]'}, - user, - function (authUser) { - return A2( - _elm_lang$core$List$map, - function (subMsg) { - return _Gizra$circuit_bid$App_Model$MsgBackend(subMsg); - }, - A3(_Gizra$circuit_bid$Pages_Sale_Fetch$fetch, authUser, model.backend, _p0._0)); - }); - case 'SaleAuctioneer': - return clerkFetch(_p0._0); - case 'SaleClerk': - return clerkFetch(_p0._0); - default: - return {ctor: '[]'}; - } - }, - model.user); -}; - -var _elm_lang$navigation$Native_Navigation = function() { - - -// FAKE NAVIGATION - -function go(n) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - if (n !== 0) - { - history.go(n); - } - callback(_elm_lang$core$Native_Scheduler.succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - -function pushState(url) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - history.pushState({}, '', url); - callback(_elm_lang$core$Native_Scheduler.succeed(getLocation())); - }); -} - -function replaceState(url) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - history.replaceState({}, '', url); - callback(_elm_lang$core$Native_Scheduler.succeed(getLocation())); - }); -} - - -// REAL NAVIGATION - -function reloadPage(skipCache) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - document.location.reload(skipCache); - callback(_elm_lang$core$Native_Scheduler.succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - -function setLocation(url) -{ - return _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) - { - try - { - window.location = url; - } - catch(err) - { - // Only Firefox can throw a NS_ERROR_MALFORMED_URI exception here. - // Other browsers reload the page, so let's be consistent about that. - document.location.reload(false); - } - callback(_elm_lang$core$Native_Scheduler.succeed(_elm_lang$core$Native_Utils.Tuple0)); - }); -} - - -// GET LOCATION - -function getLocation() -{ - var location = document.location; - - return { - href: location.href, - host: location.host, - hostname: location.hostname, - protocol: location.protocol, - origin: location.origin, - port_: location.port, - pathname: location.pathname, - search: location.search, - hash: location.hash, - username: location.username, - password: location.password - }; -} - - -// DETECT IE11 PROBLEMS - -function isInternetExplorer11() -{ - return window.navigator.userAgent.indexOf('Trident') !== -1; -} - - -return { - go: go, - setLocation: setLocation, - reloadPage: reloadPage, - pushState: pushState, - replaceState: replaceState, - getLocation: getLocation, - isInternetExplorer11: isInternetExplorer11 -}; - -}(); - -var _elm_lang$navigation$Navigation$replaceState = _elm_lang$navigation$Native_Navigation.replaceState; -var _elm_lang$navigation$Navigation$pushState = _elm_lang$navigation$Native_Navigation.pushState; -var _elm_lang$navigation$Navigation$go = _elm_lang$navigation$Native_Navigation.go; -var _elm_lang$navigation$Navigation$reloadPage = _elm_lang$navigation$Native_Navigation.reloadPage; -var _elm_lang$navigation$Navigation$setLocation = _elm_lang$navigation$Native_Navigation.setLocation; -var _elm_lang$navigation$Navigation_ops = _elm_lang$navigation$Navigation_ops || {}; -_elm_lang$navigation$Navigation_ops['&>'] = F2( - function (task1, task2) { - return A2( - _elm_lang$core$Task$andThen, - function (_p0) { - return task2; - }, - task1); - }); -var _elm_lang$navigation$Navigation$notify = F3( - function (router, subs, location) { - var send = function (_p1) { - var _p2 = _p1; - return A2( - _elm_lang$core$Platform$sendToApp, - router, - _p2._0(location)); - }; - return A2( - _elm_lang$navigation$Navigation_ops['&>'], - _elm_lang$core$Task$sequence( - A2(_elm_lang$core$List$map, send, subs)), - _elm_lang$core$Task$succeed( - {ctor: '_Tuple0'})); - }); -var _elm_lang$navigation$Navigation$cmdHelp = F3( - function (router, subs, cmd) { - var _p3 = cmd; - switch (_p3.ctor) { - case 'Jump': - return _elm_lang$navigation$Navigation$go(_p3._0); - case 'New': - return A2( - _elm_lang$core$Task$andThen, - A2(_elm_lang$navigation$Navigation$notify, router, subs), - _elm_lang$navigation$Navigation$pushState(_p3._0)); - case 'Modify': - return A2( - _elm_lang$core$Task$andThen, - A2(_elm_lang$navigation$Navigation$notify, router, subs), - _elm_lang$navigation$Navigation$replaceState(_p3._0)); - case 'Visit': - return _elm_lang$navigation$Navigation$setLocation(_p3._0); - default: - return _elm_lang$navigation$Navigation$reloadPage(_p3._0); - } - }); -var _elm_lang$navigation$Navigation$killPopWatcher = function (popWatcher) { - var _p4 = popWatcher; - if (_p4.ctor === 'Normal') { - return _elm_lang$core$Process$kill(_p4._0); - } else { - return A2( - _elm_lang$navigation$Navigation_ops['&>'], - _elm_lang$core$Process$kill(_p4._0), - _elm_lang$core$Process$kill(_p4._1)); - } -}; -var _elm_lang$navigation$Navigation$onSelfMsg = F3( - function (router, location, state) { - return A2( - _elm_lang$navigation$Navigation_ops['&>'], - A3(_elm_lang$navigation$Navigation$notify, router, state.subs, location), - _elm_lang$core$Task$succeed(state)); - }); -var _elm_lang$navigation$Navigation$subscription = _elm_lang$core$Native_Platform.leaf('Navigation'); -var _elm_lang$navigation$Navigation$command = _elm_lang$core$Native_Platform.leaf('Navigation'); -var _elm_lang$navigation$Navigation$Location = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return {href: a, host: b, hostname: c, protocol: d, origin: e, port_: f, pathname: g, search: h, hash: i, username: j, password: k}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _elm_lang$navigation$Navigation$State = F2( - function (a, b) { - return {subs: a, popWatcher: b}; - }); -var _elm_lang$navigation$Navigation$init = _elm_lang$core$Task$succeed( - A2( - _elm_lang$navigation$Navigation$State, - {ctor: '[]'}, - _elm_lang$core$Maybe$Nothing)); -var _elm_lang$navigation$Navigation$Reload = function (a) { - return {ctor: 'Reload', _0: a}; -}; -var _elm_lang$navigation$Navigation$reload = _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Reload(false)); -var _elm_lang$navigation$Navigation$reloadAndSkipCache = _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Reload(true)); -var _elm_lang$navigation$Navigation$Visit = function (a) { - return {ctor: 'Visit', _0: a}; -}; -var _elm_lang$navigation$Navigation$load = function (url) { - return _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Visit(url)); -}; -var _elm_lang$navigation$Navigation$Modify = function (a) { - return {ctor: 'Modify', _0: a}; -}; -var _elm_lang$navigation$Navigation$modifyUrl = function (url) { - return _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Modify(url)); -}; -var _elm_lang$navigation$Navigation$New = function (a) { - return {ctor: 'New', _0: a}; -}; -var _elm_lang$navigation$Navigation$newUrl = function (url) { - return _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$New(url)); -}; -var _elm_lang$navigation$Navigation$Jump = function (a) { - return {ctor: 'Jump', _0: a}; -}; -var _elm_lang$navigation$Navigation$back = function (n) { - return _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Jump(0 - n)); -}; -var _elm_lang$navigation$Navigation$forward = function (n) { - return _elm_lang$navigation$Navigation$command( - _elm_lang$navigation$Navigation$Jump(n)); -}; -var _elm_lang$navigation$Navigation$cmdMap = F2( - function (_p5, myCmd) { - var _p6 = myCmd; - switch (_p6.ctor) { - case 'Jump': - return _elm_lang$navigation$Navigation$Jump(_p6._0); - case 'New': - return _elm_lang$navigation$Navigation$New(_p6._0); - case 'Modify': - return _elm_lang$navigation$Navigation$Modify(_p6._0); - case 'Visit': - return _elm_lang$navigation$Navigation$Visit(_p6._0); - default: - return _elm_lang$navigation$Navigation$Reload(_p6._0); - } - }); -var _elm_lang$navigation$Navigation$Monitor = function (a) { - return {ctor: 'Monitor', _0: a}; -}; -var _elm_lang$navigation$Navigation$program = F2( - function (locationToMessage, stuff) { - var init = stuff.init( - _elm_lang$navigation$Native_Navigation.getLocation( - {ctor: '_Tuple0'})); - var subs = function (model) { - return _elm_lang$core$Platform_Sub$batch( - { - ctor: '::', - _0: _elm_lang$navigation$Navigation$subscription( - _elm_lang$navigation$Navigation$Monitor(locationToMessage)), - _1: { - ctor: '::', - _0: stuff.subscriptions(model), - _1: {ctor: '[]'} - } - }); - }; - return _elm_lang$html$Html$program( - {init: init, view: stuff.view, update: stuff.update, subscriptions: subs}); - }); -var _elm_lang$navigation$Navigation$programWithFlags = F2( - function (locationToMessage, stuff) { - var init = function (flags) { - return A2( - stuff.init, - flags, - _elm_lang$navigation$Native_Navigation.getLocation( - {ctor: '_Tuple0'})); - }; - var subs = function (model) { - return _elm_lang$core$Platform_Sub$batch( - { - ctor: '::', - _0: _elm_lang$navigation$Navigation$subscription( - _elm_lang$navigation$Navigation$Monitor(locationToMessage)), - _1: { - ctor: '::', - _0: stuff.subscriptions(model), - _1: {ctor: '[]'} - } - }); - }; - return _elm_lang$html$Html$programWithFlags( - {init: init, view: stuff.view, update: stuff.update, subscriptions: subs}); - }); -var _elm_lang$navigation$Navigation$subMap = F2( - function (func, _p7) { - var _p8 = _p7; - return _elm_lang$navigation$Navigation$Monitor( - function (_p9) { - return func( - _p8._0(_p9)); - }); - }); -var _elm_lang$navigation$Navigation$InternetExplorer = F2( - function (a, b) { - return {ctor: 'InternetExplorer', _0: a, _1: b}; - }); -var _elm_lang$navigation$Navigation$Normal = function (a) { - return {ctor: 'Normal', _0: a}; -}; -var _elm_lang$navigation$Navigation$spawnPopWatcher = function (router) { - var reportLocation = function (_p10) { - return A2( - _elm_lang$core$Platform$sendToSelf, - router, - _elm_lang$navigation$Native_Navigation.getLocation( - {ctor: '_Tuple0'})); - }; - return _elm_lang$navigation$Native_Navigation.isInternetExplorer11( - {ctor: '_Tuple0'}) ? A3( - _elm_lang$core$Task$map2, - _elm_lang$navigation$Navigation$InternetExplorer, - _elm_lang$core$Process$spawn( - A3(_elm_lang$dom$Dom_LowLevel$onWindow, 'popstate', _elm_lang$core$Json_Decode$value, reportLocation)), - _elm_lang$core$Process$spawn( - A3(_elm_lang$dom$Dom_LowLevel$onWindow, 'hashchange', _elm_lang$core$Json_Decode$value, reportLocation))) : A2( - _elm_lang$core$Task$map, - _elm_lang$navigation$Navigation$Normal, - _elm_lang$core$Process$spawn( - A3(_elm_lang$dom$Dom_LowLevel$onWindow, 'popstate', _elm_lang$core$Json_Decode$value, reportLocation))); -}; -var _elm_lang$navigation$Navigation$onEffects = F4( - function (router, cmds, subs, _p11) { - var _p12 = _p11; - var _p15 = _p12.popWatcher; - var stepState = function () { - var _p13 = {ctor: '_Tuple2', _0: subs, _1: _p15}; - _v6_2: - do { - if (_p13._0.ctor === '[]') { - if (_p13._1.ctor === 'Just') { - return A2( - _elm_lang$navigation$Navigation_ops['&>'], - _elm_lang$navigation$Navigation$killPopWatcher(_p13._1._0), - _elm_lang$core$Task$succeed( - A2(_elm_lang$navigation$Navigation$State, subs, _elm_lang$core$Maybe$Nothing))); - } else { - break _v6_2; - } - } else { - if (_p13._1.ctor === 'Nothing') { - return A2( - _elm_lang$core$Task$map, - function (_p14) { - return A2( - _elm_lang$navigation$Navigation$State, - subs, - _elm_lang$core$Maybe$Just(_p14)); - }, - _elm_lang$navigation$Navigation$spawnPopWatcher(router)); - } else { - break _v6_2; - } - } - } while(false); - return _elm_lang$core$Task$succeed( - A2(_elm_lang$navigation$Navigation$State, subs, _p15)); - }(); - return A2( - _elm_lang$navigation$Navigation_ops['&>'], - _elm_lang$core$Task$sequence( - A2( - _elm_lang$core$List$map, - A2(_elm_lang$navigation$Navigation$cmdHelp, router, subs), - cmds)), - stepState); - }); -_elm_lang$core$Native_Platform.effectManagers['Navigation'] = {pkg: 'elm-lang/navigation', init: _elm_lang$navigation$Navigation$init, onEffects: _elm_lang$navigation$Navigation$onEffects, onSelfMsg: _elm_lang$navigation$Navigation$onSelfMsg, tag: 'fx', cmdMap: _elm_lang$navigation$Navigation$cmdMap, subMap: _elm_lang$navigation$Navigation$subMap}; - - -var _sporto$erl$Erl_Query$getValuesForKey = function (key) { - return function (_p0) { - return A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$second, - A2( - _elm_lang$core$List$filter, - function (_p1) { - var _p2 = _p1; - return _elm_lang$core$Native_Utils.eq(_p2._0, key); - }, - _p0)); - }; -}; -var _sporto$erl$Erl_Query$remove = F2( - function (key, query) { - return A2( - _elm_lang$core$List$filter, - function (_p3) { - var _p4 = _p3; - return !_elm_lang$core$Native_Utils.eq(_p4._0, key); - }, - query); - }); -var _sporto$erl$Erl_Query$add = F2( - function (key, val) { - return function (_p5) { - return _elm_lang$core$List$reverse( - A2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - }), - {ctor: '_Tuple2', _0: key, _1: val}, - _elm_lang$core$List$reverse(_p5))); - }; - }); -var _sporto$erl$Erl_Query$set = F3( - function (key, val, query) { - var without = A2(_sporto$erl$Erl_Query$remove, key, query); - return A3(_sporto$erl$Erl_Query$add, key, val, without); - }); -var _sporto$erl$Erl_Query$toString = function (query) { - var encodedTuples = A2( - _elm_lang$core$List$map, - function (_p6) { - var _p7 = _p6; - return { - ctor: '_Tuple2', - _0: _elm_lang$http$Http$encodeUri(_p7._0), - _1: _elm_lang$http$Http$encodeUri(_p7._1) - }; - }, - query); - var parts = A2( - _elm_lang$core$List$map, - function (_p8) { - var _p9 = _p8; - return A2( - _elm_lang$core$Basics_ops['++'], - _p9._0, - A2(_elm_lang$core$Basics_ops['++'], '=', _p9._1)); - }, - encodedTuples); - return _elm_lang$core$List$isEmpty(query) ? '' : A2( - _elm_lang$core$Basics_ops['++'], - '?', - A2(_elm_lang$core$String$join, '&', parts)); -}; -var _sporto$erl$Erl_Query$queryStringElementToTuple = function (element) { - var splitted = A2(_elm_lang$core$String$split, '=', element); - var first = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head(splitted)); - var firstDecoded = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$http$Http$decodeUri(first)); - var second = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2(_elm_lang$core$List$drop, 1, splitted))); - var secondDecoded = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$http$Http$decodeUri(second)); - return {ctor: '_Tuple2', _0: firstDecoded, _1: secondDecoded}; -}; -var _sporto$erl$Erl_Query$parse = function (queryString) { - var trimmed = A2( - _elm_lang$core$String$join, - '', - A2(_elm_lang$core$String$split, '?', queryString)); - var splitted = A2(_elm_lang$core$String$split, '&', trimmed); - return _elm_lang$core$String$isEmpty(trimmed) ? {ctor: '[]'} : A2(_elm_lang$core$List$map, _sporto$erl$Erl_Query$queryStringElementToTuple, splitted); -}; - -//import Maybe, Native.List // - -var _elm_lang$core$Native_Regex = function() { - -function escape(str) -{ - return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); -} -function caseInsensitive(re) -{ - return new RegExp(re.source, 'gi'); -} -function regex(raw) -{ - return new RegExp(raw, 'g'); -} - -function contains(re, string) -{ - return string.match(re) !== null; -} - -function find(n, re, str) -{ - n = n.ctor === 'All' ? Infinity : n._0; - var out = []; - var number = 0; - var string = str; - var lastIndex = re.lastIndex; - var prevLastIndex = -1; - var result; - while (number++ < n && (result = re.exec(string))) - { - if (prevLastIndex === re.lastIndex) break; - var i = result.length - 1; - var subs = new Array(i); - while (i > 0) - { - var submatch = result[i]; - subs[--i] = submatch === undefined - ? _elm_lang$core$Maybe$Nothing - : _elm_lang$core$Maybe$Just(submatch); - } - out.push({ - match: result[0], - submatches: _elm_lang$core$Native_List.fromArray(subs), - index: result.index, - number: number - }); - prevLastIndex = re.lastIndex; - } - re.lastIndex = lastIndex; - return _elm_lang$core$Native_List.fromArray(out); -} - -function replace(n, re, replacer, string) -{ - n = n.ctor === 'All' ? Infinity : n._0; - var count = 0; - function jsReplacer(match) - { - if (count++ >= n) - { - return match; - } - var i = arguments.length - 3; - var submatches = new Array(i); - while (i > 0) - { - var submatch = arguments[i]; - submatches[--i] = submatch === undefined - ? _elm_lang$core$Maybe$Nothing - : _elm_lang$core$Maybe$Just(submatch); - } - return replacer({ - match: match, - submatches: _elm_lang$core$Native_List.fromArray(submatches), - index: arguments[arguments.length - 2], - number: count - }); - } - return string.replace(re, jsReplacer); -} - -function split(n, re, str) -{ - n = n.ctor === 'All' ? Infinity : n._0; - if (n === Infinity) - { - return _elm_lang$core$Native_List.fromArray(str.split(re)); - } - var string = str; - var result; - var out = []; - var start = re.lastIndex; - var restoreLastIndex = re.lastIndex; - while (n--) - { - if (!(result = re.exec(string))) break; - out.push(string.slice(start, result.index)); - start = re.lastIndex; - } - out.push(string.slice(start)); - re.lastIndex = restoreLastIndex; - return _elm_lang$core$Native_List.fromArray(out); -} - -return { - regex: regex, - caseInsensitive: caseInsensitive, - escape: escape, - - contains: F2(contains), - find: F3(find), - replace: F4(replace), - split: F3(split) -}; - -}(); - -var _elm_lang$core$Regex$split = _elm_lang$core$Native_Regex.split; -var _elm_lang$core$Regex$replace = _elm_lang$core$Native_Regex.replace; -var _elm_lang$core$Regex$find = _elm_lang$core$Native_Regex.find; -var _elm_lang$core$Regex$contains = _elm_lang$core$Native_Regex.contains; -var _elm_lang$core$Regex$caseInsensitive = _elm_lang$core$Native_Regex.caseInsensitive; -var _elm_lang$core$Regex$regex = _elm_lang$core$Native_Regex.regex; -var _elm_lang$core$Regex$escape = _elm_lang$core$Native_Regex.escape; -var _elm_lang$core$Regex$Match = F4( - function (a, b, c, d) { - return {match: a, submatches: b, index: c, number: d}; - }); -var _elm_lang$core$Regex$Regex = {ctor: 'Regex'}; -var _elm_lang$core$Regex$AtMost = function (a) { - return {ctor: 'AtMost', _0: a}; -}; -var _elm_lang$core$Regex$All = {ctor: 'All'}; - -var _sporto$erl$Erl$appendPathSegments = F2( - function (segments, url) { - var newPath = A2(_elm_lang$core$List$append, url.path, segments); - return _elm_lang$core$Native_Utils.update( - url, - {path: newPath}); - }); -var _sporto$erl$Erl$getQueryValuesForKey = F2( - function (key, url) { - return A2(_sporto$erl$Erl_Query$getValuesForKey, key, url.query); - }); -var _sporto$erl$Erl$removeQuery = F2( - function (key, url) { - return _elm_lang$core$Native_Utils.update( - url, - { - query: A2(_sporto$erl$Erl_Query$remove, key, url.query) - }); - }); -var _sporto$erl$Erl$setQuery = F3( - function (key, val, url) { - return _elm_lang$core$Native_Utils.update( - url, - { - query: A3(_sporto$erl$Erl_Query$set, key, val, url.query) - }); - }); -var _sporto$erl$Erl$addQuery = F3( - function (key, val, url) { - return _elm_lang$core$Native_Utils.update( - url, - { - query: A3(_sporto$erl$Erl_Query$add, key, val, url.query) - }); - }); -var _sporto$erl$Erl$clearQuery = function (url) { - return _elm_lang$core$Native_Utils.update( - url, - { - query: {ctor: '[]'} - }); -}; -var _sporto$erl$Erl$new = { - protocol: '', - username: '', - password: '', - host: {ctor: '[]'}, - path: {ctor: '[]'}, - hasLeadingSlash: false, - hasTrailingSlash: false, - port_: 0, - hash: '', - query: {ctor: '[]'} -}; -var _sporto$erl$Erl$hashToString = function (url) { - return _elm_lang$core$String$isEmpty(url.hash) ? '' : A2(_elm_lang$core$Basics_ops['++'], '#', url.hash); -}; -var _sporto$erl$Erl$trailingSlashComponent = function (url) { - return _elm_lang$core$Native_Utils.eq(url.hasTrailingSlash, true) ? '/' : ''; -}; -var _sporto$erl$Erl$portComponent = function (url) { - var _p0 = url.port_; - switch (_p0) { - case 0: - return ''; - case 80: - return ''; - case 443: - return _elm_lang$core$Native_Utils.eq(url.protocol, 'https') ? '' : ':443'; - default: - return A2( - _elm_lang$core$Basics_ops['++'], - ':', - _elm_lang$core$Basics$toString(url.port_)); - } -}; -var _sporto$erl$Erl$hostComponent = function (url) { - return _elm_lang$http$Http$encodeUri( - A2(_elm_lang$core$String$join, '.', url.host)); -}; -var _sporto$erl$Erl$pathComponent = function (url) { - var leadingSlash = ((!_elm_lang$core$Native_Utils.eq( - _sporto$erl$Erl$hostComponent(url), - '')) || url.hasLeadingSlash) ? '/' : ''; - var encoded = A2(_elm_lang$core$List$map, _elm_lang$http$Http$encodeUri, url.path); - return _elm_lang$core$Native_Utils.eq( - _elm_lang$core$List$length(url.path), - 0) ? '' : A2( - _elm_lang$core$Basics_ops['++'], - leadingSlash, - A2(_elm_lang$core$String$join, '/', encoded)); -}; -var _sporto$erl$Erl$protocolComponent = function (url) { - var _p1 = url.protocol; - if (_p1 === '') { - return ''; - } else { - return A2(_elm_lang$core$Basics_ops['++'], url.protocol, '://'); - } -}; -var _sporto$erl$Erl$queryToString = function (_p2) { - return _sporto$erl$Erl_Query$toString( - function (_) { - return _.query; - }(_p2)); -}; -var _sporto$erl$Erl$toAbsoluteString = function (url) { - var hash = _sporto$erl$Erl$hashToString(url); - var query_ = _sporto$erl$Erl$queryToString(url); - var trailingSlash_ = _sporto$erl$Erl$trailingSlashComponent(url); - var path_ = _sporto$erl$Erl$pathComponent(url); - return A2( - _elm_lang$core$Basics_ops['++'], - path_, - A2( - _elm_lang$core$Basics_ops['++'], - trailingSlash_, - A2(_elm_lang$core$Basics_ops['++'], query_, hash))); -}; -var _sporto$erl$Erl$toString = function (url) { - var port_ = _sporto$erl$Erl$portComponent(url); - var host_ = _sporto$erl$Erl$hostComponent(url); - var protocol_ = _sporto$erl$Erl$protocolComponent(url); - return A2( - _elm_lang$core$Basics_ops['++'], - protocol_, - A2( - _elm_lang$core$Basics_ops['++'], - host_, - A2( - _elm_lang$core$Basics_ops['++'], - port_, - _sporto$erl$Erl$toAbsoluteString(url)))); -}; -var _sporto$erl$Erl$parseQuery = _sporto$erl$Erl_Query$parse; -var _sporto$erl$Erl$extractQuery = function (str) { - var query = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2( - _elm_lang$core$String$split, - '#', - A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2( - _elm_lang$core$List$drop, - 1, - A2(_elm_lang$core$String$split, '?', str))))))); - return _elm_lang$core$String$isEmpty(query) ? '' : A2(_elm_lang$core$Basics_ops['++'], '?', query); -}; -var _sporto$erl$Erl$queryFromAll = function (all) { - return _sporto$erl$Erl$parseQuery( - _sporto$erl$Erl$extractQuery(all)); -}; -var _sporto$erl$Erl$extractHash = function (str) { - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2( - _elm_lang$core$List$drop, - 1, - A2(_elm_lang$core$String$split, '#', str)))); -}; -var _sporto$erl$Erl$hashFromAll = function (str) { - return _sporto$erl$Erl$extractHash(str); -}; -var _sporto$erl$Erl$parseHost = function (str) { - return A2(_elm_lang$core$String$split, '.', str); -}; -var _sporto$erl$Erl$schemeHostDelim = function (str) { - return A2(_elm_lang$core$String$startsWith, '//', str) ? _elm_lang$core$Maybe$Just('//') : (A2(_elm_lang$core$String$contains, '://', str) ? _elm_lang$core$Maybe$Just('://') : _elm_lang$core$Maybe$Nothing); -}; -var _sporto$erl$Erl$extractProtocol = function (str) { - var parts = A2(_elm_lang$core$String$split, '://', str); - var _p3 = _elm_lang$core$List$length(parts); - if (_p3 === 1) { - return ''; - } else { - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head(parts)); - } -}; -var _sporto$erl$Erl$extractPort = function (str) { - var rx = _elm_lang$core$Regex$regex(':\\d+'); - var res = A3( - _elm_lang$core$Regex$find, - _elm_lang$core$Regex$AtMost(1), - rx, - str); - return function (result) { - var _p4 = result; - if (_p4.ctor === 'Ok') { - return _p4._0; - } else { - var _p5 = _sporto$erl$Erl$extractProtocol(str); - switch (_p5) { - case 'http': - return 80; - case 'https': - return 443; - case 'ftp': - return 21; - case 'sftp': - return 22; - default: - return 0; - } - } - }( - _elm_lang$core$String$toInt( - A2( - _elm_lang$core$String$dropLeft, - 1, - A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2( - _elm_lang$core$List$map, - function (_) { - return _.match; - }, - res)))))); -}; -var _sporto$erl$Erl$leftFrom = F2( - function (delimiter, str) { - var parts = A2(_elm_lang$core$String$split, delimiter, str); - var head = _elm_lang$core$List$head(parts); - var _p6 = _elm_lang$core$List$length(parts); - switch (_p6) { - case 0: - return ''; - case 1: - return ''; - default: - return A2(_elm_lang$core$Maybe$withDefault, '', head); - } - }); -var _sporto$erl$Erl$leftFromOrSame = F2( - function (delimiter, str) { - var parts = A2(_elm_lang$core$String$split, delimiter, str); - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head(parts)); - }); -var _sporto$erl$Erl$rightFromOrSame = F2( - function (delimiter, str) { - var parts = A2(_elm_lang$core$String$split, delimiter, str); - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - _elm_lang$core$List$reverse(parts))); - }); -var _sporto$erl$Erl$rightFromLeftMost = F2( - function (delimiter, str) { - var parts = A2(_elm_lang$core$String$split, delimiter, str); - var _p7 = _elm_lang$core$List$length(parts); - switch (_p7) { - case 0: - return ''; - case 1: - return ''; - default: - return A2( - _elm_lang$core$String$join, - delimiter, - A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - _elm_lang$core$List$tail(parts))); - } - }); -var _sporto$erl$Erl$extractHost = function (str) { - var delim = _sporto$erl$Erl$schemeHostDelim(str); - var _p8 = delim; - if (_p8.ctor === 'Just') { - return A2( - _sporto$erl$Erl$leftFromOrSame, - ':', - A2( - _sporto$erl$Erl$leftFromOrSame, - '/', - A2(_sporto$erl$Erl$rightFromLeftMost, _p8._0, str))); - } else { - var rx = '((\\w|-)+\\.)+(\\w|-)+'; - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2( - _elm_lang$core$List$map, - function (_) { - return _.match; - }, - A3( - _elm_lang$core$Regex$find, - _elm_lang$core$Regex$AtMost(1), - _elm_lang$core$Regex$regex(rx), - A2(_sporto$erl$Erl$leftFromOrSame, '/', str))))); - } -}; -var _sporto$erl$Erl$host = function (str) { - return _sporto$erl$Erl$parseHost( - _sporto$erl$Erl$extractHost(str)); -}; -var _sporto$erl$Erl$extractPath = function (str) { - var delim = _sporto$erl$Erl$schemeHostDelim(str); - var trimmed = function () { - var _p9 = delim; - if (_p9.ctor === 'Just') { - return A2(_sporto$erl$Erl$rightFromLeftMost, _p9._0, str); - } else { - return str; - } - }(); - var host = _sporto$erl$Erl$extractHost(str); - return A4( - _elm_lang$core$Regex$replace, - _elm_lang$core$Regex$AtMost(1), - _elm_lang$core$Regex$regex( - A2( - _elm_lang$core$Basics_ops['++'], - '^.*?', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Regex$escape(host), - '(:\\d+)?'))), - function (_p10) { - return ''; - }, - A2( - _sporto$erl$Erl$leftFromOrSame, - '#', - A2(_sporto$erl$Erl$leftFromOrSame, '?', trimmed))); -}; -var _sporto$erl$Erl$hasLeadingSlashFromAll = function (str) { - return A2( - _elm_lang$core$Regex$contains, - _elm_lang$core$Regex$regex('^/'), - _sporto$erl$Erl$extractPath(str)); -}; -var _sporto$erl$Erl$hasTrailingSlashFromAll = function (str) { - return A2( - _elm_lang$core$Regex$contains, - _elm_lang$core$Regex$regex('/$'), - _sporto$erl$Erl$extractPath(str)); -}; -var _sporto$erl$Erl$rightFrom = F2( - function (delimiter, str) { - var parts = A2(_elm_lang$core$String$split, delimiter, str); - var _p11 = _elm_lang$core$List$length(parts); - switch (_p11) { - case 0: - return ''; - case 1: - return ''; - default: - return A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - _elm_lang$core$List$reverse(parts))); - } - }); -var _sporto$erl$Erl$notEmpty = function (str) { - return !_elm_lang$core$String$isEmpty(str); -}; -var _sporto$erl$Erl$parsePath = function (str) { - return A2( - _elm_lang$core$List$map, - _elm_lang$core$Maybe$withDefault(''), - A2( - _elm_lang$core$List$map, - _elm_lang$http$Http$decodeUri, - A2( - _elm_lang$core$List$filter, - _sporto$erl$Erl$notEmpty, - A2(_elm_lang$core$String$split, '/', str)))); -}; -var _sporto$erl$Erl$pathFromAll = function (str) { - return _sporto$erl$Erl$parsePath( - _sporto$erl$Erl$extractPath(str)); -}; -var _sporto$erl$Erl$parse = function (str) { - return { - host: _sporto$erl$Erl$host(str), - hash: _sporto$erl$Erl$hashFromAll(str), - password: '', - path: _sporto$erl$Erl$pathFromAll(str), - hasLeadingSlash: _sporto$erl$Erl$hasLeadingSlashFromAll(str), - hasTrailingSlash: _sporto$erl$Erl$hasTrailingSlashFromAll(str), - port_: _sporto$erl$Erl$extractPort(str), - protocol: _sporto$erl$Erl$extractProtocol(str), - query: _sporto$erl$Erl$queryFromAll(str), - username: '' - }; -}; -var _sporto$erl$Erl$Url = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return {protocol: a, username: b, password: c, host: d, port_: e, path: f, hasLeadingSlash: g, hasTrailingSlash: h, hash: i, query: j}; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; - -var _ccapndave$elm_update_extra$Update_Extra$identity = function (model) { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); -}; -var _ccapndave$elm_update_extra$Update_Extra$mapCmd = F2( - function (tagger, _p0) { - var _p1 = _p0; - return { - ctor: '_Tuple2', - _0: _p1._0, - _1: A2(_elm_lang$core$Platform_Cmd$map, tagger, _p1._1) - }; - }); -var _ccapndave$elm_update_extra$Update_Extra$addCmd = F2( - function (cmd_, _p2) { - var _p3 = _p2; - return { - ctor: '_Tuple2', - _0: _p3._0, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _p3._1, - _1: { - ctor: '::', - _0: cmd_, - _1: {ctor: '[]'} - } - }) - }; - }); -var _ccapndave$elm_update_extra$Update_Extra$updateModel = F2( - function (f, _p4) { - var _p5 = _p4; - return { - ctor: '_Tuple2', - _0: f(_p5._0), - _1: _p5._1 - }; - }); -var _ccapndave$elm_update_extra$Update_Extra$filter = F2( - function (pred, f) { - return pred ? f : _elm_lang$core$Basics$identity; - }); -var _ccapndave$elm_update_extra$Update_Extra$andThen = F3( - function (update, msg, _p6) { - var _p7 = _p6; - var _p8 = A2(update, msg, _p7._0); - var model_ = _p8._0; - var cmd_ = _p8._1; - return { - ctor: '_Tuple2', - _0: model_, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _p7._1, - _1: { - ctor: '::', - _0: cmd_, - _1: {ctor: '[]'} - } - }) - }; - }); -var _ccapndave$elm_update_extra$Update_Extra$sequence = F3( - function (update, msgs, init) { - var foldUpdate = _ccapndave$elm_update_extra$Update_Extra$andThen(update); - return A3(_elm_lang$core$List$foldl, foldUpdate, init, msgs); - }); - -var _rgrempel$elm_route_url$RouteUrl$url2path = function (url) { - return A2( - _elm_lang$core$Basics_ops['++'], - '/', - A2( - _elm_lang$core$Basics_ops['++'], - A2(_elm_lang$core$String$join, '/', url.path), - (url.hasTrailingSlash && (!_elm_lang$core$List$isEmpty(url.path))) ? '/' : '')); -}; -var _rgrempel$elm_route_url$RouteUrl$eqUrl = F2( - function (u1, u2) { - return _elm_lang$core$Native_Utils.eq(u1.path, u2.path) && (_elm_lang$core$Native_Utils.eq(u1.hasTrailingSlash, u2.hasTrailingSlash) && (_elm_lang$core$Native_Utils.eq(u1.hash, u2.hash) && _elm_lang$core$Native_Utils.eq(u1.query, u2.query))); - }); -var _rgrempel$elm_route_url$RouteUrl$checkDistinctUrl = F2( - function (old, $new) { - return A2( - _rgrempel$elm_route_url$RouteUrl$eqUrl, - _sporto$erl$Erl$parse($new.url), - old) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$Maybe$Just($new); - }); -var _rgrempel$elm_route_url$RouteUrl$mapUrl = F2( - function (func, c1) { - return _elm_lang$core$Native_Utils.update( - c1, - { - url: func(c1.url) - }); - }); -var _rgrempel$elm_route_url$RouteUrl$normalizeUrl = F2( - function (old, change) { - return A2( - _rgrempel$elm_route_url$RouteUrl$mapUrl, - A2(_elm_lang$core$String$startsWith, '?', change.url) ? function (url) { - return A2( - _elm_lang$core$Basics_ops['++'], - _rgrempel$elm_route_url$RouteUrl$url2path(old), - url); - } : (A2(_elm_lang$core$String$startsWith, '#', change.url) ? function (url) { - return A2( - _elm_lang$core$Basics_ops['++'], - _rgrempel$elm_route_url$RouteUrl$url2path(old), - A2( - _elm_lang$core$Basics_ops['++'], - _sporto$erl$Erl$queryToString(old), - url)); - } : function (url) { - return url; - }), - change); - }); -var _rgrempel$elm_route_url$RouteUrl$urlChange2Cmd = function (change) { - return function () { - var _p0 = change.entry; - if (_p0.ctor === 'NewEntry') { - return _elm_lang$navigation$Navigation$newUrl; - } else { - return _elm_lang$navigation$Navigation$modifyUrl; - } - }()(change.url); -}; -var _rgrempel$elm_route_url$RouteUrl$runNavigationAppWithFlags = function (app) { - return A2( - _elm_lang$navigation$Navigation$programWithFlags, - app.locationToMessage, - {init: app.init, update: app.update, view: app.view, subscriptions: app.subscriptions}); -}; -var _rgrempel$elm_route_url$RouteUrl$runNavigationApp = function (app) { - return A2( - _elm_lang$navigation$Navigation$program, - app.locationToMessage, - {init: app.init, update: app.update, view: app.view, subscriptions: app.subscriptions}); -}; -var _rgrempel$elm_route_url$RouteUrl$unwrapMsg = F3( - function (handleLocation, handleUserMsg, wrapped) { - var _p1 = wrapped; - if (_p1.ctor === 'RouterMsg') { - return handleLocation(_p1._0); - } else { - return handleUserMsg(_p1._0); - } - }); -var _rgrempel$elm_route_url$RouteUrl$unwrapModel = function (_p2) { - var _p3 = _p2; - return _p3._0; -}; -var _rgrempel$elm_route_url$RouteUrl$appWithFlags2Common = function (app) { - return {delta2url: app.delta2url, location2messages: app.location2messages, update: app.update, subscriptions: app.subscriptions, view: app.view}; -}; -var _rgrempel$elm_route_url$RouteUrl$app2Common = function (app) { - return {delta2url: app.delta2url, location2messages: app.location2messages, update: app.update, subscriptions: app.subscriptions, view: app.view}; -}; -var _rgrempel$elm_route_url$RouteUrl$App = F6( - function (a, b, c, d, e, f) { - return {delta2url: a, location2messages: b, init: c, update: d, subscriptions: e, view: f}; - }); -var _rgrempel$elm_route_url$RouteUrl$AppWithFlags = F6( - function (a, b, c, d, e, f) { - return {delta2url: a, location2messages: b, init: c, update: d, subscriptions: e, view: f}; - }); -var _rgrempel$elm_route_url$RouteUrl$AppCommon = F5( - function (a, b, c, d, e) { - return {delta2url: a, location2messages: b, update: c, subscriptions: d, view: e}; - }); -var _rgrempel$elm_route_url$RouteUrl$UrlChange = F2( - function (a, b) { - return {entry: a, url: b}; - }); -var _rgrempel$elm_route_url$RouteUrl$RouterModel = F2( - function (a, b) { - return {reportedUrl: a, expectedUrlChanges: b}; - }); -var _rgrempel$elm_route_url$RouteUrl$NavigationApp = F5( - function (a, b, c, d, e) { - return {locationToMessage: a, init: b, update: c, view: d, subscriptions: e}; - }); -var _rgrempel$elm_route_url$RouteUrl$NavigationAppWithFlags = F5( - function (a, b, c, d, e) { - return {locationToMessage: a, init: b, update: c, view: d, subscriptions: e}; - }); -var _rgrempel$elm_route_url$RouteUrl$ModifyEntry = {ctor: 'ModifyEntry'}; -var _rgrempel$elm_route_url$RouteUrl$NewEntry = {ctor: 'NewEntry'}; -var _rgrempel$elm_route_url$RouteUrl$WrappedModel = F2( - function (a, b) { - return {ctor: 'WrappedModel', _0: a, _1: b}; - }); -var _rgrempel$elm_route_url$RouteUrl$mapModel = F2( - function (mapper, _p4) { - var _p5 = _p4; - return A2( - _rgrempel$elm_route_url$RouteUrl$WrappedModel, - mapper(_p5._0), - _p5._1); - }); -var _rgrempel$elm_route_url$RouteUrl$UserMsg = function (a) { - return {ctor: 'UserMsg', _0: a}; -}; -var _rgrempel$elm_route_url$RouteUrl$wrapUserMsg = _rgrempel$elm_route_url$RouteUrl$UserMsg; -var _rgrempel$elm_route_url$RouteUrl$view = F2( - function (app, _p6) { - var _p7 = _p6; - return A2( - _elm_lang$html$Html$map, - _rgrempel$elm_route_url$RouteUrl$UserMsg, - app.view(_p7._0)); - }); -var _rgrempel$elm_route_url$RouteUrl$subscriptions = F2( - function (app, _p8) { - var _p9 = _p8; - return A2( - _elm_lang$core$Platform_Sub$map, - _rgrempel$elm_route_url$RouteUrl$UserMsg, - app.subscriptions(_p9._0)); - }); -var _rgrempel$elm_route_url$RouteUrl$initWithFlags = F4( - function (appInit, app, flags, location) { - var routerModel = { - expectedUrlChanges: 0, - reportedUrl: _sporto$erl$Erl$parse(location.href) - }; - var _p10 = A3( - _ccapndave$elm_update_extra$Update_Extra$sequence, - app.update, - app.location2messages(location), - appInit(flags)); - var userModel = _p10._0; - var command = _p10._1; - return { - ctor: '_Tuple2', - _0: A2(_rgrempel$elm_route_url$RouteUrl$WrappedModel, userModel, routerModel), - _1: A2(_elm_lang$core$Platform_Cmd$map, _rgrempel$elm_route_url$RouteUrl$UserMsg, command) - }; - }); -var _rgrempel$elm_route_url$RouteUrl$init = F3( - function (appInit, app, location) { - var routerModel = { - expectedUrlChanges: 0, - reportedUrl: _sporto$erl$Erl$parse(location.href) - }; - var _p11 = A3( - _ccapndave$elm_update_extra$Update_Extra$sequence, - app.update, - app.location2messages(location), - appInit); - var userModel = _p11._0; - var command = _p11._1; - return { - ctor: '_Tuple2', - _0: A2(_rgrempel$elm_route_url$RouteUrl$WrappedModel, userModel, routerModel), - _1: A2(_elm_lang$core$Platform_Cmd$map, _rgrempel$elm_route_url$RouteUrl$UserMsg, command) - }; - }); -var _rgrempel$elm_route_url$RouteUrl$update = F3( - function (app, msg, _p12) { - var _p13 = _p12; - var _p21 = _p13._0; - var _p20 = _p13._1; - var _p14 = msg; - if (_p14.ctor === 'RouterMsg') { - var _p16 = _p14._0; - var newRouterModel = { - reportedUrl: _sporto$erl$Erl$parse(_p16.href), - expectedUrlChanges: (_elm_lang$core$Native_Utils.cmp(_p20.expectedUrlChanges, 0) > 0) ? (_p20.expectedUrlChanges - 1) : 0 - }; - if (_elm_lang$core$Native_Utils.cmp(_p20.expectedUrlChanges, 0) > 0) { - return { - ctor: '_Tuple2', - _0: A2(_rgrempel$elm_route_url$RouteUrl$WrappedModel, _p21, newRouterModel), - _1: _elm_lang$core$Platform_Cmd$none - }; - } else { - var _p15 = A3( - _ccapndave$elm_update_extra$Update_Extra$sequence, - app.update, - app.location2messages(_p16), - {ctor: '_Tuple2', _0: _p21, _1: _elm_lang$core$Platform_Cmd$none}); - var newUserModel = _p15._0; - var commands = _p15._1; - return { - ctor: '_Tuple2', - _0: A2(_rgrempel$elm_route_url$RouteUrl$WrappedModel, newUserModel, newRouterModel), - _1: A2(_elm_lang$core$Platform_Cmd$map, _rgrempel$elm_route_url$RouteUrl$UserMsg, commands) - }; - } - } else { - var _p17 = A2(app.update, _p14._0, _p21); - var newUserModel = _p17._0; - var userCommand = _p17._1; - var maybeUrlChange = A2( - _elm_lang$core$Maybe$andThen, - _rgrempel$elm_route_url$RouteUrl$checkDistinctUrl(_p20.reportedUrl), - A2( - _elm_lang$core$Maybe$map, - _rgrempel$elm_route_url$RouteUrl$normalizeUrl(_p20.reportedUrl), - A2(app.delta2url, _p21, newUserModel))); - var _p18 = maybeUrlChange; - if (_p18.ctor === 'Just') { - var _p19 = _p18._0; - return { - ctor: '_Tuple2', - _0: A2( - _rgrempel$elm_route_url$RouteUrl$WrappedModel, - newUserModel, - { - reportedUrl: _sporto$erl$Erl$parse(_p19.url), - expectedUrlChanges: _p20.expectedUrlChanges + 1 - }), - _1: A2( - _elm_lang$core$Platform_Cmd$map, - _rgrempel$elm_route_url$RouteUrl$UserMsg, - _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _rgrempel$elm_route_url$RouteUrl$urlChange2Cmd(_p19), - _1: { - ctor: '::', - _0: userCommand, - _1: {ctor: '[]'} - } - })) - }; - } else { - return { - ctor: '_Tuple2', - _0: A2(_rgrempel$elm_route_url$RouteUrl$WrappedModel, newUserModel, _p20), - _1: A2(_elm_lang$core$Platform_Cmd$map, _rgrempel$elm_route_url$RouteUrl$UserMsg, userCommand) - }; - } - } - }); -var _rgrempel$elm_route_url$RouteUrl$RouterMsg = function (a) { - return {ctor: 'RouterMsg', _0: a}; -}; -var _rgrempel$elm_route_url$RouteUrl$wrapLocation = _rgrempel$elm_route_url$RouteUrl$RouterMsg; -var _rgrempel$elm_route_url$RouteUrl$navigationApp = function (app) { - var common = _rgrempel$elm_route_url$RouteUrl$app2Common(app); - return { - locationToMessage: _rgrempel$elm_route_url$RouteUrl$RouterMsg, - init: A2(_rgrempel$elm_route_url$RouteUrl$init, app.init, common), - update: _rgrempel$elm_route_url$RouteUrl$update(common), - view: _rgrempel$elm_route_url$RouteUrl$view(common), - subscriptions: _rgrempel$elm_route_url$RouteUrl$subscriptions(common) - }; -}; -var _rgrempel$elm_route_url$RouteUrl$program = function (_p22) { - return _rgrempel$elm_route_url$RouteUrl$runNavigationApp( - _rgrempel$elm_route_url$RouteUrl$navigationApp(_p22)); -}; -var _rgrempel$elm_route_url$RouteUrl$navigationAppWithFlags = function (app) { - var common = _rgrempel$elm_route_url$RouteUrl$appWithFlags2Common(app); - return { - locationToMessage: _rgrempel$elm_route_url$RouteUrl$RouterMsg, - init: A2(_rgrempel$elm_route_url$RouteUrl$initWithFlags, app.init, common), - update: _rgrempel$elm_route_url$RouteUrl$update(common), - view: _rgrempel$elm_route_url$RouteUrl$view(common), - subscriptions: _rgrempel$elm_route_url$RouteUrl$subscriptions(common) - }; -}; -var _rgrempel$elm_route_url$RouteUrl$programWithFlags = function (_p23) { - return _rgrempel$elm_route_url$RouteUrl$runNavigationAppWithFlags( - _rgrempel$elm_route_url$RouteUrl$navigationAppWithFlags(_p23)); -}; - -var _evancz$url_parser$UrlParser$toKeyValuePair = function (segment) { - var _p0 = A2(_elm_lang$core$String$split, '=', segment); - if (((_p0.ctor === '::') && (_p0._1.ctor === '::')) && (_p0._1._1.ctor === '[]')) { - return A3( - _elm_lang$core$Maybe$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _elm_lang$http$Http$decodeUri(_p0._0), - _elm_lang$http$Http$decodeUri(_p0._1._0)); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _evancz$url_parser$UrlParser$parseParams = function (queryString) { - return _elm_lang$core$Dict$fromList( - A2( - _elm_lang$core$List$filterMap, - _evancz$url_parser$UrlParser$toKeyValuePair, - A2( - _elm_lang$core$String$split, - '&', - A2(_elm_lang$core$String$dropLeft, 1, queryString)))); -}; -var _evancz$url_parser$UrlParser$splitUrl = function (url) { - var _p1 = A2(_elm_lang$core$String$split, '/', url); - if ((_p1.ctor === '::') && (_p1._0 === '')) { - return _p1._1; - } else { - return _p1; - } -}; -var _evancz$url_parser$UrlParser$parseHelp = function (states) { - parseHelp: - while (true) { - var _p2 = states; - if (_p2.ctor === '[]') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p4 = _p2._0; - var _p3 = _p4.unvisited; - if (_p3.ctor === '[]') { - return _elm_lang$core$Maybe$Just(_p4.value); - } else { - if ((_p3._0 === '') && (_p3._1.ctor === '[]')) { - return _elm_lang$core$Maybe$Just(_p4.value); - } else { - var _v4 = _p2._1; - states = _v4; - continue parseHelp; - } - } - } - } -}; -var _evancz$url_parser$UrlParser$parse = F3( - function (_p5, url, params) { - var _p6 = _p5; - return _evancz$url_parser$UrlParser$parseHelp( - _p6._0( - { - visited: {ctor: '[]'}, - unvisited: _evancz$url_parser$UrlParser$splitUrl(url), - params: params, - value: _elm_lang$core$Basics$identity - })); - }); -var _evancz$url_parser$UrlParser$parseHash = F2( - function (parser, location) { - return A3( - _evancz$url_parser$UrlParser$parse, - parser, - A2(_elm_lang$core$String$dropLeft, 1, location.hash), - _evancz$url_parser$UrlParser$parseParams(location.search)); - }); -var _evancz$url_parser$UrlParser$parsePath = F2( - function (parser, location) { - return A3( - _evancz$url_parser$UrlParser$parse, - parser, - location.pathname, - _evancz$url_parser$UrlParser$parseParams(location.search)); - }); -var _evancz$url_parser$UrlParser$intParamHelp = function (maybeValue) { - var _p7 = maybeValue; - if (_p7.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p7._0)); - } -}; -var _evancz$url_parser$UrlParser$mapHelp = F2( - function (func, _p8) { - var _p9 = _p8; - return { - visited: _p9.visited, - unvisited: _p9.unvisited, - params: _p9.params, - value: func(_p9.value) - }; - }); -var _evancz$url_parser$UrlParser$State = F4( - function (a, b, c, d) { - return {visited: a, unvisited: b, params: c, value: d}; - }); -var _evancz$url_parser$UrlParser$Parser = function (a) { - return {ctor: 'Parser', _0: a}; -}; -var _evancz$url_parser$UrlParser$s = function (str) { - return _evancz$url_parser$UrlParser$Parser( - function (_p10) { - var _p11 = _p10; - var _p12 = _p11.unvisited; - if (_p12.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p13 = _p12._0; - return _elm_lang$core$Native_Utils.eq(_p13, str) ? { - ctor: '::', - _0: A4( - _evancz$url_parser$UrlParser$State, - {ctor: '::', _0: _p13, _1: _p11.visited}, - _p12._1, - _p11.params, - _p11.value), - _1: {ctor: '[]'} - } : {ctor: '[]'}; - } - }); -}; -var _evancz$url_parser$UrlParser$custom = F2( - function (tipe, stringToSomething) { - return _evancz$url_parser$UrlParser$Parser( - function (_p14) { - var _p15 = _p14; - var _p16 = _p15.unvisited; - if (_p16.ctor === '[]') { - return {ctor: '[]'}; - } else { - var _p18 = _p16._0; - var _p17 = stringToSomething(_p18); - if (_p17.ctor === 'Ok') { - return { - ctor: '::', - _0: A4( - _evancz$url_parser$UrlParser$State, - {ctor: '::', _0: _p18, _1: _p15.visited}, - _p16._1, - _p15.params, - _p15.value(_p17._0)), - _1: {ctor: '[]'} - }; - } else { - return {ctor: '[]'}; - } - } - }); - }); -var _evancz$url_parser$UrlParser$string = A2(_evancz$url_parser$UrlParser$custom, 'STRING', _elm_lang$core$Result$Ok); -var _evancz$url_parser$UrlParser$int = A2(_evancz$url_parser$UrlParser$custom, 'NUMBER', _elm_lang$core$String$toInt); -var _evancz$url_parser$UrlParser_ops = _evancz$url_parser$UrlParser_ops || {}; -_evancz$url_parser$UrlParser_ops[''] = F2( - function (_p20, _p19) { - var _p21 = _p20; - var _p22 = _p19; - return _evancz$url_parser$UrlParser$Parser( - function (state) { - return A2( - _elm_lang$core$List$concatMap, - _p22._0, - _p21._0(state)); - }); - }); -var _evancz$url_parser$UrlParser$map = F2( - function (subValue, _p23) { - var _p24 = _p23; - return _evancz$url_parser$UrlParser$Parser( - function (_p25) { - var _p26 = _p25; - return A2( - _elm_lang$core$List$map, - _evancz$url_parser$UrlParser$mapHelp(_p26.value), - _p24._0( - {visited: _p26.visited, unvisited: _p26.unvisited, params: _p26.params, value: subValue})); - }); - }); -var _evancz$url_parser$UrlParser$oneOf = function (parsers) { - return _evancz$url_parser$UrlParser$Parser( - function (state) { - return A2( - _elm_lang$core$List$concatMap, - function (_p27) { - var _p28 = _p27; - return _p28._0(state); - }, - parsers); - }); -}; -var _evancz$url_parser$UrlParser$top = _evancz$url_parser$UrlParser$Parser( - function (state) { - return { - ctor: '::', - _0: state, - _1: {ctor: '[]'} - }; - }); -var _evancz$url_parser$UrlParser_ops = _evancz$url_parser$UrlParser_ops || {}; -_evancz$url_parser$UrlParser_ops[''] = F2( - function (_p30, _p29) { - var _p31 = _p30; - var _p32 = _p29; - return _evancz$url_parser$UrlParser$Parser( - function (state) { - return A2( - _elm_lang$core$List$concatMap, - _p32._0, - _p31._0(state)); - }); - }); -var _evancz$url_parser$UrlParser$QueryParser = function (a) { - return {ctor: 'QueryParser', _0: a}; -}; -var _evancz$url_parser$UrlParser$customParam = F2( - function (key, func) { - return _evancz$url_parser$UrlParser$QueryParser( - function (_p33) { - var _p34 = _p33; - var _p35 = _p34.params; - return { - ctor: '::', - _0: A4( - _evancz$url_parser$UrlParser$State, - _p34.visited, - _p34.unvisited, - _p35, - _p34.value( - func( - A2(_elm_lang$core$Dict$get, key, _p35)))), - _1: {ctor: '[]'} - }; - }); - }); -var _evancz$url_parser$UrlParser$stringParam = function (name) { - return A2(_evancz$url_parser$UrlParser$customParam, name, _elm_lang$core$Basics$identity); -}; -var _evancz$url_parser$UrlParser$intParam = function (name) { - return A2(_evancz$url_parser$UrlParser$customParam, name, _evancz$url_parser$UrlParser$intParamHelp); -}; - -var _Gizra$circuit_bid$Utils_Urls$userId = A2(_evancz$url_parser$UrlParser$map, _Gizra$circuit_bid$Backend_Entities$UserId, _evancz$url_parser$UrlParser$string); -var _Gizra$circuit_bid$Utils_Urls$saleUuid = A2(_evancz$url_parser$UrlParser$map, _Gizra$elm_restful$Restful_Endpoint$toEntityUuid, _evancz$url_parser$UrlParser$string); -var _Gizra$circuit_bid$Utils_Urls$itemUuid = A2(_evancz$url_parser$UrlParser$map, _Gizra$circuit_bid$Backend_Entities$ItemUuid, _evancz$url_parser$UrlParser$string); -var _Gizra$circuit_bid$Utils_Urls$language = function () { - var parseLanguage = function (string) { - var _p0 = _Gizra$circuit_bid$Translate$languageFromCode(string); - if (_p0.ctor === 'Ok') { - return _elm_lang$core$Maybe$Just(_p0._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }; - return A2(_evancz$url_parser$UrlParser$map, parseLanguage, _evancz$url_parser$UrlParser$string); -}(); -var _Gizra$circuit_bid$Utils_Urls$saleRoomParser = A2( - _evancz$url_parser$UrlParser_ops[''], - _evancz$url_parser$UrlParser$s('sale'), - A2( - _evancz$url_parser$UrlParser_ops[''], - _Gizra$circuit_bid$Utils_Urls$saleUuid, - A2( - _evancz$url_parser$UrlParser_ops[''], - _evancz$url_parser$UrlParser$s('room'), - _Gizra$circuit_bid$Utils_Urls$language))); -var _Gizra$circuit_bid$Utils_Urls$saleRoomHref = F2( - function (language, saleUuid) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/sale/', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid), - A2( - _elm_lang$core$Basics_ops['++'], - '/room/', - _Gizra$circuit_bid$Translate$languageToCode(language)))); - }); -var _Gizra$circuit_bid$Utils_Urls$saleParser = A2( - _evancz$url_parser$UrlParser_ops[''], - _evancz$url_parser$UrlParser$s('sale'), - _Gizra$circuit_bid$Utils_Urls$saleUuid); -var _Gizra$circuit_bid$Utils_Urls$saleHref = function (saleUuid) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/sale/', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid)); -}; -var _Gizra$circuit_bid$Utils_Urls$saleClerkParser = A2( - _evancz$url_parser$UrlParser_ops[''], - _evancz$url_parser$UrlParser$s('sale'), - A2( - _evancz$url_parser$UrlParser_ops[''], - _Gizra$circuit_bid$Utils_Urls$saleUuid, - _evancz$url_parser$UrlParser$s('clerk'))); -var _Gizra$circuit_bid$Utils_Urls$saleClerkHref = function (saleUuid) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/sale/', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid), - '/clerk')); -}; -var _Gizra$circuit_bid$Utils_Urls$saleAuctioneerParser = A2( - _evancz$url_parser$UrlParser_ops[''], - _evancz$url_parser$UrlParser$s('sale'), - A2( - _evancz$url_parser$UrlParser_ops[''], - _Gizra$circuit_bid$Utils_Urls$saleUuid, - _evancz$url_parser$UrlParser$s('auctioneer'))); -var _Gizra$circuit_bid$Utils_Urls$saleAuctioneerHref = function (saleUuid) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/sale/', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid), - '/auctioneer')); -}; -var _Gizra$circuit_bid$Utils_Urls$registerHref = F2( - function (language, siteName) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/register/', - A2( - _elm_lang$core$Basics_ops['++'], - siteName, - A2( - _elm_lang$core$Basics_ops['++'], - '/', - _Gizra$circuit_bid$Translate$languageToCode(language)))); - }); -var _Gizra$circuit_bid$Utils_Urls$notFoundHref = '#/404'; -var _Gizra$circuit_bid$Utils_Urls$logoutHref = '#/logout'; -var _Gizra$circuit_bid$Utils_Urls$getCurrentPageLanguageLink = F2( - function (language, activePage) { - return A2( - _elm_lang$core$Basics_ops['++'], - '?language=', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$circuit_bid$Translate$languageToCode(language), - function () { - var _p1 = activePage; - switch (_p1.ctor) { - case 'Logout': - return _Gizra$circuit_bid$Utils_Urls$logoutHref; - case 'PageNotFound': - return _Gizra$circuit_bid$Utils_Urls$notFoundHref; - case 'Sale': - return _Gizra$circuit_bid$Utils_Urls$saleHref(_p1._0); - case 'SaleAuctioneer': - return _Gizra$circuit_bid$Utils_Urls$saleAuctioneerHref(_p1._0); - case 'SaleClerk': - return _Gizra$circuit_bid$Utils_Urls$saleClerkHref(_p1._0); - case 'SaleRoom': - return A2(_Gizra$circuit_bid$Utils_Urls$saleRoomHref, language, _p1._0); - default: - return ''; - } - }())); - }); -var _Gizra$circuit_bid$Utils_Urls$forgotPasswordHref = F2( - function (language, siteName) { - return A2( - _elm_lang$core$Basics_ops['++'], - '#/forgot-password/', - A2( - _elm_lang$core$Basics_ops['++'], - siteName, - A2( - _elm_lang$core$Basics_ops['++'], - '/', - _Gizra$circuit_bid$Translate$languageToCode(language)))); - }); - -var _Gizra$circuit_bid$App_Router$parseUrl = _evancz$url_parser$UrlParser$oneOf( - { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - A2(_Gizra$circuit_bid$App_Model$SetActivePage, _elm_lang$core$Maybe$Nothing, _Gizra$circuit_bid$App_PageType$Dashboard), - _evancz$url_parser$UrlParser$s('')), - _1: { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - A2(_Gizra$circuit_bid$App_Model$SetActivePage, _elm_lang$core$Maybe$Nothing, _Gizra$circuit_bid$App_PageType$Logout), - _evancz$url_parser$UrlParser$s('logout')), - _1: { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - function (_p0) { - return A2( - _Gizra$circuit_bid$App_Model$SetActivePage, - _elm_lang$core$Maybe$Nothing, - _Gizra$circuit_bid$App_PageType$SaleClerk(_p0)); - }, - _Gizra$circuit_bid$Utils_Urls$saleClerkParser), - _1: { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - F2( - function (saleUuid, lang) { - return A2( - _Gizra$circuit_bid$App_Model$SetActivePage, - lang, - _Gizra$circuit_bid$App_PageType$SaleRoom(saleUuid)); - }), - _Gizra$circuit_bid$Utils_Urls$saleRoomParser), - _1: { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - function (_p1) { - return A2( - _Gizra$circuit_bid$App_Model$SetActivePage, - _elm_lang$core$Maybe$Nothing, - _Gizra$circuit_bid$App_PageType$SaleAuctioneer(_p1)); - }, - _Gizra$circuit_bid$Utils_Urls$saleAuctioneerParser), - _1: { - ctor: '::', - _0: A2( - _evancz$url_parser$UrlParser$map, - function (_p2) { - return A2( - _Gizra$circuit_bid$App_Model$SetActivePage, - _elm_lang$core$Maybe$Nothing, - _Gizra$circuit_bid$App_PageType$Sale(_p2)); - }, - _Gizra$circuit_bid$Utils_Urls$saleParser), - _1: {ctor: '[]'} - } - } - } - } - } - }); -var _Gizra$circuit_bid$App_Router$location2messages = function (location) { - var _p3 = A2(_evancz$url_parser$UrlParser$parseHash, _Gizra$circuit_bid$App_Router$parseUrl, location); - if (_p3.ctor === 'Just') { - return { - ctor: '::', - _0: _p3._0, - _1: {ctor: '[]'} - }; - } else { - return {ctor: '[]'}; - } -}; -var _Gizra$circuit_bid$App_Router$delta2url = F2( - function (previous, current) { - var _p4 = current.activePage; - switch (_p4.ctor) { - case 'AccessDenied': - return _elm_lang$core$Maybe$Nothing; - case 'Logout': - return _elm_lang$core$Maybe$Just( - A2(_rgrempel$elm_route_url$RouteUrl$UrlChange, _rgrempel$elm_route_url$RouteUrl$NewEntry, _Gizra$circuit_bid$Utils_Urls$logoutHref)); - case 'PageNotFound': - return _elm_lang$core$Maybe$Just( - A2(_rgrempel$elm_route_url$RouteUrl$UrlChange, _rgrempel$elm_route_url$RouteUrl$NewEntry, _Gizra$circuit_bid$Utils_Urls$notFoundHref)); - case 'Sale': - return _elm_lang$core$Maybe$Just( - A2( - _rgrempel$elm_route_url$RouteUrl$UrlChange, - _rgrempel$elm_route_url$RouteUrl$NewEntry, - _Gizra$circuit_bid$Utils_Urls$saleHref(_p4._0))); - case 'SaleAuctioneer': - return _elm_lang$core$Maybe$Just( - A2( - _rgrempel$elm_route_url$RouteUrl$UrlChange, - _rgrempel$elm_route_url$RouteUrl$NewEntry, - _Gizra$circuit_bid$Utils_Urls$saleAuctioneerHref(_p4._0))); - case 'SaleClerk': - return _elm_lang$core$Maybe$Just( - A2( - _rgrempel$elm_route_url$RouteUrl$UrlChange, - _rgrempel$elm_route_url$RouteUrl$NewEntry, - _Gizra$circuit_bid$Utils_Urls$saleClerkHref(_p4._0))); - case 'SaleRoom': - return _elm_lang$core$Maybe$Just( - A2( - _rgrempel$elm_route_url$RouteUrl$UrlChange, - _rgrempel$elm_route_url$RouteUrl$NewEntry, - A2(_Gizra$circuit_bid$Utils_Urls$saleRoomHref, current.language, _p4._0))); - default: - return _elm_lang$core$Maybe$Just( - function () { - var _p5 = previous.activePage; - if (_p5.ctor === 'Dashboard') { - return A2(_rgrempel$elm_route_url$RouteUrl$UrlChange, _rgrempel$elm_route_url$RouteUrl$ModifyEntry, '#/'); - } else { - return A2(_rgrempel$elm_route_url$RouteUrl$UrlChange, _rgrempel$elm_route_url$RouteUrl$NewEntry, '#/'); - } - }()); - } - }); - -var _Gizra$circuit_bid$Error_Utils$plainError = F3( - function (module_, location, error) { - return _elm_lang$core$Maybe$Just( - A3( - _Gizra$circuit_bid$Error_Model$Error, - module_, - location, - _Gizra$circuit_bid$Error_Model$Plain(error))); - }); -var _Gizra$circuit_bid$Error_Utils$httpError = F3( - function (module_, location, error) { - return _elm_lang$core$Maybe$Just( - A3( - _Gizra$circuit_bid$Error_Model$Error, - module_, - location, - _Gizra$circuit_bid$Error_Model$Http(error))); - }); -var _Gizra$circuit_bid$Error_Utils$noError = _elm_lang$core$Maybe$Nothing; -var _Gizra$circuit_bid$Error_Utils$maybeHttpError = F3( - function (webdata, module_, location) { - var _p0 = webdata; - if (_p0.ctor === 'Failure') { - return A3(_Gizra$circuit_bid$Error_Utils$httpError, module_, location, _p0._0); - } else { - return _Gizra$circuit_bid$Error_Utils$noError; - } - }); -var _Gizra$circuit_bid$Error_Utils$is401 = function (err) { - var _p1 = err; - if (_p1.ctor === 'BadStatus') { - return _elm_lang$core$Native_Utils.eq(_p1._0.status.code, 401); - } else { - return false; - } -}; -var _Gizra$circuit_bid$Error_Utils$debugLog = function (error) { - var id = A2( - _elm_lang$core$Basics_ops['++'], - error.module_, - A2(_elm_lang$core$Basics_ops['++'], '.', error.location)); - var message = function () { - var _p2 = error.error; - if (_p2.ctor === 'Http') { - return A2(_Gizra$circuit_bid$Utils_WebData$errorString, _Gizra$circuit_bid$Translate$English, _p2._0); - } else { - return _p2._0; - } - }(); - return A2(_elm_lang$core$Debug$log, id, message); -}; - -var _Gizra$circuit_bid$Sale_Utils$getRoundAndBumpTimeFromAutoClerk = function (autoClerk) { - var _p0 = autoClerk; - if (_p0.ctor === 'AutoClerkEnabled') { - return _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: _p0._0, _1: _p0._1}); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$circuit_bid$Sale_Utils$isAutoClerkEnabled = function (autoClerk) { - var _p1 = autoClerk; - if (_p1.ctor === 'AutoClerkDisabled') { - return false; - } else { - return true; - } -}; -var _Gizra$circuit_bid$Sale_Utils$getPublicItemsJsonUrl = F5( - function (language, baseUrl, saleRevision, sessionDelta, sessionIndex) { - return A2( - _elm_lang$core$Basics_ops['++'], - baseUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(saleRevision), - A2( - _elm_lang$core$Basics_ops['++'], - '/session', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(sessionDelta), - A2( - _elm_lang$core$Basics_ops['++'], - '-batch', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(sessionIndex), - A2( - _elm_lang$core$Basics_ops['++'], - '-', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$circuit_bid$Translate$languageToCode(language), - '.json'))))))))); - }); -var _Gizra$circuit_bid$Sale_Utils$getActiveSession = function (sale) { - return A2(_Gizra$elm_dictlist$EveryDictList$get, sale.session, sale.sessions); -}; -var _Gizra$circuit_bid$Sale_Utils$constructPublicUrls = F2( - function (language, sale) { - return A2(_elm_lang$core$List$member, language, sale.languages) ? A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - {ctor: '[]'}, - function (session) { - return A2( - _elm_lang$core$List$map, - function (sessionIndex) { - return A5(_Gizra$circuit_bid$Sale_Utils$getPublicItemsJsonUrl, language, sale.baseUrl, sale.revision, session.delta, sessionIndex); - }, - A2(_elm_lang$core$List$range, 0, session.batchCount - 1)); - }, - _Gizra$circuit_bid$Sale_Utils$getActiveSession(sale)) : {ctor: '[]'}; - }); -var _Gizra$circuit_bid$Sale_Utils$PublicUrlOptions = F5( - function (a, b, c, d, e) { - return {languages: a, baseUrl: b, itemCount: c, itemBatchSize: d, saleRevision: e}; - }); - -var _Gizra$circuit_bid$App_Utils$decodeLanguageCode = function (langCode) { - var _p0 = langCode; - switch (_p0) { - case 'en': - return _Gizra$circuit_bid$Translate$English; - case 'de': - return _Gizra$circuit_bid$Translate$German; - case 'zh-hans': - return _Gizra$circuit_bid$Translate$Chinese; - case 'he': - return _Gizra$circuit_bid$Translate$Hebrew; - case 'nl': - return _Gizra$circuit_bid$Translate$Dutch; - case 'ru': - return _Gizra$circuit_bid$Translate$Russian; - case 'fr': - return _Gizra$circuit_bid$Translate$French; - default: - return _Gizra$circuit_bid$Translate$English; - } -}; -var _Gizra$circuit_bid$App_Utils$getTickFrequency = function (model) { - var getFrequency = F2( - function (page, $default) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - 10, - function (sale) { - return _Gizra$circuit_bid$Sale_Utils$isAutoClerkEnabled(sale.autoClerk) ? 1 : $default; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(page.sale)); - }); - var _p1 = model.activePage; - switch (_p1.ctor) { - case 'Sale': - return A2(getFrequency, model.pageSale, 3); - case 'SaleAuctioneer': - return A2(getFrequency, model.pageAuctioneer, 10); - case 'SaleClerk': - return A2(getFrequency, model.pageClerk, 10); - default: - return 10; - } -}; -var _Gizra$circuit_bid$App_Utils$handleErrors = F2( - function (maybeError, model) { - var errors = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model.errors, - function (error) { - var _p2 = _Gizra$circuit_bid$Error_Utils$debugLog(error); - return {ctor: '::', _0: error, _1: model.errors}; - }, - maybeError); - return _elm_lang$core$Native_Utils.update( - model, - {errors: errors}); - }); -var _Gizra$circuit_bid$App_Utils$pageAfterLogout = F2( - function (activePage, siteShortName) { - var _p3 = activePage; - switch (_p3.ctor) { - case 'Sale': - return _Gizra$circuit_bid$App_PageType$Sale(_p3._0); - case 'SaleAuctioneer': - return _Gizra$circuit_bid$App_PageType$Sale(_p3._0); - case 'SaleClerk': - return _Gizra$circuit_bid$App_PageType$Sale(_p3._0); - case 'SaleRoom': - return _Gizra$circuit_bid$App_PageType$Sale(_p3._0); - default: - return _Gizra$circuit_bid$App_PageType$Dashboard; - } - }); -var _Gizra$circuit_bid$App_Utils$dispatchKeyboardEvent = F2( - function (model, keyEvent) { - var _p4 = model.activePage; - if (_p4.ctor === 'SaleClerk') { - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$App_Model$MsgPagesClerk( - A2(_Gizra$circuit_bid$Pages_Clerk_Model$HandleKeyboardEvent, _p4._0, keyEvent))); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _Gizra$circuit_bid$App_Utils$currentSaleUuid = function (activePage) { - var _p5 = activePage; - switch (_p5.ctor) { - case 'Sale': - return _elm_lang$core$Maybe$Just(_p5._0); - case 'SaleClerk': - return _elm_lang$core$Maybe$Just(_p5._0); - case 'SaleRoom': - return _elm_lang$core$Maybe$Just(_p5._0); - case 'SaleAuctioneer': - return _elm_lang$core$Maybe$Just(_p5._0); - default: - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$circuit_bid$App_Utils$currentSale = function (model) { - return _krisajenkins$remotedata$RemoteData$toMaybe( - function () { - var _p6 = model.activePage; - switch (_p6.ctor) { - case 'Sale': - return model.pageSale.sale; - case 'SaleAuctioneer': - return model.pageClerk.sale; - case 'SaleClerk': - return model.pageClerk.sale; - case 'SaleRoom': - return model.pageSale.sale; - default: - return _krisajenkins$remotedata$RemoteData$NotAsked; - } - }()); -}; - -var _Gizra$circuit_bid$Backend_Decoder$decodeUserId = A2( - _elm_lang$core$Json_Decode$map, - function (_p0) { - return _Gizra$circuit_bid$Backend_Entities$UserId( - _elm_lang$core$Basics$toString(_p0)); - }, - _Gizra$circuit_bid$Utils_Json$decodeInt); -var _Gizra$circuit_bid$Backend_Decoder$decodeItemId = A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Backend_Entities$ItemId, _Gizra$circuit_bid$Utils_Json$decodeInt); -var _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid = A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Backend_Entities$ItemUuid, _elm_lang$core$Json_Decode$string); - -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode = _elm_lang$core$Json_Decode$succeed; -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$resolve = _elm_lang$core$Json_Decode$andThen(_elm_lang$core$Basics$identity); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom = F2( - function (decoder, wrapped) { - return A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (x, y) { - return x(y); - }), - wrapped, - decoder); - }); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$hardcoded = function (_p0) { - return _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom( - _elm_lang$core$Json_Decode$succeed(_p0)); -}; -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optionalDecoder = F3( - function (pathDecoder, valDecoder, fallback) { - var nullOr = function (decoder) { - return _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: decoder, - _1: { - ctor: '::', - _0: _elm_lang$core$Json_Decode$null(fallback), - _1: {ctor: '[]'} - } - }); - }; - var handleResult = function (input) { - var _p1 = A2(_elm_lang$core$Json_Decode$decodeValue, pathDecoder, input); - if (_p1.ctor === 'Ok') { - var _p2 = A2( - _elm_lang$core$Json_Decode$decodeValue, - nullOr(valDecoder), - _p1._0); - if (_p2.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(_p2._0); - } else { - return _elm_lang$core$Json_Decode$fail(_p2._0); - } - } else { - var _p3 = A2( - _elm_lang$core$Json_Decode$decodeValue, - _elm_lang$core$Json_Decode$keyValuePairs(_elm_lang$core$Json_Decode$value), - input); - if (_p3.ctor === 'Ok') { - return _elm_lang$core$Json_Decode$succeed(fallback); - } else { - return _elm_lang$core$Json_Decode$fail(_p3._0); - } - } - }; - return A2(_elm_lang$core$Json_Decode$andThen, handleResult, _elm_lang$core$Json_Decode$value); - }); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optionalAt = F4( - function (path, valDecoder, fallback, decoder) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optionalDecoder, - A2(_elm_lang$core$Json_Decode$at, path, _elm_lang$core$Json_Decode$value), - valDecoder, - fallback), - decoder); - }); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional = F4( - function (key, valDecoder, fallback, decoder) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optionalDecoder, - A2(_elm_lang$core$Json_Decode$field, key, _elm_lang$core$Json_Decode$value), - valDecoder, - fallback), - decoder); - }); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt = F3( - function (path, valDecoder, decoder) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2(_elm_lang$core$Json_Decode$at, path, valDecoder), - decoder); - }); -var _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required = F3( - function (key, valDecoder, decoder) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2(_elm_lang$core$Json_Decode$field, key, valDecoder), - decoder); - }); - -var _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeAmountRestrictionType = A2( - _elm_lang$core$Json_Decode$andThen, - function (_p0) { - var _p1 = _p0; - return _elm_lang$core$Json_Decode$succeed( - _eeue56$elm_all_dict$EveryDict$fromList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit, _1: _p1._0}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$MailCredit, _1: _p1._1}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid, _1: _p1._2}, - _1: {ctor: '[]'} - } - } - })); - }, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'max_bid', - _Gizra$circuit_bid$Amount$decodeAmountRestriction, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'mail_credit', - _Gizra$circuit_bid$Amount$decodeAmountRestriction, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'live_credit', - _Gizra$circuit_bid$Amount$decodeAmountRestriction, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F3( - function (v0, v1, v2) { - return {ctor: '_Tuple3', _0: v0, _1: v1, _2: v2}; - })))))); -var _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeBidderNumber = function () { - var wrap = function (tag) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (bidderNumber) { - return _elm_lang$core$Json_Decode$succeed( - tag(bidderNumber)); - }, - A2(_elm_lang$core$Json_Decode$field, 'bidder_number', _Gizra$elm_essentials$Gizra_Json$decodeInt)); - }; - return A2( - _elm_lang$core$Json_Decode$andThen, - function (bidderType) { - var _p2 = bidderType; - switch (_p2) { - case 'external': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$External); - case 'floor': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$Floor); - case 'floor_by_agent': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$FloorByAgent); - case 'mail': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$Mail); - case 'phone': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$Phone); - case 'website': - return wrap(_Gizra$circuit_bid$Backend_BidderInfo_Model$Website); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], bidderType, ' is not a recognized \'bidder_type\'.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'bidder_type', _elm_lang$core$Json_Decode$string)); -}(); -var _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeBidderInfo = A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'user_name', - _elm_lang$core$Json_Decode$maybe(_elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'user_id', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Backend_Decoder$decodeUserId), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'total_spent', - _Gizra$circuit_bid$Amount$decodeAmount, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeAmountRestrictionType, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'agent', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Backend_Decoder$decodeUserId), - _elm_lang$core$Maybe$Nothing, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeBidderNumber, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Backend_BidderInfo_Model$BidderInfo))))))); - -var _Gizra$circuit_bid$Backend_BidderInfo_Encoder$encodeBidderInfo = function (entity) { - var maxBid = { - ctor: '_Tuple2', - _0: 'max_bid', - _1: _Gizra$circuit_bid$Amount$encodeAmountRestriction( - A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Amount$Unlimited, - A2(_eeue56$elm_all_dict$EveryDict$get, _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid, entity.amountRestrictions))) - }; - var _p0 = entity.bidderNumber; - switch (_p0.ctor) { - case 'Mail': - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: maxBid, - _1: {ctor: '[]'} - }); - case 'Website': - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: maxBid, - _1: {ctor: '[]'} - }); - default: - return _elm_lang$core$Json_Encode$object( - {ctor: '[]'}); - } -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Encoder$encodeBidderInfoParams = function (params) { - var pageNumber = (_elm_lang$core$Native_Utils.cmp(params.pageNumber, 1) > 0) ? { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'page', - _1: _elm_lang$core$Basics$toString(params.pageNumber) - }, - _1: {ctor: '[]'} - } : {ctor: '[]'}; - return A2( - _elm_lang$core$List$append, - pageNumber, - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(params.saleUuid) - }, - _1: {ctor: '[]'} - }); -}; - -var _Gizra$circuit_bid$Backend_BidderInfo_Endpoint$endpoint = A2( - _Gizra$elm_restful$Restful_Endpoint$withParamsEncoder, - _Gizra$circuit_bid$Backend_BidderInfo_Encoder$encodeBidderInfoParams, - A2( - _Gizra$elm_restful$Restful_Endpoint$withValueEncoder, - _Gizra$circuit_bid$Backend_BidderInfo_Encoder$encodeBidderInfo, - A2(_Gizra$elm_restful$Restful_Endpoint$drupalEndpoint, 'api/bidder_ids', _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeBidderInfo))); - -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber = function (entity) { - var _p0 = entity.bidderNumber; - switch (_p0.ctor) { - case 'External': - return _p0._0; - case 'Floor': - return _p0._0; - case 'FloorByAgent': - return _p0._0; - case 'Mail': - return _p0._0; - case 'Phone': - return _p0._0; - default: - return _p0._0; - } -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$isWebsite = function (entity) { - var _p1 = entity.bidderNumber; - if (_p1.ctor === 'Website') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$isPhone = function (entity) { - var _p2 = entity.bidderNumber; - if (_p2.ctor === 'Phone') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$isFloorByAgent = function (entity) { - var _p3 = entity.bidderNumber; - if (_p3.ctor === 'FloorByAgent') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$generateBiddersInfoDictByUserId = F2( - function (saleUuid, bidderInfo) { - return A2( - _elm_lang$core$Maybe$withDefault, - _eeue56$elm_all_dict$EveryDict$empty, - A2( - _elm_lang$core$Maybe$map, - function (_p4) { - return _eeue56$elm_all_dict$EveryDict$fromList( - A2( - _elm_lang$core$List$filterMap, - function (value) { - return A2( - _elm_lang$core$Maybe$map, - function (userId) { - return {ctor: '_Tuple2', _0: userId, _1: value}; - }, - value.userId); - }, - A2( - _elm_lang$core$List$map, - function (_p5) { - return _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(_p5)); - }, - _Gizra$elm_dictlist$EveryDictList$values( - function (_) { - return _.data; - }(_p4))))); - }, - A2( - _elm_lang$core$Maybe$andThen, - _krisajenkins$remotedata$RemoteData$toMaybe, - A2(_eeue56$elm_all_dict$EveryDict$get, saleUuid, bidderInfo)))); - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfoEditable = F3( - function (modelBackend, saleUuid, bidderInfoId) { - return A3(_Gizra$circuit_bid$PaginatedData$get, saleUuid, bidderInfoId, modelBackend.bidderInfo); - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfo = F3( - function (modelBackend, saleUuid, bidderInfoId) { - return A2( - _elm_lang$core$Maybe$andThen, - function (editable) { - return _elm_lang$core$Maybe$Just( - _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable))); - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfoEditable, modelBackend, saleUuid, bidderInfoId)); - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$getWebsiteBidderInfo = F3( - function (modelBackend, saleUuid, user) { - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - _elm_lang$core$Maybe$Nothing, - user, - function (authUser) { - return A2( - _elm_lang$core$Maybe$andThen, - function (bidderInfoId) { - return A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfo, modelBackend, saleUuid, bidderInfoId); - }, - A2(_eeue56$elm_all_dict$EveryDict$get, saleUuid, authUser.websiteBidderInfo)); - }); - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber = F3( - function (modelBackend, saleUuid, bidderNumber) { - return A2( - _elm_lang$core$Maybe$andThen, - function (bidderInfoId) { - return A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfo, modelBackend, saleUuid, bidderInfoId); - }, - A2(_elm_lang$core$Dict$get, bidderNumber, modelBackend.bidderInfoByBidderNumber)); - }); -var _Gizra$circuit_bid$Backend_BidderInfo_Utils$insertBidderInfoByBidderNumber = F2( - function (identifier, dict) { - var existingData = A2( - _elm_lang$core$Maybe$withDefault, - _krisajenkins$remotedata$RemoteData$NotAsked, - A2(_eeue56$elm_all_dict$EveryDict$get, identifier, dict)); - var existingDataAndPager = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$PaginatedData$emptyPaginatedData, - _krisajenkins$remotedata$RemoteData$toMaybe(existingData)); - return A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (entityId, editable, accum) { - var entity = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var number = _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(entity); - return A3(_elm_lang$core$Dict$insert, number, entityId, accum); - }), - _elm_lang$core$Dict$empty, - existingDataAndPager.data); - }); - -var _Gizra$circuit_bid$Backend_BidderInfo_Update$update = F4( - function (backendUrl, accessToken, msg, model) { - var noChange = { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - var _p0 = msg; - switch (_p0.ctor) { - case 'Fetch': - var _p4 = _p0._1; - var _p3 = _p0._0; - var tagger = function (_p1) { - return A3( - _Gizra$circuit_bid$Backend_BidderInfo_Model$HandleFetch, - _p3, - _p4, - A2( - _krisajenkins$remotedata$RemoteData$map, - _elm_lang$core$Tuple$mapFirst(_Gizra$elm_dictlist$EveryDictList$fromList), - _krisajenkins$remotedata$RemoteData$fromResult(_p1))); - }; - var cmd = A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p2) { - return tagger( - A2( - _elm_lang$core$Result$map, - function (query) { - return {ctor: '_Tuple2', _0: query.items, _1: query.count}; - }, - _p2)); - }, - A2( - _Gizra$elm_restful$Restful_Endpoint$withAccessToken, - accessToken, - A3( - _Gizra$elm_restful$Restful_Endpoint$select, - backendUrl, - _Gizra$circuit_bid$Backend_BidderInfo_Endpoint$endpoint, - A2(_Gizra$circuit_bid$Backend_BidderInfo_Model$BidderInfoParams, _p3, _p4)))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - bidderInfo: A3(_Gizra$circuit_bid$PaginatedData$setPageAsLoading, _p3, _p4, model.bidderInfo) - }), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'HandleFetch': - var _p11 = _p0._2; - var _p10 = _p0._0; - var updated = A8( - _Gizra$circuit_bid$PaginatedData$insertMultiple, - _p10, - _p0._1, - _p11, - _Gizra$elm_restful$Restful_Endpoint$toEntityId, - function (_p5) { - var _p6 = _p5; - return _elm_lang$core$Maybe$Just(_p6._0); - }, - F3( - function (itemId, item, accum) { - return A3( - _Gizra$elm_dictlist$EveryDictList$insert, - itemId, - _Gizra$elm_editable_webdata$Editable_WebData$create(item), - accum); - }), - F3( - function (itemId, item, _p7) { - var _p8 = _p7; - var _p9 = _p8._0; - return { - ctor: '_Tuple2', - _0: _p9, - _1: A4( - _Gizra$elm_dictlist$EveryDictList$insertAfter, - _p9, - itemId, - _Gizra$elm_editable_webdata$Editable_WebData$create(item), - _p8._1) - }; - }), - model.bidderInfo); - var bidderInfoByBidderNumber = A2(_Gizra$circuit_bid$Backend_BidderInfo_Utils$insertBidderInfoByBidderNumber, _p10, updated); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated, bidderInfoByBidderNumber: bidderInfoByBidderNumber}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p11, 'Backend.BidderInfo.Update', 'HandleFetch'), - _3: {ctor: '[]'} - }; - case 'HandleSave': - var _p15 = _p0._2; - var _p14 = _p0._0; - var _p13 = _p0._1; - var updated = function () { - var _p12 = _p15; - switch (_p12.ctor) { - case 'Success': - return A4( - _Gizra$circuit_bid$PaginatedData$update, - _p14, - _p13, - _elm_lang$core$Basics$always( - A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}), - _Gizra$elm_editable_webdata$Editable_WebData$create(_p12._0))), - model.bidderInfo); - case 'Failure': - return A4( - _Gizra$circuit_bid$PaginatedData$update, - _p14, - _p13, - function (editable) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Failure(_p12._0), - editable); - }, - model.bidderInfo); - default: - return model.bidderInfo; - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p15, 'Backend.BidderInfo.Update', 'HandleSave'), - _3: {ctor: '[]'} - }; - case 'Save': - var _p18 = _p0._0; - var _p17 = _p0._1; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (editable) { - var updated = A4( - _Gizra$circuit_bid$PaginatedData$update, - _p18, - _p17, - function (editable) { - return A2(_Gizra$elm_editable_webdata$Editable_WebData$state, _krisajenkins$remotedata$RemoteData$Loading, editable); - }, - model.bidderInfo); - var entity = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var cmd = A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p16) { - return A3( - _Gizra$circuit_bid$Backend_BidderInfo_Model$HandleSave, - _p18, - _p17, - _krisajenkins$remotedata$RemoteData$fromResult(_p16)); - }, - A2( - _Gizra$elm_restful$Restful_Endpoint$withAccessToken, - accessToken, - A4(_Gizra$elm_restful$Restful_Endpoint$patchFull, backendUrl, _Gizra$circuit_bid$Backend_BidderInfo_Endpoint$endpoint, _p17, entity))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getBidderInfoEditable, model, _p18, _p17)); - case 'SetSelectedAmountRestriction': - var updated = A4( - _Gizra$circuit_bid$PaginatedData$update, - _p0._0, - _p0._1, - function (editable) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - function (_p19) { - return A2( - _stoeffel$editable$Editable$map, - function (val) { - return _elm_lang$core$Native_Utils.update( - val, - { - amountRestrictions: A3(_eeue56$elm_all_dict$EveryDict$insert, _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid, _p0._2, val.amountRestrictions) - }); - }, - _stoeffel$editable$Editable$edit(_p19)); - }, - editable); - }, - model.bidderInfo); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - default: - var _p23 = _p0._0; - var _p22 = _p0._1._0; - var _p21 = _p0._1._1; - var existing = A3(_Gizra$circuit_bid$PaginatedData$get, _p23, _p22, model.bidderInfo); - var modelUpdated = function () { - var _p20 = existing; - if (_p20.ctor === 'Nothing') { - var updated = A3( - _Gizra$circuit_bid$PaginatedData$insertDirectlyFromClient, - _p23, - { - ctor: '_Tuple2', - _0: _p22, - _1: _Gizra$elm_editable_webdata$Editable_WebData$create(_p21) - }, - model.bidderInfo); - var bidderInfoByBidderNumber = A2(_Gizra$circuit_bid$Backend_BidderInfo_Utils$insertBidderInfoByBidderNumber, _p23, updated); - return _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated, bidderInfoByBidderNumber: bidderInfoByBidderNumber}); - } else { - var updated = A4( - _Gizra$circuit_bid$PaginatedData$update, - _p23, - _p22, - _elm_lang$core$Basics$always( - _Gizra$elm_editable_webdata$Editable_WebData$create(_p21)), - model.bidderInfo); - return _elm_lang$core$Native_Utils.update( - model, - {bidderInfo: updated}); - } - }(); - return { - ctor: '_Tuple4', - _0: modelUpdated, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } - }); - -var _Gizra$circuit_bid$Backend_ConnectedUser_Utils$isPlaceBidHover = F2( - function (modelBackend, bidderInfo) { - var number = _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo); - return A2( - _elm_lang$core$Maybe$withDefault, - false, - A2( - _elm_lang$core$Maybe$andThen, - function (status) { - return _elm_lang$core$Maybe$Just( - function () { - var _p0 = status; - if (_p0.ctor === 'PlaceBidHover') { - return true; - } else { - return false; - } - }()); - }, - A2(_eeue56$elm_all_dict$EveryDict$get, number, modelBackend.connectedUsers))); - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_Utils$isPresent = F2( - function (modelBackend, bidderInfo) { - if (A2(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$isPlaceBidHover, modelBackend, bidderInfo)) { - return true; - } else { - var number = _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo); - return A2( - _elm_lang$core$Maybe$withDefault, - false, - A2( - _elm_lang$core$Maybe$andThen, - function (status) { - return _elm_lang$core$Maybe$Just( - function () { - var _p1 = status; - if (_p1.ctor === 'Present') { - return true; - } else { - return false; - } - }()); - }, - A2(_eeue56$elm_all_dict$EveryDict$get, number, modelBackend.connectedUsers))); - } - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_Utils$statusStillValid = F3( - function (currentDate, date, miliseconds) { - return _elm_lang$core$Native_Utils.cmp( - _elm_lang$core$Date$toTime(currentDate) - miliseconds, - _elm_lang$core$Date$toTime(date)) < 1; - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_Utils$processStatus = F2( - function (currentDate, status) { - processStatus: - while (true) { - var _p2 = status; - if (_p2.ctor === 'Present') { - return A3(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$statusStillValid, currentDate, _p2._0, 130 * _elm_lang$core$Time$second) ? _elm_lang$core$Maybe$Just(status) : _elm_lang$core$Maybe$Nothing; - } else { - var _p3 = _p2._0; - if (A3(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$statusStillValid, currentDate, _p3, 15 * _elm_lang$core$Time$second)) { - return _elm_lang$core$Maybe$Just(status); - } else { - var _v3 = currentDate, - _v4 = _Gizra$circuit_bid$Backend_ConnectedUser_Model$Present(_p3); - currentDate = _v3; - status = _v4; - continue processStatus; - } - } - } - }); - -var _Gizra$circuit_bid$Backend_ConnectedUser_Update$update = F3( - function (date, msg, model) { - var _p0 = msg; - if (_p0.ctor === 'ProcessConnectedUserStatus') { - var updated = A3( - _eeue56$elm_all_dict$EveryDict$foldl, - F3( - function (bidderInfoId, status, accum) { - var _p1 = A2(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$processStatus, date, status); - if (_p1.ctor === 'Nothing') { - return A2(_eeue56$elm_all_dict$EveryDict$remove, bidderInfoId, accum); - } else { - return A3(_eeue56$elm_all_dict$EveryDict$insert, bidderInfoId, _p1._0, accum); - } - }), - _eeue56$elm_all_dict$EveryDict$empty, - model.connectedUsers); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {connectedUsers: updated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - connectedUsers: A3(_eeue56$elm_all_dict$EveryDict$insert, _p0._0, _p0._1, model.connectedUsers) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } - }); - -var _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (val) { - var _p0 = val; - switch (_p0) { - case 'pending': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Backend_CreditRequest_Model$Pending); - case 'approved': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Backend_CreditRequest_Model$Approved); - case 'rejected': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Backend_CreditRequest_Model$Rejected); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status: ', val)); - } - }, - _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeCreditRequest = A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'user', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Backend_Decoder$decodeUserId), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'user_uuid', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'status', - _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeStatus, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'amount', - _Gizra$circuit_bid$Amount$decodeAmountRestriction, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Backend_CreditRequest_Model$CreditRequest))))); - -var _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreditRequestParams = function (params) { - return A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(params.saleUuid) - }, - _1: {ctor: '[]'} - }, - function () { - var _p0 = params.userUuid; - if (_p0.ctor === 'Just') { - return { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'user_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p0._0) - }, - _1: {ctor: '[]'} - }; - } else { - return {ctor: '[]'}; - } - }()); -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreateInfo = function (info) { - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(info.saleUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'user_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(info.userUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'amount', - _1: _Gizra$circuit_bid$Amount$encodeAmount(info.amount) - }, - _1: {ctor: '[]'} - } - } - }); -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeStatus = function (status) { - return _elm_lang$core$Json_Encode$string( - function () { - var _p1 = status; - switch (_p1.ctor) { - case 'Pending': - return 'pending'; - case 'Approved': - return 'approved'; - default: - return 'rejected'; - } - }()); -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreditRequest = function (creditRequest) { - var _p2 = creditRequest.credit; - if (_p2.ctor === 'Regular') { - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'amount', - _1: _Gizra$circuit_bid$Amount$encodeAmount(_p2._0) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'status', - _1: _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeStatus(creditRequest.status) - }, - _1: {ctor: '[]'} - } - }); - } else { - return _elm_lang$core$Json_Encode$object( - {ctor: '[]'}); - } -}; - -var _Gizra$circuit_bid$Backend_CreditRequest_Endpoint$endpoint = A2( - _Gizra$elm_restful$Restful_Endpoint$withParamsEncoder, - _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreditRequestParams, - A2( - _Gizra$elm_restful$Restful_Endpoint$withCreatedEncoder, - _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreateInfo, - A2( - _Gizra$elm_restful$Restful_Endpoint$withValueEncoder, - _Gizra$circuit_bid$Backend_CreditRequest_Encoder$encodeCreditRequest, - A2(_Gizra$elm_restful$Restful_Endpoint$drupalEndpoint, 'api/credit_requests', _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeCreditRequest)))); - -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$get = F2( - function (storageKey, webData) { - return A2( - _elm_lang$core$Maybe$andThen, - function (dict) { - return A2(_Gizra$elm_dictlist$EveryDictList$get, storageKey, dict); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(webData)); - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$isPending = function (editable) { - var value = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - return _elm_lang$core$Native_Utils.eq(value.status, _Gizra$circuit_bid$Backend_CreditRequest_Model$Pending); -}; -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$getPendingOrNew = F2( - function (userUuid, dict) { - var maybeNew = A2( - _elm_lang$core$Maybe$andThen, - function (val) { - return _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: _Gizra$elm_storage_key$StorageKey$New, _1: val}); - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, _Gizra$elm_storage_key$StorageKey$New, dict)); - var maybeExisting = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (storageKey, editable, accum) { - return _elm_community$maybe_extra$Maybe_Extra$isJust(accum) ? accum : (_Gizra$circuit_bid$Backend_CreditRequest_Utils$isPending(editable) ? _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: storageKey, _1: editable}) : accum); - }), - _elm_lang$core$Maybe$Nothing, - dict); - return A2( - _elm_lang$core$Maybe$withDefault, - { - ctor: '_Tuple2', - _0: _Gizra$elm_storage_key$StorageKey$New, - _1: _Gizra$elm_editable_webdata$Editable_WebData$create( - _Gizra$circuit_bid$Backend_CreditRequest_Model$emptyCreditRequest(userUuid)) - }, - A2(_elm_community$maybe_extra$Maybe_Extra$or, maybeExisting, maybeNew)); - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$update = F3( - function (storageKey, func, dict) { - return A2( - _krisajenkins$remotedata$RemoteData$map, - function (dict) { - var _p0 = A2(_Gizra$elm_dictlist$EveryDictList$get, storageKey, dict); - if (_p0.ctor === 'Nothing') { - return dict; - } else { - return A3( - _Gizra$elm_dictlist$EveryDictList$insert, - storageKey, - func(_p0._0), - dict); - } - }, - dict); - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$insert = F3( - function (userUuid, webData, dict) { - var _p1 = webData; - _v1_2: - do { - switch (_p1.ctor) { - case 'Success': - if (_p1._0.ctor === '_Tuple2') { - var existingItems = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$elm_dictlist$EveryDictList$empty, - _krisajenkins$remotedata$RemoteData$toMaybe(dict)); - var existingItemsUpdated = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - _Gizra$elm_dictlist$EveryDictList$insert, - A2( - _Gizra$elm_dictlist$EveryDictList$singleton, - _Gizra$elm_storage_key$StorageKey$Existing(_p1._0._0), - _Gizra$elm_editable_webdata$Editable_WebData$create(_p1._0._1)), - existingItems); - var itemsFinal = A2(_Gizra$elm_dictlist$EveryDictList$member, _Gizra$elm_storage_key$StorageKey$New, existingItemsUpdated) ? existingItemsUpdated : A3( - _Gizra$elm_dictlist$EveryDictList$insert, - _Gizra$elm_storage_key$StorageKey$New, - _Gizra$elm_editable_webdata$Editable_WebData$create( - _Gizra$circuit_bid$Backend_CreditRequest_Model$emptyCreditRequest(userUuid)), - existingItemsUpdated); - return _krisajenkins$remotedata$RemoteData$Success(itemsFinal); - } else { - break _v1_2; - } - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure(_p1._0); - default: - break _v1_2; - } - } while(false); - return dict; - }); -var _Gizra$circuit_bid$Backend_CreditRequest_Utils$insertMultiple = F3( - function (userUuid, webData, dict) { - var _p2 = webData; - _v2_2: - do { - switch (_p2.ctor) { - case 'Success': - if (_p2._0.ctor === '_Tuple2') { - var _p3 = _p2._0._0; - return _Gizra$elm_dictlist$EveryDictList$isEmpty(_p3) ? _krisajenkins$remotedata$RemoteData$Success(_Gizra$elm_dictlist$EveryDictList$empty) : A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (key, value, accum) { - return A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$insert, - userUuid, - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: key, _1: value}), - accum); - }), - dict, - _p3); - } else { - break _v2_2; - } - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure(_p2._0); - default: - break _v2_2; - } - } while(false); - return dict; - }); - -var _Gizra$circuit_bid$Backend_CreditRequest_Update$update = F5( - function (backendUrl, accessToken, user, msg, model) { - var crud = A2( - _Gizra$elm_restful$Restful_Endpoint$applyAccessToken, - accessToken, - _Gizra$elm_restful$Restful_Endpoint$applyBackendUrl(backendUrl)); - var noChange = { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - var _p0 = msg; - switch (_p0.ctor) { - case 'Fetch': - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - var cmd = A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p1) { - return _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleFetch( - A2( - _krisajenkins$remotedata$RemoteData$map, - function (result) { - return { - ctor: '_Tuple2', - _0: _Gizra$elm_dictlist$EveryDictList$fromList(result.items), - _1: result.count - }; - }, - _krisajenkins$remotedata$RemoteData$fromResult(_p1))); - }, - A2( - crud.select, - _Gizra$circuit_bid$Backend_CreditRequest_Endpoint$endpoint, - {saleUuid: _p0._0, userUuid: _p0._1})); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: _krisajenkins$remotedata$RemoteData$Loading}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - }); - case 'HandleCreate': - var _p2 = _p0._0; - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - creditRequests: A3(_Gizra$circuit_bid$Backend_CreditRequest_Utils$insert, authUser.uuid, _p2, model.creditRequests) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p2, 'Backend.CreditRequest.Update', 'HandleCreate'), - _3: {ctor: '[]'} - }; - }); - case 'HandleCreateForPrivileged': - var _p3 = _p0._1; - var webData = _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: _p0._0, _1: _p3}); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - creditRequests: A3(_Gizra$circuit_bid$Backend_CreditRequest_Utils$insert, _p3.userUuid, webData, model.creditRequests) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, webData, 'Backend.CreditRequest.Update', 'HandleCreateForPrivileged'), - _3: {ctor: '[]'} - }; - case 'HandleUpdate': - var _p6 = _p0._1; - var _p5 = _p0._0; - var updated = function () { - var _p4 = _p6; - switch (_p4.ctor) { - case 'Success': - return A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$update, - _p5, - _elm_lang$core$Basics$always( - _Gizra$elm_editable_webdata$Editable_WebData$create(_p4._0)), - model.creditRequests); - case 'Failure': - return A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$update, - _p5, - function (editable) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Failure(_p4._0), - editable); - }, - model.creditRequests); - default: - return model.creditRequests; - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: updated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p6, 'Backend.CreditRequest.Update', 'HandleUpdate'), - _3: {ctor: '[]'} - }; - case 'HandleFetch': - var _p8 = _p0._0; - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - var creditRequests = function () { - var _p7 = _p8; - _v2_2: - do { - switch (_p7.ctor) { - case 'Success': - if (_p7._0.ctor === '_Tuple2') { - return _Gizra$elm_dictlist$EveryDictList$isEmpty(_p7._0._0) ? _krisajenkins$remotedata$RemoteData$Success( - A2( - _Gizra$elm_dictlist$EveryDictList$singleton, - _Gizra$elm_storage_key$StorageKey$New, - _Gizra$elm_editable_webdata$Editable_WebData$create( - _Gizra$circuit_bid$Backend_CreditRequest_Model$emptyCreditRequest(authUser.uuid)))) : A3(_Gizra$circuit_bid$Backend_CreditRequest_Utils$insertMultiple, authUser.uuid, _p8, model.creditRequests); - } else { - break _v2_2; - } - case 'Failure': - return _krisajenkins$remotedata$RemoteData$Failure(_p7._0); - default: - break _v2_2; - } - } while(false); - return model.creditRequests; - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: creditRequests}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p8, 'Backend.CreditRequest.Update', 'HandleFetch'), - _3: {ctor: '[]'} - }; - }); - case 'Save': - var _p13 = _p0._1; - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (editable) { - var value = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var _p9 = value.credit; - if (_p9.ctor === 'Regular') { - var cmd = function () { - var _p10 = _p13; - if (_p10.ctor === 'New') { - return A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p11) { - return _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleCreate( - _krisajenkins$remotedata$RemoteData$fromResult(_p11)); - }, - A2( - crud.post, - _Gizra$circuit_bid$Backend_CreditRequest_Endpoint$endpoint, - A3(_Gizra$circuit_bid$Backend_CreditRequest_Model$CreateInfo, _p0._0, authUser.uuid, _p9._0))); - } else { - return A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p12) { - return A2( - _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleUpdate, - _p13, - _krisajenkins$remotedata$RemoteData$fromResult(_p12)); - }, - A3(crud.patchFull, _Gizra$circuit_bid$Backend_CreditRequest_Endpoint$endpoint, _p10._0, value)); - } - }(); - var updated = A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$update, - _p13, - _Gizra$elm_editable_webdata$Editable_WebData$state(_krisajenkins$remotedata$RemoteData$Loading), - model.creditRequests); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: updated}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return noChange; - } - }, - A2(_Gizra$circuit_bid$Backend_CreditRequest_Utils$get, _p13, model.creditRequests)); - }); - case 'SetAmount': - var updated = A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$update, - _p0._0, - function (editable) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - function (_p14) { - return A2( - _stoeffel$editable$Editable$map, - function (old) { - return _elm_lang$core$Native_Utils.update( - old, - { - credit: _Gizra$circuit_bid$Amount$Regular( - _Gizra$circuit_bid$Amount$Amount(_p0._1)) - }); - }, - _stoeffel$editable$Editable$edit(_p14)); - }, - editable); - }, - model.creditRequests); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: updated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - default: - var _p17 = _p0._1; - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - var storageKey = _Gizra$elm_storage_key$StorageKey$Existing(_p17); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (editable) { - var value = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var _p15 = value.credit; - if (_p15.ctor === 'Regular') { - var cmd = A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p16) { - return A2( - _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleUpdate, - storageKey, - _krisajenkins$remotedata$RemoteData$fromResult(_p16)); - }, - A3( - crud.patchFull, - _Gizra$circuit_bid$Backend_CreditRequest_Endpoint$endpoint, - _p17, - _elm_lang$core$Native_Utils.update( - value, - {status: _p0._2}))); - var updated = A3( - _Gizra$circuit_bid$Backend_CreditRequest_Utils$update, - storageKey, - _Gizra$elm_editable_webdata$Editable_WebData$state(_krisajenkins$remotedata$RemoteData$Loading), - model.creditRequests); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {creditRequests: updated}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return noChange; - } - }, - A2(_Gizra$circuit_bid$Backend_CreditRequest_Utils$get, storageKey, model.creditRequests)); - }); - } - }); - -var _Gizra$circuit_bid$Currency_Decoder$decodeCurrency = A2( - _elm_lang$core$Json_Decode$andThen, - function (currency) { - var _p0 = _elm_lang$core$String$toUpper(currency); - switch (_p0) { - case 'CHF': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$CHF); - case 'EUR': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$EUR); - case 'GBP': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$GBP); - case 'HKD': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$HKD); - case 'HRN': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$HRN); - case 'ILS': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$ILS); - case 'USD': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$USD); - case 'UAH': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Currency_Model$UAH); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise currency: ', currency)); - } - }, - _elm_lang$core$Json_Decode$string); - -var _Gizra$circuit_bid$Backend_Session_Decoder$decodeSession = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'batch_count', - _Gizra$elm_essentials$Gizra_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'item_count', - _Gizra$elm_essentials$Gizra_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'delta', - _Gizra$elm_essentials$Gizra_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'last_item', - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'first_item', - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'label', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Backend_Session_Model$Session))))))); -var _Gizra$circuit_bid$Backend_Session_Decoder$decodeSessionDict = A3(_Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, 'id', _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, _Gizra$circuit_bid$Backend_Session_Decoder$decodeSession); - -var _Gizra$circuit_bid$Bid_Decoder$decodeAlternativeBids = _elm_lang$core$Json_Decode$list( - A2(_elm_lang$core$Json_Decode$field, 'lot', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Bid_Decoder$decodeBidStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var applyMaybeBidderNumber = function (tag) { - return A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'bidder_id', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Utils_Json$decodeInt), - _elm_lang$core$Maybe$Nothing, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(tag)); - }; - var _p0 = status; - switch (_p0) { - case 'accepted': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$Accepted); - case 'accepted_duplicated_amount': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$AcceptedDuplicatedAmount); - case 'rejected': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$Rejected); - case 'rejected_bidder_corrected': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$Rejected); - case 'rejected_over_bidder_max': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$RejectedBidderMax); - case 'rejected_over_credit_limit': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$RejectedCreditLimit); - case 'rejected_mail_after_last_floor': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$RejectedMailAfterSetLastFloor); - case 'rejected_bellow_minimum': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$RejectedBellowMinimum); - case 'outbid': - return applyMaybeBidderNumber(_Gizra$circuit_bid$Bid_Model$Outbid); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Unknown bid status: ', status)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Bid_Decoder$decodeDeletedStatus = function (user) { - var decodeDeletedBool = A2( - _elm_lang$core$Json_Decode$map, - function (isDeleted) { - return isDeleted ? _Gizra$circuit_bid$Bid_Model$Deleted(_elm_lang$core$Maybe$Nothing) : _Gizra$circuit_bid$Bid_Model$NotDeleted; - }, - _elm_lang$core$Json_Decode$bool); - var decodeDeletedAuthor = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$null(_Gizra$circuit_bid$Bid_Model$NotDeleted), - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$map, - function (userId) { - return _Gizra$circuit_bid$Bid_Model$Deleted( - _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Backend_Entities$UserId( - _elm_lang$core$Basics$toString(userId)))); - }, - _Gizra$circuit_bid$Utils_Json$decodeInt), - _1: {ctor: '[]'} - } - }); - return _Gizra$circuit_bid$User_Utils$isPrivileged(user) ? A2(_elm_lang$core$Json_Decode$field, 'deleted_author', decodeDeletedAuthor) : A2(_elm_lang$core$Json_Decode$field, 'deleted', decodeDeletedBool); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidUuid = _elm_lang$core$Json_Decode$string; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidKey = A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Bid_Model$BidKey, _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Bid_Decoder$decodeBidType = A2( - _elm_lang$core$Json_Decode$andThen, - function (bidType) { - var _p1 = bidType; - switch (_p1) { - case 'agent': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$Agent); - case 'auto_agent': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$AutoAgent); - case 'book': - return A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'triggering_bid', - _Gizra$circuit_bid$Bid_Decoder$decodeBidKey, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'mail_bid', - _Gizra$circuit_bid$Bid_Decoder$decodeBidKey, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Bid_Model$Book))); - case 'floor': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$Floor); - case 'internet': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$Internet); - case 'mail': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$Mail); - case 'post_sale': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Bid_Model$PostSale); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Unknown bid type: ', bidType)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'type', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Bid_Decoder$decodeBid = function (user) { - return A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'will_max_out', - _elm_lang$core$Json_Decode$maybe(_elm_lang$core$Json_Decode$bool), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'alternative_bids', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Bid_Decoder$decodeAlternativeBids), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'under_extension', - _elm_lang$core$Json_Decode$bool, - false, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Bid_Decoder$decodeBidType, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'created', - _Gizra$circuit_bid$Utils_Json$decodeDate, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Bid_Decoder$decodeDeletedStatus(user), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'changed', - _Gizra$circuit_bid$Utils_Json$decodeDate, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Bid_Decoder$decodeBidStatus, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'amount', - _Gizra$circuit_bid$Amount$decodeAmount, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Bid_Model$Bid)))))))))); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidPair = function (user) { - return A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, 'id', _Gizra$circuit_bid$Bid_Decoder$decodeBidKey), - _Gizra$circuit_bid$Bid_Decoder$decodeBid(user)); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidDict = function (user) { - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$elm_dictlist$EveryDictList$fromList, - _elm_lang$core$Json_Decode$list( - _Gizra$circuit_bid$Bid_Decoder$decodeBidPair(user))); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromLiveQueue = function (user) { - return A2( - _elm_lang$core$Json_Decode$field, - '0', - _Gizra$circuit_bid$Bid_Decoder$decodeBidPair(user)); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromResponse = function (user) { - return A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBidPair(user)); -}; -var _Gizra$circuit_bid$Bid_Decoder$decodeBidList = function (user) { - return A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: {ctor: '[]'} - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBidDict(user)); -}; - -var _Gizra$circuit_bid$BidStep_Decoder$decodeType = A2( - _elm_lang$core$Json_Decode$andThen, - function (type_) { - var _p0 = type_; - switch (_p0) { - case 'regular': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$BidStep_Model$Regular); - case 'manual': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$BidStep_Model$Manual); - case 'automatic_round': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$BidStep_Model$AutomaticRound); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Unknown bid step type: ', type_)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'type', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$BidStep_Decoder$decodeBidStep = A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$BidStep_Decoder$decodeType, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'amount', - _Gizra$circuit_bid$Amount$decodeAmount, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'from', - _Gizra$circuit_bid$Amount$decodeAmount, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$BidStep_Model$BidStep)))); -var _Gizra$circuit_bid$BidStep_Decoder$decodeBidSteps = A2( - _elm_lang$core$Json_Decode$andThen, - function (list) { - var _p1 = _mgold$elm_nonempty_list$List_Nonempty$fromList(list); - if (_p1.ctor === 'Just') { - return _elm_lang$core$Json_Decode$succeed(_p1._0); - } else { - return _elm_lang$core$Json_Decode$fail('bid steps array cannot be empty'); - } - }, - _elm_lang$core$Json_Decode$list(_Gizra$circuit_bid$BidStep_Decoder$decodeBidStep)); - -var _Gizra$circuit_bid$Item_Decoder$decodeConsigner = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'uuid', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'uid', - _Gizra$circuit_bid$Backend_Decoder$decodeUserId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'name', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Model$Consigner)))); -var _Gizra$circuit_bid$Item_Decoder$decodeRallyStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p0 = status; - switch (_p0) { - case 'none': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$None); - case 'on_step': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$OnStep); - case 'off_step': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$OffStep); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status for a rally status: ', status)); - } - }, - _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Item_Decoder$decodeCallRequest = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'bidder_id', - _Gizra$circuit_bid$Utils_Json$decodeInt, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Model$CallRequest)); -var _Gizra$circuit_bid$Item_Decoder$decodeClerkStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p1 = status; - switch (_p1) { - case 'paused': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$Paused); - case 'open': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$Open); - case 'going': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$Going); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status for a an open availability status: ', status)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Item_Decoder$decodeLiveOnly = A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$EditableStatus, - A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$LiveOnly, - A2(_elm_lang$core$Json_Decode$map, _Gizra$elm_editable_webdata$Editable_WebData$create, _Gizra$circuit_bid$Item_Decoder$decodeClerkStatus))); -var _Gizra$circuit_bid$Item_Decoder$decodeStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (availabilityStatus) { - var itemClosed = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p2 = status; - switch (_p2) { - case 'sold': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Sold))); - case 'unsold': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Unsold))); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise Item status: ', status)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - var _p3 = availabilityStatus; - switch (_p3) { - case 'live_only': - return _Gizra$circuit_bid$Item_Decoder$decodeLiveOnly; - case 'item_paused': - return _Gizra$circuit_bid$Item_Decoder$decodeLiveOnly; - case 'mail_only': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$EditableStatus, - _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$MailOnly)); - case 'sale_not_started': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$SaleNotStarted)); - case 'sale_closed': - return itemClosed; - case 'item_withdrawn': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$Withdrawn)); - case 'item_closed': - return itemClosed; - case 'none': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$ItemNotActiveButAlreadyHasLiveBids)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise availability status: ', availabilityStatus)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'availability_status', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Item_Decoder$decodeImageStyle = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'imageSmall', - _elm_lang$core$Json_Decode$string, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'imageBig', _elm_lang$core$Json_Decode$string), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$field, 'image', _elm_lang$core$Json_Decode$string), - _1: {ctor: '[]'} - } - }), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'image', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Model$ImageStyle)))); -var _Gizra$circuit_bid$Item_Decoder$decodeStaticItem = A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$hardcoded, - '', - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'estimatedPrice', - A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, _Gizra$circuit_bid$Amount$decodeAmount), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'body', - A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, _elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Item_Decoder$decodeImageStyle, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'title', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Model$StaticItem)))))); -var _Gizra$circuit_bid$Item_Decoder$decodeStaticItemDict = A3(_Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, 'uuid', _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid, _Gizra$circuit_bid$Item_Decoder$decodeStaticItem); -var _Gizra$circuit_bid$Item_Decoder$RawAutoClerk = F3( - function (a, b, c) { - return {round: a, bump: b, currentDateOnServer: c}; - }); -var _Gizra$circuit_bid$Item_Decoder$decodeAutoClerk = function (currentDate) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (rawAutoClerk) { - var getTimeDiff = function (serverEndDate) { - return _elm_lang$core$Date$toTime(serverEndDate) - _elm_lang$core$Date$toTime(rawAutoClerk.currentDateOnServer); - }; - var adjustDate = function (serverEndDate) { - return _elm_lang$core$Date$fromTime( - _elm_lang$core$Date$toTime(currentDate) + getTimeDiff(serverEndDate)); - }; - var _p4 = {ctor: '_Tuple2', _0: rawAutoClerk.round, _1: rawAutoClerk.bump}; - _v4_2: - do { - if (_p4.ctor === '_Tuple2') { - if (_p4._0.ctor === 'Just') { - return _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$Round( - adjustDate(_p4._0._0))); - } else { - if (_p4._1.ctor === 'Just') { - return _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$Bump( - adjustDate(_p4._1._0))); - } else { - break _v4_2; - } - } - } else { - break _v4_2; - } - } while(false); - return _elm_lang$core$Json_Decode$fail('Auto clerk did not pass the timestamp of the round or the bump'); - }, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'current_timestamp', - _Gizra$circuit_bid$Utils_Json$decodeDate, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'bump_timestamp', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Utils_Json$decodeDate), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'round_timestamp', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Utils_Json$decodeDate), - _elm_lang$core$Maybe$Nothing, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Decoder$RawAutoClerk))))); -}; -var _Gizra$circuit_bid$Item_Decoder$decodeCalculatedItem = F2( - function (currentDate, user) { - return A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'future_book_bid_amounts', - _elm_lang$core$Json_Decode$list(_Gizra$circuit_bid$Amount$decodeAmount), - {ctor: '[]'}, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'auto_clerk', - _elm_lang$core$Json_Decode$maybe( - _Gizra$circuit_bid$Item_Decoder$decodeAutoClerk(currentDate)), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'consigner', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Item_Decoder$decodeConsigner), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'rally', - _Gizra$circuit_bid$Item_Decoder$decodeRallyStatus, - _Gizra$circuit_bid$Item_Model$None, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'call_requests', - _elm_lang$core$Json_Decode$list(_Gizra$circuit_bid$Item_Decoder$decodeCallRequest), - {ctor: '[]'}, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'winning_user_total_won', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Amount$decodeAmount), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'winning_bid', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Bid_Decoder$decodeBidKey), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'minimum_price', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$Amount$decodeAmount), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'agent_bid', - _Gizra$circuit_bid$Bid_Decoder$decodeBidDict(user), - _Gizra$elm_dictlist$EveryDictList$empty, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'book_bid', - _Gizra$circuit_bid$Bid_Decoder$decodeBidDict(user), - _Gizra$elm_dictlist$EveryDictList$empty, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'bid', - _Gizra$circuit_bid$Bid_Decoder$decodeBidDict(user), - _Gizra$elm_dictlist$EveryDictList$empty, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'steps', - _Gizra$circuit_bid$BidStep_Decoder$decodeBidSteps, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'public_message', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'note', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Item_Decoder$decodeStatus, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'next_price', - _elm_lang$core$Json_Decode$nullable(_Gizra$circuit_bid$Amount$decodeAmount), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'current_price', - _elm_lang$core$Json_Decode$nullable(_Gizra$circuit_bid$Amount$decodeAmount), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'opening_price', - _Gizra$circuit_bid$Amount$decodeAmount, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'starting_price', - _Gizra$circuit_bid$Amount$decodeAmount, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Item_Model$CalculatedItem)))))))))))))))))))); - }); -var _Gizra$circuit_bid$Item_Decoder$decodeCalculatedItemDict = F2( - function (currentDate, user) { - return A3( - _Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, - 'uuid', - _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid, - A2(_Gizra$circuit_bid$Item_Decoder$decodeCalculatedItem, currentDate, user)); - }); - -var _Gizra$circuit_bid$ItemManager_Decoder$decodeLotMap = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'item_id', - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'lot', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$ItemManager_Model$LotMap))); -var _Gizra$circuit_bid$ItemManager_Decoder$decodeLotMapDict = A3(_Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, 'uuid', _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid, _Gizra$circuit_bid$ItemManager_Decoder$decodeLotMap); -var _Gizra$circuit_bid$ItemManager_Decoder$decodeStaticItemFromResponse = function (id) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (items) { - var _p0 = A2(_Gizra$elm_dictlist$EveryDictList$get, id, items); - if (_p0.ctor === 'Just') { - return _elm_lang$core$Json_Decode$succeed(_p0._0); - } else { - return _elm_lang$core$Json_Decode$fail('No such item'); - } - }, - _Gizra$circuit_bid$Item_Decoder$decodeStaticItemDict); -}; -var _Gizra$circuit_bid$ItemManager_Decoder$decodeStaticItemsFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'items', - _1: {ctor: '[]'} - }, - _Gizra$circuit_bid$Item_Decoder$decodeStaticItemDict); -var _Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemsInfoFromResponse = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: {ctor: '[]'} - }, - A2(_Gizra$circuit_bid$Item_Decoder$decodeCalculatedItemDict, currentDate, user)); - }); -var _Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemFromLiveQueue = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$field, - '0', - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, 'uuid', _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid), - A2(_Gizra$circuit_bid$Item_Decoder$decodeCalculatedItem, currentDate, user))); - }); -var _Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemFromResponse = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, 'uuid', _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid), - A2(_Gizra$circuit_bid$Item_Decoder$decodeCalculatedItem, currentDate, user))); - }); - -var _Gizra$circuit_bid$Sale_Decoder$decodeCurrenciesInfo = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$map, - _eeue56$elm_all_dict$EveryDict$fromList, - _elm_lang$core$Json_Decode$list( - A3( - _elm_lang$core$Json_Decode$map2, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$Json_Decode$field, 'currency', _Gizra$circuit_bid$Currency_Decoder$decodeCurrency), - A2(_elm_lang$core$Json_Decode$field, 'rate', _Gizra$circuit_bid$Utils_Json$decodeFloat)))), - _1: { - ctor: '::', - _0: _elm_lang$core$Json_Decode$succeed(_eeue56$elm_all_dict$EveryDict$empty), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Sale_Decoder$decodeCurrenciesInfoFromJson = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'currencies_info', - _1: {ctor: '[]'} - }, - _Gizra$circuit_bid$Sale_Decoder$decodeCurrenciesInfo), - _1: { - ctor: '::', - _0: _elm_lang$core$Json_Decode$succeed(_eeue56$elm_all_dict$EveryDict$empty), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleTitleFromJson = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'sale_title', - _1: {ctor: '[]'} - }, - _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Sale_Decoder$decodeAutoClerk = A2( - _elm_lang$core$Json_Decode$andThen, - function (_p0) { - var _p1 = _p0; - return _p1._0 ? _elm_lang$core$Json_Decode$succeed( - A2(_Gizra$circuit_bid$Sale_Model$AutoClerkEnabled, _p1._1, _p1._2)) : _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$AutoClerkDisabled); - }, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'auto_clerk_bump', - _Gizra$circuit_bid$Utils_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'auto_clerk_round', - _Gizra$circuit_bid$Utils_Json$decodeInt, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'auto_clerk_enabled', - _elm_lang$core$Json_Decode$bool, - false, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F3( - function (v0, v1, v2) { - return {ctor: '_Tuple3', _0: v0, _1: v1, _2: v2}; - })))))); -var _Gizra$circuit_bid$Sale_Decoder$decodeStatus = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p2 = status; - switch (_p2) { - case 'closed_not_started': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$ClosedNotStarted); - case 'open_mail': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$MailAuctionOpen); - case 'paused_starting_soon': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$PausedStartingSoon); - case 'open_live': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$LiveAuctionOpen); - case 'paused_back_shortly': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$PausedBackShortly); - case 'closed_ended': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Sale_Model$ClosedEnded); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status: ', status)); - } - }, - _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleUpdate = A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'session', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _Gizra$elm_restful$Restful_Endpoint$toEntityId(0), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'item', - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'paused_message', - _elm_lang$core$Json_Decode$string, - '', - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Sale_Decoder$decodeAutoClerk, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'status', - _Gizra$circuit_bid$Sale_Decoder$decodeStatus, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'title', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Sale_Model$SaleUpdateData))))))); -var _Gizra$circuit_bid$Sale_Decoder$decodeLanguageFromCode = A2( - _elm_lang$core$Json_Decode$andThen, - _Gizra$circuit_bid$Utils_Json$resultToDecoder, - A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Translate$languageFromCode, _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Sale_Decoder$decodeLanguages = _elm_lang$core$Json_Decode$list(_Gizra$circuit_bid$Sale_Decoder$decodeLanguageFromCode); -var _Gizra$circuit_bid$Sale_Decoder$decodeSale = A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$hardcoded, - _eeue56$elm_all_dict$EveryDict$empty, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Sale_Decoder$decodeAutoClerk, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'paused_message', - _elm_lang$core$Json_Decode$string, - '', - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'website_range_end', - _Gizra$circuit_bid$Utils_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'website_range_start', - _Gizra$circuit_bid$Utils_Json$decodeInt, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'video_url', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'uuid', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'currency', - _Gizra$circuit_bid$Currency_Decoder$decodeCurrency, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'current_time', - _Gizra$circuit_bid$Utils_Json$decodeDate, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'site_backoffice_url', - _elm_lang$core$Json_Decode$string, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'site_logo_url', - _elm_lang$core$Json_Decode$string, - '', - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'site_label', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'login_site_name', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'site_id', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'url_revision', - _Gizra$circuit_bid$Utils_Json$decodeInt, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'live_auction_start', - A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, _Gizra$circuit_bid$Utils_Json$decodeDate), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'base_url', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'language', - _Gizra$circuit_bid$Sale_Decoder$decodeLanguages, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'sessions', - _Gizra$circuit_bid$Backend_Session_Decoder$decodeSessionDict, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'session', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _Gizra$elm_restful$Restful_Endpoint$toEntityId(0), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'item', - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'status', - _Gizra$circuit_bid$Sale_Decoder$decodeStatus, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'label', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'id', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Sale_Model$Sale))))))))))))))))))))))))); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMap = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'lots', - _Gizra$circuit_bid$ItemManager_Decoder$decodeLotMapDict, - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Sale_Decoder$decodeSale, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - })))); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMapFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMap); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleFromLiveQueue = A2(_elm_lang$core$Json_Decode$field, '0', _Gizra$circuit_bid$Sale_Decoder$decodeSale); -var _Gizra$circuit_bid$Sale_Decoder$decodeSaleFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Sale_Decoder$decodeSale); -var _Gizra$circuit_bid$Sale_Decoder$decodeSalesAndLotMapDict = A3(_Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, 'id', _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMap); -var _Gizra$circuit_bid$Sale_Decoder$decodeSalesAndLotMapDictFromResponse = A2(_elm_lang$core$Json_Decode$field, 'data', _Gizra$circuit_bid$Sale_Decoder$decodeSalesAndLotMapDict); - -var _Gizra$circuit_bid$Backend_Site_Decoder$decodeSite = A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'default_language', - _elm_lang$core$Json_Decode$nullable(_Gizra$circuit_bid$Sale_Decoder$decodeLanguageFromCode), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'currency', - _Gizra$circuit_bid$Currency_Decoder$decodeCurrency, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'backoffice_url', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'label', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Backend_Site_Model$Site))))); - -var _Gizra$circuit_bid$Backend_Site_Endpoint$siteEndpoint = A2(_Gizra$elm_restful$Restful_Endpoint$drupalEndpoint, 'api/sites', _Gizra$circuit_bid$Backend_Site_Decoder$decodeSite); - -var _Gizra$circuit_bid$Backend_Utils$updateSubModel = F5( - function (subMsg, subModel, updateFunc, msg, model) { - var _p0 = A2(updateFunc, subMsg, model); - var modelUpdated = _p0._0; - var subCmds = _p0._1; - var maybeError = _p0._2; - var appMsgs = _p0._3; - return { - ctor: '_Tuple4', - _0: modelUpdated, - _1: A2(_elm_lang$core$Platform_Cmd$map, msg, subCmds), - _2: maybeError, - _3: appMsgs - }; - }); - -var _Gizra$circuit_bid$Backend_Update$updateBackend = F6( - function (date, backendUrl, accessToken, user, msg, model) { - var crud = A2( - _Gizra$elm_restful$Restful_Endpoint$applyAccessToken, - accessToken, - _Gizra$elm_restful$Restful_Endpoint$applyBackendUrl(backendUrl)); - var noChange = { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - var _p0 = msg; - switch (_p0.ctor) { - case 'FetchSite': - var _p2 = _p0._0; - var cmd = A2( - _Gizra$elm_restful$Restful_Endpoint$toCmd, - function (_p1) { - return _Gizra$circuit_bid$Backend_Model$HandleFetchSite( - A2( - _krisajenkins$remotedata$RemoteData$map, - function (site) { - return {ctor: '_Tuple2', _0: _p2, _1: site}; - }, - _krisajenkins$remotedata$RemoteData$fromResult(_p1))); - }, - A2(crud.get, _Gizra$circuit_bid$Backend_Site_Endpoint$siteEndpoint, _p2)); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {site: _krisajenkins$remotedata$RemoteData$Loading}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'HandleFetchSite': - var _p3 = _p0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {site: _p3}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$maybeHttpError, _p3, 'Backend.Update', 'HandleFetchSite'), - _3: {ctor: '[]'} - }; - case 'MsgBidderInfo': - return A5( - _Gizra$circuit_bid$Backend_Utils$updateSubModel, - _p0._0, - model.bidderInfo, - F2( - function (subMsg, model) { - return A4(_Gizra$circuit_bid$Backend_BidderInfo_Update$update, backendUrl, accessToken, subMsg, model); - }), - function (subCmds) { - return _Gizra$circuit_bid$Backend_Model$MsgBidderInfo(subCmds); - }, - model); - case 'MsgConnectedUser': - return A5( - _Gizra$circuit_bid$Backend_Utils$updateSubModel, - _p0._0, - model.connectedUsers, - F2( - function (subMsg, model) { - return A3(_Gizra$circuit_bid$Backend_ConnectedUser_Update$update, date, subMsg, model); - }), - function (subCmds) { - return _Gizra$circuit_bid$Backend_Model$MsgConnectedUser(subCmds); - }, - model); - default: - return A5( - _Gizra$circuit_bid$Backend_Utils$updateSubModel, - _p0._0, - model.connectedUsers, - F2( - function (subMsg, model) { - return A5(_Gizra$circuit_bid$Backend_CreditRequest_Update$update, backendUrl, accessToken, user, subMsg, model); - }), - function (subCmds) { - return _Gizra$circuit_bid$Backend_Model$MsgCreditRequest(subCmds); - }, - model); - } - }); - -var _Gizra$circuit_bid$LocalConfig$local = { - backendUrl: 'https://circuit-bid.ddev.site:4443', - name: 'local', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '34bb72def989ed6efc60', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: true, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '54c2905fd2eaaa36ab21d6c7', '472574cd29a7fb6bb702ebe94117a35d2d4664608d6f6c51dceec78542a71212dba9eb89d21d33642a2037d3ad5943f9987533f09a8453e3662896af33b57388a68c62ad53e9e95f688b3bff2d441e9bea4b35fc8ce9385ccdd99015b45dfb8464eb3903671943eb95174ea24af1bcc0'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/http-1-test/' -}; -var _Gizra$circuit_bid$LocalConfig$localConfigs = _elm_lang$core$Dict$fromList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'localhost', _1: _Gizra$circuit_bid$LocalConfig$local}, - _1: {ctor: '[]'} - }); - -var _Gizra$circuit_bid$Config$liveDomains = { - ctor: '::', - _0: 'atlastamps.com', - _1: { - ctor: '::', - _0: 'corinphila.ch', - _1: { - ctor: '::', - _0: 'corinphila.nl', - _1: { - ctor: '::', - _0: 'corinphila.circuitauction.com', - _1: { - ctor: '::', - _0: 'hettinger-liveauktionen.de', - _1: { - ctor: '::', - _0: 'heinrich-koehler.de', - _1: { - ctor: '::', - _0: 'harlos-auktion.de', - _1: { - ctor: '::', - _0: 'hrharmer.com', - _1: { - ctor: '::', - _0: 'jbull.com', - _1: { - ctor: '::', - _0: 'kedem-auctions.com', - _1: { - ctor: '::', - _0: 'sellschopp-auktionen.de', - _1: { - ctor: '::', - _0: 'winners-auctions.com', - _1: { - ctor: '::', - _0: 'www.heinrich-koehler.de', - _1: { - ctor: '::', - _0: 'www.romanoauctions.com', - _1: { - ctor: '::', - _0: 'www.atlastamps.com', - _1: { - ctor: '::', - _0: 'www.stampcircuit.com', - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -}; -var _Gizra$circuit_bid$Config$demoDomains = { - ctor: '::', - _0: 'dev-backoffice-hk-eu.pantheonsite.io', - _1: {ctor: '[]'} -}; -var _Gizra$circuit_bid$Config$livePantheon = { - backendUrl: 'https://live-bids-eu.circuitauction.com', - name: 'livePantheon', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '67608a61bc1954f76bf1', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: false, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '59f70767c9e77c00010984c9', '655C28D8064A14579AFF25B5A0627427251540FA0681575DA1F91444C59C1C7B2026FA57F3CA861882C6F940C3AF82A914A502784693A4A99184E254C4504FCB6E88E9F6E5916AE58E38FD57C907998FADD9D196CCFCBEAF487F7DACB381E03A'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/serverless-eu/' -}; -var _Gizra$circuit_bid$Config$demoPantheon = { - backendUrl: 'https://aq-live-app-bids-eu.circuitauction.com', - name: 'demoPantheon', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '34bb72def989ed6efc60', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: false, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '54c2905fd2eaaa36ab21d6c7', '472574cd29a7fb6bb702ebe94117a35d2d4664608d6f6c51dceec78542a71212dba9eb89d21d33642a2037d3ad5943f9987533f09a8453e3662896af33b57388a68c62ad53e9e95f688b3bff2d441e9bea4b35fc8ce9385ccdd99015b45dfb8464eb3903671943eb95174ea24af1bcc0'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/serverless-eu/' -}; -var _Gizra$circuit_bid$Config$testPantheon = { - backendUrl: 'https://test-bids-eu.circuitauction.com', - name: 'testPantheon', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '34bb72def989ed6efc60', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: false, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '54c2905fd2eaaa36ab21d6c7', '472574cd29a7fb6bb702ebe94117a35d2d4664608d6f6c51dceec78542a71212dba9eb89d21d33642a2037d3ad5943f9987533f09a8453e3662896af33b57388a68c62ad53e9e95f688b3bff2d441e9bea4b35fc8ce9385ccdd99015b45dfb8464eb3903671943eb95174ea24af1bcc0'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/http-1-test/' -}; -var _Gizra$circuit_bid$Config$devPantheon = { - backendUrl: 'https://dev-bids-eu.circuitauction.com', - name: 'devPantheon', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '34bb72def989ed6efc60', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: true, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '54c2905fd2eaaa36ab21d6c7', '472574cd29a7fb6bb702ebe94117a35d2d4664608d6f6c51dceec78542a71212dba9eb89d21d33642a2037d3ad5943f9987533f09a8453e3662896af33b57388a68c62ad53e9e95f688b3bff2d441e9bea4b35fc8ce9385ccdd99015b45dfb8464eb3903671943eb95174ea24af1bcc0'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/http-1-test/' -}; -var _Gizra$circuit_bid$Config$ddevLocal = { - backendUrl: 'https://circuit-bid.ddev.site:4443', - name: 'local', - pusherKey: A2(_Gizra$circuit_bid$Pusher_Model$PusherAppKey, '34bb72def989ed6efc60', _Gizra$circuit_bid$Pusher_Model$EuWest1), - debug: true, - keen: A2(_Gizra$circuit_bid$Keen_Model$AppKey, '54c2905fd2eaaa36ab21d6c7', '472574cd29a7fb6bb702ebe94117a35d2d4664608d6f6c51dceec78542a71212dba9eb89d21d33642a2037d3ad5943f9987533f09a8453e3662896af33b57388a68c62ad53e9e95f688b3bff2d441e9bea4b35fc8ce9385ccdd99015b45dfb8464eb3903671943eb95174ea24af1bcc0'), - serverless: 'https://europe-west3-circuit-bid-184512.cloudfunctions.net/http-1-test/' -}; -var _Gizra$circuit_bid$Config$getConfigByHostname = function (hostname) { - var localRegex = _elm_lang$core$Regex$regex('backoffice\\.local'); - var ddevLocalRegex = _elm_lang$core$Regex$regex('.*\\.ddev\\.site'); - var common = '-[a-z-]+\\.pantheonsite\\.io'; - var devRegex = _elm_lang$core$Regex$regex( - A2(_elm_lang$core$Basics_ops['++'], 'dev', common)); - var testRegex = _elm_lang$core$Regex$regex( - A2(_elm_lang$core$Basics_ops['++'], 'test', common)); - var liveRegex = _elm_lang$core$Regex$regex( - A2(_elm_lang$core$Basics_ops['++'], 'live', common)); - return A2(_elm_lang$core$List$member, hostname, _Gizra$circuit_bid$Config$liveDomains) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$livePantheon) : (A2(_elm_lang$core$List$member, hostname, _Gizra$circuit_bid$Config$demoDomains) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$demoPantheon) : (A2(_elm_lang$core$Regex$contains, liveRegex, hostname) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$livePantheon) : (A2(_elm_lang$core$Regex$contains, testRegex, hostname) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$testPantheon) : (A2(_elm_lang$core$Regex$contains, devRegex, hostname) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$devPantheon) : (A2(_elm_lang$core$Regex$contains, ddevLocalRegex, hostname) ? _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Config$ddevLocal) : A2(_elm_lang$core$Dict$get, hostname, _Gizra$circuit_bid$LocalConfig$localConfigs)))))); -}; - -var _Gizra$circuit_bid$Utils_Order$reverse = F3( - function (comparisonFunction, a, b) { - var _p0 = A2( - _elm_lang$core$Basics$compare, - comparisonFunction(a), - comparisonFunction(b)); - switch (_p0.ctor) { - case 'LT': - return _elm_lang$core$Basics$GT; - case 'EQ': - return _elm_lang$core$Basics$EQ; - default: - return _elm_lang$core$Basics$LT; - } - }); - -var _Gizra$circuit_bid$Utils_List$sortDescBy = F2( - function (comparisonFunction, list) { - return A2( - _elm_lang$core$List$sortWith, - _Gizra$circuit_bid$Utils_Order$reverse(comparisonFunction), - list); - }); - -var _Gizra$circuit_bid$Bid_Utils$bidBeingPlaced = function (state) { - var _p0 = state; - switch (_p0.ctor) { - case 'QueuedRequestSent': - return true; - case 'QueuedRequestQueued': - return true; - case 'QueuedRequestCompleted': - return false; - case 'QueuedRequestFailed': - return false; - default: - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$getBidByItemIdAndBidKey = F3( - function (itemDict, itemId, bidKey) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Maybe$Nothing, - function (item) { - var _p1 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p1.ctor === 'Just') { - return A2(_Gizra$elm_dictlist$EveryDictList$get, bidKey, _p1._0.bids); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, itemDict)); - }); -var _Gizra$circuit_bid$Bid_Utils$toOrderedList = function (bids) { - return A2( - _Gizra$circuit_bid$Utils_List$sortDescBy, - function (_p2) { - return function (_p3) { - var _p4 = _p3; - return A2( - _elm_lang$core$Maybe$withDefault, - 0, - _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p4._0))); - }( - _elm_lang$core$Tuple$first(_p2)); - }, - _Gizra$elm_dictlist$EveryDictList$toList(bids)); -}; -var _Gizra$circuit_bid$Bid_Utils$isNewerThan = F2( - function (x, y) { - var yTime = _elm_lang$core$Date$toTime(y); - var xTime = _elm_lang$core$Date$toTime(x); - return _elm_lang$core$Native_Utils.cmp(yTime, xTime) > 0; - }); -var _Gizra$circuit_bid$Bid_Utils$getMailBidFromBookBid = F2( - function (bid, calculated) { - var _p5 = bid.bidType; - if (_p5.ctor === 'Book') { - return A2(_Gizra$elm_dictlist$EveryDictList$get, _p5._0, calculated.bookBids); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }); -var _Gizra$circuit_bid$Bid_Utils$isInternetBid = function (bid) { - return _elm_lang$core$Native_Utils.eq(bid.bidType, _Gizra$circuit_bid$Bid_Model$Internet); -}; -var _Gizra$circuit_bid$Bid_Utils$isMailBid = function (bid) { - return _elm_lang$core$Native_Utils.eq(bid.bidType, _Gizra$circuit_bid$Bid_Model$Mail); -}; -var _Gizra$circuit_bid$Bid_Utils$isAutoAgentBid = function (bid) { - return _elm_lang$core$Native_Utils.eq(bid.bidType, _Gizra$circuit_bid$Bid_Model$AutoAgent); -}; -var _Gizra$circuit_bid$Bid_Utils$isAgentBid = function (bid) { - return _elm_lang$core$Native_Utils.eq(bid.bidType, _Gizra$circuit_bid$Bid_Model$Agent); -}; -var _Gizra$circuit_bid$Bid_Utils$isLiveBid = function (bid) { - return (!_Gizra$circuit_bid$Bid_Utils$isAgentBid(bid)) && (!_Gizra$circuit_bid$Bid_Utils$isMailBid(bid)); -}; -var _Gizra$circuit_bid$Bid_Utils$isBookBid = function (bid) { - var _p6 = bid.bidType; - if (_p6.ctor === 'Book') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isFloorBid = function (bid) { - return _elm_lang$core$Native_Utils.eq(bid.bidType, _Gizra$circuit_bid$Bid_Model$Floor); -}; -var _Gizra$circuit_bid$Bid_Utils$hasBids = _Gizra$elm_dictlist$EveryDictList$any( - F2( - function (_p7, bid) { - return _elm_lang$core$Native_Utils.eq(bid.deletedStatus, _Gizra$circuit_bid$Bid_Model$NotDeleted); - })); -var _Gizra$circuit_bid$Bid_Utils$getBidderNumber = function (bid) { - var _p8 = bid.status; - switch (_p8.ctor) { - case 'Accepted': - return _p8._0; - case 'AcceptedDuplicatedAmount': - return _p8._0; - case 'Rejected': - return _p8._0; - case 'RejectedBidderMax': - return _p8._0; - case 'RejectedCreditLimit': - return _p8._0; - case 'RejectedMailAfterSetLastFloor': - return _p8._0; - case 'RejectedBellowMinimum': - return _p8._0; - default: - return _p8._0; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isOwnBid = F4( - function (user, modelBackend, saleUuid, bid) { - var _p9 = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(bid); - if (_p9.ctor === 'Just') { - var _p10 = _p9._0; - if (_Gizra$circuit_bid$User_Utils$isPrivileged(user)) { - var ownBidderNumber = A2( - _elm_lang$core$Maybe$withDefault, - 0, - A2( - _elm_lang$core$Maybe$andThen, - function (bidderInfo) { - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo)); - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, saleUuid))); - return _elm_lang$core$Native_Utils.eq(_p10, ownBidderNumber); - } else { - return A2(_elm_lang$core$Dict$member, _p10, modelBackend.bidderInfoByBidderNumber); - } - } else { - return false; - } - }); -var _Gizra$circuit_bid$Bid_Utils$isDeleted = function (bid) { - return !_elm_lang$core$Native_Utils.eq(bid.deletedStatus, _Gizra$circuit_bid$Bid_Model$NotDeleted); -}; -var _Gizra$circuit_bid$Bid_Utils$isOutbid = function (bid) { - var _p11 = bid.status; - if (_p11.ctor === 'Outbid') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isRejectedCreditLimit = function (bid) { - var _p12 = bid.status; - if (_p12.ctor === 'RejectedCreditLimit') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isRejectedBidderMax = function (bid) { - var _p13 = bid.status; - if (_p13.ctor === 'RejectedBidderMax') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isReachedCreditLimit = function (bid) { - return _Gizra$circuit_bid$Bid_Utils$isRejectedBidderMax(bid) || _Gizra$circuit_bid$Bid_Utils$isRejectedCreditLimit(bid); -}; -var _Gizra$circuit_bid$Bid_Utils$isAcceptedDuplicatedAmount = function (bid) { - var _p14 = bid.status; - if (_p14.ctor === 'AcceptedDuplicatedAmount') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isAccepted = function (bid) { - var _p15 = bid.status; - if (_p15.ctor === 'Accepted') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Bid_Utils$isValidOrAmountDuplicated = function (bid) { - return (_Gizra$circuit_bid$Bid_Utils$isAccepted(bid) || _Gizra$circuit_bid$Bid_Utils$isAcceptedDuplicatedAmount(bid)) && (!_Gizra$circuit_bid$Bid_Utils$isDeleted(bid)); -}; -var _Gizra$circuit_bid$Bid_Utils$isOwnValidOrAmountDuplicatedBid = F4( - function (user, modelBackend, saleUuid, bid) { - return _Gizra$circuit_bid$Bid_Utils$isValidOrAmountDuplicated(bid) && A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, saleUuid, bid); - }); -var _Gizra$circuit_bid$Bid_Utils$getOwnValidOrAmountDuplicatedBids = F4( - function (user, modelBackend, saleUuid, bids) { - return A2( - _Gizra$elm_dictlist$EveryDictList$filter, - F2( - function (_p16, bid) { - return A4(_Gizra$circuit_bid$Bid_Utils$isOwnValidOrAmountDuplicatedBid, user, modelBackend, saleUuid, bid); - }), - bids); - }); -var _Gizra$circuit_bid$Bid_Utils$isValid = function (bid) { - return _Gizra$circuit_bid$Bid_Utils$isAccepted(bid) && (!_Gizra$circuit_bid$Bid_Utils$isDeleted(bid)); -}; -var _Gizra$circuit_bid$Bid_Utils$getValidBids = function (bids) { - return A2( - _Gizra$elm_dictlist$EveryDictList$filter, - F2( - function (_p17, bid) { - return _Gizra$circuit_bid$Bid_Utils$isValid(bid); - }), - bids); -}; -var _Gizra$circuit_bid$Bid_Utils$isOwnValidBid = F4( - function (user, modelBackend, saleUuid, bid) { - return _Gizra$circuit_bid$Bid_Utils$isValid(bid) && A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, saleUuid, bid); - }); -var _Gizra$circuit_bid$Bid_Utils$getOwnValidBids = F4( - function (user, modelBackend, saleUuid, bids) { - return A2( - _Gizra$elm_dictlist$EveryDictList$filter, - F2( - function (_p18, bid) { - return A4(_Gizra$circuit_bid$Bid_Utils$isOwnValidBid, user, modelBackend, saleUuid, bid); - }), - bids); - }); -var _Gizra$circuit_bid$Bid_Utils$getHighestBidWithKey = A2( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (key, bid, acc) { - return _Gizra$circuit_bid$Bid_Utils$isValid(bid) ? _elm_lang$core$Maybe$Just( - function () { - var _p19 = acc; - if (_p19.ctor === 'Just') { - var _p20 = _p19._0._1; - return A3( - _Gizra$circuit_bid$Amount$compare, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) > 0; - }), - bid.amount, - _p20.amount) ? {ctor: '_Tuple2', _0: key, _1: bid} : {ctor: '_Tuple2', _0: _p19._0._0, _1: _p20}; - } else { - return {ctor: '_Tuple2', _0: key, _1: bid}; - } - }()) : acc; - }), - _elm_lang$core$Maybe$Nothing); -var _Gizra$circuit_bid$Bid_Utils$getOwnHighestBidWithKey = F4( - function (user, modelBackend, saleUuid, bids) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBidWithKey( - A2( - _Gizra$elm_dictlist$EveryDictList$filter, - F2( - function (_p21, bid) { - return _Gizra$circuit_bid$Bid_Utils$isValid(bid) && A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, saleUuid, bid); - }), - bids)); - }); -var _Gizra$circuit_bid$Bid_Utils$getHighestBid = function (_p22) { - return A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Tuple$second, - _Gizra$circuit_bid$Bid_Utils$getHighestBidWithKey(_p22)); -}; -var _Gizra$circuit_bid$Bid_Utils$getHighestLiveBid = function (calculated) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBid( - _Gizra$circuit_bid$Bid_Utils$getValidBids(calculated.bids)); -}; -var _Gizra$circuit_bid$Bid_Utils$getHighestMailBid = function (calculated) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBid( - _Gizra$circuit_bid$Bid_Utils$getValidBids(calculated.bookBids)); -}; -var _Gizra$circuit_bid$Bid_Utils$getOwnHighestLiveBid = F4( - function (user, modelBackend, saleUuid, calculated) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBid( - A4(_Gizra$circuit_bid$Bid_Utils$getOwnValidBids, user, modelBackend, saleUuid, calculated.bids)); - }); -var _Gizra$circuit_bid$Bid_Utils$getOwnHighestMailBid = F4( - function (user, modelBackend, saleUuid, calculated) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBid( - A4(_Gizra$circuit_bid$Bid_Utils$getOwnValidBids, user, modelBackend, saleUuid, calculated.bookBids)); - }); -var _Gizra$circuit_bid$Bid_Utils$getOwnHighestMailOrLiveBid = F4( - function (user, modelBackend, saleUuid, calculated) { - var _p23 = { - ctor: '_Tuple2', - _0: A4(_Gizra$circuit_bid$Bid_Utils$getOwnHighestLiveBid, user, modelBackend, saleUuid, calculated), - _1: A4(_Gizra$circuit_bid$Bid_Utils$getOwnHighestMailBid, user, modelBackend, saleUuid, calculated) - }; - _v13_3: - do { - if (_p23.ctor === '_Tuple2') { - if (_p23._0.ctor === 'Just') { - if (_p23._1.ctor === 'Just') { - var _p25 = _p23._1._0; - var _p24 = _p23._0._0; - return A3( - _Gizra$circuit_bid$Amount$compareInfix, - _p25.amount, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) > 0; - }), - _p24.amount) ? _elm_lang$core$Maybe$Just(_p25) : _elm_lang$core$Maybe$Just(_p24); - } else { - return _elm_lang$core$Maybe$Just(_p23._0._0); - } - } else { - if (_p23._1.ctor === 'Just') { - return _elm_lang$core$Maybe$Just(_p23._1._0); - } else { - break _v13_3; - } - } - } else { - break _v13_3; - } - } while(false); - return _elm_lang$core$Maybe$Nothing; - }); -var _Gizra$circuit_bid$Bid_Utils$getOwnHighestAgentBid = F4( - function (user, modelBackend, saleUuid, calculated) { - return _Gizra$circuit_bid$Bid_Utils$getHighestBid( - A4(_Gizra$circuit_bid$Bid_Utils$getOwnValidBids, user, modelBackend, saleUuid, calculated.agentBids)); - }); -var _Gizra$circuit_bid$Bid_Utils$getBidTypeAsString = F2( - function (language, _p26) { - var _p27 = _p26; - var _p28 = _p27.bidType; - switch (_p28.ctor) { - case 'Agent': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$AgentBidder); - case 'AutoAgent': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$AgentBidder); - case 'Book': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Bidder); - case 'Floor': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$FloorBidder); - case 'Internet': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Online); - case 'Mail': - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Mail); - default: - return A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$PostSale); - } - }); - -var _Gizra$circuit_bid$ItemManager_Utils$getTrimmedItemsList = F5( - function (beforeIndex, afterIndex, f, itemId, items) { - var currentItemIdIndex = A2( - _elm_lang$core$Maybe$withDefault, - 0, - A2(_Gizra$elm_dictlist$EveryDictList$indexOfKey, itemId, items)); - return A3( - _elm_lang$core$List$foldl, - F2( - function (index, accum) { - var _p0 = A2(_Gizra$elm_dictlist$EveryDictList$getAt, index, items); - if (_p0.ctor === 'Nothing') { - return accum; - } else { - var _p1 = _p0._0._1; - return f(_p1) ? { - ctor: '::', - _0: {ctor: '_Tuple2', _0: _p0._0._0, _1: _p1}, - _1: accum - } : accum; - } - }), - {ctor: '[]'}, - A2( - _elm_lang$core$List$range, - A3(_elm_lang$core$Basics$clamp, 0, currentItemIdIndex - beforeIndex, currentItemIdIndex - beforeIndex), - currentItemIdIndex + afterIndex)); - }); -var _Gizra$circuit_bid$ItemManager_Utils$emptyItemManagerFromLotMap = function (lotMap) { - var items = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (uuid, lotMap, accum) { - return A3( - _Gizra$elm_dictlist$EveryDictList$insert, - lotMap.itemId, - {uuid: uuid, lotId: lotMap.lotId, name: '', image: _Gizra$circuit_bid$Item_Model$emptyImageStyle, description: _elm_lang$core$Maybe$Nothing, estimatedPrice: _elm_lang$core$Maybe$Nothing, calculated: _krisajenkins$remotedata$RemoteData$NotAsked}, - accum); - }), - _Gizra$elm_dictlist$EveryDictList$empty, - lotMap); - return {items: items, lotMap: lotMap}; -}; -var _Gizra$circuit_bid$ItemManager_Utils$getCurrentAndNextItemIds = F2( - function (model, itemId) { - var _p2 = A2(_Gizra$elm_dictlist$EveryDictList$indexOfKey, itemId, model.items); - if (_p2.ctor === 'Nothing') { - return { - ctor: '::', - _0: itemId, - _1: {ctor: '[]'} - }; - } else { - var _p3 = _p2._0; - var modifiedIndex = _elm_lang$core$Native_Utils.eq(_p3, 0) ? 0 : (_p3 - 1); - return _Gizra$elm_dictlist$EveryDictList$keys( - A2( - _Gizra$elm_dictlist$EveryDictList$take, - 2, - A2(_Gizra$elm_dictlist$EveryDictList$drop, modifiedIndex, model.items))); - } - }); -var _Gizra$circuit_bid$ItemManager_Utils$mapItemCalculated = F3( - function (itemId, f, model) { - var _p4 = A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, model.items); - if (_p4.ctor === 'Nothing') { - return model; - } else { - var _p5 = _p4._0; - var itemUpdated = _elm_lang$core$Native_Utils.update( - _p5, - { - calculated: A2(_krisajenkins$remotedata$RemoteData$map, f, _p5.calculated) - }); - return _elm_lang$core$Native_Utils.update( - model, - { - items: A3(_Gizra$elm_dictlist$EveryDictList$insert, itemId, itemUpdated, model.items) - }); - } - }); -var _Gizra$circuit_bid$ItemManager_Utils$updateCurrentPrice = F3( - function (itemId, newCurrentPrice, model) { - return A3( - _Gizra$circuit_bid$ItemManager_Utils$mapItemCalculated, - itemId, - function (calculated) { - return _elm_lang$core$Native_Utils.update( - calculated, - { - currentPrice: A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Basics$always(newCurrentPrice), - calculated.currentPrice) - }); - }, - model); - }); -var _Gizra$circuit_bid$ItemManager_Utils$getBid = F3( - function (itemId, bidKey, model) { - return _elm_community$maybe_extra$Maybe_Extra$join( - A2( - _elm_lang$core$Maybe$andThen, - function (item) { - return A2( - _elm_lang$core$Maybe$map, - function (calculated) { - return A2(_Gizra$elm_dictlist$EveryDictList$get, bidKey, calculated.bids); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, model.items))); - }); -var _Gizra$circuit_bid$ItemManager_Utils$updateBidDict = F4( - function (itemId, bidKey, newBid, model) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model, - function (item) { - var _p6 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p6.ctor === 'Just') { - var _p7 = _p6._0; - var calculatedUpdated = _Gizra$circuit_bid$Bid_Utils$isMailBid(newBid) ? _elm_lang$core$Native_Utils.update( - _p7, - { - bookBids: A3(_Gizra$elm_dictlist$EveryDictList$insert, bidKey, newBid, _p7.bookBids) - }) : _elm_lang$core$Native_Utils.update( - _p7, - { - bids: A3(_Gizra$elm_dictlist$EveryDictList$insert, bidKey, newBid, _p7.bids) - }); - var itemUpdated = _elm_lang$core$Native_Utils.update( - item, - { - calculated: _krisajenkins$remotedata$RemoteData$Success(calculatedUpdated) - }); - var itemsUpdated = A3(_Gizra$elm_dictlist$EveryDictList$insert, itemId, itemUpdated, model.items); - return _elm_lang$core$Native_Utils.update( - model, - {items: itemsUpdated}); - } else { - return model; - } - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, model.items)); - }); -var _Gizra$circuit_bid$ItemManager_Utils$insertStaticItems = F2( - function (staticItems, model) { - var itemsUpdated = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (uuid, staticItem, accum) { - var _p8 = A2(_Gizra$elm_dictlist$EveryDictList$get, uuid, model.lotMap); - if (_p8.ctor === 'Just') { - var _p10 = _p8._0; - var _p9 = A2(_Gizra$elm_dictlist$EveryDictList$get, _p10.itemId, model.items); - if (_p9.ctor === 'Just') { - var itemUpdated = _elm_lang$core$Native_Utils.update( - _p9._0, - {name: staticItem.name, image: staticItem.image, description: staticItem.description, estimatedPrice: staticItem.estimatedPrice, lotId: _p10.lotId}); - return A3(_Gizra$elm_dictlist$EveryDictList$insert, _p10.itemId, itemUpdated, accum); - } else { - return accum; - } - } else { - return accum; - } - }), - model.items, - staticItems); - return _elm_lang$core$Native_Utils.update( - model, - {items: itemsUpdated}); - }); -var _Gizra$circuit_bid$ItemManager_Utils$insertCalculatedItems = F3( - function (user, calculatedItems, model) { - var itemsUpdated = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (uuid, calculatedItem, accum) { - var _p11 = A2(_Gizra$elm_dictlist$EveryDictList$get, uuid, model.lotMap); - if (_p11.ctor === 'Just') { - var _p14 = _p11._0; - var _p12 = A2(_Gizra$elm_dictlist$EveryDictList$get, _p14.itemId, model.items); - if (_p12.ctor === 'Just') { - var _p13 = _p12._0; - var bookBidDict = A2( - _krisajenkins$remotedata$RemoteData$withDefault, - _Gizra$elm_dictlist$EveryDictList$empty, - A2( - _krisajenkins$remotedata$RemoteData$map, - function (_) { - return _.bookBids; - }, - _p13.calculated)); - var bidDict = A2( - _krisajenkins$remotedata$RemoteData$withDefault, - _Gizra$elm_dictlist$EveryDictList$empty, - A2( - _krisajenkins$remotedata$RemoteData$map, - function (_) { - return _.bids; - }, - _p13.calculated)); - var updatedCalculatedItem = _elm_lang$core$Native_Utils.update( - calculatedItem, - { - bids: A3(_Gizra$elm_dictlist$EveryDictList$foldl, _Gizra$elm_dictlist$EveryDictList$insert, bidDict, calculatedItem.bids), - bookBids: _Gizra$circuit_bid$User_Utils$isPrivileged(user) ? calculatedItem.bookBids : A3(_Gizra$elm_dictlist$EveryDictList$foldl, _Gizra$elm_dictlist$EveryDictList$insert, bookBidDict, calculatedItem.bookBids) - }); - return A3( - _Gizra$elm_dictlist$EveryDictList$insert, - _p14.itemId, - _elm_lang$core$Native_Utils.update( - _p13, - { - calculated: _krisajenkins$remotedata$RemoteData$Success(updatedCalculatedItem) - }), - accum); - } else { - return accum; - } - } else { - return accum; - } - }), - model.items, - calculatedItems); - return _elm_lang$core$Native_Utils.update( - model, - {items: itemsUpdated}); - }); -var _Gizra$circuit_bid$ItemManager_Utils$insertCalcultedItem = F4( - function (user, itemUuid, calculatedItem, model) { - return A3( - _Gizra$circuit_bid$ItemManager_Utils$insertCalculatedItems, - user, - A2(_Gizra$elm_dictlist$EveryDictList$singleton, itemUuid, calculatedItem), - model); - }); - -var _Gizra$circuit_bid$ItemManager_Update$fetchClosedItems = F7( - function (currentDate, backendUrl, isDebug, accessToken, language, user, saleUuid) { - var params = A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'filter[status][value][0]', _1: 'sold'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'filter[status][value][1]', _1: 'unsold'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'filter[status][operator]', _1: 'IN'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'sort', _1: '-id'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - } - } - } - } - } - }, - isDebug ? { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'range', _1: '4'}, - _1: {ctor: '[]'} - } : {ctor: '[]'}); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - A2(_Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemsInfoFromResponse, currentDate, user), - _Gizra$circuit_bid$ItemManager_Model$HandleFetchedCalculatedItems( - {ctor: '[]'}), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - params, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/items')))); - }); -var _Gizra$circuit_bid$ItemManager_Update$fetchItemsOwnPlacedBids = F7( - function (currentDate, backendUrl, isDebug, accessToken, language, user, saleUuid) { - var params = { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'placed_bids', _1: '1'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'sort', _1: '-id'}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - } - } - } - }; - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - A2(_Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemsInfoFromResponse, currentDate, user), - _Gizra$circuit_bid$ItemManager_Model$HandleFetchedCalculatedItems( - {ctor: '[]'}), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - params, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/items')))); - }); -var _Gizra$circuit_bid$ItemManager_Update$fetchItemsByUserType = F7( - function (currentDate, backendUrl, isDebug, accessToken, language, user, saleIe) { - var _p0 = user; - if (_p0.ctor === 'Anonymous') { - return _elm_lang$core$Platform_Cmd$none; - } else { - var _p1 = _p0._0.userType; - if (_p1.ctor === 'Bidder') { - return A7(_Gizra$circuit_bid$ItemManager_Update$fetchItemsOwnPlacedBids, currentDate, backendUrl, isDebug, accessToken, language, user, saleIe); - } else { - return A7(_Gizra$circuit_bid$ItemManager_Update$fetchClosedItems, currentDate, backendUrl, isDebug, accessToken, language, user, saleIe); - } - } - }); -var _Gizra$circuit_bid$ItemManager_Update$fetchItems = F7( - function (currentDate, backendUrl, isDebug, accessToken, language, user, itemIds) { - var params = { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }; - var filterByIds = _elm_lang$core$Set$toList( - A3( - _elm_lang$core$List$foldl, - F2( - function (_p2, accum) { - var _p3 = _p2; - return A2( - _elm_lang$core$Set$insert, - _elm_lang$core$Basics$toString(_p3._0), - accum); - }), - _elm_lang$core$Set$empty, - itemIds)); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - A2(_Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemsInfoFromResponse, currentDate, user), - _Gizra$circuit_bid$ItemManager_Model$HandleFetchedCalculatedItems(itemIds), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - params, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/api/items/', - A2(_elm_lang$core$String$join, ',', filterByIds)))))); - }); -var _Gizra$circuit_bid$ItemManager_Update$fetchStaticItem = function (url) { - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$ItemManager_Decoder$decodeStaticItemsFromResponse, - _Gizra$circuit_bid$ItemManager_Model$HandleFetchedStaticItems, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$ItemManager_Decoder$decodeStaticItemsFromResponse), - _lukewestby$elm_http_builder$HttpBuilder$get(url))); -}; -var _Gizra$circuit_bid$ItemManager_Update$fetchAllStaticItems = F2( - function (language, sale) { - return A2( - _elm_lang$core$List$map, - _Gizra$circuit_bid$ItemManager_Update$fetchStaticItem, - A2(_Gizra$circuit_bid$Sale_Utils$constructPublicUrls, language, sale)); - }); -var _Gizra$circuit_bid$ItemManager_Update$update = F8( - function (currentDate, backendUrl, isDebug, accessToken, language, user, msg, model) { - var _p4 = msg; - switch (_p4.ctor) { - case 'FetchAllBySale': - var _p6 = _p4._0._1; - var itemsByUserTypeCmds = A7(_Gizra$circuit_bid$ItemManager_Update$fetchItemsByUserType, currentDate, backendUrl, isDebug, accessToken, language, user, _p4._0._0); - var currentItemCmds = A7( - _Gizra$circuit_bid$ItemManager_Update$fetchItems, - currentDate, - backendUrl, - isDebug, - accessToken, - language, - user, - A2(_Gizra$circuit_bid$ItemManager_Utils$getCurrentAndNextItemIds, model, _p6.item)); - var _p5 = A8( - _Gizra$circuit_bid$ItemManager_Update$update, - currentDate, - backendUrl, - isDebug, - accessToken, - language, - user, - _Gizra$circuit_bid$ItemManager_Model$FetchedStaticItems(_p6), - model); - var staticCmds = _p5._1; - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: staticCmds, - _1: { - ctor: '::', - _0: currentItemCmds, - _1: { - ctor: '::', - _0: itemsByUserTypeCmds, - _1: {ctor: '[]'} - } - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'FetchCalculatedItems': - var _p7 = A3( - _elm_lang$core$List$foldl, - F2( - function (itemId, _p8) { - var _p9 = _p8; - var _p13 = _p9._0; - var _p12 = _p9._1; - var _p10 = A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, model.items); - if (_p10.ctor === 'Just') { - var _p11 = _p10._0; - return (_krisajenkins$remotedata$RemoteData$isFailure(_p11.calculated) || _krisajenkins$remotedata$RemoteData$isNotAsked(_p11.calculated)) ? { - ctor: '_Tuple2', - _0: {ctor: '::', _0: itemId, _1: _p13}, - _1: A3( - _Gizra$elm_dictlist$EveryDictList$insert, - itemId, - _elm_lang$core$Native_Utils.update( - _p11, - {calculated: _krisajenkins$remotedata$RemoteData$Loading}), - _p12) - } : {ctor: '_Tuple2', _0: _p13, _1: _p12}; - } else { - return {ctor: '_Tuple2', _0: _p13, _1: _p12}; - } - }), - { - ctor: '_Tuple2', - _0: {ctor: '[]'}, - _1: model.items - }, - _p4._0); - var unFetchedItemIds = _p7._0; - var itemsUpdated = _p7._1; - var _p14 = _elm_lang$core$List$isEmpty(unFetchedItemIds) ? {ctor: '_Tuple2', _0: model, _1: _elm_lang$core$Platform_Cmd$none} : { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - {items: itemsUpdated}), - _1: A7(_Gizra$circuit_bid$ItemManager_Update$fetchItems, currentDate, backendUrl, isDebug, accessToken, language, user, unFetchedItemIds) - }; - var modelUpdated = _p14._0; - var cmds = _p14._1; - return { - ctor: '_Tuple4', - _0: modelUpdated, - _1: cmds, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'FetchOwnCalculatedItems': - return { - ctor: '_Tuple4', - _0: model, - _1: A7(_Gizra$circuit_bid$ItemManager_Update$fetchItemsOwnPlacedBids, currentDate, backendUrl, isDebug, accessToken, language, user, _p4._0), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'FetchedStaticItems': - var cmds = _elm_lang$core$Platform_Cmd$batch( - A2(_Gizra$circuit_bid$ItemManager_Update$fetchAllStaticItems, language, _p4._0)); - return { - ctor: '_Tuple4', - _0: model, - _1: cmds, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'HandleFetchedStaticItems': - if (_p4._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: A2(_Gizra$circuit_bid$ItemManager_Utils$insertStaticItems, _p4._0._0, model), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'ItemManager.Update', 'HandleFetchedStaticItems', _p4._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedCalculatedItems': - if (_p4._1.ctor === 'Ok') { - var calculatedItems = A3( - _Gizra$elm_dictlist$EveryDictList$foldl, - F3( - function (key, calculatedItem, accum) { - return A3(_Gizra$elm_dictlist$EveryDictList$insert, key, calculatedItem, accum); - }), - _Gizra$elm_dictlist$EveryDictList$empty, - _p4._1._0); - var modelWithUpdatedItems = A3(_Gizra$circuit_bid$ItemManager_Utils$insertCalculatedItems, user, calculatedItems, model); - return { - ctor: '_Tuple4', - _0: modelWithUpdatedItems, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p15 = _p4._1._0; - var itemsUpdated = A2( - _Gizra$elm_dictlist$EveryDictList$map, - F2( - function (itemId, item) { - return A2(_elm_lang$core$List$member, itemId, _p4._0) ? _elm_lang$core$Native_Utils.update( - item, - { - calculated: _krisajenkins$remotedata$RemoteData$Failure(_p15) - }) : item; - }), - model.items); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {items: itemsUpdated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'ItemManager.Update', 'HandleFetchedCalculatedItems', _p15), - _3: {ctor: '[]'} - }; - } - default: - if (_p4._0.ctor === 'Ok') { - var _p16 = _p4._0._0.data; - if (_p16.ctor === 'ItemUpdate') { - return { - ctor: '_Tuple4', - _0: A4(_Gizra$circuit_bid$ItemManager_Utils$insertCalcultedItem, user, _p16._0, _p16._1, model), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$plainError, 'ItemManager.Update', 'HandlePusherEvent', _p4._0._0), - _3: {ctor: '[]'} - }; - } - } - }); - -var _elm_lang$core$Native_Bitwise = function() { - -return { - and: F2(function and(a, b) { return a & b; }), - or: F2(function or(a, b) { return a | b; }), - xor: F2(function xor(a, b) { return a ^ b; }), - complement: function complement(a) { return ~a; }, - shiftLeftBy: F2(function(offset, a) { return a << offset; }), - shiftRightBy: F2(function(offset, a) { return a >> offset; }), - shiftRightZfBy: F2(function(offset, a) { return a >>> offset; }) -}; - -}(); - -var _elm_lang$core$Bitwise$shiftRightZfBy = _elm_lang$core$Native_Bitwise.shiftRightZfBy; -var _elm_lang$core$Bitwise$shiftRightBy = _elm_lang$core$Native_Bitwise.shiftRightBy; -var _elm_lang$core$Bitwise$shiftLeftBy = _elm_lang$core$Native_Bitwise.shiftLeftBy; -var _elm_lang$core$Bitwise$complement = _elm_lang$core$Native_Bitwise.complement; -var _elm_lang$core$Bitwise$xor = _elm_lang$core$Native_Bitwise.xor; -var _elm_lang$core$Bitwise$or = _elm_lang$core$Native_Bitwise.or; -var _elm_lang$core$Bitwise$and = _elm_lang$core$Native_Bitwise.and; - -var _truqu$elm_base64$Base64_Decode$charToInt = function ($char) { - var _p0 = $char; - switch (_p0.valueOf()) { - case 'A': - return 0; - case 'B': - return 1; - case 'C': - return 2; - case 'D': - return 3; - case 'E': - return 4; - case 'F': - return 5; - case 'G': - return 6; - case 'H': - return 7; - case 'I': - return 8; - case 'J': - return 9; - case 'K': - return 10; - case 'L': - return 11; - case 'M': - return 12; - case 'N': - return 13; - case 'O': - return 14; - case 'P': - return 15; - case 'Q': - return 16; - case 'R': - return 17; - case 'S': - return 18; - case 'T': - return 19; - case 'U': - return 20; - case 'V': - return 21; - case 'W': - return 22; - case 'X': - return 23; - case 'Y': - return 24; - case 'Z': - return 25; - case 'a': - return 26; - case 'b': - return 27; - case 'c': - return 28; - case 'd': - return 29; - case 'e': - return 30; - case 'f': - return 31; - case 'g': - return 32; - case 'h': - return 33; - case 'i': - return 34; - case 'j': - return 35; - case 'k': - return 36; - case 'l': - return 37; - case 'm': - return 38; - case 'n': - return 39; - case 'o': - return 40; - case 'p': - return 41; - case 'q': - return 42; - case 'r': - return 43; - case 's': - return 44; - case 't': - return 45; - case 'u': - return 46; - case 'v': - return 47; - case 'w': - return 48; - case 'x': - return 49; - case 'y': - return 50; - case 'z': - return 51; - case '0': - return 52; - case '1': - return 53; - case '2': - return 54; - case '3': - return 55; - case '4': - return 56; - case '5': - return 57; - case '6': - return 58; - case '7': - return 59; - case '8': - return 60; - case '9': - return 61; - case '+': - return 62; - case '/': - return 63; - default: - return 0; - } -}; -var _truqu$elm_base64$Base64_Decode$intToString = function ($int) { - if (_elm_lang$core$Native_Utils.cmp($int, 65536) < 1) { - return _elm_lang$core$String$fromChar( - _elm_lang$core$Char$fromCode($int)); - } else { - var c = $int - 65536; - return _elm_lang$core$String$fromList( - { - ctor: '::', - _0: _elm_lang$core$Char$fromCode(55296 | (c >>> 10)), - _1: { - ctor: '::', - _0: _elm_lang$core$Char$fromCode(56320 | (1023 & c)), - _1: {ctor: '[]'} - } - }); - } -}; -var _truqu$elm_base64$Base64_Decode$add = F2( - function ($char, _p1) { - var _p2 = _p1; - var _p4 = _p2._2; - var _p3 = _p2._1; - var shiftAndAdd = function ($int) { - return (63 & $int) | (_p2._0 << 6); - }; - return _elm_lang$core$Native_Utils.eq(_p3, 0) ? (_elm_lang$core$Native_Utils.eq(128 & $char, 0) ? { - ctor: '_Tuple3', - _0: 0, - _1: 0, - _2: A2( - _elm_lang$core$Basics_ops['++'], - _p4, - _truqu$elm_base64$Base64_Decode$intToString($char)) - } : (_elm_lang$core$Native_Utils.eq(224 & $char, 192) ? {ctor: '_Tuple3', _0: 31 & $char, _1: 1, _2: _p4} : (_elm_lang$core$Native_Utils.eq(240 & $char, 224) ? {ctor: '_Tuple3', _0: 15 & $char, _1: 2, _2: _p4} : {ctor: '_Tuple3', _0: 7 & $char, _1: 3, _2: _p4}))) : (_elm_lang$core$Native_Utils.eq(_p3, 1) ? { - ctor: '_Tuple3', - _0: 0, - _1: 0, - _2: A2( - _elm_lang$core$Basics_ops['++'], - _p4, - _truqu$elm_base64$Base64_Decode$intToString( - shiftAndAdd($char))) - } : { - ctor: '_Tuple3', - _0: shiftAndAdd($char), - _1: _p3 - 1, - _2: _p4 - }); - }); -var _truqu$elm_base64$Base64_Decode$toUTF16 = F2( - function ($char, acc) { - return { - ctor: '_Tuple3', - _0: 0, - _1: 0, - _2: A2( - _truqu$elm_base64$Base64_Decode$add, - 255 & ($char >>> 0), - A2( - _truqu$elm_base64$Base64_Decode$add, - 255 & ($char >>> 8), - A2(_truqu$elm_base64$Base64_Decode$add, 255 & ($char >>> 16), acc))) - }; - }); -var _truqu$elm_base64$Base64_Decode$chomp = F2( - function (char_, _p5) { - var _p6 = _p5; - var _p10 = _p6._2; - var _p9 = _p6._0; - var _p8 = _p6._1; - var $char = _truqu$elm_base64$Base64_Decode$charToInt(char_); - var _p7 = _p8; - if (_p7 === 3) { - return A2(_truqu$elm_base64$Base64_Decode$toUTF16, _p9 | $char, _p10); - } else { - return {ctor: '_Tuple3', _0: ($char << ((3 - _p8) * 6)) | _p9, _1: _p8 + 1, _2: _p10}; - } - }); -var _truqu$elm_base64$Base64_Decode$initial = { - ctor: '_Tuple3', - _0: 0, - _1: 0, - _2: {ctor: '_Tuple3', _0: 0, _1: 0, _2: ''} -}; -var _truqu$elm_base64$Base64_Decode$wrapUp = function (_p11) { - var _p12 = _p11; - return (_elm_lang$core$Native_Utils.cmp(_p12._2._1, 0) > 0) ? _elm_lang$core$Result$Err('Invalid UTF-16') : _elm_lang$core$Result$Ok(_p12._2._2); -}; -var _truqu$elm_base64$Base64_Decode$stripNulls = F2( - function (input, output) { - return A2(_elm_lang$core$String$endsWith, '==', input) ? A2(_elm_lang$core$String$dropRight, 2, output) : (A2(_elm_lang$core$String$endsWith, '=', input) ? A2(_elm_lang$core$String$dropRight, 1, output) : output); - }); -var _truqu$elm_base64$Base64_Decode$validBase64Regex = _elm_lang$core$Regex$regex('^([A-Za-z0-9\\/+]{4})*([A-Za-z0-9\\/+]{2}[A-Za-z0-9\\/+=]{2})?$'); -var _truqu$elm_base64$Base64_Decode$validate = function (input) { - return A2(_elm_lang$core$Regex$contains, _truqu$elm_base64$Base64_Decode$validBase64Regex, input) ? _elm_lang$core$Result$Ok(input) : _elm_lang$core$Result$Err('Invalid base64'); -}; -var _truqu$elm_base64$Base64_Decode$pad = function (input) { - var _p13 = A2( - _elm_lang$core$Basics$rem, - _elm_lang$core$String$length(input), - 4); - switch (_p13) { - case 3: - return A2(_elm_lang$core$Basics_ops['++'], input, '='); - case 2: - return A2(_elm_lang$core$Basics_ops['++'], input, '=='); - default: - return input; - } -}; -var _truqu$elm_base64$Base64_Decode$validateAndDecode = function (input) { - return A2( - _elm_lang$core$Result$map, - _truqu$elm_base64$Base64_Decode$stripNulls(input), - A2( - _elm_lang$core$Result$andThen, - function (_p14) { - return _truqu$elm_base64$Base64_Decode$wrapUp( - A3(_elm_lang$core$String$foldl, _truqu$elm_base64$Base64_Decode$chomp, _truqu$elm_base64$Base64_Decode$initial, _p14)); - }, - _truqu$elm_base64$Base64_Decode$validate(input))); -}; -var _truqu$elm_base64$Base64_Decode$decode = function (_p15) { - return _truqu$elm_base64$Base64_Decode$validateAndDecode( - _truqu$elm_base64$Base64_Decode$pad(_p15)); -}; - -var _truqu$elm_base64$Base64_Encode$intToBase64 = function (i) { - var _p0 = i; - switch (_p0) { - case 0: - return 'A'; - case 1: - return 'B'; - case 2: - return 'C'; - case 3: - return 'D'; - case 4: - return 'E'; - case 5: - return 'F'; - case 6: - return 'G'; - case 7: - return 'H'; - case 8: - return 'I'; - case 9: - return 'J'; - case 10: - return 'K'; - case 11: - return 'L'; - case 12: - return 'M'; - case 13: - return 'N'; - case 14: - return 'O'; - case 15: - return 'P'; - case 16: - return 'Q'; - case 17: - return 'R'; - case 18: - return 'S'; - case 19: - return 'T'; - case 20: - return 'U'; - case 21: - return 'V'; - case 22: - return 'W'; - case 23: - return 'X'; - case 24: - return 'Y'; - case 25: - return 'Z'; - case 26: - return 'a'; - case 27: - return 'b'; - case 28: - return 'c'; - case 29: - return 'd'; - case 30: - return 'e'; - case 31: - return 'f'; - case 32: - return 'g'; - case 33: - return 'h'; - case 34: - return 'i'; - case 35: - return 'j'; - case 36: - return 'k'; - case 37: - return 'l'; - case 38: - return 'm'; - case 39: - return 'n'; - case 40: - return 'o'; - case 41: - return 'p'; - case 42: - return 'q'; - case 43: - return 'r'; - case 44: - return 's'; - case 45: - return 't'; - case 46: - return 'u'; - case 47: - return 'v'; - case 48: - return 'w'; - case 49: - return 'x'; - case 50: - return 'y'; - case 51: - return 'z'; - case 52: - return '0'; - case 53: - return '1'; - case 54: - return '2'; - case 55: - return '3'; - case 56: - return '4'; - case 57: - return '5'; - case 58: - return '6'; - case 59: - return '7'; - case 60: - return '8'; - case 61: - return '9'; - case 62: - return '+'; - default: - return '/'; - } -}; -var _truqu$elm_base64$Base64_Encode$toBase64 = function ($int) { - return A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & ($int >>> 18)), - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & ($int >>> 12)), - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & ($int >>> 6)), - _truqu$elm_base64$Base64_Encode$intToBase64(63 & ($int >>> 0))))); -}; -var _truqu$elm_base64$Base64_Encode$add = F2( - function ($char, _p1) { - var _p2 = _p1; - var _p5 = _p2._0; - var _p4 = _p2._1; - var current = (_p2._2 << 8) | $char; - var _p3 = _p4; - if (_p3 === 2) { - return { - ctor: '_Tuple3', - _0: A2( - _elm_lang$core$Basics_ops['++'], - _p5, - _truqu$elm_base64$Base64_Encode$toBase64(current)), - _1: 0, - _2: 0 - }; - } else { - return {ctor: '_Tuple3', _0: _p5, _1: _p4 + 1, _2: current}; - } - }); -var _truqu$elm_base64$Base64_Encode$chomp = F2( - function (char_, _p6) { - var _p7 = _p6; - var _p9 = _p7._1; - var $char = _elm_lang$core$Char$toCode(char_); - var _p8 = _p7._0; - if (_p8.ctor === 'Nothing') { - return (_elm_lang$core$Native_Utils.cmp($char, 128) < 0) ? { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Nothing, - _1: A2(_truqu$elm_base64$Base64_Encode$add, $char, _p9) - } : ((_elm_lang$core$Native_Utils.cmp($char, 2048) < 0) ? { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Nothing, - _1: A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & $char), - A2(_truqu$elm_base64$Base64_Encode$add, 192 | ($char >>> 6), _p9)) - } : (((_elm_lang$core$Native_Utils.cmp($char, 55296) < 0) || (_elm_lang$core$Native_Utils.cmp($char, 57344) > -1)) ? { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Nothing, - _1: A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & $char), - A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & ($char >>> 6)), - A2(_truqu$elm_base64$Base64_Encode$add, 224 | ($char >>> 12), _p9))) - } : { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Just($char), - _1: _p9 - })); - } else { - var combined = A2( - F2( - function (x, y) { - return x + y; - }), - 65536, - (1023 & $char) | ((1023 & _p8._0) << 10)); - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Nothing, - _1: A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & combined), - A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & (combined >>> 6)), - A2( - _truqu$elm_base64$Base64_Encode$add, - 128 | (63 & (combined >>> 12)), - A2(_truqu$elm_base64$Base64_Encode$add, 240 | (combined >>> 18), _p9)))) - }; - } - }); -var _truqu$elm_base64$Base64_Encode$wrapUp = function (_p10) { - var _p11 = _p10; - var _p14 = _p11._1._0; - var _p13 = _p11._1._2; - var _p12 = _p11._1._1; - switch (_p12) { - case 1: - return A2( - _elm_lang$core$Basics_ops['++'], - _p14, - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & (_p13 >>> 2)), - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & (_p13 << 4)), - '=='))); - case 2: - return A2( - _elm_lang$core$Basics_ops['++'], - _p14, - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & (_p13 >>> 10)), - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & (_p13 >>> 4)), - A2( - _elm_lang$core$Basics_ops['++'], - _truqu$elm_base64$Base64_Encode$intToBase64(63 & (_p13 << 2)), - '=')))); - default: - return _p14; - } -}; -var _truqu$elm_base64$Base64_Encode$initial = { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Nothing, - _1: {ctor: '_Tuple3', _0: '', _1: 0, _2: 0} -}; -var _truqu$elm_base64$Base64_Encode$encode = function (input) { - return _truqu$elm_base64$Base64_Encode$wrapUp( - A3(_elm_lang$core$String$foldl, _truqu$elm_base64$Base64_Encode$chomp, _truqu$elm_base64$Base64_Encode$initial, input)); -}; - -var _truqu$elm_base64$Base64$decode = _truqu$elm_base64$Base64_Decode$decode; -var _truqu$elm_base64$Base64$encode = _truqu$elm_base64$Base64_Encode$encode; - -var _Gizra$circuit_bid$Login_Decoder$encodeCredentials = function (_p0) { - var _p1 = _p0; - return _truqu$elm_base64$Base64$encode( - A2( - _elm_lang$core$Basics_ops['++'], - _p1._0, - A2(_elm_lang$core$Basics_ops['++'], ':', _p1._1))); -}; -var _Gizra$circuit_bid$Login_Decoder$decodeError = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'error', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Login_Decoder$decodeAccessToken = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'access_token', - _1: {ctor: '[]'} - }, - _elm_lang$core$Json_Decode$string); - -var _Gizra$circuit_bid$Ports$saveAccessToken = _elm_lang$core$Native_Platform.outgoingPort( - 'saveAccessToken', - function (v) { - return v; - }); -var _Gizra$circuit_bid$Ports$clearAccessToken = _elm_lang$core$Native_Platform.outgoingPort( - 'clearAccessToken', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$offline = _elm_lang$core$Native_Platform.incomingPort('offline', _elm_lang$core$Json_Decode$value); -var _Gizra$circuit_bid$Ports$userLoggedIn = _elm_lang$core$Native_Platform.outgoingPort( - 'userLoggedIn', - function (v) { - return v; - }); -var _Gizra$circuit_bid$Ports$userLoggedOut = _elm_lang$core$Native_Platform.outgoingPort( - 'userLoggedOut', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$userTryLogin = _elm_lang$core$Native_Platform.outgoingPort( - 'userTryLogin', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$delayedReload = _elm_lang$core$Native_Platform.outgoingPort( - 'delayedReload', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$immediateReload = _elm_lang$core$Native_Platform.outgoingPort( - 'immediateReload', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$playSoundOnLiveBid = _elm_lang$core$Native_Platform.outgoingPort( - 'playSoundOnLiveBid', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Ports$focus = _elm_lang$core$Native_Platform.outgoingPort( - 'focus', - function (v) { - return v; - }); -var _Gizra$circuit_bid$Ports$loadBackofficeCSS = _elm_lang$core$Native_Platform.outgoingPort( - 'loadBackofficeCSS', - function (v) { - return v; - }); - -var _Gizra$circuit_bid$User_Decoder$decodeWebsiteBidderInfo = A2( - _elm_lang$core$Json_Decode$andThen, - function (list) { - return _elm_lang$core$Json_Decode$succeed( - _eeue56$elm_all_dict$EveryDict$fromList(list)); - }, - _elm_lang$core$Json_Decode$list( - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'bidder_info', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'sale_uuid', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - })))))); -var _Gizra$circuit_bid$User_Decoder$stringToUserType = function (userType) { - var _p0 = userType; - switch (_p0) { - case 'bidder': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$User_Model$Bidder); - case 'privileged': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$User_Model$Privileged); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise user type: ', userType)); - } -}; -var _Gizra$circuit_bid$User_Decoder$stringToStatus = function (status) { - var _p1 = status; - switch (_p1) { - case 'active': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$User_Model$Active); - case 'pending': - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$User_Model$Pending); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status: ', status)); - } -}; -var _Gizra$circuit_bid$User_Decoder$decodeType = function (stringToType) { - return A2(_elm_lang$core$Json_Decode$andThen, stringToType, _elm_lang$core$Json_Decode$string); -}; -var _Gizra$circuit_bid$User_Decoder$decodeAddress = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'postal_code', - _elm_lang$core$Json_Decode$string, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'administrative_area', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'locality', - _elm_lang$core$Json_Decode$string, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'premise', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - _elm_lang$core$Maybe$Nothing, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'thoroughfare', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'country', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$User_Model$Address))))))); -var _Gizra$circuit_bid$User_Decoder$decodeUser = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'website_bidder_info', - _Gizra$circuit_bid$User_Decoder$decodeWebsiteBidderInfo, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'user_type', - _Gizra$circuit_bid$User_Decoder$decodeType(_Gizra$circuit_bid$User_Decoder$stringToUserType), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'status', - _Gizra$circuit_bid$User_Decoder$decodeType(_Gizra$circuit_bid$User_Decoder$stringToStatus), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'uuid', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityUuid, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'site', - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'id', - _Gizra$circuit_bid$Backend_Decoder$decodeUserId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'references', - _elm_lang$core$Json_Decode$nullable(_elm_lang$core$Json_Decode$string), - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'address', - _elm_lang$core$Json_Decode$maybe(_Gizra$circuit_bid$User_Decoder$decodeAddress), - _elm_lang$core$Maybe$Nothing, - A4( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$optional, - 'phone', - _elm_lang$core$Json_Decode$string, - '', - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'mail', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'last_name', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'first_name', - _elm_lang$core$Json_Decode$string, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'label', - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$User_Model$AuthenticatedUser)))))))))))))); -var _Gizra$circuit_bid$User_Decoder$decodeUserFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$User_Decoder$decodeUser); - -var _Gizra$circuit_bid$Login_Update$fetchUserFromBackend = F2( - function (backendUrl, accessToken) { - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$User_Decoder$decodeUser, - _Gizra$circuit_bid$Login_Model$HandleFetchedUser(accessToken), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/me')))); - }); -var _Gizra$circuit_bid$Login_Update$fetchAccessTokenFromBackend = F3( - function (backendUrl, siteShortName, loginForm) { - var credentials = _Gizra$circuit_bid$Login_Decoder$encodeCredentials( - {ctor: '_Tuple2', _0: loginForm.name, _1: loginForm.pass}); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Login_Decoder$decodeAccessToken, - _Gizra$circuit_bid$Login_Model$HandleFetchedAccessToken, - A3( - _lukewestby$elm_http_builder$HttpBuilder$withHeader, - 'Authorization', - A2(_elm_lang$core$Basics_ops['++'], 'Basic ', credentials), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'site', _1: siteShortName}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/login-token'))))); - }); -var _Gizra$circuit_bid$Login_Update$update = F3( - function (backendUrl, msg, model) { - var _p0 = msg; - switch (_p0.ctor) { - case 'HandleFetchedAccessToken': - if (_p0._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {status: _krisajenkins$remotedata$RemoteData$Loading}), - _1: A2(_Gizra$circuit_bid$Login_Update$fetchUserFromBackend, backendUrl, _p0._0._0), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Nothing - }; - } else { - var _p1 = _p0._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - status: _krisajenkins$remotedata$RemoteData$Failure(_p1) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Login.Update', 'HandleFetchedAccessToken', _p1), - _3: _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: '', _1: _Gizra$circuit_bid$User_Model$Anonymous}) - }; - } - case 'HandleFetchedUser': - if (_p0._1.ctor === 'Ok') { - var _p2 = _p0._1._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - status: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: _Gizra$circuit_bid$Ports$userLoggedIn( - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p2.uuid)), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: _p0._0, - _1: _Gizra$circuit_bid$User_Model$Authenticated(_p2) - }) - }; - } else { - var _p3 = _p0._1._0; - return _Gizra$circuit_bid$Error_Utils$is401(_p3) ? { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - status: _krisajenkins$remotedata$RemoteData$Failure(_p3) - }), - _1: _Gizra$circuit_bid$Ports$clearAccessToken( - {ctor: '_Tuple0'}), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Just( - {ctor: '_Tuple2', _0: '', _1: _Gizra$circuit_bid$User_Model$Anonymous}) - } : { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - status: _krisajenkins$remotedata$RemoteData$Failure(_p3) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Login.Update', 'HandleFetchedUser', _p3), - _3: _elm_lang$core$Maybe$Nothing - }; - } - case 'SetName': - var loginForm = model.loginForm; - var loginForm_ = _elm_lang$core$Native_Utils.update( - loginForm, - {name: _p0._0}); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {loginForm: loginForm_}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Nothing - }; - case 'SetPassword': - var loginForm = model.loginForm; - var loginForm_ = _elm_lang$core$Native_Utils.update( - loginForm, - {pass: _p0._0}); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {loginForm: loginForm_}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Nothing - }; - default: - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {status: _krisajenkins$remotedata$RemoteData$Loading}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Login_Update$fetchAccessTokenFromBackend, backendUrl, _p0._0, model.loginForm), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Ports$userTryLogin( - {ctor: '_Tuple0'}), - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: _elm_lang$core$Maybe$Nothing - }; - } - }); - -var _Gizra$circuit_bid$Backend_ConnectedUser_Encoder$encodeClerkEvent = F3( - function (env, event, saleUuid) { - var _p0 = function () { - var _p1 = event; - if (_p1.ctor === 'QueuedBidsUpdate') { - var _p2 = _p1._0; - return { - ctor: '_Tuple2', - _0: 'clerk__sale__queued_bids_update', - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'bid', - _1: A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Json_Encode$null, - A2(_elm_lang$core$Maybe$map, _elm_lang$core$Json_Encode$int, _p2.bid)) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'next_bid', - _1: A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Json_Encode$null, - A2(_elm_lang$core$Maybe$map, _elm_lang$core$Json_Encode$int, _p2.nextBid)) - }, - _1: {ctor: '[]'} - } - } - }; - } else { - return { - ctor: '_Tuple2', - _0: 'clerk__sale__active_to_going_update', - _1: {ctor: '[]'} - }; - } - }(); - var eventName = _p0._0; - var eventData = _p0._1; - return _elm_lang$core$Json_Encode$object( - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'event', - _1: _elm_lang$core$Json_Encode$string(eventName) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'saleUuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'item', - _1: _elm_lang$core$Json_Encode$string('1') - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'env', - _1: _elm_lang$core$Json_Encode$string(env) - }, - _1: {ctor: '[]'} - } - } - } - }, - eventData)); - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_Encoder$encodeConnectedUserEvent = F5( - function (env, event, user, modelBackend, saleUuid) { - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - _elm_lang$core$Json_Encode$object( - {ctor: '[]'}), - user, - function (authUser) { - var bidderNumber = A2( - _elm_lang$core$Maybe$withDefault, - '', - A2( - _elm_lang$core$Maybe$andThen, - function (bidderInfo) { - return _elm_lang$core$Maybe$Just( - _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo))); - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, saleUuid))); - var eventName = function () { - var _p3 = event; - switch (_p3.ctor) { - case 'HeartBeat': - return 'connected_users__sale__heartbeat'; - case 'PlaceBidMouseEnter': - return 'connected_users__sale__place_bid__mouse_enter'; - default: - return 'connected_users__sale__place_bid__mouse_leave'; - } - }(); - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'event', - _1: _elm_lang$core$Json_Encode$string(eventName) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'saleUuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'bidderNumber', - _1: _elm_lang$core$Json_Encode$string(bidderNumber) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'item', - _1: _elm_lang$core$Json_Encode$string('1') - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'env', - _1: _elm_lang$core$Json_Encode$string(env) - }, - _1: {ctor: '[]'} - } - } - } - } - }); - }); - }); - -var _Gizra$circuit_bid$Item_Encoder$encodeClerkStatus = function (clerkStatus) { - var _p0 = clerkStatus; - switch (_p0.ctor) { - case 'Open': - return _elm_lang$core$Json_Encode$string('open'); - case 'Going': - return _elm_lang$core$Json_Encode$string('going'); - case 'GoneTransition': - return _elm_lang$core$Json_Encode$string('gone'); - default: - return _elm_lang$core$Json_Encode$string('paused'); - } -}; -var _Gizra$circuit_bid$Item_Encoder$encodeItemPrice = _elm_lang$core$Json_Encode$int; -var _Gizra$circuit_bid$Item_Encoder$encodeItemId = function (_p1) { - var _p2 = _p1; - return _elm_lang$core$Json_Encode$int(_p2._0); -}; -var _Gizra$circuit_bid$Item_Encoder$encodeMaybeItemId = function (maybe) { - var _p3 = maybe; - if (_p3.ctor === 'Just') { - return _elm_lang$core$Json_Encode$int(_p3._0._0); - } else { - return _elm_lang$core$Json_Encode$null; - } -}; - -var _Gizra$circuit_bid$Bid_Encoder$encodeUnderExtensionUpdate = function (underExtension) { - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'under_extension', - _1: _elm_lang$core$Json_Encode$bool(underExtension) - }, - _1: {ctor: '[]'} - }); -}; -var _Gizra$circuit_bid$Bid_Encoder$encodeBidderIdUpdate = function (bidderId) { - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'bidder_id', - _1: _elm_lang$core$Json_Encode$string( - _elm_lang$core$Basics$toString(bidderId)) - }, - _1: {ctor: '[]'} - }); -}; -var _Gizra$circuit_bid$Bid_Encoder$encodeBidAmountPatch = function (_p0) { - var _p1 = _p0; - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'amount', - _1: _Gizra$circuit_bid$Amount$encodeAmount(_p1.amount) - }, - _1: {ctor: '[]'} - }); -}; -var _Gizra$circuit_bid$Bid_Encoder$encodeBidType = function (bidType) { - var _p2 = bidType; - switch (_p2.ctor) { - case 'Agent': - return _elm_lang$core$Json_Encode$string('agent'); - case 'AutoAgent': - return _elm_lang$core$Json_Encode$string('auto_agent'); - case 'Book': - return _elm_lang$core$Json_Encode$string('book'); - case 'Floor': - return _elm_lang$core$Json_Encode$string('floor'); - case 'Internet': - return _elm_lang$core$Json_Encode$string('internet'); - case 'Mail': - return _elm_lang$core$Json_Encode$string('mail'); - default: - return _elm_lang$core$Json_Encode$string('post_sale'); - } -}; -var _Gizra$circuit_bid$Bid_Encoder$encodeFloorBid = function (request) { - return _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'amount', - _1: _Gizra$circuit_bid$Amount$encodeAmount(request.amount) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'item', - _1: _Gizra$circuit_bid$Item_Encoder$encodeItemId(request.item) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'type', - _1: _Gizra$circuit_bid$Bid_Encoder$encodeBidType(_Gizra$circuit_bid$Bid_Model$Floor) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(request.saleUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'livequeue', - _1: _elm_lang$core$Json_Encode$bool(true) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('place_bid') - }, - _1: {ctor: '[]'} - } - } - } - } - } - }); -}; -var _Gizra$circuit_bid$Bid_Encoder$encodeBid = function (request) { - var liveBidTag = A2( - _elm_lang$core$List$member, - request.bidType, - { - ctor: '::', - _0: _Gizra$circuit_bid$Bid_Model$Internet, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Bid_Model$Floor, - _1: {ctor: '[]'} - } - }) ? { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'livequeue', - _1: _elm_lang$core$Json_Encode$bool(true) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('place_bid') - }, - _1: {ctor: '[]'} - } - } : {ctor: '[]'}; - return _elm_lang$core$Json_Encode$object( - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'amount', - _1: _Gizra$circuit_bid$Amount$encodeAmount(request.amount) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'item', - _1: _Gizra$circuit_bid$Item_Encoder$encodeItemId(request.item) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'bidder_id', - _1: _elm_lang$core$Json_Encode$int(request.bidderNumber) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'type', - _1: _Gizra$circuit_bid$Bid_Encoder$encodeBidType(request.bidType) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(request.saleUuid) - }, - _1: {ctor: '[]'} - } - } - } - } - }, - liveBidTag)); -}; -var _Gizra$circuit_bid$Bid_Encoder$BidRequest = F5( - function (a, b, c, d, e) { - return {amount: a, item: b, bidderNumber: c, bidType: d, saleUuid: e}; - }); -var _Gizra$circuit_bid$Bid_Encoder$BidAmountPatchRequest = function (a) { - return {amount: a}; -}; -var _Gizra$circuit_bid$Bid_Encoder$FloorBidRequest = F3( - function (a, b, c) { - return {amount: a, item: b, saleUuid: c}; - }); - -var _Gizra$circuit_bid$QueuedRequest_Decoder$decodeQueuedRequestIdFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'task_id', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string); - -var _Gizra$circuit_bid$Bid_Update$updateUnderExtension = F6( - function (backendUrl, accessToken, tagger, user, _p0, underExtension) { - var _p1 = _p0; - var decodeBidFromResponse = A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Tuple$second, - _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromResponse( - _Gizra$circuit_bid$User_Model$Authenticated(user))); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - decodeBidFromResponse, - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _Gizra$circuit_bid$Bid_Encoder$encodeUnderExtensionUpdate(underExtension), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/bids/', _p1._0)))))); - }); -var _Gizra$circuit_bid$Bid_Update$updateBidderId = F6( - function (backendUrl, accessToken, tagger, user, _p2, bidderId) { - var _p3 = _p2; - var decodeBidFromResponse = A2( - _elm_lang$core$Json_Decode$map, - _elm_lang$core$Tuple$second, - _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromResponse( - _Gizra$circuit_bid$User_Model$Authenticated(user))); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - decodeBidFromResponse, - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _Gizra$circuit_bid$Bid_Encoder$encodeBidderIdUpdate(bidderId), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/bids/', _p3._0)))))); - }); -var _Gizra$circuit_bid$Bid_Update$placeFloorBid = F7( - function (backendUrl, accessToken, tagger, user, itemId, saleUuid, amount) { - var bid = {amount: amount, item: itemId, saleUuid: saleUuid}; - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$QueuedRequest_Decoder$decodeQueuedRequestIdFromResponse, - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _Gizra$circuit_bid$Bid_Encoder$encodeFloorBid(bid), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$post( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/bids'))))); - }); -var _Gizra$circuit_bid$Bid_Update$updateBid = F6( - function (backendUrl, accessToken, tagger, user, _p4, amount) { - var _p5 = _p4; - var bid = {amount: amount}; - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromResponse( - _Gizra$circuit_bid$User_Model$Authenticated(user)), - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _Gizra$circuit_bid$Bid_Encoder$encodeBidAmountPatch(bid), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/bids/', _p5._0)))))); - }); -var _Gizra$circuit_bid$Bid_Update$placeBid = F9( - function (backendUrl, accessToken, user, modelBackend, saleUuid, itemId, bidType, amount, tagger) { - var maybeBidderNumber = A2( - _elm_lang$core$Maybe$map, - _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, saleUuid)); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (bidderNumber) { - var bid = {amount: amount, item: itemId, bidderNumber: bidderNumber, bidType: bidType, saleUuid: saleUuid}; - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$QueuedRequest_Decoder$decodeQueuedRequestIdFromResponse, - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _Gizra$circuit_bid$Bid_Encoder$encodeBid(bid), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$post( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/bids'))))); - }, - maybeBidderNumber); - }); - -var _Gizra$circuit_bid$BidderId_Utils$getBidderId = F2( - function (maybeFloorBidderId, webdataBidderIds) { - var _p0 = maybeFloorBidderId; - if (_p0.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p1 = _krisajenkins$remotedata$RemoteData$toMaybe(webdataBidderIds); - if (_p1.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p2 = A2(_eeue56$elm_all_dict$EveryDict$get, _p0._0, _p1._0); - if (_p2.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Maybe$Just(_p2._0); - } - } - } - }); -var _Gizra$circuit_bid$BidderId_Utils$validateFloorBidderId = F2( - function (sale, input) { - return A2( - _elm_lang$core$Result$mapError, - function (err) { - return {ctor: '_Tuple2', _0: input, _1: err}; - }, - _elm_lang$core$String$isEmpty(input) ? _elm_lang$core$Result$Err(_Gizra$circuit_bid$BidderId_Model$NoInput) : A2( - _elm_lang$core$Result$andThen, - function (bidderId) { - return _elm_lang$core$Result$Ok(bidderId); - }, - A2( - _elm_lang$core$Result$mapError, - _elm_lang$core$Basics$always(_Gizra$circuit_bid$BidderId_Model$NotDigits), - _elm_lang$core$String$toInt(input)))); - }); - -var _Gizra$circuit_bid$Item_Utils$getStaticItem = function (item) { - return {name: item.name, image: item.image, description: item.description, estimatedPrice: item.estimatedPrice, lotId: item.lotId}; -}; -var _Gizra$circuit_bid$Item_Utils$withPrice = F2( - function (func, price) { - var _p0 = price; - if (_p0.ctor === 'Current') { - return func(_p0._0); - } else { - return func(_p0._0); - } - }); -var _Gizra$circuit_bid$Item_Utils$getNextPriceAmount = function (calculated) { - var _p1 = calculated.nextPrice; - if (_p1.ctor === 'Just') { - return _p1._0; - } else { - return _Gizra$circuit_bid$Amount$zero; - } -}; -var _Gizra$circuit_bid$Item_Utils$getAmountFromPrice = function (price) { - var _p2 = price; - if (_p2.ctor === 'Opening') { - return _p2._0; - } else { - return _p2._0; - } -}; -var _Gizra$circuit_bid$Item_Utils$hasLiveBids = function (calculated) { - return _elm_community$maybe_extra$Maybe_Extra$isJust( - _Gizra$circuit_bid$Bid_Utils$getHighestBid(calculated.bids)); -}; -var _Gizra$circuit_bid$Item_Utils$clerkStatusIsLoading = function (status) { - var isLoading = function (clerkStatus) { - return _krisajenkins$remotedata$RemoteData$isLoading( - _Gizra$elm_editable_webdata$Editable_WebData$toWebData(clerkStatus)); - }; - var _p3 = status; - if (_p3.ctor === 'EditableStatus') { - var _p4 = _p3._0; - if (_p4.ctor === 'LiveOnly') { - return isLoading(_p4._0); - } else { - return false; - } - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$getClerkStatus = function (editableStatus) { - var extractValue = function (val) { - return _elm_lang$core$Maybe$Just( - _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(val))); - }; - var _p5 = editableStatus; - if (_p5.ctor === 'LiveOnly') { - return extractValue(_p5._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$circuit_bid$Item_Utils$getEditableItemStatus = function (status) { - var _p6 = status; - if (_p6.ctor === 'EditableStatus') { - return _elm_lang$core$Maybe$Just(_p6._0); - } else { - return _elm_lang$core$Maybe$Nothing; - } -}; -var _Gizra$circuit_bid$Item_Utils$isItemNotActiveButAlreadyHasLiveBids = function (status) { - return _elm_lang$core$Native_Utils.eq( - status, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus(_Gizra$circuit_bid$Item_Model$ItemNotActiveButAlreadyHasLiveBids)); -}; -var _Gizra$circuit_bid$Item_Utils$isMailAllowed = function (status) { - return _elm_lang$core$Native_Utils.eq( - status, - _Gizra$circuit_bid$Item_Model$EditableStatus(_Gizra$circuit_bid$Item_Model$MailOnly)); -}; -var _Gizra$circuit_bid$Item_Utils$isLiveAllowed = function (status) { - var _p7 = status; - if ((_p7.ctor === 'EditableStatus') && (_p7._0.ctor === 'LiveOnly')) { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isUnsold = function (status) { - return _elm_lang$core$Native_Utils.eq( - status, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Unsold))); -}; -var _Gizra$circuit_bid$Item_Utils$isSold = function (status) { - return _elm_lang$core$Native_Utils.eq( - status, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Sold))); -}; -var _Gizra$circuit_bid$Item_Utils$isWithdrawn = function (status) { - return _elm_lang$core$Native_Utils.eq( - status, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus(_Gizra$circuit_bid$Item_Model$Withdrawn)); -}; -var _Gizra$circuit_bid$Item_Utils$isPaused = function (status) { - var _p8 = status; - if (_p8.ctor === 'EditableStatus') { - return _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p8._0), - _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Item_Model$Paused)); - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isGoneTransition = function (status) { - var _p9 = status; - if (_p9.ctor === 'EditableStatus') { - return _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p9._0), - _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Item_Model$GoneTransition)); - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isGoing = function (status) { - var _p10 = status; - if (_p10.ctor === 'EditableStatus') { - return _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p10._0), - _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Item_Model$Going)); - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isOpen = function (status) { - var _p11 = status; - if (_p11.ctor === 'EditableStatus') { - return _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p11._0), - _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Item_Model$Open)); - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isOpenOrGoing = function (status) { - return _Gizra$circuit_bid$Item_Utils$isOpen(status) || _Gizra$circuit_bid$Item_Utils$isGoing(status); -}; -var _Gizra$circuit_bid$Item_Utils$isLiveOpenOrGoing = function (status) { - return _Gizra$circuit_bid$Item_Utils$isOpenOrGoing(status) && _Gizra$circuit_bid$Item_Utils$isLiveAllowed(status); -}; -var _Gizra$circuit_bid$Item_Utils$isAvailable = function (status) { - var _p12 = status; - if (_p12.ctor === 'EditableStatus') { - return true; - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$isClosed = function (status) { - var _p13 = status; - if (_p13.ctor === 'ReadOnlyStatus') { - var _p14 = _p13._0; - if (_p14.ctor === 'ItemClosed') { - return true; - } else { - return false; - } - } else { - return false; - } -}; -var _Gizra$circuit_bid$Item_Utils$getWinningBid = function (calculated) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Maybe$Nothing, - function (winningBid) { - var maybeMailBid = A2(_Gizra$elm_dictlist$EveryDictList$get, winningBid, calculated.bookBids); - var maybeLiveBid = A2(_Gizra$elm_dictlist$EveryDictList$get, winningBid, calculated.bids); - return A2(_elm_community$maybe_extra$Maybe_Extra$or, maybeLiveBid, maybeMailBid); - }, - calculated.winningBid); -}; -var _Gizra$circuit_bid$Item_Utils$hasWinningBid = function (calculated) { - return _elm_community$maybe_extra$Maybe_Extra$isJust(calculated.winningBid); -}; -var _Gizra$circuit_bid$Item_Utils$getPrice = function (calculated) { - return _Gizra$circuit_bid$Item_Utils$hasWinningBid(calculated) ? _Gizra$circuit_bid$Item_Model$Current( - A2(_elm_lang$core$Maybe$withDefault, calculated.openingPrice, calculated.currentPrice)) : _Gizra$circuit_bid$Item_Model$Opening(calculated.openingPrice); -}; -var _Gizra$circuit_bid$Item_Utils$isWinningUser = F4( - function (user, modelBackend, saleUuid, calculated) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - false, - function (bidKey) { - var hasOwnBid = function (bidDict) { - var _p15 = A2(_Gizra$elm_dictlist$EveryDictList$get, bidKey, bidDict); - if (_p15.ctor === 'Nothing') { - return false; - } else { - return A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, saleUuid, _p15._0); - } - }; - return hasOwnBid(calculated.bids) || hasOwnBid(calculated.bookBids); - }, - calculated.winningBid); - }); - -var _Gizra$circuit_bid$Message_Decoder$decodePublicClerkMessage = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'text', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Message_Model$ClerkPublic)); -var _Gizra$circuit_bid$Message_Decoder$decodeItemStatusFromMessage = _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$EditableStatus, - A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$LiveOnly, - A2(_elm_lang$core$Json_Decode$map, _Gizra$elm_editable_webdata$Editable_WebData$create, _Gizra$circuit_bid$Item_Decoder$decodeClerkStatus))), - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p0 = status; - switch (_p0) { - case 'sold': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Sold))); - case 'unsold': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed( - _Gizra$circuit_bid$Item_Model$ItemClosed(_Gizra$circuit_bid$Item_Model$Unsold))); - case 'withdrawn': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Item_Model$ReadOnlyStatus, - _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Item_Model$Withdrawn)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise status: ', status)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)), - _1: {ctor: '[]'} - } - }); -var _Gizra$circuit_bid$Message_Decoder$decodeSaleMessage = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'arguments', - _Gizra$circuit_bid$Message_Decoder$decodeItemStatusFromMessage, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'item_id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Message_Model$SaleUpdateActiveItem))); -var _Gizra$circuit_bid$Message_Decoder$decodeItemMessage = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'arguments', - _Gizra$circuit_bid$Message_Decoder$decodeItemStatusFromMessage, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'item_id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Message_Model$ItemUpdate))); -var _Gizra$circuit_bid$Message_Decoder$decodeBidMessage = A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var maybeMessageType = function () { - var _p1 = status; - switch (_p1) { - case 'accepted': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidAccepted); - case 'changed_to_floor': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidChangedToFloor); - case 'deleted': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidDeleted); - case 'outbid': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidOutbid); - case 'rejected': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidRejected); - case 'rejected_over_bidder_max': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidRejectedBidderMax); - case 'rejected_over_credit_limit': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidRejectedCreditLimit); - case 'rejected_bellow_minimum': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Message_Model$BidRejectedBellowMinimum); - default: - return _elm_lang$core$Maybe$Nothing; - } - }(); - var _p2 = maybeMessageType; - if (_p2.ctor === 'Just') { - return A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'bid_key', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBidKey, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'item_id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_p2._0))); - } else { - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise bid status: ', status)); - } - }, - A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'arguments', - _1: { - ctor: '::', - _0: 'status', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Message_Decoder$decodeMessageType = A2( - _elm_lang$core$Json_Decode$andThen, - function (messageType) { - var _p3 = messageType; - switch (_p3) { - case 'bid_create': - return _Gizra$circuit_bid$Message_Decoder$decodeBidMessage; - case 'bid_delete': - return _Gizra$circuit_bid$Message_Decoder$decodeBidMessage; - case 'item_update': - return _Gizra$circuit_bid$Message_Decoder$decodeItemMessage; - case 'public_by_clerk': - return _Gizra$circuit_bid$Message_Decoder$decodePublicClerkMessage; - case 'sale_update': - return _Gizra$circuit_bid$Message_Decoder$decodeSaleMessage; - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], 'Could not recognise message type: ', messageType)); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'type', _elm_lang$core$Json_Decode$string)); -var _Gizra$circuit_bid$Message_Decoder$decodeMessageId = A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Message_Model$MessageId, _Gizra$circuit_bid$Utils_Json$decodeAsString); -var _Gizra$circuit_bid$Message_Decoder$decodeMessage = A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Message_Decoder$decodeMessageType, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'timestamp', - _Gizra$circuit_bid$Utils_Json$decodeDate, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Message_Model$Message))); -var _Gizra$circuit_bid$Message_Decoder$decodeMessagesFromResponse = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: {ctor: '[]'} - }, - A3(_Gizra$circuit_bid$Utils_Json$decodeListAsEveryDictListByProperty, 'id', _Gizra$circuit_bid$Message_Decoder$decodeMessageId, _Gizra$circuit_bid$Message_Decoder$decodeMessage)); - -var _Gizra$circuit_bid$Message_Update$sendClerkPublicMessage = F5( - function (backendUrl, accessToken, saleUuid, message, tagger) { - var body = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'text', - _1: _elm_lang$core$Json_Encode$string(message) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'type', - _1: _elm_lang$core$Json_Encode$string('public_by_clerk') - }, - _1: {ctor: '[]'} - } - } - }); - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _elm_lang$core$Json_Decode$succeed( - {ctor: '_Tuple0'}), - tagger, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - body, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$post( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/messages'))))); - }); -var _Gizra$circuit_bid$Message_Update$addMessage = F3( - function (id, message, messages) { - return A3(_Gizra$elm_dictlist$EveryDictList$cons, id, message, messages); - }); -var _Gizra$circuit_bid$Message_Update$fetchMessages = F3( - function (backendUrl, accessToken, saleUuid) { - return _lukewestby$elm_http_builder$HttpBuilder$toTask( - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$Message_Decoder$decodeMessagesFromResponse), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid) - }, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'sort', _1: '-id'}, - _1: {ctor: '[]'} - } - } - }, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/messages'))))); - }); - -var _Gizra$circuit_bid$Message_Utils$getItemsIds = function (messages) { - return _elm_community$maybe_extra$Maybe_Extra$values( - A2( - _elm_lang$core$List$map, - function (message) { - var _p0 = message.messageType; - switch (_p0.ctor) { - case 'BidAccepted': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidChangedToFloor': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidDeleted': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidOutbid': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidRejected': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidRejectedBidderMax': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'BidRejectedCreditLimit': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'ItemUpdate': - return _elm_lang$core$Maybe$Just(_p0._0); - case 'SaleUpdateActiveItem': - return _elm_lang$core$Maybe$Just(_p0._0); - default: - return _elm_lang$core$Maybe$Nothing; - } - }, - _Gizra$elm_dictlist$EveryDictList$values(messages))); -}; - -var _Gizra$circuit_bid$Utils_Html$spinner = A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}); -var _Gizra$circuit_bid$Utils_Html$viewInfo = function (message) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui message info'), - _1: {ctor: '[]'} - }, - message); -}; -var _Gizra$circuit_bid$Utils_Html$emptyNode = _elm_lang$html$Html$text(''); -var _Gizra$circuit_bid$Utils_Html$showIf = F2( - function (condition, html) { - return condition ? html : _Gizra$circuit_bid$Utils_Html$emptyNode; - }); -var _Gizra$circuit_bid$Utils_Html$debugView = F2( - function (config, html) { - return A2( - _Gizra$circuit_bid$Utils_Html$showIf, - config.debug, - A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui tertiary segment'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h5, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui right aligned header'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Debug'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: html, - _1: {ctor: '[]'} - } - })); - }); -var _Gizra$circuit_bid$Utils_Html$showMaybe = F2( - function (func, maybe) { - return A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Utils_Html$emptyNode, - A2(_elm_lang$core$Maybe$map, func, maybe)); - }); - -var _Gizra$circuit_bid$User_View$viewBidderNameAndIdAsString = function (bidderInfo) { - var number = _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo); - var userName = A2(_elm_lang$core$Maybe$withDefault, '', bidderInfo.userName); - return A2( - _elm_lang$core$Basics_ops['++'], - userName, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(number), - ')'))); -}; -var _Gizra$circuit_bid$User_View$viewBidderNameAndInfo = F3( - function (currency, modelBackend, bidderInfo) { - var remaining = function (amount) { - return A2(_Gizra$circuit_bid$Amount$subtract, amount, bidderInfo.totalSpent); - }; - var totalOverCredit = function (amount) { - return A3( - _Gizra$circuit_bid$Amount$compareInfix, - bidderInfo.totalSpent, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) > 0; - }), - amount); - }; - var maxBid = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Amount$Unlimited, - A2(_eeue56$elm_all_dict$EveryDict$get, _Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid, bidderInfo.amountRestrictions)); - var liveCredit = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Amount$Unlimited, - A2(_eeue56$elm_all_dict$EveryDict$get, _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit, bidderInfo.amountRestrictions)); - var maybeValues = function () { - var _p0 = {ctor: '_Tuple2', _0: liveCredit, _1: maxBid}; - _v0_2: - do { - switch (_p0._0.ctor) { - case 'Unlimited': - switch (_p0._1.ctor) { - case 'Unlimited': - return _elm_lang$core$Maybe$Nothing; - case 'Regular': - var _p1 = _p0._1._0; - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-bidder-max', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_p1) - }, - _1: {ctor: '[]'} - } - }, - _1: remaining(_p1) - }); - default: - break _v0_2; - } - case 'None': - if (_p0._1.ctor === 'None') { - break _v0_2; - } else { - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-credit', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_Gizra$circuit_bid$Amount$zero) - }, - _1: {ctor: '[]'} - } - }, - _1: _Gizra$circuit_bid$Amount$zero - }); - } - default: - switch (_p0._1.ctor) { - case 'None': - break _v0_2; - case 'Unlimited': - var _p2 = _p0._0._0; - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-credit', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_p2) - }, - _1: {ctor: '[]'} - } - }, - _1: remaining(_p2) - }); - default: - var _p4 = _p0._1._0; - var _p3 = _p0._0._0; - return A3( - _Gizra$circuit_bid$Amount$compareInfix, - _p3, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) < 1; - }), - _p4) ? _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-credit', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_p3) - }, - _1: {ctor: '[]'} - } - }, - _1: remaining(_p3) - }) : _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-bidder-max', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_p4) - }, - _1: {ctor: '[]'} - } - }, - _1: remaining(_p4) - }); - } - } - } while(false); - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'by-bidder-max', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'over-credit', - _1: totalOverCredit(_Gizra$circuit_bid$Amount$zero) - }, - _1: {ctor: '[]'} - } - }, - _1: _Gizra$circuit_bid$Amount$zero - }); - }(); - var totalAmountByCredit = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (_p5) { - var _p6 = _p5; - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList(_p6._0), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - '(', - A2( - _elm_lang$core$Basics_ops['++'], - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrencyText, _p6._1, currency), - ')'))), - _1: {ctor: '[]'} - }); - }, - maybeValues); - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'fa fa-eye', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'active', - _1: A2(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$isPresent, modelBackend, bidderInfo) - }, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - _Gizra$circuit_bid$User_View$viewBidderNameAndIdAsString(bidderInfo)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - A2(_Gizra$circuit_bid$Backend_ConnectedUser_Utils$isPlaceBidHover, modelBackend, bidderInfo), - A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-hand-pointer-o'), - _1: {ctor: '[]'} - }, - {ctor: '[]'})), - _1: { - ctor: '::', - _0: totalAmountByCredit, - _1: {ctor: '[]'} - } - } - } - }); - }); - -var _Gizra$circuit_bid$Bid_View$viewFloorBidAsString = F4( - function (language, modelBackend, saleUuid, maybeNumber) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (number) { - var userName = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (bidderInfo) { - return A2( - _elm_lang$core$Maybe$withDefault, - '', - A2( - _elm_lang$core$Maybe$andThen, - function (name) { - return _elm_lang$core$Maybe$Just( - A2(_elm_lang$core$Basics_ops['++'], ' ', name)); - }, - bidderInfo.userName)); - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, number)); - return A2( - _elm_lang$core$Basics_ops['++'], - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$FloorBidder), - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(number), - A2(_elm_lang$core$Basics_ops['++'], userName, ')')))); - }, - maybeNumber); - }); -var _Gizra$circuit_bid$Bid_View$bidUserAsString = F4( - function (language, modelBackend, saleUuid, bid) { - var maybeNumber = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(bid); - if (_Gizra$circuit_bid$Bid_Utils$isFloorBid(bid)) { - return A4(_Gizra$circuit_bid$Bid_View$viewFloorBidAsString, language, modelBackend, saleUuid, maybeNumber); - } else { - var _p0 = maybeNumber; - if (_p0.ctor === 'Just') { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (bidderInfo) { - return _Gizra$circuit_bid$User_View$viewBidderNameAndIdAsString(bidderInfo); - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, _p0._0)); - } else { - return ''; - } - } - }); -var _Gizra$circuit_bid$Bid_View$bidUser = F6( - function (language, currency, modelBackend, saleUuid, itemId, bid) { - var maybeNumber = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(bid); - if (_Gizra$circuit_bid$Bid_Utils$isFloorBid(bid)) { - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A4(_Gizra$circuit_bid$Bid_View$viewFloorBidAsString, language, modelBackend, saleUuid, maybeNumber)), - _1: {ctor: '[]'} - }); - } else { - var _p1 = maybeNumber; - if (_p1.ctor === 'Just') { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (bidderInfo) { - return A3(_Gizra$circuit_bid$User_View$viewBidderNameAndInfo, currency, modelBackend, bidderInfo); - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, _p1._0)); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - } - }); - -var _Gizra$circuit_bid$BidStep_Utils$isRegular = function (bidStep) { - return _elm_lang$core$Native_Utils.eq(bidStep.type_, _Gizra$circuit_bid$BidStep_Model$Regular); -}; -var _Gizra$circuit_bid$BidStep_Utils$safeCreateStepsList = function (_p0) { - return A2( - _elm_lang$core$Maybe$withDefault, - _mgold$elm_nonempty_list$List_Nonempty$fromElement( - { - from: _Gizra$circuit_bid$Amount$Amount(0), - amount: _Gizra$circuit_bid$Amount$Amount(1), - type_: _Gizra$circuit_bid$BidStep_Model$Regular - }), - _mgold$elm_nonempty_list$List_Nonempty$fromList(_p0)); -}; -var _Gizra$circuit_bid$BidStep_Utils$getBidStepAmount = F2( - function (bidStepsForItem, bidAmount) { - return A3( - _mgold$elm_nonempty_list$List_Nonempty$foldl, - F2( - function (bidStep, accum) { - return (A3( - _Gizra$circuit_bid$Amount$compareInfix, - bidStep.from, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - }), - bidAmount) && (!_Gizra$circuit_bid$BidStep_Utils$isRegular(bidStep))) ? bidStep.amount : ((A3( - _Gizra$circuit_bid$Amount$compareInfix, - bidStep.from, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) < 1; - }), - bidAmount) && _Gizra$circuit_bid$BidStep_Utils$isRegular(bidStep)) ? bidStep.amount : accum); - }), - _Gizra$circuit_bid$Amount$zero, - bidStepsForItem); - }); -var _Gizra$circuit_bid$BidStep_Utils$nextBidAmount = F2( - function (bidSteps, price) { - var addStep = function (bid) { - return A2( - _Gizra$circuit_bid$Amount$add, - bid, - A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, bidSteps, bid)); - }; - var bidAmount = function () { - var _p1 = price; - if (_p1.ctor === 'Current') { - return addStep(_p1._0); - } else { - return _p1._0; - } - }(); - return bidAmount; - }); -var _Gizra$circuit_bid$BidStep_Utils$getAllAmounts = F4( - function (bidSteps, startingPrice, maxAmount, accum) { - getAllAmounts: - while (true) { - var nextAmount = A2( - _Gizra$circuit_bid$Amount$add, - startingPrice, - A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, bidSteps, startingPrice)); - if (_elm_lang$core$Native_Utils.eq(startingPrice, maxAmount)) { - return {ctor: '[]'}; - } else { - var accumUpdated = _elm_lang$core$List$isEmpty(accum) ? {ctor: '::', _0: startingPrice, _1: accum} : accum; - if (A3( - _Gizra$circuit_bid$Amount$compareInfix, - nextAmount, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) > -1; - }), - maxAmount)) { - return accumUpdated; - } else { - var _v1 = bidSteps, - _v2 = nextAmount, - _v3 = maxAmount, - _v4 = {ctor: '::', _0: nextAmount, _1: accumUpdated}; - bidSteps = _v1; - startingPrice = _v2; - maxAmount = _v3; - accum = _v4; - continue getAllAmounts; - } - } - } - }); -var _Gizra$circuit_bid$BidStep_Utils$getAllAmountsList = F2( - function (calculated, maxAmount) { - return A3( - _Gizra$circuit_bid$Amount$compareInfix, - maxAmount, - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.cmp(x, y) < 1; - }), - calculated.startingPrice) ? {ctor: '[]'} : A4( - _Gizra$circuit_bid$BidStep_Utils$getAllAmounts, - calculated.bidSteps, - calculated.startingPrice, - maxAmount, - {ctor: '[]'}); - }); - -var _Gizra$circuit_bid$Item_View$viewAutoClerk = F4( - function (currentDate, language, sale, calculated) { - var _p0 = { - ctor: '_Tuple2', - _0: _Gizra$circuit_bid$Sale_Utils$getRoundAndBumpTimeFromAutoClerk(sale.autoClerk), - _1: calculated.autoClerk - }; - if ((((_p0.ctor === '_Tuple2') && (_p0._0.ctor === 'Just')) && (_p0._0._0.ctor === '_Tuple2')) && (_p0._1.ctor === 'Just')) { - var getDiff = function (date) { - return _elm_lang$core$Basics$round( - (_elm_lang$core$Date$toTime(date) - _elm_lang$core$Date$toTime(currentDate)) / 1000); - }; - var diffOrZero = function (date) { - return (_elm_lang$core$Native_Utils.cmp( - getDiff(date), - 0) > 0) ? getDiff(date) : 0; - }; - var _p1 = function () { - var _p2 = _p0._1._0; - if (_p2.ctor === 'Round') { - return { - ctor: '_Tuple2', - _0: diffOrZero(_p2._0) + _p0._0._0._1, - _1: 'round' - }; - } else { - return { - ctor: '_Tuple2', - _0: diffOrZero(_p2._0), - _1: 'bump' - }; - } - }(); - var timeLeft = _p1._0; - var className = _p1._1; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class( - A2(_elm_lang$core$Basics_ops['++'], 'auto-clerk ', className)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LotCloseIn), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - _Gizra$circuit_bid$Translate$Seconds(timeLeft))), - _1: {ctor: '[]'} - } - } - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Item_View$currentPriceView = F3( - function (language, amount, currency) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$CurrentPriceAmount, amount, currency)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Item_View$minimumPriceView = F3( - function (language, currency, minimumPrice) { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med minimum-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$MinimumPrice, currency, minimumPrice)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Item_View$openingPriceView = F3( - function (language, amount, currency) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$OpeningPriceAmount, amount, currency)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Item_View$pricesInfoView = F3( - function (language, currency, item) { - var startPrice = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - function (startingPrice) { - return A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$Start, startingPrice, currency)); - }, - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.startingPrice; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)))); - var minimumPrice = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - function (minPrice) { - return A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$MinPrice, minPrice, currency)); - }, - A2( - _elm_lang$core$Maybe$andThen, - function (_) { - return _.minimumPrice; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)))); - var estimatedPrice = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - function (estimatedPrice) { - return A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$EstPrice, estimatedPrice, currency)); - }, - item.estimatedPrice)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('prices'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$append, - startPrice, - A2(_elm_lang$core$List$append, estimatedPrice, minimumPrice))); - }); - -var _elm_community$result_extra$Result_Extra$merge = function (r) { - var _p0 = r; - if (_p0.ctor === 'Ok') { - return _p0._0; - } else { - return _p0._0; - } -}; -var _elm_community$result_extra$Result_Extra$orElse = F2( - function (ra, rb) { - var _p1 = rb; - if (_p1.ctor === 'Err') { - return ra; - } else { - return rb; - } - }); -var _elm_community$result_extra$Result_Extra$orElseLazy = F2( - function (fra, rb) { - var _p2 = rb; - if (_p2.ctor === 'Err') { - return fra( - {ctor: '_Tuple0'}); - } else { - return rb; - } - }); -var _elm_community$result_extra$Result_Extra$orLazy = F2( - function (ra, frb) { - var _p3 = ra; - if (_p3.ctor === 'Err') { - return frb( - {ctor: '_Tuple0'}); - } else { - return ra; - } - }); -var _elm_community$result_extra$Result_Extra$or = F2( - function (ra, rb) { - var _p4 = ra; - if (_p4.ctor === 'Err') { - return rb; - } else { - return ra; - } - }); -var _elm_community$result_extra$Result_Extra$andMap = F2( - function (ra, rb) { - var _p5 = {ctor: '_Tuple2', _0: ra, _1: rb}; - if (_p5._1.ctor === 'Err') { - return _elm_lang$core$Result$Err(_p5._1._0); - } else { - return A2(_elm_lang$core$Result$map, _p5._1._0, _p5._0); - } - }); -var _elm_community$result_extra$Result_Extra$singleton = _elm_lang$core$Result$Ok; -var _elm_community$result_extra$Result_Extra$combine = A2( - _elm_lang$core$List$foldr, - _elm_lang$core$Result$map2( - F2( - function (x, y) { - return {ctor: '::', _0: x, _1: y}; - })), - _elm_lang$core$Result$Ok( - {ctor: '[]'})); -var _elm_community$result_extra$Result_Extra$mapBoth = F3( - function (errFunc, okFunc, result) { - var _p6 = result; - if (_p6.ctor === 'Ok') { - return _elm_lang$core$Result$Ok( - okFunc(_p6._0)); - } else { - return _elm_lang$core$Result$Err( - errFunc(_p6._0)); - } - }); -var _elm_community$result_extra$Result_Extra$unpack = F3( - function (errFunc, okFunc, result) { - var _p7 = result; - if (_p7.ctor === 'Ok') { - return okFunc(_p7._0); - } else { - return errFunc(_p7._0); - } - }); -var _elm_community$result_extra$Result_Extra$unwrap = F3( - function (defaultValue, okFunc, result) { - var _p8 = result; - if (_p8.ctor === 'Ok') { - return okFunc(_p8._0); - } else { - return defaultValue; - } - }); -var _elm_community$result_extra$Result_Extra$extract = F2( - function (f, x) { - var _p9 = x; - if (_p9.ctor === 'Ok') { - return _p9._0; - } else { - return f(_p9._0); - } - }); -var _elm_community$result_extra$Result_Extra$isErr = function (x) { - var _p10 = x; - if (_p10.ctor === 'Ok') { - return false; - } else { - return true; - } -}; -var _elm_community$result_extra$Result_Extra$isOk = function (x) { - var _p11 = x; - if (_p11.ctor === 'Ok') { - return true; - } else { - return false; - } -}; - -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewCreditRequestRow = F5( - function (language, currency, saleUuid, updateStatusMsg, data) { - var rejectButton = A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('reject-request'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A3(updateStatusMsg, saleUuid, data.id, _Gizra$circuit_bid$Backend_CreditRequest_Model$Rejected)), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-times-circle'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - var approveButton = A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('approve-request'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A3(updateStatusMsg, saleUuid, data.id, _Gizra$circuit_bid$Backend_CreditRequest_Model$Approved)), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-check'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - var requestedCredit = function () { - var _p0 = data.credit; - if (_p0.ctor === 'Regular') { - return A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p0._0, currency); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var currentCredit = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Utils_Html$emptyNode, - A2( - _elm_lang$core$Maybe$map, - function (currentCredit) { - var _p1 = currentCredit; - if (_p1.ctor === 'Regular') { - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('('), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p1._0, currency), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(')'), - _1: {ctor: '[]'} - } - } - }); - } else { - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - '(', - A2( - _elm_lang$core$Basics_ops['++'], - A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$AmountLimit(currentCredit)), - ')'))), - _1: {ctor: '[]'} - }); - } - }, - data.currentCredit)); - var bidderName = A2( - _elm_lang$core$Basics_ops['++'], - A2(_elm_lang$core$Maybe$withDefault, '?', data.bidderName), - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(data.bidderNumber), - ')'))); - var rowId = A2( - _elm_lang$core$Basics_ops['++'], - 'credit-request-', - _elm_lang$core$Basics$toString( - _Gizra$elm_restful$Restful_Endpoint$fromEntityId(data.id))); - return { - ctor: '_Tuple2', - _0: rowId, - _1: A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id(rowId), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-request row'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med sum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(bidderName), - _1: { - ctor: '::', - _0: currentCredit, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med sum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Requested), - ': ')), - _1: { - ctor: '::', - _0: requestedCredit, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: approveButton, - _1: { - ctor: '::', - _0: rejectButton, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - } - } - }) - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$creditRequestTable = F5( - function (language, currency, saleUuid, updateStatusMsg, modelBackend) { - var biddersInfoDict = A2(_Gizra$circuit_bid$Backend_BidderInfo_Utils$generateBiddersInfoDictByUserId, saleUuid, modelBackend.bidderInfo); - var creditRequestsData = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - function (_p2) { - return A2( - _elm_lang$core$List$filterMap, - function (_p3) { - var _p4 = _p3; - var _p5 = _p4._0; - if (_p5.ctor === 'Existing') { - var creditRequest = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(_p4._1)); - return _elm_lang$core$Native_Utils.eq(creditRequest.status, _Gizra$circuit_bid$Backend_CreditRequest_Model$Pending) ? A2( - _elm_lang$core$Maybe$andThen, - function (userId) { - return A2( - _elm_lang$core$Maybe$map, - function (bidderInfo) { - return { - id: _p5._0, - credit: creditRequest.credit, - bidderName: bidderInfo.userName, - currentCredit: A2(_eeue56$elm_all_dict$EveryDict$get, _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit, bidderInfo.amountRestrictions), - bidderNumber: _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo) - }; - }, - A2(_eeue56$elm_all_dict$EveryDict$get, userId, biddersInfoDict)); - }, - creditRequest.userId) : _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Maybe$Nothing; - } - }, - _Gizra$elm_dictlist$EveryDictList$toList(_p2)); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(modelBackend.creditRequests))); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-requests-table-wrapper'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A3( - _elm_lang$html$Html_Keyed$node, - 'table', - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-requests'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - A4(_Gizra$circuit_bid$Pages_Clerk_Utils$viewCreditRequestRow, language, currency, saleUuid, updateStatusMsg), - creditRequestsData)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$getMaxQueuedBidData = function (dict) { - var keys = A2( - _elm_lang$core$List$map, - _elm_lang$core$Tuple$first, - _eeue56$elm_all_dict$EveryDict$keys(dict)); - return A2( - _elm_lang$core$Maybe$andThen, - function (maxBid) { - return _elm_lang$core$List$head( - A2( - _elm_lang$core$List$filter, - function (_p6) { - var _p7 = _p6; - return _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Amount$extract(_p7._0), - maxBid); - }, - keys)); - }, - _elm_lang$core$List$maximum( - A2( - _elm_lang$core$List$map, - function (_p8) { - return _Gizra$circuit_bid$Amount$extract( - _elm_lang$core$Tuple$first(_p8)); - }, - keys))); -}; -var _Gizra$circuit_bid$Pages_Clerk_Utils$generateClerkQueuedBidsUpdateData = function (queuedBids) { - return A2( - _elm_lang$core$Maybe$andThen, - function (_p9) { - var _p10 = _p9; - var nextBidValue = _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Amount$extract(_p10._1)); - var bidValue = _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Amount$extract(_p10._0)); - return (_elm_lang$core$Native_Utils.eq(bidValue, _elm_lang$core$Maybe$Nothing) && _elm_lang$core$Native_Utils.eq(nextBidValue, _elm_lang$core$Maybe$Nothing)) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$Maybe$Just( - A2(_Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdateData, bidValue, nextBidValue)); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$getMaxQueuedBidData(queuedBids)); -}; -var _Gizra$circuit_bid$Pages_Clerk_Utils$getPriceForClerk = F2( - function (calculated, model) { - var highestPriceByItem = _Gizra$circuit_bid$Item_Utils$getPrice(calculated); - return A2( - _elm_lang$core$Maybe$withDefault, - highestPriceByItem, - A2( - _elm_lang$core$Maybe$map, - function (_p11) { - var _p12 = _p11; - var _p13 = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice(highestPriceByItem); - var priceByItem = _p13._0; - return _Gizra$circuit_bid$Item_Model$Current( - _Gizra$circuit_bid$Amount$Amount( - A2( - _elm_lang$core$Basics$max, - priceByItem, - _Gizra$circuit_bid$Amount$extract(_p12._0)))); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$getMaxQueuedBidData(model.queuedBids))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewRallyStatus = F2( - function (language, calculated) { - var _p14 = calculated.rallyStatus; - switch (_p14.ctor) { - case 'None': - return _Gizra$circuit_bid$Utils_Html$emptyNode; - case 'OnStep': - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('rally-status on-step'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-thumbs-up'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('On Step'), - _1: {ctor: '[]'} - } - }); - default: - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('rally-status off-step'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-thumbs-down'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text('Off Step'), - _1: {ctor: '[]'} - } - }); - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceAmountAndRally = F5( - function (currentDate, language, sale, calculated, nextAmount) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('next-bid'), - _1: {ctor: '[]'} - }, - _elm_lang$core$List$concat( - { - ctor: '::', - _0: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-auto-clerk'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Item_View$viewAutoClerk, currentDate, language, sale, calculated), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }, - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$NextBidWithAmount, nextAmount, sale.currency)), - _1: { - ctor: '::', - _0: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Pages_Clerk_Utils$viewRallyStatus, language, calculated), - _1: {ctor: '[]'} - }, - _1: {ctor: '[]'} - } - } - })); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk = F2( - function (calculated, model) { - nextBidAmountForClerk: - while (true) { - var currentPrice = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$getPriceForClerk, calculated, model); - var currentAmount = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice(currentPrice); - var nextBidAmount = function () { - var _p15 = currentPrice; - if (_p15.ctor === 'Opening') { - return currentAmount; - } else { - var nextBidIncrement = A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, calculated.bidSteps, currentAmount); - return A2(_Gizra$circuit_bid$Amount$add, currentAmount, nextBidIncrement); - } - }(); - if (A2(_elm_lang$core$List$member, nextBidAmount, calculated.futureBookBidAmounts)) { - var _v9 = _elm_lang$core$Native_Utils.update( - calculated, - { - currentPrice: _elm_lang$core$Maybe$Just(nextBidAmount) - }), - _v10 = model; - calculated = _v9; - model = _v10; - continue nextBidAmountForClerk; - } else { - return nextBidAmount; - } - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceForClerkAndRally = F5( - function (currentDate, language, sale, calculated, model) { - return A5( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceAmountAndRally, - currentDate, - language, - sale, - calculated, - A2(_Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, calculated, model)); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceAndRally = F4( - function (currentDate, language, sale, calculated) { - return A5( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceAmountAndRally, - currentDate, - language, - sale, - calculated, - _Gizra$circuit_bid$Item_Utils$getNextPriceAmount(calculated)); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewWithdrawnItem = function (language) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item-withdraw'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LotWithdrawnFromSale), - _1: {ctor: '[]'} - }); -}; -var _Gizra$circuit_bid$Pages_Clerk_Utils$clerkCurrentPriceView = F3( - function (language, price, currency) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-current-price'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$ClerkCurrentPriceAmount, price, currency))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewWinningBidder = F6( - function (language, currency, modelBackend, saleUuid, _p16, pipelineSuffix) { - var _p17 = _p16; - var _p18 = _krisajenkins$remotedata$RemoteData$toMaybe(_p17._1.calculated); - if (_p18.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p19 = _Gizra$circuit_bid$Item_Utils$getWinningBid(_p18._0); - if (_p19.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-bidder'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'name med', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'pipeline', _1: pipelineSuffix}, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Bid_View$bidUser, language, currency, modelBackend, saleUuid, _p17._0, _p19._0), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - } - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$userOrFloorBidderInput = F7( - function (language, currency, modelBackend, saleUuid, editableBidderIds, itemId, _p20) { - var _p21 = _p20; - var _p30 = _p21._0; - var _p29 = _p21._1; - var _p22 = function () { - var _p23 = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(_p29); - if (_p23.ctor === 'Just') { - return { - ctor: '_Tuple2', - _0: true, - _1: _elm_community$maybe_extra$Maybe_Extra$isJust( - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, _p23._0)) - }; - } else { - return {ctor: '_Tuple2', _0: false, _1: false}; - } - }(); - var hasFloorBidderId = _p22._0; - var hasFloorBidderIdName = _p22._1; - var isUnknownBidder = hasFloorBidderId && (!hasFloorBidderIdName); - var editableView = F3( - function (editable, status, inputValue) { - return { - ctor: '::', - _0: A2( - _elm_lang$html$Html$form, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - _Gizra$circuit_bid$Pages_Clerk_Model$Save)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript:void(0);'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('floor'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput( - function (_p24) { - return A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - _Gizra$circuit_bid$Pages_Clerk_Model$Update(_p24)); - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$readonly( - _krisajenkins$remotedata$RemoteData$isLoading(status)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(inputValue), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('winning-floor-id'), - _1: {ctor: '[]'} - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui button small primary'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'loading disabled', - _1: _krisajenkins$remotedata$RemoteData$isLoading(status) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'disabled', - _1: _elm_community$result_extra$Result_Extra$isErr( - _stoeffel$editable$Editable$value(editable)) - }, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Save), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui button small'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'disabled', - _1: _krisajenkins$remotedata$RemoteData$isLoading(status) - }, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - _Gizra$circuit_bid$Pages_Clerk_Model$Cancel)), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Cancel), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }; - }); - var _p25 = function () { - var _p26 = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(_p29); - if (_p26.ctor === 'Just') { - if (_Gizra$circuit_bid$Bid_Utils$isFloorBid(_p29)) { - var initial = _elm_lang$core$Result$Ok(_p26._0); - return { - ctor: '_Tuple2', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-pencil-square-o'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - _Gizra$circuit_bid$Pages_Clerk_Model$Start(initial))), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: true - }; - } else { - return {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Utils_Html$emptyNode, _1: false}; - } - } else { - if (_Gizra$circuit_bid$Bid_Utils$isFloorBid(_p29)) { - var initial = _elm_lang$core$Result$Err( - {ctor: '_Tuple2', _0: '', _1: _Gizra$circuit_bid$BidderId_Model$NoInput}); - return { - ctor: '_Tuple2', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-pencil-square-o'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - _Gizra$circuit_bid$Pages_Clerk_Model$Start(initial))), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: true - }; - } else { - return {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Utils_Html$emptyNode, _1: false}; - } - } - }(); - var editButtonIfFloorBid = _p25._0; - var isFloor = _p25._1; - var readOnlyView = function (status) { - return { - ctor: '::', - _0: editButtonIfFloorBid, - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$readonly(true), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value( - A4(_Gizra$circuit_bid$Bid_View$bidUserAsString, language, modelBackend, saleUuid, _p29)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'floor', _1: hasFloorBidderId}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'unknow-floor-bidder-id', _1: isUnknownBidder}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'winning-bidder-id-input', _1: true}, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - isUnknownBidder, - A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('alert-danger'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$UnknownBidder), - _1: {ctor: '[]'} - })), - _1: {ctor: '[]'} - } - } - }; - }; - var currentEditableBidderId = A2( - _eeue56$elm_all_dict$EveryDict$get, - {ctor: '_Tuple2', _0: itemId, _1: _p30}, - editableBidderIds); - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - function () { - var _p27 = currentEditableBidderId; - if (_p27.ctor === 'Just') { - if (_p27._0._0.ctor === 'Editable') { - return A3( - editableView, - _p27._0._0, - _p27._0._1, - function () { - var _p28 = _p27._0._0._1; - if (_p28.ctor === 'Ok') { - return _elm_lang$core$Basics$toString(_p28._0); - } else { - return _p28._0._0; - } - }()); - } else { - return readOnlyView(_p27._0._1); - } - } else { - return readOnlyView(_krisajenkins$remotedata$RemoteData$NotAsked); - } - }()); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$underExtensionCheckbox = F2( - function (attributes, isChecked) { - return A2( - _elm_lang$html$Html$input, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('checkbox'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$checked(isChecked), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('under-extension-input'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('extension'), - _1: {ctor: '[]'} - } - } - } - }, - attributes), - {ctor: '[]'}); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$closedItemRow = F6( - function (language, currency, modelBackend, saleUuid, editableBidderIds, _p31) { - var _p32 = _p31; - var _p39 = _p32._0; - var _p38 = _p32._1; - var _p33 = _krisajenkins$remotedata$RemoteData$toMaybe(_p38.calculated); - if (_p33.ctor === 'Just') { - var _p37 = _p33._0; - var _p34 = { - ctor: '_Tuple2', - _0: _p37.winningBid, - _1: _Gizra$circuit_bid$Item_Utils$getWinningBid(_p37) - }; - if (((_p34.ctor === '_Tuple2') && (_p34._0.ctor === 'Just')) && (_p34._1.ctor === 'Just')) { - var _p36 = _p34._1._0; - var _p35 = _p34._0._0; - var underExtensionCheckboxColumn = _Gizra$circuit_bid$Bid_Utils$isFloorBid(_p36) ? A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('exten'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Pages_Clerk_Utils$underExtensionCheckbox, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A3(_Gizra$circuit_bid$Pages_Clerk_Model$SetClosedItemBidUnderExtension, _p39, _p35, !_p36.underExtension)), - _1: {ctor: '[]'} - }, - _p36.underExtension), - _1: {ctor: '[]'} - }) : ((_Gizra$circuit_bid$Bid_Utils$isBookBid(_p36) || _Gizra$circuit_bid$Bid_Utils$isMailBid(_p36)) ? A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Pages_Clerk_Utils$underExtensionCheckbox, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(true), - _1: {ctor: '[]'} - }, - _p36.underExtension), - _1: {ctor: '[]'} - }) : A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - {ctor: '[]'})); - return { - ctor: '_Tuple2', - _0: _p38.lotId, - _1: A2( - _elm_lang$html$Html$tr, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lot'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p38.lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('wonamount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Amount$showAmountWithCurrency, - _Gizra$circuit_bid$Item_Utils$getAmountFromPrice( - _Gizra$circuit_bid$Item_Utils$getPrice(_p37)), - currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('addwinuser'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A7( - _Gizra$circuit_bid$Pages_Clerk_Utils$userOrFloorBidderInput, - language, - currency, - modelBackend, - saleUuid, - editableBidderIds, - _p39, - {ctor: '_Tuple2', _0: _p35, _1: _p36}), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: underExtensionCheckboxColumn, - _1: {ctor: '[]'} - } - } - } - }) - }; - } else { - return { - ctor: '_Tuple2', - _0: _p38.lotId, - _1: A2( - _elm_lang$html$Html$tr, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lot'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p38.lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('wonamount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$NoBidsPlaced), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('addwinuser'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('exten'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - } - }) - }; - } - } else { - return {ctor: '_Tuple2', _0: _p38.lotId, _1: _Gizra$circuit_bid$Utils_Html$emptyNode}; - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$closedItemsTable = F6( - function (language, currency, modelBackend, saleUuid, items, editableBidderIds) { - return A3( - _elm_lang$html$Html_Keyed$node, - 'table', - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lots'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - A5(_Gizra$circuit_bid$Pages_Clerk_Utils$closedItemRow, language, currency, modelBackend, saleUuid, editableBidderIds), - items)); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$closedItems = F7( - function (language, currency, modelBackend, saleUuid, items, currentItemId, editingWinningBidder) { - var closedItemFilter = function (item) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - false, - function (calculated) { - return _Gizra$circuit_bid$Item_Utils$isClosed(calculated.status); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - }; - var closedItems = A5(_Gizra$circuit_bid$ItemManager_Utils$getTrimmedItemsList, 100, 0, closedItemFilter, currentItemId, items); - var itemsTableOrNoResult = _elm_lang$core$List$isEmpty(closedItems) ? A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$NoClosed), - _1: {ctor: '[]'} - }) : A6(_Gizra$circuit_bid$Pages_Clerk_Utils$closedItemsTable, language, currency, modelBackend, saleUuid, closedItems, editingWinningBidder); - return itemsTableOrNoResult; - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$queuedBidRow = F4( - function (language, currency, bidId, amount) { - return A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id( - A2(_elm_lang$core$Basics_ops['++'], 'bid-', bidId)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bid bid-row'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med sum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, amount, currency), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$bidRow = F7( - function (language, currency, modelBackend, saleUuid, _p41, bookBids, _p40) { - var _p42 = _p41; - var _p49 = _p42._0; - var _p48 = _p42._1; - var _p43 = _p40; - var _p47 = _p43._0._0; - var _p46 = _p43._1; - var wrapper = function (content) { - return (_Gizra$circuit_bid$Bid_Utils$isDeleted(_p46) || _Gizra$circuit_bid$Bid_Utils$isReachedCreditLimit(_p46)) ? A2( - _elm_lang$html$Html$del, - {ctor: '[]'}, - { - ctor: '::', - _0: content, - _1: {ctor: '[]'} - }) : content; - }; - var undoDeleteButton = (_Gizra$circuit_bid$Bid_Utils$isDeleted(_p46) && A2( - _elm_lang$core$List$member, - _p46.bidType, - { - ctor: '::', - _0: _Gizra$circuit_bid$Bid_Model$Floor, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Bid_Model$Internet, - _1: {ctor: '[]'} - } - })) ? A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('delbid undo'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$UndeleteBid, - {ctor: '_Tuple2', _0: _p49, _1: _p48}, - { - ctor: '_Tuple2', - _0: _Gizra$circuit_bid$Bid_Model$BidKey(_p47), - _1: _p46 - })), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-undo'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }) : _Gizra$circuit_bid$Utils_Html$emptyNode; - var deleteButton = (_Gizra$circuit_bid$Bid_Utils$isDeleted(_p46) || _Gizra$circuit_bid$Bid_Utils$isReachedCreditLimit(_p46)) ? _Gizra$circuit_bid$Utils_Html$emptyNode : A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('delbid'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$DeleteBid, - {ctor: '_Tuple2', _0: _p49, _1: _p48}, - { - ctor: '_Tuple2', - _0: _Gizra$circuit_bid$Bid_Model$BidKey(_p47), - _1: _p46 - })), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('icon-close icons'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - var maxCreditIndication = _Gizra$circuit_bid$Bid_Utils$isRejectedBidderMax(_p46) ? A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('maxed-out'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$RejectedBidderMax), - _1: {ctor: '[]'} - }) : (_Gizra$circuit_bid$Bid_Utils$isRejectedCreditLimit(_p46) ? A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('maxed-out'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$RejectedCreditLimit), - _1: {ctor: '[]'} - }) : _Gizra$circuit_bid$Utils_Html$emptyNode); - var autoAgentIndication = _Gizra$circuit_bid$Bid_Utils$isAutoAgentBid(_p46) ? A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-black-tie'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}) : _Gizra$circuit_bid$Utils_Html$emptyNode; - var bookBidIndication = function () { - var _p44 = _krisajenkins$remotedata$RemoteData$toMaybe(_p48.calculated); - if (_p44.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p45 = A2(_Gizra$circuit_bid$Bid_Utils$getMailBidFromBookBid, _p46, _p44._0); - if (_p45.ctor === 'Just') { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bookbid'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p45._0.amount, currency), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(' '), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Book), - _1: {ctor: '[]'} - } - } - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - } - }(); - return A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id( - A2(_elm_lang$core$Basics_ops['++'], 'bid-', _p47)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bid bid-row'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med sum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: wrapper( - A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p46.amount, currency)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: wrapper( - A6(_Gizra$circuit_bid$Bid_View$bidUser, language, currency, modelBackend, saleUuid, _p49, _p46)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: autoAgentIndication, - _1: { - ctor: '::', - _0: bookBidIndication, - _1: { - ctor: '::', - _0: maxCreditIndication, - _1: { - ctor: '::', - _0: deleteButton, - _1: { - ctor: '::', - _0: undoDeleteButton, - _1: {ctor: '[]'} - } - } - } - } - }), - _1: {ctor: '[]'} - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$bidTable = F8( - function (language, currency, modelBackend, saleUuid, bids, bookBids, queuedBids, _p50) { - var _p51 = _p50; - var queuedBidsRows = function () { - var _p52 = A2( - _elm_lang$core$List$partition, - function (_p53) { - var _p54 = _p53; - return _elm_community$maybe_extra$Maybe_Extra$isNothing(_p54._0._1); - }, - _eeue56$elm_all_dict$EveryDict$toList(queuedBids)); - var withoutTaskId = _p52._0; - var withTaskId = _p52._1; - var withoutTaskIdRows = A2( - _elm_lang$core$List$map, - function (_p55) { - var _p56 = _p55; - var _p57 = _p56._0._0._0; - var id = _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Amount$extract(_p57)); - return { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$Basics_ops['++'], 'bid-', id), - _1: A4(_Gizra$circuit_bid$Pages_Clerk_Utils$queuedBidRow, language, currency, id, _p57) - }; - }, - withoutTaskId); - var withTaskIdRows = A2( - _elm_lang$core$List$map, - function (_p58) { - var _p59 = _p58; - var id = A2(_elm_lang$core$Maybe$withDefault, '', _p59._0._1); - return { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$Basics_ops['++'], 'bid-', id), - _1: A4(_Gizra$circuit_bid$Pages_Clerk_Utils$queuedBidRow, language, currency, id, _p59._0._0._0) - }; - }, - withTaskId); - return A2(_elm_lang$core$Basics_ops['++'], withoutTaskIdRows, withTaskIdRows); - }(); - var bidRows = A2( - _elm_lang$core$List$map, - function (_p60) { - var _p61 = _p60; - var _p62 = _p61._0._0; - return { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$Basics_ops['++'], 'bid-', _p62), - _1: A7( - _Gizra$circuit_bid$Pages_Clerk_Utils$bidRow, - language, - currency, - modelBackend, - saleUuid, - {ctor: '_Tuple2', _0: _p51._0, _1: _p51._1}, - bookBids, - { - ctor: '_Tuple2', - _0: _Gizra$circuit_bid$Bid_Model$BidKey(_p62), - _1: _p61._1 - }) - }; - }, - A2( - _elm_lang$core$List$filter, - function (_p63) { - var _p64 = _p63; - var _p65 = _p64._1; - return _Gizra$circuit_bid$Bid_Utils$isAccepted(_p65) || (_Gizra$circuit_bid$Bid_Utils$isOutbid(_p65) || _Gizra$circuit_bid$Bid_Utils$isReachedCreditLimit(_p65)); - }, - _Gizra$circuit_bid$Bid_Utils$toOrderedList(bids))); - return A3( - _elm_lang$html$Html_Keyed$node, - 'table', - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lots'), - _1: {ctor: '[]'} - }, - A2(_elm_lang$core$Basics_ops['++'], queuedBidsRows, bidRows)); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$openingPriceEditor = F5( - function (language, calculated, currency, editForm, itemChangeRequest) { - if (_Gizra$circuit_bid$Item_Utils$hasLiveBids(calculated)) { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var isLoading = _krisajenkins$remotedata$RemoteData$isLoading(itemChangeRequest); - var openingPriceUi = function () { - var _p66 = editForm; - if (_p66.ctor === 'Just') { - var _p67 = _p66._0; - var formAttr = isLoading ? {ctor: '[]'} : { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - _Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceSave( - _elm_lang$core$Maybe$Just(_p67))), - _1: {ctor: '[]'} - }; - return A2( - _elm_lang$html$Html$form, - A2( - _elm_lang$core$List$append, - formAttr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('approve-change-opening'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript: void(0)'), - _1: {ctor: '[]'} - } - }), - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceEdit), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('number'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$min('1'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(_p67), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('price'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('opening-price-input'), - _1: {ctor: '[]'} - } - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('button aprove'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: isLoading ? A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}) : A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-check'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('button unaprove'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceCancel), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-times'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }); - } else { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('open-change-price name med'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceStart), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$ChangeOpeningPrice), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-pencil-square-o'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }); - } - }(); - var stringAmount = _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Amount$extract(calculated.openingPrice)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('change-opening-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: openingPriceUi, - _1: {ctor: '[]'} - }); - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$viewItemBidsList = F5( - function (queuedBids, language, modelBackend, _p69, _p68) { - var _p70 = _p69; - var _p71 = _p68; - var _p74 = _p71._1; - var _p72 = _krisajenkins$remotedata$RemoteData$toMaybe(_p74.calculated); - if (_p72.ctor === 'Just') { - var _p73 = _p72._0; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-table-wrapper'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A8( - _Gizra$circuit_bid$Pages_Clerk_Utils$bidTable, - language, - _p70._1.currency, - modelBackend, - _p70._0, - _p73.bids, - _p73.bookBids, - queuedBids, - {ctor: '_Tuple2', _0: _p71._0, _1: _p74}), - _1: {ctor: '[]'} - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$isBidButtonDisabled = function (itemStatus) { - return _Gizra$circuit_bid$Item_Utils$clerkStatusIsLoading(itemStatus) || _Gizra$circuit_bid$Item_Utils$isWithdrawn(itemStatus); -}; -var _Gizra$circuit_bid$Pages_Clerk_Utils$nextFloorBidButton = F5( - function (itemId, saleUuid, itemStatus, bidAmount, nextBidAmount) { - return { - disabled: _Gizra$circuit_bid$Pages_Clerk_Utils$isBidButtonDisabled(itemStatus) || (!_Gizra$circuit_bid$Item_Utils$isLiveOpenOrGoing(itemStatus)), - loading: false, - active: false, - msg: _elm_lang$core$Maybe$Just( - A4(_Gizra$circuit_bid$Pages_Clerk_Model$PlaceFloorBid, itemId, saleUuid, bidAmount, nextBidAmount)) - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$customFloorBidButton = F6( - function (model, itemId, saleUuid, itemStatus, bidAmount, nextBidAmount) { - return { - disabled: _Gizra$circuit_bid$Pages_Clerk_Utils$isBidButtonDisabled(itemStatus) || (_elm_community$maybe_extra$Maybe_Extra$isNothing(model.customBidInput) || (!_Gizra$circuit_bid$Item_Utils$isLiveOpenOrGoing(itemStatus))), - loading: false, - active: false, - msg: _elm_lang$core$Maybe$Just( - A4(_Gizra$circuit_bid$Pages_Clerk_Model$PlaceFloorBid, itemId, saleUuid, bidAmount, nextBidAmount)) - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$itemBeingChanged = function (model) { - return _elm_lang$core$Native_Utils.eq(model.itemChangeRequest, _krisajenkins$remotedata$RemoteData$Loading); -}; -var _Gizra$circuit_bid$Pages_Clerk_Utils$itemIsLoading = F2( - function (model, status) { - return _Gizra$circuit_bid$Pages_Clerk_Utils$itemBeingChanged(model) || _Gizra$circuit_bid$Item_Utils$clerkStatusIsLoading(status); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$isButtonDisabled = F2( - function (model, itemStatus) { - return A2(_Gizra$circuit_bid$Pages_Clerk_Utils$itemIsLoading, model, itemStatus) || _Gizra$circuit_bid$Item_Utils$isWithdrawn(itemStatus); - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$itemStatusButton = F5( - function (model, saleUuid, itemId, currentStatus, clerkStatus) { - var isActive = function () { - var _p75 = clerkStatus; - switch (_p75.ctor) { - case 'Paused': - return _Gizra$circuit_bid$Item_Utils$isPaused(currentStatus); - case 'Open': - return _Gizra$circuit_bid$Item_Utils$isOpen(currentStatus); - case 'Going': - return _Gizra$circuit_bid$Item_Utils$isGoing(currentStatus); - default: - return _Gizra$circuit_bid$Item_Utils$isGoneTransition(currentStatus) || _Gizra$circuit_bid$Item_Utils$isClosed(currentStatus); - } - }(); - var isAutoClerkEnabled = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - false, - function (sale) { - return _Gizra$circuit_bid$Sale_Utils$isAutoClerkEnabled(sale.autoClerk); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - var isDisabled = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$isButtonDisabled, model, currentStatus) || isAutoClerkEnabled; - var isLoading = A2( - _elm_lang$core$Maybe$withDefault, - false, - A2( - _elm_lang$core$Maybe$map, - function (editableStatus) { - return _Gizra$circuit_bid$Item_Utils$clerkStatusIsLoading(currentStatus) && _elm_lang$core$Native_Utils.eq( - _Gizra$circuit_bid$Item_Utils$getClerkStatus(editableStatus), - _elm_lang$core$Maybe$Just(clerkStatus)); - }, - _Gizra$circuit_bid$Item_Utils$getEditableItemStatus(currentStatus))); - return { - disabled: isDisabled, - loading: isLoading, - active: isActive, - msg: isActive ? _elm_lang$core$Maybe$Nothing : ((!isDisabled) ? _elm_lang$core$Maybe$Just( - A3(_Gizra$circuit_bid$Pages_Clerk_Model$SetEditableItemStatus, saleUuid, itemId, clerkStatus)) : _elm_lang$core$Maybe$Nothing) - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Utils$ButtonState = F4( - function (a, b, c, d) { - return {loading: a, disabled: b, active: c, msg: d}; - }); - -var _Gizra$circuit_bid$Sale_Encoder$statusToEncodingString = function (status) { - var _p0 = status; - switch (_p0.ctor) { - case 'ClosedNotStarted': - return 'closed_not_started'; - case 'MailAuctionOpen': - return 'open_mail'; - case 'PausedStartingSoon': - return 'paused_starting_soon'; - case 'LiveAuctionOpen': - return 'open_live'; - case 'PausedBackShortly': - return 'paused_back_shortly'; - default: - return 'closed_ended'; - } -}; -var _Gizra$circuit_bid$Sale_Encoder$encodeStatus = function (_p1) { - return _elm_lang$core$Json_Encode$string( - _Gizra$circuit_bid$Sale_Encoder$statusToEncodingString(_p1)); -}; - -var _Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair = F2( - function (key, dict) { - return A2( - _elm_lang$core$Maybe$map, - function (val) { - return {ctor: '_Tuple2', _0: key, _1: val}; - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, key, dict)); - }); - -var _Gizra$circuit_bid$Pages_Clerk_Update$subscriptions = function (model) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Sub$none, - function (sale) { - var item = A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, sale.item, model.item.items); - var maybeCalculated = A2( - _elm_lang$core$Maybe$andThen, - function (_p0) { - return _krisajenkins$remotedata$RemoteData$toMaybe( - function (_) { - return _.calculated; - }(_p0)); - }, - A2(_elm_lang$core$Maybe$map, _elm_lang$core$Tuple$second, item)); - var _p1 = maybeCalculated; - if (_p1.ctor === 'Nothing') { - return _elm_lang$core$Platform_Sub$none; - } else { - return _Gizra$circuit_bid$Item_Utils$isLiveAllowed(_p1._0.status) ? A2(_elm_lang$core$Time$every, 60 * _elm_lang$core$Time$second, _Gizra$circuit_bid$Pages_Clerk_Model$ProcessSubscriptions) : _elm_lang$core$Platform_Sub$none; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); -}; -var _Gizra$circuit_bid$Pages_Clerk_Update$resolveItemAndSale = function (model) { - var items = model.item.items; - return A2( - _elm_lang$core$Maybe$andThen, - function (sale) { - return A2( - _elm_lang$core$Maybe$map, - function (itemInfo) { - return {ctor: '_Tuple2', _0: sale, _1: itemInfo}; - }, - A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, sale.item, items)); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); -}; -var _Gizra$circuit_bid$Pages_Clerk_Update$connectedUserStatusUpdate = F3( - function (modelBackend, data, status) { - return { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgConnectedUser( - A2(_Gizra$circuit_bid$Backend_ConnectedUser_Model$SetStatus, data.websiteBidderNumber, status))), - _1: {ctor: '[]'} - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$getPlaySoundCmd = F2( - function (calculated, bid) { - var maybeBidToCheck = function () { - var _p2 = bid.bidType; - if (_p2.ctor === 'Book') { - var _p4 = _p2._1; - var _p3 = { - ctor: '_Tuple2', - _0: A2(_Gizra$elm_dictlist$EveryDictList$get, _p4, calculated.bids), - _1: A2(_Gizra$elm_dictlist$EveryDictList$get, _p4, calculated.agentBids) - }; - _v2_2: - do { - if (_p3.ctor === '_Tuple2') { - if (_p3._0.ctor === 'Just') { - return _elm_lang$core$Maybe$Just(_p3._0._0); - } else { - if (_p3._1.ctor === 'Just') { - return _elm_lang$core$Maybe$Just(_p3._1._0); - } else { - break _v2_2; - } - } - } else { - break _v2_2; - } - } while(false); - return _elm_lang$core$Maybe$Nothing; - } else { - return _elm_lang$core$Maybe$Just(bid); - } - }(); - var _p5 = maybeBidToCheck; - if (_p5.ctor === 'Nothing') { - return _elm_lang$core$Platform_Cmd$none; - } else { - var _p6 = _p5._0; - var validType = _Gizra$circuit_bid$Bid_Utils$isInternetBid(_p6) || _Gizra$circuit_bid$Bid_Utils$isAutoAgentBid(_p6); - var validStatus = (_Gizra$circuit_bid$Bid_Utils$isAccepted(_p6) || _Gizra$circuit_bid$Bid_Utils$isOutbid(_p6)) && (!_Gizra$circuit_bid$Bid_Utils$isDeleted(_p6)); - return (validStatus && validType) ? _Gizra$circuit_bid$Ports$playSoundOnLiveBid( - {ctor: '_Tuple0'}) : _elm_lang$core$Platform_Cmd$none; - } - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateFailure = F3( - function (error, user, model) { - var maybeItem = A2( - _elm_lang$core$Maybe$andThen, - function (itemId) { - return A2(_Gizra$elm_dictlist$EveryDictList$get, itemId, model.item.items); - }, - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.item; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))); - var maybeItemUuid = A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.uuid; - }, - maybeItem); - var maybeUpdatedCalculated = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Maybe$Nothing, - function (calculated) { - var updatedCalculated = function () { - var _p7 = calculated.status; - if ((_p7.ctor === 'EditableStatus') && (_p7._0.ctor === 'LiveOnly')) { - var updatedEditableStatus = A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - _stoeffel$editable$Editable$cancel, - A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Failure(error), - _p7._0._0)); - return _elm_lang$core$Native_Utils.update( - calculated, - { - status: _Gizra$circuit_bid$Item_Model$EditableStatus( - _Gizra$circuit_bid$Item_Model$LiveOnly(updatedEditableStatus)) - }); - } else { - return calculated; - } - }(); - return _elm_lang$core$Maybe$Just(updatedCalculated); - }, - A2( - _elm_lang$core$Maybe$andThen, - function (_p8) { - return _krisajenkins$remotedata$RemoteData$toMaybe( - function (_) { - return _.calculated; - }(_p8)); - }, - maybeItem)); - var maybeUpdatedItem = A3( - _elm_lang$core$Maybe$map2, - F2( - function (itemUuid, updatedItem) { - return A4( - _Gizra$circuit_bid$ItemManager_Utils$insertCalcultedItem, - _Gizra$circuit_bid$User_Model$Authenticated(user), - itemUuid, - updatedItem, - model.item); - }), - maybeItemUuid, - maybeUpdatedCalculated); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model, - function (item) { - return _elm_lang$core$Native_Utils.update( - model, - {item: item}); - }, - maybeUpdatedItem); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateItem = F6( - function (backendUrl, accessToken, saleUuid, _p9, handler, payload) { - var _p10 = _p9; - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - handler, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$QueuedRequest_Decoder$decodeQueuedRequestIdFromResponse), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _elm_lang$core$Json_Encode$object( - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'livequeue', - _1: _elm_lang$core$Json_Encode$bool(true) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(saleUuid) - }, - _1: {ctor: '[]'} - } - }, - payload)), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/api/items/', - _elm_lang$core$Basics$toString(_p10._0)))))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateItem = F6( - function (currentDate, backendUrl, accessToken, user, _p11, payload) { - var _p12 = _p11; - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedItem, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson( - A2( - _Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemFromResponse, - currentDate, - _Gizra$circuit_bid$User_Model$Authenticated(user))), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - payload, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/api/items/', - _elm_lang$core$Basics$toString(_p12._0)))))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateSale = F5( - function (backendUrl, accessToken, saleUuid, handler, payload) { - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - handler, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$QueuedRequest_Decoder$decodeQueuedRequestIdFromResponse), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - _elm_lang$core$Json_Encode$object( - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'livequeue', - _1: _elm_lang$core$Json_Encode$bool(true) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$encodeEntityUuid(saleUuid) - }, - _1: {ctor: '[]'} - } - }, - payload)), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/sales')))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateSale = F4( - function (backendUrl, accessToken, saleUuid, payload) { - return _lukewestby$elm_http_builder$HttpBuilder$toTask( - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$Sale_Decoder$decodeSaleFromResponse), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - payload, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid) - }, - _1: {ctor: '[]'} - } - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/sales')))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$setLastToFloor = F5( - function (currentDate, backendUrl, accessToken, saleUuid, itemId) { - var payload = { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'set_last_bid_to_floor', - _1: _elm_lang$core$Json_Encode$bool(true) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('last_to_floor') - }, - _1: {ctor: '[]'} - } - }; - return A6(_Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateItem, backendUrl, accessToken, saleUuid, itemId, _Gizra$circuit_bid$Pages_Clerk_Model$HandleLastToFloorQueued, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateItemStatus = F6( - function (currentDate, backendUrl, accessToken, saleUuid, itemId, clerkStatus) { - var payload = { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'status', - _1: _Gizra$circuit_bid$Item_Encoder$encodeClerkStatus(clerkStatus) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('update_item_status') - }, - _1: {ctor: '[]'} - } - }; - return A6(_Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateItem, backendUrl, accessToken, saleUuid, itemId, _Gizra$circuit_bid$Pages_Clerk_Model$HandleItemUpdateQueued, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateItemBidStep = F6( - function (currentDate, backendUrl, accessToken, user, itemId, manualStep) { - var payload = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'manual_step', - _1: _elm_lang$core$Json_Encode$int(manualStep) - }, - _1: {ctor: '[]'} - }); - return A6(_Gizra$circuit_bid$Pages_Clerk_Update$updateItem, currentDate, backendUrl, accessToken, user, itemId, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateSaleStatus = F4( - function (backendUrl, accessToken, saleUuid, status) { - var payload = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'status', - _1: _Gizra$circuit_bid$Sale_Encoder$encodeStatus(status) - }, - _1: {ctor: '[]'} - }); - return A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSale, backendUrl, accessToken, saleUuid, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateSaleSession = F4( - function (backendUrl, accessToken, saleUuid, sessionId) { - var payload = { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'session', - _1: _elm_lang$core$Json_Encode$int( - _Gizra$elm_restful$Restful_Endpoint$fromEntityId(sessionId)) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('update_sale_session') - }, - _1: {ctor: '[]'} - } - }; - return A5(_Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateSale, backendUrl, accessToken, saleUuid, _Gizra$circuit_bid$Pages_Clerk_Model$HandleSaleUpdateQueued, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateSaleItem = F4( - function (backendUrl, accessToken, saleUuid, itemId) { - var payload = { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'item', - _1: _Gizra$circuit_bid$Item_Encoder$encodeItemId(itemId) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'tag', - _1: _elm_lang$core$Json_Encode$string('update_sale_item') - }, - _1: {ctor: '[]'} - } - }; - return A5(_Gizra$circuit_bid$Pages_Clerk_Update$queueUpdateSale, backendUrl, accessToken, saleUuid, _Gizra$circuit_bid$Pages_Clerk_Model$HandleSaleUpdateQueued, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateSaleAutoClerkStatus = F4( - function (backendUrl, accessToken, saleUuid, status) { - var payload = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'auto_clerk_enabled', - _1: _elm_lang$core$Json_Encode$bool(status) - }, - _1: {ctor: '[]'} - }); - return A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSale, backendUrl, accessToken, saleUuid, payload); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$updateBid = F7( - function (backendUrl, accessToken, user, _p13, responseDecoder, handler, payload) { - var _p14 = _p13; - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - handler, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(responseDecoder), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - payload, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/bids/', _p14._0))))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$deleteBid = F3( - function (backendUrl, accessToken, _p15) { - var _p16 = _p15; - return _lukewestby$elm_http_builder$HttpBuilder$toTask( - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$delete( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/bids/', _p16._0._0))))); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$fetchSaleFromBackend = F3( - function (backendUrl, saleUuid, model) { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - {sale: _krisajenkins$remotedata$RemoteData$Loading}), - _1: A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMapFromResponse, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleFetchedSale, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loadByFieldName', _1: 'uuid'}, - _1: {ctor: '[]'} - }, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/api/sales/', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid)))))) - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent = F3( - function (_p17, webData, event) { - var _p18 = _p17; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (sale) { - var _p19 = sale.status; - if (_p19.ctor === 'LiveAuctionOpen') { - return A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleClerkEvent, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - A3(_Gizra$circuit_bid$Backend_ConnectedUser_Encoder$encodeClerkEvent, _p18._1, event, sale.uuid), - _lukewestby$elm_http_builder$HttpBuilder$post(_p18._0))); - } else { - return _elm_lang$core$Platform_Cmd$none; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(webData)); - }); -var _Gizra$circuit_bid$Pages_Clerk_Update$update = function (currentDate) { - return function (backendUrl) { - return function (_p20) { - return function (isDebug) { - return function (accessToken) { - return function (language) { - return function (user) { - return function (modelBackend) { - return function (msg) { - return function (model) { - update: - while (true) { - var _p21 = _p20; - var _p95 = _p21._0; - var _p94 = _p21._1; - var noChange = { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - var _p22 = msg; - switch (_p22.ctor) { - case 'CustomBidAmountUpdate': - var _p25 = _p22._0; - var customBidInput = function () { - if (_elm_lang$core$Native_Utils.eq(_p25, '-') || _elm_lang$core$Native_Utils.eq(_p25, '+')) { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p23 = _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p25)); - if (_p23.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p24 = _p23._0; - return (_elm_lang$core$Native_Utils.cmp(_p24, 0) > 0) ? _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Amount$Amount(_p24)) : _elm_lang$core$Maybe$Nothing; - } - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {customBidInput: customBidInput}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'DeleteBid': - var _p29 = _p22._1._0; - var _p28 = _p22._1._1; - var cmd = A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleDeletedBid, - A3( - _Gizra$circuit_bid$Pages_Clerk_Update$deleteBid, - backendUrl, - accessToken, - {ctor: '_Tuple2', _0: _p29, _1: _p28})); - var userId = function () { - var _p26 = user.userType; - if (_p26.ctor === 'Privileged') { - return user.id; - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'Pages.Clerk.Update', - { - start: {line: 131, column: 21}, - end: {line: 136, column: 75} - }, - _p26)('Unprivileged user on clerk page.'); - } - }(); - var deletedBid = _elm_lang$core$Native_Utils.update( - _p28, - { - deletedStatus: _Gizra$circuit_bid$Bid_Model$Deleted( - _elm_lang$core$Maybe$Just(userId)) - }); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p22._0._0, _p29, deletedBid, model.item) - }), - _1: cmd, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'UndeleteBid': - var _p34 = _p22._0._0; - var _p33 = _p22._1._0; - var _p32 = _p22._1._1; - var cmd = A7( - _Gizra$circuit_bid$Pages_Clerk_Update$updateBid, - backendUrl, - accessToken, - _Gizra$circuit_bid$User_Model$Authenticated(user), - _p33, - A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: '0', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBid( - _Gizra$circuit_bid$User_Model$Authenticated(user))), - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$HandleUndeletedBid, - {ctor: '_Tuple2', _0: _p34, _1: _p22._0._1}, - {ctor: '_Tuple2', _0: _p33, _1: _p32}), - _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'deleted_author', _1: _elm_lang$core$Json_Encode$null}, - _1: {ctor: '[]'} - })); - var undeletedBid = _elm_lang$core$Native_Utils.update( - _p32, - {deletedStatus: _Gizra$circuit_bid$Bid_Model$NotDeleted}); - var userId = function () { - var _p30 = user.userType; - if (_p30.ctor === 'Privileged') { - return user.id; - } else { - return _elm_lang$core$Native_Utils.crashCase( - 'Pages.Clerk.Update', - { - start: {line: 157, column: 21}, - end: {line: 162, column: 75} - }, - _p30)('Unprivileged user on clerk page.'); - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p34, _p33, undeletedBid, model.item) - }), - _1: cmd, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'HandleUndeletedBid': - if (_p22._2.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p22._0._0, _p22._1._0, _p22._2._0, model.item) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - } else { - var _p35 = _p22._2._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p22._0._0, _p22._1._0, _p22._1._1, model.item), - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p35) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleUndeletedBid', _p35), - _3: {ctor: '[]'} - }; - } - case 'EditWinningBidder': - switch (_p22._1.ctor) { - case 'Start': - var _p37 = _p22._1._0; - var editableBidderId = A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - function (_p36) { - return A2( - _stoeffel$editable$Editable$update, - _p37, - _stoeffel$editable$Editable$edit(_p36)); - }, - _Gizra$elm_editable_webdata$Editable_WebData$create(_p37)); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - editableBidderIds: A3(_eeue56$elm_all_dict$EveryDict$insert, _p22._0, editableBidderId, model.editableBidderIds) - }), - _1: A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Clerk_Model$FocusResult, - _elm_lang$dom$Dom$focus('winning-floor-id')), - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'Update': - var newInputValidated = A2(_Gizra$circuit_bid$BidderId_Utils$validateFloorBidderId, model.sale, _p22._1._0); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - editableBidderIds: A3( - _eeue56$elm_all_dict$EveryDict$update, - _p22._0, - _elm_lang$core$Maybe$map( - _Gizra$elm_editable_webdata$Editable_WebData$map( - _stoeffel$editable$Editable$update(newInputValidated))), - model.editableBidderIds) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'Cancel': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - editableBidderIds: A2(_eeue56$elm_all_dict$EveryDict$remove, _p22._0, model.editableBidderIds) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - default: - var _p42 = _p22._0._0; - var _p41 = _p22._0._1; - var _p38 = A2( - _eeue56$elm_all_dict$EveryDict$get, - {ctor: '_Tuple2', _0: _p42, _1: _p41}, - model.editableBidderIds); - if ((_p38.ctor === 'Just') && (_p38._0._0.ctor === 'Editable')) { - var _p40 = _p38._0._0._1; - var _p39 = _p40; - if (_p39.ctor === 'Ok') { - var updatedModel = _elm_lang$core$Native_Utils.update( - model, - { - editableBidderIds: A3( - _eeue56$elm_all_dict$EveryDict$insert, - {ctor: '_Tuple2', _0: _p42, _1: _p41}, - A2( - _Gizra$elm_editable_webdata$Editable_WebData$EditableWebData, - A2(_stoeffel$editable$Editable$Editable, _p38._0._0._0, _p40), - _krisajenkins$remotedata$RemoteData$Loading), - model.editableBidderIds) - }); - var bidUpdateCmd = A6( - _Gizra$circuit_bid$Bid_Update$updateBidderId, - backendUrl, - accessToken, - A2(_Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedWinningBidder, _p42, _p41), - user, - _p41, - _p39._0); - return { - ctor: '_Tuple4', - _0: updatedModel, - _1: bidUpdateCmd, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - } else { - return noChange; - } - } else { - return noChange; - } - } - case 'FocusResult': - return noChange; - case 'OpeningPriceEdit': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - openingPriceForm: _elm_lang$core$Maybe$Just(_p22._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'OpeningPriceCancel': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {openingPriceForm: _elm_lang$core$Maybe$Nothing}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'OpeningPriceSave': - var cmd = function () { - var _p43 = {ctor: '_Tuple2', _0: model.sale, _1: _p22._0}; - if (((_p43.ctor === '_Tuple2') && (_p43._0.ctor === 'Success')) && (_p43._1.ctor === 'Just')) { - var _p44 = _elm_lang$core$String$toInt(_p43._1._0); - if (_p44.ctor === 'Ok') { - var payload = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'opening_price', - _1: _Gizra$circuit_bid$Item_Encoder$encodeItemPrice(_p44._0) - }, - _1: {ctor: '[]'} - }); - return A6(_Gizra$circuit_bid$Pages_Clerk_Update$updateItem, currentDate, backendUrl, accessToken, user, _p43._0._0.item, payload); - } else { - return _elm_lang$core$Platform_Cmd$none; - } - } else { - return _elm_lang$core$Platform_Cmd$none; - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {itemChangeRequest: _krisajenkins$remotedata$RemoteData$Loading}), - _1: cmd, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'OpeningPriceStart': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - openingPriceForm: _elm_lang$core$Maybe$Just('') - }), - _1: _Gizra$circuit_bid$Ports$focus('opening-price-input'), - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - case 'HandleDeletedBid': - if (_p22._0.ctor === 'Ok') { - return noChange; - } else { - var _p45 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p45) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleDeletedBid', _p45), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedMessages': - if (_p22._0.ctor === 'Ok') { - var _p46 = _p22._0._0; - var itemIds = _Gizra$circuit_bid$Message_Utils$getItemsIds(_p46); - var _v20 = currentDate, - _v21 = backendUrl, - _v22 = {ctor: '_Tuple2', _0: _p95, _1: _p94}, - _v23 = isDebug, - _v24 = accessToken, - _v25 = language, - _v26 = user, - _v27 = modelBackend, - _v28 = _Gizra$circuit_bid$Pages_Clerk_Model$MsgItemManager( - _Gizra$circuit_bid$ItemManager_Model$FetchCalculatedItems(itemIds)), - _v29 = _elm_lang$core$Native_Utils.update( - model, - { - publicMessages: _krisajenkins$remotedata$RemoteData$Success(_p46) - }); - currentDate = _v20; - backendUrl = _v21; - _p20 = _v22; - isDebug = _v23; - accessToken = _v24; - language = _v25; - user = _v26; - modelBackend = _v27; - msg = _v28; - model = _v29; - continue update; - } else { - var _p47 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - publicMessages: _krisajenkins$remotedata$RemoteData$Failure(_p47) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleFetchedMessages', _p47), - _3: {ctor: '[]'} - }; - } - case 'HandleClerkEvent': - if (_p22._0.ctor === 'Ok') { - return noChange; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleClerkEvent', _p22._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleBidPlaced': - if (_p22._2.ctor === 'Ok') { - var _p50 = _p22._2._0; - var _p49 = _p22._1; - var _p48 = _p22._0; - var queuedBids = A3( - _eeue56$elm_all_dict$EveryDict$insert, - { - ctor: '_Tuple2', - _0: {ctor: '_Tuple2', _0: _p48, _1: _p49}, - _1: _elm_lang$core$Maybe$Just(_p50) - }, - _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p50), - A2( - _eeue56$elm_all_dict$EveryDict$remove, - { - ctor: '_Tuple2', - _0: {ctor: '_Tuple2', _0: _p48, _1: _p49}, - _1: _elm_lang$core$Maybe$Nothing - }, - model.queuedBids)); - var queuedBidsUpdateCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (data) { - return A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p95, _1: _p94}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(data)); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$generateClerkQueuedBidsUpdateData(queuedBids))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p50), - queuedBids: queuedBids - }), - _1: queuedBidsUpdateCmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p51 = _p22._2._0; - var queuedBids = A2( - _eeue56$elm_all_dict$EveryDict$remove, - { - ctor: '_Tuple2', - _0: {ctor: '_Tuple2', _0: _p22._0, _1: _p22._1}, - _1: _elm_lang$core$Maybe$Nothing - }, - model.queuedBids); - var queuedBidsUpdateCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (data) { - return A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p95, _1: _p94}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(data)); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$generateClerkQueuedBidsUpdateData(queuedBids))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p51), - queuedBids: queuedBids - }), - _1: queuedBidsUpdateCmd, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleBidPlaced', _p51), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedSale': - if (_p22._0.ctor === 'Ok') { - var _p53 = _p22._0._0._0; - var itemManager = _Gizra$circuit_bid$ItemManager_Utils$emptyItemManagerFromLotMap(_p22._0._0._1); - var _p52 = _Gizra$circuit_bid$Pages_Clerk_Update$update(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p95, _1: _p94})(isDebug)(accessToken)(language)(user)(modelBackend)( - _Gizra$circuit_bid$Pages_Clerk_Model$MsgItemManager( - _Gizra$circuit_bid$ItemManager_Model$FetchAllBySale( - {ctor: '_Tuple2', _0: _p53.uuid, _1: _p53})))(model); - var newModel = _p52._0; - var fetchItemsCmd = _p52._1; - var maybeError = _p52._2; - var appMsgs = _p52._3; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - newModel, - { - sale: _krisajenkins$remotedata$RemoteData$Success(_p53), - manualStepInput: _elm_lang$core$Maybe$Nothing, - pausedMessageInput: _Gizra$elm_editable_webdata$Editable_WebData$create(_p53.pausedMessage), - item: itemManager - }), - _1: fetchItemsCmd, - _2: maybeError, - _3: appMsgs - }; - } else { - var _p54 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - sale: _krisajenkins$remotedata$RemoteData$Failure(_p54), - pausedMessageInput: A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Failure(_p54), - model.pausedMessageInput) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleFetchedSale', _p54), - _3: {ctor: '[]'} - }; - } - case 'HandleSaleUpdateQueued': - if (_p22._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p22._0._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p55 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p55) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleSaleUpdateQueued', _p55), - _3: {ctor: '[]'} - }; - } - case 'HandleSetSale': - if (_p22._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - sale: _krisajenkins$remotedata$RemoteData$Success(_p22._0._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleSetSaleStatus', _p22._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleSubmitedPublicMessage': - if (_p22._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - publicMessageInput: '', - publicMessagesSendRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p56 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - publicMessagesSendRequest: _krisajenkins$remotedata$RemoteData$Failure(_p56) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleSubmitedPublicMessage', _p56), - _3: {ctor: '[]'} - }; - } - case 'HandlePusherEvent': - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (sale) { - var _p57 = function () { - var _p58 = _p22._0; - if (_p58.ctor === 'Ok') { - return { - ctor: '_Tuple2', - _0: _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p95, _1: _p94})(isDebug)(accessToken)(language)(user)(modelBackend)(msg)(model)(sale.uuid)(_p58._0), - _1: _Gizra$circuit_bid$Error_Utils$noError - }; - } else { - return { - ctor: '_Tuple2', - _0: { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }, - _1: A3(_Gizra$circuit_bid$Error_Utils$plainError, 'Pages.Clerk.Update', 'HandlePusherEvent', _p58._0) - }; - } - }(); - var newModel = _p57._0._0; - var cmd = _p57._0._1; - var appMsgs = _p57._0._2; - var maybeError = _p57._1; - return {ctor: '_Tuple4', _0: newModel, _1: cmd, _2: maybeError, _3: appMsgs}; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - case 'HandleUpdatedUnderExtension': - if (_p22._2.ctor === 'Ok') { - var itemsUpdated = A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p22._0, _p22._1, _p22._2._0, model.item); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: itemsUpdated}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleUpdatedUnderExtension', _p22._2._0), - _3: {ctor: '[]'} - }; - } - case 'HandleUpdatedWinningBidder': - if (_p22._2.ctor === 'Ok') { - var _p61 = _p22._0; - var _p60 = _p22._1; - var openingPriceCmd = A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceStart)); - var markAsSaved = function (_p59) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}), - A2(_Gizra$elm_editable_webdata$Editable_WebData$map, _stoeffel$editable$Editable$save, _p59)); - }; - var itemsUpdated = A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p61, _p60, _p22._2._0, model.item); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: itemsUpdated, - editableBidderIds: A3( - _eeue56$elm_all_dict$EveryDict$update, - {ctor: '_Tuple2', _0: _p61, _1: _p60}, - _elm_lang$core$Maybe$map(markAsSaved), - model.editableBidderIds) - }), - _1: openingPriceCmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p63 = _p22._2._0; - var markAsFailed = function (_p62) { - return A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Failure(_p63), - A2(_Gizra$elm_editable_webdata$Editable_WebData$map, _stoeffel$editable$Editable$cancel, _p62)); - }; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - editableBidderIds: A3( - _eeue56$elm_all_dict$EveryDict$update, - {ctor: '_Tuple2', _0: _p22._0, _1: _p22._1}, - _elm_lang$core$Maybe$map(markAsFailed), - model.editableBidderIds) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleUpdatedWinningBidder', _p63), - _3: {ctor: '[]'} - }; - } - case 'HandleUpdatedCurrentPrice': - if (_p22._1.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A3(_Gizra$circuit_bid$ItemManager_Utils$updateCurrentPrice, _p22._0, _p22._1._0, model.item) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleUpdatedCurrentPrice', _p22._1._0), - _3: {ctor: '[]'} - }; - } - case 'HandleUpdatedItem': - if (_p22._0.ctor === 'Ok') { - var _p64 = _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateSuccess(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p95, _1: _p94})(isDebug)(accessToken)(language)(user)(modelBackend)(model)( - {ctor: '_Tuple2', _0: _p22._0._0._0, _1: _p22._0._0._1}); - var updatedModel = _p64._0; - var cmds = _p64._1; - var maybeError = _p64._2; - var appMsgs = _p64._3; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - { - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: cmds, - _2: maybeError, - _3: appMsgs - }; - } else { - var _p65 = _p22._0._0; - var updatedModel = A3(_Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateFailure, _p65, user, model); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - { - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Failure( - _Gizra$circuit_bid$Error_Model$Http(_p65)) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleUpdatedItem', _p65), - _3: {ctor: '[]'} - }; - } - case 'HandleItemUpdateQueued': - if (_p22._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p22._0._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p66 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p66) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleItemUpdateQueued', _p66), - _3: {ctor: '[]'} - }; - } - case 'HandleLastToFloorQueued': - if (_p22._0.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p22._0._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - var _p67 = _p22._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed(_p67) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Clerk.Update', 'HandleLastToFloorQueued', _p67), - _3: {ctor: '[]'} - }; - } - case 'MsgItemManager': - var _p72 = _p22._0; - var isFetchAllBySale = function () { - var _p68 = _p72; - if (_p68.ctor === 'FetchAllBySale') { - return true; - } else { - return false; - } - }(); - var _p69 = function () { - if (_elm_lang$core$Native_Utils.eq(model.publicMessages, _krisajenkins$remotedata$RemoteData$NotAsked) && (!isFetchAllBySale)) { - var _p70 = _krisajenkins$remotedata$RemoteData$toMaybe(model.sale); - if (_p70.ctor === 'Just') { - return A2( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _elm_lang$core$Native_Utils.update( - model, - {publicMessages: _krisajenkins$remotedata$RemoteData$Loading}), - A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleFetchedMessages, - A3(_Gizra$circuit_bid$Message_Update$fetchMessages, backendUrl, accessToken, _p70._0.uuid))); - } else { - return {ctor: '_Tuple2', _0: model, _1: _elm_lang$core$Platform_Cmd$none}; - } - } else { - return {ctor: '_Tuple2', _0: model, _1: _elm_lang$core$Platform_Cmd$none}; - } - }(); - var newModel = _p69._0; - var messageMsg = _p69._1; - var _p71 = A8( - _Gizra$circuit_bid$ItemManager_Update$update, - currentDate, - backendUrl, - isDebug, - accessToken, - language, - _Gizra$circuit_bid$User_Model$Authenticated(user), - _p72, - model.item); - var item = _p71._0; - var itemManagerCmds = _p71._1; - var maybeError = _p71._2; - var appMsgs = _p71._3; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - newModel, - {item: item}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: messageMsg, - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Platform_Cmd$map, _Gizra$circuit_bid$Pages_Clerk_Model$MsgItemManager, itemManagerCmds), - _1: {ctor: '[]'} - } - }), - _2: maybeError, - _3: appMsgs - }; - case 'PlaceFloorBid': - var _p74 = _p22._3; - var _p73 = _p22._2; - var cmds = A7( - _Gizra$circuit_bid$Bid_Update$placeFloorBid, - backendUrl, - accessToken, - A2(_Gizra$circuit_bid$Pages_Clerk_Model$HandleBidPlaced, _p73, _p74), - user, - _p22._0, - _p22._1, - _p73); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBids: A3( - _eeue56$elm_all_dict$EveryDict$insert, - { - ctor: '_Tuple2', - _0: {ctor: '_Tuple2', _0: _p73, _1: _p74}, - _1: _elm_lang$core$Maybe$Nothing - }, - _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent, - model.queuedBids), - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent, - customBidInput: _elm_lang$core$Maybe$Nothing - }), - _1: cmds, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'ProcessSubscriptions': - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgConnectedUser( - _Gizra$circuit_bid$Backend_ConnectedUser_Model$ProcessConnectedUserStatus(_p22._0))), - _1: {ctor: '[]'} - } - }; - case 'SetAutoClerkStatus': - var cmd = A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleSetSale, - A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSaleAutoClerkStatus, backendUrl, accessToken, _p22._0, _p22._1)); - return { - ctor: '_Tuple4', - _0: model, - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetBidStep': - return { - ctor: '_Tuple4', - _0: model, - _1: A6(_Gizra$circuit_bid$Pages_Clerk_Update$updateItemBidStep, currentDate, backendUrl, accessToken, user, _p22._0, _p22._1), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetBidStepInput': - var _p77 = _p22._0; - var manualStepInput = function () { - if (_elm_lang$core$String$isEmpty(_p77)) { - return _elm_lang$core$Maybe$Nothing; - } else { - if (_elm_lang$core$Native_Utils.eq(_p77, '-') || _elm_lang$core$Native_Utils.eq(_p77, '+')) { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p75 = _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p77)); - if (_p75.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p76 = _p75._0; - return (_elm_lang$core$Native_Utils.cmp(_p76, 0) > 0) ? _elm_lang$core$Maybe$Just(_p76) : _elm_lang$core$Maybe$Nothing; - } - } - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {manualStepInput: manualStepInput}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetClosedItemBidUnderExtension': - var _p78 = _p22._1; - var cmd = A6( - _Gizra$circuit_bid$Bid_Update$updateUnderExtension, - backendUrl, - accessToken, - A2(_Gizra$circuit_bid$Pages_Clerk_Model$HandleUpdatedUnderExtension, _p22._0, _p78), - user, - _p78, - _p22._2); - return { - ctor: '_Tuple4', - _0: model, - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetCurrentItem': - var cmd = A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSaleItem, backendUrl, accessToken, _p22._0, _p22._1); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetCurrentItemSelection': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - currentItemSelection: _elm_lang$core$Maybe$Just(_p22._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetCurrentSession': - var cmd = A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSaleSession, backendUrl, accessToken, _p22._0, _p22._1); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetCurrentSessionSelection': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - currentSessionSelection: _elm_lang$core$Maybe$Just(_p22._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetEditableItemStatus': - var _p85 = _p22._2; - var _p84 = _p22._1; - var activeToGoingUpdateCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (item) { - var _p79 = item.calculated; - if (_p79.ctor === 'Success') { - var _p80 = _p79._0.status; - if ((_p80.ctor === 'EditableStatus') && (_p80._0.ctor === 'LiveOnly')) { - var currentStatus = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(_p80._0._0)); - return (_elm_lang$core$Native_Utils.eq(currentStatus, _Gizra$circuit_bid$Item_Model$Open) && _elm_lang$core$Native_Utils.eq(_p85, _Gizra$circuit_bid$Item_Model$Going)) ? A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p95, _1: _p94}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$ActiveToGoingUpdate) : _elm_lang$core$Platform_Cmd$none; - } else { - return _elm_lang$core$Platform_Cmd$none; - } - } else { - return _elm_lang$core$Platform_Cmd$none; - } - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, _p84, model.item.items))); - var updateItemStatusCmd = A6(_Gizra$circuit_bid$Pages_Clerk_Update$updateItemStatus, currentDate, backendUrl, accessToken, _p22._0, _p84, _p85); - var itemUpdated = A3( - _Gizra$circuit_bid$ItemManager_Utils$mapItemCalculated, - _p84, - function (calculated) { - var _p81 = calculated.status; - if (_p81.ctor === 'EditableStatus') { - if (_p81._0.ctor === 'LiveOnly') { - var statusUpdated = A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Loading, - A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - function (_p82) { - return A2( - _stoeffel$editable$Editable$update, - _p85, - _stoeffel$editable$Editable$edit(_p82)); - }, - _p81._0._0)); - return _elm_lang$core$Native_Utils.update( - calculated, - { - status: _Gizra$circuit_bid$Item_Model$EditableStatus( - _Gizra$circuit_bid$Item_Model$LiveOnly(statusUpdated)) - }); - } else { - return calculated; - } - } else { - var _p83 = _p81._0; - if (_p83.ctor === 'ItemClosed') { - var statusUpdated = _Gizra$circuit_bid$Item_Model$EditableStatus( - _Gizra$circuit_bid$Item_Model$LiveOnly( - A2( - _Gizra$elm_editable_webdata$Editable_WebData$state, - _krisajenkins$remotedata$RemoteData$Loading, - _Gizra$elm_editable_webdata$Editable_WebData$create(_Gizra$circuit_bid$Item_Model$GoneTransition)))); - return _elm_lang$core$Native_Utils.update( - calculated, - {status: statusUpdated}); - } else { - return calculated; - } - } - }, - model.item); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: itemUpdated, queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: updateItemStatusCmd, - _1: { - ctor: '::', - _0: activeToGoingUpdateCmd, - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetItemLastToFloor': - var cmd = A5(_Gizra$circuit_bid$Pages_Clerk_Update$setLastToFloor, currentDate, backendUrl, accessToken, _p22._0, _p22._1); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestSent}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetPausedMessage': - var pausedMessageInput = A2( - _Gizra$elm_editable_webdata$Editable_WebData$map, - function (_p86) { - return A2( - _stoeffel$editable$Editable$update, - _p22._0, - _stoeffel$editable$Editable$edit(_p86)); - }, - model.pausedMessageInput); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {pausedMessageInput: pausedMessageInput}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetPublicMessageInput': - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {publicMessageInput: _p22._0}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SetSaleStatus': - var cmd = A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleSetSale, - A4(_Gizra$circuit_bid$Pages_Clerk_Update$updateSaleStatus, backendUrl, accessToken, _p22._0, _p22._1)); - return { - ctor: '_Tuple4', - _0: model, - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'SubmitPausedMessage': - var inputValue = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(model.pausedMessageInput)); - var _p87 = model.sale; - if (_p87.ctor === 'Success') { - var pausedMessageInput = A2(_Gizra$elm_editable_webdata$Editable_WebData$state, _krisajenkins$remotedata$RemoteData$Loading, model.pausedMessageInput); - var payload = _elm_lang$core$Json_Encode$object( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'paused_message', - _1: _elm_lang$core$Json_Encode$string(inputValue) - }, - _1: {ctor: '[]'} - }); - var cmd = A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMapFromResponse, - _Gizra$circuit_bid$Pages_Clerk_Model$HandleFetchedSale, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$Sale_Decoder$decodeSaleFromResponse), - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - payload, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'sale_uuid', - _1: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p87._0.uuid) - }, - _1: {ctor: '[]'} - } - }, - _lukewestby$elm_http_builder$HttpBuilder$patch( - A2(_elm_lang$core$Basics_ops['++'], backendUrl, '/api/sales')))))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {pausedMessageInput: pausedMessageInput}), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return noChange; - } - case 'SubmitPublicMessage': - var cmd = A2( - _krisajenkins$remotedata$RemoteData$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _krisajenkins$remotedata$RemoteData$map, - function (sale) { - return A5(_Gizra$circuit_bid$Message_Update$sendClerkPublicMessage, backendUrl, accessToken, sale.uuid, model.publicMessageInput, _Gizra$circuit_bid$Pages_Clerk_Model$HandleSubmitedPublicMessage); - }, - model.sale)); - var updatedModel = _elm_lang$core$Native_Utils.update( - model, - {publicMessagesSendRequest: _krisajenkins$remotedata$RemoteData$Loading}); - return { - ctor: '_Tuple4', - _0: updatedModel, - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'Subscribe': - var _p88 = A3(_Gizra$circuit_bid$Pages_Clerk_Update$fetchSaleFromBackend, backendUrl, _p22._0, model); - var modelUpdated = _p88._0; - var cmd = _p88._1; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - modelUpdated, - { - publicMessagesSendRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: cmd, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'HandleKeyboardEvent': - var _p93 = _p22._0; - var maybeMsg = A2( - _elm_lang$core$Maybe$andThen, - function (_p89) { - var _p90 = _p89; - var _p92 = _p90._1._0; - var _p91 = _p22._1.keyCode; - switch (_p91.ctor) { - case 'F2': - return _elm_lang$core$Maybe$Just( - A3(_Gizra$circuit_bid$Pages_Clerk_Model$SetEditableItemStatus, _p93, _p92, _Gizra$circuit_bid$Item_Model$Open)); - case 'F3': - return _elm_lang$core$Maybe$Just( - A3(_Gizra$circuit_bid$Pages_Clerk_Model$SetEditableItemStatus, _p93, _p92, _Gizra$circuit_bid$Item_Model$Going)); - case 'F4': - return _elm_lang$core$Maybe$Just( - A3(_Gizra$circuit_bid$Pages_Clerk_Model$SetEditableItemStatus, _p93, _p92, _Gizra$circuit_bid$Item_Model$GoneTransition)); - case 'F9': - return A2( - _elm_lang$core$Maybe$map, - function (calculated) { - var bidAmount = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, calculated, model); - var nextBidAmount = A2( - _Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, - _elm_lang$core$Native_Utils.update( - calculated, - { - currentPrice: _elm_lang$core$Maybe$Just(bidAmount) - }), - model); - return A4(_Gizra$circuit_bid$Pages_Clerk_Model$PlaceFloorBid, _p92, _p93, bidAmount, nextBidAmount); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p90._1._1.calculated)); - default: - return _elm_lang$core$Maybe$Nothing; - } - }, - _Gizra$circuit_bid$Pages_Clerk_Update$resolveItemAndSale(model)); - return A2( - _elm_lang$core$Maybe$withDefault, - { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }, - A2( - _elm_lang$core$Maybe$map, - function (msg_) { - return _Gizra$circuit_bid$Pages_Clerk_Update$update(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p95, _1: _p94})(isDebug)(accessToken)(language)(user)(modelBackend)(msg_)(model); - }, - maybeMsg)); - default: - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A3(_Gizra$circuit_bid$Backend_CreditRequest_Model$UpdateStatus, _p22._0, _p22._1, _p22._2))), - _1: {ctor: '[]'} - } - }; - } - } - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateSuccess = function (currentDate) { - return function (backendUrl) { - return function (_p97) { - return function (isDebug) { - return function (accessToken) { - return function (language) { - return function (user) { - return function (modelBackend) { - return function (model) { - return function (_p96) { - var _p98 = _p97; - var _p99 = _p96; - var msg = _Gizra$circuit_bid$Pages_Clerk_Model$HandlePusherEvent( - _elm_lang$core$Result$Ok( - { - data: A2(_Gizra$circuit_bid$Pusher_Model$ItemUpdate, _p99._0, _p99._1) - })); - var _p100 = _Gizra$circuit_bid$Pages_Clerk_Update$update(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p98._0, _1: _p98._1})(isDebug)(accessToken)(language)(user)(modelBackend)(msg)(model); - var updatedModel = _p100._0; - var cmds = _p100._1; - var maybeError = _p100._2; - var appMsgs = _p100._3; - var openingPriceForm = function () { - var _p101 = updatedModel.openingPriceForm; - if ((_p101.ctor === 'Just') && (_p101._0 === '')) { - return _elm_lang$core$Maybe$Just(''); - } else { - return _elm_lang$core$Maybe$Nothing; - } - }(); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - {manualStepInput: _elm_lang$core$Maybe$Nothing, openingPriceForm: openingPriceForm}), - _1: cmds, - _2: maybeError, - _3: appMsgs - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _Gizra$circuit_bid$Pages_Clerk_Update$updateFromPusher = function (currentDate) { - return function (backendUrl) { - return function (_p102) { - return function (isDebug) { - return function (accessToken) { - return function (language) { - return function (user) { - return function (modelBackend) { - return function (msg) { - return function (model) { - return function (saleUuid) { - return function (event) { - var _p103 = _p102; - var _p141 = _p103._0; - var _p140 = _p103._1; - var noChange = { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - var _p104 = event.data; - switch (_p104.ctor) { - case 'ConnectedUsersSaleHeartbeat': - var _p105 = _p104._0; - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3( - _Gizra$circuit_bid$Pages_Clerk_Update$connectedUserStatusUpdate, - modelBackend, - _p105, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$Present(_p105.date)) - }; - case 'ConnectedUsersSalePlaceBidMouseEnter': - var _p106 = _p104._0; - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3( - _Gizra$circuit_bid$Pages_Clerk_Update$connectedUserStatusUpdate, - modelBackend, - _p106, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidHover(_p106.date)) - }; - case 'ConnectedUsersSalePlaceBidMouseLeave': - var _p107 = _p104._0; - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3( - _Gizra$circuit_bid$Pages_Clerk_Update$connectedUserStatusUpdate, - modelBackend, - _p107, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$Present(_p107.date)) - }; - case 'SaleUpdate': - var _p113 = _p104._0; - var sessionCmd = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (existingSale) { - return _elm_lang$core$Native_Utils.eq(existingSale.session, _p113.session) ? _elm_lang$core$Platform_Cmd$none : A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed( - _Gizra$circuit_bid$Pages_Clerk_Model$Subscribe(existingSale.uuid))); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - var openingPriceCmd = A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed(_Gizra$circuit_bid$Pages_Clerk_Model$OpeningPriceStart)); - var queuedBidsUpdateCmd = A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p141, _1: _p140}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(_Gizra$circuit_bid$Pusher_Model$emptyClerkQueuedBidsUpdateData)); - var newSale = A2( - _krisajenkins$remotedata$RemoteData$map, - function (sale) { - return _elm_lang$core$Native_Utils.update( - sale, - {status: _p113.status, label: _p113.label, item: _p113.item, pausedMessage: _p113.pausedMessage}); - }, - model.sale); - var modelUpdated = _elm_lang$core$Native_Utils.update( - model, - {sale: newSale, queuedBids: _eeue56$elm_all_dict$EveryDict$empty}); - var editWinningBidderCmd = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (sale) { - var closedItemFilter = function (item) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - false, - function (calculated) { - return _Gizra$circuit_bid$Item_Utils$isClosed(calculated.status); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - }; - var closedItem = _elm_lang$core$List$head( - A5(_Gizra$circuit_bid$ItemManager_Utils$getTrimmedItemsList, 1, 0, closedItemFilter, _p113.item, modelUpdated.item.items)); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - openingPriceCmd, - function (_p108) { - var _p109 = _p108; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (calculated) { - var _p110 = { - ctor: '_Tuple2', - _0: calculated.winningBid, - _1: _Gizra$circuit_bid$Item_Utils$getWinningBid(calculated) - }; - if (((_p110.ctor === '_Tuple2') && (_p110._0.ctor === 'Just')) && (_p110._1.ctor === 'Just')) { - var _p112 = _p110._1._0; - var _p111 = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(_p112); - if (_p111.ctor === 'Nothing') { - return _Gizra$circuit_bid$Bid_Utils$isFloorBid(_p112) ? A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed( - A2( - _Gizra$circuit_bid$Pages_Clerk_Model$EditWinningBidder, - {ctor: '_Tuple2', _0: _p109._0, _1: _p110._0._0}, - _Gizra$circuit_bid$Pages_Clerk_Model$Start( - _elm_lang$core$Result$Err( - {ctor: '_Tuple2', _0: '', _1: _Gizra$circuit_bid$BidderId_Model$NoInput}))))) : openingPriceCmd; - } else { - return openingPriceCmd; - } - } else { - return openingPriceCmd; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p109._1.calculated)); - }, - closedItem); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - return { - ctor: '_Tuple3', - _0: modelUpdated, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: editWinningBidderCmd, - _1: { - ctor: '::', - _0: sessionCmd, - _1: { - ctor: '::', - _0: queuedBidsUpdateCmd, - _1: {ctor: '[]'} - } - } - }), - _2: {ctor: '[]'} - }; - case 'ItemUpdate': - var item = A4( - _Gizra$circuit_bid$ItemManager_Utils$insertCalcultedItem, - _Gizra$circuit_bid$User_Model$Authenticated(user), - _p104._0, - _p104._1, - model.item); - var editableBidderIds = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model.editableBidderIds, - function (sale) { - return A2( - _elm_lang$core$Maybe$withDefault, - model.editableBidderIds, - A2( - _elm_lang$core$Maybe$map, - function (_p114) { - var _p115 = _p114; - var closedItemFilter = function (item) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - false, - function (calculated) { - return _Gizra$circuit_bid$Item_Utils$isClosed(calculated.status); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - }; - var closedItem = _elm_lang$core$List$head( - A5(_Gizra$circuit_bid$ItemManager_Utils$getTrimmedItemsList, 1, 0, closedItemFilter, _p115._0, model.item.items)); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model.editableBidderIds, - function (_p116) { - var _p117 = _p116; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - model.editableBidderIds, - function (calculated) { - var _p118 = { - ctor: '_Tuple2', - _0: calculated.winningBid, - _1: _Gizra$circuit_bid$Item_Utils$getWinningBid(calculated) - }; - if (((_p118.ctor === '_Tuple2') && (_p118._0.ctor === 'Just')) && (_p118._1.ctor === 'Just')) { - var _p120 = _p118._1._0; - var _p119 = _Gizra$circuit_bid$Bid_Utils$getBidderNumber(_p120); - if (_p119.ctor === 'Just') { - return _Gizra$circuit_bid$Bid_Utils$isFloorBid(_p120) ? A3( - _eeue56$elm_all_dict$EveryDict$insert, - {ctor: '_Tuple2', _0: _p117._0, _1: _p118._0._0}, - _Gizra$elm_editable_webdata$Editable_WebData$create( - _elm_lang$core$Result$Ok(_p119._0)), - model.editableBidderIds) : model.editableBidderIds; - } else { - return model.editableBidderIds; - } - } else { - return model.editableBidderIds; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p117._1.calculated)); - }, - closedItem); - }, - function (id) { - return A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, id, model.item.items); - }(sale.item))); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: item, editableBidderIds: editableBidderIds}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'MessageCreate': - var publicMessages = A2( - _krisajenkins$remotedata$RemoteData$map, - A2(_Gizra$circuit_bid$Message_Update$addMessage, _p104._0, _p104._1), - model.publicMessages); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {publicMessages: publicMessages}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'BidDelete': - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p104._1, _p104._2, _p104._3, model.item) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'BidUpdate': - var _p126 = _p104._0; - var _p125 = _p104._1; - var _p124 = _p104._2; - var cmd = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (sale) { - return A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (_p121) { - var _p122 = _p121; - return _elm_lang$core$Native_Utils.eq(_p122._0, _p126) ? A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (calculated) { - var _p123 = _Gizra$circuit_bid$Bid_Utils$getHighestBidWithKey(calculated.bids); - if (_p123.ctor === 'Just') { - return _elm_lang$core$Native_Utils.eq(_p123._0._0, _p125) ? _elm_lang$core$Platform_Cmd$none : A2(_Gizra$circuit_bid$Pages_Clerk_Update$getPlaySoundCmd, calculated, _p124); - } else { - return A2(_Gizra$circuit_bid$Pages_Clerk_Update$getPlaySoundCmd, calculated, _p124); - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p122._1.calculated)) : _elm_lang$core$Platform_Cmd$none; - }, - function (id) { - return A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, id, model.item.items); - }(sale.item))); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p126, _p125, _p124, model.item) - }), - _1: cmd, - _2: {ctor: '[]'} - }; - case 'BidderInfoUpdate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgBidderInfo( - A2( - _Gizra$circuit_bid$Backend_BidderInfo_Model$Update, - saleUuid, - {ctor: '_Tuple2', _0: _p104._0._0, _1: _p104._0._1}))), - _1: {ctor: '[]'} - } - }; - case 'CreditRequestCreate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2(_Gizra$circuit_bid$Backend_CreditRequest_Model$HandleCreateForPrivileged, _p104._0._0, _p104._0._1))), - _1: {ctor: '[]'} - } - }; - case 'CreditRequestUpdate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2( - _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleUpdate, - _Gizra$elm_storage_key$StorageKey$Existing(_p104._0._0), - _krisajenkins$remotedata$RemoteData$Success(_p104._0._1)))), - _1: {ctor: '[]'} - } - }; - case 'LiveQueuePostExecute': - var _p139 = _p104._0; - var verifyQueuedTaskAndProcess = F2( - function (requestState, result) { - var _p127 = requestState; - if (_p127.ctor === 'QueuedRequestQueued') { - return _elm_lang$core$Native_Utils.eq(_p127._0, _p139.taskId) ? result : noChange; - } else { - return noChange; - } - }); - var _p128 = _p139.result; - switch (_p128.ctor) { - case 'LiveQueuePostExecutePlaceBidSuccess': - var queuedBids = _eeue56$elm_all_dict$EveryDict$fromList( - A2( - _elm_lang$core$List$filter, - function (_p129) { - var _p130 = _p129; - return !_elm_lang$core$Native_Utils.eq( - _p130._0._1, - _elm_lang$core$Maybe$Just(_p128._0)); - }, - _eeue56$elm_all_dict$EveryDict$toList(model.queuedBids))); - var queuedBidsUpdateCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (data) { - return A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p141, _1: _p140}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(data)); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$generateClerkQueuedBidsUpdateData(queuedBids))); - var _p131 = A2( - verifyQueuedTaskAndProcess, - model.queuedBidRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, - manualStepInput: _elm_lang$core$Maybe$Nothing, - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - var updatedModel = _p131._0; - var cmd = _p131._1; - var appMsgs = _p131._2; - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - {queuedBids: queuedBids}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmd, - _1: { - ctor: '::', - _0: queuedBidsUpdateCmd, - _1: {ctor: '[]'} - } - }), - _2: appMsgs - }; - case 'LiveQueuePostExecutePlaceBidFailure': - var _p135 = _p128._1; - var queuedBids = _eeue56$elm_all_dict$EveryDict$fromList( - A2( - _elm_lang$core$List$filter, - function (_p132) { - var _p133 = _p132; - return !_elm_lang$core$Native_Utils.eq( - _p133._0._1, - _elm_lang$core$Maybe$Just(_p128._0)); - }, - _eeue56$elm_all_dict$EveryDict$toList(model.queuedBids))); - var queuedBidsUpdateCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - function (data) { - return A3( - _Gizra$circuit_bid$Pages_Clerk_Update$sendClerkEvent, - {ctor: '_Tuple2', _0: _p141, _1: _p140}, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$QueuedBidsUpdate(data)); - }, - _Gizra$circuit_bid$Pages_Clerk_Utils$generateClerkQueuedBidsUpdateData(queuedBids))); - var _p134 = A2( - verifyQueuedTaskAndProcess, - model.queuedBidRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedBidRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed( - _elm_lang$http$Http$BadUrl(_p135)), - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Failure( - _Gizra$circuit_bid$Error_Model$Plain(_p135)) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - var updatedModel = _p134._0; - var cmd = _p134._1; - var appMsgs = _p134._2; - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - {queuedBids: queuedBids}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmd, - _1: { - ctor: '::', - _0: queuedBidsUpdateCmd, - _1: {ctor: '[]'} - } - }), - _2: appMsgs - }; - case 'LiveQueuePostExecuteLastToFloorSuccess': - return A2( - verifyQueuedTaskAndProcess, - model.queuedSetToFloorRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - case 'LiveQueuePostExecuteLastToFloorFailure': - var _p136 = _p128._0; - return A2( - verifyQueuedTaskAndProcess, - model.queuedSetToFloorRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSetToFloorRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed( - _elm_lang$http$Http$BadUrl(_p136)), - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Failure( - _Gizra$circuit_bid$Error_Model$Plain(_p136)) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - case 'LiveQueuePostExecuteUpdateItemStatusSuccess': - return A2( - verifyQueuedTaskAndProcess, - model.queuedItemUpdateRequestState, - function () { - var _p137 = _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateSuccess(currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: _p141, _1: _p140})(isDebug)(accessToken)(language)(user)(modelBackend)(model)( - {ctor: '_Tuple2', _0: _p128._0._0, _1: _p128._0._1}); - var updatedModel = _p137._0; - var cmds = _p137._1; - var appMsgs = _p137._3; - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - { - queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple0'}) - }), - _1: cmds, - _2: appMsgs - }; - }()); - case 'LiveQueuePostExecuteUpdateItemStatusFailure': - var _p138 = _p128._0; - return A2( - verifyQueuedTaskAndProcess, - model.queuedItemUpdateRequestState, - function () { - var updatedModel = A3( - _Gizra$circuit_bid$Pages_Clerk_Update$handleItemUpdateFailure, - _elm_lang$http$Http$BadUrl(_p138), - user, - model); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - updatedModel, - { - queuedItemUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed( - _elm_lang$http$Http$BadUrl(_p138)), - itemChangeRequest: _krisajenkins$remotedata$RemoteData$Failure( - _Gizra$circuit_bid$Error_Model$Plain(_p138)) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - }()); - case 'LiveQueuePostExecuteUpdateSaleSessionSuccess': - return A2( - verifyQueuedTaskAndProcess, - model.queuedSaleUpdateRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, - currentSessionSelection: _elm_lang$core$Maybe$Just(_p128._0.session), - currentItemSelection: _elm_lang$core$Maybe$Nothing, - itemChangeRequest: _krisajenkins$remotedata$RemoteData$NotAsked - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - case 'LiveQueuePostExecuteUpdateSaleSessionFailure': - return A2( - verifyQueuedTaskAndProcess, - model.queuedSaleUpdateRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, currentSessionSelection: _elm_lang$core$Maybe$Nothing}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - case 'LiveQueuePostExecuteUpdateSaleItemSuccess': - return A2( - verifyQueuedTaskAndProcess, - model.queuedSaleUpdateRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, currentItemSelection: _elm_lang$core$Maybe$Nothing, itemChangeRequest: _krisajenkins$remotedata$RemoteData$NotAsked}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - default: - return A2( - verifyQueuedTaskAndProcess, - model.queuedSaleUpdateRequestState, - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedSaleUpdateRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed( - _elm_lang$http$Http$BadUrl(_p128._0)), - currentItemSelection: _elm_lang$core$Maybe$Nothing - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - } - case 'ClerkQueuedBidsUpdate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - default: - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - } - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; - -var _Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem = F2( - function (user, data) { - var userId = function () { - var _p0 = user; - if (_p0.ctor === 'Anonymous') { - return ''; - } else { - var _p1 = _p0._0.id; - var uid = _p1._0; - return uid; - } - }(); - var _p2 = data.item; - var item = _p2._0; - return { - item: item, - user: userId, - saleUuid: _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(data.saleUuid) - }; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPort = function (event) { - var _p3 = event; - switch (_p3.ctor) { - case 'EventPlaceBid': - return A2(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem, _p3._0, _p3._1); - case 'EventPlaceBidMouseEnter': - return A2(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem, _p3._0, _p3._1); - case 'EventPlaceBidMouseLeave': - return A2(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem, _p3._0, _p3._1); - case 'EventSliderNextItem': - return A2(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem, _p3._0, _p3._1); - default: - return A2(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPortForItem, _p3._0, _p3._1); - } -}; -var _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBid = _elm_lang$core$Native_Platform.outgoingPort( - 'keenPlaceBid', - function (v) { - return {item: v.item, user: v.user, saleUuid: v.saleUuid}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBidMouseEnter = _elm_lang$core$Native_Platform.outgoingPort( - 'keenPlaceBidMouseEnter', - function (v) { - return {item: v.item, user: v.user, saleUuid: v.saleUuid}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBidMouseLeave = _elm_lang$core$Native_Platform.outgoingPort( - 'keenPlaceBidMouseLeave', - function (v) { - return {item: v.item, user: v.user, saleUuid: v.saleUuid}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$keenSliderNextItem = _elm_lang$core$Native_Platform.outgoingPort( - 'keenSliderNextItem', - function (v) { - return {item: v.item, user: v.user, saleUuid: v.saleUuid}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$keenSliderPreviousItem = _elm_lang$core$Native_Platform.outgoingPort( - 'keenSliderPreviousItem', - function (v) { - return {item: v.item, user: v.user, saleUuid: v.saleUuid}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem = F3( - function (user, model, eventName) { - var _p4 = _krisajenkins$remotedata$RemoteData$toMaybe(model.sale); - if (_p4.ctor === 'Nothing') { - return _elm_lang$core$Platform_Cmd$none; - } else { - var _p6 = _p4._0; - var event = A2( - eventName, - user, - {item: _p6.item, saleUuid: _p6.uuid}); - var portName = function () { - var _p5 = event; - switch (_p5.ctor) { - case 'EventPlaceBid': - return _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBid; - case 'EventPlaceBidMouseEnter': - return _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBidMouseEnter; - case 'EventPlaceBidMouseLeave': - return _Gizra$circuit_bid$Pages_Sale_Keen$keenPlaceBidMouseLeave; - case 'EventSliderNextItem': - return _Gizra$circuit_bid$Pages_Sale_Keen$keenSliderNextItem; - default: - return _Gizra$circuit_bid$Pages_Sale_Keen$keenSliderPreviousItem; - } - }(); - return portName( - _Gizra$circuit_bid$Pages_Sale_Keen$prepareEventForPort(event)); - } - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$PlaceBidData = F2( - function (a, b) { - return {item: a, saleUuid: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$PlaceBidDataPort = F3( - function (a, b, c) { - return {item: a, user: b, saleUuid: c}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$EventSliderPreviousItem = F2( - function (a, b) { - return {ctor: 'EventSliderPreviousItem', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$EventSliderNextItem = F2( - function (a, b) { - return {ctor: 'EventSliderNextItem', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBidMouseLeave = F2( - function (a, b) { - return {ctor: 'EventPlaceBidMouseLeave', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBidMouseEnter = F2( - function (a, b) { - return {ctor: 'EventPlaceBidMouseEnter', _0: a, _1: b}; - }); -var _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBid = F2( - function (a, b) { - return {ctor: 'EventPlaceBid', _0: a, _1: b}; - }); - -var _Gizra$circuit_bid$Utils_Number$maximalInt = 2147483647; - -var _Gizra$circuit_bid$Utils_Update$sequenceExtra = F3( - function (updater, msgs, startingPoint) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (eachMsg, _p0) { - var _p1 = _p0; - var _p2 = A2(updater, eachMsg, _p1._0); - var newModel = _p2._0; - var newCmd = _p2._1; - var error = _p2._2; - var newMsgs = _p2._3; - return { - ctor: '_Tuple4', - _0: newModel, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _p1._1, - _1: { - ctor: '::', - _0: newCmd, - _1: {ctor: '[]'} - } - }), - _2: A2(_elm_community$maybe_extra$Maybe_Extra$or, _p1._2, error), - _3: A2(_elm_lang$core$Basics_ops['++'], _p1._3, newMsgs) - }; - }), - startingPoint, - msgs); - }); - -var _Gizra$circuit_bid$Pages_Sale_Update$subscriptions = F2( - function (user, model) { - var _p0 = user; - if (_p0.ctor === 'Anonymous') { - return _elm_lang$core$Platform_Sub$none; - } else { - return A2(_elm_lang$core$Time$every, 300 * _elm_lang$core$Time$second, _Gizra$circuit_bid$Pages_Sale_Model$ConnectedUserHeartbeat); - } - }); -var _Gizra$circuit_bid$Pages_Sale_Update$calculateCarouselPosition = F3( - function (numberOfCarouselItems, itemId, itemDict) { - var itemList = _Gizra$elm_dictlist$EveryDictList$toList(itemDict); - var highestIndex = A3( - _elm_lang$core$Basics$flip, - F2( - function (x, y) { - return x - y; - }), - numberOfCarouselItems, - _elm_lang$core$List$length(itemList)); - var currentItemIndex = A3( - _elm_lang$core$List$foldl, - F2( - function (_p1, result) { - var _p2 = _p1; - return _elm_lang$core$Native_Utils.eq(itemId, _p2._1) ? _p2._0 : result; - }), - 0, - A2( - _elm_lang$core$List$indexedMap, - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - A2(_elm_lang$core$List$map, _elm_lang$core$Tuple$first, itemList))); - return function (index) { - return (_elm_lang$core$Native_Utils.cmp(index, highestIndex) > 0) ? highestIndex : index; - }( - function (index) { - return (_elm_lang$core$Native_Utils.cmp(index, 2) < 0) ? 0 : (index - 2); - }(currentItemIndex)); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$updateFromPusher = F9( - function (currentDate, backendUrl, _p3, accessToken, user, modelBackend, saleUuid, event, model) { - var _p4 = _p3; - var noChange = { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - var _p5 = event.data; - switch (_p5.ctor) { - case 'ConnectedUsersSaleHeartbeat': - return noChange; - case 'ConnectedUsersSalePlaceBidMouseEnter': - return noChange; - case 'ConnectedUsersSalePlaceBidMouseLeave': - return noChange; - case 'SaleUpdate': - var _p6 = _p5._0; - var cmd = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (existingSale) { - return _elm_lang$core$Native_Utils.eq(existingSale.session, _p6.session) ? _elm_lang$core$Platform_Cmd$none : _Gizra$circuit_bid$Ports$delayedReload( - {ctor: '_Tuple0'}); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - var newSale = A2( - _krisajenkins$remotedata$RemoteData$map, - function (sale) { - return _elm_lang$core$Native_Utils.update( - sale, - {status: _p6.status, label: _p6.label, pausedMessage: _p6.pausedMessage, item: _p6.item, autoClerk: _p6.autoClerk}); - }, - model.sale); - var newCarouselPosition = A3(_Gizra$circuit_bid$Pages_Sale_Update$calculateCarouselPosition, model.numberOfCarouselItems, _p6.item, model.item.items); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - sale: newSale, - nextBidIncrements: {ctor: '[]'}, - carouselPosition: newCarouselPosition, - asyncGoingItemStatus: false - }), - _1: cmd, - _2: {ctor: '[]'} - }; - case 'ItemUpdate': - var item = A4(_Gizra$circuit_bid$ItemManager_Utils$insertCalcultedItem, user, _p5._0, _p5._1, model.item); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: item, asyncGoingItemStatus: false}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'MessageCreate': - var publicMessages = A2( - _krisajenkins$remotedata$RemoteData$map, - A2(_Gizra$circuit_bid$Message_Update$addMessage, _p5._0, _p5._1), - model.publicMessages); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {publicMessages: publicMessages}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'BidDelete': - var _p10 = _p5._1; - var _p9 = _p5._2; - var _p8 = _p5._3; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (sale) { - var ownBidRevokedAlert = function () { - var _p7 = _p5._0; - if (_p7.ctor === 'Delete') { - return _Gizra$circuit_bid$Alert$OwnBidRevoked; - } else { - return _Gizra$circuit_bid$Alert$OwnBidRevokedToFloor; - } - }(); - var item = A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p10, _p9, _p8, model.item); - var alert = A2( - _elm_lang$core$Maybe$map, - function (deletedBid) { - return A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, sale.uuid, deletedBid) ? { - ctor: '_Tuple2', - _0: currentDate, - _1: ownBidRevokedAlert(_p8.amount) - } : { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$OtherBidRevoked(_p8.amount) - }; - }, - A3(_Gizra$circuit_bid$ItemManager_Utils$getBid, _p10, _p9, item)); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: item, alert: alert}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - case 'BidUpdate': - var item = A4(_Gizra$circuit_bid$ItemManager_Utils$updateBidDict, _p5._0, _p5._1, _p5._2, model.item); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: item}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - case 'BidderInfoUpdate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgBidderInfo( - A2( - _Gizra$circuit_bid$Backend_BidderInfo_Model$Update, - saleUuid, - {ctor: '_Tuple2', _0: _p5._0._0, _1: _p5._0._1}))), - _1: {ctor: '[]'} - } - }; - case 'CreditRequestCreate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleCreate( - _krisajenkins$remotedata$RemoteData$Success( - {ctor: '_Tuple2', _0: _p5._0._0, _1: _p5._0._1})))), - _1: {ctor: '[]'} - } - }; - case 'CreditRequestUpdate': - return { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2( - _Gizra$circuit_bid$Backend_CreditRequest_Model$HandleUpdate, - _Gizra$elm_storage_key$StorageKey$Existing(_p5._0._0), - _krisajenkins$remotedata$RemoteData$Success(_p5._0._1)))), - _1: {ctor: '[]'} - } - }; - case 'LiveQueuePostExecute': - var _p17 = _p5._0; - var verifyQueuedTaskAndProcess = function (result) { - var _p11 = model.queuedRequestState; - if (_p11.ctor === 'QueuedRequestQueued') { - return _elm_lang$core$Native_Utils.eq(_p11._0, _p17.taskId) ? result : noChange; - } else { - return noChange; - } - }; - var _p12 = _p17.result; - _v6_2: - do { - switch (_p12.ctor) { - case 'LiveQueuePostExecutePlaceBidSuccess': - if (_p12._1.ctor === '_Tuple2') { - var _p14 = _p12._1._1; - return verifyQueuedTaskAndProcess( - A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (sale) { - var alert = function () { - if (A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, sale.uuid, _p14)) { - var _p13 = _p14.status; - switch (_p13.ctor) { - case 'Accepted': - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$BidAccepted(_p14.amount) - }); - case 'Rejected': - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$BidRejected(_p14.amount) - }); - case 'RejectedCreditLimit': - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$BidRejectedCreditLimit(_p14.amount) - }); - case 'RejectedBidderMax': - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$BidRejectedBidderMaxLimit(_p14.amount) - }); - case 'Outbid': - return _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$Outbid(_p14.amount) - }); - default: - return _elm_lang$core$Maybe$Nothing; - } - } else { - return _elm_lang$core$Maybe$Nothing; - } - }(); - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted, - alert: alert, - nextBidIncrements: {ctor: '[]'} - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))); - } else { - break _v6_2; - } - case 'LiveQueuePostExecutePlaceBidFailure': - var _p16 = _p12._1; - var alert = A2(_elm_lang$core$String$startsWith, 'Cannot have duplicated amount', _p16) ? A2( - _elm_lang$core$Maybe$map, - function (amount) { - return { - ctor: '_Tuple2', - _0: currentDate, - _1: _Gizra$circuit_bid$Alert$BidRejectedDuplicateAmount( - _Gizra$circuit_bid$Amount$Amount(amount)) - }; - }, - A2( - _elm_lang$core$Maybe$andThen, - function (_p15) { - return _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p15)); - }, - _elm_lang$core$List$head( - A2( - _elm_lang$core$List$drop, - 4, - _elm_lang$core$String$words(_p16))))) : model.alert; - return verifyQueuedTaskAndProcess( - { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestFailed( - _elm_lang$http$Http$BadUrl(_p16)), - alert: alert - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }); - default: - break _v6_2; - } - } while(false); - return noChange; - case 'ClerkQueuedBidsUpdate': - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {clerkHighestQueuedBidData: _p5._0}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - default: - return { - ctor: '_Tuple3', - _0: _elm_lang$core$Native_Utils.update( - model, - {asyncGoingItemStatus: true}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }; - } - }); -var _Gizra$circuit_bid$Pages_Sale_Update$decrementItemSlider = F2( - function (itemManager, carouselPosition) { - var lengthOfItems = _Gizra$elm_dictlist$EveryDictList$size(itemManager.items); - return A2( - _elm_lang$core$Basics$max, - 0, - A3( - _elm_lang$core$Basics$flip, - F2( - function (x, y) { - return x - y; - }), - 1, - A2(_elm_lang$core$Basics$min, lengthOfItems, carouselPosition))); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$incrementItemSlider = F2( - function (itemManager, carouselPosition) { - var indexOfLastItem = A2( - _elm_lang$core$Basics$max, - 0, - A3( - _elm_lang$core$Basics$flip, - F2( - function (x, y) { - return x - y; - }), - 1, - _Gizra$elm_dictlist$EveryDictList$size(itemManager.items))); - return A2( - _elm_lang$core$Basics$min, - indexOfLastItem, - A2( - F2( - function (x, y) { - return x + y; - }), - 1, - carouselPosition)); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$fetchCurrenciesInfoFromJson = F2( - function (language, sale) { - return A2( - _elm_lang$core$List$map, - function (_p18) { - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Sale_Decoder$decodeCurrenciesInfoFromJson, - _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedCurrenciesInfoFromJson, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$Sale_Decoder$decodeCurrenciesInfoFromJson), - _lukewestby$elm_http_builder$HttpBuilder$get(_p18))); - }, - A2(_Gizra$circuit_bid$Sale_Utils$constructPublicUrls, language, sale)); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$fetchSaleTitleFromJson = F2( - function (language, sale) { - return A2( - _elm_lang$core$List$map, - function (_p19) { - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Sale_Decoder$decodeSaleTitleFromJson, - _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedSaleTitleFromJson, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withExpect, - _elm_lang$http$Http$expectJson(_Gizra$circuit_bid$Sale_Decoder$decodeSaleTitleFromJson), - _lukewestby$elm_http_builder$HttpBuilder$get(_p19))); - }, - A2(_Gizra$circuit_bid$Sale_Utils$constructPublicUrls, language, sale)); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$fetchSale = F3( - function (backendUrl, accessToken, saleUuid) { - return A3( - _Gizra$circuit_bid$Utils_WebData$sendWithHandler, - _Gizra$circuit_bid$Sale_Decoder$decodeSaleAndLotMapFromResponse, - _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedSale, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withQueryParams, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'access_token', _1: accessToken}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loadByFieldName', _1: 'uuid'}, - _1: {ctor: '[]'} - } - }, - _lukewestby$elm_http_builder$HttpBuilder$get( - A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/api/sales/', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(saleUuid)))))); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$sendConnectedUserEvent = F5( - function (_p20, user, modelBackend, webData, event) { - var _p21 = _p20; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$core$Platform_Cmd$none, - function (sale) { - var _p22 = sale.status; - if (_p22.ctor === 'LiveAuctionOpen') { - return _Gizra$circuit_bid$User_Utils$isAnonymous(user) ? _elm_lang$core$Platform_Cmd$none : A2( - _lukewestby$elm_http_builder$HttpBuilder$send, - _Gizra$circuit_bid$Pages_Sale_Model$HandleConnectedUserEvent, - A2( - _lukewestby$elm_http_builder$HttpBuilder$withJsonBody, - A5(_Gizra$circuit_bid$Backend_ConnectedUser_Encoder$encodeConnectedUserEvent, _p21._1, event, user, modelBackend, sale.uuid), - _lukewestby$elm_http_builder$HttpBuilder$post(_p21._0))); - } else { - return _elm_lang$core$Platform_Cmd$none; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(webData)); - }); -var _Gizra$circuit_bid$Pages_Sale_Update$update = function (currentDate) { - return function (backendUrl) { - return function (_p23) { - return function (isDebug) { - return function (accessToken) { - return function (language) { - return function (user) { - return function (modelBackend) { - return function (msg) { - return function (model) { - update: - while (true) { - var _p24 = _p23; - var _p53 = _p24._0; - var _p52 = _p24._1; - var noChange = { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - var _p25 = msg; - switch (_p25.ctor) { - case 'BidAmountIncrement': - var newModel = _elm_lang$core$Native_Utils.update( - model, - { - nextBidIncrements: {ctor: '::', _0: _p25._0, _1: model.nextBidIncrements} - }); - return { - ctor: '_Tuple4', - _0: newModel, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'BidAmountDecrement': - var newModel = _elm_lang$core$Native_Utils.update( - model, - { - nextBidIncrements: A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - _elm_lang$core$List$tail(model.nextBidIncrements)) - }); - return { - ctor: '_Tuple4', - _0: newModel, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'CreditRequestSave': - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2(_Gizra$circuit_bid$Backend_CreditRequest_Model$Save, _p25._0, _p25._1))), - _1: {ctor: '[]'} - } - }; - case 'CreditRequestSetAmount': - var _p29 = _p25._0; - var _p28 = _p25._1; - var maybeInt = _elm_lang$core$Result$toMaybe( - _elm_lang$core$String$toInt(_p28)); - var _p26 = maybeInt; - if (_p26.ctor === 'Just') { - var _p27 = _p26._0; - return ((_elm_lang$core$Native_Utils.cmp(_p27, 0) > 0) && (_elm_lang$core$Native_Utils.cmp(_p27, _Gizra$circuit_bid$Utils_Number$maximalInt) < 1)) ? { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2(_Gizra$circuit_bid$Backend_CreditRequest_Model$SetAmount, _p29, _p27))), - _1: {ctor: '[]'} - } - } : noChange; - } else { - return _elm_lang$core$Native_Utils.eq(_p28, '') ? { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$MsgCreditRequest( - A2(_Gizra$circuit_bid$Backend_CreditRequest_Model$SetAmount, _p29, 0))), - _1: {ctor: '[]'} - } - } : noChange; - } - case 'ConnectedUserHeartbeat': - return { - ctor: '_Tuple4', - _0: model, - _1: A5( - _Gizra$circuit_bid$Pages_Sale_Update$sendConnectedUserEvent, - {ctor: '_Tuple2', _0: _p53, _1: _p52}, - user, - modelBackend, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$HeartBeat), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'FetchItems': - var fetchItemsByUserTypeCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Platform_Cmd$map(_Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager), - A2( - _elm_lang$core$Maybe$map, - A6(_Gizra$circuit_bid$ItemManager_Update$fetchItemsByUserType, currentDate, backendUrl, isDebug, accessToken, language, user), - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.uuid; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))))); - var fetchCurrentItemsCmd = A2( - _elm_lang$core$Maybe$withDefault, - _elm_lang$core$Platform_Cmd$none, - A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$Platform_Cmd$map(_Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager), - A2( - _elm_lang$core$Maybe$map, - A6(_Gizra$circuit_bid$ItemManager_Update$fetchItems, currentDate, backendUrl, isDebug, accessToken, language, user), - A2( - _elm_lang$core$Maybe$map, - _Gizra$circuit_bid$ItemManager_Utils$getCurrentAndNextItemIds(model.item), - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.item; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)))))); - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: fetchCurrentItemsCmd, - _1: { - ctor: '::', - _0: fetchItemsByUserTypeCmd, - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'HandleBidPlaced': - if (_p25._1.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestQueued(_p25._1._0) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$NoQueuedRequest, alert: _elm_lang$core$Maybe$Nothing}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale.Update', 'HandleBidPlaced', _p25._1._0), - _3: {ctor: '[]'} - }; - } - case 'HandleConnectedUserEvent': - if (_p25._0.ctor === 'Ok') { - return noChange; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale.Update', 'HandleConnectedUserEvent', _p25._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedSale': - if (_p25._0.ctor === 'Ok') { - var _p30 = _p25._0._0._0; - var itemManager = _Gizra$circuit_bid$ItemManager_Utils$emptyItemManagerFromLotMap(_p25._0._0._1); - return A3( - _Gizra$circuit_bid$Utils_Update$sequenceExtra, - A8( - _Gizra$circuit_bid$Pages_Sale_Update$update, - currentDate, - backendUrl, - {ctor: '_Tuple2', _0: _p53, _1: _p52}, - isDebug, - accessToken, - language, - user, - modelBackend), - { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager( - _Gizra$circuit_bid$ItemManager_Model$FetchAllBySale( - {ctor: '_Tuple2', _0: _p30.uuid, _1: _p30})), - _1: {ctor: '[]'} - }, - { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: itemManager, - sale: _krisajenkins$remotedata$RemoteData$Success(_p30) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _elm_lang$core$Maybe$Nothing, - _3: { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$MsgBackend( - _Gizra$circuit_bid$Backend_Model$FetchSite(_p30.site)), - _1: {ctor: '[]'} - } - }); - } else { - var _p31 = _p25._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - sale: _krisajenkins$remotedata$RemoteData$Failure(_p31) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale', 'HandleFetchedSale', _p31), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedSaleTitleFromJson': - if (_p25._0.ctor === 'Ok') { - var updatedSale = A2( - _elm_lang$core$Maybe$withDefault, - model.sale, - A2( - _elm_lang$core$Maybe$andThen, - function (sale) { - return _elm_lang$core$Maybe$Just( - _krisajenkins$remotedata$RemoteData$Success( - _elm_lang$core$Native_Utils.update( - sale, - {label: _p25._0._0}))); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {sale: updatedSale}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale', 'HandleFetchedSaleTitleFromJson', _p25._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedCurrenciesInfoFromJson': - if (_p25._0.ctor === 'Ok') { - var updatedSale = A2( - _elm_lang$core$Maybe$withDefault, - model.sale, - A2( - _elm_lang$core$Maybe$andThen, - function (sale) { - return _elm_lang$core$Maybe$Just( - _krisajenkins$remotedata$RemoteData$Success( - _elm_lang$core$Native_Utils.update( - sale, - {currenciesInfo: _p25._0._0}))); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {sale: updatedSale}), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale', 'HandleFetchedCurrenciesInfoFromJson', _p25._0._0), - _3: {ctor: '[]'} - }; - } - case 'HandleFetchedMessages': - if (_p25._0.ctor === 'Ok') { - var _p32 = _p25._0._0; - var itemIds = _Gizra$circuit_bid$Message_Utils$getItemsIds(_p32); - var _v13 = currentDate, - _v14 = backendUrl, - _v15 = {ctor: '_Tuple2', _0: _p53, _1: _p52}, - _v16 = isDebug, - _v17 = accessToken, - _v18 = language, - _v19 = user, - _v20 = modelBackend, - _v21 = _Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager( - _Gizra$circuit_bid$ItemManager_Model$FetchCalculatedItems(itemIds)), - _v22 = _elm_lang$core$Native_Utils.update( - model, - { - publicMessages: _krisajenkins$remotedata$RemoteData$Success(_p32) - }); - currentDate = _v13; - backendUrl = _v14; - _p23 = _v15; - isDebug = _v16; - accessToken = _v17; - language = _v18; - user = _v19; - modelBackend = _v20; - msg = _v21; - model = _v22; - continue update; - } else { - var _p33 = _p25._0._0; - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - publicMessages: _krisajenkins$remotedata$RemoteData$Failure(_p33) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale.Update', 'HandleFetchedMessages', _p33), - _3: {ctor: '[]'} - }; - } - case 'HandleUpdatedCurrentPrice': - if (_p25._1.ctor === 'Ok') { - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - { - item: A3(_Gizra$circuit_bid$ItemManager_Utils$updateCurrentPrice, _p25._0, _p25._1._0, model.item) - }), - _1: _elm_lang$core$Platform_Cmd$none, - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: A3(_Gizra$circuit_bid$Error_Utils$httpError, 'Pages.Sale.Update', 'HandleUpdatedCurrentPrice', _p25._1._0), - _3: {ctor: '[]'} - }; - } - case 'HandlePusherEvent': - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (sale) { - var _p34 = function () { - var _p35 = _p25._0; - if (_p35.ctor === 'Ok') { - var alert = A2( - _elm_lang$core$Maybe$andThen, - function (_p36) { - var _p37 = _p36; - var _p38 = _p37._1; - if (_p38.ctor === 'BidAccepted') { - return _elm_lang$core$Maybe$Nothing; - } else { - return (_elm_lang$core$Native_Utils.cmp( - _elm_lang$core$Date$toTime(currentDate) - _elm_lang$core$Date$toTime(_p37._0), - 3 * 1000) < 0) ? model.alert : _elm_lang$core$Maybe$Nothing; - } - }, - model.alert); - return { - ctor: '_Tuple2', - _0: A9( - _Gizra$circuit_bid$Pages_Sale_Update$updateFromPusher, - currentDate, - backendUrl, - {ctor: '_Tuple2', _0: _p53, _1: _p52}, - accessToken, - user, - modelBackend, - sale.uuid, - _p35._0, - _elm_lang$core$Native_Utils.update( - model, - {alert: alert})), - _1: _elm_lang$core$Maybe$Nothing - }; - } else { - return { - ctor: '_Tuple2', - _0: { - ctor: '_Tuple3', - _0: model, - _1: _elm_lang$core$Platform_Cmd$none, - _2: {ctor: '[]'} - }, - _1: A3(_Gizra$circuit_bid$Error_Utils$plainError, 'Pages.Sale.Update', 'HandlePusherEvent', _p35._0) - }; - } - }(); - var newModel = _p34._0._0; - var cmd = _p34._0._1; - var appMsgs = _p34._0._2; - var maybeError = _p34._1; - return {ctor: '_Tuple4', _0: newModel, _1: cmd, _2: maybeError, _3: appMsgs}; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - case 'ItemsNext': - var nextCarouselPosition = A2(_Gizra$circuit_bid$Pages_Sale_Update$incrementItemSlider, model.item, model.carouselPosition); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {carouselPosition: nextCarouselPosition}), - _1: A3(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem, user, model, _Gizra$circuit_bid$Pages_Sale_Keen$EventSliderNextItem), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'ItemsPrevious': - var nextCarouselPosition = A2(_Gizra$circuit_bid$Pages_Sale_Update$decrementItemSlider, model.item, model.carouselPosition); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {carouselPosition: nextCarouselPosition}), - _1: A3(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem, user, model, _Gizra$circuit_bid$Pages_Sale_Keen$EventSliderPreviousItem), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'MsgItemManager': - var _p45 = _p25._0; - var _p39 = function () { - var _p40 = _p45; - if (_p40.ctor === 'FetchAllBySale') { - var _p41 = model.sale; - if (_p41.ctor === 'Success') { - var _p42 = _p41._0; - return { - ctor: '_Tuple2', - _0: model.publicMessages, - _1: _elm_lang$core$Platform_Cmd$batch( - A2( - _elm_lang$core$Basics_ops['++'], - A2(_Gizra$circuit_bid$Pages_Sale_Update$fetchSaleTitleFromJson, language, _p42), - A2(_Gizra$circuit_bid$Pages_Sale_Update$fetchCurrenciesInfoFromJson, language, _p42))) - }; - } else { - return {ctor: '_Tuple2', _0: model.publicMessages, _1: _elm_lang$core$Platform_Cmd$none}; - } - } else { - if (_elm_lang$core$Native_Utils.eq(model.publicMessages, _krisajenkins$remotedata$RemoteData$NotAsked)) { - var _p43 = _krisajenkins$remotedata$RemoteData$toMaybe(model.sale); - if (_p43.ctor === 'Just') { - return A2( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }), - _krisajenkins$remotedata$RemoteData$Loading, - A2( - _elm_lang$core$Task$attempt, - _Gizra$circuit_bid$Pages_Sale_Model$HandleFetchedMessages, - A3(_Gizra$circuit_bid$Message_Update$fetchMessages, backendUrl, accessToken, _p43._0.uuid))); - } else { - return {ctor: '_Tuple2', _0: model.publicMessages, _1: _elm_lang$core$Platform_Cmd$none}; - } - } else { - return {ctor: '_Tuple2', _0: model.publicMessages, _1: _elm_lang$core$Platform_Cmd$none}; - } - } - }(); - var publicMessages = _p39._0; - var cmd = _p39._1; - var _p44 = A8(_Gizra$circuit_bid$ItemManager_Update$update, currentDate, backendUrl, isDebug, accessToken, language, user, _p45, model.item); - var item = _p44._0; - var itemManagerCmds = _p44._1; - var maybeError = _p44._2; - var appMsgs = _p44._3; - var newCarouselPosition = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - 0, - function (itemId) { - return A3(_Gizra$circuit_bid$Pages_Sale_Update$calculateCarouselPosition, model.numberOfCarouselItems, itemId, item.items); - }, - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.item; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale))); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {item: item, carouselPosition: newCarouselPosition, publicMessages: publicMessages}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmd, - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Platform_Cmd$map, _Gizra$circuit_bid$Pages_Sale_Model$MsgItemManager, itemManagerCmds), - _1: {ctor: '[]'} - } - }), - _2: maybeError, - _3: appMsgs - }; - case 'MsgLogin': - var _p46 = A3(_Gizra$circuit_bid$Login_Update$update, backendUrl, _p25._0, model.login); - var val = _p46._0; - var cmds = _p46._1; - var maybeLoginError = _p46._2; - var maybeAuthenticationDetails = _p46._3; - var maybeError = A2( - _elm_lang$core$Maybe$andThen, - function (error) { - var _p47 = error.error; - if (_p47.ctor === 'Http') { - return _Gizra$circuit_bid$Error_Utils$is401(_p47._0) ? _Gizra$circuit_bid$Error_Utils$noError : maybeLoginError; - } else { - return maybeLoginError; - } - }, - maybeLoginError); - var appMsgs = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - {ctor: '[]'}, - function (_p48) { - var _p49 = _p48; - return { - ctor: '::', - _0: _Gizra$circuit_bid$App_Model$SetAuthentication( - {ctor: '_Tuple2', _0: _p49._0, _1: _p49._1}), - _1: {ctor: '[]'} - }; - }, - maybeAuthenticationDetails); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {login: val}), - _1: A2(_elm_lang$core$Platform_Cmd$map, _Gizra$circuit_bid$Pages_Sale_Model$MsgLogin, cmds), - _2: maybeError, - _3: appMsgs - }; - case 'PlaceBid': - var _p51 = _p25._0; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (sale) { - var _p50 = user; - if (_p50.ctor === 'Authenticated') { - var keenCmds = A3(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem, user, model, _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBid); - var downgradedUser = _elm_lang$core$Native_Utils.update( - _p50._0, - {userType: _Gizra$circuit_bid$User_Model$Bidder}); - var cmd = A9( - _Gizra$circuit_bid$Bid_Update$placeBid, - backendUrl, - accessToken, - _Gizra$circuit_bid$User_Model$Authenticated(downgradedUser), - modelBackend, - sale.uuid, - _p51, - _Gizra$circuit_bid$Bid_Model$Internet, - _p25._1, - _Gizra$circuit_bid$Pages_Sale_Model$HandleBidPlaced(_p51)); - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {queuedRequestState: _Gizra$circuit_bid$QueuedRequest_Model$QueuedRequestCompleted}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmd, - _1: { - ctor: '::', - _0: keenCmds, - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } else { - return noChange; - } - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.sale)); - case 'PlaceBidMouseEnter': - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem, user, model, _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBidMouseEnter), - _1: { - ctor: '::', - _0: A5( - _Gizra$circuit_bid$Pages_Sale_Update$sendConnectedUserEvent, - {ctor: '_Tuple2', _0: _p53, _1: _p52}, - user, - modelBackend, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidMouseEnter), - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - case 'PlaceBidMouseLeave': - return { - ctor: '_Tuple4', - _0: model, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Sale_Keen$prepareEventWithItem, user, model, _Gizra$circuit_bid$Pages_Sale_Keen$EventPlaceBidMouseLeave), - _1: { - ctor: '::', - _0: A5( - _Gizra$circuit_bid$Pages_Sale_Update$sendConnectedUserEvent, - {ctor: '_Tuple2', _0: _p53, _1: _p52}, - user, - modelBackend, - model.sale, - _Gizra$circuit_bid$Backend_ConnectedUser_Model$PlaceBidMouseLeave), - _1: {ctor: '[]'} - } - }), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - default: - return { - ctor: '_Tuple4', - _0: _elm_lang$core$Native_Utils.update( - model, - {alert: _elm_lang$core$Maybe$Nothing, sale: _krisajenkins$remotedata$RemoteData$Loading}), - _1: A3(_Gizra$circuit_bid$Pages_Sale_Update$fetchSale, backendUrl, accessToken, _p25._0), - _2: _Gizra$circuit_bid$Error_Utils$noError, - _3: {ctor: '[]'} - }; - } - } - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; - -var _Gizra$circuit_bid$Pusher_Decoder$decodeConnectedUserData = A2( - _elm_lang$core$Json_Decode$field, - 'data', - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'clientTimestamp', - _Gizra$circuit_bid$Utils_Json$decodeDate, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'bidderNumber', - _Gizra$elm_essentials$Gizra_Json$decodeInt, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$ConnectedUserData)))); -var _Gizra$circuit_bid$Pusher_Decoder$convertTimestampFromServer = function (date) { - return _elm_lang$core$Date$fromTime( - A2( - F2( - function (x, y) { - return x * y; - }), - 1000, - _elm_lang$core$Date$toTime(date))); -}; -var _Gizra$circuit_bid$Pusher_Decoder$decodeMessageData = A2( - _elm_lang$core$Json_Decode$map, - function (message) { - return _elm_lang$core$Native_Utils.update( - message, - { - timestamp: _Gizra$circuit_bid$Pusher_Decoder$convertTimestampFromServer(message.timestamp) - }); - }, - A2(_elm_lang$core$Json_Decode$field, 'data', _Gizra$circuit_bid$Message_Decoder$decodeMessage)); -var _Gizra$circuit_bid$Pusher_Decoder$decodeBidUpdateData = function (user) { - return A2( - _elm_lang$core$Json_Decode$field, - 'data', - _Gizra$circuit_bid$Bid_Decoder$decodeBid(user)); -}; -var _Gizra$circuit_bid$Pusher_Decoder$decodeSaleUpdateData = A2(_elm_lang$core$Json_Decode$field, 'data', _Gizra$circuit_bid$Sale_Decoder$decodeSaleUpdate); -var _Gizra$circuit_bid$Pusher_Decoder$decodeCalculatedItemUpdateData = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$field, - 'data', - A2(_Gizra$circuit_bid$Item_Decoder$decodeCalculatedItem, currentDate, user)); - }); -var _Gizra$circuit_bid$Pusher_Decoder$decodeDeletionType = A2( - _elm_lang$core$Json_Decode$andThen, - function (changedToFloor) { - var _p0 = changedToFloor; - if (_p0 === false) { - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Pusher_Model$Delete); - } else { - return _elm_lang$core$Json_Decode$succeed(_Gizra$circuit_bid$Pusher_Model$ChangedToFloor); - } - }, - _elm_lang$core$Json_Decode$bool); -var _Gizra$circuit_bid$Pusher_Decoder$decodeLiveQueuePostExecuteResult = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$field, - 'data', - A2( - _elm_lang$core$Json_Decode$andThen, - function (label) { - var _p1 = label; - switch (_p1) { - case 'hedley_live_queue_place_bid': - return A2( - _elm_lang$core$Json_Decode$andThen, - function (taskId) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p2 = status; - switch (_p2) { - case 'Processed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecutePlaceBidSuccess(taskId), - A2( - _elm_lang$core$Json_Decode$field, - 'result', - _Gizra$circuit_bid$Bid_Decoder$decodeBidPairFromLiveQueue(user))); - case 'Failed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecutePlaceBidFailure(taskId), - A2(_elm_lang$core$Json_Decode$field, 'result', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], status, ' is not a recognized status of LiveQueuePostExecutePlaceBid result.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - }, - A2(_elm_lang$core$Json_Decode$field, 'task_id', _elm_lang$core$Json_Decode$string)); - case 'hedley_live_queue_last_to_floor': - return A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p3 = status; - switch (_p3) { - case 'Processed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteLastToFloorSuccess, - A2( - _elm_lang$core$Json_Decode$field, - 'result', - A2(_Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemFromLiveQueue, currentDate, user))); - case 'Failed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteLastToFloorFailure, - A2(_elm_lang$core$Json_Decode$field, 'result', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], status, ' is not a recognized status of LiveQueuePostExecuteLastToFloor result.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - case 'hedley_live_queue_update_item_status': - return A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p4 = status; - switch (_p4) { - case 'Processed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateItemStatusSuccess, - A2( - _elm_lang$core$Json_Decode$field, - 'result', - A2(_Gizra$circuit_bid$ItemManager_Decoder$decodeCalculatedItemFromLiveQueue, currentDate, user))); - case 'Failed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateItemStatusFailure, - A2(_elm_lang$core$Json_Decode$field, 'result', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], status, ' is not a recognized status of LiveQueuePostExecuteUpdateItemStatus result.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - case 'hedley_live_queue_update_sale_item': - return A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p5 = status; - switch (_p5) { - case 'Processed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleItemSuccess, - A2(_elm_lang$core$Json_Decode$field, 'result', _Gizra$circuit_bid$Sale_Decoder$decodeSaleFromLiveQueue)); - case 'Failed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleItemFailure, - A2(_elm_lang$core$Json_Decode$field, 'result', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], status, ' is not a recognized status of LiveQueuePostExecuteUpdateSaleItem result.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - case 'hedley_live_queue_update_sale_session': - return A2( - _elm_lang$core$Json_Decode$andThen, - function (status) { - var _p6 = status; - switch (_p6) { - case 'Processed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleSessionSuccess, - A2(_elm_lang$core$Json_Decode$field, 'result', _Gizra$circuit_bid$Sale_Decoder$decodeSaleFromLiveQueue)); - case 'Failed': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteUpdateSaleSessionFailure, - A2(_elm_lang$core$Json_Decode$field, 'result', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], status, ' is not a recognized status of LiveQueuePostExecuteUpdateSaleSession result.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'status', _elm_lang$core$Json_Decode$string)); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], label, ' is not a recognized label of LiveQueuePostExecuteResult.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'label', _elm_lang$core$Json_Decode$string))); - }); -var _Gizra$circuit_bid$Pusher_Decoder$decodeLiveQueuePostExecuteData = F2( - function (currentDate, user) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodeLiveQueuePostExecuteResult, currentDate, user), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$string, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecuteData))); - }); -var _Gizra$circuit_bid$Pusher_Decoder$decodeClerkQueuedBidsUpdateData = A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'next_bid', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$maybe(_elm_lang$core$Json_Decode$int), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'bid', - _1: {ctor: '[]'} - } - }, - _elm_lang$core$Json_Decode$maybe(_elm_lang$core$Json_Decode$int), - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdateData))); -var _Gizra$circuit_bid$Pusher_Decoder$decodePusherEventData = F2( - function (currentDate, user) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (eventType) { - var _p7 = eventType; - switch (_p7) { - case 'bid__delete': - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Pusher_Decoder$decodeBidUpdateData(user), - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBidKey), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'item', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'changed_to_floor', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Pusher_Decoder$decodeDeletionType, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$BidDelete))))); - case 'bid__update': - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Pusher_Decoder$decodeBidUpdateData(user), - A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Bid_Decoder$decodeBidKey), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'item', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$BidUpdate)))); - case 'bidder_info__update': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$BidderInfoUpdate, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'data', - _Gizra$circuit_bid$Backend_BidderInfo_Decoder$decodeBidderInfo, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }))))); - case 'credit_request__create': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$CreditRequestCreate, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'data', - _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeCreditRequest, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }))))); - case 'credit_request__update': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$CreditRequestUpdate, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$required, - 'data', - _Gizra$circuit_bid$Backend_CreditRequest_Decoder$decodeCreditRequest, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode( - F2( - function (v0, v1) { - return {ctor: '_Tuple2', _0: v0, _1: v1}; - }))))); - case 'connected_users__sale__heartbeat': - return A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSaleHeartbeat, _Gizra$circuit_bid$Pusher_Decoder$decodeConnectedUserData); - case 'connected_users__sale__place_bid__mouse_enter': - return A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSalePlaceBidMouseEnter, _Gizra$circuit_bid$Pusher_Decoder$decodeConnectedUserData); - case 'connected_users__sale__place_bid__mouse_leave': - return A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pusher_Model$ConnectedUsersSalePlaceBidMouseLeave, _Gizra$circuit_bid$Pusher_Decoder$decodeConnectedUserData); - case 'item__update': - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodeCalculatedItemUpdateData, currentDate, user), - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'uuid', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Backend_Decoder$decodeItemUuid, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$ItemUpdate))); - case 'message__create': - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - _Gizra$circuit_bid$Pusher_Decoder$decodeMessageData, - A3( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$requiredAt, - { - ctor: '::', - _0: 'data', - _1: { - ctor: '::', - _0: 'id', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Message_Decoder$decodeMessageId, - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$MessageCreate))); - case 'sale__update': - return A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pusher_Model$SaleUpdate, _Gizra$circuit_bid$Pusher_Decoder$decodeSaleUpdateData); - case 'livequeue__post_execute': - return A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pusher_Model$LiveQueuePostExecute, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodeLiveQueuePostExecuteData, currentDate, user)); - case 'clerk__sale__queued_bids_update': - return A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pusher_Model$ClerkQueuedBidsUpdate, _Gizra$circuit_bid$Pusher_Decoder$decodeClerkQueuedBidsUpdateData); - case 'clerk__sale__active_to_going_update': - return _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$ClerkActiveToGoingUpdate); - default: - return _elm_lang$core$Json_Decode$fail( - A2(_elm_lang$core$Basics_ops['++'], eventType, ' is not a recognized \'type\' for PusherEventData.')); - } - }, - A2(_elm_lang$core$Json_Decode$field, 'eventType', _elm_lang$core$Json_Decode$string)); - }); -var _Gizra$circuit_bid$Pusher_Decoder$decodePusherEvent = F2( - function (currentDate, user) { - return A2( - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$custom, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodePusherEventData, currentDate, user), - _NoRedInk$elm_decode_pipeline$Json_Decode_Pipeline$decode(_Gizra$circuit_bid$Pusher_Model$PusherEvent)); - }); - -var _Gizra$circuit_bid$Pusher_Utils$getChannelNames = F2( - function (user, channel) { - var privateChannel = A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - {ctor: '[]'}, - user, - function (authUser) { - return { - ctor: '::', - _0: A2( - _elm_lang$core$Basics_ops['++'], - 'private-user-', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(authUser.uuid)), - _1: {ctor: '[]'} - }; - }); - var _p0 = channel; - if (_p0.ctor === 'Public') { - return A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _elm_lang$core$Basics_ops['++'], - 'sale-', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p0._0)), - _1: {ctor: '[]'} - }, - privateChannel); - } else { - return A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _elm_lang$core$Basics_ops['++'], - 'private-sale-', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p0._0)), - _1: {ctor: '[]'} - }, - privateChannel); - } - }); -var _Gizra$circuit_bid$Pusher_Utils$getClusterName = function (cluster) { - var _p1 = cluster; - switch (_p1.ctor) { - case 'ApSouthEast1': - return 'ap1'; - case 'EuWest1': - return 'eu'; - default: - return 'mt1'; - } -}; - -var _Gizra$circuit_bid$Pusher_Update$pusherLogin = _elm_lang$core$Native_Platform.outgoingPort( - 'pusherLogin', - function (v) { - return { - key: v.key, - cluster: v.cluster, - authEndpoint: v.authEndpoint, - channelNames: _elm_lang$core$Native_List.toArray(v.channelNames).map( - function (v) { - return v; - }), - eventNames: _elm_lang$core$Native_List.toArray(v.eventNames).map( - function (v) { - return v; - }) - }; - }); -var _Gizra$circuit_bid$Pusher_Update$pusherLogout = _elm_lang$core$Native_Platform.outgoingPort( - 'pusherLogout', - function (v) { - return null; - }); -var _Gizra$circuit_bid$Pusher_Update$update = F4( - function (backendUrl, user, msg, model) { - var _p0 = msg; - switch (_p0.ctor) { - case 'HandleError': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - { - errors: {ctor: '::', _0: _p0._0, _1: model.errors} - }), - _1: _elm_lang$core$Platform_Cmd$none - }; - case 'Login': - var _p2 = _p0._0; - var _p1 = _p0._1; - var pusherConfig = { - key: _p2.key, - cluster: _Gizra$circuit_bid$Pusher_Utils$getClusterName(_p2.cluster), - authEndpoint: A2( - _elm_lang$core$Basics_ops['++'], - backendUrl, - A2(_elm_lang$core$Basics_ops['++'], '/api/pusher_auth?access_token=', _p0._2._0)), - channelNames: A2(_Gizra$circuit_bid$Pusher_Utils$getChannelNames, user, _p1), - eventNames: _Gizra$circuit_bid$Pusher_Model$eventNames - }; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - { - currentChannel: _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: _p1, - _1: _Gizra$circuit_bid$User_Utils$isAuthenticated(user) - }) - }), - _1: _Gizra$circuit_bid$Pusher_Update$pusherLogin(pusherConfig) - }; - default: - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - {currentChannel: _elm_lang$core$Maybe$Nothing}), - _1: _Gizra$circuit_bid$Pusher_Update$pusherLogout( - {ctor: '_Tuple0'}) - }; - } - }); -var _Gizra$circuit_bid$Pusher_Update$pusherError = _elm_lang$core$Native_Platform.incomingPort( - 'pusherError', - A2( - _elm_lang$core$Json_Decode$andThen, - function (code) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (message) { - return _elm_lang$core$Json_Decode$succeed( - {code: code, message: message}); - }, - A2( - _elm_lang$core$Json_Decode$field, - 'message', - _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$null(_elm_lang$core$Maybe$Nothing), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, _elm_lang$core$Json_Decode$string), - _1: {ctor: '[]'} - } - }))); - }, - A2( - _elm_lang$core$Json_Decode$field, - 'code', - _elm_lang$core$Json_Decode$oneOf( - { - ctor: '::', - _0: _elm_lang$core$Json_Decode$null(_elm_lang$core$Maybe$Nothing), - _1: { - ctor: '::', - _0: A2(_elm_lang$core$Json_Decode$map, _elm_lang$core$Maybe$Just, _elm_lang$core$Json_Decode$int), - _1: {ctor: '[]'} - } - })))); -var _Gizra$circuit_bid$Pusher_Update$pusherState = _elm_lang$core$Native_Platform.incomingPort('pusherState', _elm_lang$core$Json_Decode$string); -var _Gizra$circuit_bid$Pusher_Update$pusherIncomingEvents = _elm_lang$core$Native_Platform.incomingPort('pusherIncomingEvents', _elm_lang$core$Json_Decode$value); - -var _Gizra$circuit_bid$App_Update$updateSubModel = F6( - function (subMsg, subModel, updateFunc, modelUpdateFunc, msg, model) { - var _p0 = A2(updateFunc, subMsg, subModel); - var val = _p0._0; - var subCmds = _p0._1; - var maybeError = _p0._2; - var appMsgs = _p0._3; - var appCmds = _elm_lang$core$List$isEmpty(appMsgs) ? _elm_lang$core$Platform_Cmd$none : _elm_lang$core$Platform_Cmd$batch( - A2( - _elm_lang$core$List$map, - function (msg) { - return A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed(msg)); - }, - appMsgs)); - var modelUpdated = A2(modelUpdateFunc, val, model); - var modelUpdatedWithError = A2(_Gizra$circuit_bid$App_Utils$handleErrors, maybeError, modelUpdated); - return { - ctor: '_Tuple2', - _0: modelUpdatedWithError, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: A2(_elm_lang$core$Platform_Cmd$map, msg, subCmds), - _1: { - ctor: '::', - _0: appCmds, - _1: {ctor: '[]'} - } - }) - }; - }); -var _Gizra$circuit_bid$App_Update$subscriptions = function (model) { - var saleSubs = function () { - var _p1 = {ctor: '_Tuple2', _0: model.activePage, _1: model.user}; - if (((_p1.ctor === '_Tuple2') && (_p1._0.ctor === 'Sale')) && (_p1._1.ctor === 'Just')) { - return A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesSale, - A2(_Gizra$circuit_bid$Pages_Sale_Update$subscriptions, _p1._1._0, model.pageSale)); - } else { - return _elm_lang$core$Platform_Sub$none; - } - }(); - var clerkSubs = function () { - var sub = A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesClerk, - _Gizra$circuit_bid$Pages_Clerk_Update$subscriptions(model.pageClerk)); - var _p2 = model.activePage; - switch (_p2.ctor) { - case 'SaleAuctioneer': - return sub; - case 'SaleClerk': - return sub; - default: - return _elm_lang$core$Platform_Sub$none; - } - }(); - var getUserAsRegularBidder = function (user) { - var _p3 = user; - if (_p3.ctor === 'Authenticated') { - return _Gizra$circuit_bid$User_Model$Authenticated( - _elm_lang$core$Native_Utils.update( - _p3._0, - {userType: _Gizra$circuit_bid$User_Model$Bidder})); - } else { - return user; - } - }; - var pusherSubs = function () { - var _p4 = {ctor: '_Tuple2', _0: model.activePage, _1: model.user}; - _v3_4: - do { - if ((_p4.ctor === '_Tuple2') && (_p4._1.ctor === 'Just')) { - switch (_p4._0.ctor) { - case 'Sale': - return A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesSale, - _Gizra$circuit_bid$Pusher_Update$pusherIncomingEvents( - function (_p5) { - return _Gizra$circuit_bid$Pages_Sale_Model$HandlePusherEvent( - A2( - _elm_lang$core$Json_Decode$decodeValue, - A2( - _Gizra$circuit_bid$Pusher_Decoder$decodePusherEvent, - model.currentDate, - getUserAsRegularBidder(_p4._1._0)), - _p5)); - })); - case 'SaleAuctioneer': - return A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesClerk, - _Gizra$circuit_bid$Pusher_Update$pusherIncomingEvents( - function (_p6) { - return _Gizra$circuit_bid$Pages_Clerk_Model$HandlePusherEvent( - A2( - _elm_lang$core$Json_Decode$decodeValue, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodePusherEvent, model.currentDate, _p4._1._0), - _p6)); - })); - case 'SaleClerk': - return A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesClerk, - _Gizra$circuit_bid$Pusher_Update$pusherIncomingEvents( - function (_p7) { - return _Gizra$circuit_bid$Pages_Clerk_Model$HandlePusherEvent( - A2( - _elm_lang$core$Json_Decode$decodeValue, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodePusherEvent, model.currentDate, _p4._1._0), - _p7)); - })); - case 'SaleRoom': - return A2( - _elm_lang$core$Platform_Sub$map, - _Gizra$circuit_bid$App_Model$MsgPagesSale, - _Gizra$circuit_bid$Pusher_Update$pusherIncomingEvents( - function (_p8) { - return _Gizra$circuit_bid$Pages_Sale_Model$HandlePusherEvent( - A2( - _elm_lang$core$Json_Decode$decodeValue, - A2(_Gizra$circuit_bid$Pusher_Decoder$decodePusherEvent, model.currentDate, _Gizra$circuit_bid$User_Model$Anonymous), - _p8)); - })); - default: - break _v3_4; - } - } else { - break _v3_4; - } - } while(false); - return _elm_lang$core$Platform_Sub$none; - }(); - return _elm_lang$core$Platform_Sub$batch( - { - ctor: '::', - _0: A2( - _elm_lang$core$Time$every, - _Gizra$circuit_bid$App_Utils$getTickFrequency(model) * _elm_lang$core$Time$second, - _Gizra$circuit_bid$App_Model$Tick), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Ports$offline( - function (_p9) { - return _Gizra$circuit_bid$App_Model$HandleOfflineEvent( - A2(_elm_lang$core$Json_Decode$decodeValue, _elm_lang$core$Json_Decode$bool, _p9)); - }), - _1: { - ctor: '::', - _0: pusherSubs, - _1: { - ctor: '::', - _0: clerkSubs, - _1: { - ctor: '::', - _0: saleSubs, - _1: {ctor: '[]'} - } - } - } - } - }); -}; -var _Gizra$circuit_bid$App_Update$setClerkPageAccess = F2( - function (userType, page) { - var _p10 = {ctor: '_Tuple2', _0: page, _1: userType}; - _v4_2: - do { - if ((_p10.ctor === '_Tuple2') && (_p10._1.ctor === 'Bidder')) { - switch (_p10._0.ctor) { - case 'SaleAuctioneer': - return _Gizra$circuit_bid$App_PageType$AccessDenied; - case 'SaleClerk': - return _Gizra$circuit_bid$App_PageType$AccessDenied; - default: - break _v4_2; - } - } else { - break _v4_2; - } - } while(false); - return page; - }); -var _Gizra$circuit_bid$App_Update$setActivePageAccess = F2( - function (wrappedUser, page) { - var _p11 = wrappedUser; - if (_p11.ctor === 'Just') { - if (_p11._0.ctor === 'Authenticated') { - return A2(_Gizra$circuit_bid$App_Update$setClerkPageAccess, _p11._0._0.userType, page); - } else { - var _p12 = page; - switch (_p12.ctor) { - case 'PageNotFound': - return page; - case 'Sale': - return page; - case 'SaleRoom': - return page; - default: - return _Gizra$circuit_bid$App_PageType$AccessDenied; - } - } - } else { - return page; - } - }); -var _Gizra$circuit_bid$App_Update$update = F2( - function (msg, model) { - update: - while (true) { - var noChange = {ctor: '_Tuple2', _0: model, _1: _elm_lang$core$Platform_Cmd$none}; - var _p13 = function () { - var _p14 = model.config; - if (_p14.ctor === 'Success') { - var _p15 = _p14._0; - return {ctor: '_Tuple4', _0: _p15.backendUrl, _1: _p15.debug, _2: _p15.serverless, _3: _p15.name}; - } else { - return {ctor: '_Tuple4', _0: '', _1: false, _2: '', _3: ''}; - } - }(); - var backendUrl = _p13._0; - var isDebug = _p13._1; - var serverless = _p13._2; - var env = _p13._3; - var _p16 = msg; - switch (_p16.ctor) { - case 'HandleOfflineEvent': - if (_p16._0.ctor === 'Ok') { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - _elm_lang$core$Native_Utils.update( - model, - {offline: _p16._0._0}), - {ctor: '[]'}); - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); - } - case 'Logout': - var setPageCmd = A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed( - A2(_Gizra$circuit_bid$App_Model$SetActivePage, _elm_lang$core$Maybe$Nothing, _p16._0))); - var _p17 = A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$MsgPusher(_Gizra$circuit_bid$Pusher_Model$Logout), - model); - var modelUpdated = _p17._0; - var pusherLogoutCmd = _p17._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - _Gizra$circuit_bid$App_Model$emptyModel, - { - config: model.config, - pusher: modelUpdated.pusher, - user: _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$User_Model$Anonymous) - }), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _Gizra$circuit_bid$Ports$clearAccessToken( - {ctor: '_Tuple0'}), - _1: { - ctor: '::', - _0: pusherLogoutCmd, - _1: { - ctor: '::', - _0: setPageCmd, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Ports$userLoggedOut( - {ctor: '_Tuple0'}), - _1: {ctor: '[]'} - } - } - } - }) - }; - case 'MsgBackend': - var _p18 = model.user; - if (_p18.ctor === 'Just') { - return A6( - _Gizra$circuit_bid$App_Update$updateSubModel, - _p16._0, - model.backend, - F2( - function (subMsg, subModel) { - return A6(_Gizra$circuit_bid$Backend_Update$updateBackend, model.currentDate, backendUrl, model.accessToken, _p18._0, subMsg, subModel); - }), - F2( - function (subModel, model) { - return _elm_lang$core$Native_Utils.update( - model, - {backend: subModel}); - }), - function (subCmds) { - return _Gizra$circuit_bid$App_Model$MsgBackend(subCmds); - }, - model); - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); - } - case 'MsgItemManager': - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (user) { - return A6( - _Gizra$circuit_bid$App_Update$updateSubModel, - _p16._0, - model.pageItem, - F2( - function (subMsg, subModel) { - return A8(_Gizra$circuit_bid$ItemManager_Update$update, model.currentDate, backendUrl, isDebug, model.accessToken, model.language, user, subMsg, model.pageItem); - }), - F2( - function (subModel, model) { - return _elm_lang$core$Native_Utils.update( - model, - {pageItem: subModel}); - }), - function (subCmds) { - return _Gizra$circuit_bid$App_Model$MsgItemManager(subCmds); - }, - model); - }, - model.user); - case 'MsgPagesClerk': - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - noChange, - function (user) { - return A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - noChange, - user, - function (authUser) { - var _p19 = A3( - _Gizra$circuit_bid$App_Update$pusherLogin, - _Gizra$circuit_bid$User_Model$Authenticated(authUser), - model, - model.pageClerk.sale); - var pusherModel = _p19._0; - var pusherCmd = _p19._1; - var _p20 = A6( - _Gizra$circuit_bid$App_Update$updateSubModel, - _p16._0, - model.pageClerk, - F2( - function (subMsg, subModel) { - return _Gizra$circuit_bid$Pages_Clerk_Update$update(model.currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: serverless, _1: env})(isDebug)(model.accessToken)(model.language)(authUser)(model.backend)(subMsg)(model.pageClerk); - }), - F2( - function (subModel, model) { - return _elm_lang$core$Native_Utils.update( - model, - {pageClerk: subModel}); - }), - function (subCmds) { - return _Gizra$circuit_bid$App_Model$MsgPagesClerk(subCmds); - }, - model); - var modelUpdated = _p20._0; - var cmds = _p20._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - modelUpdated, - {pusher: pusherModel}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmds, - _1: { - ctor: '::', - _0: pusherCmd, - _1: {ctor: '[]'} - } - }) - }; - }); - }, - model.user); - case 'MsgPagesSale': - var _p21 = function () { - var _p22 = model.activePage; - if (_p22.ctor === 'SaleRoom') { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$User_Model$Anonymous), - _1: _Gizra$circuit_bid$User_Model$Anonymous - }; - } else { - return { - ctor: '_Tuple2', - _0: model.user, - _1: A3(_elm_community$maybe_extra$Maybe_Extra$unwrap, _Gizra$circuit_bid$User_Model$Anonymous, _elm_lang$core$Basics$identity, model.user) - }; - } - }(); - var modifiedUser = _p21._0; - var modifiedUserForPusher = _p21._1; - var _p23 = A3(_Gizra$circuit_bid$App_Update$pusherLogin, modifiedUserForPusher, model, model.pageSale.sale); - var pusherModel = _p23._0; - var pusherCmd = _p23._1; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - {pusher: pusherModel}), - _1: pusherCmd - }, - function (user) { - var _p24 = A6( - _Gizra$circuit_bid$App_Update$updateSubModel, - _p16._0, - model.pageSale, - F2( - function (subMsg, subModel) { - return _Gizra$circuit_bid$Pages_Sale_Update$update(model.currentDate)(backendUrl)( - {ctor: '_Tuple2', _0: serverless, _1: env})(isDebug)(model.accessToken)(model.language)(user)(model.backend)(subMsg)(model.pageSale); - }), - F2( - function (subModel, model) { - return _elm_lang$core$Native_Utils.update( - model, - {pageSale: subModel}); - }), - function (subCmds) { - return _Gizra$circuit_bid$App_Model$MsgPagesSale(subCmds); - }, - model); - var modelUpdated = _p24._0; - var cmds = _p24._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - modelUpdated, - {pusher: pusherModel}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmds, - _1: { - ctor: '::', - _0: pusherCmd, - _1: {ctor: '[]'} - } - }) - }; - }, - model.user); - case 'MsgPusher': - var _p25 = model.user; - if (_p25.ctor === 'Just') { - var userOrAnon = function () { - var _p26 = model.activePage; - if (_p26.ctor === 'SaleRoom') { - return _Gizra$circuit_bid$User_Model$Anonymous; - } else { - return _p25._0; - } - }(); - var _p27 = A4(_Gizra$circuit_bid$Pusher_Update$update, backendUrl, userOrAnon, _p16._0, model.pusher); - var val = _p27._0; - var cmd = _p27._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - {pusher: val}), - _1: A2(_elm_lang$core$Platform_Cmd$map, _Gizra$circuit_bid$App_Model$MsgPusher, cmd) - }; - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); - } - case 'NoOp': - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); - case 'MsgLogin': - var _p28 = A3(_Gizra$circuit_bid$Login_Update$update, backendUrl, _p16._0, _Gizra$circuit_bid$Login_Model$emptyModel); - var cmds = _p28._1; - var maybeError = _p28._2; - var authenticationDetails = _p28._3; - var _p29 = function () { - var _p30 = authenticationDetails; - if (_p30.ctor === 'Just') { - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - { - accessToken: _p30._0._0, - user: _elm_lang$core$Maybe$Just(_p30._0._1) - }), - _1: A2( - _elm_lang$core$Task$perform, - _elm_lang$core$Basics$identity, - _elm_lang$core$Task$succeed( - A2(_Gizra$circuit_bid$App_Model$SetActivePage, _elm_lang$core$Maybe$Nothing, model.activePage))) - }; - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - {ctor: '[]'}); - } - }(); - var modelWithRedirect = _p29._0; - var redirectCmd = _p29._1; - var modelWithError = A2(_Gizra$circuit_bid$App_Utils$handleErrors, maybeError, modelWithRedirect); - return { - ctor: '_Tuple2', - _0: modelWithError, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: A2(_elm_lang$core$Platform_Cmd$map, _Gizra$circuit_bid$App_Model$MsgLogin, cmds), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Ports$saveAccessToken(modelWithRedirect.accessToken), - _1: { - ctor: '::', - _0: redirectCmd, - _1: {ctor: '[]'} - } - } - }) - }; - case 'SetActivePage': - var setFocusCmd = A2( - _elm_lang$core$Task$attempt, - _elm_lang$core$Basics$always(_Gizra$circuit_bid$App_Model$NoOp), - _elm_lang$dom$Dom$focus('app')); - var activePage = A2(_Gizra$circuit_bid$App_Update$setActivePageAccess, model.user, _p16._1); - var _p31 = function () { - var _p32 = activePage; - switch (_p32.ctor) { - case 'Sale': - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$MsgPagesSale( - _Gizra$circuit_bid$Pages_Sale_Model$Subscribe(_p32._0)), - model); - case 'SaleAuctioneer': - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$MsgPagesClerk( - _Gizra$circuit_bid$Pages_Clerk_Model$Subscribe(_p32._0)), - model); - case 'SaleClerk': - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$MsgPagesClerk( - _Gizra$circuit_bid$Pages_Clerk_Model$Subscribe(_p32._0)), - model); - case 'SaleRoom': - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$MsgPagesSale( - _Gizra$circuit_bid$Pages_Sale_Model$Subscribe(_p32._0)), - model); - case 'Logout': - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$Logout(_Gizra$circuit_bid$App_PageType$Dashboard), - model); - default: - return {ctor: '_Tuple2', _0: model, _1: _elm_lang$core$Platform_Cmd$none}; - } - }(); - var modelUpdated = _p31._0; - var pageInitCmds = _p31._1; - var _p33 = function () { - var _p34 = _p16._0; - if (_p34.ctor === 'Just') { - return A2( - _Gizra$circuit_bid$App_Update$update, - _Gizra$circuit_bid$App_Model$SetLanguage(_p34._0), - modelUpdated); - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - modelUpdated, - {ctor: '[]'}); - } - }(); - var modelUpdatedWithLanguage = _p33._0; - var languageCmds = _p33._1; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - modelUpdatedWithLanguage, - {activePage: activePage}), - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: pageInitCmds, - _1: { - ctor: '::', - _0: setFocusCmd, - _1: { - ctor: '::', - _0: languageCmds, - _1: {ctor: '[]'} - } - } - }) - }; - case 'SetAuthentication': - var _p35 = _p16._0._0; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - model, - { - accessToken: _p35, - user: _elm_lang$core$Maybe$Just(_p16._0._1) - }), - _1: _Gizra$circuit_bid$Ports$saveAccessToken(_p35) - }; - case 'SetCurrentDate': - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - _elm_lang$core$Native_Utils.update( - model, - {currentDate: _p16._0}), - {ctor: '[]'}); - case 'SetLanguage': - var _v16 = A2(_Gizra$circuit_bid$App_Model$SetActivePage, _elm_lang$core$Maybe$Nothing, model.activePage), - _v17 = _elm_lang$core$Native_Utils.update( - model, - {language: _p16._0}); - msg = _v16; - model = _v17; - continue update; - default: - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model, - { - ctor: '::', - _0: A2(_elm_lang$core$Task$perform, _Gizra$circuit_bid$App_Model$SetCurrentDate, _elm_lang$core$Date$now), - _1: {ctor: '[]'} - }); - } - } - }); -var _Gizra$circuit_bid$App_Update$pusherLogin = F3( - function (user, model, sale) { - var getChannel = function (uuid) { - var _p36 = model.activePage; - switch (_p36.ctor) { - case 'SaleAuctioneer': - return _Gizra$circuit_bid$Pusher_Model$Privileged(uuid); - case 'SaleClerk': - return _Gizra$circuit_bid$Pusher_Model$Privileged(uuid); - default: - return _Gizra$circuit_bid$Pusher_Model$Public(uuid); - } - }; - var pusherLogin_ = F2( - function (model, channel) { - var pusherLoginMsg = F2( - function (pusherKey, user) { - return A3( - _Gizra$circuit_bid$Pusher_Model$Login, - pusherKey, - channel, - _Gizra$circuit_bid$Pusher_Model$AccessToken(model.accessToken)); - }); - var msg = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$App_Model$NoOp, - A2( - _elm_lang$core$Maybe$map, - function (config) { - return _Gizra$circuit_bid$App_Model$MsgPusher( - A2(pusherLoginMsg, config.pusherKey, user)); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(model.config))); - var _p37 = A2(_Gizra$circuit_bid$App_Update$update, msg, model); - var updatedModel = _p37._0; - var pusherLoginCmd = _p37._1; - return {ctor: '_Tuple2', _0: updatedModel.pusher, _1: pusherLoginCmd}; - }); - var _p38 = sale; - if (_p38.ctor === 'Success') { - var channel = getChannel(_p38._0.uuid); - return (!_elm_lang$core$Native_Utils.eq( - model.pusher.currentChannel, - _elm_lang$core$Maybe$Just( - { - ctor: '_Tuple2', - _0: channel, - _1: _Gizra$circuit_bid$User_Utils$isAuthenticated(user) - }))) ? A2(pusherLogin_, model, channel) : A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model.pusher, - {ctor: '[]'}); - } else { - return A2( - _elm_lang$core$Platform_Cmd_ops['!'], - model.pusher, - {ctor: '[]'}); - } - }); -var _Gizra$circuit_bid$App_Update$init = function (flags) { - var urlRecord = _sporto$erl$Erl$parse(flags.parentBaseUrl); - var parentBaseUrl = A2( - _elm_lang$core$Maybe$withDefault, - '', - _elm_lang$core$List$head( - A2(_sporto$erl$Erl$getQueryValuesForKey, 'origin', urlRecord))); - var redirectUrl = A2( - _elm_lang$core$Maybe$andThen, - function (url) { - var queryParams = A3( - _elm_lang$core$List$foldl, - F2( - function (_p39, accum) { - var _p40 = _p39; - var _p41 = _p40._0; - return (_elm_lang$core$Native_Utils.eq(_p41, 'redirect') || _elm_lang$core$Native_Utils.eq(_p41, 'origin')) ? accum : { - ctor: '::', - _0: A2( - _elm_lang$core$Basics_ops['++'], - _p41, - A2(_elm_lang$core$Basics_ops['++'], '=', _p40._1)), - _1: accum - }; - }), - {ctor: '[]'}, - urlRecord.query); - return _elm_lang$core$Maybe$Just( - A2( - _elm_lang$core$Basics_ops['++'], - url, - A2( - _elm_lang$core$Basics_ops['++'], - '?', - A2(_elm_lang$core$String$join, '&', queryParams)))); - }, - _elm_lang$core$List$head( - A2(_sporto$erl$Erl$getQueryValuesForKey, 'redirect', urlRecord))); - var _p42 = function () { - var _p43 = _Gizra$circuit_bid$Config$getConfigByHostname(flags.hostname); - if (_p43.ctor === 'Just') { - var _p45 = _p43._0; - var defaultCmds = { - ctor: '::', - _0: A2(_elm_lang$core$Task$perform, _Gizra$circuit_bid$App_Model$SetCurrentDate, _elm_lang$core$Date$now), - _1: { - ctor: '::', - _0: A2( - _elm_lang$core$Task$attempt, - _elm_lang$core$Basics$always(_Gizra$circuit_bid$App_Model$NoOp), - _elm_lang$dom$Dom$focus('app')), - _1: {ctor: '[]'} - } - }; - var _p44 = _elm_lang$core$String$isEmpty(flags.accessToken) ? { - ctor: '_Tuple3', - _0: _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$User_Model$Anonymous), - _1: defaultCmds, - _2: _Gizra$circuit_bid$App_PageType$AccessDenied - } : { - ctor: '_Tuple3', - _0: _elm_lang$core$Maybe$Nothing, - _1: A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _elm_lang$core$Platform_Cmd$map, - _Gizra$circuit_bid$App_Model$MsgLogin, - A2(_Gizra$circuit_bid$Login_Update$fetchUserFromBackend, _p45.backendUrl, flags.accessToken)), - _1: {ctor: '[]'} - }, - defaultCmds), - _2: _Gizra$circuit_bid$App_Model$emptyModel.activePage - }; - var user = _p44._0; - var cmds = _p44._1; - var activePage_ = _p44._2; - return { - ctor: '_Tuple4', - _0: _krisajenkins$remotedata$RemoteData$Success(_p45), - _1: user, - _2: cmds, - _3: activePage_ - }; - } else { - return { - ctor: '_Tuple4', - _0: _krisajenkins$remotedata$RemoteData$Failure('No config found'), - _1: _elm_lang$core$Maybe$Nothing, - _2: { - ctor: '::', - _0: _elm_lang$core$Platform_Cmd$none, - _1: {ctor: '[]'} - }, - _3: _Gizra$circuit_bid$App_Model$emptyModel.activePage - }; - } - }(); - var config = _p42._0; - var user = _p42._1; - var cmds = _p42._2; - var activePage = _p42._3; - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Native_Utils.update( - _Gizra$circuit_bid$App_Model$emptyModel, - { - accessToken: flags.accessToken, - activePage: activePage, - config: config, - user: user, - language: _Gizra$circuit_bid$App_Utils$decodeLanguageCode(flags.languageCode), - parentBaseUrl: parentBaseUrl, - redirectUrl: redirectUrl - }), - _1: _elm_lang$core$Platform_Cmd$batch(cmds) - }; -}; - -var _Gizra$circuit_bid$Config_View$loading = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui active dimmer'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui loader'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); -var _Gizra$circuit_bid$Config_View$error = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('config-error'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Configuration error'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Check your Config.elm file and make sure you have defined the environnement properly'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - -var _Gizra$circuit_bid$Error_View$viewError = F2( - function (language, error) { - var prefix = _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - error.module_, - A2( - _elm_lang$core$Basics_ops['++'], - '.', - A2(_elm_lang$core$Basics_ops['++'], error.location, ': ')))); - var _p0 = error.error; - if (_p0.ctor === 'Http') { - return A2( - _elm_lang$html$Html$li, - {ctor: '[]'}, - { - ctor: '::', - _0: prefix, - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, _p0._0), - _1: {ctor: '[]'} - } - }); - } else { - return A2( - _elm_lang$html$Html$li, - {ctor: '[]'}, - { - ctor: '::', - _0: prefix, - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(_p0._0), - _1: {ctor: '[]'} - } - }); - } - }); -var _Gizra$circuit_bid$Error_View$view = F2( - function (language, errors) { - return _elm_lang$core$List$isEmpty(errors) ? _Gizra$circuit_bid$Utils_Html$emptyNode : A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('debug-errors'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text(' Debug Errors'), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$ul, - {ctor: '[]'}, - A2( - _elm_lang$core$List$map, - _Gizra$circuit_bid$Error_View$viewError(language), - errors)), - _1: {ctor: '[]'} - } - }); - }); - -var _Gizra$circuit_bid$Backend_ConnectedUser_View$viewRow = F4( - function (currency, modelBackend, saleUuid, websiteBidderNumber) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$elm_essentials$Gizra_Html$emptyNode, - function (bidderInfo) { - return A2( - _elm_lang$html$Html$tr, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('first-td'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A3(_Gizra$circuit_bid$User_View$viewBidderNameAndInfo, currency, modelBackend, bidderInfo), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, websiteBidderNumber)); - }); -var _Gizra$circuit_bid$Backend_ConnectedUser_View$viewConnectedUsers = F4( - function (language, currency, modelBackend, saleUuid) { - var trimmedList = _eeue56$elm_all_dict$EveryDict$keys(modelBackend.connectedUsers); - var count = _elm_lang$core$List$length(trimmedList); - var rows = A2( - _elm_lang$core$List$map, - A3(_Gizra$circuit_bid$Backend_ConnectedUser_View$viewRow, currency, modelBackend, saleUuid), - trimmedList); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('allusers'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('connected-users-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('total-users'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - _Gizra$circuit_bid$Translate$ConnectedUsers(count)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('connected-name'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Name), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('connected-users'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$table, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('users'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$tbody, - {ctor: '[]'}, - rows), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - }); - -var _Gizra$circuit_bid$Message_View$messageBid = F7( - function (language, user, modelBackend, _p2, _p1, itemDict, _p0) { - var _p3 = _p2; - var _p4 = _p1; - var _p5 = _p0; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (bid) { - var translationId = A4(_Gizra$circuit_bid$Bid_Utils$isOwnBid, user, modelBackend, _p3._0, bid) ? _p5._1 : _p5._0; - return A2( - _Gizra$circuit_bid$Translate$translateString, - language, - A2(translationId, _p3._1, bid)); - }, - A3(_Gizra$circuit_bid$Bid_Utils$getBidByItemIdAndBidKey, itemDict, _p4._0, _p4._1)); - }); -var _Gizra$circuit_bid$Message_View$viewMessageTypeAsString = F6( - function (language, user, modelBackend, _p6, itemDict, messageType) { - var _p7 = _p6; - var _p15 = _p7._1; - var messageBidPartial = F2( - function (itemId, bidKey) { - return A6( - _Gizra$circuit_bid$Message_View$messageBid, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p7._0, _1: _p15}, - {ctor: '_Tuple2', _0: itemId, _1: bidKey}, - itemDict); - }); - var _p8 = messageType; - switch (_p8.ctor) { - case 'BidAccepted': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A3(_Gizra$circuit_bid$Translate$BidAcceptedMessage, bid.amount, sale.currency, bid.bidType); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidAcceptedOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidChangedToFloor': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidChangedToFloorMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidChangedToFloorOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidDeleted': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidDeletedMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidDeletedOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidOutbid': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidOutbidMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidOutbidOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidRejected': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidRejectedBidderMax': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedBidderMaxOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidRejectedCreditLimit': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedCreditLimitOwnMessage, bid.amount, sale.currency); - }) - }); - case 'BidRejectedBellowMinimum': - return A3( - messageBidPartial, - _p8._0, - _p8._1, - { - ctor: '_Tuple2', - _0: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedMessage, bid.amount, sale.currency); - }), - _1: F2( - function (sale, bid) { - return A2(_Gizra$circuit_bid$Translate$BidRejectedOwnMessage, bid.amount, sale.currency); - }) - }); - case 'ClerkPublic': - return _p8._0; - case 'ItemUpdate': - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (item) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (calculated) { - var maybeTranslationId = function () { - var _p9 = _p8._1; - if (_p9.ctor === 'EditableStatus') { - var _p10 = _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p9._0); - if (_p10.ctor === 'Just') { - switch (_p10._0.ctor) { - case 'Going': - return _elm_lang$core$Maybe$Just(_Gizra$circuit_bid$Translate$ItemGoingMessage); - case 'Open': - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Translate$ItemOpenMessage(item.lotId)); - case 'GoneTransition': - return _elm_lang$core$Maybe$Nothing; - default: - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Translate$ItemPausedMessage(item.lotId)); - } - } else { - return _elm_lang$core$Maybe$Nothing; - } - } else { - var _p11 = _p9._0; - switch (_p11.ctor) { - case 'ItemClosed': - var _p12 = _p11._0; - if (_p12.ctor === 'Sold') { - var soldAmount = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice( - _Gizra$circuit_bid$Item_Utils$getPrice(calculated)); - return _elm_lang$core$Maybe$Just( - A3(_Gizra$circuit_bid$Translate$ItemSoldMessage, item.lotId, soldAmount, _p15.currency)); - } else { - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Translate$ItemUnsoldMessage(item.lotId)); - } - case 'Withdrawn': - return _elm_lang$core$Maybe$Just( - _Gizra$circuit_bid$Translate$ItemWithdrawnMessage(item.lotId)); - default: - return _elm_lang$core$Maybe$Nothing; - } - } - }(); - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - _Gizra$circuit_bid$Translate$translateString(language), - maybeTranslationId); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, _p8._0, itemDict)); - default: - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - function (item) { - var _p13 = _p8._1; - if (_p13.ctor === 'EditableStatus') { - var _p14 = _Gizra$circuit_bid$Item_Utils$getClerkStatus(_p13._0); - _v10_2: - do { - if (_p14.ctor === 'Just') { - switch (_p14._0.ctor) { - case 'Paused': - return A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$ItemPausedMessage(item.lotId)); - case 'Open': - return A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$ItemOpenMessage(item.lotId)); - default: - break _v10_2; - } - } else { - break _v10_2; - } - } while(false); - return ''; - } else { - return ''; - } - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, _p8._0, itemDict)); - } - }); -var _Gizra$circuit_bid$Message_View$messageNode = F6( - function (language, user, modelBackend, _p17, itemDict, _p16) { - var _p18 = _p17; - var _p19 = _p16; - return { - ctor: '_Tuple2', - _0: _p19._0._0, - _1: A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('messages'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('colortab'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A6( - _Gizra$circuit_bid$Message_View$viewMessageTypeAsString, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p18._0, _1: _p18._1}, - itemDict, - _p19._1.messageType)), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }) - }; - }); -var _Gizra$circuit_bid$Message_View$messagesView = F6( - function (language, user, modelBackend, _p20, itemDict, messages) { - var _p21 = _p20; - var messageHtml = A2( - _elm_lang$core$List$map, - A5( - _Gizra$circuit_bid$Message_View$messageNode, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p21._0, _1: _p21._1}, - itemDict), - _Gizra$elm_dictlist$EveryDictList$toList(messages)); - return A2( - _elm_lang$html$Html$table, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('table public'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A3( - _elm_lang$html$Html_Keyed$node, - 'tbody', - {ctor: '[]'}, - messageHtml), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Message_View$viewActivityStream = F6( - function (language, user, modelBackend, _p22, itemDict, messages) { - var _p23 = _p22; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('stream'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('stream-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Messages), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('stream-tables'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6( - _Gizra$circuit_bid$Message_View$messagesView, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p23._0, _1: _p23._1}, - itemDict, - messages), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - }); - -var _Gizra$circuit_bid$Pages_Auctioneer_Utils$getClassAndNameFromStatus = F2( - function (language, status) { - return _Gizra$circuit_bid$Item_Utils$isPaused(status) ? { - ctor: '_Tuple2', - _0: 'paused', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Paused) - } : (_Gizra$circuit_bid$Item_Utils$isOpen(status) ? { - ctor: '_Tuple2', - _0: 'active', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Active) - } : (_Gizra$circuit_bid$Item_Utils$isGoing(status) ? { - ctor: '_Tuple2', - _0: 'going', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Going) - } : (_Gizra$circuit_bid$Item_Utils$isClosed(status) ? { - ctor: '_Tuple2', - _0: 'gone', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Gone) - } : {ctor: '_Tuple2', _0: '', _1: ''}))); - }); - -var _Gizra$circuit_bid$Sale_View$showMaybeItemTuple = F3( - function (sale, items, f) { - return A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Utils_Html$emptyNode, - A2( - _elm_lang$core$Maybe$map, - function (_p0) { - var _p1 = _p0; - return f( - {ctor: '_Tuple2', _0: _p1._0, _1: _p1._1}); - }, - function (id) { - return A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, id, items); - }(sale.item))); - }); -var _Gizra$circuit_bid$Sale_View$statusToString = F2( - function (language, status) { - var transId = function () { - var _p2 = status; - switch (_p2.ctor) { - case 'ClosedNotStarted': - return _Gizra$circuit_bid$Translate$ClosedNotStarted; - case 'MailAuctionOpen': - return _Gizra$circuit_bid$Translate$MailAuctionOpen; - case 'PausedStartingSoon': - return _Gizra$circuit_bid$Translate$PausedStartingSoon; - case 'LiveAuctionOpen': - return _Gizra$circuit_bid$Translate$LiveAuctionOpen; - case 'PausedBackShortly': - return _Gizra$circuit_bid$Translate$PausedBackShortly; - default: - return _Gizra$circuit_bid$Translate$ClosedEnded; - } - }(); - return A2(_Gizra$circuit_bid$Translate$translateString, language, transId); - }); - -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewNote = F2( - function (language, calculated) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('notes'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('notes-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$AuctioneerNotes), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('notes-line'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Utils_Html$showMaybe, _elm_lang$html$Html$text, calculated.note), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('notes-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$PublicMessage), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('notes-line'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Utils_Html$showMaybe, _elm_lang$html$Html$text, calculated.publicMessage), - _1: {ctor: '[]'} - } - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$bookBidRow = F6( - function (language, currency, modelBackend, saleUuid, itemId, _p0) { - var _p1 = _p0; - var _p2 = _p1._1; - var maybeWillMaxOut = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (willMaxOut) { - return willMaxOut ? A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('by-credit'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Will max out!'), - _1: {ctor: '[]'} - }) : _Gizra$circuit_bid$Utils_Html$emptyNode; - }, - _p2.willMaxOut); - var alternativeBids = A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (alternativeBids) { - return _elm_lang$core$List$isEmpty(alternativeBids) ? _Gizra$circuit_bid$Utils_Html$emptyNode : A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('altgroup'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Alt. '), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_elm_lang$core$String$join, ', ', alternativeBids)), - _1: {ctor: '[]'} - } - }); - }, - _p2.alternativeBids); - var undexExtension = _p2.underExtension ? A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('extension'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('E!'), - _1: {ctor: '[]'} - }) : _Gizra$circuit_bid$Utils_Html$emptyNode; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bid'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('med sum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p2.amount, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Bid_View$bidUser, language, currency, modelBackend, saleUuid, itemId, _p2), - _1: { - ctor: '::', - _0: undexExtension, - _1: { - ctor: '::', - _0: alternativeBids, - _1: { - ctor: '::', - _0: maybeWillMaxOut, - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$bookBidTable = F6( - function (language, currency, modelBackend, saleUuid, itemId, bookBids) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bidlist'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('book-bids'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$BookBids), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - A5(_Gizra$circuit_bid$Pages_Auctioneer_View$bookBidRow, language, currency, modelBackend, saleUuid, itemId), - A2( - _elm_lang$core$List$take, - 2, - _Gizra$elm_dictlist$EveryDictList$toList(bookBids))))), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$winningBidderTotalSpent = F3( - function (language, currency, totalSpent) { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('totalhamer'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$TotalSpentAmount, totalSpent, currency))); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewCurrentItemInfo = F5( - function (currentDate, language, modelBackend, _p4, _p3) { - var _p5 = _p4; - var _p11 = _p5._1; - var _p6 = _p3; - var _p10 = _p6._1; - var _p7 = _krisajenkins$remotedata$RemoteData$toMaybe(_p10.calculated); - if (_p7.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p9 = _p7._0; - if (_Gizra$circuit_bid$Item_Utils$isWithdrawn(_p9.status)) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-current'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Clerk_Utils$viewWithdrawnItem(language), - _1: {ctor: '[]'} - }); - } else { - var totalWonView = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Utils_Html$emptyNode, - A2( - _elm_lang$core$Maybe$map, - A2(_Gizra$circuit_bid$Pages_Auctioneer_View$winningBidderTotalSpent, language, _p11.currency), - A2( - _elm_lang$core$Maybe$andThen, - function (_) { - return _.winningUserTotalWon; - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p10.calculated)))); - var _p8 = A2(_Gizra$circuit_bid$Pages_Auctioneer_Utils$getClassAndNameFromStatus, language, _p9.status); - var statusClass = _p8._0; - var statusName = _p8._1; - var nextAmount = _Gizra$circuit_bid$Item_Utils$getNextPriceAmount(_p9); - var highestPrice = _Gizra$circuit_bid$Item_Utils$getPrice(_p9); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-current'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class( - A2(_elm_lang$core$Basics_ops['++'], 'status ', statusClass)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(statusName), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Clerk_Utils$clerkCurrentPriceView, language, highestPrice, _p11.currency), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-current-bidder'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewWinningBidder, - language, - _p11.currency, - modelBackend, - _p5._0, - {ctor: '_Tuple2', _0: _p6._0, _1: _p10}, - true), - _1: { - ctor: '::', - _0: totalWonView, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceAndRally, currentDate, language, _p11, _p9), - _1: {ctor: '[]'} - } - } - } - }); - } - } - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewStaticAndPricesInfo = F3( - function (language, currency, item) { - var consignerHtml = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (calculated) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (consigner) { - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - _Gizra$circuit_bid$Translate$Consigner(consigner.name))); - }, - calculated.consigner); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lot-info'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(item.name), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Item_View$pricesInfoView, language, currency, item), - _1: { - ctor: '::', - _0: consignerHtml, - _1: {ctor: '[]'} - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewImageAndDescription = function (item) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-lot-data'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(item.image.big), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (description) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html_Attributes$property, - 'innerHTML', - _elm_lang$core$Json_Encode$string(description)), - _1: {ctor: '[]'} - }, - {ctor: '[]'}); - }, - item.description), - _1: {ctor: '[]'} - } - }); -}; -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewCurrentBid = F3( - function (language, currency, price) { - var _p12 = price; - if (_p12.ctor === 'Current') { - return A3(_Gizra$circuit_bid$Item_View$currentPriceView, language, _p12._0, currency); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$callRequestTable = F4( - function (language, modelBackend, saleUuid, callRequests) { - var callRequestRows = A3( - _elm_lang$core$List$foldr, - F2( - function (callRequest, accum) { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - accum, - function (bidderInfo) { - var userName = A2(_elm_lang$core$Maybe$withDefault, '', bidderInfo.userName); - var phone = _elm_lang$core$Basics$toString( - _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo)); - return { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bid call-request-row'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - userName, - A2( - _elm_lang$core$Basics_ops['++'], - ' (', - A2(_elm_lang$core$Basics_ops['++'], phone, ')')))), - _1: {ctor: '[]'} - }), - _1: accum - }; - }, - A3(_Gizra$circuit_bid$Backend_BidderInfo_Utils$getByBidderNumber, modelBackend, saleUuid, callRequest.bidderNumber)); - }), - {ctor: '[]'}, - callRequests); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('call-bids'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$CallRequests), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }, - callRequestRows)); - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$viewSaleInfo = F6( - function (currentDate, language, modelBackend, model, _p13, item) { - var _p14 = _p13; - var _p19 = _p14._0; - var _p18 = _p14._1; - var _p15 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p15.ctor === 'Just') { - var _p17 = _p15._0; - var creditRequests = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-requests'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-request-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$CreditRequests), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A5(_Gizra$circuit_bid$Pages_Clerk_Utils$creditRequestTable, language, _p18.currency, _p19, _Gizra$circuit_bid$Pages_Clerk_Model$UpdateCreditRequestStatus, modelBackend), - _1: {ctor: '[]'} - } - }); - var items = model.item.items; - var _p16 = function () { - var applyPartial = function (f) { - return A3( - _Gizra$circuit_bid$Sale_View$showMaybeItemTuple, - _p18, - items, - A3( - f, - language, - modelBackend, - {ctor: '_Tuple2', _0: _p19, _1: _p18})); - }; - return { - ctor: '_Tuple2', - _0: applyPartial( - _Gizra$circuit_bid$Pages_Auctioneer_View$viewCurrentItemInfo(currentDate)), - _1: applyPartial( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewItemBidsList(_eeue56$elm_all_dict$EveryDict$empty)) - }; - }(); - var currentItemInfo = _p16._0; - var bidsList = _p16._1; - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-top'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-lotnum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(item.lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Auctioneer_View$viewStaticAndPricesInfo, language, _p18.currency, item), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clearall'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-left'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: currentItemInfo, - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bidlist'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Pages_Auctioneer_View$bookBidTable, language, _p18.currency, modelBackend, _p19, _p18.item, _p17.bookBids), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Pages_Auctioneer_View$callRequestTable, language, modelBackend, _p19, _p17.callRequests), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Auctioneer_View$viewImageAndDescription(item), - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneer-right'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Pages_Auctioneer_View$viewNote, language, _p17), - _1: { - ctor: '::', - _0: creditRequests, - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneerlists list'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Bids), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: bidsList, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('auctioneerlists closed'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Closed), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('extension-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('extension'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('E!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A7(_Gizra$circuit_bid$Pages_Clerk_Utils$closedItems, language, _p18.currency, modelBackend, _p19, items, _p18.item, model.editableBidderIds), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - } - } - } - }), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Backend_ConnectedUser_View$viewConnectedUsers, language, _p18.currency, modelBackend, _p19), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$audio, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src('https://storage.googleapis.com/gizra-podcasts/notification.mp3'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$controls(false), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('place-bid-audio'), - _1: {ctor: '[]'} - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - } - } - } - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Auctioneer_View$view = F7( - function (config, date, language, user, modelBackend, model, _p20) { - var _p21 = _p20; - var _p22 = _p21._1; - return A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - A5( - _Gizra$circuit_bid$Pages_Auctioneer_View$viewSaleInfo, - date, - language, - modelBackend, - model, - {ctor: '_Tuple2', _0: _p21._0, _1: _p22}), - A2(_Gizra$elm_dictlist$EveryDictList$get, _p22.item, model.item.items)); - }); - -var _Gizra$circuit_bid$QueuedRequest_Utils$queuedRequestLoading = function (state) { - var _p0 = state; - switch (_p0.ctor) { - case 'QueuedRequestSent': - return true; - case 'QueuedRequestQueued': - return true; - default: - return false; - } -}; - -var _Gizra$circuit_bid$Pages_Clerk_View$viewDebug = F3( - function (config, _p0, model) { - var _p1 = _p0; - if (config.debug) { - var items = model.item.items; - var itemLInk = A3( - _Gizra$circuit_bid$Sale_View$showMaybeItemTuple, - _p1._1, - items, - function (_p2) { - var _p3 = _p2; - var _p4 = _p3._1.uuid; - var uuid = _p4._0; - var _p5 = _p3._0; - var id = _p5._0; - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2( - _elm_lang$core$Basics_ops['++'], - config.backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/node/', - _elm_lang$core$Basics$toString(id)))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_blank'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Item node'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - }); - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2( - _elm_lang$core$Basics_ops['++'], - config.backendUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/node/', - _Gizra$elm_restful$Restful_Endpoint$fromEntityUuid(_p1._0)))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$target('_blank'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Sale node'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: itemLInk, - _1: {ctor: '[]'} - } - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Clerk_View$viewPublicMessageInput = F4( - function (language, currency, request, publicMessageInput) { - var isDisabled = _krisajenkins$remotedata$RemoteData$isLoading(request) || (_krisajenkins$remotedata$RemoteData$isNotAsked(request) || _elm_lang$core$String$isEmpty(publicMessageInput)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('public-message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$textarea, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$rows(2), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$SetPublicMessageInput), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(publicMessageInput), - _1: {ctor: '[]'} - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('button primary send-public-message'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Clerk_Model$SubmitPublicMessage), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: isDisabled}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Send), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$viewClerkCurrentItem = F4( - function (language, model, _p7, _p6) { - var _p8 = _p7; - var _p11 = _p8._1; - var _p9 = _p6; - var _p10 = _p9._1; - var existingPublicMessage = A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (calcualted) { - return A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (publicMessage) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('existing-public-message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(publicMessage), - _1: {ctor: '[]'} - }); - }, - calcualted.publicMessage); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(_p10.calculated)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-current-item'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lotnum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p10.lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Item_View$pricesInfoView, language, _p11.currency, _p10), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(_p10.image.big), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(_p10.name), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Pages_Clerk_View$viewPublicMessageInput, language, _p11.currency, model.publicMessagesSendRequest, model.publicMessageInput), - _1: { - ctor: '::', - _0: existingPublicMessage, - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$itemStatusErrorView = F2( - function (language, err) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui error message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, err), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$clerkStatusButton = F6( - function (language, model, saleUuid, itemId, status, clerkStatus) { - var _p12 = A5(_Gizra$circuit_bid$Pages_Clerk_Utils$itemStatusButton, model, saleUuid, itemId, status, clerkStatus); - var loading = _p12.loading; - var disabled = _p12.disabled; - var active = _p12.active; - var msg = _p12.msg; - var _p13 = function () { - var _p14 = clerkStatus; - switch (_p14.ctor) { - case 'Paused': - return { - ctor: '_Tuple3', - _0: 'paused', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Paused), - _2: _Gizra$circuit_bid$Utils_Html$emptyNode - }; - case 'Open': - return { - ctor: '_Tuple3', - _0: 'lot-active', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Active), - _2: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('shortcut'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('F2'), - _1: {ctor: '[]'} - }) - }; - case 'Going': - return { - ctor: '_Tuple3', - _0: 'going', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Going), - _2: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('shortcut'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('F3'), - _1: {ctor: '[]'} - }) - }; - default: - return { - ctor: '_Tuple3', - _0: 'gone', - _1: A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Gone), - _2: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('shortcut'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('F4'), - _1: {ctor: '[]'} - }) - }; - } - }(); - var className = _p13._0; - var label = _p13._1; - var htmlSuffix = _p13._2; - return A2( - _elm_lang$html$Html$button, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: A2(_elm_lang$core$Basics_ops['++'], 'btn button status ', className), - _1: true - }, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'green', _1: active}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: disabled}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: loading}, - _1: {ctor: '[]'} - } - } - } - }), - _1: {ctor: '[]'} - }, - A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - {ctor: '[]'}, - function (msg) { - return { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(msg), - _1: {ctor: '[]'} - }; - }, - msg)), - { - ctor: '::', - _0: _elm_lang$html$Html$text(label), - _1: { - ctor: '::', - _0: htmlSuffix, - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$itemStatusButtonsView = F6( - function (language, model, saleUuid, itemId, status, lastBidWasFloor) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('itemstatus-btn'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - A5(_Gizra$circuit_bid$Pages_Clerk_View$clerkStatusButton, language, model, saleUuid, itemId, status), - { - ctor: '::', - _0: _Gizra$circuit_bid$Item_Model$Paused, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Item_Model$Open, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Item_Model$Going, - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Item_Model$GoneTransition, - _1: {ctor: '[]'} - } - } - } - })); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$viewLastToFloorButton = F5( - function (language, model, saleUuid, _p15, lastBidWasFloor) { - var _p16 = _p15; - var _p17 = _p16._1; - var lastBidLoading = _Gizra$circuit_bid$QueuedRequest_Utils$queuedRequestLoading(model.queuedSetToFloorRequestState); - var isDisabled = lastBidLoading || (A2(_Gizra$circuit_bid$Pages_Clerk_Utils$itemIsLoading, model, _p17.status) || (_Gizra$circuit_bid$Item_Utils$isClosed(_p17.status) || (_Gizra$circuit_bid$Item_Utils$isWithdrawn(_p17.status) || (lastBidWasFloor || (!_Gizra$circuit_bid$Item_Utils$hasWinningBid(_p17)))))); - return A2( - _elm_lang$html$Html$button, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn last-to-floor', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: lastBidLoading}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: isDisabled}, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }, - isDisabled ? {ctor: '[]'} : { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2(_Gizra$circuit_bid$Pages_Clerk_Model$SetItemLastToFloor, saleUuid, _p16._0)), - _1: {ctor: '[]'} - }), - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LastToFloor), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$bidStepView = F6( - function (language, currency, model, itemId, itemStatus, _p18) { - var _p19 = _p18; - var manualStepInput = A2( - _elm_lang$core$Maybe$withDefault, - '', - A2(_elm_lang$core$Maybe$map, _elm_lang$core$Basics$toString, model.manualStepInput)); - var buttonClasses = function (hasBidStepInput) { - return _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'add-bid', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'disabled', - _1: (!hasBidStepInput) || (_Gizra$circuit_bid$Item_Utils$isClosed(itemStatus) || (_Gizra$circuit_bid$Item_Utils$isWithdrawn(itemStatus) || _elm_lang$core$Native_Utils.eq(model.itemChangeRequest, _krisajenkins$remotedata$RemoteData$Loading))) - }, - _1: {ctor: '[]'} - } - }); - }; - var _p20 = function () { - var _p21 = model.manualStepInput; - if (_p21.ctor === 'Just') { - return { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: buttonClasses(true), - _1: {ctor: '[]'} - }, - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - A2(_Gizra$circuit_bid$Pages_Clerk_Model$SetBidStep, itemId, _p21._0)), - _1: {ctor: '[]'} - } - }; - } else { - return { - ctor: '_Tuple2', - _0: { - ctor: '::', - _0: buttonClasses(false), - _1: {ctor: '[]'} - }, - _1: {ctor: '[]'} - }; - } - }(); - var buttonAttributes = _p20._0; - var formAttr = _p20._1; - return A2( - _elm_lang$html$Html$form, - A2( - _elm_lang$core$List$append, - formAttr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('change-step'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript: void(0)'), - _1: {ctor: '[]'} - } - }), - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('enter-step'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$ChangeBidStep), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-step'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - '(', - A2( - _elm_lang$core$Basics_ops['++'], - _elm_lang$core$Basics$toString(_p19._0), - ')'))), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('enter-step'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(manualStepInput), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('number'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$min('1'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$SetBidStepInput), - _1: {ctor: '[]'} - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - buttonAttributes, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-chevron-right'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$floorBidView = F7( - function (language, currency, saleUuid, model, _p22, bidAmount, lastBidWasFloor) { - var _p23 = _p22; - var _p29 = _p23._0; - var _p28 = _p23._1; - var onSubmitBidPlaceAttr = function (msg) { - var _p24 = msg; - if (_p24.ctor === 'Nothing') { - return {ctor: '[]'}; - } else { - return { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit(_p24._0), - _1: {ctor: '[]'} - }; - } - }; - var onClickBidPlaceAttr = function (msg) { - var _p25 = msg; - if (_p25.ctor === 'Nothing') { - return {ctor: '[]'}; - } else { - return { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_p25._0), - _1: {ctor: '[]'} - }; - } - }; - var nextBidAmount = A2( - _Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, - _elm_lang$core$Native_Utils.update( - _p28, - { - currentPrice: _elm_lang$core$Maybe$Just(bidAmount) - }), - model); - var customFloorBidButton = function () { - var _p26 = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '_Tuple2', _0: bidAmount, _1: nextBidAmount}, - A2( - _elm_lang$core$Maybe$map, - function (customBidInput) { - return { - ctor: '_Tuple2', - _0: customBidInput, - _1: A2( - _Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, - _elm_lang$core$Native_Utils.update( - _p28, - { - currentPrice: _elm_lang$core$Maybe$Just(customBidInput) - }), - model) - }; - }, - model.customBidInput)); - var customBidAmount = _p26._0; - var nextCustomBidAmount = _p26._1; - return A6(_Gizra$circuit_bid$Pages_Clerk_Utils$customFloorBidButton, model, _p29, saleUuid, _p28.status, customBidAmount, nextCustomBidAmount); - }(); - var nextFloorBidButton = A5(_Gizra$circuit_bid$Pages_Clerk_Utils$nextFloorBidButton, _p29, saleUuid, _p28.status, bidAmount, nextBidAmount); - var customBidInput = function () { - var _p27 = model.customBidInput; - if (_p27.ctor === 'Just') { - return _elm_lang$core$Basics$toString(_p27._0._0); - } else { - return ''; - } - }(); - return { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn place-bid next-bid', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: nextFloorBidButton.disabled}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: nextFloorBidButton.loading}, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }, - onClickBidPlaceAttr(nextFloorBidButton.msg)), - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$AddNextBid, bidAmount, currency)), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('shortcut'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('F9'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Or), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$form, - A2( - _elm_lang$core$List$append, - onSubmitBidPlaceAttr(customFloorBidButton.msg), - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript: void(0)'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('next-bid'), - _1: {ctor: '[]'} - } - }), - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('enter-bid'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$NextBid)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'enter-bid', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: nextFloorBidButton.disabled}, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$CustomBidAmountUpdate), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(customBidInput), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(nextFloorBidButton.disabled), - _1: {ctor: '[]'} - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn button add-bid', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: customFloorBidButton.disabled}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: customFloorBidButton.loading}, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-chevron-right'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A5( - _Gizra$circuit_bid$Pages_Clerk_View$viewLastToFloorButton, - language, - model, - saleUuid, - {ctor: '_Tuple2', _0: _p29, _1: _p28}, - lastBidWasFloor), - _1: {ctor: '[]'} - } - } - } - }; - }); -var _Gizra$circuit_bid$Pages_Clerk_View$viewBidButtons = F4( - function (language, model, _p31, _p30) { - var _p32 = _p31; - var _p41 = _p32._1; - var _p33 = _p30; - var _p40 = _p33._0; - var maybeErrorMessage = function () { - var _p34 = model.itemChangeRequest; - if (_p34.ctor === 'Failure') { - var _p35 = _p34._0; - if (_p35.ctor === 'Http') { - return A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, _p35._0); - } else { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('alert alert-danger'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p35._0), - _1: {ctor: '[]'} - }); - } - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var _p36 = _krisajenkins$remotedata$RemoteData$toMaybe(_p33._1.calculated); - if (_p36.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p39 = _p36._0; - var lastBidWasFloor = A2( - _elm_lang$core$Maybe$withDefault, - false, - A2( - _elm_lang$core$Maybe$map, - _Gizra$circuit_bid$Bid_Utils$isFloorBid, - _Gizra$circuit_bid$Item_Utils$getWinningBid(_p39))); - var isLoading = _elm_lang$core$Native_Utils.eq(model.itemChangeRequest, _krisajenkins$remotedata$RemoteData$Loading); - var bidAmount = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$nextBidAmountForClerk, _p39, model); - var currentBidStepAmount = function () { - var _p37 = {ctor: '_Tuple2', _0: _p39.nextPrice, _1: _p39.currentPrice}; - if (((_p37.ctor === '_Tuple2') && (_p37._0.ctor === 'Just')) && (_p37._1.ctor === 'Just')) { - return A2(_Gizra$circuit_bid$Amount$subtract, _p37._0._0, _p37._1._0); - } else { - return _Gizra$circuit_bid$Amount$zero; - } - }(); - var highestPrice = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$getPriceForClerk, _p39, model); - var lastBidAmount = function () { - var _p38 = highestPrice; - if (_p38.ctor === 'Opening') { - return _Gizra$circuit_bid$Amount$zero; - } else { - return _p38._0; - } - }(); - var addStep = function (bid) { - return A2( - _Gizra$circuit_bid$Amount$add, - bid, - A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, _p39.bidSteps, bid)); - }; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerkapp'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bidding'), - _1: {ctor: '[]'} - }, - A7( - _Gizra$circuit_bid$Pages_Clerk_View$floorBidView, - language, - _p41.currency, - _p41.uuid, - model, - {ctor: '_Tuple2', _0: _p40, _1: _p39}, - bidAmount, - lastBidWasFloor)), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('itemstatus'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Pages_Clerk_View$itemStatusButtonsView, language, model, _p32._0, _p40, _p39.status, lastBidWasFloor), - _1: { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Pages_Clerk_View$bidStepView, language, _p41.currency, model, _p40, _p39.status, currentBidStepAmount), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item-status-error'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: maybeErrorMessage, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }); - } - }); -var _Gizra$circuit_bid$Pages_Clerk_View$viewCurrentItemInfo = F6( - function (currentDate, modelBackend, language, model, _p43, _p42) { - var _p44 = _p43; - var _p50 = _p44._1; - var _p45 = _p42; - var _p49 = _p45._1; - var _p46 = _krisajenkins$remotedata$RemoteData$toMaybe(_p49.calculated); - if (_p46.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p48 = _p46._0; - var priceOrWithdrawnDisplay = function () { - if (_Gizra$circuit_bid$Item_Utils$isWithdrawn(_p48.status)) { - return _Gizra$circuit_bid$Pages_Clerk_Utils$viewWithdrawnItem(language); - } else { - var highestPrice = A2(_Gizra$circuit_bid$Pages_Clerk_Utils$getPriceForClerk, _p48, model); - var _p47 = highestPrice; - if (_p47.ctor === 'Opening') { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-current-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('label opening'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Opening), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-amount'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, _p48.openingPrice, _p50.currency), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - } else { - return A3(_Gizra$circuit_bid$Pages_Clerk_Utils$clerkCurrentPriceView, language, highestPrice, _p50.currency); - } - } - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-current'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: priceOrWithdrawnDisplay, - _1: { - ctor: '::', - _0: A6( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewWinningBidder, - language, - _p50.currency, - modelBackend, - _p44._0, - {ctor: '_Tuple2', _0: _p45._0, _1: _p49}, - false), - _1: { - ctor: '::', - _0: A5(_Gizra$circuit_bid$Pages_Clerk_Utils$openingPriceEditor, language, _p48, _p50.currency, model.openingPriceForm, model.itemChangeRequest), - _1: { - ctor: '::', - _0: A5(_Gizra$circuit_bid$Pages_Clerk_Utils$viewNextPriceForClerkAndRally, currentDate, language, _p50, _p48, model), - _1: {ctor: '[]'} - } - } - } - }); - } - }); -var _Gizra$circuit_bid$Pages_Clerk_View$setAutoClerkStatus = F2( - function (language, _p51) { - var _p52 = _p51; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-auto-clerk'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$AutoClerkToggle), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('checkbox'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$checked( - _Gizra$circuit_bid$Sale_Utils$isAutoClerkEnabled(_p52._1.autoClerk)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onCheck( - _Gizra$circuit_bid$Pages_Clerk_Model$SetAutoClerkStatus(_p52._0)), - _1: {ctor: '[]'} - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$selectCurrentItem = F7( - function (language, saleBeingUpdated, itemBeingUpdated, saleUuid, maybeCurrentInputValue, currentItemId, items) { - var currentItemIsLoaded = A2(_Gizra$elm_dictlist$EveryDictList$member, currentItemId, items); - var lotInputValue = function () { - var _p53 = { - ctor: '_Tuple2', - _0: maybeCurrentInputValue, - _1: A2(_Gizra$elm_dictlist$EveryDictList$get, currentItemId, items) - }; - _v24_2: - do { - if (_p53.ctor === '_Tuple2') { - if (_p53._0.ctor === 'Just') { - return _p53._0._0; - } else { - if (_p53._1.ctor === 'Just') { - return _p53._1._0.lotId; - } else { - break _v24_2; - } - } - } else { - break _v24_2; - } - } while(false); - return ''; - }(); - var isLoading = saleBeingUpdated; - var maybeItem = A2( - _elm_lang$core$Maybe$andThen, - function (currentInputValue) { - return _Gizra$elm_dictlist$EveryDictList$head( - A2( - _Gizra$elm_dictlist$EveryDictList$filter, - F2( - function (_p54, item) { - return _elm_lang$core$Native_Utils.eq(item.lotId, currentInputValue); - }), - items)); - }, - maybeCurrentInputValue); - var _p55 = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - { - ctor: '_Tuple2', - _0: false, - _1: {ctor: '[]'} - }, - function (_p56) { - var _p57 = _p56; - return { - ctor: '_Tuple2', - _0: true, - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - A2(_Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentItem, saleUuid, _p57._0)), - _1: {ctor: '[]'} - } - }; - }, - maybeItem); - var itemExists = _p55._0; - var formAttr = _p55._1; - var isDisabled = itemBeingUpdated || ((_elm_community$maybe_extra$Maybe_Extra$isJust(maybeCurrentInputValue) && (!currentItemIsLoaded)) || (!itemExists)); - var buttonAttr = { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn now-bidding', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: isDisabled}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: isLoading}, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }; - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('nowbidding'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$form, - A2( - _elm_lang$core$List$append, - formAttr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript:void(0);'), - _1: {ctor: '[]'} - }), - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$NowBidding), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('text'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('enter-item'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(lotInputValue), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentItemSelection), - _1: {ctor: '[]'} - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - buttonAttr, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-chevron-right'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$statusMenuOption = F3( - function (language, currentStatus, displayedStatus) { - return A2( - _elm_lang$html$Html$option, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value( - _Gizra$circuit_bid$Sale_Encoder$statusToEncodingString(displayedStatus)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$selected( - _elm_lang$core$Native_Utils.eq(currentStatus, displayedStatus)), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Sale_View$statusToString, language, displayedStatus)), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$decodeTargetStatus = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'target', - _1: { - ctor: '::', - _0: 'value', - _1: {ctor: '[]'} - } - }, - _Gizra$circuit_bid$Sale_Decoder$decodeStatus); -var _Gizra$circuit_bid$Pages_Clerk_View$selectSaleStatus = F3( - function (language, saleUuid, currentStatus) { - var applyPartial = A2(_Gizra$circuit_bid$Pages_Clerk_View$statusMenuOption, language, currentStatus); - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('salestatus'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$select, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html_Events$on, - 'change', - A2( - _elm_lang$core$Json_Decode$map, - _Gizra$circuit_bid$Pages_Clerk_Model$SetSaleStatus(saleUuid), - _Gizra$circuit_bid$Pages_Clerk_View$decodeTargetStatus)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$ClosedNotStarted), - _1: { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$MailAuctionOpen), - _1: { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$PausedStartingSoon), - _1: { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$LiveAuctionOpen), - _1: { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$PausedBackShortly), - _1: { - ctor: '::', - _0: applyPartial(_Gizra$circuit_bid$Sale_Model$ClosedEnded), - _1: {ctor: '[]'} - } - } - } - } - } - }), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$decodeTargetSessionId = A2( - _elm_lang$core$Json_Decode$at, - { - ctor: '::', - _0: 'target', - _1: { - ctor: '::', - _0: 'value', - _1: {ctor: '[]'} - } - }, - _Gizra$elm_restful$Restful_Endpoint$decodeEntityId); -var _Gizra$circuit_bid$Pages_Clerk_View$sessionOption = F2( - function (currentSessionId, _p58) { - var _p59 = _p58; - var _p60 = _p59._0; - return A2( - _elm_lang$html$Html$option, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('session'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value( - _elm_lang$core$Basics$toString( - _Gizra$elm_restful$Restful_Endpoint$fromEntityId(_p60))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$selected( - _elm_lang$core$Native_Utils.eq(currentSessionId, _p60)), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p59._1.name), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$selectSaleSession = F6( - function (language, saleBeingUpdated, saleUuid, currentId, currentSessionId, dict) { - var currentSessionIsLoaded = A2(_Gizra$elm_dictlist$EveryDictList$member, currentSessionId, dict); - var buttonAttr = function () { - var _p61 = currentId; - if (_p61.ctor === 'Just') { - var _p62 = _p61._0; - return { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'disabled', - _1: saleBeingUpdated || _elm_lang$core$Native_Utils.eq(currentSessionId, _p62) - }, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: saleBeingUpdated || (!currentSessionIsLoaded)}, - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2(_Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentSession, saleUuid, _p62)), - _1: {ctor: '[]'} - } - }; - } else { - return { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'btn disabled', _1: true}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: saleBeingUpdated}, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }; - } - }(); - var options = A2( - _elm_lang$core$List$map, - function (_p63) { - var _p64 = _p63; - return A2( - _Gizra$circuit_bid$Pages_Clerk_View$sessionOption, - currentSessionId, - {ctor: '_Tuple2', _0: _p64._0, _1: _p64._1}); - }, - _Gizra$elm_dictlist$EveryDictList$toList(dict)); - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('salessession'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$CurrentSession), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$select, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html_Events$on, - 'change', - A2(_elm_lang$core$Json_Decode$map, _Gizra$circuit_bid$Pages_Clerk_Model$SetCurrentSessionSelection, _Gizra$circuit_bid$Pages_Clerk_View$decodeTargetSessionId)), - _1: {ctor: '[]'} - }, - options), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - buttonAttr, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-chevron-right'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$pausedMessageEditor = F3( - function (language, status, editData) { - var inputValue = _elm_lang$html$Html_Attributes$value( - _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editData))); - var isLoading = A2( - F2( - function (x, y) { - return _elm_lang$core$Native_Utils.eq(x, y); - }), - _krisajenkins$remotedata$RemoteData$Loading, - _Gizra$elm_editable_webdata$Editable_WebData$toWebData(editData)); - var saleIsPaused = _elm_lang$core$Native_Utils.eq(status, _Gizra$circuit_bid$Sale_Model$PausedStartingSoon) || _elm_lang$core$Native_Utils.eq(status, _Gizra$circuit_bid$Sale_Model$PausedBackShortly); - return A2( - _Gizra$circuit_bid$Utils_Html$showIf, - saleIsPaused, - A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pausedtext'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('public-message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('text'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('pausedmessage'), - _1: { - ctor: '::', - _0: inputValue, - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Pages_Clerk_Model$SetPausedMessage), - _1: {ctor: '[]'} - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('button primary send-public-message'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Clerk_Model$SubmitPausedMessage), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'loading', _1: isLoading}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$UpdatePausedMessage), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - })); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$clerkSaleView = F7( - function (config, currentDate, language, user, modelBackend, model, _p65) { - var _p66 = _p65; - var _p69 = _p66._0; - var _p68 = _p66._1; - var creditRequests = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-requests'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-request-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$CreditRequests), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A5(_Gizra$circuit_bid$Pages_Clerk_Utils$creditRequestTable, language, _p68.currency, _p69, _Gizra$circuit_bid$Pages_Clerk_Model$UpdateCreditRequestStatus, modelBackend), - _1: {ctor: '[]'} - } - }); - var stream = A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - A5( - _Gizra$circuit_bid$Message_View$viewActivityStream, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p69, _1: _p68}, - model.item.items), - _krisajenkins$remotedata$RemoteData$toMaybe(model.publicMessages)); - var saleBeingUpdated = _Gizra$circuit_bid$QueuedRequest_Utils$queuedRequestLoading(model.queuedSaleUpdateRequestState); - var itemBeingUpdated = _krisajenkins$remotedata$RemoteData$isLoading(model.itemChangeRequest) || _Gizra$circuit_bid$QueuedRequest_Utils$queuedRequestLoading(model.queuedItemUpdateRequestState); - var items = model.item.items; - var _p67 = function () { - var applyPartial = function (f) { - return A3( - _Gizra$circuit_bid$Sale_View$showMaybeItemTuple, - _p68, - items, - A3( - f, - language, - model, - {ctor: '_Tuple2', _0: _p69, _1: _p68})); - }; - return { - ctor: '_Tuple4', - _0: applyPartial( - A2(_Gizra$circuit_bid$Pages_Clerk_View$viewCurrentItemInfo, currentDate, modelBackend)), - _1: applyPartial(_Gizra$circuit_bid$Pages_Clerk_View$viewBidButtons), - _2: applyPartial(_Gizra$circuit_bid$Pages_Clerk_View$viewClerkCurrentItem), - _3: A3( - _Gizra$circuit_bid$Sale_View$showMaybeItemTuple, - _p68, - items, - A4( - _Gizra$circuit_bid$Pages_Clerk_Utils$viewItemBidsList, - model.queuedBids, - language, - modelBackend, - {ctor: '_Tuple2', _0: _p69, _1: _p68})) - }; - }(); - var currentItemInfo = _p67._0; - var buttons = _p67._1; - var staticInfo = _p67._2; - var bidsList = _p67._3; - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('top-clerk'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('container'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('row'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A6(_Gizra$circuit_bid$Pages_Clerk_View$selectSaleSession, language, saleBeingUpdated, _p69, model.currentSessionSelection, _p68.session, _p68.sessions), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Clerk_View$selectSaleStatus, language, _p69, _p68.status), - _1: { - ctor: '::', - _0: A7(_Gizra$circuit_bid$Pages_Clerk_View$selectCurrentItem, language, saleBeingUpdated, itemBeingUpdated, _p69, model.currentItemSelection, _p68.item, items), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Pages_Clerk_View$setAutoClerkStatus, - language, - {ctor: '_Tuple2', _0: _p69, _1: _p68}), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Clerk_View$pausedMessageEditor, language, _p68.status, model.pausedMessageInput), - _1: {ctor: '[]'} - } - } - } - } - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk-main'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: currentItemInfo, - _1: { - ctor: '::', - _0: buttons, - _1: { - ctor: '::', - _0: staticInfo, - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clerk blocks'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids list'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Bids), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: bidsList, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('closed bids'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bids-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Closed), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('extension-head'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('extension'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('E!'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A7(_Gizra$circuit_bid$Pages_Clerk_Utils$closedItems, language, _p68.currency, modelBackend, _p69, items, _p68.item, model.editableBidderIds), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('right'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: creditRequests, - _1: { - ctor: '::', - _0: stream, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Backend_ConnectedUser_View$viewConnectedUsers, language, _p68.currency, modelBackend, _p68.uuid), - _1: { - ctor: '::', - _0: A3( - _Gizra$circuit_bid$Pages_Clerk_View$viewDebug, - config, - {ctor: '_Tuple2', _0: _p69, _1: _p68}, - model), - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Clerk_View$view = F8( - function (config, date, language, user, modelBackend, saleUuid, isClerkPage, model) { - var _p70 = model.sale; - if (_p70.ctor === 'Success') { - var _p71 = _p70._0; - var pageRender = isClerkPage ? _Gizra$circuit_bid$Pages_Clerk_View$clerkSaleView : _Gizra$circuit_bid$Pages_Auctioneer_View$view; - return A2( - _Gizra$circuit_bid$Utils_Html$showIf, - A2(_elm_lang$core$List$member, language, _p71.languages), - A7( - pageRender, - config, - date, - language, - user, - modelBackend, - model, - {ctor: '_Tuple2', _0: saleUuid, _1: _p71})); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); - -var _Gizra$circuit_bid$Pages_PageNotFound_View$view = function (language) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui segment center aligned'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h2, - {ctor: '[]'}, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$PageNotFound), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); -}; - -var _fapian$elm_html_aria$Html_Attributes_Aria$role = _elm_lang$html$Html_Attributes$attribute('role'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaSelected = _elm_lang$html$Html_Attributes$attribute('aria-selected'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaLive = _elm_lang$html$Html_Attributes$attribute('aria-live'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaLabelledby = _elm_lang$html$Html_Attributes$attribute('aria-labelledby'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaLabel = _elm_lang$html$Html_Attributes$attribute('aria-label'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaHasPopup = _elm_lang$html$Html_Attributes$attribute('aria-haspopup'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaExpanded = _elm_lang$html$Html_Attributes$attribute('aria-expanded'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaDescribedby = _elm_lang$html$Html_Attributes$attribute('aria-describedby'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaControls = _elm_lang$html$Html_Attributes$attribute('aria-controls'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaChecked = _elm_lang$html$Html_Attributes$attribute('aria-checked'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaActiveDescendant = _elm_lang$html$Html_Attributes$attribute('aria-activedescendant'); -var _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute = F2( - function (name, val) { - return A2( - _elm_lang$html$Html_Attributes$attribute, - name, - A2( - _elm_lang$core$Json_Encode$encode, - 0, - _elm_lang$core$Json_Encode$bool(val))); - }); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaDisabled = _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute('aria-disabled'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaHidden = _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute('aria-hidden'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaPressed = _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute('aria-pressed'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaReadonly = _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute('aria-readonly'); -var _fapian$elm_html_aria$Html_Attributes_Aria$ariaRequired = _fapian$elm_html_aria$Html_Attributes_Aria$boolAttribute('aria-required'); - -var _Gizra$circuit_bid$Login_View$view = F5( - function (backOfficeUrl, language, siteShortName, _p0, formStyle) { - var _p1 = _p0; - var _p10 = _p1.status; - var _p9 = _p1.loginForm; - var emailInputBlock = function () { - var _p2 = formStyle; - if (_p2.ctor === 'SalePage') { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-type-textfield col-sm-4 col-xs-6'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$label, - {ctor: '[]'}, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Email), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-control form-text required'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'maxlength', '60'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('edit-name'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('email'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Login_Model$SetName), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$pattern('\\S+'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$placeholder( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Email)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('text'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(_p9.name), - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }); - } else { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-item'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('control-label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Email), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-control form-text required'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'maxlength', '240'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'data-toggle', 'tooltip'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('edit-name'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('email'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Login_Model$SetName), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$pattern('\\S+'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$placeholder( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Email)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('text'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(_p9.name), - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }); - } - }(); - var blockClassName = function () { - var _p3 = formStyle; - if (_p3.ctor === 'SalePage') { - return 'login col-xs-12'; - } else { - return 'col-md-6 col-sm-8 user'; - } - }(); - var titleBlock = function () { - var _p4 = formStyle; - if (_p4.ctor === 'LoginPage') { - return { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('user-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$SignInToYourAccount), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }; - } else { - return {ctor: '[]'}; - } - }(); - var forgotPasswordLink = A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2(_Gizra$circuit_bid$Utils_Urls$forgotPasswordHref, language, siteShortName)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('forgotlink'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$ForgotYourPassword), - _1: {ctor: '[]'} - }); - var enterYourPassword = A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$EnterYourPassword); - var passwordInputBlock = function () { - var _p5 = formStyle; - if (_p5.ctor === 'SalePage') { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-type-password col-sm-4 col-xs-6'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'data-toggle', 'tooltip'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$label, - { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'for', 'edit-pass'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Password), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _fapian$elm_html_aria$Html_Attributes_Aria$ariaLabel(enterYourPassword), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-control form-text required'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('edit-pass'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'maxlength', '128'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'size', '25'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('pass[pass1]'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Login_Model$SetPassword), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$pattern('\\S+'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$placeholder( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Password)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('password'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(_p9.pass), - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('glyphicon form-control-feedback'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - }); - } else { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-item form-item-pass-pass1 form-type-password form-group has-feedback'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('control-label'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'for', 'edit-pass-pass1'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Password), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _fapian$elm_html_aria$Html_Attributes_Aria$ariaLabel(enterYourPassword), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('password-field form-control form-text password-processed'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('edit-pass'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'maxlength', '128'), - _1: { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'size', '25'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('pass[pass1]'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput(_Gizra$circuit_bid$Login_Model$SetPassword), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$pattern('\\S+'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$placeholder( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Password)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('password'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(_p9.pass), - _1: {ctor: '[]'} - } - } - } - } - } - } - } - } - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('glyphicon form-control-feedback'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - }); - } - }(); - var alert = function () { - var _p6 = _p10; - if (_p6.ctor === 'Failure') { - var _p7 = _p6._0; - return _Gizra$circuit_bid$Error_Utils$is401(_p7) ? A3(_Gizra$circuit_bid$Alert$viewAlert, language, _Gizra$circuit_bid$Currency_Model$EUR, _Gizra$circuit_bid$Alert$UnrecognizedCredentials) : A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, _p7); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var isLoading = _krisajenkins$remotedata$RemoteData$isLoading(_p10); - var submitBlock = function () { - var _p8 = formStyle; - if (_p8.ctor === 'SalePage') { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-submit col-sm-4 col-xs-12'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn btn-default form-submit'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('submit'), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: isLoading ? A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}) : A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$SignInNow), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - } else { - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-item form-checkboxes'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('control-label'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('checkbox'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$name('accept_terms'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-checkbox required'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: {ctor: '[]'} - } - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-actions form-wrapper'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn form-submit'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(isLoading), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('submit'), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: isLoading ? A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}) : A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$SignInNow), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - } - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class(blockClassName), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$form, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - _Gizra$circuit_bid$Login_Model$TryLogin(siteShortName)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$action('javascript:void(0);'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('login-form'), - _1: {ctor: '[]'} - } - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - A2( - _elm_lang$core$Basics_ops['++'], - titleBlock, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('field-type-text'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: emailInputBlock, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: passwordInputBlock, - _1: { - ctor: '::', - _0: submitBlock, - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - !_elm_lang$core$Native_Utils.eq(formStyle, _Gizra$circuit_bid$Login_Model$SalePage), - A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-item remember'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: forgotPasswordLink, - _1: {ctor: '[]'} - })), - _1: {ctor: '[]'} - } - } - } - })), - _1: { - ctor: '::', - _0: alert, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - _elm_lang$core$Native_Utils.eq(formStyle, _Gizra$circuit_bid$Login_Model$SalePage), - A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('forgotpass col-xs-12'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2( - _elm_lang$core$Basics_ops['++'], - backOfficeUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$circuit_bid$Translate$languageToCode(language), - '/register')))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pipeline join'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Register), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2( - _elm_lang$core$Basics_ops['++'], - backOfficeUrl, - A2( - _elm_lang$core$Basics_ops['++'], - '/', - A2( - _elm_lang$core$Basics_ops['++'], - _Gizra$circuit_bid$Translate$languageToCode(language), - '/forgot_password')))), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$ForgotYourPassword), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - })), - _1: {ctor: '[]'} - } - }); - }); - -var _Gizra$circuit_bid$Pages_Sale_Utils$getPriceForBidder = F2( - function (calculated, model) { - var highestPriceByItem = _Gizra$circuit_bid$Item_Utils$getPrice(calculated); - return A2( - _elm_lang$core$Maybe$withDefault, - highestPriceByItem, - A2( - _elm_lang$core$Maybe$map, - function (clerkHighestQueuedBid) { - var _p0 = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice(highestPriceByItem); - var priceByItem = _p0._0; - return _Gizra$circuit_bid$Item_Model$Current( - _Gizra$circuit_bid$Amount$Amount( - A2(_elm_lang$core$Basics$max, priceByItem, clerkHighestQueuedBid))); - }, - model.clerkHighestQueuedBidData.bid)); - }); -var _Gizra$circuit_bid$Pages_Sale_Utils$nextBidAmountForBidder = F2( - function (calculated, model) { - return A2( - _elm_lang$core$Maybe$withDefault, - function () { - var currentPrice = A2(_Gizra$circuit_bid$Pages_Sale_Utils$getPriceForBidder, calculated, model); - var currentAmount = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice(currentPrice); - var _p1 = currentPrice; - if (_p1.ctor === 'Opening') { - return currentAmount; - } else { - var nextBidIncrement = A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, calculated.bidSteps, currentAmount); - return A2(_Gizra$circuit_bid$Amount$add, currentAmount, nextBidIncrement); - } - }(), - A2(_elm_lang$core$Maybe$map, _Gizra$circuit_bid$Amount$Amount, model.clerkHighestQueuedBidData.nextBid)); - }); -var _Gizra$circuit_bid$Pages_Sale_Utils$generateAmountsInOtherCurrencies = F2( - function (sale, amount) { - return A2( - _elm_lang$core$List$filterMap, - function (_p2) { - var _p3 = _p2; - var _p4 = _p3._0; - if (_elm_lang$core$Native_Utils.eq(_p4, sale.currency)) { - return _elm_lang$core$Maybe$Nothing; - } else { - var locale = _Gizra$circuit_bid$Amount$getLocalFromCurrency(_p4); - var value = A2( - _cuducos$elm_format_number$FormatNumber$format, - _elm_lang$core$Native_Utils.update( - locale, - {decimals: 0}), - _elm_lang$core$Basics$toFloat( - _Gizra$circuit_bid$Amount$extract(amount)) * _p3._1); - return _elm_lang$core$Maybe$Just( - _elm_lang$core$String$concat( - A3(_Gizra$circuit_bid$Amount$showWithCurrency, _elm_lang$core$Basics$identity, _p4, value))); - } - }, - _eeue56$elm_all_dict$EveryDict$toList(sale.currenciesInfo)); - }); - -var _Gizra$circuit_bid$Pages_Room_View$sidebar = F3( - function (language, sale, item) { - var _p0 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p0.ctor === 'Just') { - var _p5 = _p0._0; - var _p1 = A2(_Gizra$circuit_bid$Pages_Auctioneer_Utils$getClassAndNameFromStatus, language, _p5.status); - var statusClass = _p1._0; - var statusName = _p1._1; - var bidderType = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - '', - _Gizra$circuit_bid$Bid_Utils$getBidTypeAsString(language), - _Gizra$circuit_bid$Item_Utils$getWinningBid(_p5)); - var bidderTypeHtml = _Gizra$circuit_bid$Item_Utils$isPaused(_p5.status) ? {ctor: '[]'} : { - ctor: '::', - _0: _elm_lang$html$Html$text(bidderType), - _1: {ctor: '[]'} - }; - var currency = sale.currency; - var estimatedPrice = A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (price) { - return A2( - _elm_lang$html$Html$p, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$Estimate, currency, price)), - _1: {ctor: '[]'} - }); - }, - item.estimatedPrice); - var itemPriceHtml = function () { - if (_Gizra$circuit_bid$Item_Utils$isPaused(_p5.status)) { - return {ctor: '[]'}; - } else { - var viewAmountsInOtherCurrencies = function (amount_) { - return _elm_lang$core$List$singleton( - A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('other-currencies'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$map, - function (amountInOtherCurrency) { - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text(amountInOtherCurrency), - _1: {ctor: '[]'} - }); - }, - A2(_Gizra$circuit_bid$Pages_Sale_Utils$generateAmountsInOtherCurrencies, sale, amount_)))); - }; - var _p2 = _Gizra$circuit_bid$Item_Utils$getPrice(_p5); - if (_p2.ctor === 'Current') { - var _p3 = _p2._0; - return A2( - _elm_lang$core$Basics_ops['++'], - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$RoomCurrentPriceAmount, _p3, currency)), - viewAmountsInOtherCurrencies(_p3)); - } else { - var _p4 = _p2._0; - return _elm_lang$core$Native_Utils.eq(_p4, _Gizra$circuit_bid$Amount$zero) ? { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Offer), - _1: {ctor: '[]'} - } : A2( - _elm_lang$core$Basics_ops['++'], - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$RoomOpeningPriceAmount, _p4, currency)), - viewAmountsInOtherCurrencies(_p4)); - } - } - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-left'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-item-info'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-lot-num'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - _Gizra$circuit_bid$Translate$LotValue(item.lotId)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-item-title'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$Basics_ops['++'], - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$StartWithAmount, currency, _p5.startingPrice)), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - _elm_lang$core$List$singleton, - A2( - _elm_lang$core$Maybe$map, - _Gizra$circuit_bid$Translate$translateText(language), - A2( - _elm_lang$core$Maybe$map, - _Gizra$circuit_bid$Translate$Estimate(currency), - item.estimatedPrice)))))), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-current-price'), - _1: {ctor: '[]'} - }, - itemPriceHtml), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-bidder'), - _1: {ctor: '[]'} - }, - bidderTypeHtml), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class( - A2(_elm_lang$core$Basics_ops['++'], 'room-item-status ', statusClass)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(statusName), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - _Gizra$circuit_bid$Item_Utils$isWithdrawn(_p5.status), - _Gizra$circuit_bid$Pages_Clerk_Utils$viewWithdrawnItem(language)), - _1: {ctor: '[]'} - } - } - } - } - } - }), - _1: {ctor: '[]'} - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Room_View$startingSoon = F2( - function (language, _p6) { - var _p7 = _p6; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-starting-soon'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('start-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-gavel'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$PausedStartingSoon), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('start-text'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(_p7._1.pausedMessage), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Room_View$view = F8( - function (currentDate, parentBaseUrl, language, user, modelBackend, _p8, model, maybePublicMessages) { - var _p9 = _p8; - var _p14 = _p9._1; - var sessionTitle = A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Utils_Html$emptyNode, - A2( - _elm_lang$core$Maybe$map, - function (session) { - return _elm_lang$html$Html$text(session.name); - }, - A2(_Gizra$elm_dictlist$EveryDictList$get, _p14.session, _p14.sessions))); - var startingSoonHtml = A2( - _Gizra$circuit_bid$Pages_Room_View$startingSoon, - language, - {ctor: '_Tuple2', _0: _p9._0, _1: _p14}); - var items = model.item.items; - var _p10 = _p14.status; - if (_p10.ctor === 'LiveAuctionOpen') { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (_p11) { - var _p12 = _p11; - var _p13 = _p12._1; - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-top-welcome col-sm-12'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-sm-1 room-logo-left'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(_p14.siteLogoUrl), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-sm-10 room-top-labels'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2( - _elm_lang$core$Basics_ops['++'], - _p14.siteLabel, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p14.label))), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('session-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: sessionTitle, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-sm-1 room-logo-right'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(_p14.siteLogoUrl), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-bg'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Room_View$sidebar, language, _p14, _p13), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-right'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-image-block'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(_p13.image.original), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (description) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-items-desciption'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$p, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html_Attributes$property, - 'innerHTML', - _elm_lang$core$Json_Encode$string(description)), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - }, - _p13.description), - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('clearfix'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - } - }); - }, - function (id) { - return A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, id, items); - }(_p14.item)); - } else { - return startingSoonHtml; - } - }); - -var _mgold$elm_date_format$Date_Local$dutch = { - date: { - months: {jan: 'januari', feb: 'februari', mar: 'maart', apr: 'april', may: 'mei', jun: 'juni', jul: 'juli', aug: 'augustus', sep: 'september', oct: 'oktober', nov: 'november', dec: 'december'}, - monthsAbbrev: {jan: 'jan', feb: 'feb', mar: 'mrt', apr: 'apr', may: 'mei', jun: 'jun', jul: 'jul', aug: 'aug', sep: 'sep', oct: 'okt', nov: 'nov', dec: 'dec'}, - wdays: {mon: 'maandag', tue: 'dinsdag', wed: 'woensdag', thu: 'donderdag', fri: 'vrijdag', sat: 'zaterdag', sun: 'zondag'}, - wdaysAbbrev: {mon: 'ma', tue: 'di', wed: 'wo', thu: 'do', fri: 'vr', sat: 'za', sun: 'zo'}, - defaultFormat: _elm_lang$core$Maybe$Nothing - }, - time: { - am: 'am', - pm: 'pm', - defaultFormat: _elm_lang$core$Maybe$Just('%H:%M') - }, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$greek = { - date: { - months: {jan: 'Ιανουαρίου', feb: 'Φεβρουαρίου', mar: 'Μαρτίου', apr: 'Απριλίου', may: 'Μαΐου', jun: 'Ιουνίου', jul: 'Ιουλίου', aug: 'Αυγούστου', sep: 'Σεπτεμβρίου', oct: 'Οκτωβρίου', nov: 'Νοεμβρίου', dec: 'Δεκεμβρίου'}, - monthsAbbrev: {jan: 'Ιαν', feb: 'Φεβ', mar: 'Μαρ', apr: 'Απρ', may: 'Μαϊ', jun: 'Ιουν', jul: 'Ιουλ', aug: 'Αυγ', sep: 'Σεπ', oct: 'Οκτ', nov: 'Νοε', dec: 'Δεκ'}, - wdays: {mon: 'Δευτέρα', tue: 'Τρίτη', wed: 'Τετάρτη', thu: 'Πέμπτη', fri: 'Παρασκευή', sat: 'Σάββατο', sun: 'Κυριακή'}, - wdaysAbbrev: {mon: 'Δευ', tue: 'Τρι', wed: 'Τετ', thu: 'Πεμ', fri: 'Παρ', sat: 'Σαβ', sun: 'Κυρ'}, - defaultFormat: _elm_lang$core$Maybe$Nothing - }, - time: {am: 'πμ', pm: 'μμ', defaultFormat: _elm_lang$core$Maybe$Nothing}, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$german = { - date: { - months: {jan: 'Januar', feb: 'Februar', mar: 'März', apr: 'April', may: 'Mai', jun: 'Juni', jul: 'Juli', aug: 'August', sep: 'September', oct: 'Oktober', nov: 'November', dec: 'Dezember'}, - monthsAbbrev: {jan: 'Jan', feb: 'Feb', mar: 'Mär', apr: 'Apr', may: 'Mai', jun: 'Jun', jul: 'Jul', aug: 'Aug', sep: 'Sep', oct: 'Okt', nov: 'Nov', dec: 'Dez'}, - wdays: {mon: 'Montag', tue: 'Dienstag', wed: 'Mittwoch', thu: 'Donnerstag', fri: 'Freitag', sat: 'Samstag', sun: 'Sonntag'}, - wdaysAbbrev: {mon: 'Mo', tue: 'Di', wed: 'Mi', thu: 'Do', fri: 'Fr', sat: 'Sa', sun: 'So'}, - defaultFormat: _elm_lang$core$Maybe$Just('%e. %B %Y') - }, - time: { - am: 'am', - pm: 'pm', - defaultFormat: _elm_lang$core$Maybe$Just('%k:%M') - }, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$brazilian = { - date: { - months: {jan: 'Janeiro', feb: 'Fevereiro', mar: 'Março', apr: 'Abril', may: 'Maio', jun: 'Junho', jul: 'Julho', aug: 'Agosto', sep: 'Setembro', oct: 'Outubro', nov: 'Novembro', dec: 'Dezembro'}, - monthsAbbrev: {jan: 'Jan', feb: 'Fev', mar: 'Mar', apr: 'Abr', may: 'Mai', jun: 'Jun', jul: 'Jul', aug: 'Ago', sep: 'Set', oct: 'Out', nov: 'Nov', dec: 'Dez'}, - wdays: {mon: 'Segunda-feira', tue: 'Terça-feira', wed: 'Quarta-feira', thu: 'Quinta-feira', fri: 'Sexta-feira', sat: 'Sábado', sun: 'Domingo'}, - wdaysAbbrev: {mon: 'Seg', tue: 'Ter', wed: 'Qua', thu: 'Qui', fri: 'Sex', sat: 'Sáb', sun: 'Dom'}, - defaultFormat: _elm_lang$core$Maybe$Just('%e de %B de %Y') - }, - time: { - am: 'am', - pm: 'pm', - defaultFormat: _elm_lang$core$Maybe$Just('%k:%M') - }, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$french = { - date: { - months: {jan: 'Janvier', feb: 'Février', mar: 'Mars', apr: 'Avril', may: 'Mai', jun: 'Juin', jul: 'Juillet', aug: 'Août', sep: 'Septembre', oct: 'Octobre', nov: 'Novembre', dec: 'Décembre'}, - monthsAbbrev: {jan: 'Jan', feb: 'Fév', mar: 'Mar', apr: 'Avr', may: 'Mai', jun: 'Jui', jul: 'Jul', aug: 'Aoû', sep: 'Sep', oct: 'Oct', nov: 'Nov', dec: 'Déc'}, - wdays: {mon: 'Lundi', tue: 'Mardi', wed: 'Mercredi', thu: 'Jeudi', fri: 'Vendredi', sat: 'Samedi', sun: 'Dimanche'}, - wdaysAbbrev: {mon: 'Lun', tue: 'Mar', wed: 'Mer', thu: 'Jeu', fri: 'Ven', sat: 'Sam', sun: 'Dim'}, - defaultFormat: _elm_lang$core$Maybe$Nothing - }, - time: {am: 'am', pm: 'pm', defaultFormat: _elm_lang$core$Maybe$Nothing}, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$international = { - date: { - months: {jan: 'January', feb: 'February', mar: 'March', apr: 'April', may: 'May', jun: 'June', jul: 'July', aug: 'August', sep: 'September', oct: 'October', nov: 'November', dec: 'December'}, - monthsAbbrev: {jan: 'Jan', feb: 'Feb', mar: 'Mar', apr: 'Apr', may: 'May', jun: 'Jun', jul: 'Jul', aug: 'Aug', sep: 'Sep', oct: 'Oct', nov: 'Nov', dec: 'Dec'}, - wdays: {mon: 'Monday', tue: 'Tuesday', wed: 'Wednesday', thu: 'Thursday', fri: 'Friday', sat: 'Saturday', sun: 'Sunday'}, - wdaysAbbrev: {mon: 'Mon', tue: 'Tue', wed: 'Wed', thu: 'Thu', fri: 'Fri', sat: 'Sat', sun: 'Sun'}, - defaultFormat: _elm_lang$core$Maybe$Nothing - }, - time: {am: 'am', pm: 'pm', defaultFormat: _elm_lang$core$Maybe$Nothing}, - timeZones: _elm_lang$core$Maybe$Nothing, - defaultFormat: _elm_lang$core$Maybe$Nothing -}; -var _mgold$elm_date_format$Date_Local$Local = F4( - function (a, b, c, d) { - return {date: a, time: b, timeZones: c, defaultFormat: d}; - }); -var _mgold$elm_date_format$Date_Local$Months = function (a) { - return function (b) { - return function (c) { - return function (d) { - return function (e) { - return function (f) { - return function (g) { - return function (h) { - return function (i) { - return function (j) { - return function (k) { - return function (l) { - return {jan: a, feb: b, mar: c, apr: d, may: e, jun: f, jul: g, aug: h, sep: i, oct: j, nov: k, dec: l}; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}; -var _mgold$elm_date_format$Date_Local$WeekDays = F7( - function (a, b, c, d, e, f, g) { - return {mon: a, tue: b, wed: c, thu: d, fri: e, sat: f, sun: g}; - }); - -var _mgold$elm_date_format$Date_Format$padWith = function (padding) { - var padder = function () { - var _p0 = padding; - switch (_p0.ctor) { - case 'NoPadding': - return _elm_lang$core$Basics$identity; - case 'Zero': - return A2( - _elm_lang$core$String$padLeft, - 2, - _elm_lang$core$Native_Utils.chr('0')); - case 'ZeroThreeDigits': - return A2( - _elm_lang$core$String$padLeft, - 3, - _elm_lang$core$Native_Utils.chr('0')); - default: - return A2( - _elm_lang$core$String$padLeft, - 2, - _elm_lang$core$Native_Utils.chr(' ')); - } - }(); - return function (_p1) { - return padder( - _elm_lang$core$Basics$toString(_p1)); - }; -}; -var _mgold$elm_date_format$Date_Format$zero2twelve = function (n) { - return _elm_lang$core$Native_Utils.eq(n, 0) ? 12 : n; -}; -var _mgold$elm_date_format$Date_Format$mod12 = function (h) { - return A2(_elm_lang$core$Basics_ops['%'], h, 12); -}; -var _mgold$elm_date_format$Date_Format$dayOfWeekToWord = F2( - function (loc, dow) { - var _p2 = dow; - switch (_p2.ctor) { - case 'Mon': - return loc.mon; - case 'Tue': - return loc.tue; - case 'Wed': - return loc.wed; - case 'Thu': - return loc.thu; - case 'Fri': - return loc.fri; - case 'Sat': - return loc.sat; - default: - return loc.sun; - } - }); -var _mgold$elm_date_format$Date_Format$monthToWord = F2( - function (loc, m) { - var _p3 = m; - switch (_p3.ctor) { - case 'Jan': - return loc.jan; - case 'Feb': - return loc.feb; - case 'Mar': - return loc.mar; - case 'Apr': - return loc.apr; - case 'May': - return loc.may; - case 'Jun': - return loc.jun; - case 'Jul': - return loc.jul; - case 'Aug': - return loc.aug; - case 'Sep': - return loc.sep; - case 'Oct': - return loc.oct; - case 'Nov': - return loc.nov; - default: - return loc.dec; - } - }); -var _mgold$elm_date_format$Date_Format$monthToInt = function (m) { - var _p4 = m; - switch (_p4.ctor) { - case 'Jan': - return 1; - case 'Feb': - return 2; - case 'Mar': - return 3; - case 'Apr': - return 4; - case 'May': - return 5; - case 'Jun': - return 6; - case 'Jul': - return 7; - case 'Aug': - return 8; - case 'Sep': - return 9; - case 'Oct': - return 10; - case 'Nov': - return 11; - default: - return 12; - } -}; -var _mgold$elm_date_format$Date_Format$re = _elm_lang$core$Regex$regex('%(_|-|0)?(%|Y|y|m|B|b|d|e|a|A|H|k|I|l|L|p|P|M|S)'); -var _mgold$elm_date_format$Date_Format$ZeroThreeDigits = {ctor: 'ZeroThreeDigits'}; -var _mgold$elm_date_format$Date_Format$Zero = {ctor: 'Zero'}; -var _mgold$elm_date_format$Date_Format$Space = {ctor: 'Space'}; -var _mgold$elm_date_format$Date_Format$NoPadding = {ctor: 'NoPadding'}; -var _mgold$elm_date_format$Date_Format$formatToken = F3( - function (loc, d, m) { - var _p5 = function () { - var _p6 = m.submatches; - _v4_4: - do { - if (_p6.ctor === '::') { - if (_p6._0.ctor === 'Just') { - if (((_p6._1.ctor === '::') && (_p6._1._0.ctor === 'Just')) && (_p6._1._1.ctor === '[]')) { - switch (_p6._0._0) { - case '-': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Just(_mgold$elm_date_format$Date_Format$NoPadding), - _1: _p6._1._0._0 - }; - case '_': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Just(_mgold$elm_date_format$Date_Format$Space), - _1: _p6._1._0._0 - }; - case '0': - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Maybe$Just(_mgold$elm_date_format$Date_Format$Zero), - _1: _p6._1._0._0 - }; - default: - break _v4_4; - } - } else { - break _v4_4; - } - } else { - if (((_p6._1.ctor === '::') && (_p6._1._0.ctor === 'Just')) && (_p6._1._1.ctor === '[]')) { - return {ctor: '_Tuple2', _0: _elm_lang$core$Maybe$Nothing, _1: _p6._1._0._0}; - } else { - break _v4_4; - } - } - } else { - break _v4_4; - } - } while(false); - return {ctor: '_Tuple2', _0: _elm_lang$core$Maybe$Nothing, _1: ' '}; - }(); - var padding = _p5._0; - var symbol = _p5._1; - var _p7 = symbol; - switch (_p7) { - case '%': - return '%'; - case 'Y': - return _elm_lang$core$Basics$toString( - _elm_lang$core$Date$year(d)); - case 'y': - return A2( - _elm_lang$core$String$right, - 2, - _elm_lang$core$Basics$toString( - _elm_lang$core$Date$year(d))); - case 'm': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _mgold$elm_date_format$Date_Format$monthToInt( - _elm_lang$core$Date$month(d))); - case 'B': - return A2( - _mgold$elm_date_format$Date_Format$monthToWord, - loc.date.months, - _elm_lang$core$Date$month(d)); - case 'b': - return A2( - _mgold$elm_date_format$Date_Format$monthToWord, - loc.date.monthsAbbrev, - _elm_lang$core$Date$month(d)); - case 'd': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _elm_lang$core$Date$day(d)); - case 'e': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Space, padding), - _elm_lang$core$Date$day(d)); - case 'a': - return A2( - _mgold$elm_date_format$Date_Format$dayOfWeekToWord, - loc.date.wdaysAbbrev, - _elm_lang$core$Date$dayOfWeek(d)); - case 'A': - return A2( - _mgold$elm_date_format$Date_Format$dayOfWeekToWord, - loc.date.wdays, - _elm_lang$core$Date$dayOfWeek(d)); - case 'H': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _elm_lang$core$Date$hour(d)); - case 'k': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Space, padding), - _elm_lang$core$Date$hour(d)); - case 'I': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _mgold$elm_date_format$Date_Format$zero2twelve( - _mgold$elm_date_format$Date_Format$mod12( - _elm_lang$core$Date$hour(d)))); - case 'l': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Space, padding), - _mgold$elm_date_format$Date_Format$zero2twelve( - _mgold$elm_date_format$Date_Format$mod12( - _elm_lang$core$Date$hour(d)))); - case 'p': - return (_elm_lang$core$Native_Utils.cmp( - _elm_lang$core$Date$hour(d), - 12) < 0) ? _elm_lang$core$String$toUpper(loc.time.am) : _elm_lang$core$String$toUpper(loc.time.pm); - case 'P': - return (_elm_lang$core$Native_Utils.cmp( - _elm_lang$core$Date$hour(d), - 12) < 0) ? loc.time.am : loc.time.pm; - case 'M': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _elm_lang$core$Date$minute(d)); - case 'S': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$Zero, padding), - _elm_lang$core$Date$second(d)); - case 'L': - return A2( - _mgold$elm_date_format$Date_Format$padWith, - A2(_elm_lang$core$Maybe$withDefault, _mgold$elm_date_format$Date_Format$ZeroThreeDigits, padding), - _elm_lang$core$Date$millisecond(d)); - default: - return ''; - } - }); -var _mgold$elm_date_format$Date_Format$localFormat = F3( - function (loc, s, d) { - return A4( - _elm_lang$core$Regex$replace, - _elm_lang$core$Regex$All, - _mgold$elm_date_format$Date_Format$re, - A2(_mgold$elm_date_format$Date_Format$formatToken, loc, d), - s); - }); -var _mgold$elm_date_format$Date_Format$format = F2( - function (s, d) { - return A3(_mgold$elm_date_format$Date_Format$localFormat, _mgold$elm_date_format$Date_Local$international, s, d); - }); -var _mgold$elm_date_format$Date_Format$formatISO8601 = _mgold$elm_date_format$Date_Format$format('%Y-%m-%dT%H:%M:%SZ'); - -var _Gizra$circuit_bid$Utils_Date$toDateOnlyString = _mgold$elm_date_format$Date_Format$format('%d %B %Y'); -var _Gizra$circuit_bid$Utils_Date$toDateString = _mgold$elm_date_format$Date_Format$format('%d %b %m - %l:%M %p'); - -var _Gizra$circuit_bid$Pages_Sale_View$addLanguagePrefixToCreditRequest = F2( - function (currentLanguage, modelBackend) { - return A2( - _elm_lang$core$Maybe$withDefault, - true, - A2( - _elm_lang$core$Maybe$map, - function (_p0) { - var _p1 = _p0; - return !_elm_lang$core$Native_Utils.eq( - _p1._1.defaultLanguage, - _elm_lang$core$Maybe$Just(currentLanguage)); - }, - _krisajenkins$remotedata$RemoteData$toMaybe(modelBackend.site))); - }); -var _Gizra$circuit_bid$Pages_Sale_View$myCredit = F4( - function (language, _p2, user, modelBackend) { - var _p3 = _p2; - var _p8 = _p3._0; - var _p7 = _p3._1; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (bidderInfo) { - var creditRequestBlock = function () { - var _p4 = {ctor: '_Tuple2', _0: user, _1: modelBackend.creditRequests}; - if (((_p4.ctor === '_Tuple2') && (_p4._0.ctor === 'Authenticated')) && (_p4._1.ctor === 'Success')) { - var _p5 = A2(_Gizra$circuit_bid$Backend_CreditRequest_Utils$getPendingOrNew, _p4._0._0.uuid, _p4._1._0); - var storageKey = _p5._0; - var editable = _p5._1; - var pendingRequestInfo = function () { - if (_Gizra$elm_storage_key$StorageKey$isExisting(storageKey)) { - var pendingCredit = function (_) { - return _.credit; - }( - _stoeffel$editable$Editable$value( - _stoeffel$editable$Editable$cancel( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)))); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pending-request'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$PendingRequest, pendingCredit, _p7.currency))); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var record = _stoeffel$editable$Editable$value( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var amountAsString = A2( - _Gizra$circuit_bid$Translate$translateString, - language, - _Gizra$circuit_bid$Translate$AmountLimit(record.credit)); - var creditRequestInput = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('input-group'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$input, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('number'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('form-control'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$min('1'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$max( - _elm_lang$core$Basics$toString(_Gizra$circuit_bid$Utils_Number$maximalInt)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onInput( - _Gizra$circuit_bid$Pages_Sale_Model$CreditRequestSetAmount(storageKey)), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$value(amountAsString), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$required(true), - _1: {ctor: '[]'} - } - } - } - } - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - var submitButton = function () { - var isChanged = _stoeffel$editable$Editable$isDirty( - _Gizra$elm_editable_webdata$Editable_WebData$toEditable(editable)); - var isLoading = _Gizra$elm_storage_key$StorageKey$isExisting(storageKey) && _krisajenkins$remotedata$RemoteData$isLoading( - _Gizra$elm_editable_webdata$Editable_WebData$toWebData(editable)); - var _p6 = (isLoading || ((!isChanged) || _elm_lang$core$String$isEmpty(amountAsString))) ? { - ctor: '_Tuple3', - _0: true, - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(true), - _1: {ctor: '[]'} - }, - _2: {ctor: '[]'} - } : { - ctor: '_Tuple3', - _0: false, - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2(_Gizra$circuit_bid$Pages_Sale_Model$CreditRequestSave, _p8, storageKey)), - _1: {ctor: '[]'} - }, - _2: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onSubmit( - A2(_Gizra$circuit_bid$Pages_Sale_Model$CreditRequestSave, _p8, storageKey)), - _1: {ctor: '[]'} - } - }; - var buttonDisabled = _p6._0; - var clickAttr = _p6._1; - var formAttr = _p6._2; - var buttonAttr = A2( - _elm_lang$core$List$append, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn btn-default'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$disabled(buttonDisabled), - _1: {ctor: '[]'} - } - } - }, - clickAttr); - var buttonText = isLoading ? _Gizra$circuit_bid$Utils_Html$spinner : A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$RequestMoreCredit), - _1: {ctor: '[]'} - }); - return A2( - _elm_lang$html$Html$button, - buttonAttr, - { - ctor: '::', - _0: buttonText, - _1: {ctor: '[]'} - }); - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-request'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: pendingRequestInfo, - _1: { - ctor: '::', - _0: creditRequestInput, - _1: { - ctor: '::', - _0: submitButton, - _1: {ctor: '[]'} - } - } - }); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var addLanguagePrefix = A2(_Gizra$circuit_bid$Pages_Sale_View$addLanguagePrefixToCreditRequest, language, modelBackend); - var getAmountRestriction = function (tag) { - return A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Amount$Unlimited, - A2(_eeue56$elm_all_dict$EveryDict$get, tag, bidderInfo.amountRestrictions)); - }; - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-md-3 col-xs-12'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('credit-block'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$MyCredit), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-amount'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2( - _Gizra$circuit_bid$Translate$CreditLimit, - getAmountRestriction(_Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit), - _p7.currency))), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-amount'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2( - _Gizra$circuit_bid$Translate$BidderLimitWithAmount, - getAmountRestriction(_Gizra$circuit_bid$Backend_BidderInfo_Model$MaxBid), - _p7.currency))), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('credit-amount'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - A2(_Gizra$circuit_bid$Translate$TotalSpentAmount, bidderInfo.totalSpent, _p7.currency))), - _1: { - ctor: '::', - _0: creditRequestBlock, - _1: {ctor: '[]'} - } - } - } - } - }), - _1: {ctor: '[]'} - }); - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, _p8)); - }); -var _Gizra$circuit_bid$Pages_Sale_View$viewBidHistoryUnsoldRow = F5( - function (language, lotId, startingPrice, ownBidAmount, currency) { - return A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lotnum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('mybids'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, ownBidAmount, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('startprice'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, startingPrice, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('soldfor'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$NotSold), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('---'), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$viewBidHistorySoldRow = F7( - function (language, lotId, startingPrice, soldAmount, ownBidAmount, currency, isWinner) { - return A2( - _elm_lang$html$Html$tr, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'won', _1: isWinner}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lotnum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(lotId), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('mybids'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, ownBidAmount, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('startprice'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, startingPrice, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('soldfor'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Amount$showAmountWithCurrency, soldAmount, currency), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$td, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - isWinner, - A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$YouWonThisLot)), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$bidHistory = F6( - function (language, currency, user, modelBackend, saleUuid, itemDict) { - var rows = A2( - _elm_lang$core$List$filterMap, - function (item) { - var _p9 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p9.ctor === 'Nothing') { - return _elm_lang$core$Maybe$Nothing; - } else { - var _p12 = _p9._0; - var _p10 = A4(_Gizra$circuit_bid$Bid_Utils$getOwnHighestMailOrLiveBid, user, modelBackend, saleUuid, _p12); - if (_p10.ctor === 'Just') { - var _p11 = _p10._0; - if (_Gizra$circuit_bid$Item_Utils$isSold(_p12.status)) { - var isWinner = A4(_Gizra$circuit_bid$Item_Utils$isWinningUser, user, modelBackend, saleUuid, _p12); - var soldAmount = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice( - _Gizra$circuit_bid$Item_Utils$getPrice(_p12)); - return _elm_lang$core$Maybe$Just( - A7(_Gizra$circuit_bid$Pages_Sale_View$viewBidHistorySoldRow, language, item.lotId, _p12.startingPrice, soldAmount, _p11.amount, currency, isWinner)); - } else { - if (_Gizra$circuit_bid$Item_Utils$isUnsold(_p12.status)) { - return _elm_lang$core$Maybe$Just( - A5(_Gizra$circuit_bid$Pages_Sale_View$viewBidHistoryUnsoldRow, language, item.lotId, _p12.startingPrice, _p11.amount, currency)); - } else { - return _elm_lang$core$Maybe$Nothing; - } - } - } else { - return _elm_lang$core$Maybe$Nothing; - } - } - }, - _elm_lang$core$List$reverse( - _Gizra$elm_dictlist$EveryDictList$values(itemDict))); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-md-9 col-xs-12'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$table, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('history tabletop'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$thead, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$tr, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$th, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lotnum'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Lot)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$th, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('mybids'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$MyBidTitle)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$th, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('startprice'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$StartPrice)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$th, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('soldfor'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text( - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$SoldForTitle)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$th, - {ctor: '[]'}, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - } - } - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('tablewrapper'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$table, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('history'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('bid-history-table'), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$tbody, - {ctor: '[]'}, - rows), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$carouselItem = F3( - function (language, sale, _p13) { - var _p14 = _p13; - var _p18 = _p14._0; - var _p17 = _p14._1; - var isActiveItem = _elm_lang$core$Native_Utils.eq(sale.item, _p18); - var lotText = A2( - _elm_lang$core$Basics_ops['++'], - _p17.lotId, - isActiveItem ? A2( - _elm_lang$core$Basics_ops['++'], - ' ', - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$Live)) : ''); - var overlayText = function () { - var _p15 = _krisajenkins$remotedata$RemoteData$toMaybe(_p17.calculated); - if (_p15.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var _p16 = _p15._0; - if (_Gizra$circuit_bid$Item_Utils$isSold(_p16.status)) { - var soldAmount = _Gizra$circuit_bid$Item_Utils$getAmountFromPrice( - _Gizra$circuit_bid$Item_Utils$getPrice(_p16)); - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$SoldFor, soldAmount, sale.currency)); - } else { - if (_Gizra$circuit_bid$Item_Utils$isUnsold(_p16.status)) { - return A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Unsold); - } else { - if (_Gizra$circuit_bid$Item_Utils$isWithdrawn(_p16.status)) { - return A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LotWithdrawnFromSale); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - } - } - } - }(); - return { - ctor: '_Tuple2', - _0: _elm_lang$core$Basics$toString(_p18), - _1: A2( - _elm_lang$html$Html$li, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('slider-item'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-arrow'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-1 fa fa-caret-up hidden'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-img'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-link-1'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(_p17.image.small), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-gone'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'hidden', - _1: _elm_lang$core$Native_Utils.eq(overlayText, _Gizra$circuit_bid$Utils_Html$emptyNode) - }, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-pr'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: overlayText, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sl-lotnum'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'live', _1: isActiveItem}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(lotText), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }) - }; - }); -var _Gizra$circuit_bid$Pages_Sale_View$carousel = F4( - function (language, model, sale, itemsDict) { - var disableRightScroll = function () { - var highestAllowedIndex = A3( - _elm_lang$core$Basics$flip, - F2( - function (x, y) { - return x - y; - }), - model.numberOfCarouselItems, - _Gizra$elm_dictlist$EveryDictList$size(itemsDict)); - return _elm_lang$core$Native_Utils.cmp(model.carouselPosition, highestAllowedIndex) > -1; - }(); - var rightButton = A2( - _elm_lang$html$Html$li, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('slider-nav right'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Sale_Model$ItemsNext), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: disableRightScroll}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'aria-hidden', 'true'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-angle-right'), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - var disableLeftScroll = _elm_lang$core$Native_Utils.eq(model.carouselPosition, 0); - var leftButton = A2( - _elm_lang$html$Html$li, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('slider-nav left'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Sale_Model$ItemsPrevious), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: disableLeftScroll}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: A2(_elm_lang$html$Html_Attributes$attribute, 'aria-hidden', 'true'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-angle-left'), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - }); - var items = A2( - _elm_lang$core$List$take, - model.numberOfCarouselItems, - A2( - _elm_lang$core$List$drop, - model.carouselPosition, - _Gizra$elm_dictlist$EveryDictList$toList(itemsDict))); - var carouselItems = A2( - _elm_lang$core$List$map, - A2(_Gizra$circuit_bid$Pages_Sale_View$carouselItem, language, sale), - items); - return A2( - _elm_lang$html$Html_Keyed$ol, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('slider col-sm-12 hidden-sm hidden-xs'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'left', _1: leftButton}, - _1: A2( - _elm_lang$core$Basics_ops['++'], - carouselItems, - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'right', _1: rightButton}, - _1: {ctor: '[]'} - }) - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$statusClasses = function (status) { - return _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'bidding', - _1: _Gizra$circuit_bid$Item_Utils$isOpen(status) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'going', - _1: _Gizra$circuit_bid$Item_Utils$isGoing(status) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'gone', - _1: _Gizra$circuit_bid$Item_Utils$isSold(status) - }, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'paused', - _1: _Gizra$circuit_bid$Item_Utils$isPaused(status) - }, - _1: {ctor: '[]'} - } - } - } - }); -}; -var _Gizra$circuit_bid$Pages_Sale_View$titleBox = F3( - function (language, currency, item) { - var _p19 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p19.ctor === 'Nothing') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - var pricingHtml = { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$StartingPrice, currency, _p19._0.startingPrice)), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (price) { - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$Estimate, currency, price)); - }, - item.estimatedPrice), - _1: {ctor: '[]'} - } - }; - var lotHtml = A2( - _Gizra$circuit_bid$Translate$translateText, - language, - _Gizra$circuit_bid$Translate$LotValue(item.lotId)); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pipeline'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: lotHtml, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(item.name), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('pipeline'), - _1: {ctor: '[]'} - }, - pricingHtml), - _1: {ctor: '[]'} - } - } - } - }); - } - }); -var _Gizra$circuit_bid$Pages_Sale_View$itemViewOverlay = F2( - function (language, sale) { - var makeOverlay = F2( - function (maybePausedMessage, message) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('starting-soon'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('start-title'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$h3, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text(sale.label), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-gavel'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$br, - {ctor: '[]'}, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: _elm_lang$html$Html$text(message), - _1: {ctor: '[]'} - } - } - } - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (txt) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('start-text'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(txt), - _1: {ctor: '[]'} - }); - }, - maybePausedMessage), - _1: {ctor: '[]'} - } - }); - }); - var _p20 = sale.status; - switch (_p20.ctor) { - case 'ClosedEnded': - return A2( - makeOverlay, - _elm_lang$core$Maybe$Nothing, - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$SaleIsClosedMessage)); - case 'ClosedNotStarted': - return A2( - makeOverlay, - A2(_elm_lang$core$Maybe$map, _Gizra$circuit_bid$Utils_Date$toDateOnlyString, sale.liveAuctionStart), - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$SaleIsPending)); - case 'PausedStartingSoon': - return A2( - makeOverlay, - _elm_lang$core$Maybe$Just(sale.pausedMessage), - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$PausedStartingSoonMessage)); - case 'PausedBackShortly': - return A2( - makeOverlay, - _elm_lang$core$Maybe$Just(sale.pausedMessage), - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$PausedBackShortlyMessage)); - case 'LiveAuctionOpen': - return _Gizra$circuit_bid$Utils_Html$emptyNode; - default: - return A2( - makeOverlay, - A2(_elm_lang$core$Maybe$map, _Gizra$circuit_bid$Utils_Date$toDateOnlyString, sale.liveAuctionStart), - A2(_Gizra$circuit_bid$Translate$translateString, language, _Gizra$circuit_bid$Translate$SaleIsPending)); - } - }); -var _Gizra$circuit_bid$Pages_Sale_View$saleFetchPlaceholder = function (language) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sale-loading'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LoadingAuction), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('loading-text'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$PleaseWait), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - }); -}; -var _Gizra$circuit_bid$Pages_Sale_View$viewImage = F3( - function (language, user, item) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('main-image'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$img, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(item.image.big), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$alt(item.name), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$viewAmountsInOtherCurrencies = F2( - function (sale, amount) { - return A2( - _elm_lang$core$String$join, - ' | ', - A2(_Gizra$circuit_bid$Pages_Sale_Utils$generateAmountsInOtherCurrencies, sale, amount)); - }); -var _Gizra$circuit_bid$Pages_Sale_View$bidButton = F8( - function (language, sale, bidAmount, isBidAmountMinimum, nextBidIncrement, bidBeingPlaced, status, itemId) { - var amountsInOtherCurrencies = A2(_Gizra$circuit_bid$Pages_Sale_View$viewAmountsInOtherCurrencies, sale, bidAmount); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('place-bids'), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Sale_View$statusClasses(status), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn place-bid col-xs-11 has-spinner hoverable'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'active', _1: bidBeingPlaced}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: bidBeingPlaced}, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - A2(_Gizra$circuit_bid$Pages_Sale_Model$PlaceBid, itemId, bidAmount)), - _1: { - ctor: '::', - _0: _mbr$elm_mouse_events$MouseEvents$onMouseEnter(_Gizra$circuit_bid$Pages_Sale_Model$PlaceBidMouseEnter), - _1: { - ctor: '::', - _0: _mbr$elm_mouse_events$MouseEvents$onMouseLeave(_Gizra$circuit_bid$Pages_Sale_Model$PlaceBidMouseLeave), - _1: {ctor: '[]'} - } - } - } - } - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$PlaceBidAmount, bidAmount, sale.currency)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('other-currencies'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(amountsInOtherCurrencies), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-spinner fa-spin'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-xs-1 bid-amount-control'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn operator fa fa-plus-circle active'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: bidBeingPlaced}, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - _Gizra$circuit_bid$Pages_Sale_Model$BidAmountIncrement(nextBidIncrement)), - _1: {ctor: '[]'} - } - } - } - }, - {ctor: '[]'}), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn operator fa fa-minus-circle'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: isBidAmountMinimum || bidBeingPlaced}, - _1: { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'active', _1: !isBidAmountMinimum}, - _1: {ctor: '[]'} - } - }), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick(_Gizra$circuit_bid$Pages_Sale_Model$BidAmountDecrement), - _1: {ctor: '[]'} - } - } - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$viewCurrentPrice = F4( - function (language, currency, item, model) { - var _p21 = _krisajenkins$remotedata$RemoteData$toMaybe(item.calculated); - if (_p21.ctor === 'Just') { - var _p23 = _p21._0; - if (_Gizra$circuit_bid$Item_Utils$isPaused(_p23.status)) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('current-price'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text('...'), - _1: {ctor: '[]'} - }); - } else { - var _p22 = A2(_Gizra$circuit_bid$Pages_Sale_Utils$getPriceForBidder, _p23, model); - if (_p22.ctor === 'Current') { - return A3(_Gizra$circuit_bid$Item_View$currentPriceView, language, _p22._0, currency); - } else { - return A3(_Gizra$circuit_bid$Item_View$openingPriceView, language, _p22._0, currency); - } - } - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }); -var _Gizra$circuit_bid$Pages_Sale_View$itemView = F9( - function (currentDate, parentBaseUrl, language, user, modelBackend, model, _p25, _p24, calculated) { - var _p26 = _p25; - var _p30 = _p26._1; - var _p27 = _p24; - var _p29 = _p27._1; - var popup = function () { - var _p28 = model.alert; - if (_p28.ctor === 'Just') { - return A3(_Gizra$circuit_bid$Alert$viewAlert, language, _p30.currency, _p28._0._1); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }(); - var mainButton = function () { - var itemStatus = model.asyncGoingItemStatus ? _Gizra$circuit_bid$Item_Model$EditableStatus( - _Gizra$circuit_bid$Item_Model$LiveOnly( - _Gizra$elm_editable_webdata$Editable_WebData$create(_Gizra$circuit_bid$Item_Model$Going))) : calculated.status; - var messageBlock = function (message) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('place-bids'), - _1: { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Sale_View$statusClasses(itemStatus), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$button, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$type_('button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('btn message-block highest-bidder col-xs-12 disabled bidding'), - _1: {ctor: '[]'} - } - }, - message), - _1: {ctor: '[]'} - }); - }; - var activeUserButton = function () { - var isWinner = A4(_Gizra$circuit_bid$Item_Utils$isWinningUser, user, modelBackend, _p26._0, calculated); - if (_Gizra$circuit_bid$Item_Utils$isSold(itemStatus)) { - var lablelTransId = isWinner ? _Gizra$circuit_bid$Translate$YouWon : _Gizra$circuit_bid$Translate$SoldFor; - var highestBidAmount = A2( - _elm_lang$core$Maybe$withDefault, - calculated.openingPrice, - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.amount; - }, - _Gizra$circuit_bid$Bid_Utils$getHighestLiveBid(calculated))); - var amountsInOtherCurrencies = A2(_Gizra$circuit_bid$Pages_Sale_View$viewAmountsInOtherCurrencies, _p30, highestBidAmount); - return messageBlock( - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('message'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(lablelTransId, highestBidAmount, _p30.currency)), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('other-currencies'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(amountsInOtherCurrencies), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - } else { - if (_Gizra$circuit_bid$Item_Utils$isUnsold(itemStatus)) { - return messageBlock( - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Unsold), - _1: {ctor: '[]'} - }); - } else { - if (_Gizra$circuit_bid$Item_Utils$isWithdrawn(itemStatus)) { - return messageBlock( - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$LotWithdrawnFromSale), - _1: {ctor: '[]'} - }); - } else { - if (_Gizra$circuit_bid$Item_Utils$isPaused(itemStatus)) { - return messageBlock( - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Standby), - _1: {ctor: '[]'} - }); - } else { - if (isWinner) { - return messageBlock( - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$YouAreTheHighestBidder), - _1: {ctor: '[]'} - }); - } else { - var isBidAmountMinimum = _elm_community$maybe_extra$Maybe_Extra$isNothing(model.clerkHighestQueuedBidData.bid) && _elm_lang$core$List$isEmpty(model.nextBidIncrements); - var nextAmount = A2(_Gizra$circuit_bid$Pages_Sale_Utils$nextBidAmountForBidder, calculated, model); - var bidAmount = A2( - _Gizra$circuit_bid$Amount$add, - A3(_elm_lang$core$List$foldr, _Gizra$circuit_bid$Amount$add, _Gizra$circuit_bid$Amount$zero, model.nextBidIncrements), - nextAmount); - var nextBidIncrement = A2(_Gizra$circuit_bid$BidStep_Utils$getBidStepAmount, calculated.bidSteps, bidAmount); - return A8( - _Gizra$circuit_bid$Pages_Sale_View$bidButton, - language, - _p30, - bidAmount, - isBidAmountMinimum, - nextBidIncrement, - _Gizra$circuit_bid$Bid_Utils$bidBeingPlaced(model.queuedRequestState), - itemStatus, - _p27._0); - } - } - } - } - } - }(); - return _Gizra$circuit_bid$User_Utils$isAuthenticated(user) ? (_Gizra$circuit_bid$User_Utils$isActive(user) ? (_elm_lang$core$Native_Utils.eq(_p30.status, _Gizra$circuit_bid$Sale_Model$LiveAuctionOpen) ? activeUserButton : _Gizra$circuit_bid$Utils_Html$emptyNode) : messageBlock( - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$AccountPendingApproval), - _1: {ctor: '[]'} - })) : A2( - _elm_lang$html$Html$map, - _Gizra$circuit_bid$Pages_Sale_Model$MsgLogin, - A5(_Gizra$circuit_bid$Login_View$view, _p30.siteBackofficeUrl, language, _p30.siteShortName, model.login, _Gizra$circuit_bid$Login_Model$SalePage)); - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-md-9 col-xs-12 current-item item-view'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Pages_Sale_View$itemViewOverlay, language, _p30), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Sale_View$titleBox, language, _p30.currency, _p29), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Item_View$viewAutoClerk, currentDate, language, _p30, calculated), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('bid-block'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Pages_Sale_View$viewCurrentPrice, language, _p30.currency, _p29, model), - _1: { - ctor: '::', - _0: mainButton, - _1: { - ctor: '::', - _0: popup, - _1: {ctor: '[]'} - } - } - }), - _1: { - ctor: '::', - _0: A3(_Gizra$circuit_bid$Pages_Sale_View$viewImage, language, user, _p29), - _1: {ctor: '[]'} - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$viewNoCreditBlock = F4( - function (language, user, _p31, modelBackend) { - var _p32 = _p31; - return _Gizra$circuit_bid$User_Utils$isActive(user) ? A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (bidderInfo) { - var isNoCredit = function (val) { - return _elm_lang$core$Native_Utils.eq(val, _Gizra$circuit_bid$Amount$None); - }( - A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Amount$Unlimited, - A2(_eeue56$elm_all_dict$EveryDict$get, _Gizra$circuit_bid$Backend_BidderInfo_Model$LiveCredit, bidderInfo.amountRestrictions))); - if (isNoCredit) { - var addLanguagePrefix = A2(_Gizra$circuit_bid$Pages_Sale_View$addLanguagePrefixToCreditRequest, language, modelBackend); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('no-credit'), - _1: {ctor: '[]'} - }, - A2( - _Gizra$circuit_bid$Translate$translateHtml, - language, - _Gizra$circuit_bid$Translate$CreditRequestBlock('#credit-block'))); - } else { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, _p32._0)) : _Gizra$circuit_bid$Utils_Html$emptyNode; - }); -var _Gizra$circuit_bid$Pages_Sale_View$sidebar = F6( - function (language, user, modelBackend, _p33, itemsDict, maybeMessages) { - var _p34 = _p33; - var _p35 = _p34._1; - var videoFrame = function (videoUrl) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('vdo'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$iframe, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$src(videoUrl), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - }; - var maybeVideoFrame = A2(_Gizra$circuit_bid$Utils_Html$showMaybe, videoFrame, _p35.videoUrl); - var numberOfItems = _Gizra$elm_dictlist$EveryDictList$size(itemsDict); - var itemListCounter = A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (index) { - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A2(_Gizra$circuit_bid$Translate$ItemsCounter, index, numberOfItems)); - }, - A2( - _elm_lang$core$Maybe$map, - F2( - function (x, y) { - return x + y; - })(1), - A2(_Gizra$elm_dictlist$EveryDictList$indexOfKey, _p35.item, itemsDict))); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-md-3 col-sm-12 side'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: maybeVideoFrame, - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sale-count'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: itemListCounter, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - A5( - _Gizra$circuit_bid$Message_View$viewActivityStream, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p34._0, _1: _p35}, - itemsDict), - maybeMessages), - _1: {ctor: '[]'} - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$saleView = F8( - function (currentDate, parentBaseUrl, language, user, modelBackend, _p36, model, maybePublicMessages) { - var _p37 = _p36; - var _p40 = _p37._0; - var _p39 = _p37._1; - var items = model.item.items; - var itemViewOrPlaceholder = function () { - var item = A2(_Gizra$circuit_bid$Utils_EveryDictList$getKeyValuePair, _p39.item, items); - var calculated = A2( - _elm_lang$core$Maybe$andThen, - function (_p38) { - return _krisajenkins$remotedata$RemoteData$toMaybe( - function (_) { - return _.calculated; - }(_p38)); - }, - A2(_elm_lang$core$Maybe$map, _elm_lang$core$Tuple$second, item)); - return A2( - _elm_lang$core$Maybe$withDefault, - _Gizra$circuit_bid$Pages_Sale_View$saleFetchPlaceholder(language), - A3( - _elm_lang$core$Maybe$map2, - A7( - _Gizra$circuit_bid$Pages_Sale_View$itemView, - currentDate, - parentBaseUrl, - language, - user, - modelBackend, - model, - {ctor: '_Tuple2', _0: _p40, _1: _p39}), - item, - calculated)); - }(); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('container main-content'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A4( - _Gizra$circuit_bid$Pages_Sale_View$viewNoCreditBlock, - language, - user, - {ctor: '_Tuple2', _0: _p40, _1: _p39}, - modelBackend), - _1: { - ctor: '::', - _0: itemViewOrPlaceholder, - _1: { - ctor: '::', - _0: A6( - _Gizra$circuit_bid$Pages_Sale_View$sidebar, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: _p40, _1: _p39}, - items, - maybePublicMessages), - _1: { - ctor: '::', - _0: A4(_Gizra$circuit_bid$Pages_Sale_View$carousel, language, model, _p39, items), - _1: { - ctor: '::', - _0: A2( - _Gizra$circuit_bid$Utils_Html$showIf, - _Gizra$circuit_bid$User_Utils$isAuthenticated(user), - A6(_Gizra$circuit_bid$Pages_Sale_View$bidHistory, language, _p39.currency, user, modelBackend, _p40, items)), - _1: { - ctor: '::', - _0: A4( - _Gizra$circuit_bid$Pages_Sale_View$myCredit, - language, - {ctor: '_Tuple2', _0: _p40, _1: _p39}, - user, - modelBackend), - _1: {ctor: '[]'} - } - } - } - } - } - }); - }); -var _Gizra$circuit_bid$Pages_Sale_View$view = F9( - function (currentDate, parentBaseUrl, config, language, user, modelBackend, saleUuid, isSalePage, model) { - var _p41 = model.sale; - switch (_p41.ctor) { - case 'NotAsked': - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - _Gizra$circuit_bid$Pages_Sale_Model$Subscribe(saleUuid)), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$ReloadSale), - _1: {ctor: '[]'} - }); - case 'Loading': - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('sale-page'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _Gizra$circuit_bid$Pages_Sale_View$saleFetchPlaceholder(language), - _1: {ctor: '[]'} - }); - case 'Failure': - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Utils_WebData$viewError, language, _p41._0), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('ui button'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - _Gizra$circuit_bid$Pages_Sale_Model$Subscribe(saleUuid)), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$Retry), - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }); - default: - var _p42 = _p41._0; - var pageRender = isSalePage ? _Gizra$circuit_bid$Pages_Sale_View$saleView : _Gizra$circuit_bid$Pages_Room_View$view; - return A2( - _Gizra$circuit_bid$Utils_Html$showIf, - A2(_elm_lang$core$List$member, language, _p42.languages), - A8( - pageRender, - currentDate, - parentBaseUrl, - language, - user, - modelBackend, - {ctor: '_Tuple2', _0: saleUuid, _1: _p42}, - model, - _krisajenkins$remotedata$RemoteData$toMaybe(model.publicMessages))); - } - }); - -var _Gizra$circuit_bid$App_View$viewMainContent = F2( - function (config, model) { - var wrapWithMainContent = function () { - var _p0 = model.activePage; - if (_p0.ctor === 'SaleRoom') { - return false; - } else { - return true; - } - }(); - var wrapWithContainer = function () { - var _p1 = model.activePage; - if (_p1.ctor === 'Sale') { - return true; - } else { - return false; - } - }(); - var content = function () { - var _p2 = model.user; - if (_p2.ctor === 'Just') { - var _p4 = _p2._0; - var _p3 = model.activePage; - switch (_p3.ctor) { - case 'AccessDenied': - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('main-content'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, model.language, _Gizra$circuit_bid$Translate$AccessDenied), - _1: {ctor: '[]'} - }); - case 'Dashboard': - return _Gizra$circuit_bid$Utils_Html$emptyNode; - case 'Logout': - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text('Logout...'), - _1: {ctor: '[]'} - }); - case 'PageNotFound': - return _Gizra$circuit_bid$Pages_PageNotFound_View$view(model.language); - case 'Sale': - return A2( - _elm_lang$html$Html$map, - _Gizra$circuit_bid$App_Model$MsgPagesSale, - A9(_Gizra$circuit_bid$Pages_Sale_View$view, model.currentDate, model.parentBaseUrl, config, model.language, _p4, model.backend, _p3._0, true, model.pageSale)); - case 'SaleClerk': - return A2( - _elm_lang$html$Html$map, - _Gizra$circuit_bid$App_Model$MsgPagesClerk, - A8(_Gizra$circuit_bid$Pages_Clerk_View$view, config, model.currentDate, model.language, _p4, model.backend, _p3._0, true, model.pageClerk)); - case 'SaleRoom': - return A2( - _elm_lang$html$Html$map, - _Gizra$circuit_bid$App_Model$MsgPagesSale, - A9(_Gizra$circuit_bid$Pages_Sale_View$view, model.currentDate, model.parentBaseUrl, config, model.language, _Gizra$circuit_bid$User_Model$Anonymous, model.backend, _p3._0, false, model.pageSale)); - default: - return A2( - _elm_lang$html$Html$map, - _Gizra$circuit_bid$App_Model$MsgPagesClerk, - A8(_Gizra$circuit_bid$Pages_Clerk_View$view, config, model.currentDate, model.language, _p4, model.backend, _p3._0, false, model.pageClerk)); - } - } else { - return A2( - _elm_lang$html$Html$div, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('icon loading spinner'), - _1: {ctor: '[]'} - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - }); - } - }(); - var loadCssCmd = function () { - var _p5 = model.backend.site; - if ((_p5.ctor === 'Success') && (_p5._0.ctor === '_Tuple2')) { - return _Gizra$circuit_bid$Ports$loadBackofficeCSS(_p5._0._1.backofficeUrl); - } else { - return _elm_lang$core$Platform_Cmd$none; - } - }(); - return {ctor: '_Tuple2', _0: content, _1: loadCssCmd}; - }); -var _Gizra$circuit_bid$App_View$viewConnectionStatus = F2( - function (language, offline) { - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('connected'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'hidden', _1: !offline}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$NotConnected), - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$i, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('fa fa-wifi'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'disabled', _1: offline}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - }, - {ctor: '[]'}), - _1: {ctor: '[]'} - } - }); - }); -var _Gizra$circuit_bid$App_View$viewLanguages = F3( - function (selectedLanguage, languages, activePage) { - return A2( - _elm_lang$html$Html$span, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('lang-select'), - _1: {ctor: '[]'} - }, - A2( - _elm_lang$core$List$intersperse, - A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text(' | '), - _1: {ctor: '[]'} - }), - A2( - _elm_lang$core$List$map, - function (language) { - var languageLinkAttributes = A2( - _elm_lang$core$List$append, - _elm_lang$core$Native_Utils.eq(language, selectedLanguage) ? {ctor: '[]'} : { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$href( - A2(_Gizra$circuit_bid$Utils_Urls$getCurrentPageLanguageLink, language, activePage)), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('item'), - _1: {ctor: '[]'} - }); - var txtFn = _elm_lang$core$Native_Utils.eq(language, selectedLanguage) ? function (txt) { - return A2( - _elm_lang$html$Html$strong, - {ctor: '[]'}, - { - ctor: '::', - _0: _elm_lang$html$Html$text(txt), - _1: {ctor: '[]'} - }); - } : _elm_lang$html$Html$text; - return A2( - _elm_lang$html$Html$a, - languageLinkAttributes, - { - ctor: '::', - _0: txtFn( - _Gizra$circuit_bid$Translate$languageToString(language)), - _1: {ctor: '[]'} - }); - }, - languages))); - }); -var _Gizra$circuit_bid$App_View$viewWelcomeMessage = F4( - function (language, user, modelBackend, maybeSale) { - var _p6 = {ctor: '_Tuple2', _0: user, _1: maybeSale}; - if ((_p6.ctor === '_Tuple2') && (_p6._0.ctor === 'Authenticated')) { - if (_p6._1.ctor === 'Just') { - var _p7 = _p6._1._0; - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _elm_lang$html$Html$text('Bidder info not loaded correctly, please refresh.'), - function (bidderInfo) { - var bidderNumber = _Gizra$circuit_bid$Backend_BidderInfo_Utils$getNumber(bidderInfo); - var fullName = A2(_elm_lang$core$Maybe$withDefault, '', bidderInfo.userName); - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - A5( - _Gizra$circuit_bid$Translate$WelcomeMessage, - fullName, - _p6._0._0.name, - _elm_lang$core$Basics$toString(bidderNumber), - _p7.label, - _p7.siteLabel)); - }, - A3(_Gizra$circuit_bid$User_Utils$getWebsiteBidderInfo, user, modelBackend, _p7.uuid)); - } else { - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - _Gizra$circuit_bid$Translate$Welcome(_p6._0._0.name)); - } - } else { - return A2( - _Gizra$circuit_bid$Translate$translateText, - language, - _Gizra$circuit_bid$Translate$Welcome('')); - } - }); -var _Gizra$circuit_bid$App_View$roomTopBar = F4( - function (language, siteName, maybeSale, pageAfterLogout) { - return A2( - _Gizra$circuit_bid$Utils_Html$showMaybe, - function (sale) { - return function (roomTitle) { - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('room-top-welcome'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(roomTitle), - _1: {ctor: '[]'} - }); - }( - function (_p8) { - var _p9 = _p8; - return A2( - _elm_lang$core$Basics_ops['++'], - _p9.siteLabel, - A2(_elm_lang$core$Basics_ops['++'], ' - ', _p9.label)); - }(sale)); - }, - maybeSale); - }); -var _Gizra$circuit_bid$App_View$topBar = F9( - function (config, availableLanguages, language, offline, user, modelBackend, maybeSale, activePage, pageAfterLogout) { - var maybeSignOutBtn = A3( - _Gizra$circuit_bid$User_Utils$withAuthenticatedUser, - _Gizra$circuit_bid$Utils_Html$emptyNode, - user, - function (authUser) { - return A2( - _elm_lang$html$Html$span, - {ctor: '[]'}, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$a, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('log-out'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Events$onClick( - _Gizra$circuit_bid$App_Model$Logout(pageAfterLogout)), - _1: {ctor: '[]'} - } - }, - { - ctor: '::', - _0: _elm_lang$html$Html$text(' | '), - _1: { - ctor: '::', - _0: A2(_Gizra$circuit_bid$Translate$translateText, language, _Gizra$circuit_bid$Translate$SignOut), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }); - }); - var welcomeMessage = A4(_Gizra$circuit_bid$App_View$viewWelcomeMessage, language, user, modelBackend, maybeSale); - var languages = A3(_Gizra$circuit_bid$App_View$viewLanguages, language, availableLanguages, activePage); - var connection = A2(_Gizra$circuit_bid$App_View$viewConnectionStatus, language, offline); - return A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('top-welcome'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('container'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-sm-9 hidden-xs welcome'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: welcomeMessage, - _1: {ctor: '[]'} - }), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$class('col-sm-3 col-xs-12 lang'), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: connection, - _1: { - ctor: '::', - _0: languages, - _1: { - ctor: '::', - _0: maybeSignOutBtn, - _1: {ctor: '[]'} - } - } - }), - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }); - }); -var _Gizra$circuit_bid$App_View$view = function (model) { - var _p10 = model.config; - switch (_p10.ctor) { - case 'Failure': - return {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Config_View$error, _1: _elm_lang$core$Platform_Cmd$none}; - case 'Success': - var _p13 = _p10._0; - var _p11 = A2(_Gizra$circuit_bid$App_View$viewMainContent, _p13, model); - var mainContent = _p11._0; - var mainContentCmd = _p11._1; - var debugErrors = A2( - _Gizra$circuit_bid$Utils_Html$showIf, - _p13.debug, - A2(_Gizra$circuit_bid$Error_View$view, _Gizra$circuit_bid$Translate$English, model.errors)); - var page = A2(_Gizra$circuit_bid$App_Utils$pageAfterLogout, model.activePage, model.siteShortName); - var maybeSale = _Gizra$circuit_bid$App_Utils$currentSale(model); - var availableLanguages = A2( - _elm_lang$core$Maybe$withDefault, - {ctor: '[]'}, - A2( - _elm_lang$core$Maybe$map, - function (_) { - return _.languages; - }, - maybeSale)); - var header = function () { - var _p12 = model.activePage; - if (_p12.ctor === 'SaleRoom') { - return _Gizra$circuit_bid$Utils_Html$emptyNode; - } else { - return A3( - _elm_community$maybe_extra$Maybe_Extra$unwrap, - _Gizra$circuit_bid$Utils_Html$emptyNode, - function (user) { - return A9(_Gizra$circuit_bid$App_View$topBar, _p13, availableLanguages, model.language, model.offline, user, model.backend, maybeSale, model.activePage, page); - }, - model.user); - } - }(); - var viewContent = A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$id('app'), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$tabindex(0), - _1: { - ctor: '::', - _0: A2( - _elm_lang$html$Html_Events$on, - 'keydown', - _Gizra$elm_keyboard_event$Keyboard_Event$considerKeyboardEvent( - _Gizra$circuit_bid$App_Utils$dispatchKeyboardEvent(model))), - _1: { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$style( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'outline', _1: 'none'}, - _1: {ctor: '[]'} - }), - _1: {ctor: '[]'} - } - } - } - }, - { - ctor: '::', - _0: A2( - _elm_lang$html$Html$div, - { - ctor: '::', - _0: _elm_lang$html$Html_Attributes$classList( - { - ctor: '::', - _0: {ctor: '_Tuple2', _0: 'lang-dir', _1: true}, - _1: { - ctor: '::', - _0: { - ctor: '_Tuple2', - _0: 'rtl', - _1: _elm_lang$core$Native_Utils.eq(model.language, _Gizra$circuit_bid$Translate$Hebrew) - }, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }, - { - ctor: '::', - _0: header, - _1: { - ctor: '::', - _0: mainContent, - _1: {ctor: '[]'} - } - }), - _1: {ctor: '[]'} - }); - return {ctor: '_Tuple2', _0: viewContent, _1: mainContentCmd}; - default: - return {ctor: '_Tuple2', _0: _Gizra$circuit_bid$Config_View$loading, _1: _elm_lang$core$Platform_Cmd$none}; - } -}; - -var _Gizra$elm_essentials$Gizra_Update$applyFetch = F3( - function (fetch, update, resultSoFar) { - applyFetch: - while (true) { - var msgs = fetch( - _elm_lang$core$Tuple$first(resultSoFar)); - if (_elm_lang$core$List$isEmpty(msgs)) { - return resultSoFar; - } else { - var _v0 = fetch, - _v1 = update, - _v2 = A3(_ccapndave$elm_update_extra$Update_Extra$sequence, update, msgs, resultSoFar); - fetch = _v0; - update = _v1; - resultSoFar = _v2; - continue applyFetch; - } - } - }); -var _Gizra$elm_essentials$Gizra_Update$andThenFetch = F4( - function (fetch, update, msg, model) { - return A3( - _Gizra$elm_essentials$Gizra_Update$applyFetch, - fetch, - update, - A2(update, msg, model)); - }); -var _Gizra$elm_essentials$Gizra_Update$sequenceExtra = F3( - function (updater, msgs, startingPoint) { - return A3( - _elm_lang$core$List$foldl, - F2( - function (eachMsg, _p0) { - var _p1 = _p0; - var _p2 = A2(updater, eachMsg, _p1._0); - var newModel = _p2._0; - var newCmd = _p2._1; - var newMsgs = _p2._2; - return { - ctor: '_Tuple3', - _0: newModel, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: _p1._1, - _1: { - ctor: '::', - _0: newCmd, - _1: {ctor: '[]'} - } - }), - _2: A2(_elm_lang$core$Basics_ops['++'], _p1._2, newMsgs) - }; - }), - startingPoint, - msgs); - }); - -var _Gizra$circuit_bid$Main$viewWrapper = function (model) { - var _p0 = _Gizra$circuit_bid$App_View$view(model); - var html = _p0._0; - return html; -}; -var _Gizra$circuit_bid$Main$updateWrapper = F2( - function (msg, model) { - var _p1 = A4(_Gizra$elm_essentials$Gizra_Update$andThenFetch, _Gizra$circuit_bid$App_Fetch$fetch, _Gizra$circuit_bid$App_Update$update, msg, model); - var newModel = _p1._0; - var cmd = _p1._1; - var _p2 = _Gizra$circuit_bid$App_View$view(newModel); - var viewCmd = _p2._1; - return { - ctor: '_Tuple2', - _0: newModel, - _1: _elm_lang$core$Platform_Cmd$batch( - { - ctor: '::', - _0: cmd, - _1: { - ctor: '::', - _0: viewCmd, - _1: {ctor: '[]'} - } - }) - }; - }); -var _Gizra$circuit_bid$Main$main = _rgrempel$elm_route_url$RouteUrl$programWithFlags( - {delta2url: _Gizra$circuit_bid$App_Router$delta2url, location2messages: _Gizra$circuit_bid$App_Router$location2messages, init: _Gizra$circuit_bid$App_Update$init, update: _Gizra$circuit_bid$Main$updateWrapper, view: _Gizra$circuit_bid$Main$viewWrapper, subscriptions: _Gizra$circuit_bid$App_Update$subscriptions})( - A2( - _elm_lang$core$Json_Decode$andThen, - function (accessToken) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (hostname) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (languageCode) { - return A2( - _elm_lang$core$Json_Decode$andThen, - function (parentBaseUrl) { - return _elm_lang$core$Json_Decode$succeed( - {accessToken: accessToken, hostname: hostname, languageCode: languageCode, parentBaseUrl: parentBaseUrl}); - }, - A2(_elm_lang$core$Json_Decode$field, 'parentBaseUrl', _elm_lang$core$Json_Decode$string)); - }, - A2(_elm_lang$core$Json_Decode$field, 'languageCode', _elm_lang$core$Json_Decode$string)); - }, - A2(_elm_lang$core$Json_Decode$field, 'hostname', _elm_lang$core$Json_Decode$string)); - }, - A2(_elm_lang$core$Json_Decode$field, 'accessToken', _elm_lang$core$Json_Decode$string))); - -var Elm = {}; -Elm['Main'] = Elm['Main'] || {}; -if (typeof _Gizra$circuit_bid$Main$main !== 'undefined') { - _Gizra$circuit_bid$Main$main(Elm['Main'], 'Main', undefined); -} - -if (typeof define === "function" && define['amd']) -{ - define([], function() { return Elm; }); - return; -} - -if (typeof module === "object") -{ - module['exports'] = Elm; - return; -} - -var globalElm = this['Elm']; -if (typeof globalElm === "undefined") -{ - this['Elm'] = Elm; - return; -} - -for (var publicModule in Elm) -{ - if (publicModule in globalElm) - { - throw new Error('There are two Elm modules called `' + publicModule + '` on this page! Rename one of them.'); - } - globalElm[publicModule] = Elm[publicModule]; -} - -}).call(this); - diff --git a/latest/live/app-95578bf4.js b/latest/live/app-082bb717.js similarity index 100% rename from latest/live/app-95578bf4.js rename to latest/live/app-082bb717.js diff --git a/latest/live/app-e1f11af6.js b/latest/live/app-e1f11af6.js deleted file mode 100644 index e2628f3..0000000 --- a/latest/live/app-e1f11af6.js +++ /dev/null @@ -1,155 +0,0 @@ -// Get the selected language from the query param, or from the local storage. -// When both empty, English is set as default in App.Utils.decodeLanguageCode. -const urlParams = new URLSearchParams(window.location.search); -const languageCode = urlParams.get('language') || localStorage.getItem('languageCode') || ''; - -var elmApp = Elm.Main.fullscreen({ - accessToken: localStorage.getItem('bs_access_token') || '', - hostname: window.location.hostname, - languageCode: languageCode, - // Pass the location, which might have an `origin` query string, that - // indicates the base url of the host, in case the app is loaded as an - // IFrame. - parentBaseUrl: window.location.href -}); - -elmApp.ports.saveAccessToken.subscribe(function(accessToken) { - localStorage.setItem('bs_access_token', accessToken); -}); - -elmApp.ports.clearAccessToken.subscribe(function() { - localStorage.removeItem('bs_access_token'); -}); - - -Offline.on('down', function() { - elmApp.ports.offline.send(true); -}); - -Offline.on('up', function() { - elmApp.ports.offline.send(false); -}); - -var sendSignalOnUserLoggedIn = false; - -elmApp.ports.userTryLogin.subscribe(function() { - sendSignalOnUserLoggedIn = true; -}); - -elmApp.ports.userLoggedIn.subscribe(function(uuid) { - if (!!sendSignalOnUserLoggedIn) { - // Indicate top window to reload, only if the user has tried to login themself. - // That is, we are not in the middle of a page refresh where we already have a valid - // access token. - var message = { - cmd: 'userLoggedIn', - uuid: uuid - }; - window.top.postMessage(message, '*'); - } -}); - -elmApp.ports.userLoggedOut.subscribe(function() { - // Indicate top window to reload. - var message = { - cmd: 'userLoggedOut' - }; - window.top.postMessage(message, '*'); -}); - -elmApp.ports.delayedReload.subscribe(function() { - // Reload a page, after a random delay -- so all the reloading clients will - // not hit the server on the exact same time. - var seconds = Math.floor((Math.random() * 20) + 1); - setTimeout(function() { - location.reload(); - }, seconds * 1000); -}); - -elmApp.ports.immediateReload.subscribe(function() { - // Reload a page with no delay. - location.reload(); -}); - -elmApp.ports.focus.subscribe(function(id) { - // @todo: For some reason we don't get the ID from Elm. For now however we - // need to use it only on a single input, so we hardcode the value. - id = 'opening-price-input'; - var doFocus = function(selector, id) { - var element = document.querySelector(selector); - if (!element) { - // Element doesn't exist yet. - return false; - } - - element.focus(); - }; - waitForElement('#' + id, doFocus, id); -}); - -elmApp.ports.playSoundOnLiveBid.subscribe(function () { - // Invoking this multiple times in a row sometimes "fakes" the play action - // in Chrome, it claims to play the sound when it actually doesn't. - // Wrapping it with a `setTimeout()` somehow solves this bug in most cases, - // even with 1 ms delay as we do. - setTimeout(function () { - // Only the Auctioneer has the audio. - var audio = document.getElementById('place-bid-audio'); - if (!!audio) { - var playPromise = audio.play(); - if (playPromise === undefined) { - // The `play()` might return either a Promise or void. - return; - } - playPromise.then(function () { - // Autoplay started! - }).catch(function (error) { - // Autoplay was prevented. - console.log('FAILED to play the sound', error); - }); - } - }, 1); -}); - -var cssLoaded = false; -elmApp.ports.loadBackofficeCSS.subscribe(function(backendOfficeUrl) { - if (cssLoaded) { - return; - } - const link = document.createElement('link'); - link.rel = 'stylesheet'; - link.href = backendOfficeUrl + '/css/live.css'; - document.head.appendChild(link); - cssLoaded = true; -}); - -window.onmessage = function(e) { - if (e.data.hasOwnProperty('eventName') && e.data.eventName == 'resetUserBlock') { - // Feed the siteName back to Elm. - elmApp.ports.resetUserBlock.send(e.data.siteName); - } -}; - - -/** - * Wait for selector to appear before invoking related functions. - */ -function waitForElement(selector, fn, model, tryCount) { - - // Repeat the timeout only maximum 5 times, which sohuld be enough for the - // element to appear. - tryCount = tryCount || 5; - --tryCount; - if (tryCount == 0) { - return; - } - - setTimeout(function() { - - var result = fn.call(null, selector, model, tryCount); - if (!result) { - // Element still doesn't exist, so wait some more. - waitForElement(selector, fn, model, tryCount); - } - }, 50); -} diff --git a/latest/live/app-loader.js b/latest/live/app-loader.js index 2ab69a1..ef96d57 100644 --- a/latest/live/app-loader.js +++ b/latest/live/app-loader.js @@ -1,6 +1,6 @@ (function() { - const unifiedHash = '95578bf4'; + const unifiedHash = '082bb717'; function loadScript(src, callback) { const script = document.createElement('script'); diff --git a/latest/live/pusher-95578bf4.js b/latest/live/pusher-082bb717.js similarity index 100% rename from latest/live/pusher-95578bf4.js rename to latest/live/pusher-082bb717.js diff --git a/latest/live/pusher-e1f11af6.js b/latest/live/pusher-e1f11af6.js deleted file mode 100644 index 4cdb535..0000000 --- a/latest/live/pusher-e1f11af6.js +++ /dev/null @@ -1,75 +0,0 @@ -var pusherConnections = []; - -elmApp.ports.pusherLogout.subscribe(function() { - - // Unbind existing channels. - unbindPusherChannels(); - -}); - -elmApp.ports.pusherLogin.subscribe(function(config) { - - // Unbind existing channels. - unbindPusherChannels(); - - // Bind channels specified at config. - config.channelNames.forEach(function(channelName) { - var pusher = new Pusher(config.key, { - cluster: config.cluster, - authEndpoint: config.authEndpoint - }); - - pusherConnections.push(pusher); - - pusher.connection.bind('error', function(error) { - elmApp.ports.pusherError.send({ - message: error.error.data.message ? error.error.data.message : null, - code: error.error.code ? error.error.code : null - }); - }); - - pusher.connection.bind('state_change', function(states) { - elmApp.ports.pusherState.send(states.current); - }); - - if (!pusher.channel(channelName)) { - var channel = pusher.subscribe(channelName); - - config.eventNames.forEach(function(eventName) { - channel.bind(eventName, function(data) { - // Add a local timestamp of this specific client. - data.clientTimestamp = Date.now(); - - var event = { - eventType: eventName, - data: data - }; - - // Uncomment to debug. - // console.log(data, eventName); - - if (eventName == 'force_reload') { - // Reload a page, after a random delay -- so all the reloading clients will - // not hit the server on the exact same time. - var seconds = Math.floor((Math.random() * 20) + 1); - setTimeout(function() { - location.reload(); - }, seconds * 1000); - - } else { - elmApp.ports.pusherIncomingEvents.send(event); - } - - }); - }); - } - }); - -}); - -function unbindPusherChannels() { - while (pusherConnections.length > 0) { - channel = pusherConnections.pop(); - channel.disconnect(); - } -} diff --git a/latest/live/style-95578bf4.css b/latest/live/style-082bb717.css similarity index 100% rename from latest/live/style-95578bf4.css rename to latest/live/style-082bb717.css diff --git a/latest/live/style-e1f11af6.css b/latest/live/style-e1f11af6.css deleted file mode 100644 index 81e61ab..0000000 --- a/latest/live/style-e1f11af6.css +++ /dev/null @@ -1 +0,0 @@ -@import "https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i|Asap|Roboto+Slab:300,300i,400,400i,500,500i,700,700i";@import "https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css";@font-face{font-family:'Roboto';src:url("fonts/Roboto/Roboto-Regular.ttf") format("truetype"),url("fonts/Roboto/roboto-regular-webfont.woff2") format("woff2"),url("fonts/Roboto/roboto-regular-webfont.woff") format("woff");font-weight:normal;font-style:normal}@font-face{font-family:'Roboto Slab';src:url("fonts/Roboto/RobotoSlab.ttf") format("truetype"),url("fonts/Roboto/RobotoSlab.woff2") format("woff2"),url("fonts/Roboto/RobotoSlab.woff") format("woff");font-weight:normal;font-style:normal}body{font-family:'Roboto', sans-serif;letter-spacing:0.3px;font-weight:300;margin:0;padding:0;color:#424242;font-size:16px;background-color:transparent}img{max-width:100%}.main-content{position:relative}.sale-loading{background:#424242 url("assets/images/bg-starting-soon.png") no-repeat scroll center 250px;color:#fff;font-size:42px;position:absolute;width:110%;left:-5%;height:100%;z-index:101;text-align:center;padding:80px;min-height:650px}.loading-text{font-size:26px;margin:5px 0 30px}.sale-loading .fa-spin{font-size:60px;color:#999}.top-welcome{background-color:#424242;color:#fff;font-size:15px;padding:8px 0;margin-bottom:20px}.no-credit{text-align:center;border:solid 3px #c62828;margin-bottom:15px;padding-bottom:15px;font-size:20px;background:#f9f9f9}.no-credit h2{color:#c62828}.no-credit a{font-weight:400}.top-welcome a{color:#fff}.lang-select{text-align:right}.lang-select a{color:#fff}.fa.fa-wifi{font-size:18px;padding:0 5px}.fa.fa-wifi.disabled{color:#757575}.connected{background:#ef6c00 none repeat scroll 0 0;border-radius:4px;padding:2px 10px}.current-item{text-align:center;border:1px solid #e0e0e0;padding:0}.auto-clerk{padding:5px 15px;font-size:20px;background:#f9f9f9;border-bottom:solid 1px #578dac;text-align:center}.auto-clerk .counter{font-size:22px;font-weight:bold;line-height:1em}.auto-clerk.round .counter{color:#77c140}.auto-clerk.bump .counter{color:#fb8c00}.clerk-auto-clerk{float:right;font-size:15px}.next-bid .clerk-auto-clerk{float:left}.clerk-auto-clerk .counter{font-weight:bold}.clerk-auto-clerk input{margin-left:5px}.main-image{height:428px;position:relative}.main-image img{max-width:100%;max-height:75%;position:absolute;bottom:10;right:0;left:0;margin:auto}.bid-block{margin:15px auto;width:70%;max-width:480px;position:relative}.popups{border-radius:8px;color:#fff;position:absolute;font-size:18px;font-weight:400;z-index:100;padding:5px 25px;width:100%;top:135px}.obscure-bid-block .popups,.user .popups{margin-top:10px}.current-price{text-align:center;background:rgba(33,33,33,0.8);color:#eee;width:50%;margin:0 auto;min-width:150px;font-size:22px;padding:6px 0 2px;border-top-right-radius:6px;border-top-left-radius:6px}.popups.success{background:#4ea542}.popups.error{background:#c62828}.popups.warning{background:#ef6c00}.popups.public{background:#0277bd}.place-bid,button.highest-bidder,.btn.withdraw{height:80px;color:#fff;font-size:34px;font-weight:400;letter-spacing:1px;text-shadow:3px 0px 4px #969696;border:1px solid #535f60;-webkit-box-shadow:0px 0px 8px 2px rgba(0,0,0,0.6);-moz-box-shadow:0px 0px 8px 2px rgba(0,0,0,0.6);box-shadow:0px 0px 8px 2px rgba(0,0,0,0.6);overflow:hidden;z-index:100;-webkit-transition:background-color 150ms linear;-moz-transition:background-color 150ms linear;-o-transition:background-color 150ms linear;-ms-transition:background-color 150ms linear;transition:background-color 150ms linear}.place-bid.btn.focus,.place-bid.btn:focus,.place-bid.btn:hover{-webkit-transition:background-color 300ms linear;-moz-transition:background-color 300ms linear;-o-transition:background-color 300ms linear;-ms-transition:background-color 300ms linear;transition:background-color 300ms linear}.place-bids.bidding button,button.highest-bidder.bidding{background:#77c140}.place-bids.bidding .place-bid.btn.focus,.place-bids.bidding .place-bid.btn:focus,.place-bids.bidding .place-bid.btn:hover{background-color:#6fb43c;outline:none}.place-bids.going button,button.highest-bidder.going{background:#fb8c00}.place-bids.going .btn.focus,.place-bids.going .btn:focus,.place-bids.going .btn:hover{background-color:#e88100;color:#fff;outline:none}.place-bids.gone button,button.highest-bidder.gone,.btn.withdraw{background:#607d8b}.place-bid.btn.focus,.place-bid.btn:focus,.place-bid.btn:hover{color:#fff}.place-bids button .other-currencies{font-size:20px;margin-top:-5px}button.highest-bidder.disabled,.btn.withdraw{font-style:italic;opacity:0.95;font-size:32px}.btn.highest-bidder:hover,.btn.highest-bidder:focus,.btn.highest-bidder:active{color:#fff;outline:none}.col-xs-1.bid-amount-control{padding-left:0;padding-right:0;z-index:100}.btn.fa-plus{margin-bottom:1px;margin-top:1px}button.btn.operator{color:#fff;height:40px;width:44px;border:1px solid #535f60;text-shadow:3px 0px 4px #969696;-webkit-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);-moz-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);font-size:28px;padding:0}button.btn.operator.disabled{background:#d5d5d5;opacity:0.85}.bid-block .login{background:#fafafa none repeat scroll 0 0;border:1px solid #535f60;-webkit-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);-moz-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);padding:10px 5px;z-index:1000}.bid-block .login label{display:none}.bid-block .login .col-sm-4{padding-left:4px;padding-right:4px}.bid-block .login .btn.form-submit{background:#4ea542;color:#fff;width:100%}.forgotpass.col-xs-12{padding-top:10px}.forgotpass a{color:#666;font-size:15px;font-weight:400;text-decoration:underline}.item-title{text-align:center;background:#424242;color:#eee;margin-top:1px;padding:4px;font-size:16px;font-weight:300}.has-spinner .fa-spinner{opacity:0;max-width:0;-webkit-transition:opacity 0.25s, max-width 0.45s;-moz-transition:opacity 0.25s, max-width 0.45s;-o-transition:opacity 0.25s, max-width 0.45s;transition:opacity 0.25s, max-width 0.45s}.has-spinner.active{cursor:progress}.has-spinner.active .fa-spinner{opacity:1;max-width:50px}.item-hover.col-sm-11{background:#fafafa;position:absolute;width:93%;margin-left:15px;height:220px;bottom:60px;border:1px solid #535f60;-webkit-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);-moz-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5)}.hover-image{color:#4ea542;font-size:15px;font-weight:400;max-height:140px;text-align:center}.hover-description{max-height:160px;overflow:scroll}.hover-title{text-align:left;font-size:18px;padding:10px 35px;font-weight:400;color:#424242}.item-title .fa-info-circle{color:#fff;font-size:18px;padding:0 8px}.item-title .fa-info-circle:hover,.item-title .fa-info-circle.focus{color:green}.fa.fa-times-circle{color:#424242;font-size:20px;padding-top:10px}.starting-soon{background:#424242 url("assets/images/bg-starting-soon.png") no-repeat scroll center bottom;color:#fff;font-size:34px;height:100%;position:absolute;width:100%;z-index:999}.fa.fa-gavel{border:2px solid #fff;border-radius:50%;font-size:3em;margin-bottom:20px;padding:30px}.start-title{margin-top:50px}.start-text{padding:20px 50px 0;font-size:24px}.vdo{text-align:center;max-width:300px}.vdo iframe{max-width:100%;max-height:100%}.sale-count{color:#757575;font-size:15px;font-weight:400;margin-bottom:15px;margin-top:5px;text-align:center}.stream-head{text-align:center;color:#616161;font-size:17px;font-weight:400;border-bottom:solid #578dac 6px}.mesage-count{color:#578dac;font-size:14px}.stream-tables{height:352px;overflow:auto;border-bottom:solid 1px #e0e0e0}.stream-tables table{border-bottom:1px solid #e0e0e0}.messages td.colortab.new-lot{background:#4ea542}.stream-tables td.message{border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;font-size:15px;line-height:30px}.send-message{border:1px solid #e0e0e0;height:36px}.messages td.colortab{background:#e0e0e0;border:1px solid #fff;padding:3px;width:2px}.slider{margin-top:40px;display:flex}.slider li{list-style:none}.slider-nav a{color:#757575;font-size:58px}.slider-nav.left{position:absolute;top:40px;left:10px;z-index:100}.slider-nav.right{position:absolute;top:40px;right:10px;z-index:100}.slider-item{text-align:center;position:relative;width:20%;height:140px;padding:0 2%}.sl-arrow{height:20px}.sl-arrow .fa.fa-caret-up{color:#ddd;font-size:48px;line-height:22px}.slider-item img{max-width:100%;max-height:100%}.sl-img{width:180px;height:140px;border:solid 1px #e0e0e0;position:relative;display:table-cell;vertical-align:middle}.sl-pr{position:absolute;color:#eee;top:30%;padding:0 20px;width:100%;font-size:16px}.sl-lotnum{background:rgba(224,224,224,0.85);position:absolute;bottom:0;width:100%;color:#424242;font-weight:400;font-size:14px}.sl-lotnum.live{color:#fff;background:rgba(33,33,33,0.8)}.sl-gone{background:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0}.slid-widget{margin:40px 0}.slider-hover{position:absolute;margin:0 10%;bottom:-14px;background:#fafafa;height:220px;border:1px solid #535f60;-webkit-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);-moz-box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);box-shadow:0px 0px 4px 1px rgba(0,0,0,0.5);z-index:101}.hover-image img{max-width:100%;max-height:140px;margin-bottom:10px}.tabletop{margin-top:40px}.tablewrapper{max-height:520px;overflow:scroll}table.history{width:100%;border:solid 1px #e0e0e0;text-align:center}.mybids,.startprice,.soldfor{width:150px}.history thead{background:#424242;color:#fff}.history th{font-weight:100;padding:10px;text-align:center}.history tr.item{border-bottom:solid 1px #e0e0e0}.history td{padding:10px}.history th.lotnum{width:60px}.history td.lotnum{background:#e0e0e0;width:60px;border-bottom:solid #fff 1px;color:#333}tr.item.won{background:#45a143;color:#fff}.credit{margin-top:40px}.credit-title{background:#424242;color:#fff;text-align:center;padding:9px;font-size:16px}.credit-amount,.credit-request{font-size:16px;text-align:center;border-bottom:solid 1px #dedede;border-right:solid 1px #dedede;border-left:solid 1px #dedede;padding:9px}.credit-request .pending-request{font-size:12px;margin-bottom:5px}.credit-request .input-group{margin-bottom:10px}.credit-request .input-group input{text-align:center}.credit-request .btn,.credit-request .btn:hover{color:white;background:#5B7EA4}.amount{font-weight:400;padding-left:20px}.req-credit input{margin:5px auto 0;width:80%}.req-credit .btn{margin-top:5px;margin-bottom:5px;background:#fff;color:#45a143;font-size:16px;font-weight:400;padding:5px 40px;border-radius:0;word-spacing:2px;letter-spacing:0.5px;border:solid 2px #bcbcbc}.req-credit .btn:hover,.req-credit .btn:focus,.req-credit .btn.disabled{background:#45a143;color:#fff;border-color:#45a143;outline:none;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}.req-credit .requested{margin-top:2px;color:#578ebe;font-style:italic;font-weight:400}@media screen and (max-width: 992px){.place-bid{font-size:30px}button.highest-bidder.disabled,.btn.withdraw{font-size:26px}}@media screen and (max-width: 767px){.top-welcome{margin-bottom:5px}.main-content{padding-right:0;padding-left:0}.bid-block{width:90%;z-index:1000}.lang{text-align:right}.main-image{height:410px}button.btn{font-size:20px}.current-price{font-size:22px;width:80%}button.btn.place-bid,button.highest-bidder,.btn.withdraw{height:72px;font-size:28px}button.btn.operator{height:36px;width:30px}button.highest-bidder.disabled,.btn.withdraw{white-space:unset;height:auto}.item-title{font-size:18px}.stream-tables{height:120px;overflow:hidden}.sale-count{margin-bottom:2px}.stream-tables td.message{font-size:18px}}.hidden{visibility:hidden}.clearall{clear:both}.med{font-weight:400}.pipeline{padding-right:10px;margin-right:10px;border-right:solid 1px #9a9a9a}select:focus{outline:none}.top-clerk{padding:10px 50px;border-bottom:solid 1px #e0e0e0;margin-bottom:80px}.top-clerk a{color:#424242}.salestatus select{background:#45a143;color:#fff;height:30px;font-size:16px;font-weight:100;margin-right:15px}.salessession{font-family:asap}.salessession select{background:#578DB3;color:#fff;height:30px;font-size:16px;font-weight:100;min-width:150px;max-width:350px}.salessession button.btn{height:30px;position:relative;right:7px;font-size:18px;color:#578DB3;background:#fff;padding:1px 8px 0px 10px;border:solid 1px #578DB3;border-radius:0;bottom:1px;margin-right:40px;border-top-right-radius:6px;border-bottom-right-radius:6px}.salessession button.btn:hover{background:#578DB3;color:#fff}.nowbidding select{height:28px;font-size:14px;font-weight:300;background:#fff;border-style:solid;border-color:#e0e0e0;font-family:roboto;border-radius:0}.nowbidding .enter-item{margin-left:6px;width:64px;height:28px;padding-bottom:4px}.nowbidding form{display:inline}button.btn.now-bidding{height:28px;position:static;font-size:18px;color:#45a143;background:#fff;padding:1px 8px 0px 10px;border:solid 1px #e0e0e0;border-radius:0;border-top-right-radius:6px;border-bottom-right-radius:6px}button.btn.now-bidding:hover{background:#45a143;color:#fff}span.nowbidding{margin-right:30px;font-family:asap}span.saletitle{font-family:roboto slab;font-size:24px}span.langselect{position:absolute;right:40px;top:20px}.clerk-current{border:solid 1px #e0e0e0;text-align:center;width:40%;margin-left:12%;position:absolute;top:-50px;background:#fff}.clerk-current .current-amount{font-size:50px;font-family:roboto slab;font-weight:400}.clerk-current-price{position:relative}.clerk-current-price .label{position:absolute;font-size:22px;padding:4px 10px;top:0;left:0;font-family:roboto slab;font-weight:300;color:#424242}.current-bidder{margin:4px 0 15px;font-size:18px}.change-opening-price{margin:4px 0 15px;font-size:18px}.change-opening-price a{color:#424242}.approve-change-opening input{height:28px}.approve-change-opening button,.approve-change-opening span.button{border-style:solid;background:#fff;border:solid 1px #e0e0e0;height:28px;width:34px;font-weight:400}.approve-change-opening button.aprove{color:#45a143}.approve-change-opening button.aprove:hover{background:#45a143;color:#fff;border-color:#45a143}.approve-change-opening span.unaprove{color:#ef3d37}.approve-change-opening span.unaprove:hover{background:#ef3d37;color:#fff;border-color:#ef3d37}.item-withdraw{padding:40px;font-family:roboto slab;font-size:32px;font-weight:400}.clerk-current .next-bid{background:#fafafa;font-size:20px;padding:5px;font-family:roboto slab}.clerk-current .rally-status{right:15px;bottom:5px;font-size:16px}.clerk-main{border-top:solid 1px #e0e0e0;border-bottom:solid 1px #e0e0e0;display:flex;position:relative}.clerkapp{width:67%;float:left;margin-top:140px;text-align:center;margin-bottom:20px}.clerk-main .bidding{font-size:18px;margin-bottom:20px;font-family:'Asap', sans-serif}.clerk-main button.btn.place-bid{border-style:solid;background:#45a143;color:#fff;font-size:18px;font-weight:400;height:50px;width:220px;margin-right:10px;position:relative;border-width:1px;border-color:#45a143;border-radius:0;box-shadow:none;text-shadow:none;font-family:'Roboto', sans-serif}.clerk-main button.btn.place-bid:hover{color:#45a143;background:#fff}.clerk-main button.btn.place-bid:focus{outline:none}span.shortcut{font-size:13px;position:absolute;right:3px;bottom:3px}form.next-bid{display:inline}.enter-bid,.enter-step{border:solid 1px #e0e0e0;display:inline-flex;vertical-align:top;padding:12px 10px;margin-left:5px;font-size:18px;height:52px;font-family:'Asap', sans-serif}input.enter-bid,input.enter-step{height:52px;margin-left:-1px;width:120px;font-size:18px;font-weight:300;text-align:center;border:solid 1px #e0e0e0}input.enter-bid:focus,input.enter-step:focus{outline:none}button.add-bid{border-style:solid;background:#fff;color:#45a143;height:52px;vertical-align:top;border-width:2px;font-size:18px;width:45px;border:solid 1px #e0e0e0;border-radius:0;position:relative;right:1px}button.add-bid:hover{color:#fff;background-color:#45a143;border-color:#45a143}button.add-bid:focus{outline:none}button.last-to-floor{border-style:solid;border:1px solid #e0e0e0;background:#fff;color:#45a143;font-size:18px;height:52px;width:180px;margin-left:30px;border-radius:0}button.last-to-floor:focus{outline:none}button.last-to-floor:hover{color:#fff;background-color:#45a143;border-color:#45a143}button.status{border-style:solid;background:#fff;color:#45a143;font-size:16px;font-weight:400;height:52px;width:140px;position:relative;margin-right:24px;border:1px solid #e0e0e0;border-radius:0}button.btn.status:focus,button.btn.status:active{outline:none}button.status.green{background:#45a143;color:#fff;border-color:#45a143}.itemstatus-btn{display:inline-flex}.clerkapp .item-status-error{margin:0 10px;min-height:40px}.clerkapp .item-status-error .alert{margin-bottom:0;padding:8px;display:inline}.change-step{display:inline-flex;top:2px;position:relative}span.current-step{font-size:14px;padding:4px 0 0 4px}.itemstatus input.enter-bid,.itemstatus input.enter-step{width:80px}.top-clerk .btn.loading,.clerk-main .btn.loading{position:relative;cursor:default;text-shadow:none !important;color:transparent !important;opacity:1;pointer-events:auto;-webkit-transition:all 0s linear, opacity .1s ease;transition:all 0s linear, opacity .1s ease}.top-clerk .btn.loading:before,.clerk-main .btn.loading:before{position:absolute;content:'';top:50%;left:50%;margin:-.64285714em 0 0 -.64285714em;width:1.28571429em;height:1.28571429em;border-radius:500rem;border:0.2em solid rgba(0,0,0,0.15)}.top-clerk .btn.loading:after,.clerk-main .btn.loading:after{position:absolute;content:'';top:50%;left:50%;margin:-.64285714em 0 0 -.64285714em;width:1.28571429em;height:1.28571429em;-webkit-animation:spin .6s linear;animation:spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:500rem;border-color:#fff transparent transparent;border-style:solid;border-width:.2em;box-shadow:0 0 0 1px transparent}@-moz-keyframes spin{from{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(360deg)}}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.clerk-current-item{width:33%;float:right;background:#fafafa;padding:0 50px 10px 20px;border-left:solid 1px #e0e0e0;font-family:'Asap', sans-serif}.clerk-current-item .prices{text-align:center}.clerk-current-item .lotnum{font-size:42px;font-family:roboto slab;text-align:center;font-weight:300;margin-bottom:5px}.clerk-current-item .title{margin-top:15px;padding-right:75px;font-family:roboto slab}.clerk-current-item img{max-width:80px;max-height:80px;float:left;padding:0 10px 10px 0}.pausedtext{padding:5px 0 5px 10px;background:#888;margin-top:15px}.public-message{clear:both;text-align:center}.public-message textarea{border:solid 1px #e0e0e0;font-size:16px;font-weight:300;font-style:italic;padding:4px 8px;resize:none;color:#36474f;width:80%}.public-message textarea:focus{outline:none}button.btn.send-public-message{border-style:unset;background:#fff;color:#45a143;border:solid 1px #e0e0e0;vertical-align:top;padding:13px 10px;font-size:16px;position:relative;right:6px;height:54px}.top-clerk .button.btn.send-public-message{height:28px;right:0;padding:0 10px}.top-clerk .public-message input{width:70%}.bids-head,.clerk .stream-head,.clerk .credit-request-head,.auctioneer-right .credit-request-head{text-align:center;background:#fafafa;border:solid 1px #e0e0e0;padding:10px;font-size:18px;font-weight:400;font-family:roboto slab}.bid{padding:12px 8px;border-bottom:solid 1px #e0e0e0;border-right:solid 1px #e0e0e0;border-left:solid 1px #e0e0e0;font-size:16px;height:45px;font-family:asap}.clerk .right{width:29%;float:left;margin:40px 2%}.auctioneer-right .credit-requests,.clerk .right .credit-requests{margin-bottom:20px}.auctioneer-right .approve-request .fa-check,.clerk .right .approve-request .fa-check{color:#45a143;padding:5px;cursor:pointer}.auctioneer-right .reject-request .fa-times-circle,.clerk .right .reject-request .fa-times-circle{color:#e50909;padding:5px;cursor:pointer}.clerk .stream-tables{height:315px}.bids{width:29%;float:left;margin:40px 2%}.sum{padding:0 15px;border-left:solid 1px #e0e0e0}.extension{color:#fff;background:#ef3d37;margin-right:10px;font-weight:400;border-radius:50%;padding:2px 3px;letter-spacing:1px;font-size:13px;font-family:asap}.altgroup{float:right;margin-right:5px;font-size:15px;color:#578DB3}.by-bidder-max,.by-credit{font-size:15px;color:#ef3d37;padding:0 5px}.lot-data{clear:both;background:#fafafa;padding:20px;margin-right:20px;max-height:200px;margin-bottom:20px;overflow:auto}.lot-data img{float:left;padding:0 15px 15px 0;max-width:160px;max-height:200px}.connected-users-head{margin:20px 50px 0 30px;background:#fafafa;border:solid 1px #e0e0e0}.connected-users-head{padding:5px 15px;font-size:16px;font-weight:400;font-family:roboto slab}.total-users{text-align:center;font-size:18px}.connected-name{width:25%;display:inline-block}td.first-td{width:25%}.connected-users-head .totalwon{width:20%;display:inline-block}td.totalwon{width:20%}.connected-users-head .credit-limit{width:40%;display:inline-block}td.credit-limit{width:40%}.credit-limit .requested{color:#ef3d37;font-style:italic;font-weight:400;margin-left:10px;font-size:15px}.connected-users{margin:0 50px 50px 30px;max-height:400px;overflow:auto}.connected-users .head th{font-family:'roboto slab'}.table-head a.connected,.table-head a.credit{border-right:none}.table-head a.active{background:#697c89;color:#fff}.users{width:100%;border-collapse:collapse}.users .head{background:#fafafa}.users td{padding:8px}.users tr{border:solid 1px #e0e0e0}.presentage{font-size:14px;margin-left:4px;color:#45a143}.presentage.red{color:#ef3d37;font-weight:600}.btn.add-credit{background:#fff;color:#45a143;font-size:16px;font-weight:400;padding:0 8px;border-radius:0;word-spacing:2px;letter-spacing:0.5px;border:solid 2px #45a143;float:right;margin-right:20px}.btn.add-credit:hover{background:#45a143;color:#fff}th{text-align:left;font-weight:400;padding:10px}i.fa-eye{padding-right:10px;color:#ccc}i.fa-eye.active{color:#578dac}i.fa-hand-pointer-o{padding-left:10px;color:#578dac}.notes{background:#fafafa;margin:0 20px 20px 0;padding:5px 10px 10px;min-height:245px;font-size:30px;color:#ef3d37;font-weight:400}.notes-head{font-size:16px;font-weight:400;font-style:italic;color:#697c89}.notes-line{background:#697c89;height:2px;width:80px;margin-bottom:5px}.auctioneerlists{margin:0 20px 20px 0;overflow:scroll;max-height:450px}.closed.bids{max-height:360px;overflow:scroll}.closed{position:relative}span.bookbid{float:right;margin-right:10px;color:#45a143;font-style:italic}span.maxed-out{float:right;margin-right:10px;color:#ef3d37;font-style:italic}a.delbid{float:right;margin-right:15px;text-decoration:none;color:#424242;font-size:18px}a.delbid.undo{color:#808080}.extension-head{background:#fff;padding:14px 3px 12px 15px;position:absolute;top:1px;right:2px}.bids-table-wrapper,.credit-requests-table-wrapper{max-height:320px;overflow:auto}table.lots,table.credit-requests{width:100%;border-collapse:collapse}.lots tr{height:45px;border-bottom:solid 1px #e0e0e0;border-right:solid 1px #e0e0e0}td.lot{background:#efefef;text-align:center}td.wonamount{padding-left:10px}.credit-requests-table-wrapper .credit-requests td span{color:#e50909;margin-left:10px}.addwinuser i.fa.fa-pencil-square-o{position:absolute;top:12px;left:6px;color:#578dac;font-size:18px}td.addwinuser{position:relative;width:60%}td.addwinuser input{padding-left:25px;width:90%;font-size:15px;padding-top:3px;padding-bottom:3px;font-weight:300;font-family:asap;color:#424242}td.addwinuser input.noedit{padding-left:6px}td.addwinuser input.floor{background:#ffecb3}td.addwinuser input.floor.unknow-floor-bidder-id{border:5px solid red}td.addwinuser .alert-danger{display:inline-block;margin:2px 0 2px;padding:2px 4px;width:90%;text-align:center}td.exten{width:40px;padding-left:10px}inputtext{background:#fafafa;padding-bottom:10px}.inputtext textarea{width:90%;margin:10px 5% 5px;font-size:16px}.inputtext select{margin-left:5%;height:44px;font-size:16px;font-weight:300;background:#fff;border-style:solid;border-color:#e0e0e0;width:80%}.allusers{clear:both}.messagestream{height:315px;overflow:auto}.auctioneer-left{float:left;width:65%}.auctioneer-left .book-bids .sum{border-left:none}.auctioneer-right{float:right;width:35%}.auctioneer-top{border-bottom:solid 1px #e0e0e0;margin-bottom:20px}.auctioneer-lotnum{font-size:80px;color:#fff;background:#424242;display:inline-block;padding:10px 40px 15px 25px;float:left;font-family:roboto slab}.auctioneer-top .lot-info{text-align:center;min-height:138px;margin-right:150px}.auctioneer-top .title{font-size:24px;font-weight:300;padding:10px 0 10px;font-family:roboto slab;color:#424242}.auctioneer-top .prices{font-size:20px;padding-bottom:5px;font-family:roboto slab}.auctioneer-top .consignor{font-family:roboto slab;font-size:18px}.auctioneer-left .auctioneer-current{border:solid 1px #e0e0e0;margin:0 20px;text-align:center;position:relative}.auctioneer-left .current-amount{font-size:70px;margin-top:15px;display:inline-block;font-family:roboto slab;font-weight:400}.auctioneer-left .auctioneer-current-price{position:relative}.auctioneer-left .label{position:absolute;font-size:36px;padding:4px 10px;top:0;left:0;font-family:roboto slab;font-weight:300;color:#424242}.auctioneer-left .auctioneer-current .status{position:absolute;font-size:20px;padding:10px 50px;color:#fff;top:0;right:0;font-family:roboto slab}.auctioneer-left .auctioneer-current .status.paused{background:#424242}.auctioneer-left .auctioneer-current .status.active{background:#45a143}.auctioneer-left .auctioneer-current .status.going{background:#fb8c00}.auctioneer-left .auctioneer-current .status.gone{background:#607d8b}.auctioneer-left .auctioneer-current-bidder{margin:10px 0 20px;font-size:22px}.auctioneer-left .totalhamer{font-size:18px}.auctioneer-left .next-bid{background:#fafafa;font-size:20px;padding:10px;font-family:roboto slab}.rally-status{position:absolute;right:20px;bottom:15px;font-size:18px;font-weight:400;font-family:'Roboto', sans-serif}.rally-status .fa{font-size:22px}.rally-status.on-step{color:#45a143}.rally-status.off-step{color:#ef3d37}.bidlist{margin:20px}.book-bids{float:left;width:58%;margin-right:4%;margin-bottom:20px}.call-bids{float:right;width:38%}.auctioneer-lot-data{clear:both;background:#fafafa;padding:20px;margin-right:20px;max-height:200px;margin-bottom:20px;overflow:auto}.auctioneer-lot-data img{float:left;padding:0 15px 15px 0;max-width:160px;max-height:200px}.room-bg{background:#efefef}.room-left{width:30%;float:left}.room-right{width:70%;float:left;background:#424242}.room-top-welcome{background:#212121;color:#fff;text-align:center;font-size:36px;padding:18px;word-spacing:2px;font-family:roboto slab}.room-top-welcome .room-top-labels{display:flex;flex-direction:column}.room-top-welcome .room-top-labels .session-title{font-size:24px}.room-starting-soon{background:#212121;color:#fff;text-align:center;position:absolute;z-index:1;background:#424242 url("assets/images/bg-starting-soon.png") no-repeat scroll center bottom;height:100%;width:100%}.room-starting-soon .start-title{font-size:90px}.room-starting-soon .fa.fa-gavel{border:2px solid #fff;border-radius:50%;margin-bottom:30px;padding:75px;font-size:200px}.room-starting-soon .start-text{font-size:60px}.room-item-info{text-align:center;margin-top:100px}.room-lot-num{background:#424242;color:#fff;font-size:90px;display:inline-block;padding:28px 42px;border-radius:50%;margin-bottom:25px}.room-current-price{font-size:48px;line-height:72px;margin-bottom:5px}.room-bidder{font-size:26px;color:#578dac;font-weight:400;font-style:italic;margin-bottom:25px}.room-current-price .price-value{font-weight:600;font-size:78px}.room-current-price .other-currencies{display:grid;font-size:24px;width:200px;margin-left:auto;margin-right:auto;grid-template-columns:100px 100px;line-height:40px;margin-top:10px}.room-current-price-converted .col-sm-6{font-size:24px;margin-bottom:10px;font-style:italic}.room-item-title{font-size:54px;margin-bottom:30px}.room-item-status{color:#578dac;font-weight:400;font-size:28px;font-style:italic;margin-bottom:15px}.room-image-block{background:#424242;text-align:center;padding-bottom:30px}.room-image-block img{padding:35px;max-height:590px;margin:auto}.room-items-desciption{background:#efefef;width:80%;margin:0 auto 40px;padding:10px;font-size:24px;border-radius:10px}.saleinfo{background:#2c3e50;color:#fff;text-align:center;padding:9px;font-size:18px;margin:20px 0 25px}.max-bids{text-align:center;margin-bottom:25px;font-size:16px}.max-bids button{margin-right:50px}.staff input[type="text"]{width:120px;text-align:center;height:24px}.staff button{border-style:solid;background:#fff;border:solid 1px #e0e0e0;height:24px;width:30px;font-weight:400}.staff button.aprove,.green{color:#45a143}.staff button.aprove:hover{background:#45a143;color:#fff;border-color:#45a143}.staff button.unaprove,.red{color:#ef3d37}.staff button.unaprove:hover{background:#ef3d37;color:#fff;border-color:#ef3d37}.staff table{width:100%}.staff th{padding:10px;font-weight:300;border-bottom:solid 2px #e0e0e0}.staff td{padding:10px 5px;border-bottom:solid 1px #e0e0e0;font-weight:300}.staff .last td{border-bottom:none}.staff .actions{width:80px}.staff .gray{background:#fafafa}.staff .block-outer{border:solid 1px #578ebe;margin-bottom:25px;padding:0 10px}.staff .block-title{background:#578ebe;color:#fff;padding:5px 20px}.staff .suspend-bids{float:right;background:#fcf8e3;color:#424242;padding:0 25px;border-radius:12px;border:solid #F3D8A0 1px}.staff .suspend-bids input{margin:0 5px}.staff table.closed-lots.suspened{opacity:0.5}.staff table.call-req{width:55%}.staff .callnotes{float:right;width:44%}.staff i.fa.fa-gavel,.staff i.fa.fa-volume-control-phone,.staff i.fa.fa-laptop{width:25px;font-size:16px;margin:0;padding:0;border:none}.staff .header{padding:10px 10px 6px}.staff .callreq{min-height:250px}.staff .callnotes button{width:auto;padding:5px 20px;height:auto;margin-left:25%}.staff textarea{resize:none;border-color:#F3D8A0;padding:10px;width:100%;height:150px;background:#fcf8e3}.obscure-bid-block{text-align:center;padding:20px 0;font-size:16px}.labels{font-style:italic;padding-right:25px}.no-bids button.btn{background:#fff;color:#424242;font-size:15px;font-weight:400;padding:10px 10%;border-radius:0;word-spacing:2px;letter-spacing:0.5px;border:solid 2px #bcbcbc;white-space:normal}.fa-black-tie{margin-right:5px;font-size:18px}.btn .fa-black-tie{position:relative;top:2px}.with-bid .fa-black-tie{color:#4B77BE}.no-bids button.btn:hover,.no-bids button.btn:focus{background:#424242;border-color:#424242;color:#fff;outline:none;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}.submit-bid .bid-amount{color:#fff;display:inline-block;margin-bottom:10px}.submit-bid .currency{padding:4px 6px;background:#45a143;border-bottom:solid 1px #45a143}.bid-amount input.form-text{border:solid 2px #45a143;width:85%;color:#424242;text-align:center;padding-right:20px;font-weight:400}button.btn.enter-obscure-bid{background:#fff;color:#45a143;font-size:15px;font-weight:400;padding:10px 8%;border-radius:0;word-spacing:2px;letter-spacing:0.5px;border:solid 2px #bcbcbc;position:relative;left:6px;bottom:1px}button.btn.enter-obscure-bid:hover,button.btn.enter-obscure-bid:focus{background:#45a143;color:#fff;border-color:#45a143;outline:none;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}button.button.cancel-bid{background:#fff;color:#ef3d37;height:45px;width:30px;font-size:16px;border:solid 2px #bcbcbc;outline:none}.enter-obscure-bid i.fa-spinner{margin-left:2px}.change-bid{margin-top:5px}.change-bid a{color:#45a143;font-size:15px;border:solid 2px #bcbcbc;padding:12px 15%;font-weight:400;display:inline-block}.change-bid i{padding-right:5px}.change-bid a:hover,.change-bid a:focus{background:#45a143;color:#fff;border-color:#45a143;text-decoration:none;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}.livesale a{background:#45a143;color:#fff;padding:5px 20px;display:inline-block;text-decoration:none;border:solid 3px #45a143;margin-top:5px}.livesale a:hover,.livesale a:focus{color:#4d863f;background:#fff;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}.mail-current-price{margin-bottom:5px}.highest-mail-bid{font-style:italic;font-size:15px;color:#45a143;font-weight:400}.mail-bid-amount button.btn.operator{font-size:24px;color:#424242;background:none;border:none;text-shadow:none;box-shadow:none;width:auto;outline:none}.mail-bid-amount button.btn.operator.disabled{color:#a9a9a9}span.mail-amount{border:solid 2px #424242;padding:3px 12%;font-weight:400}.user-title{margin-top:30px;font-size:38px;font-family:'Roboto Slab', serif;font-weight:300;color:#424242}.user-sub-title{margin-top:30px;font-size:28px;font-family:'Roboto Slab', serif;font-weight:300;color:#424242}.top-nav-outer{background:#efefef;border-top:solid 2px #ddd;border-bottom:solid 2px #ddd;margin:25px 0 30px;padding:10px}.top-nav{display:inline-block;text-align:center}.top-nav a{color:#444;padding:20px 50px}.top-nav.active a{background:#fff;border:solid 1px #ddd}.sale-title{text-align:center;font-size:26px}.sale-date{text-align:center}.lot.col-xs-12{margin-top:50px;border-bottom:solid 1px #ddd;padding-bottom:40px}.lot-title-body{font-size:16px;margin-top:15px;margin-bottom:10px}.lotnum,.start{padding-right:20px;margin-right:20px;font-weight:400}.lot-title-body{font-size:16px;margin-top:15px;margin-bottom:10px}.center{text-align:center}.mybid{font-weight:400;border-bottom:solid 1px #ccc;padding:5px 0 0px;margin-bottom:8px}.bidtype{font-style:italic;font-weight:300;font-size:14px;color:#578DB3}.my-bids .fa-black-tie{color:#4B77BE;margin-right:5px;font-size:22px;position:relative;top:2px}.mybid .date{font-size:14px;float:right;font-weight:300}.nobids{text-align:center;margin:40px 0;font-size:22px}.sale-select{font-size:18px;text-align:center;margin:5px 0 30px}.sale-select select{background:#fff;border-radius:0;height:36px;width:30%;border:solid 1px #45a143;margin-top:10px;font-size:16px}.sale-select button.select{border:solid 1px #45a143;font-size:16px;color:#45a143;height:36px;position:relative;left:-8px;padding:2px 32px 0 30px;border-radius:0 6px 6px 0;top:1px}.sale-select button.select:hover{background:#45a143;color:#fff}.user-message{margin-top:20px;border:solid 2px #4db6ac;padding:10px;border-radius:4px;text-align:center;font-family:'Roboto Slab', serif}.user-update-message{font-size:22px;margin-top:20px;border:solid 2px #4db6ac;padding:15px 10px 10px;border-radius:4px;text-align:center;font-family:'Roboto Slab', serif}.user-update-message .fa-check-circle{color:#4db6ac;font-size:36px;vertical-align:bottom;padding-right:10px}.user-message-title{font-size:22px;margin:10px 0 25px}.user-link{position:relative;top:-4px;font-size:16px;font-weight:400}.user-link a{color:#4db6ac;font-style:italic}.field-type-text{margin-top:20px}.control-label{color:#757575;font-weight:400;margin-top:20px;font-size:16px}.user input{height:45px;font-size:18px}.user button.btn{width:100%;background-color:#4db6ac;border:solid 2px #4db6ac;color:#fff;font-family:roboto slab;font-size:24px;font-weight:300;padding:8px;margin-top:15px}.user button.btn:hover,.user button.btn:focus{background-color:#fff;color:#4db6ac;-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;transition:all 500ms ease}a.forgotlink{float:right;color:#4db6ac;font-style:italic;font-weight:400;margin-top:5px}.input-group-addon{height:45px;width:150px;font-size:16px}.input-group{width:100%}.user select{height:45px;font-size:16px}.user ul{padding-left:0}.user li{list-style:none;display:inline-block;margin:5px 20px 0 0}.user .form-checkboxes input{height:auto;margin-right:5px}.user textarea{font-size:16px}.user .credit{font-size:18px;margin:45px 0 35px}.user .request-credit{margin-top:10px;color:#578ebe;font-style:italic;font-weight:400}.user .login label{color:#757575;font-weight:400}.user .login .col-sm-4,.user .login .col-xs-6{width:100%;padding:0;margin-top:20px}.user .login .join{display:none}.user .login a{float:right;color:#4db6ac;font-style:italic;font-weight:400;margin-top:0px;text-decoration:none;font-size:16px}.user .error{clear:both;background:#c62828;color:#fff;font-size:18px;font-weight:400;padding:5px 25px;border-radius:8px;display:inline-block;margin-top:15px}.user.small-login .login label,.user.small-login .user-title,.user.small-login .user-link,.user.small-login .forgotpass{display:none}.user.small-login .login .col-sm-4,.user.small-login .login .col-xs-6{margin-top:10px}.user.small-login input{height:30px;font-size:16px}.user.small-login button.btn{font-size:18px;margin-top:0;padding:2px}.user-block.container{width:100%;height:100%}.logged-out{padding:5px 10px}.logged-out a{color:#424242;font-size:16px;font-weight:400}.logged-in .dropdown-menu{margin:0;padding:0;font-size:16px}.logged-in .btn{font-size:16px}.logged-in a.dropdown-item{display:block;padding:5px 10px;border-bottom:solid 1px #ccc;color:#424242}.logged-in a.dropdown-item.last{border-bottom:none}.logged-in a.dropdown-item:hover{text-decoration:none;font-weight:400}.rtl div,.rtl span{direction:rtl}.rtl .col-sm-3,.rtl .col-sm-4,.rtl .col-sm-8,.rtl .col-sm-9{float:right}.rtl .lang-select{text-align:left}.rtl .pipeline{padding-left:10px;margin-left:10px;border-left:solid 1px #9a9a9a;padding-right:0;margin-right:0;border-right:none}.rtl .bid-block .popups .fa{float:right;padding:4px 0 0 8px}.rtl .place-bids .col-xs-11,.rtl .place-bids .col-xs-1{float:right}.rtl .room-right,.rtl .room-left{float:right}.rtl .auctioneer-lotnum{float:right}.rtl .clerk-current-price .label{right:0;left:unset}.rtl .auctioneer-left .auctioneer-current .status{left:0;right:unset}.rtl .auctioneer-right{float:left}.rtl .auctioneer-left{float:right}.rtl .book-bids{float:right;margin-right:0;margin-left:4%}.rtl .notes,.rtl .auctioneerlists{margin:0 0 20px 20px}.rtl .lots tr{border-left:solid 1px #e0e0e0;border-right:none}.rtl a.delbid{float:left;margin-left:15px}.rtl .sum{border-right:solid 1px #e0e0e0;border-left:none}.rtl .auctioneer-lot-data{margin-left:20px;margin-right:0}.rtl .auctioneer-lot-data img{float:right;padding:0 0 15px 15px}.rtl .extension-head{left:2px;right:unset}.rtl td.wonamount{padding-left:0;padding-right:10px}.rtl .addwinuser i.fa.fa-pencil-square-o{left:unset;right:6px}.rtl td.addwinuser input{padding-right:25px;padding-left:0}.rtl .pausedtext{right:unset;left:2%}.rtl .clerk-current{margin-right:12%;margin-left:0;right:0}.rtl i.fa.fa-chevron-right{transform:rotate(180deg)}.rtl .clerk-main button.btn.place-bid{margin-left:10px;margin-right:0}.rtl .enter-bid,.rtl .enter-step{margin-left:0;margin-right:5px}.rtl input.ui.enter-bid.input,.rtl input.ui.enter-step.input{margin-left:-1px;margin-right:-1px}.rtl button.ui.button.primary.last-to-floor{margin-left:0;margin-right:30px}.rtl button.ui.button.big{margin-right:0;margin-left:24px}.rtl .clerk-current-item img{float:right;padding:0 0 10px 10px}.rtl .clerk-current-item .title{padding-right:0;padding-left:75px}.rtl button.button.primary.send-public-message{right:-6px}.rtl .col-md-2,.rtl .col-md-3,.rtl .col-md-7{float:right}.rtl .start{padding-right:0;margin-right:0;padding-left:20px;margin-left:20px}.rtl .input-group-addon{border-left:0;border-right:1px solid #ccc;border-radius:0 4px 4px 0}.rtl .user .form-checkboxes input{margin-right:0;margin-left:5px}.rtl a.forgotlink{float:left}.rtl button.btn.enter-obscure-bid{left:unset;right:6px}.rtl .logged-in .dropdown-menu{right:0;left:unset;text-align:right}.user{-webkit-box-shadow:0px 15px 30px rgba(0,0,0,0.1);box-shadow:0px 15px 30px rgba(0,0,0,0.1);padding-bottom:50px;background:#fff;padding-left:50px;padding-right:50px}.user-title{font-family:"AdobeGaramondW01-Regular", georgia, times, serif;color:#0f3457}.user-title:after{content:'';display:block;height:3px;width:6rem;background:#00b1eb;margin-top:1rem;margin-bottom:4rem}.form-item.remember{clear:both}.user-link a,.user .login a,.remember a{color:#E50909}.user .control-label a{float:none}.user button.btn,.no-bids button.btn,.change-bid a{border-radius:3px;-webkit-box-shadow:0px 4px 6px rgba(0,0,0,0.25);box-shadow:0px 4px 6px rgba(0,0,0,0.25);background-color:#75111b;color:#fff;letter-spacing:1px;-webkit-transition:500ms;transition:500ms;border:none;font-weight:300}.user button.btn{width:auto;float:right;padding:8px 20px;font-size:1.9rem}.user i.fa-spin{display:none}.user button.btn:hover,.user button.btn:focus,.no-bids button.btn:hover,.no-bids button.btn:focus,.change-bid a:hover,.change-bid a:focus{-webkit-transition:500ms;transition:500ms;-webkit-transform:translateY(1px);transform:translateY(1px);-webkit-box-shadow:0px 2px 3px rgba(0,0,0,0.25);box-shadow:0px 2px 3px rgba(0,0,0,0.25);background-color:#E50909;color:#fff}.med.name{text-align:left;padding-left:15px}.request-actions .fa-check{color:#45a143;padding:5px;cursor:pointer}.request-actions .fa-times-circle{color:#E50909;padding:5px;cursor:pointer}.clerk-credit-request{clear:both;width:500px;margin:40px 2%}#__bs_notify__{pointer-events:none}a{cursor:pointer}.disabled{pointer-events:none;color:#777}