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