pdf-factory 1.1.3 → 1.1.4
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/composition/resolveCompositionConfig.d.ts +10 -8
- package/dist/composition/resolveCompositionConfig.d.ts.map +1 -1
- package/dist/pdf-factory.cjs +1 -1
- package/dist/pdf-factory.cjs.map +1 -1
- package/dist/pdf-factory.js +78 -69
- package/dist/pdf-factory.js.map +1 -1
- package/package.json +2 -2
package/dist/pdf-factory.js
CHANGED
|
@@ -4112,32 +4112,41 @@ function di(e) {
|
|
|
4112
4112
|
}
|
|
4113
4113
|
//#endregion
|
|
4114
4114
|
//#region src/composition/resolveCompositionConfig.ts
|
|
4115
|
-
var fi = "print";
|
|
4116
|
-
function
|
|
4117
|
-
let { providerConfig: t, tournamentRecord: n,
|
|
4118
|
-
return
|
|
4119
|
-
}
|
|
4120
|
-
|
|
4115
|
+
var fi = "appliedPolicies", pi = "print";
|
|
4116
|
+
function mi(e) {
|
|
4117
|
+
let { providerConfig: t, tournamentRecord: n, event: r, drawDefinition: i, printType: a, runtime: o } = e;
|
|
4118
|
+
return [
|
|
4119
|
+
t?.providerConfigSettings?.policies?.printPolicies?.[a] ?? {},
|
|
4120
|
+
hi(n, a),
|
|
4121
|
+
hi(r, a),
|
|
4122
|
+
hi(i, a),
|
|
4123
|
+
o ?? {}
|
|
4124
|
+
].reduce((e, t) => gi(e, t), {});
|
|
4125
|
+
}
|
|
4126
|
+
function hi(e, t) {
|
|
4127
|
+
return (e?.extensions?.find((e) => e?.name === fi)?.value)?.[pi]?.[t] ?? {};
|
|
4128
|
+
}
|
|
4129
|
+
function gi(e, t) {
|
|
4121
4130
|
let n = { ...e };
|
|
4122
4131
|
for (let e of Object.keys(t)) {
|
|
4123
4132
|
let r = t[e];
|
|
4124
4133
|
if (r === void 0) continue;
|
|
4125
4134
|
let i = n[e];
|
|
4126
|
-
n[e] =
|
|
4135
|
+
n[e] = _i(i) && _i(r) ? gi(i, r) : r;
|
|
4127
4136
|
}
|
|
4128
4137
|
return n;
|
|
4129
4138
|
}
|
|
4130
|
-
function
|
|
4139
|
+
function _i(e) {
|
|
4131
4140
|
return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
|
|
4132
4141
|
}
|
|
4133
4142
|
//#endregion
|
|
4134
4143
|
//#region src/generators/sequentialOOP.ts
|
|
4135
|
-
var
|
|
4144
|
+
var vi = [
|
|
4136
4145
|
120,
|
|
4137
4146
|
50,
|
|
4138
4147
|
140
|
|
4139
4148
|
];
|
|
4140
|
-
function
|
|
4149
|
+
function yi(e, t = {}) {
|
|
4141
4150
|
let n = {
|
|
4142
4151
|
pageSize: t.page?.pageSize || "a4",
|
|
4143
4152
|
orientation: t.page?.orientation || "portrait",
|
|
@@ -4147,49 +4156,49 @@ function _i(e, t = {}) {
|
|
|
4147
4156
|
bottom: 12,
|
|
4148
4157
|
left: 15
|
|
4149
4158
|
}
|
|
4150
|
-
}, r = Ce(n), { margins: i } = n, a = r.internal.pageSize.getWidth(), o = r.internal.pageSize.getHeight(), s = a - i.left - i.right, c = t.accentColor ||
|
|
4159
|
+
}, r = Ce(n), { margins: i } = n, a = r.internal.pageSize.getWidth(), o = r.internal.pageSize.getHeight(), s = a - i.left - i.right, c = t.accentColor || vi, l = t.footer || { layout: "none" }, u = V(l), d = i.top;
|
|
4151
4160
|
t.header && (d = i.top + B(r, t.header, n) + 3);
|
|
4152
|
-
let f =
|
|
4161
|
+
let f = wi(e);
|
|
4153
4162
|
for (let [e, a] of f) {
|
|
4154
|
-
d + 30 > o - i.bottom - u && (
|
|
4163
|
+
d + 30 > o - i.bottom - u && (Ti(r, t, n, l), r.addPage(), d = i.top), d = bi(r, e, i.left, d, s);
|
|
4155
4164
|
let f = "";
|
|
4156
4165
|
for (let e of a) {
|
|
4157
4166
|
let a = e.scheduledTime || e.notBeforeTime || "";
|
|
4158
|
-
a && a !== f && (d + 25 > o - i.bottom - u && (
|
|
4167
|
+
a && a !== f && (d + 25 > o - i.bottom - u && (Ti(r, t, n, l), r.addPage(), d = i.top), d = xi(r, a, !!e.notBeforeTime, i.left, d, s, c), f = a), d + 22 > o - i.bottom - u && (Ti(r, t, n, l), r.addPage(), d = i.top), d = Si(r, e, i.left, d, s);
|
|
4159
4168
|
}
|
|
4160
4169
|
d += 4;
|
|
4161
4170
|
}
|
|
4162
|
-
return t.disclaimer && (d += 2, R(r, I.TINY, F.ITALIC), r.setTextColor(100), r.text(t.disclaimer, a / 2, d, { align: "center" }), r.setTextColor(0)),
|
|
4171
|
+
return t.disclaimer && (d += 2, R(r, I.TINY, F.ITALIC), r.setTextColor(100), r.text(t.disclaimer, a / 2, d, { align: "center" }), r.setTextColor(0)), Ti(r, t, n, l), r;
|
|
4163
4172
|
}
|
|
4164
|
-
function
|
|
4173
|
+
function bi(e, t, n, r, i) {
|
|
4165
4174
|
return R(e, I.HEADING, F.BOLD), e.setTextColor(40), e.text(t.toUpperCase(), n + i / 2, r, { align: "center" }), e.setTextColor(0), r + 7;
|
|
4166
4175
|
}
|
|
4167
|
-
function
|
|
4176
|
+
function xi(e, t, n, r, i, a, o) {
|
|
4168
4177
|
let s = n ? `Not before ${t}` : `Starting at ${t}`;
|
|
4169
4178
|
return e.setFillColor(o[0], o[1], o[2]), e.rect(r + 20, i, a - 40, 5, "F"), R(e, I.SMALL, F.ITALIC), e.setTextColor(255, 255, 255), e.text(s, r + a / 2, i + 3.5, { align: "center" }), e.setTextColor(0), i + 7;
|
|
4170
4179
|
}
|
|
4171
|
-
function
|
|
4180
|
+
function Si(e, t, n, r, i) {
|
|
4172
4181
|
let a = n + 15, o = i - 30, s = r;
|
|
4173
4182
|
R(e, I.TINY, F.ITALIC), e.setTextColor(100);
|
|
4174
4183
|
let c = t.eventAbbr ? `${t.eventAbbr} ${t.roundName}` : t.roundName;
|
|
4175
|
-
e.text(c, a + o - 2, r + 3, { align: "right" }), e.setTextColor(0), t.score && (R(e, I.SMALL, F.BOLD), e.setTextColor(120, 50, 140), e.text(t.score, a + o / 2, r + 3, { align: "center" }), e.setTextColor(0), r += 4), r += 2, r =
|
|
4184
|
+
e.text(c, a + o - 2, r + 3, { align: "right" }), e.setTextColor(0), t.score && (R(e, I.SMALL, F.BOLD), e.setTextColor(120, 50, 140), e.text(t.score, a + o / 2, r + 3, { align: "center" }), e.setTextColor(0), r += 4), r += 2, r = Ci(e, t.side1, a, r, o), R(e, I.TINY, F.ITALIC), e.setTextColor(120), e.text("vs", a + o / 2, r + 2.5, { align: "center" }), e.setTextColor(0), r += 4, r = Ci(e, t.side2, a, r, o), r += 2;
|
|
4176
4185
|
let l = r - s;
|
|
4177
4186
|
return e.setDrawColor(180), e.setLineWidth(.3), e.rect(a, s, o, l), r + 2;
|
|
4178
4187
|
}
|
|
4179
|
-
function
|
|
4188
|
+
function Ci(e, t, n, r, i) {
|
|
4180
4189
|
if (!t.name || t.name === "TBD") return R(e, I.BODY, F.ITALIC), e.setTextColor(150), e.text("TBD", n + 10, r + 3), e.setTextColor(0), r + 4;
|
|
4181
4190
|
R(e, I.BODY, F.NORMAL);
|
|
4182
4191
|
let a = t.nationality ? `${t.name} ${t.nationality}` : t.name;
|
|
4183
4192
|
return e.text(a, n + 10, r + 3), r + 4;
|
|
4184
4193
|
}
|
|
4185
|
-
function
|
|
4194
|
+
function wi(e) {
|
|
4186
4195
|
let t = /* @__PURE__ */ new Map();
|
|
4187
4196
|
for (let n of e.courts) t.set(n, []);
|
|
4188
4197
|
for (let n of e.timeSlots) for (let e of n.matches) t.has(e.courtName) || t.set(e.courtName, []), t.get(e.courtName).push(e);
|
|
4189
4198
|
for (let [e, n] of t) n.length === 0 && t.delete(e);
|
|
4190
4199
|
return t;
|
|
4191
4200
|
}
|
|
4192
|
-
function
|
|
4201
|
+
function Ti(e, t, n, r) {
|
|
4193
4202
|
let { margins: i } = n, a = e.internal.pageSize.getWidth(), o = e.internal.pageSize.getHeight();
|
|
4194
4203
|
if (t.officials?.length) {
|
|
4195
4204
|
let n = o - i.bottom - 10;
|
|
@@ -4204,16 +4213,16 @@ function Ci(e, t, n, r) {
|
|
|
4204
4213
|
}
|
|
4205
4214
|
//#endregion
|
|
4206
4215
|
//#region src/generators/report.ts
|
|
4207
|
-
var
|
|
4208
|
-
function
|
|
4216
|
+
var Ei = .2645833;
|
|
4217
|
+
function Di(e) {
|
|
4209
4218
|
let t = {};
|
|
4210
4219
|
for (let n of e) {
|
|
4211
4220
|
let e = {};
|
|
4212
|
-
n.type === "number" && (e.halign = "right"), n.width ? e.cellWidth = Math.round(n.width *
|
|
4221
|
+
n.type === "number" && (e.halign = "right"), n.width ? e.cellWidth = Math.round(n.width * Ei * 10) / 10 : n.fitData && (e.cellWidth = "wrap"), Object.keys(e).length && (t[n.key] = e);
|
|
4213
4222
|
}
|
|
4214
4223
|
return t;
|
|
4215
4224
|
}
|
|
4216
|
-
function
|
|
4225
|
+
function Oi(n, r, i = {}) {
|
|
4217
4226
|
let a = i.orientation || "landscape", o = new e({
|
|
4218
4227
|
orientation: a,
|
|
4219
4228
|
format: "a4"
|
|
@@ -4234,7 +4243,7 @@ function Ei(n, r, i = {}) {
|
|
|
4234
4243
|
t[r.key] = n == null ? "" : String(n);
|
|
4235
4244
|
}
|
|
4236
4245
|
return t;
|
|
4237
|
-
}), u =
|
|
4246
|
+
}), u = Di(n);
|
|
4238
4247
|
return t(o, {
|
|
4239
4248
|
...G.report,
|
|
4240
4249
|
startY: s,
|
|
@@ -4249,7 +4258,7 @@ function Ei(n, r, i = {}) {
|
|
|
4249
4258
|
//#endregion
|
|
4250
4259
|
//#region src/generators/factSheet.ts
|
|
4251
4260
|
var Z = 15;
|
|
4252
|
-
function
|
|
4261
|
+
function ki(e) {
|
|
4253
4262
|
if (typeof document < "u") {
|
|
4254
4263
|
let t = document.createElement("div");
|
|
4255
4264
|
return t.innerHTML = e, t.textContent || "";
|
|
@@ -4261,7 +4270,7 @@ function Di(e) {
|
|
|
4261
4270
|
function Q(e, t, n) {
|
|
4262
4271
|
return R(e, I.HEADING, F.BOLD), e.setTextColor(40), e.text(t.toUpperCase(), Z, n), e.setTextColor(0), n += 1.5, e.setDrawColor(180), e.setLineWidth(.2), e.line(Z, n, e.internal.pageSize.getWidth() - Z, n), n += 4, n;
|
|
4263
4272
|
}
|
|
4264
|
-
function
|
|
4273
|
+
function Ai(e, t, n, r) {
|
|
4265
4274
|
R(e, I.BODY, F.NORMAL);
|
|
4266
4275
|
let i = r || e.internal.pageSize.getWidth() - 30, a = e.splitTextToSize(t, i);
|
|
4267
4276
|
return e.text(a, Z, n), n + a.length * 3.2;
|
|
@@ -4270,7 +4279,7 @@ function $(e, t, n) {
|
|
|
4270
4279
|
let r = e.internal.pageSize.getHeight();
|
|
4271
4280
|
return t + n > r - 20 ? (e.addPage(), 20) : t;
|
|
4272
4281
|
}
|
|
4273
|
-
function
|
|
4282
|
+
function ji(e, t, n) {
|
|
4274
4283
|
let r = {
|
|
4275
4284
|
pageSize: "a4",
|
|
4276
4285
|
orientation: "portrait",
|
|
@@ -4283,7 +4292,7 @@ function ki(e, t, n) {
|
|
|
4283
4292
|
};
|
|
4284
4293
|
return n + B(e, ze(t, { layout: "itf" }), r);
|
|
4285
4294
|
}
|
|
4286
|
-
function
|
|
4295
|
+
function Mi(e, n, r) {
|
|
4287
4296
|
let i = (n.participants || []).filter((e) => e.participantRole && e.participantRole !== "COMPETITOR");
|
|
4288
4297
|
if (!i.length) return r;
|
|
4289
4298
|
r = $(e, r, 20), r = Q(e, "Tournament Contacts", r);
|
|
@@ -4323,7 +4332,7 @@ function Ai(e, n, r) {
|
|
|
4323
4332
|
theme: "grid"
|
|
4324
4333
|
}), e.lastAutoTable.finalY + 6;
|
|
4325
4334
|
}
|
|
4326
|
-
function
|
|
4335
|
+
function Ni(e, n, r) {
|
|
4327
4336
|
let i = n.events || [];
|
|
4328
4337
|
if (!i.length) return r;
|
|
4329
4338
|
r = $(e, r, 20), r = Q(e, "Events", r);
|
|
@@ -4365,7 +4374,7 @@ function ji(e, n, r) {
|
|
|
4365
4374
|
theme: "grid"
|
|
4366
4375
|
}), e.lastAutoTable.finalY + 6;
|
|
4367
4376
|
}
|
|
4368
|
-
function
|
|
4377
|
+
function Pi(e, t, n) {
|
|
4369
4378
|
let r = t.registrationProfile;
|
|
4370
4379
|
if (!r) return n;
|
|
4371
4380
|
let i = [];
|
|
@@ -4378,7 +4387,7 @@ function Mi(e, t, n) {
|
|
|
4378
4387
|
for (let t of i) e.text(t, Z, n), n += 3.5;
|
|
4379
4388
|
return n + 3;
|
|
4380
4389
|
}
|
|
4381
|
-
function
|
|
4390
|
+
function Fi(e, t, n) {
|
|
4382
4391
|
let r = t.venues || [];
|
|
4383
4392
|
if (!r.length) return n;
|
|
4384
4393
|
n = $(e, n, 15), n = Q(e, "Venue", n), R(e, I.BODY, F.NORMAL);
|
|
@@ -4400,9 +4409,9 @@ function Ni(e, t, n) {
|
|
|
4400
4409
|
}
|
|
4401
4410
|
return n + 3;
|
|
4402
4411
|
}
|
|
4403
|
-
function
|
|
4412
|
+
function Ii(e, n, r, i) {
|
|
4404
4413
|
if (!r) return i;
|
|
4405
|
-
let a = r.options?.length, o = r.notes &&
|
|
4414
|
+
let a = r.options?.length, o = r.notes && ki(r.notes);
|
|
4406
4415
|
if (!a && !o) return i;
|
|
4407
4416
|
if (i = $(e, i, 15), i = Q(e, n, i), a) {
|
|
4408
4417
|
let n = r.options.map((e) => {
|
|
@@ -4445,16 +4454,16 @@ function Pi(e, n, r, i) {
|
|
|
4445
4454
|
theme: "grid"
|
|
4446
4455
|
}), i = e.lastAutoTable.finalY + 3;
|
|
4447
4456
|
}
|
|
4448
|
-
return o && (i =
|
|
4457
|
+
return o && (i = Ai(e, ki(r.notes), i)), i + 3;
|
|
4449
4458
|
}
|
|
4450
|
-
function
|
|
4459
|
+
function Li(e, t, n) {
|
|
4451
4460
|
let r = t.totalPrizeMoney;
|
|
4452
4461
|
if (!r?.length) return n;
|
|
4453
4462
|
n = $(e, n, 10), n = Q(e, "Prize Money", n), R(e, I.BODY, F.NORMAL);
|
|
4454
4463
|
for (let t of r) e.text(t.currencyCode + " " + t.amount.toLocaleString(), Z, n), n += 3.5;
|
|
4455
4464
|
return n + 3;
|
|
4456
4465
|
}
|
|
4457
|
-
function
|
|
4466
|
+
function Ri(e, n, r) {
|
|
4458
4467
|
let i = (n.participants || []).filter((e) => e.participantRole === "OFFICIAL" || e.participantRole === "DIRECTOR");
|
|
4459
4468
|
if (!i.length) return r;
|
|
4460
4469
|
r = $(e, r, 15), r = Q(e, "Officials", r);
|
|
@@ -4486,7 +4495,7 @@ function Ii(e, n, r) {
|
|
|
4486
4495
|
theme: "grid"
|
|
4487
4496
|
}), e.lastAutoTable.finalY + 6;
|
|
4488
4497
|
}
|
|
4489
|
-
function
|
|
4498
|
+
function zi(e, t, n) {
|
|
4490
4499
|
let r = t.registrationProfile;
|
|
4491
4500
|
if (!r) return n;
|
|
4492
4501
|
let i = [];
|
|
@@ -4500,7 +4509,7 @@ function Li(e, t, n) {
|
|
|
4500
4509
|
for (let t of i) e.text(t, Z, n), n += 3.5;
|
|
4501
4510
|
return n + 3;
|
|
4502
4511
|
}
|
|
4503
|
-
function
|
|
4512
|
+
function Bi(e, t, n) {
|
|
4504
4513
|
let r = t.registrationProfile?.sponsors;
|
|
4505
4514
|
if (!r?.length) return n;
|
|
4506
4515
|
n = $(e, n, 10), n = Q(e, "Sponsors", n), R(e, I.BODY, F.NORMAL);
|
|
@@ -4510,7 +4519,7 @@ function Ri(e, t, n) {
|
|
|
4510
4519
|
}
|
|
4511
4520
|
return n + 3;
|
|
4512
4521
|
}
|
|
4513
|
-
function
|
|
4522
|
+
function Vi(e, t, n) {
|
|
4514
4523
|
let r = t.registrationProfile?.socialEvents;
|
|
4515
4524
|
if (!r?.length) return n;
|
|
4516
4525
|
let i = t.registrationProfile;
|
|
@@ -4526,30 +4535,30 @@ function zi(e, t, n) {
|
|
|
4526
4535
|
}
|
|
4527
4536
|
return n + 3;
|
|
4528
4537
|
}
|
|
4529
|
-
function
|
|
4538
|
+
function Hi(e, t, n) {
|
|
4530
4539
|
let r = t.notes;
|
|
4531
4540
|
if (!r) return n;
|
|
4532
|
-
let i =
|
|
4533
|
-
return i ? (n = $(e, n, 15), n = Q(e, "Additional Information", n), n =
|
|
4534
|
-
}
|
|
4535
|
-
var
|
|
4536
|
-
"tournament-header":
|
|
4537
|
-
contacts:
|
|
4538
|
-
events:
|
|
4539
|
-
"entry-info":
|
|
4540
|
-
"venue-info":
|
|
4541
|
-
accommodation: (e, t, n) =>
|
|
4542
|
-
transportation: (e, t, n) =>
|
|
4543
|
-
hospitality: (e, t, n) =>
|
|
4544
|
-
medical: (e, t, n) =>
|
|
4545
|
-
regulations:
|
|
4546
|
-
"prize-money":
|
|
4547
|
-
officials:
|
|
4548
|
-
sponsors:
|
|
4549
|
-
"social-events":
|
|
4550
|
-
"custom-notes":
|
|
4541
|
+
let i = ki(r);
|
|
4542
|
+
return i ? (n = $(e, n, 15), n = Q(e, "Additional Information", n), n = Ai(e, i, n), n + 3) : n;
|
|
4543
|
+
}
|
|
4544
|
+
var Ui = {
|
|
4545
|
+
"tournament-header": ji,
|
|
4546
|
+
contacts: Mi,
|
|
4547
|
+
events: Ni,
|
|
4548
|
+
"entry-info": Pi,
|
|
4549
|
+
"venue-info": Fi,
|
|
4550
|
+
accommodation: (e, t, n) => Ii(e, "Accommodation", t.registrationProfile?.accommodation, n),
|
|
4551
|
+
transportation: (e, t, n) => Ii(e, "Transportation", t.registrationProfile?.transportation, n),
|
|
4552
|
+
hospitality: (e, t, n) => Ii(e, "Hospitality", t.registrationProfile?.hospitality, n),
|
|
4553
|
+
medical: (e, t, n) => Ii(e, "Medical", t.registrationProfile?.medicalInfo, n),
|
|
4554
|
+
regulations: zi,
|
|
4555
|
+
"prize-money": Li,
|
|
4556
|
+
officials: Ri,
|
|
4557
|
+
sponsors: Bi,
|
|
4558
|
+
"social-events": Vi,
|
|
4559
|
+
"custom-notes": Hi
|
|
4551
4560
|
};
|
|
4552
|
-
function
|
|
4561
|
+
function Wi(t, n = {}) {
|
|
4553
4562
|
let { templateId: r = "itf-junior" } = n, i = de(r)?.sections || de("itf-junior").sections, a = n.enabledSections ? new Set(n.enabledSections) : null, o = new e({
|
|
4554
4563
|
orientation: "portrait",
|
|
4555
4564
|
format: "a4"
|
|
@@ -4558,7 +4567,7 @@ function Hi(t, n = {}) {
|
|
|
4558
4567
|
let s = Z;
|
|
4559
4568
|
for (let e of i) {
|
|
4560
4569
|
if (!e.enabled || a && !a.has(e.type)) continue;
|
|
4561
|
-
let n =
|
|
4570
|
+
let n = Ui[e.type];
|
|
4562
4571
|
n && (s = n(o, t, s));
|
|
4563
4572
|
}
|
|
4564
4573
|
let c = o.getNumberOfPages();
|
|
@@ -4567,7 +4576,7 @@ function Hi(t, n = {}) {
|
|
|
4567
4576
|
}
|
|
4568
4577
|
//#endregion
|
|
4569
4578
|
//#region src/generators/generateFromEventData.ts
|
|
4570
|
-
function
|
|
4579
|
+
function Gi(e, t = {}) {
|
|
4571
4580
|
let n = e?.drawsData || [], r = e?.tournamentInfo || {}, i = e?.eventInfo || {}, a = C(t.catalogPreset || "club-basic"), o = g(a?.drawFormatPreset || "itfJunior"), s = {
|
|
4572
4581
|
layout: "itf",
|
|
4573
4582
|
tournamentName: r.tournamentName || "Tournament",
|
|
@@ -4592,8 +4601,8 @@ function Ui(e, t = {}) {
|
|
|
4592
4601
|
format: o
|
|
4593
4602
|
};
|
|
4594
4603
|
if (u && d) return mr({
|
|
4595
|
-
winnersBracket: f ? N(f) :
|
|
4596
|
-
losersBracket: P(n, "CONSOLATION") ? N(P(n, "CONSOLATION")) :
|
|
4604
|
+
winnersBracket: f ? N(f) : Ki(),
|
|
4605
|
+
losersBracket: P(n, "CONSOLATION") ? N(P(n, "CONSOLATION")) : Ki(),
|
|
4597
4606
|
deciderMatch: P(n, "PLAY_OFF") ? N(P(n, "PLAY_OFF")) : void 0
|
|
4598
4607
|
}, p);
|
|
4599
4608
|
if (u) return ur(l.map((e) => ({
|
|
@@ -4618,7 +4627,7 @@ function Ui(e, t = {}) {
|
|
|
4618
4627
|
maxPositionsPerPage: t.maxPositionsPerPage || 32
|
|
4619
4628
|
}) : sr(h, p);
|
|
4620
4629
|
}
|
|
4621
|
-
function
|
|
4630
|
+
function Ki() {
|
|
4622
4631
|
return {
|
|
4623
4632
|
drawName: "",
|
|
4624
4633
|
drawSize: 0,
|
|
@@ -4630,6 +4639,6 @@ function Wi() {
|
|
|
4630
4639
|
};
|
|
4631
4640
|
}
|
|
4632
4641
|
//#endregion
|
|
4633
|
-
export { S as COMPOSITION_CATALOG, Hr as DRAW_MODAL_TABS, ue as FACT_SHEET_CATALOG, he as FONT, Rr as FOOTER_LAYOUT_OPTIONS, Lr as HEADER_LAYOUT_OPTIONS, Br as ORIENTATION_OPTIONS, zr as PAGE_SIZE_OPTIONS, h as PRESETS, Ur as SCHEDULE_MODAL_TABS, I as SIZE, Vr as SPLIT_STRATEGY_OPTIONS, F as STYLE, G as TABLE_STYLES, ye as activeFontFamily, L as applyDefaultFont, Be as buildFooterFromTournament, ze as buildHeaderFromTournament, ti as calculateBracketPositions, Ce as createDoc, ri as drawBracketConnectors, ni as drawBracketSlot, W as drawPageFooter, Et as drawTournamentHeader, at as entryStatusDisplay, lt as eventAbbreviation, yr as executePrint, $r as extractCompassData, Wn as extractConsolationStructures, gt as extractCourtCardData, Pt as extractDrawData, mt as extractParticipantData, Wr as extractRoundRobinData, ft as extractScheduleData, P as findStructure, st as formatDate, q as formatMatchScore, Lt as formatPlayerEntry, ot as formatScore, ct as formatTime, pr as generateBackdrawPDF, dr as generateCompassDrawPDF, ur as generateConsolationDrawPDF, kt as generateCourtCardPDF, mr as generateDoubleEliminationPDF, ar as generateDrawPDF, ai as generateDrawSheetPDF,
|
|
4642
|
+
export { S as COMPOSITION_CATALOG, Hr as DRAW_MODAL_TABS, ue as FACT_SHEET_CATALOG, he as FONT, Rr as FOOTER_LAYOUT_OPTIONS, Lr as HEADER_LAYOUT_OPTIONS, Br as ORIENTATION_OPTIONS, zr as PAGE_SIZE_OPTIONS, h as PRESETS, Ur as SCHEDULE_MODAL_TABS, I as SIZE, Vr as SPLIT_STRATEGY_OPTIONS, F as STYLE, G as TABLE_STYLES, ye as activeFontFamily, L as applyDefaultFont, Be as buildFooterFromTournament, ze as buildHeaderFromTournament, ti as calculateBracketPositions, Ce as createDoc, ri as drawBracketConnectors, ni as drawBracketSlot, W as drawPageFooter, Et as drawTournamentHeader, at as entryStatusDisplay, lt as eventAbbreviation, yr as executePrint, $r as extractCompassData, Wn as extractConsolationStructures, gt as extractCourtCardData, Pt as extractDrawData, mt as extractParticipantData, Wr as extractRoundRobinData, ft as extractScheduleData, P as findStructure, st as formatDate, q as formatMatchScore, Lt as formatPlayerEntry, ot as formatScore, ct as formatTime, pr as generateBackdrawPDF, dr as generateCompassDrawPDF, ur as generateConsolationDrawPDF, kt as generateCourtCardPDF, mr as generateDoubleEliminationPDF, ar as generateDrawPDF, ai as generateDrawSheetPDF, Wi as generateFactSheet, lr as generateFeedInDrawPDF, Gi as generateFromEventData, hr as generateLuckyDrawPDF, jt as generateMatchCardPDF, fr as generateMirroredDrawPDF, yt as generateOrderOfPlayPDF, yt as generateScheduleV2PDF, Dt as generatePlayerListPDF, Oi as generateReportPDF, li as generateSchedulePDF, yi as generateSequentialOOP, Ot as generateSignInSheetPDF, cr as generateSplitDrawPDF, sr as generateTraditionalDrawPDF, C as getCatalogPreset, Se as getDefaultFont, we as getDefaultPageConfig, de as getFactSheetTemplate, z as getPageRegions, g as getPreset, K as getRoundLabel, ee as listCatalogPresets, fe as listFactSheetTemplates, V as measureFooterHeight, rt as measureSeedingsHeight, te as mergeCatalogPreset, _ as mergePreset, U as nationality, H as participantName, ve as registerFont, Vn as renderCompassDraw, Gn as renderConsolationDraw, Kn as renderDoubleEliminationDraw, Ge as renderFooter, B as renderHeader, Zn as renderLuckyDraw, Yr as renderRoundRobinGroup, tt as renderSeedingsFooter, J as renderTraditionalDraw, mi as resolveCompositionConfig, ut as roundName, it as seedDisplay, xe as setDefaultFont, R as setFont, er as splitDraw, N as structureToDrawData };
|
|
4634
4643
|
|
|
4635
4644
|
//# sourceMappingURL=pdf-factory.js.map
|