@bookipi/htmlgenerator 1.1.37 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1166 -27
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1166 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2998,10 +2998,20 @@ var en = (_deposit_due$terms$pr = {
|
|
|
2998
2998
|
details_line_2: function details_line_2(x) {
|
|
2999
2999
|
return "This offer is valid from the date of issue and will expire at the close of business (" + x + "). Acceptance will be in the form of accepting and signing this proposal.";
|
|
3000
3000
|
},
|
|
3001
|
+
details_line_3: function details_line_3(x, y, z) {
|
|
3002
|
+
return x + " (" + y + "). " + z;
|
|
3003
|
+
},
|
|
3004
|
+
details_line_3_1: 'This offer is valid from the date of issue and will expire at the close of business',
|
|
3005
|
+
details_line_3_2: 'Acceptance will be in the form of accepting and signing this proposal.',
|
|
3006
|
+
details_line_4: "Please accept this proposal and terms of service. This creates a legally binding contract between us. At any time if you have any questions please contact us on the details above. These terms will be effective throughout the period of our engagement and may only be changed by the Parties' agreement in writing.",
|
|
3001
3007
|
supplier_details: "Supplier Details",
|
|
3002
3008
|
customer_details: "Customer Details",
|
|
3003
|
-
effective_date: "Dated
|
|
3004
|
-
|
|
3009
|
+
effective_date: "Dated",
|
|
3010
|
+
supplier_empty: "No supplier added yet.",
|
|
3011
|
+
customer_empty: "No customer added yet.",
|
|
3012
|
+
kind_regards: "Kind regards",
|
|
3013
|
+
services_title: "Billing Schedule"
|
|
3014
|
+
}, _deposit_due$terms$pr["total"] = "Total:", _deposit_due$terms$pr.items_empty = "No services added yet.", _deposit_due$terms$pr.agreement_title = "Terms and Conditions", _deposit_due$terms$pr["signature"] = "Signature", _deposit_due$terms$pr.proposal_id = "Proposal ID:", _deposit_due$terms$pr.client = "Client:", _deposit_due$terms$pr.email_addresses = "Email address:", _deposit_due$terms$pr.ip = "IP:", _deposit_due$terms$pr.time = "Time:", _deposit_due$terms$pr);
|
|
3005
3015
|
|
|
3006
3016
|
function _extends() {
|
|
3007
3017
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -10341,7 +10351,10 @@ var getFormatDate = function getFormatDate(_ref2) {
|
|
|
10341
10351
|
var company = _ref2.company,
|
|
10342
10352
|
date = _ref2.date,
|
|
10343
10353
|
timeZone = _ref2.timeZone;
|
|
10344
|
-
var
|
|
10354
|
+
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) || 'en').toLowerCase();
|
|
10355
|
+
if (momentLocale === 'zh-hans') momentLocale = 'zh-cn';
|
|
10356
|
+
if (momentLocale === 'zh-hant') momentLocale = 'zh-tw';
|
|
10357
|
+
var d = momentTimezone$1(date).locale(momentLocale);
|
|
10345
10358
|
if (timeZone) {
|
|
10346
10359
|
d = d.tz(timeZone);
|
|
10347
10360
|
}
|
|
@@ -11049,6 +11062,1119 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
|
|
|
11049
11062
|
});
|
|
11050
11063
|
};
|
|
11051
11064
|
|
|
11065
|
+
var de = createCommonjsModule(function (module, exports) {
|
|
11066
|
+
(function (global, factory) {
|
|
11067
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11068
|
+
|
|
11069
|
+
factory(global.moment);
|
|
11070
|
+
}(commonjsGlobal, (function (moment) {
|
|
11071
|
+
//! moment.js locale configuration
|
|
11072
|
+
|
|
11073
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
11074
|
+
var format = {
|
|
11075
|
+
m: ['eine Minute', 'einer Minute'],
|
|
11076
|
+
h: ['eine Stunde', 'einer Stunde'],
|
|
11077
|
+
d: ['ein Tag', 'einem Tag'],
|
|
11078
|
+
dd: [number + ' Tage', number + ' Tagen'],
|
|
11079
|
+
w: ['eine Woche', 'einer Woche'],
|
|
11080
|
+
M: ['ein Monat', 'einem Monat'],
|
|
11081
|
+
MM: [number + ' Monate', number + ' Monaten'],
|
|
11082
|
+
y: ['ein Jahr', 'einem Jahr'],
|
|
11083
|
+
yy: [number + ' Jahre', number + ' Jahren'],
|
|
11084
|
+
};
|
|
11085
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
|
11086
|
+
}
|
|
11087
|
+
|
|
11088
|
+
var de = moment.defineLocale('de', {
|
|
11089
|
+
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
|
|
11090
|
+
'_'
|
|
11091
|
+
),
|
|
11092
|
+
monthsShort:
|
|
11093
|
+
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
11094
|
+
monthsParseExact: true,
|
|
11095
|
+
weekdays:
|
|
11096
|
+
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
11097
|
+
'_'
|
|
11098
|
+
),
|
|
11099
|
+
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
|
11100
|
+
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
|
11101
|
+
weekdaysParseExact: true,
|
|
11102
|
+
longDateFormat: {
|
|
11103
|
+
LT: 'HH:mm',
|
|
11104
|
+
LTS: 'HH:mm:ss',
|
|
11105
|
+
L: 'DD.MM.YYYY',
|
|
11106
|
+
LL: 'D. MMMM YYYY',
|
|
11107
|
+
LLL: 'D. MMMM YYYY HH:mm',
|
|
11108
|
+
LLLL: 'dddd, D. MMMM YYYY HH:mm',
|
|
11109
|
+
},
|
|
11110
|
+
calendar: {
|
|
11111
|
+
sameDay: '[heute um] LT [Uhr]',
|
|
11112
|
+
sameElse: 'L',
|
|
11113
|
+
nextDay: '[morgen um] LT [Uhr]',
|
|
11114
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
|
11115
|
+
lastDay: '[gestern um] LT [Uhr]',
|
|
11116
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]',
|
|
11117
|
+
},
|
|
11118
|
+
relativeTime: {
|
|
11119
|
+
future: 'in %s',
|
|
11120
|
+
past: 'vor %s',
|
|
11121
|
+
s: 'ein paar Sekunden',
|
|
11122
|
+
ss: '%d Sekunden',
|
|
11123
|
+
m: processRelativeTime,
|
|
11124
|
+
mm: '%d Minuten',
|
|
11125
|
+
h: processRelativeTime,
|
|
11126
|
+
hh: '%d Stunden',
|
|
11127
|
+
d: processRelativeTime,
|
|
11128
|
+
dd: processRelativeTime,
|
|
11129
|
+
w: processRelativeTime,
|
|
11130
|
+
ww: '%d Wochen',
|
|
11131
|
+
M: processRelativeTime,
|
|
11132
|
+
MM: processRelativeTime,
|
|
11133
|
+
y: processRelativeTime,
|
|
11134
|
+
yy: processRelativeTime,
|
|
11135
|
+
},
|
|
11136
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
11137
|
+
ordinal: '%d.',
|
|
11138
|
+
week: {
|
|
11139
|
+
dow: 1, // Monday is the first day of the week.
|
|
11140
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11141
|
+
},
|
|
11142
|
+
});
|
|
11143
|
+
|
|
11144
|
+
return de;
|
|
11145
|
+
|
|
11146
|
+
})));
|
|
11147
|
+
});
|
|
11148
|
+
|
|
11149
|
+
var es = createCommonjsModule(function (module, exports) {
|
|
11150
|
+
(function (global, factory) {
|
|
11151
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11152
|
+
|
|
11153
|
+
factory(global.moment);
|
|
11154
|
+
}(commonjsGlobal, (function (moment) {
|
|
11155
|
+
//! moment.js locale configuration
|
|
11156
|
+
|
|
11157
|
+
var monthsShortDot =
|
|
11158
|
+
'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
|
|
11159
|
+
'_'
|
|
11160
|
+
),
|
|
11161
|
+
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
|
11162
|
+
monthsParse = [
|
|
11163
|
+
/^ene/i,
|
|
11164
|
+
/^feb/i,
|
|
11165
|
+
/^mar/i,
|
|
11166
|
+
/^abr/i,
|
|
11167
|
+
/^may/i,
|
|
11168
|
+
/^jun/i,
|
|
11169
|
+
/^jul/i,
|
|
11170
|
+
/^ago/i,
|
|
11171
|
+
/^sep/i,
|
|
11172
|
+
/^oct/i,
|
|
11173
|
+
/^nov/i,
|
|
11174
|
+
/^dic/i,
|
|
11175
|
+
],
|
|
11176
|
+
monthsRegex =
|
|
11177
|
+
/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
|
|
11178
|
+
|
|
11179
|
+
var es = moment.defineLocale('es', {
|
|
11180
|
+
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
|
|
11181
|
+
'_'
|
|
11182
|
+
),
|
|
11183
|
+
monthsShort: function (m, format) {
|
|
11184
|
+
if (!m) {
|
|
11185
|
+
return monthsShortDot;
|
|
11186
|
+
} else if (/-MMM-/.test(format)) {
|
|
11187
|
+
return monthsShort[m.month()];
|
|
11188
|
+
} else {
|
|
11189
|
+
return monthsShortDot[m.month()];
|
|
11190
|
+
}
|
|
11191
|
+
},
|
|
11192
|
+
monthsRegex: monthsRegex,
|
|
11193
|
+
monthsShortRegex: monthsRegex,
|
|
11194
|
+
monthsStrictRegex:
|
|
11195
|
+
/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
|
|
11196
|
+
monthsShortStrictRegex:
|
|
11197
|
+
/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
|
|
11198
|
+
monthsParse: monthsParse,
|
|
11199
|
+
longMonthsParse: monthsParse,
|
|
11200
|
+
shortMonthsParse: monthsParse,
|
|
11201
|
+
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
|
11202
|
+
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
|
11203
|
+
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
|
11204
|
+
weekdaysParseExact: true,
|
|
11205
|
+
longDateFormat: {
|
|
11206
|
+
LT: 'H:mm',
|
|
11207
|
+
LTS: 'H:mm:ss',
|
|
11208
|
+
L: 'DD/MM/YYYY',
|
|
11209
|
+
LL: 'D [de] MMMM [de] YYYY',
|
|
11210
|
+
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
|
11211
|
+
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
|
|
11212
|
+
},
|
|
11213
|
+
calendar: {
|
|
11214
|
+
sameDay: function () {
|
|
11215
|
+
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
|
11216
|
+
},
|
|
11217
|
+
nextDay: function () {
|
|
11218
|
+
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
|
11219
|
+
},
|
|
11220
|
+
nextWeek: function () {
|
|
11221
|
+
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
|
11222
|
+
},
|
|
11223
|
+
lastDay: function () {
|
|
11224
|
+
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
|
11225
|
+
},
|
|
11226
|
+
lastWeek: function () {
|
|
11227
|
+
return (
|
|
11228
|
+
'[el] dddd [pasado a la' +
|
|
11229
|
+
(this.hours() !== 1 ? 's' : '') +
|
|
11230
|
+
'] LT'
|
|
11231
|
+
);
|
|
11232
|
+
},
|
|
11233
|
+
sameElse: 'L',
|
|
11234
|
+
},
|
|
11235
|
+
relativeTime: {
|
|
11236
|
+
future: 'en %s',
|
|
11237
|
+
past: 'hace %s',
|
|
11238
|
+
s: 'unos segundos',
|
|
11239
|
+
ss: '%d segundos',
|
|
11240
|
+
m: 'un minuto',
|
|
11241
|
+
mm: '%d minutos',
|
|
11242
|
+
h: 'una hora',
|
|
11243
|
+
hh: '%d horas',
|
|
11244
|
+
d: 'un día',
|
|
11245
|
+
dd: '%d días',
|
|
11246
|
+
w: 'una semana',
|
|
11247
|
+
ww: '%d semanas',
|
|
11248
|
+
M: 'un mes',
|
|
11249
|
+
MM: '%d meses',
|
|
11250
|
+
y: 'un año',
|
|
11251
|
+
yy: '%d años',
|
|
11252
|
+
},
|
|
11253
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
11254
|
+
ordinal: '%dº',
|
|
11255
|
+
week: {
|
|
11256
|
+
dow: 1, // Monday is the first day of the week.
|
|
11257
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11258
|
+
},
|
|
11259
|
+
invalidDate: 'Fecha inválida',
|
|
11260
|
+
});
|
|
11261
|
+
|
|
11262
|
+
return es;
|
|
11263
|
+
|
|
11264
|
+
})));
|
|
11265
|
+
});
|
|
11266
|
+
|
|
11267
|
+
var fr = createCommonjsModule(function (module, exports) {
|
|
11268
|
+
(function (global, factory) {
|
|
11269
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11270
|
+
|
|
11271
|
+
factory(global.moment);
|
|
11272
|
+
}(commonjsGlobal, (function (moment) {
|
|
11273
|
+
//! moment.js locale configuration
|
|
11274
|
+
|
|
11275
|
+
var monthsStrictRegex =
|
|
11276
|
+
/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
|
11277
|
+
monthsShortStrictRegex =
|
|
11278
|
+
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
|
|
11279
|
+
monthsRegex =
|
|
11280
|
+
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
|
11281
|
+
monthsParse = [
|
|
11282
|
+
/^janv/i,
|
|
11283
|
+
/^févr/i,
|
|
11284
|
+
/^mars/i,
|
|
11285
|
+
/^avr/i,
|
|
11286
|
+
/^mai/i,
|
|
11287
|
+
/^juin/i,
|
|
11288
|
+
/^juil/i,
|
|
11289
|
+
/^août/i,
|
|
11290
|
+
/^sept/i,
|
|
11291
|
+
/^oct/i,
|
|
11292
|
+
/^nov/i,
|
|
11293
|
+
/^déc/i,
|
|
11294
|
+
];
|
|
11295
|
+
|
|
11296
|
+
var fr = moment.defineLocale('fr', {
|
|
11297
|
+
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
|
|
11298
|
+
'_'
|
|
11299
|
+
),
|
|
11300
|
+
monthsShort:
|
|
11301
|
+
'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
|
|
11302
|
+
'_'
|
|
11303
|
+
),
|
|
11304
|
+
monthsRegex: monthsRegex,
|
|
11305
|
+
monthsShortRegex: monthsRegex,
|
|
11306
|
+
monthsStrictRegex: monthsStrictRegex,
|
|
11307
|
+
monthsShortStrictRegex: monthsShortStrictRegex,
|
|
11308
|
+
monthsParse: monthsParse,
|
|
11309
|
+
longMonthsParse: monthsParse,
|
|
11310
|
+
shortMonthsParse: monthsParse,
|
|
11311
|
+
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
|
11312
|
+
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
|
11313
|
+
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
|
11314
|
+
weekdaysParseExact: true,
|
|
11315
|
+
longDateFormat: {
|
|
11316
|
+
LT: 'HH:mm',
|
|
11317
|
+
LTS: 'HH:mm:ss',
|
|
11318
|
+
L: 'DD/MM/YYYY',
|
|
11319
|
+
LL: 'D MMMM YYYY',
|
|
11320
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
11321
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
|
11322
|
+
},
|
|
11323
|
+
calendar: {
|
|
11324
|
+
sameDay: '[Aujourd’hui à] LT',
|
|
11325
|
+
nextDay: '[Demain à] LT',
|
|
11326
|
+
nextWeek: 'dddd [à] LT',
|
|
11327
|
+
lastDay: '[Hier à] LT',
|
|
11328
|
+
lastWeek: 'dddd [dernier à] LT',
|
|
11329
|
+
sameElse: 'L',
|
|
11330
|
+
},
|
|
11331
|
+
relativeTime: {
|
|
11332
|
+
future: 'dans %s',
|
|
11333
|
+
past: 'il y a %s',
|
|
11334
|
+
s: 'quelques secondes',
|
|
11335
|
+
ss: '%d secondes',
|
|
11336
|
+
m: 'une minute',
|
|
11337
|
+
mm: '%d minutes',
|
|
11338
|
+
h: 'une heure',
|
|
11339
|
+
hh: '%d heures',
|
|
11340
|
+
d: 'un jour',
|
|
11341
|
+
dd: '%d jours',
|
|
11342
|
+
w: 'une semaine',
|
|
11343
|
+
ww: '%d semaines',
|
|
11344
|
+
M: 'un mois',
|
|
11345
|
+
MM: '%d mois',
|
|
11346
|
+
y: 'un an',
|
|
11347
|
+
yy: '%d ans',
|
|
11348
|
+
},
|
|
11349
|
+
dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
|
|
11350
|
+
ordinal: function (number, period) {
|
|
11351
|
+
switch (period) {
|
|
11352
|
+
// TODO: Return 'e' when day of month > 1. Move this case inside
|
|
11353
|
+
// block for masculine words below.
|
|
11354
|
+
// See https://github.com/moment/moment/issues/3375
|
|
11355
|
+
case 'D':
|
|
11356
|
+
return number + (number === 1 ? 'er' : '');
|
|
11357
|
+
|
|
11358
|
+
// Words with masculine grammatical gender: mois, trimestre, jour
|
|
11359
|
+
default:
|
|
11360
|
+
case 'M':
|
|
11361
|
+
case 'Q':
|
|
11362
|
+
case 'DDD':
|
|
11363
|
+
case 'd':
|
|
11364
|
+
return number + (number === 1 ? 'er' : 'e');
|
|
11365
|
+
|
|
11366
|
+
// Words with feminine grammatical gender: semaine
|
|
11367
|
+
case 'w':
|
|
11368
|
+
case 'W':
|
|
11369
|
+
return number + (number === 1 ? 're' : 'e');
|
|
11370
|
+
}
|
|
11371
|
+
},
|
|
11372
|
+
week: {
|
|
11373
|
+
dow: 1, // Monday is the first day of the week.
|
|
11374
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11375
|
+
},
|
|
11376
|
+
});
|
|
11377
|
+
|
|
11378
|
+
return fr;
|
|
11379
|
+
|
|
11380
|
+
})));
|
|
11381
|
+
});
|
|
11382
|
+
|
|
11383
|
+
var id = createCommonjsModule(function (module, exports) {
|
|
11384
|
+
(function (global, factory) {
|
|
11385
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11386
|
+
|
|
11387
|
+
factory(global.moment);
|
|
11388
|
+
}(commonjsGlobal, (function (moment) {
|
|
11389
|
+
//! moment.js locale configuration
|
|
11390
|
+
|
|
11391
|
+
var id = moment.defineLocale('id', {
|
|
11392
|
+
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
|
|
11393
|
+
'_'
|
|
11394
|
+
),
|
|
11395
|
+
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
|
|
11396
|
+
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
|
|
11397
|
+
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
|
|
11398
|
+
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
|
|
11399
|
+
longDateFormat: {
|
|
11400
|
+
LT: 'HH.mm',
|
|
11401
|
+
LTS: 'HH.mm.ss',
|
|
11402
|
+
L: 'DD/MM/YYYY',
|
|
11403
|
+
LL: 'D MMMM YYYY',
|
|
11404
|
+
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
|
11405
|
+
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
|
|
11406
|
+
},
|
|
11407
|
+
meridiemParse: /pagi|siang|sore|malam/,
|
|
11408
|
+
meridiemHour: function (hour, meridiem) {
|
|
11409
|
+
if (hour === 12) {
|
|
11410
|
+
hour = 0;
|
|
11411
|
+
}
|
|
11412
|
+
if (meridiem === 'pagi') {
|
|
11413
|
+
return hour;
|
|
11414
|
+
} else if (meridiem === 'siang') {
|
|
11415
|
+
return hour >= 11 ? hour : hour + 12;
|
|
11416
|
+
} else if (meridiem === 'sore' || meridiem === 'malam') {
|
|
11417
|
+
return hour + 12;
|
|
11418
|
+
}
|
|
11419
|
+
},
|
|
11420
|
+
meridiem: function (hours, minutes, isLower) {
|
|
11421
|
+
if (hours < 11) {
|
|
11422
|
+
return 'pagi';
|
|
11423
|
+
} else if (hours < 15) {
|
|
11424
|
+
return 'siang';
|
|
11425
|
+
} else if (hours < 19) {
|
|
11426
|
+
return 'sore';
|
|
11427
|
+
} else {
|
|
11428
|
+
return 'malam';
|
|
11429
|
+
}
|
|
11430
|
+
},
|
|
11431
|
+
calendar: {
|
|
11432
|
+
sameDay: '[Hari ini pukul] LT',
|
|
11433
|
+
nextDay: '[Besok pukul] LT',
|
|
11434
|
+
nextWeek: 'dddd [pukul] LT',
|
|
11435
|
+
lastDay: '[Kemarin pukul] LT',
|
|
11436
|
+
lastWeek: 'dddd [lalu pukul] LT',
|
|
11437
|
+
sameElse: 'L',
|
|
11438
|
+
},
|
|
11439
|
+
relativeTime: {
|
|
11440
|
+
future: 'dalam %s',
|
|
11441
|
+
past: '%s yang lalu',
|
|
11442
|
+
s: 'beberapa detik',
|
|
11443
|
+
ss: '%d detik',
|
|
11444
|
+
m: 'semenit',
|
|
11445
|
+
mm: '%d menit',
|
|
11446
|
+
h: 'sejam',
|
|
11447
|
+
hh: '%d jam',
|
|
11448
|
+
d: 'sehari',
|
|
11449
|
+
dd: '%d hari',
|
|
11450
|
+
M: 'sebulan',
|
|
11451
|
+
MM: '%d bulan',
|
|
11452
|
+
y: 'setahun',
|
|
11453
|
+
yy: '%d tahun',
|
|
11454
|
+
},
|
|
11455
|
+
week: {
|
|
11456
|
+
dow: 0, // Sunday is the first day of the week.
|
|
11457
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
|
11458
|
+
},
|
|
11459
|
+
});
|
|
11460
|
+
|
|
11461
|
+
return id;
|
|
11462
|
+
|
|
11463
|
+
})));
|
|
11464
|
+
});
|
|
11465
|
+
|
|
11466
|
+
var it = createCommonjsModule(function (module, exports) {
|
|
11467
|
+
(function (global, factory) {
|
|
11468
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11469
|
+
|
|
11470
|
+
factory(global.moment);
|
|
11471
|
+
}(commonjsGlobal, (function (moment) {
|
|
11472
|
+
//! moment.js locale configuration
|
|
11473
|
+
|
|
11474
|
+
var it = moment.defineLocale('it', {
|
|
11475
|
+
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
|
|
11476
|
+
'_'
|
|
11477
|
+
),
|
|
11478
|
+
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
|
|
11479
|
+
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
|
|
11480
|
+
'_'
|
|
11481
|
+
),
|
|
11482
|
+
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
|
|
11483
|
+
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
|
|
11484
|
+
longDateFormat: {
|
|
11485
|
+
LT: 'HH:mm',
|
|
11486
|
+
LTS: 'HH:mm:ss',
|
|
11487
|
+
L: 'DD/MM/YYYY',
|
|
11488
|
+
LL: 'D MMMM YYYY',
|
|
11489
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
11490
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
|
11491
|
+
},
|
|
11492
|
+
calendar: {
|
|
11493
|
+
sameDay: function () {
|
|
11494
|
+
return (
|
|
11495
|
+
'[Oggi a' +
|
|
11496
|
+
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
11497
|
+
']LT'
|
|
11498
|
+
);
|
|
11499
|
+
},
|
|
11500
|
+
nextDay: function () {
|
|
11501
|
+
return (
|
|
11502
|
+
'[Domani a' +
|
|
11503
|
+
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
11504
|
+
']LT'
|
|
11505
|
+
);
|
|
11506
|
+
},
|
|
11507
|
+
nextWeek: function () {
|
|
11508
|
+
return (
|
|
11509
|
+
'dddd [a' +
|
|
11510
|
+
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
11511
|
+
']LT'
|
|
11512
|
+
);
|
|
11513
|
+
},
|
|
11514
|
+
lastDay: function () {
|
|
11515
|
+
return (
|
|
11516
|
+
'[Ieri a' +
|
|
11517
|
+
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
11518
|
+
']LT'
|
|
11519
|
+
);
|
|
11520
|
+
},
|
|
11521
|
+
lastWeek: function () {
|
|
11522
|
+
switch (this.day()) {
|
|
11523
|
+
case 0:
|
|
11524
|
+
return (
|
|
11525
|
+
'[La scorsa] dddd [a' +
|
|
11526
|
+
(this.hours() > 1
|
|
11527
|
+
? 'lle '
|
|
11528
|
+
: this.hours() === 0
|
|
11529
|
+
? ' '
|
|
11530
|
+
: "ll'") +
|
|
11531
|
+
']LT'
|
|
11532
|
+
);
|
|
11533
|
+
default:
|
|
11534
|
+
return (
|
|
11535
|
+
'[Lo scorso] dddd [a' +
|
|
11536
|
+
(this.hours() > 1
|
|
11537
|
+
? 'lle '
|
|
11538
|
+
: this.hours() === 0
|
|
11539
|
+
? ' '
|
|
11540
|
+
: "ll'") +
|
|
11541
|
+
']LT'
|
|
11542
|
+
);
|
|
11543
|
+
}
|
|
11544
|
+
},
|
|
11545
|
+
sameElse: 'L',
|
|
11546
|
+
},
|
|
11547
|
+
relativeTime: {
|
|
11548
|
+
future: 'tra %s',
|
|
11549
|
+
past: '%s fa',
|
|
11550
|
+
s: 'alcuni secondi',
|
|
11551
|
+
ss: '%d secondi',
|
|
11552
|
+
m: 'un minuto',
|
|
11553
|
+
mm: '%d minuti',
|
|
11554
|
+
h: "un'ora",
|
|
11555
|
+
hh: '%d ore',
|
|
11556
|
+
d: 'un giorno',
|
|
11557
|
+
dd: '%d giorni',
|
|
11558
|
+
w: 'una settimana',
|
|
11559
|
+
ww: '%d settimane',
|
|
11560
|
+
M: 'un mese',
|
|
11561
|
+
MM: '%d mesi',
|
|
11562
|
+
y: 'un anno',
|
|
11563
|
+
yy: '%d anni',
|
|
11564
|
+
},
|
|
11565
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
11566
|
+
ordinal: '%dº',
|
|
11567
|
+
week: {
|
|
11568
|
+
dow: 1, // Monday is the first day of the week.
|
|
11569
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11570
|
+
},
|
|
11571
|
+
});
|
|
11572
|
+
|
|
11573
|
+
return it;
|
|
11574
|
+
|
|
11575
|
+
})));
|
|
11576
|
+
});
|
|
11577
|
+
|
|
11578
|
+
var ko = createCommonjsModule(function (module, exports) {
|
|
11579
|
+
(function (global, factory) {
|
|
11580
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11581
|
+
|
|
11582
|
+
factory(global.moment);
|
|
11583
|
+
}(commonjsGlobal, (function (moment) {
|
|
11584
|
+
//! moment.js locale configuration
|
|
11585
|
+
|
|
11586
|
+
var ko = moment.defineLocale('ko', {
|
|
11587
|
+
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
11588
|
+
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
|
|
11589
|
+
'_'
|
|
11590
|
+
),
|
|
11591
|
+
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
|
11592
|
+
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
|
|
11593
|
+
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
|
|
11594
|
+
longDateFormat: {
|
|
11595
|
+
LT: 'A h:mm',
|
|
11596
|
+
LTS: 'A h:mm:ss',
|
|
11597
|
+
L: 'YYYY.MM.DD.',
|
|
11598
|
+
LL: 'YYYY년 MMMM D일',
|
|
11599
|
+
LLL: 'YYYY년 MMMM D일 A h:mm',
|
|
11600
|
+
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
|
|
11601
|
+
l: 'YYYY.MM.DD.',
|
|
11602
|
+
ll: 'YYYY년 MMMM D일',
|
|
11603
|
+
lll: 'YYYY년 MMMM D일 A h:mm',
|
|
11604
|
+
llll: 'YYYY년 MMMM D일 dddd A h:mm',
|
|
11605
|
+
},
|
|
11606
|
+
calendar: {
|
|
11607
|
+
sameDay: '오늘 LT',
|
|
11608
|
+
nextDay: '내일 LT',
|
|
11609
|
+
nextWeek: 'dddd LT',
|
|
11610
|
+
lastDay: '어제 LT',
|
|
11611
|
+
lastWeek: '지난주 dddd LT',
|
|
11612
|
+
sameElse: 'L',
|
|
11613
|
+
},
|
|
11614
|
+
relativeTime: {
|
|
11615
|
+
future: '%s 후',
|
|
11616
|
+
past: '%s 전',
|
|
11617
|
+
s: '몇 초',
|
|
11618
|
+
ss: '%d초',
|
|
11619
|
+
m: '1분',
|
|
11620
|
+
mm: '%d분',
|
|
11621
|
+
h: '한 시간',
|
|
11622
|
+
hh: '%d시간',
|
|
11623
|
+
d: '하루',
|
|
11624
|
+
dd: '%d일',
|
|
11625
|
+
M: '한 달',
|
|
11626
|
+
MM: '%d달',
|
|
11627
|
+
y: '일 년',
|
|
11628
|
+
yy: '%d년',
|
|
11629
|
+
},
|
|
11630
|
+
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
|
11631
|
+
ordinal: function (number, period) {
|
|
11632
|
+
switch (period) {
|
|
11633
|
+
case 'd':
|
|
11634
|
+
case 'D':
|
|
11635
|
+
case 'DDD':
|
|
11636
|
+
return number + '일';
|
|
11637
|
+
case 'M':
|
|
11638
|
+
return number + '월';
|
|
11639
|
+
case 'w':
|
|
11640
|
+
case 'W':
|
|
11641
|
+
return number + '주';
|
|
11642
|
+
default:
|
|
11643
|
+
return number;
|
|
11644
|
+
}
|
|
11645
|
+
},
|
|
11646
|
+
meridiemParse: /오전|오후/,
|
|
11647
|
+
isPM: function (token) {
|
|
11648
|
+
return token === '오후';
|
|
11649
|
+
},
|
|
11650
|
+
meridiem: function (hour, minute, isUpper) {
|
|
11651
|
+
return hour < 12 ? '오전' : '오후';
|
|
11652
|
+
},
|
|
11653
|
+
});
|
|
11654
|
+
|
|
11655
|
+
return ko;
|
|
11656
|
+
|
|
11657
|
+
})));
|
|
11658
|
+
});
|
|
11659
|
+
|
|
11660
|
+
var pl = createCommonjsModule(function (module, exports) {
|
|
11661
|
+
(function (global, factory) {
|
|
11662
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11663
|
+
|
|
11664
|
+
factory(global.moment);
|
|
11665
|
+
}(commonjsGlobal, (function (moment) {
|
|
11666
|
+
//! moment.js locale configuration
|
|
11667
|
+
|
|
11668
|
+
var monthsNominative =
|
|
11669
|
+
'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
|
|
11670
|
+
'_'
|
|
11671
|
+
),
|
|
11672
|
+
monthsSubjective =
|
|
11673
|
+
'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
|
|
11674
|
+
'_'
|
|
11675
|
+
),
|
|
11676
|
+
monthsParse = [
|
|
11677
|
+
/^sty/i,
|
|
11678
|
+
/^lut/i,
|
|
11679
|
+
/^mar/i,
|
|
11680
|
+
/^kwi/i,
|
|
11681
|
+
/^maj/i,
|
|
11682
|
+
/^cze/i,
|
|
11683
|
+
/^lip/i,
|
|
11684
|
+
/^sie/i,
|
|
11685
|
+
/^wrz/i,
|
|
11686
|
+
/^paź/i,
|
|
11687
|
+
/^lis/i,
|
|
11688
|
+
/^gru/i,
|
|
11689
|
+
];
|
|
11690
|
+
function plural(n) {
|
|
11691
|
+
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
|
|
11692
|
+
}
|
|
11693
|
+
function translate(number, withoutSuffix, key) {
|
|
11694
|
+
var result = number + ' ';
|
|
11695
|
+
switch (key) {
|
|
11696
|
+
case 'ss':
|
|
11697
|
+
return result + (plural(number) ? 'sekundy' : 'sekund');
|
|
11698
|
+
case 'm':
|
|
11699
|
+
return withoutSuffix ? 'minuta' : 'minutę';
|
|
11700
|
+
case 'mm':
|
|
11701
|
+
return result + (plural(number) ? 'minuty' : 'minut');
|
|
11702
|
+
case 'h':
|
|
11703
|
+
return withoutSuffix ? 'godzina' : 'godzinę';
|
|
11704
|
+
case 'hh':
|
|
11705
|
+
return result + (plural(number) ? 'godziny' : 'godzin');
|
|
11706
|
+
case 'ww':
|
|
11707
|
+
return result + (plural(number) ? 'tygodnie' : 'tygodni');
|
|
11708
|
+
case 'MM':
|
|
11709
|
+
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
|
11710
|
+
case 'yy':
|
|
11711
|
+
return result + (plural(number) ? 'lata' : 'lat');
|
|
11712
|
+
}
|
|
11713
|
+
}
|
|
11714
|
+
|
|
11715
|
+
var pl = moment.defineLocale('pl', {
|
|
11716
|
+
months: function (momentToFormat, format) {
|
|
11717
|
+
if (!momentToFormat) {
|
|
11718
|
+
return monthsNominative;
|
|
11719
|
+
} else if (/D MMMM/.test(format)) {
|
|
11720
|
+
return monthsSubjective[momentToFormat.month()];
|
|
11721
|
+
} else {
|
|
11722
|
+
return monthsNominative[momentToFormat.month()];
|
|
11723
|
+
}
|
|
11724
|
+
},
|
|
11725
|
+
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
|
11726
|
+
monthsParse: monthsParse,
|
|
11727
|
+
longMonthsParse: monthsParse,
|
|
11728
|
+
shortMonthsParse: monthsParse,
|
|
11729
|
+
weekdays:
|
|
11730
|
+
'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
|
|
11731
|
+
weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
|
|
11732
|
+
weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
|
|
11733
|
+
longDateFormat: {
|
|
11734
|
+
LT: 'HH:mm',
|
|
11735
|
+
LTS: 'HH:mm:ss',
|
|
11736
|
+
L: 'DD.MM.YYYY',
|
|
11737
|
+
LL: 'D MMMM YYYY',
|
|
11738
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
11739
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
11740
|
+
},
|
|
11741
|
+
calendar: {
|
|
11742
|
+
sameDay: '[Dziś o] LT',
|
|
11743
|
+
nextDay: '[Jutro o] LT',
|
|
11744
|
+
nextWeek: function () {
|
|
11745
|
+
switch (this.day()) {
|
|
11746
|
+
case 0:
|
|
11747
|
+
return '[W niedzielę o] LT';
|
|
11748
|
+
|
|
11749
|
+
case 2:
|
|
11750
|
+
return '[We wtorek o] LT';
|
|
11751
|
+
|
|
11752
|
+
case 3:
|
|
11753
|
+
return '[W środę o] LT';
|
|
11754
|
+
|
|
11755
|
+
case 6:
|
|
11756
|
+
return '[W sobotę o] LT';
|
|
11757
|
+
|
|
11758
|
+
default:
|
|
11759
|
+
return '[W] dddd [o] LT';
|
|
11760
|
+
}
|
|
11761
|
+
},
|
|
11762
|
+
lastDay: '[Wczoraj o] LT',
|
|
11763
|
+
lastWeek: function () {
|
|
11764
|
+
switch (this.day()) {
|
|
11765
|
+
case 0:
|
|
11766
|
+
return '[W zeszłą niedzielę o] LT';
|
|
11767
|
+
case 3:
|
|
11768
|
+
return '[W zeszłą środę o] LT';
|
|
11769
|
+
case 6:
|
|
11770
|
+
return '[W zeszłą sobotę o] LT';
|
|
11771
|
+
default:
|
|
11772
|
+
return '[W zeszły] dddd [o] LT';
|
|
11773
|
+
}
|
|
11774
|
+
},
|
|
11775
|
+
sameElse: 'L',
|
|
11776
|
+
},
|
|
11777
|
+
relativeTime: {
|
|
11778
|
+
future: 'za %s',
|
|
11779
|
+
past: '%s temu',
|
|
11780
|
+
s: 'kilka sekund',
|
|
11781
|
+
ss: translate,
|
|
11782
|
+
m: translate,
|
|
11783
|
+
mm: translate,
|
|
11784
|
+
h: translate,
|
|
11785
|
+
hh: translate,
|
|
11786
|
+
d: '1 dzień',
|
|
11787
|
+
dd: '%d dni',
|
|
11788
|
+
w: 'tydzień',
|
|
11789
|
+
ww: translate,
|
|
11790
|
+
M: 'miesiąc',
|
|
11791
|
+
MM: translate,
|
|
11792
|
+
y: 'rok',
|
|
11793
|
+
yy: translate,
|
|
11794
|
+
},
|
|
11795
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
11796
|
+
ordinal: '%d.',
|
|
11797
|
+
week: {
|
|
11798
|
+
dow: 1, // Monday is the first day of the week.
|
|
11799
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11800
|
+
},
|
|
11801
|
+
});
|
|
11802
|
+
|
|
11803
|
+
return pl;
|
|
11804
|
+
|
|
11805
|
+
})));
|
|
11806
|
+
});
|
|
11807
|
+
|
|
11808
|
+
var pt = createCommonjsModule(function (module, exports) {
|
|
11809
|
+
(function (global, factory) {
|
|
11810
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11811
|
+
|
|
11812
|
+
factory(global.moment);
|
|
11813
|
+
}(commonjsGlobal, (function (moment) {
|
|
11814
|
+
//! moment.js locale configuration
|
|
11815
|
+
|
|
11816
|
+
var pt = moment.defineLocale('pt', {
|
|
11817
|
+
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
|
|
11818
|
+
'_'
|
|
11819
|
+
),
|
|
11820
|
+
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
|
11821
|
+
weekdays:
|
|
11822
|
+
'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
|
|
11823
|
+
'_'
|
|
11824
|
+
),
|
|
11825
|
+
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
|
11826
|
+
weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
|
|
11827
|
+
weekdaysParseExact: true,
|
|
11828
|
+
longDateFormat: {
|
|
11829
|
+
LT: 'HH:mm',
|
|
11830
|
+
LTS: 'HH:mm:ss',
|
|
11831
|
+
L: 'DD/MM/YYYY',
|
|
11832
|
+
LL: 'D [de] MMMM [de] YYYY',
|
|
11833
|
+
LLL: 'D [de] MMMM [de] YYYY HH:mm',
|
|
11834
|
+
LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
|
|
11835
|
+
},
|
|
11836
|
+
calendar: {
|
|
11837
|
+
sameDay: '[Hoje às] LT',
|
|
11838
|
+
nextDay: '[Amanhã às] LT',
|
|
11839
|
+
nextWeek: 'dddd [às] LT',
|
|
11840
|
+
lastDay: '[Ontem às] LT',
|
|
11841
|
+
lastWeek: function () {
|
|
11842
|
+
return this.day() === 0 || this.day() === 6
|
|
11843
|
+
? '[Último] dddd [às] LT' // Saturday + Sunday
|
|
11844
|
+
: '[Última] dddd [às] LT'; // Monday - Friday
|
|
11845
|
+
},
|
|
11846
|
+
sameElse: 'L',
|
|
11847
|
+
},
|
|
11848
|
+
relativeTime: {
|
|
11849
|
+
future: 'em %s',
|
|
11850
|
+
past: 'há %s',
|
|
11851
|
+
s: 'segundos',
|
|
11852
|
+
ss: '%d segundos',
|
|
11853
|
+
m: 'um minuto',
|
|
11854
|
+
mm: '%d minutos',
|
|
11855
|
+
h: 'uma hora',
|
|
11856
|
+
hh: '%d horas',
|
|
11857
|
+
d: 'um dia',
|
|
11858
|
+
dd: '%d dias',
|
|
11859
|
+
w: 'uma semana',
|
|
11860
|
+
ww: '%d semanas',
|
|
11861
|
+
M: 'um mês',
|
|
11862
|
+
MM: '%d meses',
|
|
11863
|
+
y: 'um ano',
|
|
11864
|
+
yy: '%d anos',
|
|
11865
|
+
},
|
|
11866
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
11867
|
+
ordinal: '%dº',
|
|
11868
|
+
week: {
|
|
11869
|
+
dow: 1, // Monday is the first day of the week.
|
|
11870
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
11871
|
+
},
|
|
11872
|
+
});
|
|
11873
|
+
|
|
11874
|
+
return pt;
|
|
11875
|
+
|
|
11876
|
+
})));
|
|
11877
|
+
});
|
|
11878
|
+
|
|
11879
|
+
var ptBr = createCommonjsModule(function (module, exports) {
|
|
11880
|
+
(function (global, factory) {
|
|
11881
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11882
|
+
|
|
11883
|
+
factory(global.moment);
|
|
11884
|
+
}(commonjsGlobal, (function (moment) {
|
|
11885
|
+
//! moment.js locale configuration
|
|
11886
|
+
|
|
11887
|
+
var ptBr = moment.defineLocale('pt-br', {
|
|
11888
|
+
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
|
|
11889
|
+
'_'
|
|
11890
|
+
),
|
|
11891
|
+
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
|
11892
|
+
weekdays:
|
|
11893
|
+
'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
|
|
11894
|
+
'_'
|
|
11895
|
+
),
|
|
11896
|
+
weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
|
|
11897
|
+
weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
|
|
11898
|
+
weekdaysParseExact: true,
|
|
11899
|
+
longDateFormat: {
|
|
11900
|
+
LT: 'HH:mm',
|
|
11901
|
+
LTS: 'HH:mm:ss',
|
|
11902
|
+
L: 'DD/MM/YYYY',
|
|
11903
|
+
LL: 'D [de] MMMM [de] YYYY',
|
|
11904
|
+
LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
|
|
11905
|
+
LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
|
|
11906
|
+
},
|
|
11907
|
+
calendar: {
|
|
11908
|
+
sameDay: '[Hoje às] LT',
|
|
11909
|
+
nextDay: '[Amanhã às] LT',
|
|
11910
|
+
nextWeek: 'dddd [às] LT',
|
|
11911
|
+
lastDay: '[Ontem às] LT',
|
|
11912
|
+
lastWeek: function () {
|
|
11913
|
+
return this.day() === 0 || this.day() === 6
|
|
11914
|
+
? '[Último] dddd [às] LT' // Saturday + Sunday
|
|
11915
|
+
: '[Última] dddd [às] LT'; // Monday - Friday
|
|
11916
|
+
},
|
|
11917
|
+
sameElse: 'L',
|
|
11918
|
+
},
|
|
11919
|
+
relativeTime: {
|
|
11920
|
+
future: 'em %s',
|
|
11921
|
+
past: 'há %s',
|
|
11922
|
+
s: 'poucos segundos',
|
|
11923
|
+
ss: '%d segundos',
|
|
11924
|
+
m: 'um minuto',
|
|
11925
|
+
mm: '%d minutos',
|
|
11926
|
+
h: 'uma hora',
|
|
11927
|
+
hh: '%d horas',
|
|
11928
|
+
d: 'um dia',
|
|
11929
|
+
dd: '%d dias',
|
|
11930
|
+
M: 'um mês',
|
|
11931
|
+
MM: '%d meses',
|
|
11932
|
+
y: 'um ano',
|
|
11933
|
+
yy: '%d anos',
|
|
11934
|
+
},
|
|
11935
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
11936
|
+
ordinal: '%dº',
|
|
11937
|
+
invalidDate: 'Data inválida',
|
|
11938
|
+
});
|
|
11939
|
+
|
|
11940
|
+
return ptBr;
|
|
11941
|
+
|
|
11942
|
+
})));
|
|
11943
|
+
});
|
|
11944
|
+
|
|
11945
|
+
var zhCn = createCommonjsModule(function (module, exports) {
|
|
11946
|
+
(function (global, factory) {
|
|
11947
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
11948
|
+
|
|
11949
|
+
factory(global.moment);
|
|
11950
|
+
}(commonjsGlobal, (function (moment) {
|
|
11951
|
+
//! moment.js locale configuration
|
|
11952
|
+
|
|
11953
|
+
var zhCn = moment.defineLocale('zh-cn', {
|
|
11954
|
+
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
|
|
11955
|
+
'_'
|
|
11956
|
+
),
|
|
11957
|
+
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
|
|
11958
|
+
'_'
|
|
11959
|
+
),
|
|
11960
|
+
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
|
11961
|
+
weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
|
|
11962
|
+
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
|
|
11963
|
+
longDateFormat: {
|
|
11964
|
+
LT: 'HH:mm',
|
|
11965
|
+
LTS: 'HH:mm:ss',
|
|
11966
|
+
L: 'YYYY/MM/DD',
|
|
11967
|
+
LL: 'YYYY年M月D日',
|
|
11968
|
+
LLL: 'YYYY年M月D日Ah点mm分',
|
|
11969
|
+
LLLL: 'YYYY年M月D日ddddAh点mm分',
|
|
11970
|
+
l: 'YYYY/M/D',
|
|
11971
|
+
ll: 'YYYY年M月D日',
|
|
11972
|
+
lll: 'YYYY年M月D日 HH:mm',
|
|
11973
|
+
llll: 'YYYY年M月D日dddd HH:mm',
|
|
11974
|
+
},
|
|
11975
|
+
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
|
11976
|
+
meridiemHour: function (hour, meridiem) {
|
|
11977
|
+
if (hour === 12) {
|
|
11978
|
+
hour = 0;
|
|
11979
|
+
}
|
|
11980
|
+
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
|
|
11981
|
+
return hour;
|
|
11982
|
+
} else if (meridiem === '下午' || meridiem === '晚上') {
|
|
11983
|
+
return hour + 12;
|
|
11984
|
+
} else {
|
|
11985
|
+
// '中午'
|
|
11986
|
+
return hour >= 11 ? hour : hour + 12;
|
|
11987
|
+
}
|
|
11988
|
+
},
|
|
11989
|
+
meridiem: function (hour, minute, isLower) {
|
|
11990
|
+
var hm = hour * 100 + minute;
|
|
11991
|
+
if (hm < 600) {
|
|
11992
|
+
return '凌晨';
|
|
11993
|
+
} else if (hm < 900) {
|
|
11994
|
+
return '早上';
|
|
11995
|
+
} else if (hm < 1130) {
|
|
11996
|
+
return '上午';
|
|
11997
|
+
} else if (hm < 1230) {
|
|
11998
|
+
return '中午';
|
|
11999
|
+
} else if (hm < 1800) {
|
|
12000
|
+
return '下午';
|
|
12001
|
+
} else {
|
|
12002
|
+
return '晚上';
|
|
12003
|
+
}
|
|
12004
|
+
},
|
|
12005
|
+
calendar: {
|
|
12006
|
+
sameDay: '[今天]LT',
|
|
12007
|
+
nextDay: '[明天]LT',
|
|
12008
|
+
nextWeek: function (now) {
|
|
12009
|
+
if (now.week() !== this.week()) {
|
|
12010
|
+
return '[下]dddLT';
|
|
12011
|
+
} else {
|
|
12012
|
+
return '[本]dddLT';
|
|
12013
|
+
}
|
|
12014
|
+
},
|
|
12015
|
+
lastDay: '[昨天]LT',
|
|
12016
|
+
lastWeek: function (now) {
|
|
12017
|
+
if (this.week() !== now.week()) {
|
|
12018
|
+
return '[上]dddLT';
|
|
12019
|
+
} else {
|
|
12020
|
+
return '[本]dddLT';
|
|
12021
|
+
}
|
|
12022
|
+
},
|
|
12023
|
+
sameElse: 'L',
|
|
12024
|
+
},
|
|
12025
|
+
dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
|
|
12026
|
+
ordinal: function (number, period) {
|
|
12027
|
+
switch (period) {
|
|
12028
|
+
case 'd':
|
|
12029
|
+
case 'D':
|
|
12030
|
+
case 'DDD':
|
|
12031
|
+
return number + '日';
|
|
12032
|
+
case 'M':
|
|
12033
|
+
return number + '月';
|
|
12034
|
+
case 'w':
|
|
12035
|
+
case 'W':
|
|
12036
|
+
return number + '周';
|
|
12037
|
+
default:
|
|
12038
|
+
return number;
|
|
12039
|
+
}
|
|
12040
|
+
},
|
|
12041
|
+
relativeTime: {
|
|
12042
|
+
future: '%s后',
|
|
12043
|
+
past: '%s前',
|
|
12044
|
+
s: '几秒',
|
|
12045
|
+
ss: '%d 秒',
|
|
12046
|
+
m: '1 分钟',
|
|
12047
|
+
mm: '%d 分钟',
|
|
12048
|
+
h: '1 小时',
|
|
12049
|
+
hh: '%d 小时',
|
|
12050
|
+
d: '1 天',
|
|
12051
|
+
dd: '%d 天',
|
|
12052
|
+
w: '1 周',
|
|
12053
|
+
ww: '%d 周',
|
|
12054
|
+
M: '1 个月',
|
|
12055
|
+
MM: '%d 个月',
|
|
12056
|
+
y: '1 年',
|
|
12057
|
+
yy: '%d 年',
|
|
12058
|
+
},
|
|
12059
|
+
week: {
|
|
12060
|
+
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
|
12061
|
+
dow: 1, // Monday is the first day of the week.
|
|
12062
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
12063
|
+
},
|
|
12064
|
+
});
|
|
12065
|
+
|
|
12066
|
+
return zhCn;
|
|
12067
|
+
|
|
12068
|
+
})));
|
|
12069
|
+
});
|
|
12070
|
+
|
|
12071
|
+
var zhTw = createCommonjsModule(function (module, exports) {
|
|
12072
|
+
(function (global, factory) {
|
|
12073
|
+
typeof commonjsRequire === 'function' ? factory(moment) :
|
|
12074
|
+
|
|
12075
|
+
factory(global.moment);
|
|
12076
|
+
}(commonjsGlobal, (function (moment) {
|
|
12077
|
+
//! moment.js locale configuration
|
|
12078
|
+
|
|
12079
|
+
var zhTw = moment.defineLocale('zh-tw', {
|
|
12080
|
+
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
|
|
12081
|
+
'_'
|
|
12082
|
+
),
|
|
12083
|
+
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
|
|
12084
|
+
'_'
|
|
12085
|
+
),
|
|
12086
|
+
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
|
12087
|
+
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
|
|
12088
|
+
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
|
|
12089
|
+
longDateFormat: {
|
|
12090
|
+
LT: 'HH:mm',
|
|
12091
|
+
LTS: 'HH:mm:ss',
|
|
12092
|
+
L: 'YYYY/MM/DD',
|
|
12093
|
+
LL: 'YYYY年M月D日',
|
|
12094
|
+
LLL: 'YYYY年M月D日 HH:mm',
|
|
12095
|
+
LLLL: 'YYYY年M月D日dddd HH:mm',
|
|
12096
|
+
l: 'YYYY/M/D',
|
|
12097
|
+
ll: 'YYYY年M月D日',
|
|
12098
|
+
lll: 'YYYY年M月D日 HH:mm',
|
|
12099
|
+
llll: 'YYYY年M月D日dddd HH:mm',
|
|
12100
|
+
},
|
|
12101
|
+
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
|
12102
|
+
meridiemHour: function (hour, meridiem) {
|
|
12103
|
+
if (hour === 12) {
|
|
12104
|
+
hour = 0;
|
|
12105
|
+
}
|
|
12106
|
+
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
|
|
12107
|
+
return hour;
|
|
12108
|
+
} else if (meridiem === '中午') {
|
|
12109
|
+
return hour >= 11 ? hour : hour + 12;
|
|
12110
|
+
} else if (meridiem === '下午' || meridiem === '晚上') {
|
|
12111
|
+
return hour + 12;
|
|
12112
|
+
}
|
|
12113
|
+
},
|
|
12114
|
+
meridiem: function (hour, minute, isLower) {
|
|
12115
|
+
var hm = hour * 100 + minute;
|
|
12116
|
+
if (hm < 600) {
|
|
12117
|
+
return '凌晨';
|
|
12118
|
+
} else if (hm < 900) {
|
|
12119
|
+
return '早上';
|
|
12120
|
+
} else if (hm < 1130) {
|
|
12121
|
+
return '上午';
|
|
12122
|
+
} else if (hm < 1230) {
|
|
12123
|
+
return '中午';
|
|
12124
|
+
} else if (hm < 1800) {
|
|
12125
|
+
return '下午';
|
|
12126
|
+
} else {
|
|
12127
|
+
return '晚上';
|
|
12128
|
+
}
|
|
12129
|
+
},
|
|
12130
|
+
calendar: {
|
|
12131
|
+
sameDay: '[今天] LT',
|
|
12132
|
+
nextDay: '[明天] LT',
|
|
12133
|
+
nextWeek: '[下]dddd LT',
|
|
12134
|
+
lastDay: '[昨天] LT',
|
|
12135
|
+
lastWeek: '[上]dddd LT',
|
|
12136
|
+
sameElse: 'L',
|
|
12137
|
+
},
|
|
12138
|
+
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
|
|
12139
|
+
ordinal: function (number, period) {
|
|
12140
|
+
switch (period) {
|
|
12141
|
+
case 'd':
|
|
12142
|
+
case 'D':
|
|
12143
|
+
case 'DDD':
|
|
12144
|
+
return number + '日';
|
|
12145
|
+
case 'M':
|
|
12146
|
+
return number + '月';
|
|
12147
|
+
case 'w':
|
|
12148
|
+
case 'W':
|
|
12149
|
+
return number + '週';
|
|
12150
|
+
default:
|
|
12151
|
+
return number;
|
|
12152
|
+
}
|
|
12153
|
+
},
|
|
12154
|
+
relativeTime: {
|
|
12155
|
+
future: '%s後',
|
|
12156
|
+
past: '%s前',
|
|
12157
|
+
s: '幾秒',
|
|
12158
|
+
ss: '%d 秒',
|
|
12159
|
+
m: '1 分鐘',
|
|
12160
|
+
mm: '%d 分鐘',
|
|
12161
|
+
h: '1 小時',
|
|
12162
|
+
hh: '%d 小時',
|
|
12163
|
+
d: '1 天',
|
|
12164
|
+
dd: '%d 天',
|
|
12165
|
+
M: '1 個月',
|
|
12166
|
+
MM: '%d 個月',
|
|
12167
|
+
y: '1 年',
|
|
12168
|
+
yy: '%d 年',
|
|
12169
|
+
},
|
|
12170
|
+
});
|
|
12171
|
+
|
|
12172
|
+
return zhTw;
|
|
12173
|
+
|
|
12174
|
+
})));
|
|
12175
|
+
});
|
|
12176
|
+
|
|
12177
|
+
momentTimezone$1.locale('en');
|
|
11052
12178
|
var dateFormatSettings = ["DD MMM yyyy", "DD/MM/yyyy", "MMM DD yyyy", "MM/DD/yyyy", "yyyy/MM/DD"];
|
|
11053
12179
|
var generateDateFormat = function generateDateFormat(settingValue) {
|
|
11054
12180
|
switch (settingValue) {
|
|
@@ -11062,7 +12188,7 @@ var generateDateFormat = function generateDateFormat(settingValue) {
|
|
|
11062
12188
|
return dateFormatSettings[0];
|
|
11063
12189
|
}
|
|
11064
12190
|
};
|
|
11065
|
-
var formatDate = function formatDate(date, _ref, formatMore) {
|
|
12191
|
+
var formatDate = function formatDate(date, _ref, formatMore, locale) {
|
|
11066
12192
|
var _ref2;
|
|
11067
12193
|
var timeZone = _ref.timeZone,
|
|
11068
12194
|
_ref$dateFormat = _ref.dateFormat,
|
|
@@ -11070,7 +12196,12 @@ var formatDate = function formatDate(date, _ref, formatMore) {
|
|
|
11070
12196
|
if (formatMore === void 0) {
|
|
11071
12197
|
formatMore = "";
|
|
11072
12198
|
}
|
|
12199
|
+
if (locale === void 0) {
|
|
12200
|
+
locale = "en";
|
|
12201
|
+
}
|
|
12202
|
+
momentTimezone$1.locale(locale);
|
|
11073
12203
|
var d = momentTimezone$1(date);
|
|
12204
|
+
d.locale(locale);
|
|
11074
12205
|
if (timeZone) {
|
|
11075
12206
|
d = d.tz(timeZone);
|
|
11076
12207
|
}
|
|
@@ -11121,11 +12252,11 @@ var getTaxTitle = function getTaxTitle(item, isShowZero) {
|
|
|
11121
12252
|
}
|
|
11122
12253
|
return (taxInclusive + enableTax1 + enableTax2).trim();
|
|
11123
12254
|
};
|
|
11124
|
-
var endDate = function endDate(proposal, company) {
|
|
12255
|
+
var endDate = function endDate(proposal, company, momentLocale) {
|
|
11125
12256
|
if ((proposal === null || proposal === void 0 ? void 0 : proposal.endDate) !== null) {
|
|
11126
|
-
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company);
|
|
12257
|
+
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company, "", momentLocale);
|
|
11127
12258
|
} else if ((proposal === null || proposal === void 0 ? void 0 : proposal.endType) === "fixed_length") {
|
|
11128
|
-
return formatDate(moment(proposal === null || proposal === void 0 ? void 0 : proposal.startDate).add(proposal === null || proposal === void 0 ? void 0 : proposal.contractLength, "month"), company);
|
|
12259
|
+
return formatDate(moment(proposal === null || proposal === void 0 ? void 0 : proposal.startDate).add(proposal === null || proposal === void 0 ? void 0 : proposal.contractLength, "month"), company, "", momentLocale);
|
|
11129
12260
|
}
|
|
11130
12261
|
};
|
|
11131
12262
|
var getRecurringPeriodType = function getRecurringPeriodType(recurringPeriodType, recurringPeriodFrequency) {
|
|
@@ -11197,6 +12328,11 @@ var getObjectInject = function getObjectInject(arr, objectDefine) {
|
|
|
11197
12328
|
var SECTION_DEFINE = [{
|
|
11198
12329
|
termHeading: '',
|
|
11199
12330
|
termContent: 'The following terms and conditions form the Terms of Services between <b>{companyName} (Supplier)</b> and <b>{customerName} (Customer)</b>. Please review the following terms carefully before accepting this Proposal.',
|
|
12331
|
+
termContent_1: 'The following terms and conditions form the Terms of Services between',
|
|
12332
|
+
termContent_2: 'Supplier',
|
|
12333
|
+
termContent_3: 'Customer',
|
|
12334
|
+
termContent_4: 'Please review the following terms carefully before accepting this Proposal.',
|
|
12335
|
+
termContent_5: 'and',
|
|
11200
12336
|
isTermHidden: false,
|
|
11201
12337
|
replace: ['customerName', 'companyName']
|
|
11202
12338
|
}];
|
|
@@ -11210,8 +12346,11 @@ var language = {
|
|
|
11210
12346
|
var contractHtml = (function (props) {
|
|
11211
12347
|
var proposal = props.proposal,
|
|
11212
12348
|
realTimeCompany = props.company,
|
|
11213
|
-
contractor = props.contractor
|
|
12349
|
+
contractor = props.contractor,
|
|
12350
|
+
t = props.t,
|
|
12351
|
+
momentLocaleProps = props.momentLocale;
|
|
11214
12352
|
var lang = language[(props === null || props === void 0 ? void 0 : props.lang) || "en"];
|
|
12353
|
+
var momentLocale = momentLocaleProps || "en";
|
|
11215
12354
|
var customer = (proposal === null || proposal === void 0 ? void 0 : proposal.customer) || {};
|
|
11216
12355
|
var frozenCompany = proposal === null || proposal === void 0 ? void 0 : proposal.company;
|
|
11217
12356
|
var items = ((proposal === null || proposal === void 0 ? void 0 : proposal.serviceItems) || []).filter(function (item) {
|
|
@@ -11230,16 +12369,16 @@ var contractHtml = (function (props) {
|
|
|
11230
12369
|
};
|
|
11231
12370
|
var styles = "<style>\n .pageBreak {\n page-break-inside: avoid;\n }\n #proposal-generator {\n background-color: #ffffff;\n max-width: 21cm;\n padding: 8px;\n }\n #proposal-generator hr {\n display: block;\n height: 1px;\n background: transparent;\n width: 100%;\n border: none;\n border-top: solid 2px #f0f3fb;\n margin: 16px 0;\n }\n #proposal-generator span, p, b {\n line-height: 1.5;\n }\n #proposal-generator b {\n font-size: 16px;\n font-weight: 700;\n }\n #proposal-generator table {\n width: 100%;\n }\n #proposal-generator section:not(:first-child) {\n margin-top: 40px;\n }\n #proposal-generator .section-title {\n font-size: 18px;\n font-weight: 700;\n color: #263238;\n }\n #proposal-generator .proposal-title {\n margin-bottom: 16px;\n work-break:break-all\n }\n #proposal-generator .contact-title {\n font-size: 24px;\n }\n #proposal-generator .table-details {\n margin: 16px 0;\n }\n #proposal-generator .table-details tr td {\n width: 50%;\n vertical-align: top;\n word-break: break-word;\n page-break-inside: avoid;\n }\n #proposal-generator .agreement-date {\n margin-bottom: 16px;\n }\n #proposal-generator .table-service {\n border-collapse: collapse;\n }\n #proposal-generator .table-service tr {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: 1px solid rgb(221, 221, 221);\n }\n #proposal-generator .table-service tr td {\n width: 50%;\n padding: 8px;\n vertical-align: top;\n word-break: break-word;\n page-break-inside: avoid;\n }\n #proposal-generator .table-agreement tr td {\n padding-top: 24px;\n page-break-inside: avoid;\n }\n @print {\n #proposal-generator {\n padding: 0;\n }\n }\n @media only screen and (max-width: 480px) {\n #proposal-generator{\n background-color: #ffffff;\n max-width: 21cm;\n padding: 20px;\n }\n #proposal-generator .table-details tr td {\n width: 100%;\n display: block;\n margin:10px 0px;\n }\n }\n @font-face {\n font-family: 'journal';\n src: local('journal'), url(data:font/ttf;base64," + fontJournal + ") format('truetype');\n }\n \n .signature {\n font-family: 'journal', sans-serif;\n font-size: 40px;\n font-weight: 600;\n color: #595959;\n }\n </style>";
|
|
11232
12371
|
var sectionHeader = "<section>";
|
|
11233
|
-
sectionHeader += "<h2 class=\"section-title contact-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.service_agreement) || "") + "</h2>";
|
|
12372
|
+
sectionHeader += "<h2 class=\"section-title contact-title\">" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.service_agreement) : lang === null || lang === void 0 ? void 0 : lang.service_agreement) || "") + "</h2>";
|
|
11234
12373
|
sectionHeader += "<hr />";
|
|
11235
12374
|
sectionHeader += "</section>";
|
|
11236
12375
|
var sectionUserInfo = "<section>";
|
|
11237
12376
|
sectionUserInfo += "<h5 class=\"section-title proposal-title\" style=\"word-break: break-all\">" + ((proposal === null || proposal === void 0 ? void 0 : proposal.title) || "") + "</h5>";
|
|
11238
|
-
sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.details_line_1) || "") + "</span>";
|
|
12377
|
+
sectionUserInfo += "<span>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.details_line_1) : lang === null || lang === void 0 ? void 0 : lang.details_line_1) || "") + "</span>";
|
|
11239
12378
|
sectionUserInfo += "<br />";
|
|
11240
|
-
sectionUserInfo += "<span>" + (lang === null || lang === void 0 ? void 0 : lang.
|
|
12379
|
+
sectionUserInfo += "<span>" + (lang === null || lang === void 0 ? void 0 : lang.details_line_3(t ? t(lang === null || lang === void 0 ? void 0 : lang.details_line_3_1) : lang === null || lang === void 0 ? void 0 : lang.details_line_3_1, proposal !== null && proposal !== void 0 && proposal.expirationDate ? formatDate(proposal.expirationDate, company || {}, "", momentLocale) : formatDate(new Date(), company || {}, "", momentLocale), t ? t(lang === null || lang === void 0 ? void 0 : lang.details_line_3_2) : lang === null || lang === void 0 ? void 0 : lang.details_line_3_2)) + "</span>";
|
|
11241
12380
|
sectionUserInfo += '<table class="table-details"><tbody><tr><td>';
|
|
11242
|
-
sectionUserInfo += "<b>" + ((lang === null || lang === void 0 ? void 0 : lang.supplier_details) || "") + "</b>";
|
|
12381
|
+
sectionUserInfo += "<b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.supplier_details) : lang === null || lang === void 0 ? void 0 : lang.supplier_details) || "") + "</b>";
|
|
11243
12382
|
if (Object.keys(company || {}).length > 0) {
|
|
11244
12383
|
if (company !== null && company !== void 0 && company.name) {
|
|
11245
12384
|
sectionUserInfo += "<div><b>" + company.name + "</b></div>";
|
|
@@ -11255,10 +12394,10 @@ var contractHtml = (function (props) {
|
|
|
11255
12394
|
}
|
|
11256
12395
|
} else {
|
|
11257
12396
|
sectionUserInfo += "<br />";
|
|
11258
|
-
sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.supplier_empty) || "") + "</span>";
|
|
12397
|
+
sectionUserInfo += "<span>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.supplier_empty) : lang === null || lang === void 0 ? void 0 : lang.supplier_empty) || "") + "</span>";
|
|
11259
12398
|
}
|
|
11260
12399
|
sectionUserInfo += "</td><td>";
|
|
11261
|
-
sectionUserInfo += "<b>" + (lang === null || lang === void 0 ? void 0 : lang.customer_details) + "</b>";
|
|
12400
|
+
sectionUserInfo += "<b>" + (t ? t(lang === null || lang === void 0 ? void 0 : lang.customer_details) : lang === null || lang === void 0 ? void 0 : lang.customer_details) + "</b>";
|
|
11262
12401
|
if (Object.keys(customer || {}).length > 0) {
|
|
11263
12402
|
if (customer !== null && customer !== void 0 && customer.companyName) {
|
|
11264
12403
|
sectionUserInfo += "<div><b>" + customer.companyName + "</b></div>";
|
|
@@ -11274,25 +12413,25 @@ var contractHtml = (function (props) {
|
|
|
11274
12413
|
}
|
|
11275
12414
|
} else {
|
|
11276
12415
|
sectionUserInfo += "<br />";
|
|
11277
|
-
sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.customer_empty) || "") + "</span>";
|
|
12416
|
+
sectionUserInfo += "<span>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.customer_empty) : lang === null || lang === void 0 ? void 0 : lang.customer_empty) || "") + "</span>";
|
|
11278
12417
|
}
|
|
11279
12418
|
sectionUserInfo += "</td></tr></tbody></table>";
|
|
11280
|
-
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.effective_date) || "") + "
|
|
11281
|
-
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.start_date) || "") + "
|
|
11282
|
-
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.end_date) || "") + "
|
|
12419
|
+
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.effective_date) : lang === null || lang === void 0 ? void 0 : lang.effective_date) || "") + ":</b> " + (proposal !== null && proposal !== void 0 && proposal.effectiveDate ? formatDate(proposal.effectiveDate, company || {}, "", momentLocale) : "") + "</p>";
|
|
12420
|
+
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.start_date) : lang === null || lang === void 0 ? void 0 : lang.start_date) || "") + ":</b> " + (proposal !== null && proposal !== void 0 && proposal.startDate ? formatDate(proposal.startDate, company || {}, "", momentLocale) : "") + "</p>";
|
|
12421
|
+
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.end_date) : lang === null || lang === void 0 ? void 0 : lang.end_date) || "") + ":</b> " + endDate(proposal, company || {}, momentLocale) + "</p>";
|
|
11283
12422
|
sectionUserInfo += "<div style=\"margin: 6px 0\">";
|
|
11284
|
-
sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.
|
|
12423
|
+
sectionUserInfo += "<span>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.details_line_4) : lang === null || lang === void 0 ? void 0 : lang.details_line_4) || "") + "</span><br />";
|
|
11285
12424
|
sectionUserInfo += "</div>";
|
|
11286
|
-
sectionUserInfo += "<p style=\"margin: 6px 0\">" + ((lang === null || lang === void 0 ? void 0 : lang.kind_regards) || "") + "
|
|
12425
|
+
sectionUserInfo += "<p style=\"margin: 6px 0\">" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.kind_regards) : lang === null || lang === void 0 ? void 0 : lang.kind_regards) || "") + ",</p>";
|
|
11287
12426
|
sectionUserInfo += "<b>" + ((contractor === null || contractor === void 0 ? void 0 : contractor.firstName) || "") + " " + ((contractor === null || contractor === void 0 ? void 0 : contractor.lastName) || "") + "</b><br />";
|
|
11288
12427
|
sectionUserInfo += "</section>";
|
|
11289
12428
|
var sectionServices = "<section>";
|
|
11290
|
-
sectionServices += "<h5 class=\"section-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.services_title) || "") + "</h5>";
|
|
12429
|
+
sectionServices += "<h5 class=\"section-title\">" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.services_title) : lang === null || lang === void 0 ? void 0 : lang.services_title) || "") + "</h5>";
|
|
11291
12430
|
sectionServices += "<hr />";
|
|
11292
12431
|
sectionServices += '<table class="table-service"><tbody>';
|
|
11293
12432
|
if (items && items.length > 0) {
|
|
11294
12433
|
items.forEach(function (it) {
|
|
11295
|
-
var taxTitle = getTaxTitle(it, true);
|
|
12434
|
+
var taxTitle = t ? getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax')) : getTaxTitle(it, true);
|
|
11296
12435
|
sectionServices += "<tr><td>";
|
|
11297
12436
|
if (it.billingType !== "none") {
|
|
11298
12437
|
sectionServices += "<b>" + FormatCurrency$4(((it === null || it === void 0 ? void 0 : it.price) || 0) * ((it === null || it === void 0 ? void 0 : it.quantity) || 0), (company === null || company === void 0 ? void 0 : company.currency) || "USD", (company === null || company === void 0 ? void 0 : company.language) || "en", (company === null || company === void 0 ? void 0 : company.currencyFormat) || "") + "</b>";
|
|
@@ -11316,16 +12455,16 @@ var contractHtml = (function (props) {
|
|
|
11316
12455
|
sectionServices += "</div>";
|
|
11317
12456
|
}
|
|
11318
12457
|
sectionServices += '</td><td align="right">';
|
|
11319
|
-
sectionServices += "<p>" + getBilling(it, proposal, company) + "</p>";
|
|
12458
|
+
sectionServices += "<p>" + t ? getBilling(it, proposal, company).replace('Billed today', t('Billed today')).replace('Billed on completion', t('Billed on completion')).replace('Billed on', t('Billed on')) : getBilling(it, proposal, company) + "</p>";
|
|
11320
12459
|
sectionServices += "</td></tr>";
|
|
11321
12460
|
});
|
|
11322
12461
|
} else {
|
|
11323
|
-
sectionServices += '<tr style="border:none;"><td style="border: unset;">' + ((lang === null || lang === void 0 ? void 0 : lang.items_empty) || "") + "</td></tr>";
|
|
12462
|
+
sectionServices += '<tr style="border:none;"><td style="border: unset;">' + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.items_empty) : lang === null || lang === void 0 ? void 0 : lang.items_empty) || "") + "</td></tr>";
|
|
11324
12463
|
}
|
|
11325
12464
|
sectionServices += "</tbody></table>";
|
|
11326
12465
|
sectionServices += "</section>";
|
|
11327
12466
|
var sectionAgreement = "<section>";
|
|
11328
|
-
sectionAgreement += "<h5 class=\"section-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.agreement_title) || "") + "</h5>";
|
|
12467
|
+
sectionAgreement += "<h5 class=\"section-title\">" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.agreement_title) : lang === null || lang === void 0 ? void 0 : lang.agreement_title) || "") + "</h5>";
|
|
11329
12468
|
sectionAgreement += "<hr />";
|
|
11330
12469
|
sectionAgreement += '<table class="table-agreement"><tbody>';
|
|
11331
12470
|
if (sectionsDefine && sectionsDefine.length > 0) {
|
|
@@ -11337,7 +12476,7 @@ var contractHtml = (function (props) {
|
|
|
11337
12476
|
if (s !== null && s !== void 0 && s.termContent) {
|
|
11338
12477
|
var _s$replace;
|
|
11339
12478
|
sectionAgreement += '<p style="marginBottom: 10px">';
|
|
11340
|
-
sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(s.termContent, getObjectInject(s.replace, objectDefine)));
|
|
12479
|
+
sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(t ? t(s.termContent_1) + " <b>{companyName} (" + t(s.termContent_2) + ")</b> " + t(s.termContent_5) + " <b>{customerName} (" + t(s.termContent_3) + ")</b>. " + t(s.termContent_4) : s.termContent, getObjectInject(s.replace, objectDefine)));
|
|
11341
12480
|
sectionAgreement += "</p>";
|
|
11342
12481
|
}
|
|
11343
12482
|
sectionAgreement += "</td></tr>";
|
|
@@ -11367,7 +12506,7 @@ var contractHtml = (function (props) {
|
|
|
11367
12506
|
if (!!(customer !== null && customer !== void 0 && customer.companyName)) signatureAgreement += "<div><b>" + lang.client + "</b> " + customer.companyName + "</div>";
|
|
11368
12507
|
if (!!(customer !== null && customer !== void 0 && customer.email)) signatureAgreement += "<div><b>" + lang.email_addresses + "</b> " + customer.email + "</div>";
|
|
11369
12508
|
if (!!(proposal !== null && proposal !== void 0 && proposal.clientSignedIpAddr)) signatureAgreement += "<div><b>" + lang.ip + "</b> " + proposal.clientSignedIpAddr + "</div>";
|
|
11370
|
-
if (!!(proposal !== null && proposal !== void 0 && proposal.clientSignedDate)) signatureAgreement += "<div><b>" + lang.time + "</b> " + formatDate(proposal.clientSignedDate, company || {}, "hh:mm:ss A") + "</div>";
|
|
12509
|
+
if (!!(proposal !== null && proposal !== void 0 && proposal.clientSignedDate)) signatureAgreement += "<div><b>" + lang.time + "</b> " + formatDate(proposal.clientSignedDate, company || {}, "hh:mm:ss A", momentLocale) + "</div>";
|
|
11371
12510
|
}
|
|
11372
12511
|
signatureAgreement += "</section>";
|
|
11373
12512
|
var html = styles;
|