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