@cieloazul310/jclub-financial-utils 0.0.1-alpha.2 → 0.0.1-alpha.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.
Files changed (79) hide show
  1. package/dist/all-fields.cjs +117 -92
  2. package/dist/all-fields.d.cts +9 -10
  3. package/dist/all-fields.d.cts.map +1 -1
  4. package/dist/all-fields.d.mts +9 -10
  5. package/dist/all-fields.d.mts.map +1 -1
  6. package/dist/all-fields.mjs +111 -85
  7. package/dist/all-fields.mjs.map +1 -1
  8. package/dist/{club-DConAzRZ.d.cts → club-CauHQ_x1.d.mts} +1 -1
  9. package/dist/club-CauHQ_x1.d.mts.map +1 -0
  10. package/dist/{club-CcV6Gouv.d.mts → club-CmkWZe16.d.cts} +1 -1
  11. package/dist/club-CmkWZe16.d.cts.map +1 -0
  12. package/dist/{clubs-BF9Y0ITz.mjs → clubs-BitYeQ3W.mjs} +1 -1
  13. package/dist/{clubs-BF9Y0ITz.mjs.map → clubs-BitYeQ3W.mjs.map} +1 -1
  14. package/dist/clubs.d.cts +1 -1
  15. package/dist/clubs.d.mts +1 -1
  16. package/dist/clubs.mjs +1 -1
  17. package/dist/data-BifrD3Hs.d.cts +180 -0
  18. package/dist/data-BifrD3Hs.d.cts.map +1 -0
  19. package/dist/data-CGTGYuvt.cjs +151 -0
  20. package/dist/data-PJ-fpqmg.mjs +104 -0
  21. package/dist/data-PJ-fpqmg.mjs.map +1 -0
  22. package/dist/data-rDHl-GBR.d.mts +180 -0
  23. package/dist/data-rDHl-GBR.d.mts.map +1 -0
  24. package/dist/data.cjs +43 -0
  25. package/dist/data.d.cts +9 -0
  26. package/dist/data.d.cts.map +1 -0
  27. package/dist/data.d.mts +9 -0
  28. package/dist/data.d.mts.map +1 -0
  29. package/dist/data.mjs +43 -0
  30. package/dist/data.mjs.map +1 -0
  31. package/dist/{dictionary-BzN32kPK.cjs → dictionary-BZ_zUPSy.cjs} +1 -1
  32. package/dist/{dictionary-LXXa4AIA.mjs → dictionary-D9CmvgCW.mjs} +2 -2
  33. package/dist/{dictionary-LXXa4AIA.mjs.map → dictionary-D9CmvgCW.mjs.map} +1 -1
  34. package/dist/dictionary.cjs +1 -1
  35. package/dist/dictionary.d.cts +1 -1
  36. package/dist/dictionary.d.mts +1 -1
  37. package/dist/dictionary.mjs +1 -1
  38. package/dist/index.cjs +21 -10
  39. package/dist/index.d.cts +6 -5
  40. package/dist/index.d.mts +6 -5
  41. package/dist/index.mjs +7 -5
  42. package/dist/types/club.d.cts +1 -1
  43. package/dist/types/club.d.mts +1 -1
  44. package/dist/types/data.cjs +10 -0
  45. package/dist/types/data.d.cts +2 -2
  46. package/dist/types/data.d.mts +2 -2
  47. package/dist/types/data.mjs +3 -1
  48. package/dist/types/index.cjs +10 -0
  49. package/dist/types/index.d.cts +4 -4
  50. package/dist/types/index.d.mts +4 -4
  51. package/dist/types/index.mjs +3 -1
  52. package/dist/types/year.d.cts +1 -1
  53. package/dist/types/year.d.mts +1 -1
  54. package/dist/{year-C02MQex_.d.mts → year-YIR3AeyZ.d.mts} +1 -1
  55. package/dist/year-YIR3AeyZ.d.mts.map +1 -0
  56. package/dist/{year-CSrJssAF.d.cts → year-uMcmlIjv.d.cts} +1 -1
  57. package/dist/year-uMcmlIjv.d.cts.map +1 -0
  58. package/dist/{years-6Ii8ZNVQ.mjs → years-BD3YalWA.mjs} +1 -1
  59. package/dist/{years-6Ii8ZNVQ.mjs.map → years-BD3YalWA.mjs.map} +1 -1
  60. package/dist/years.cjs +1 -1
  61. package/dist/years.d.cts +1 -1
  62. package/dist/years.d.mts +1 -1
  63. package/dist/years.mjs +1 -1
  64. package/package.json +3 -3
  65. package/dist/club-CcV6Gouv.d.mts.map +0 -1
  66. package/dist/club-DConAzRZ.d.cts.map +0 -1
  67. package/dist/data-Bs9dSa_0.d.cts +0 -158
  68. package/dist/data-Bs9dSa_0.d.cts.map +0 -1
  69. package/dist/data-c1kTjXyV.d.mts +0 -158
  70. package/dist/data-c1kTjXyV.d.mts.map +0 -1
  71. package/dist/year-0HxxyYb_.mjs +0 -1
  72. package/dist/year-C02MQex_.d.mts.map +0 -1
  73. package/dist/year-CSrJssAF.d.cts.map +0 -1
  74. package/dist/year-dUgWR1aM.cjs +0 -0
  75. /package/dist/{club-CCls7mTR.mjs → club-DMPe0Tct.mjs} +0 -0
  76. /package/dist/{club-CYJ2Any-.cjs → club-DtKevGOY.cjs} +0 -0
  77. /package/dist/{data-B_nPtYBn.cjs → year-C8iQUfNS.cjs} +0 -0
  78. /package/dist/{data-BI1o8Mn-.mjs → year-DlsIuRa9.mjs} +0 -0
  79. /package/dist/{years-DRN0nquf.cjs → years-BtLTGqsM.cjs} +0 -0
@@ -1,96 +1,121 @@
1
1
 
2
2
  //#region src/all-fields.ts
3
- const generalFields = [
4
- "fullname",
5
- "license",
6
- "rank",
7
- "points",
8
- "ppg",
9
- "elevation"
10
- ];
11
- const plFields = [
12
- "revenue",
13
- "expense",
14
- "op_profit",
15
- "no_rev",
16
- "no_exp",
17
- "ordinary_profit",
18
- "sp_rev",
19
- "sp_exp",
20
- "profit_before_tax",
21
- "tax",
22
- "profit",
23
- "related_revenue"
24
- ];
25
- const bsFields = [
26
- "assets",
27
- "curr_assets",
28
- "fixed_assets",
29
- "liabilities",
30
- "curr_liabilities",
31
- "fixed_liabilities",
32
- "net_worth",
33
- "capital_stock",
34
- "capital_surplus",
35
- "retained_earnings"
36
- ];
37
- const revenueFields = [
38
- "sponsor",
39
- "ticket",
40
- "broadcast",
41
- "academy_rev",
42
- "women_rev",
43
- "goods_rev",
44
- "transfer_rev",
45
- "transfer_int_rev",
46
- "transfer_dom_rev",
47
- "other_revs"
48
- ];
49
- const expenseFields = [
50
- "salary",
51
- "transfer_exp",
52
- "transfer_int_exp",
53
- "transfer_dom_exp",
54
- "game_exp",
55
- "team_exp",
56
- "academy_exp",
57
- "women_exp",
58
- "goods_exp",
59
- "other_cost",
60
- "manage_exp",
61
- "sga"
62
- ];
63
- const attdFields = [
64
- "all_attd",
65
- "all_games",
66
- "average_attd",
67
- "unit_price",
68
- "league_attd",
69
- "league_games",
70
- "leaguecup_attd",
71
- "leaguecup_games",
72
- "po_attd",
73
- "po_games",
74
- "acl_attd",
75
- "acl_games",
76
- "second_attd",
77
- "second_games"
78
- ];
79
- const allSortableFields = [
80
- ...plFields,
81
- ...bsFields,
82
- ...revenueFields,
83
- ...expenseFields,
84
- ...attdFields
85
- ];
86
- const allFields = [...generalFields, ...allSortableFields];
3
+ function getGeneral(datum) {
4
+ const { id, name, slug, fullname, year, license, category } = datum;
5
+ return {
6
+ id,
7
+ name,
8
+ slug,
9
+ fullname,
10
+ year,
11
+ license,
12
+ category
13
+ };
14
+ }
15
+ function getSeasonResult(datum) {
16
+ const { rank, points, ppg, elevation } = datum;
17
+ return {
18
+ rank,
19
+ points,
20
+ ppg,
21
+ elevation
22
+ };
23
+ }
24
+ function getPL(datum) {
25
+ const { revenue, expense, op_profit, no_rev, no_exp, ordinary_profit, sp_rev, sp_exp, profit_before_tax, tax, profit, related_revenue } = datum;
26
+ return {
27
+ revenue,
28
+ expense,
29
+ op_profit,
30
+ no_rev,
31
+ no_exp,
32
+ ordinary_profit,
33
+ sp_rev,
34
+ sp_exp,
35
+ profit_before_tax,
36
+ tax,
37
+ profit,
38
+ related_revenue
39
+ };
40
+ }
41
+ function getBS(datum) {
42
+ const { assets, curr_assets, fixed_assets, liabilities, curr_liabilities, fixed_liabilities, net_worth, capital_stock, capital_surplus, retained_earnings, profit } = datum;
43
+ return {
44
+ assets,
45
+ curr_assets,
46
+ fixed_assets,
47
+ liabilities,
48
+ curr_liabilities,
49
+ fixed_liabilities,
50
+ net_worth,
51
+ capital_stock,
52
+ capital_surplus,
53
+ retained_earnings,
54
+ profit
55
+ };
56
+ }
57
+ function getRevenue(datum) {
58
+ const { revenue, sponsor, ticket, broadcast, academy_rev, women_rev, goods_rev, transfer_rev, transfer_int_rev, transfer_dom_rev, other_revs, related_revenue } = datum;
59
+ return {
60
+ revenue,
61
+ sponsor,
62
+ ticket,
63
+ broadcast,
64
+ academy_rev,
65
+ women_rev,
66
+ goods_rev,
67
+ transfer_rev,
68
+ transfer_int_rev,
69
+ transfer_dom_rev,
70
+ other_revs,
71
+ related_revenue
72
+ };
73
+ }
74
+ function getExpense(datum) {
75
+ const { expense, general_exp, salary, transfer_exp, transfer_int_exp, transfer_dom_exp, game_exp, team_exp, academy_exp, women_exp, goods_exp, other_cost, manage_exp, sga } = datum;
76
+ return {
77
+ expense,
78
+ general_exp,
79
+ salary,
80
+ transfer_exp,
81
+ transfer_int_exp,
82
+ transfer_dom_exp,
83
+ game_exp,
84
+ team_exp,
85
+ academy_exp,
86
+ women_exp,
87
+ goods_exp,
88
+ other_cost,
89
+ manage_exp,
90
+ sga
91
+ };
92
+ }
93
+ function getAttd(datum) {
94
+ const { all_attd, all_games, average_attd, unit_price, league_attd, league_games, leaguecup_attd, leaguecup_games, po_attd, po_games, acl_attd, acl_games, second_attd, second_games, ticket } = datum;
95
+ return {
96
+ all_attd,
97
+ all_games,
98
+ average_attd,
99
+ unit_price,
100
+ league_attd,
101
+ league_games,
102
+ leaguecup_attd,
103
+ leaguecup_games,
104
+ po_attd,
105
+ po_games,
106
+ acl_attd,
107
+ acl_games,
108
+ second_attd,
109
+ second_games,
110
+ ticket
111
+ };
112
+ }
87
113
 
88
114
  //#endregion
89
- exports.allFields = allFields;
90
- exports.allSortableFields = allSortableFields;
91
- exports.attdFields = attdFields;
92
- exports.bsFields = bsFields;
93
- exports.expenseFields = expenseFields;
94
- exports.generalFields = generalFields;
95
- exports.plFields = plFields;
96
- exports.revenueFields = revenueFields;
115
+ exports.getAttd = getAttd;
116
+ exports.getBS = getBS;
117
+ exports.getExpense = getExpense;
118
+ exports.getGeneral = getGeneral;
119
+ exports.getPL = getPL;
120
+ exports.getRevenue = getRevenue;
121
+ exports.getSeasonResult = getSeasonResult;
@@ -1,14 +1,13 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-Bs9dSa_0.cjs";
1
+ import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-BifrD3Hs.cjs";
2
2
 
3
3
  //#region src/all-fields.d.ts
4
- declare const generalFields: (keyof General | keyof SeasonResult)[];
5
- declare const plFields: (keyof PL)[];
6
- declare const bsFields: (keyof BS)[];
7
- declare const revenueFields: (keyof Revenue)[];
8
- declare const expenseFields: (keyof Expense)[];
9
- declare const attdFields: (keyof Attd)[];
10
- declare const allSortableFields: ("revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "curr_assets" | "fixed_assets" | "assets" | "curr_liabilities" | "fixed_liabilities" | "liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games" | "all_attd" | "all_games" | "average_attd" | "unit_price")[];
11
- declare const allFields: (keyof FinancialDatum)[];
4
+ declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
5
+ declare function getSeasonResult<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in SeasonResultFields]: T[key] };
6
+ declare function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in PLFields]: T[key] };
7
+ declare function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in BSFields]: T[key] };
8
+ declare function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in RevenueFields]: T[key] };
9
+ declare function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in ExpenseFields]: T[key] };
10
+ declare function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in AttdFields]: T[key] };
12
11
  //#endregion
13
- export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
12
+ export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
14
13
  //# sourceMappingURL=all-fields.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-fields.d.cts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;cAWa,sBAAsB,gBAAgB;cAStC,iBAAiB;AATjB,cAuBA,QAhBZ,EAPkC,CAAA,MAuBL,EAvBqB,CAAA,EAAA;AAStC,cA0BA,aA1BmB,EAAA,CAAA,MA0BG,OA1BH,CAAA,EAAA;AAcnB,cAwBA,aAxBmB,EAAA,CAAA,MAwBG,OAxBH,CAAA,EAAA;AAYnB,cA0BA,UAfZ,EAXkC,CAAA,MA0BH,IA1BU,CAAA,EAAA;AAY7B,cA+BA,iBA/BsB,EAAO,CAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,QAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,QAAA,GAAA,QAAA,GAAA,mBAAA,GAAA,KAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,cAAA,GAAA,QAAA,GAAA,kBAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,eAAA,GAAA,iBAAA,GAAA,mBAAA,GAAA,SAAA,GAAA,QAAA,GAAA,WAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,QAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,aAAA,GAAA,UAAA,GAAA,UAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,YAAA,GAAA,KAAA,GAAA,aAAA,GAAA,cAAA,GAAA,gBAAA,GAAA,iBAAA,GAAA,SAAA,GAAA,UAAA,GAAA,UAAA,GAAA,WAAA,GAAA,aAAA,GAAA,cAAA,GAAA,UAAA,GAAA,WAAA,GAAA,cAAA,GAAA,YAAA,CAAA,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAA,MAwBD,cAxBK,CAAA,EAAA"}
1
+ {"version":3,"file":"all-fields.d.cts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;iBAYgB,qBAAqB,iBAAiB,+BAC7C,cAEC,gBAAgB,EAAE,MAH5B;AAAqC,iBASrB,eATqB,CAAA,UAUzB,cAVyB,GAUR,sBAVQ,CAAA,CAAA,KAAA,EAY5B,CAZ4B,CAAA,EAAA,UAc3B,kBAd4C,GAcvB,CAduB,CAcrB,GAdqB,CAAA,EAC7C;AAEC,iBAiBM,KAjBN,CAAA,UAiBsB,cAjBtB,GAiBuC,sBAjBvC,CAAA,CAAA,KAAA,EAkBD,CAlBC,CAAA,EAAA,UAoBA,QApBgB,GAoBL,CApBK,CAoBH,GApBG,CAAA,EAAE;AAAG,iBAoDf,KApDe,CAAA,UAoDC,cApDD,GAoDkB,sBApDlB,CAAA,CAAA,KAAA,EAqDtB,CArDsB,CAAA,EAAA,UAuDrB,QAjDM,GAiDK,CAjDU,CAiDR,GAjDQ,CAAA,EACnB;AAAiB,iBA8Eb,UA9Ea,CAAA,UA8EQ,cA9ER,GA8EyB,sBA9EzB,CAAA,CAAA,KAAA,EA+EpB,CA/EoB,CAAA,EAAA,UAiFnB,aA/ED,GA+EiB,CA/EjB,CA+EmB,GA/EnB,CAAA,EAEC;AAAqB,iBA6Gf,UA7Ge,CAAA,UA6GM,cA7GN,GA6GuB,sBA7GvB,CAAA,CAAA,KAAA,EA8GtB,CA9GsB,CAAA,EAAA,UAgHrB,aAhHuB,GAgHP,CAhHO,CAgHL,GAhHK,CAAA,EAAG;AAMpB,iBA8IA,OA9IK,CAAA,UA8Ia,cA9Ib,GA8I8B,sBA9I9B,CAAA,CAAA,KAAA,EA+IZ,CA/IY,CAAA,EAAA,UAiJX,UAjJsB,GAiJT,CAjJS,CAiJP,GAjJO,CAAA,EAAiB"}
@@ -1,14 +1,13 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-c1kTjXyV.mjs";
1
+ import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-rDHl-GBR.mjs";
2
2
 
3
3
  //#region src/all-fields.d.ts
4
- declare const generalFields: (keyof General | keyof SeasonResult)[];
5
- declare const plFields: (keyof PL)[];
6
- declare const bsFields: (keyof BS)[];
7
- declare const revenueFields: (keyof Revenue)[];
8
- declare const expenseFields: (keyof Expense)[];
9
- declare const attdFields: (keyof Attd)[];
10
- declare const allSortableFields: ("revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "curr_assets" | "fixed_assets" | "assets" | "curr_liabilities" | "fixed_liabilities" | "liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games" | "all_attd" | "all_games" | "average_attd" | "unit_price")[];
11
- declare const allFields: (keyof FinancialDatum)[];
4
+ declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
5
+ declare function getSeasonResult<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in SeasonResultFields]: T[key] };
6
+ declare function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in PLFields]: T[key] };
7
+ declare function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in BSFields]: T[key] };
8
+ declare function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in RevenueFields]: T[key] };
9
+ declare function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in ExpenseFields]: T[key] };
10
+ declare function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in AttdFields]: T[key] };
12
11
  //#endregion
13
- export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
12
+ export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
14
13
  //# sourceMappingURL=all-fields.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-fields.d.mts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;cAWa,sBAAsB,gBAAgB;cAStC,iBAAiB;AATjB,cAuBA,QAhBZ,EAPkC,CAAA,MAuBL,EAvBqB,CAAA,EAAA;AAStC,cA0BA,aA1BmB,EAAA,CAAA,MA0BG,OA1BH,CAAA,EAAA;AAcnB,cAwBA,aAxBmB,EAAA,CAAA,MAwBG,OAxBH,CAAA,EAAA;AAYnB,cA0BA,UA1BsB,EAAA,CAAA,MA0BH,IA1BU,CAAA,EAAA;AAY7B,cA+BA,iBA/BsB,EAAO,CAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,QAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,QAAA,GAAA,QAAA,GAAA,mBAAA,GAAA,KAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,cAAA,GAAA,QAAA,GAAA,kBAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,eAAA,GAAA,iBAAA,GAAA,mBAAA,GAAA,SAAA,GAAA,QAAA,GAAA,WAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,QAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,aAAA,GAAA,UAAA,GAAA,UAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,YAAA,GAAA,KAAA,GAAA,aAAA,GAAA,cAAA,GAAA,gBAAA,GAAA,iBAAA,GAAA,SAAA,GAAA,UAAA,GAAA,UAAA,GAAA,WAAA,GAAA,aAAA,GAAA,cAAA,GAAA,UAAA,GAAA,WAAA,GAAA,cAAA,GAAA,YAAA,CAAA,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAI,MAwBL,cAxBK,CAAA,EAAA"}
1
+ {"version":3,"file":"all-fields.d.mts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;iBAYgB,qBAAqB,iBAAiB,+BAC7C,cAEC,gBAAgB,EAAE,MAH5B;AAAqC,iBASrB,eATqB,CAAA,UAUzB,cAVyB,GAUR,sBAVQ,CAAA,CAAA,KAAA,EAY5B,CAZ4B,CAAA,EAAA,UAc3B,kBAd4C,GAcvB,CAduB,CAcrB,GAdqB,CAAA,EAC7C;AAEC,iBAiBM,KAjBN,CAAA,UAiBsB,cAjBtB,GAiBuC,sBAjBvC,CAAA,CAAA,KAAA,EAkBD,CAlBC,CAAA,EAAA,UAoBA,QApBgB,GAoBL,CApBK,CAoBH,GApBG,CAAA,EAAE;AAAG,iBAoDf,KApDe,CAAA,UAoDC,cApDD,GAoDkB,sBApDlB,CAAA,CAAA,KAAA,EAqDtB,CArDsB,CAAA,EAAA,UAuDrB,QAjDM,GAiDK,CAjDU,CAiDR,GAjDQ,CAAA,EACnB;AAAiB,iBA8Eb,UA9Ea,CAAA,UA8EQ,cA9ER,GA8EyB,sBA9EzB,CAAA,CAAA,KAAA,EA+EpB,CA/EoB,CAAA,EAAA,UAiFnB,aA/ED,GA+EiB,CA/EjB,CA+EmB,GA/EnB,CAAA,EAEC;AAAqB,iBA6Gf,UA7Ge,CAAA,UA6GM,cA7GN,GA6GuB,sBA7GvB,CAAA,CAAA,KAAA,EA8GtB,CA9GsB,CAAA,EAAA,UAgHrB,aAhHuB,GAgHP,CAhHO,CAgHL,GAhHK,CAAA,EAAG;AAMpB,iBA8IA,OA9IK,CAAA,UA8Ia,cA9Ib,GA8I8B,sBA9I9B,CAAA,CAAA,KAAA,EA+IZ,CA/IY,CAAA,EAAA,UAiJX,UAjJsB,GAiJT,CAjJS,CAiJP,GAjJO,CAAA,EAAiB"}
@@ -1,89 +1,115 @@
1
1
  //#region src/all-fields.ts
2
- const generalFields = [
3
- "fullname",
4
- "license",
5
- "rank",
6
- "points",
7
- "ppg",
8
- "elevation"
9
- ];
10
- const plFields = [
11
- "revenue",
12
- "expense",
13
- "op_profit",
14
- "no_rev",
15
- "no_exp",
16
- "ordinary_profit",
17
- "sp_rev",
18
- "sp_exp",
19
- "profit_before_tax",
20
- "tax",
21
- "profit",
22
- "related_revenue"
23
- ];
24
- const bsFields = [
25
- "assets",
26
- "curr_assets",
27
- "fixed_assets",
28
- "liabilities",
29
- "curr_liabilities",
30
- "fixed_liabilities",
31
- "net_worth",
32
- "capital_stock",
33
- "capital_surplus",
34
- "retained_earnings"
35
- ];
36
- const revenueFields = [
37
- "sponsor",
38
- "ticket",
39
- "broadcast",
40
- "academy_rev",
41
- "women_rev",
42
- "goods_rev",
43
- "transfer_rev",
44
- "transfer_int_rev",
45
- "transfer_dom_rev",
46
- "other_revs"
47
- ];
48
- const expenseFields = [
49
- "salary",
50
- "transfer_exp",
51
- "transfer_int_exp",
52
- "transfer_dom_exp",
53
- "game_exp",
54
- "team_exp",
55
- "academy_exp",
56
- "women_exp",
57
- "goods_exp",
58
- "other_cost",
59
- "manage_exp",
60
- "sga"
61
- ];
62
- const attdFields = [
63
- "all_attd",
64
- "all_games",
65
- "average_attd",
66
- "unit_price",
67
- "league_attd",
68
- "league_games",
69
- "leaguecup_attd",
70
- "leaguecup_games",
71
- "po_attd",
72
- "po_games",
73
- "acl_attd",
74
- "acl_games",
75
- "second_attd",
76
- "second_games"
77
- ];
78
- const allSortableFields = [
79
- ...plFields,
80
- ...bsFields,
81
- ...revenueFields,
82
- ...expenseFields,
83
- ...attdFields
84
- ];
85
- const allFields = [...generalFields, ...allSortableFields];
2
+ function getGeneral(datum) {
3
+ const { id, name, slug, fullname, year, license, category } = datum;
4
+ return {
5
+ id,
6
+ name,
7
+ slug,
8
+ fullname,
9
+ year,
10
+ license,
11
+ category
12
+ };
13
+ }
14
+ function getSeasonResult(datum) {
15
+ const { rank, points, ppg, elevation } = datum;
16
+ return {
17
+ rank,
18
+ points,
19
+ ppg,
20
+ elevation
21
+ };
22
+ }
23
+ function getPL(datum) {
24
+ const { revenue, expense, op_profit, no_rev, no_exp, ordinary_profit, sp_rev, sp_exp, profit_before_tax, tax, profit, related_revenue } = datum;
25
+ return {
26
+ revenue,
27
+ expense,
28
+ op_profit,
29
+ no_rev,
30
+ no_exp,
31
+ ordinary_profit,
32
+ sp_rev,
33
+ sp_exp,
34
+ profit_before_tax,
35
+ tax,
36
+ profit,
37
+ related_revenue
38
+ };
39
+ }
40
+ function getBS(datum) {
41
+ const { assets, curr_assets, fixed_assets, liabilities, curr_liabilities, fixed_liabilities, net_worth, capital_stock, capital_surplus, retained_earnings, profit } = datum;
42
+ return {
43
+ assets,
44
+ curr_assets,
45
+ fixed_assets,
46
+ liabilities,
47
+ curr_liabilities,
48
+ fixed_liabilities,
49
+ net_worth,
50
+ capital_stock,
51
+ capital_surplus,
52
+ retained_earnings,
53
+ profit
54
+ };
55
+ }
56
+ function getRevenue(datum) {
57
+ const { revenue, sponsor, ticket, broadcast, academy_rev, women_rev, goods_rev, transfer_rev, transfer_int_rev, transfer_dom_rev, other_revs, related_revenue } = datum;
58
+ return {
59
+ revenue,
60
+ sponsor,
61
+ ticket,
62
+ broadcast,
63
+ academy_rev,
64
+ women_rev,
65
+ goods_rev,
66
+ transfer_rev,
67
+ transfer_int_rev,
68
+ transfer_dom_rev,
69
+ other_revs,
70
+ related_revenue
71
+ };
72
+ }
73
+ function getExpense(datum) {
74
+ const { expense, general_exp, salary, transfer_exp, transfer_int_exp, transfer_dom_exp, game_exp, team_exp, academy_exp, women_exp, goods_exp, other_cost, manage_exp, sga } = datum;
75
+ return {
76
+ expense,
77
+ general_exp,
78
+ salary,
79
+ transfer_exp,
80
+ transfer_int_exp,
81
+ transfer_dom_exp,
82
+ game_exp,
83
+ team_exp,
84
+ academy_exp,
85
+ women_exp,
86
+ goods_exp,
87
+ other_cost,
88
+ manage_exp,
89
+ sga
90
+ };
91
+ }
92
+ function getAttd(datum) {
93
+ const { all_attd, all_games, average_attd, unit_price, league_attd, league_games, leaguecup_attd, leaguecup_games, po_attd, po_games, acl_attd, acl_games, second_attd, second_games, ticket } = datum;
94
+ return {
95
+ all_attd,
96
+ all_games,
97
+ average_attd,
98
+ unit_price,
99
+ league_attd,
100
+ league_games,
101
+ leaguecup_attd,
102
+ leaguecup_games,
103
+ po_attd,
104
+ po_games,
105
+ acl_attd,
106
+ acl_games,
107
+ second_attd,
108
+ second_games,
109
+ ticket
110
+ };
111
+ }
86
112
 
87
113
  //#endregion
88
- export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
114
+ export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
89
115
  //# sourceMappingURL=all-fields.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-fields.mjs","names":["generalFields: (keyof General | keyof SeasonResult)[]","plFields: (keyof PL)[]","bsFields: (keyof BS)[]","revenueFields: (keyof Revenue)[]","expenseFields: (keyof Expense)[]","attdFields: (keyof Attd)[]","allFields: (keyof FinancialDatum)[]"],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n General,\n SeasonResult,\n PL,\n BS,\n Revenue,\n Expense,\n Attd,\n FinancialDatum,\n} from \"./types/data\";\n\nexport const generalFields: (keyof General | keyof SeasonResult)[] = [\n \"fullname\",\n \"license\",\n \"rank\",\n \"points\",\n \"ppg\",\n \"elevation\",\n];\n\nexport const plFields: (keyof PL)[] = [\n \"revenue\",\n \"expense\",\n \"op_profit\",\n \"no_rev\",\n \"no_exp\",\n \"ordinary_profit\",\n \"sp_rev\",\n \"sp_exp\",\n \"profit_before_tax\",\n \"tax\",\n \"profit\",\n \"related_revenue\",\n];\nexport const bsFields: (keyof BS)[] = [\n \"assets\",\n \"curr_assets\",\n \"fixed_assets\",\n \"liabilities\",\n \"curr_liabilities\",\n \"fixed_liabilities\",\n \"net_worth\",\n \"capital_stock\",\n \"capital_surplus\",\n \"retained_earnings\",\n];\nexport const revenueFields: (keyof Revenue)[] = [\n \"sponsor\",\n \"ticket\",\n \"broadcast\",\n \"academy_rev\",\n \"women_rev\",\n \"goods_rev\",\n \"transfer_rev\",\n \"transfer_int_rev\",\n \"transfer_dom_rev\",\n \"other_revs\",\n];\nexport const expenseFields: (keyof Expense)[] = [\n \"salary\",\n \"transfer_exp\",\n \"transfer_int_exp\",\n \"transfer_dom_exp\",\n \"game_exp\",\n \"team_exp\",\n \"academy_exp\",\n \"women_exp\",\n \"goods_exp\",\n \"other_cost\",\n \"manage_exp\",\n \"sga\",\n];\nexport const attdFields: (keyof Attd)[] = [\n \"all_attd\",\n \"all_games\",\n \"average_attd\",\n \"unit_price\",\n \"league_attd\",\n \"league_games\",\n \"leaguecup_attd\",\n \"leaguecup_games\",\n \"po_attd\",\n \"po_games\",\n \"acl_attd\",\n \"acl_games\",\n \"second_attd\",\n \"second_games\",\n];\n\nexport const allSortableFields = [\n ...plFields,\n ...bsFields,\n ...revenueFields,\n ...expenseFields,\n ...attdFields,\n];\nexport const allFields: (keyof FinancialDatum)[] = [\n ...generalFields,\n ...allSortableFields,\n];\n"],"mappings":";AAWA,MAAaA,gBAAwD;CACnE;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAaC,WAAyB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,WAAyB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,gBAAmC;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,gBAAmC;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,aAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,oBAAoB;CAC/B,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AACD,MAAaC,YAAsC,CACjD,GAAG,eACH,GAAG,kBACJ"}
1
+ {"version":3,"file":"all-fields.mjs","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n FinancialDatum,\n ExtendedFinancialDatum,\n GeneralFields,\n SeasonResultFields,\n PLFields,\n BSFields,\n RevenueFields,\n ExpenseFields,\n AttdFields,\n} from \"./types/data\";\n\nexport function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in GeneralFields]: T[key];\n} {\n const { id, name, slug, fullname, year, license, category } = datum;\n return { id, name, slug, fullname, year, license, category };\n}\n\nexport function getSeasonResult<\n T extends FinancialDatum | ExtendedFinancialDatum,\n>(\n datum: T,\n): {\n [key in SeasonResultFields]: T[key];\n} {\n const { rank, points, ppg, elevation } = datum;\n return { rank, points, ppg, elevation };\n}\n\nexport function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in PLFields]: T[key];\n} {\n const {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n } = datum;\n return {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n };\n}\n\nexport function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in BSFields]: T[key];\n} {\n const {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n } = datum;\n return {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n };\n}\n\nexport function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in RevenueFields]: T[key];\n} {\n const {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n } = datum;\n return {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n };\n}\n\nexport function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in ExpenseFields]: T[key];\n} {\n const {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n } = datum;\n return {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n };\n}\n\nexport function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in AttdFields]: T[key];\n} {\n const {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n } = datum;\n return {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n };\n}\n"],"mappings":";AAYA,SAAgB,WACd,OAGA;CACA,MAAM,EAAE,IAAI,MAAM,MAAM,UAAU,MAAM,SAAS,aAAa;AAC9D,QAAO;EAAE;EAAI;EAAM;EAAM;EAAU;EAAM;EAAS;EAAU;;AAG9D,SAAgB,gBAGd,OAGA;CACA,MAAM,EAAE,MAAM,QAAQ,KAAK,cAAc;AACzC,QAAO;EAAE;EAAM;EAAQ;EAAK;EAAW;;AAGzC,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,WACA,QACA,QACA,iBACA,QACA,QACA,mBACA,KACA,QACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,QACA,aACA,cACA,aACA,kBACA,mBACA,WACA,eACA,iBACA,mBACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,QACA,WACA,aACA,WACA,WACA,cACA,kBACA,kBACA,YACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,aACA,QACA,cACA,kBACA,kBACA,UACA,UACA,aACA,WACA,WACA,YACA,YACA,QACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,QACd,OAGA;CACA,MAAM,EACJ,UACA,WACA,cACA,YACA,aACA,cACA,gBACA,iBACA,SACA,UACA,UACA,WACA,aACA,cACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -17,4 +17,4 @@ type ClubInfo = {
17
17
  };
18
18
  //#endregion
19
19
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-DConAzRZ.d.cts.map
20
+ //# sourceMappingURL=club-CauHQ_x1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-CauHQ_x1.d.mts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
@@ -17,4 +17,4 @@ type ClubInfo = {
17
17
  };
18
18
  //#endregion
19
19
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-CcV6Gouv.d.mts.map
20
+ //# sourceMappingURL=club-CmkWZe16.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-CmkWZe16.d.cts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
@@ -890,4 +890,4 @@ function getClubsByCategory(category) {
890
890
 
891
891
  //#endregion
892
892
  export { getClubBySlug as n, getClubsByCategory as r, getAllClubs as t };
893
- //# sourceMappingURL=clubs-BF9Y0ITz.mjs.map
893
+ //# sourceMappingURL=clubs-BitYeQ3W.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"clubs-BF9Y0ITz.mjs","names":["clubs"],"sources":["../src/data/clubs.json","../src/clubs.ts"],"sourcesContent":["","import type { ClubInfo } from \"./types\";\nimport clubs from \"./data/clubs.json\";\n\nexport function getAllClubs() {\n return clubs as ClubInfo[];\n}\n\nexport function getClubBySlug(slug: string) {\n const clubs = getAllClubs();\n return clubs.find((club) => club.slug === slug);\n}\n\nexport function getClubsByCategory(category: string) {\n const clubs = getAllClubs();\n return clubs.filter((club) =>\n [\"J1\", \"J2\", \"J3\"].includes(category)\n ? club.category === category\n : [\"JFL\"].includes(club.category),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,SAAgB,cAAc;AAC5B,QAAOA;;AAGT,SAAgB,cAAc,MAAc;AAE1C,QADc,aAAa,CACd,MAAM,SAAS,KAAK,SAAS,KAAK;;AAGjD,SAAgB,mBAAmB,UAAkB;AAEnD,QADc,aAAa,CACd,QAAQ,SACnB;EAAC;EAAM;EAAM;EAAK,CAAC,SAAS,SAAS,GACjC,KAAK,aAAa,WAClB,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CACpC"}
1
+ {"version":3,"file":"clubs-BitYeQ3W.mjs","names":["clubs"],"sources":["../src/data/clubs.json","../src/clubs.ts"],"sourcesContent":["","import type { ClubInfo } from \"./types\";\nimport clubs from \"./data/clubs.json\";\n\nexport function getAllClubs() {\n return clubs as ClubInfo[];\n}\n\nexport function getClubBySlug(slug: string) {\n const clubs = getAllClubs();\n return clubs.find((club) => club.slug === slug);\n}\n\nexport function getClubsByCategory(category: string) {\n const clubs = getAllClubs();\n return clubs.filter((club) =>\n [\"J1\", \"J2\", \"J3\"].includes(category)\n ? club.category === category\n : [\"JFL\"].includes(club.category),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,SAAgB,cAAc;AAC5B,QAAOA;;AAGT,SAAgB,cAAc,MAAc;AAE1C,QADc,aAAa,CACd,MAAM,SAAS,KAAK,SAAS,KAAK;;AAGjD,SAAgB,mBAAmB,UAAkB;AAEnD,QADc,aAAa,CACd,QAAQ,SACnB;EAAC;EAAM;EAAM;EAAK,CAAC,SAAS,SAAS,GACjC,KAAK,aAAa,WAClB,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CACpC"}
package/dist/clubs.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ClubInfo } from "./club-DConAzRZ.cjs";
1
+ import { t as ClubInfo } from "./club-CmkWZe16.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/clubs.d.ts
package/dist/clubs.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ClubInfo } from "./club-CcV6Gouv.mjs";
1
+ import { t as ClubInfo } from "./club-CauHQ_x1.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/clubs.d.ts
package/dist/clubs.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BF9Y0ITz.mjs";
1
+ import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BitYeQ3W.mjs";
2
2
 
3
3
  export { getAllClubs, getClubBySlug, getClubsByCategory };