From 4398e9ed56804b6047c17875bc806ce9476dc9f0 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Thu, 3 Mar 2022 07:25:24 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 355e86999973..b91416c9fddf 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -55095,7 +55095,7 @@ if (B.JSString_methods.startsWith$1(url, "https://invoicing.co")) secret = ""; t1 = type$.legacy_String; - headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.76", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1); + headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.77", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1); if (token.length !== 0) headers.$indexSet(0, "X-API-Token", token); if ((idToken == null ? "" : idToken).length !== 0) @@ -55118,9 +55118,9 @@ else if (serverVersion == null) throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server"); else { - t2 = A.Version__compare(A.Version_parse("5.0.76"), A.Version_parse(minClientVersion)); + t2 = A.Version__compare(A.Version_parse("5.0.77"), A.Version_parse(minClientVersion)); if (t2 < 0) - throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.76 < Minimum v" + A.S(minClientVersion) + "]"); + throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.77 < Minimum v" + A.S(minClientVersion) + "]"); else { t2 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4")); if (t2 < 0) @@ -283736,9 +283736,10 @@ } t3 = _this.invitations._list; if (t3.length !== 0) - if (multiselect) - actions.push(B.EntityAction_bulkDownload); - else { + if (multiselect) { + if (!B.JSArray_methods.contains$1(A._setArrayType([B.EntityType_recurringInvoice], type$.JSArray_legacy_EntityType), _this.entityType)) + actions.push(B.EntityAction_bulkDownload); + } else { actions.push(B.EntityAction_viewPdf); if (!B.JSArray_methods.contains$1(A._setArrayType([B.EntityType_recurringInvoice], type$.JSArray_legacy_EntityType), _this.entityType)) actions.push(B.EntityAction_download); @@ -284016,15 +284017,15 @@ return _this.statusId; }, get$isPastDue() { - var t2, _this = this, - t1 = _this.dueDate; - if (t1.length === 0 || _this.balance === 0) + var t1, t2, _this = this, + date = _this.partial !== 0 && _this.partialDueDate.length !== 0 ? _this.partialDueDate : _this.dueDate; + if (date.length === 0 || _this.balance === 0) return false; if (!_this.isDeleted) if (!B.JSArray_methods.contains$1(A._setArrayType([B.EntityType_recurringInvoice], type$.JSArray_legacy_EntityType), _this.entityType)) if (_this.statusId !== "1") if (_this.get$isUnpaid()) { - t1 = A.DateTime_tryParse(t1); + t1 = A.DateTime_tryParse(date); t2 = new A.DateTime(Date.now(), false).subtract$1(A.Duration$(1, 0, 0, 0, 0, 0)); t2 = t1._value < t2._value; t1 = t2; @@ -312862,7 +312863,7 @@ version = "v" + (t1 == null ? "" : t1); if (version.length !== 0) version += "-"; - return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.76".split("."))); + return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.77".split("."))); }, get$historyList() { var _this = this, @@ -364639,8 +364640,13 @@ A.TokenMeta.prototype = { build$1(_, context) { var _null = null, - t1 = this.meta; - return A.Row$(A._setArrayType([A.Image$asset("assets/images/payment_types/" + A.S(t1.brand) + ".png", 16, _null), new A.SizedBox(8, _null, _null, _null), new A.Flexible(1, B.FlexFit_1, A.Text$("\u2022\u2022\u2022\u2022 " + A.S(t1.last4) + " " + A.S(t1.expMonth) + "/" + A.S(t1.expYear), _null, _null, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), _null)], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null); + t1 = this.meta, + t2 = t1.last4, + cardDetails = t2 != null ? "\u2022\u2022\u2022\u2022" + (" " + t2) : "\u2022\u2022\u2022\u2022"; + t2 = t1.expMonth; + if (t2 != null && t1.expYear != null) + cardDetails += " " + A.S(t2) + "/" + A.S(t1.expYear); + return A.Row$(A._setArrayType([A.Image$asset("assets/images/payment_types/" + A.S(t1.brand) + ".png", 16, _null), new A.SizedBox(8, _null, _null, _null), new A.Flexible(1, B.FlexFit_1, A.Text$(cardDetails, _null, _null, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), _null)], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null); } }; A.HelpText.prototype = { @@ -367727,7 +367733,7 @@ A._showAbout__closure1.prototype = { call$0() { var _null = null; - A.showMessageDialog(this.context, B.JSString_methods.$add(B.Map_eBRcp.$index(0, "channel").toUpperCase() + " \u2022 ", B.Map_eBRcp.$index(0, "frameworkVersion")), _null, A._setArrayType([A.TextButton$(false, A.Text$(this.localization.get$logout().toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._showAbout___closure1(this.store), _null)], type$.JSArray_legacy_TextButton)); + A.showMessageDialog(this.context, B.JSString_methods.$add(B.Map_eBzfi.$index(0, "channel").toUpperCase() + " \u2022 ", B.Map_eBzfi.$index(0, "frameworkVersion")), _null, A._setArrayType([A.TextButton$(false, A.Text$(this.localization.get$logout().toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._showAbout___closure1(this.store), _null)], type$.JSArray_legacy_TextButton)); }, $signature: 1 }; @@ -444190,7 +444196,7 @@ B.Map_cW2No = new A.GeneralConstantMap([B.SingleActivator_j8H10, B.C_AutocompletePreviousOptionIntent, B.SingleActivator_j8H7, B.C_AutocompleteNextOptionIntent], type$.GeneralConstantMap_of_legacy_ShortcutActivator_and_legacy_Intent); B.Map_cW2nU = new A.GeneralConstantMap([B.SingleActivator_j8H7, B.DirectionalFocusIntent_TraversalDirection_2, B.SingleActivator_j8H10, B.DirectionalFocusIntent_TraversalDirection_0], type$.GeneralConstantMap_of_legacy_ShortcutActivator_and_legacy_Intent); B.List_eBn = A._setArrayType(makeConstList(["frameworkVersion", "channel", "repositoryUrl", "frameworkRevision", "frameworkCommitDate", "engineRevision", "dartSdkVersion", "devToolsVersion", "flutterRoot"]), type$.JSArray_legacy_String); - B.Map_eBRcp = new A.ConstantStringMap(9, {frameworkVersion: "2.10.2", channel: "stable", repositoryUrl: "https://github.com/flutter/flutter.git", frameworkRevision: "097d3313d8e2c7f901932d63e537c1acefb87800", frameworkCommitDate: "2022-02-18 19:33:08 -0600", engineRevision: "a83ed0e5e3b9cd2b5e2f07ef31c72f43c55e93b7", dartSdkVersion: "2.16.1", devToolsVersion: "2.9.2", flutterRoot: "/opt/hostedtoolcache/flutter/2.10.2-stable/x64"}, B.List_eBn, type$.ConstantStringMap_of_legacy_String_and_legacy_String); + B.Map_eBzfi = new A.ConstantStringMap(9, {frameworkVersion: "2.10.3", channel: "stable", repositoryUrl: "https://github.com/flutter/flutter.git", frameworkRevision: "7e9793dee1b85a243edd0e06cb1658e98b077561", frameworkCommitDate: "2022-03-02 11:23:12 -0600", engineRevision: "bd539267b42051b0da3d16ffa8f48949dce8aa8f", dartSdkVersion: "2.16.1", devToolsVersion: "2.9.2", flutterRoot: "/opt/hostedtoolcache/flutter/2.10.3-stable/x64"}, B.List_eBn, type$.ConstantStringMap_of_legacy_String_and_legacy_String); B.Map_eRea7 = new A.GeneralConstantMap([9, B.PhysicalKeyboardKey_458793, 10, B.PhysicalKeyboardKey_458782, 11, B.PhysicalKeyboardKey_458783, 12, B.PhysicalKeyboardKey_458784, 13, B.PhysicalKeyboardKey_458785, 14, B.PhysicalKeyboardKey_458786, 15, B.PhysicalKeyboardKey_458787, 16, B.PhysicalKeyboardKey_458788, 17, B.PhysicalKeyboardKey_458789, 18, B.PhysicalKeyboardKey_458790, 19, B.PhysicalKeyboardKey_458791, 20, B.PhysicalKeyboardKey_458797, 21, B.PhysicalKeyboardKey_458798, 22, B.PhysicalKeyboardKey_458794, 23, B.PhysicalKeyboardKey_458795, 24, B.PhysicalKeyboardKey_458772, 25, B.PhysicalKeyboardKey_458778, 26, B.PhysicalKeyboardKey_458760, 27, B.PhysicalKeyboardKey_458773, 28, B.PhysicalKeyboardKey_458775, 29, B.PhysicalKeyboardKey_458780, 30, B.PhysicalKeyboardKey_458776, 31, B.PhysicalKeyboardKey_458764, 32, B.PhysicalKeyboardKey_458770, 33, B.PhysicalKeyboardKey_458771, 34, B.PhysicalKeyboardKey_458799, 35, B.PhysicalKeyboardKey_458800, 36, B.PhysicalKeyboardKey_458792, 37, B.PhysicalKeyboardKey_458976, 38, B.PhysicalKeyboardKey_458756, 39, B.PhysicalKeyboardKey_458774, 40, B.PhysicalKeyboardKey_458759, 41, B.PhysicalKeyboardKey_458761, 42, B.PhysicalKeyboardKey_458762, 43, B.PhysicalKeyboardKey_458763, 44, B.PhysicalKeyboardKey_458765, 45, B.PhysicalKeyboardKey_458766, 46, B.PhysicalKeyboardKey_458767, 47, B.PhysicalKeyboardKey_458803, 48, B.PhysicalKeyboardKey_458804, 49, B.PhysicalKeyboardKey_458805, 50, B.PhysicalKeyboardKey_458977, 51, B.PhysicalKeyboardKey_458801, 52, B.PhysicalKeyboardKey_458781, 53, B.PhysicalKeyboardKey_458779, 54, B.PhysicalKeyboardKey_458758, 55, B.PhysicalKeyboardKey_458777, 56, B.PhysicalKeyboardKey_458757, 57, B.PhysicalKeyboardKey_458769, 58, B.PhysicalKeyboardKey_458768, 59, B.PhysicalKeyboardKey_458806, 60, B.PhysicalKeyboardKey_458807, 61, B.PhysicalKeyboardKey_458808, 62, B.PhysicalKeyboardKey_458981, 63, B.PhysicalKeyboardKey_458837, 64, B.PhysicalKeyboardKey_458978, 65, B.PhysicalKeyboardKey_458796, 66, B.PhysicalKeyboardKey_458809, 67, B.PhysicalKeyboardKey_458810, 68, B.PhysicalKeyboardKey_458811, 69, B.PhysicalKeyboardKey_458812, 70, B.PhysicalKeyboardKey_458813, 71, B.PhysicalKeyboardKey_458814, 72, B.PhysicalKeyboardKey_458815, 73, B.PhysicalKeyboardKey_458816, 74, B.PhysicalKeyboardKey_458817, 75, B.PhysicalKeyboardKey_458818, 76, B.PhysicalKeyboardKey_458819, 77, B.PhysicalKeyboardKey_458835, 78, B.PhysicalKeyboardKey_458823, 79, B.PhysicalKeyboardKey_458847, 80, B.PhysicalKeyboardKey_458848, 81, B.PhysicalKeyboardKey_458849, 82, B.PhysicalKeyboardKey_458838, 83, B.PhysicalKeyboardKey_458844, 84, B.PhysicalKeyboardKey_458845, 85, B.PhysicalKeyboardKey_458846, 86, B.PhysicalKeyboardKey_458839, 87, B.PhysicalKeyboardKey_458841, 88, B.PhysicalKeyboardKey_458842, 89, B.PhysicalKeyboardKey_458843, 90, B.PhysicalKeyboardKey_458850, 91, B.PhysicalKeyboardKey_458851, 93, B.PhysicalKeyboardKey_458900, 94, B.PhysicalKeyboardKey_458852, 95, B.PhysicalKeyboardKey_458820, 96, B.PhysicalKeyboardKey_458821, 97, B.PhysicalKeyboardKey_458887, 98, B.PhysicalKeyboardKey_458898, 99, B.PhysicalKeyboardKey_458899, 100, B.PhysicalKeyboardKey_458890, 101, B.PhysicalKeyboardKey_458888, 102, B.PhysicalKeyboardKey_458891, 104, B.PhysicalKeyboardKey_458840, 105, B.PhysicalKeyboardKey_458980, 106, B.PhysicalKeyboardKey_458836, 107, B.PhysicalKeyboardKey_458822, 108, B.PhysicalKeyboardKey_458982, 110, B.PhysicalKeyboardKey_458826, 111, B.PhysicalKeyboardKey_458834, 112, B.PhysicalKeyboardKey_458827, 113, B.PhysicalKeyboardKey_458832, 114, B.PhysicalKeyboardKey_458831, 115, B.PhysicalKeyboardKey_458829, 116, B.PhysicalKeyboardKey_458833, 117, B.PhysicalKeyboardKey_458830, 118, B.PhysicalKeyboardKey_458825, 119, B.PhysicalKeyboardKey_458828, 121, B.PhysicalKeyboardKey_458879, 122, B.PhysicalKeyboardKey_458881, 123, B.PhysicalKeyboardKey_458880, 124, B.PhysicalKeyboardKey_458854, 125, B.PhysicalKeyboardKey_458855, 126, B.PhysicalKeyboardKey_458967, 127, B.PhysicalKeyboardKey_458824, 128, B.PhysicalKeyboardKey_787103, 129, B.PhysicalKeyboardKey_458885, 130, B.PhysicalKeyboardKey_458896, 131, B.PhysicalKeyboardKey_458897, 132, B.PhysicalKeyboardKey_458889, 133, B.PhysicalKeyboardKey_458979, 134, B.PhysicalKeyboardKey_458983, 135, B.PhysicalKeyboardKey_458853, 136, B.PhysicalKeyboardKey_786982, 137, B.PhysicalKeyboardKey_458873, 139, B.PhysicalKeyboardKey_458874, 140, B.PhysicalKeyboardKey_458871, 141, B.PhysicalKeyboardKey_458876, 142, B.PhysicalKeyboardKey_458868, 143, B.PhysicalKeyboardKey_458877, 144, B.PhysicalKeyboardKey_458878, 145, B.PhysicalKeyboardKey_458875, 146, B.PhysicalKeyboardKey_458869, 148, B.PhysicalKeyboardKey_786834, 150, B.PhysicalKeyboardKey_65666, 151, B.PhysicalKeyboardKey_65667, 152, B.PhysicalKeyboardKey_786836, 158, B.PhysicalKeyboardKey_786838, 160, B.PhysicalKeyboardKey_786846, 163, B.PhysicalKeyboardKey_786826, 164, B.PhysicalKeyboardKey_786986, 166, B.PhysicalKeyboardKey_786980, 167, B.PhysicalKeyboardKey_786981, 169, B.PhysicalKeyboardKey_786616, 171, B.PhysicalKeyboardKey_786613, 172, B.PhysicalKeyboardKey_786637, 173, B.PhysicalKeyboardKey_786614, 174, B.PhysicalKeyboardKey_786615, 175, B.PhysicalKeyboardKey_786610, 176, B.PhysicalKeyboardKey_786612, 177, B.PhysicalKeyboardKey_786572, 179, B.PhysicalKeyboardKey_786819, 180, B.PhysicalKeyboardKey_786979, 181, B.PhysicalKeyboardKey_786983, 182, B.PhysicalKeyboardKey_786580, 187, B.PhysicalKeyboardKey_458934, 188, B.PhysicalKeyboardKey_458935, 189, B.PhysicalKeyboardKey_786945, 190, B.PhysicalKeyboardKey_787065, 191, B.PhysicalKeyboardKey_458856, 192, B.PhysicalKeyboardKey_458857, 193, B.PhysicalKeyboardKey_458858, 194, B.PhysicalKeyboardKey_458859, 195, B.PhysicalKeyboardKey_458860, 196, B.PhysicalKeyboardKey_458861, 197, B.PhysicalKeyboardKey_458862, 198, B.PhysicalKeyboardKey_458863, 199, B.PhysicalKeyboardKey_458864, 200, B.PhysicalKeyboardKey_458865, 201, B.PhysicalKeyboardKey_458866, 202, B.PhysicalKeyboardKey_458867, 209, B.PhysicalKeyboardKey_786609, 214, B.PhysicalKeyboardKey_786947, 215, B.PhysicalKeyboardKey_786608, 216, B.PhysicalKeyboardKey_786611, 217, B.PhysicalKeyboardKey_786661, 218, B.PhysicalKeyboardKey_786952, 225, B.PhysicalKeyboardKey_786977, 232, B.PhysicalKeyboardKey_786544, 233, B.PhysicalKeyboardKey_786543, 235, B.PhysicalKeyboardKey_65717, 237, B.PhysicalKeyboardKey_786554, 238, B.PhysicalKeyboardKey_786553, 239, B.PhysicalKeyboardKey_787084, 240, B.PhysicalKeyboardKey_787081, 241, B.PhysicalKeyboardKey_787083, 242, B.PhysicalKeyboardKey_786951, 243, B.PhysicalKeyboardKey_786855, 252, B.PhysicalKeyboardKey_786549, 256, B.PhysicalKeyboardKey_24, 366, B.PhysicalKeyboardKey_786528, 370, B.PhysicalKeyboardKey_786573, 378, B.PhysicalKeyboardKey_786529, 380, B.PhysicalKeyboardKey_786994, 382, B.PhysicalKeyboardKey_786862, 400, B.PhysicalKeyboardKey_786871, 405, B.PhysicalKeyboardKey_786830, 413, B.PhysicalKeyboardKey_786563, 418, B.PhysicalKeyboardKey_786588, 419, B.PhysicalKeyboardKey_786589, 426, B.PhysicalKeyboardKey_786989, 427, B.PhysicalKeyboardKey_786990, 429, B.PhysicalKeyboardKey_786820, 431, B.PhysicalKeyboardKey_786822, 437, B.PhysicalKeyboardKey_786829, 439, B.PhysicalKeyboardKey_786546, 440, B.PhysicalKeyboardKey_786859, 441, B.PhysicalKeyboardKey_786844, 587, B.PhysicalKeyboardKey_786847, 588, B.PhysicalKeyboardKey_786850, 589, B.PhysicalKeyboardKey_786865, 590, B.PhysicalKeyboardKey_786639, 591, B.PhysicalKeyboardKey_786891, 592, B.PhysicalKeyboardKey_787101, 600, B.PhysicalKeyboardKey_786547, 601, B.PhysicalKeyboardKey_786548, 641, B.PhysicalKeyboardKey_23], type$.GeneralConstantMap_of_legacy_int_and_legacy_PhysicalKeyboardKey); B.Map_empty0 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<@,@>")); B.Map_empty2 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap"));