mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Admin Portal - Profile
This commit is contained in:
parent
fca4d10235
commit
dfb081ba6a
102
public/main.profile.dart.js
vendored
102
public/main.profile.dart.js
vendored
@ -82539,15 +82539,19 @@
|
||||
this.context = t1;
|
||||
this.client = t2;
|
||||
},
|
||||
_ClientViewDetailsState_build__buildDetailsList_closure2: function _ClientViewDetailsState_build__buildDetailsList_closure2(t0, t1, t2) {
|
||||
this.$this = t0;
|
||||
this.context = t1;
|
||||
this.client = t2;
|
||||
_ClientViewDetailsState_build__buildDetailsList_closure2: function _ClientViewDetailsState_build__buildDetailsList_closure2(t0, t1, t2, t3) {
|
||||
var _ = this;
|
||||
_.$this = t0;
|
||||
_.context = t1;
|
||||
_.state = t2;
|
||||
_.client = t3;
|
||||
},
|
||||
_ClientViewDetailsState_build__buildDetailsList_closure3: function _ClientViewDetailsState_build__buildDetailsList_closure3(t0, t1, t2) {
|
||||
this.$this = t0;
|
||||
this.context = t1;
|
||||
this.client = t2;
|
||||
_ClientViewDetailsState_build__buildDetailsList_closure3: function _ClientViewDetailsState_build__buildDetailsList_closure3(t0, t1, t2, t3) {
|
||||
var _ = this;
|
||||
_.$this = t0;
|
||||
_.context = t1;
|
||||
_.state = t2;
|
||||
_.client = t3;
|
||||
},
|
||||
ClientViewDocuments: function ClientViewDocuments(t0, t1) {
|
||||
this.viewModel = t0;
|
||||
@ -103242,10 +103246,12 @@
|
||||
this.context = t1;
|
||||
this.vendor = t2;
|
||||
},
|
||||
_VendorViewDetailsState_build__buildDetailsList_closure2: function _VendorViewDetailsState_build__buildDetailsList_closure2(t0, t1, t2) {
|
||||
this.$this = t0;
|
||||
this.context = t1;
|
||||
this.vendor = t2;
|
||||
_VendorViewDetailsState_build__buildDetailsList_closure2: function _VendorViewDetailsState_build__buildDetailsList_closure2(t0, t1, t2, t3) {
|
||||
var _ = this;
|
||||
_.$this = t0;
|
||||
_.context = t1;
|
||||
_.state = t2;
|
||||
_.vendor = t3;
|
||||
},
|
||||
VendorViewDocuments: function VendorViewDocuments(t0, t1) {
|
||||
this.viewModel = t0;
|
||||
@ -104167,8 +104173,8 @@
|
||||
return url;
|
||||
return "http://" + url;
|
||||
},
|
||||
formatAddress(delimiter, isShipping, object) {
|
||||
var address2, city, state, postalCode, str,
|
||||
formatAddress(appState, delimiter, isShipping, object) {
|
||||
var address2, city, state, postalCode, countryId, str, t1, t2,
|
||||
address1 = isShipping ? object.get$shippingAddress1() : object.get$address1();
|
||||
if (address1 == null)
|
||||
address1 = "";
|
||||
@ -104184,6 +104190,9 @@
|
||||
postalCode = isShipping ? object.get$shippingPostalCode() : object.get$postalCode(object);
|
||||
if (postalCode == null)
|
||||
postalCode = "";
|
||||
countryId = isShipping ? object.get$shippingCountryId() : object.get$countryId();
|
||||
if (countryId == null)
|
||||
countryId = "";
|
||||
str = address1.length !== 0 ? address1 + delimiter : "";
|
||||
if (address2.length !== 0)
|
||||
str += address2 + delimiter;
|
||||
@ -104191,7 +104200,23 @@
|
||||
str += city + ", ";
|
||||
if (state.length !== 0)
|
||||
str += state + " ";
|
||||
return postalCode.length !== 0 ? str + postalCode : str;
|
||||
if (postalCode.length !== 0)
|
||||
str += postalCode;
|
||||
if (countryId.length !== 0) {
|
||||
t1 = appState.userCompanyStates;
|
||||
t2 = appState.uiState.selectedCompanyIndex;
|
||||
t2 = countryId !== t1._list[t2].userCompany.company.settings.countryId;
|
||||
t1 = t2;
|
||||
} else
|
||||
t1 = false;
|
||||
if (t1) {
|
||||
if (str.length !== 0)
|
||||
str += delimiter;
|
||||
t1 = appState.staticState.countryMap._map$_map.$index(0, countryId);
|
||||
t1 = t1 == null ? null : t1.name;
|
||||
str += t1 == null ? "" : t1;
|
||||
}
|
||||
return str;
|
||||
},
|
||||
convertDateTimeToSqlDate(date) {
|
||||
return B.JSArray_methods.get$first((date == null ? new A.DateTime(Date.now(), false) : date).toIso8601String$0().split("T"));
|
||||
@ -271535,6 +271560,9 @@
|
||||
get$postalCode(receiver) {
|
||||
return this.postalCode;
|
||||
},
|
||||
get$countryId() {
|
||||
return this.countryId;
|
||||
},
|
||||
get$shippingAddress1() {
|
||||
return this.shippingAddress1;
|
||||
},
|
||||
@ -271550,6 +271578,9 @@
|
||||
get$shippingPostalCode() {
|
||||
return this.shippingPostalCode;
|
||||
},
|
||||
get$shippingCountryId() {
|
||||
return this.shippingCountryId;
|
||||
},
|
||||
get$createdAt() {
|
||||
return this.createdAt;
|
||||
},
|
||||
@ -292965,6 +292996,9 @@
|
||||
},
|
||||
get$postalCode(receiver) {
|
||||
return this.postalCode;
|
||||
},
|
||||
get$countryId() {
|
||||
return this.countryId;
|
||||
}
|
||||
};
|
||||
A.SettingsEntityBuilder.prototype = {
|
||||
@ -303684,6 +303718,9 @@
|
||||
get$postalCode(receiver) {
|
||||
return this.postalCode;
|
||||
},
|
||||
get$countryId() {
|
||||
return this.countryId;
|
||||
},
|
||||
get$createdAt() {
|
||||
return this.createdAt;
|
||||
},
|
||||
@ -373327,7 +373364,7 @@
|
||||
};
|
||||
A._ClientViewDetailsState_build__buildDetailsList.prototype = {
|
||||
call$0() {
|
||||
var t5, billingAddress, shippingAddress, _this = this, _null = null,
|
||||
var t5, state, billingAddress, shippingAddress, _this = this, _null = null,
|
||||
listTiles = A._setArrayType([], type$.JSArray_legacy_Widget),
|
||||
t1 = _this.client,
|
||||
t2 = _this.$this,
|
||||
@ -373346,12 +373383,13 @@
|
||||
t5 = t1.idNumber;
|
||||
if (t5.length !== 0)
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_57627_MaterialIcons_null_false, _null, t3.get$idNumber(), t5));
|
||||
billingAddress = A.formatAddress("\n", false, t1);
|
||||
shippingAddress = A.formatAddress("\n", true, t1);
|
||||
state = A._lateReadCheck(A.StoreProvider_of(t4, type$.legacy_AppState).__Store__state, "_state");
|
||||
billingAddress = A.formatAddress(state, "\n", false, t1);
|
||||
shippingAddress = A.formatAddress(state, "\n", true, t1);
|
||||
if (billingAddress.length !== 0)
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._ClientViewDetailsState_build__buildDetailsList_closure2(t2, t4, t1), t3.get$billingAddress(), billingAddress));
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._ClientViewDetailsState_build__buildDetailsList_closure2(t2, t4, state, t1), t3.get$billingAddress(), billingAddress));
|
||||
if (shippingAddress.length !== 0)
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._ClientViewDetailsState_build__buildDetailsList_closure3(t2, t4, t1), t3.get$shippingAddress(t3), shippingAddress));
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._ClientViewDetailsState_build__buildDetailsList_closure3(t2, t4, state, t1), t3.get$shippingAddress(t3), shippingAddress));
|
||||
listTiles.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.FutureBuilder$(t2.get$_client_view_details$_launchStatus(), t2._client_view_details$_launched, type$.Null), _null));
|
||||
return listTiles;
|
||||
},
|
||||
@ -373454,17 +373492,19 @@
|
||||
};
|
||||
A._ClientViewDetailsState_build__buildDetailsList_closure2.prototype = {
|
||||
call$0() {
|
||||
var t1 = this.$this,
|
||||
var _this = this,
|
||||
t1 = _this.$this,
|
||||
t2 = A.isAndroid() ? "https://maps.google.com/?q=" : "http://maps.apple.com/?address=";
|
||||
t1._client_view_details$_launched = t1._client_view_details$_launchURL$2(this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(",", false, this.client), B.C_Utf8Codec, false)));
|
||||
t1._client_view_details$_launched = t1._client_view_details$_launchURL$2(_this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(_this.state, ",", false, _this.client), B.C_Utf8Codec, false)));
|
||||
},
|
||||
$signature: 1
|
||||
};
|
||||
A._ClientViewDetailsState_build__buildDetailsList_closure3.prototype = {
|
||||
call$0() {
|
||||
var t1 = this.$this,
|
||||
var _this = this,
|
||||
t1 = _this.$this,
|
||||
t2 = A.isAndroid() ? "https://maps.google.com/?q=" : "http://maps.apple.com/?address=";
|
||||
t1._client_view_details$_launched = t1._client_view_details$_launchURL$2(this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(",", true, this.client), B.C_Utf8Codec, false)));
|
||||
t1._client_view_details$_launched = t1._client_view_details$_launchURL$2(_this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(_this.state, ",", true, _this.client), B.C_Utf8Codec, false)));
|
||||
},
|
||||
$signature: 1
|
||||
};
|
||||
@ -383306,7 +383346,7 @@
|
||||
t5 = t4.name,
|
||||
t6 = t1.get$address(),
|
||||
t7 = t4.address1,
|
||||
t8 = t7 != null && t7.length !== 0 ? A.formatAddress("\n", false, t4) : _null,
|
||||
t8 = t7 != null && t7.length !== 0 ? A.formatAddress(t2, "\n", false, t4) : _null,
|
||||
t9 = t1.get$phone(t1),
|
||||
t10 = t4.phone,
|
||||
t11 = t1.get$email(),
|
||||
@ -418617,7 +418657,7 @@
|
||||
};
|
||||
A._VendorViewDetailsState_build__buildDetailsList.prototype = {
|
||||
call$0() {
|
||||
var t5, address, _this = this, _null = null,
|
||||
var t5, state, address, _this = this, _null = null,
|
||||
listTiles = A._setArrayType([], type$.JSArray_legacy_Widget),
|
||||
t1 = _this.vendor,
|
||||
t2 = _this.$this,
|
||||
@ -418636,9 +418676,10 @@
|
||||
t5 = t1.idNumber;
|
||||
if (t5.length !== 0)
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_57627_MaterialIcons_null_false, _null, t3.get$idNumber(), t5));
|
||||
address = A.formatAddress("\n", false, t1);
|
||||
state = A._lateReadCheck(A.StoreProvider_of(t4, type$.legacy_AppState).__Store__state, "_state");
|
||||
address = A.formatAddress(state, "\n", false, t1);
|
||||
if (address.length !== 0)
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._VendorViewDetailsState_build__buildDetailsList_closure2(t2, t4, t1), t3.get$billingAddress(), address));
|
||||
listTiles.push(A.AppListTile$(_null, _null, B.IconData_58567_MaterialIcons_null_false, new A._VendorViewDetailsState_build__buildDetailsList_closure2(t2, t4, state, t1), t3.get$billingAddress(), address));
|
||||
listTiles.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.FutureBuilder$(t2.get$_launchStatus(), t2._launched, type$.Null), _null));
|
||||
return listTiles;
|
||||
},
|
||||
@ -418721,9 +418762,10 @@
|
||||
};
|
||||
A._VendorViewDetailsState_build__buildDetailsList_closure2.prototype = {
|
||||
call$0() {
|
||||
var t1 = this.$this,
|
||||
var _this = this,
|
||||
t1 = _this.$this,
|
||||
t2 = A.isAndroid() ? "https://maps.google.com/?q=" : "http://maps.apple.com/?address=";
|
||||
t1._launched = t1._launchURL$2(this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(",", false, this.vendor), B.C_Utf8Codec, false)));
|
||||
t1._launched = t1._launchURL$2(_this.context, B.JSString_methods.$add(t2, A._Uri__uriEncode(B.List_gnE, A.formatAddress(_this.state, ",", false, _this.vendor), B.C_Utf8Codec, false)));
|
||||
},
|
||||
$signature: 1
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user