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