catchup-library-web 1.0.2 → 1.0.3

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.mjs CHANGED
@@ -5167,6 +5167,2111 @@ var BlueVerticalDividerLine = ({ opacity }) => {
5167
5167
  };
5168
5168
  var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
5169
5169
 
5170
+ // src/components/boxes/SelectionBox.tsx
5171
+ import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
5172
+ var SelectionBox = ({
5173
+ optionList,
5174
+ selectedId,
5175
+ handleSelectOnClick
5176
+ }) => {
5177
+ return /* @__PURE__ */ jsx38("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx38(
5178
+ "div",
5179
+ {
5180
+ className: `${option.id === selectedId ? "border-catchup-blue-400" : "border-catchup-gray-100 hover:border-catchup-blue-500"} border-2 rounded-catchup-xlarge py-3 px-8 cursor-pointer duration-300 transition-all`,
5181
+ onClick: () => {
5182
+ handleSelectOnClick(option.id);
5183
+ },
5184
+ children: /* @__PURE__ */ jsxs29(
5185
+ "div",
5186
+ {
5187
+ className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
5188
+ children: [
5189
+ /* @__PURE__ */ jsx38("div", { children: option.icon }),
5190
+ /* @__PURE__ */ jsxs29("div", { className: "flex-1 flex flex-col items-center", children: [
5191
+ /* @__PURE__ */ jsx38("p", { children: option.text }),
5192
+ option.subText ? /* @__PURE__ */ jsxs29("p", { className: "text-md", children: [
5193
+ "(",
5194
+ option.subText,
5195
+ ")"
5196
+ ] }) : null
5197
+ ] })
5198
+ ]
5199
+ }
5200
+ )
5201
+ },
5202
+ index
5203
+ )) });
5204
+ };
5205
+ var SelectionBox_default = SelectionBox;
5206
+
5207
+ // src/components/boxes/SelectionCheckbox.tsx
5208
+ import { jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
5209
+ var SelectionCheckbox = ({
5210
+ optionList,
5211
+ selectedIdList,
5212
+ handleSelectOnClick,
5213
+ handleRemoveOnClick
5214
+ }) => {
5215
+ return /* @__PURE__ */ jsx39("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx39(
5216
+ "div",
5217
+ {
5218
+ className: `${selectedIdList.findIndex(
5219
+ (selectedId) => selectedId === option.id
5220
+ ) > -1 ? "border-catchup-blue-400" : "border-catchup-gray-100 hover:border-catchup-blue-500"} border-2 rounded-catchup-xlarge py-3 px-6 cursor-pointer duration-300 transition-all`,
5221
+ onClick: () => {
5222
+ if (selectedIdList.findIndex(
5223
+ (selectedId) => selectedId === option.id
5224
+ ) === -1) {
5225
+ handleSelectOnClick(option.id);
5226
+ } else {
5227
+ handleRemoveOnClick(option.id);
5228
+ }
5229
+ },
5230
+ children: /* @__PURE__ */ jsxs30(
5231
+ "div",
5232
+ {
5233
+ className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
5234
+ (selectedId) => selectedId === option.id
5235
+ ) > -1 ? "opacity-100" : "opacity-50"}`,
5236
+ children: [
5237
+ /* @__PURE__ */ jsx39("div", { children: /* @__PURE__ */ jsx39(
5238
+ BaseImage_default,
5239
+ {
5240
+ src: selectedIdList.findIndex(
5241
+ (selectedId) => selectedId === option.id
5242
+ ) > -1 ? "/icons/checkbox.png" : "/icons/checkbox-empty.png",
5243
+ alt: "checkbox",
5244
+ size: "small"
5245
+ }
5246
+ ) }),
5247
+ /* @__PURE__ */ jsx39("div", { className: "flex-1", children: /* @__PURE__ */ jsx39("p", { children: option.text }) })
5248
+ ]
5249
+ }
5250
+ )
5251
+ },
5252
+ index
5253
+ )) });
5254
+ };
5255
+ var SelectionCheckbox_default = SelectionCheckbox;
5256
+
5257
+ // src/utilization/AuthorizationUtilization.ts
5258
+ var parseJwt = (token) => {
5259
+ var base64Url = token.split(".")[1];
5260
+ var base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
5261
+ var jsonPayload = decodeURIComponent(
5262
+ window.atob(base64).split("").map(function(c) {
5263
+ return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
5264
+ }).join("")
5265
+ );
5266
+ return JSON.parse(jsonPayload);
5267
+ };
5268
+
5269
+ // src/utilization/ManagementUtilization.ts
5270
+ var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
5271
+ const brandDTOOptionList = [];
5272
+ if (userProfile) {
5273
+ for (const branchDTO of userProfile.branchDTOList) {
5274
+ const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
5275
+ if (brandDTOOptionList.findIndex(
5276
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5277
+ ) === -1) {
5278
+ brandDTOOptionList.push({
5279
+ value: currentBrand.id,
5280
+ fullValue: currentBrand,
5281
+ text: currentBrand.name
5282
+ });
5283
+ }
5284
+ }
5285
+ for (const gradeDTO of userProfile.gradeDTOList) {
5286
+ const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
5287
+ if (brandDTOOptionList.findIndex(
5288
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5289
+ ) === -1) {
5290
+ brandDTOOptionList.push({
5291
+ value: currentBrand.id,
5292
+ fullValue: currentBrand,
5293
+ text: currentBrand.name
5294
+ });
5295
+ }
5296
+ }
5297
+ for (const seasonDTO of userProfile.seasonDTOList) {
5298
+ const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
5299
+ if (brandDTOOptionList.findIndex(
5300
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5301
+ ) === -1) {
5302
+ brandDTOOptionList.push({
5303
+ value: currentBrand.id,
5304
+ fullValue: currentBrand,
5305
+ text: currentBrand.name
5306
+ });
5307
+ }
5308
+ }
5309
+ for (const institutionDTO of userProfile.institutionDTOList) {
5310
+ const currentBrand = institutionDTO.campusDTO.brandDTO;
5311
+ if (brandDTOOptionList.findIndex(
5312
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5313
+ ) === -1) {
5314
+ brandDTOOptionList.push({
5315
+ value: currentBrand.id,
5316
+ fullValue: currentBrand,
5317
+ text: currentBrand.name
5318
+ });
5319
+ }
5320
+ }
5321
+ for (const campusDTO of userProfile.campusDTOList) {
5322
+ const currentBrand = campusDTO.brandDTO;
5323
+ if (brandDTOOptionList.findIndex(
5324
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5325
+ ) === -1) {
5326
+ brandDTOOptionList.push({
5327
+ value: currentBrand.id,
5328
+ fullValue: currentBrand,
5329
+ text: currentBrand.name
5330
+ });
5331
+ }
5332
+ }
5333
+ for (const brandDTO of userProfile.brandDTOList) {
5334
+ const currentBrand = brandDTO;
5335
+ if (brandDTOOptionList.findIndex(
5336
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5337
+ ) === -1) {
5338
+ brandDTOOptionList.push({
5339
+ value: currentBrand.id,
5340
+ fullValue: currentBrand,
5341
+ text: currentBrand.name
5342
+ });
5343
+ }
5344
+ }
5345
+ }
5346
+ return brandDTOOptionList;
5347
+ };
5348
+ var retrieveBrandDTOOptionList = (brandDTOList) => {
5349
+ return brandDTOList.map((brandDTO) => ({
5350
+ value: brandDTO.id,
5351
+ text: brandDTO.name,
5352
+ fullValue: brandDTO
5353
+ }));
5354
+ };
5355
+ var retrieveCampusDTOOptionList = (campusDTOList) => {
5356
+ return campusDTOList.map((campusDTO) => ({
5357
+ value: campusDTO.id,
5358
+ text: `${campusDTO.name} (${campusDTO.brandDTO.name})`,
5359
+ fullValue: campusDTO
5360
+ }));
5361
+ };
5362
+ var retrieveInstitutionDTOOptionList = (institutionDTOList) => {
5363
+ return institutionDTOList.map((institutionDTO) => ({
5364
+ value: institutionDTO.id,
5365
+ text: `${institutionDTO.name} (${institutionDTO.campusDTO.name} - ${institutionDTO.campusDTO.brandDTO.name})`,
5366
+ fullValue: institutionDTO
5367
+ }));
5368
+ };
5369
+ var retrieveSeasonDTOOptionList = (seasonDTOList) => {
5370
+ return seasonDTOList.map((seasonDTO) => ({
5371
+ value: seasonDTO.id,
5372
+ text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name})`,
5373
+ fullValue: seasonDTO
5374
+ // text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5375
+ }));
5376
+ };
5377
+ var retrieveGradeDTOOptionList = (gradeDTOList) => {
5378
+ return gradeDTOList.map((gradeDTO) => ({
5379
+ value: gradeDTO.id,
5380
+ text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.name})`,
5381
+ fullValue: gradeDTO
5382
+ // text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} ${gradeDTO.seasonDTO.institutionDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5383
+ }));
5384
+ };
5385
+ var retrieveBranchDTOOptionList = (branchDTOList) => {
5386
+ return branchDTOList.map((branchDTO) => ({
5387
+ value: branchDTO.id,
5388
+ text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name})`,
5389
+ fullValue: branchDTO
5390
+ // text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5391
+ }));
5392
+ };
5393
+ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) => {
5394
+ const campusDTOOptionList = [];
5395
+ if (userProfile) {
5396
+ if (selectedBrandId) {
5397
+ for (const branchDTO of userProfile.branchDTOList) {
5398
+ const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
5399
+ if (campusDTOOptionList.findIndex(
5400
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5401
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5402
+ campusDTOOptionList.push({
5403
+ value: currentCampus.id,
5404
+ fullValue: currentCampus,
5405
+ text: currentCampus.name
5406
+ });
5407
+ }
5408
+ }
5409
+ for (const gradeDTO of userProfile.gradeDTOList) {
5410
+ const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
5411
+ if (campusDTOOptionList.findIndex(
5412
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5413
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5414
+ campusDTOOptionList.push({
5415
+ value: currentCampus.id,
5416
+ fullValue: currentCampus,
5417
+ text: currentCampus.name
5418
+ });
5419
+ }
5420
+ }
5421
+ for (const seasonDTO of userProfile.seasonDTOList) {
5422
+ const currentCampus = seasonDTO.institutionDTO.campusDTO;
5423
+ if (campusDTOOptionList.findIndex(
5424
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5425
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5426
+ campusDTOOptionList.push({
5427
+ value: currentCampus.id,
5428
+ fullValue: currentCampus,
5429
+ text: currentCampus.name
5430
+ });
5431
+ }
5432
+ }
5433
+ for (const institutionDTO of userProfile.institutionDTOList) {
5434
+ const currentCampus = institutionDTO.campusDTO;
5435
+ if (campusDTOOptionList.findIndex(
5436
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5437
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5438
+ campusDTOOptionList.push({
5439
+ value: currentCampus.id,
5440
+ fullValue: currentCampus,
5441
+ text: currentCampus.name
5442
+ });
5443
+ }
5444
+ }
5445
+ for (const campusDTO of userProfile.campusDTOList) {
5446
+ const currentCampus = campusDTO;
5447
+ if (campusDTOOptionList.findIndex(
5448
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5449
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5450
+ campusDTOOptionList.push({
5451
+ value: currentCampus.id,
5452
+ fullValue: currentCampus,
5453
+ text: currentCampus.name
5454
+ });
5455
+ }
5456
+ }
5457
+ return campusDTOOptionList;
5458
+ }
5459
+ }
5460
+ return [];
5461
+ };
5462
+ var retrieveInstitutionDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedCampusId) => {
5463
+ const institutionDTOOptionList = [];
5464
+ if (userProfile) {
5465
+ if (selectedCampusId) {
5466
+ for (const branchDTO of userProfile.branchDTOList) {
5467
+ const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
5468
+ if (institutionDTOOptionList.findIndex(
5469
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5470
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5471
+ institutionDTOOptionList.push({
5472
+ value: currentInstitution.id,
5473
+ fullValue: currentInstitution,
5474
+ text: currentInstitution.name
5475
+ });
5476
+ }
5477
+ }
5478
+ for (const gradeDTO of userProfile.gradeDTOList) {
5479
+ const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
5480
+ if (institutionDTOOptionList.findIndex(
5481
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5482
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5483
+ institutionDTOOptionList.push({
5484
+ value: currentInstitution.id,
5485
+ fullValue: currentInstitution,
5486
+ text: currentInstitution.name
5487
+ });
5488
+ }
5489
+ }
5490
+ for (const seasonDTO of userProfile.seasonDTOList) {
5491
+ const currentInstitution = seasonDTO.institutionDTO;
5492
+ if (institutionDTOOptionList.findIndex(
5493
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5494
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5495
+ institutionDTOOptionList.push({
5496
+ value: currentInstitution.id,
5497
+ fullValue: currentInstitution,
5498
+ text: currentInstitution.name
5499
+ });
5500
+ }
5501
+ }
5502
+ for (const institutionDTO of userProfile.institutionDTOList) {
5503
+ const currentInstitution = institutionDTO;
5504
+ if (institutionDTOOptionList.findIndex(
5505
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5506
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5507
+ institutionDTOOptionList.push({
5508
+ value: currentInstitution.id,
5509
+ fullValue: currentInstitution,
5510
+ text: currentInstitution.name
5511
+ });
5512
+ }
5513
+ }
5514
+ }
5515
+ }
5516
+ return institutionDTOOptionList;
5517
+ };
5518
+ var retrieveSeasonDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedInstitutionId) => {
5519
+ const seasonDTOOptionList = [];
5520
+ if (userProfile) {
5521
+ if (selectedInstitutionId) {
5522
+ for (const branchDTO of userProfile.branchDTOList) {
5523
+ const currentSeason = branchDTO.gradeDTO.seasonDTO;
5524
+ if (seasonDTOOptionList.findIndex(
5525
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5526
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5527
+ seasonDTOOptionList.push({
5528
+ value: currentSeason.id,
5529
+ fullValue: currentSeason,
5530
+ text: currentSeason.name
5531
+ });
5532
+ }
5533
+ }
5534
+ for (const gradeDTO of userProfile.gradeDTOList) {
5535
+ const currentSeason = gradeDTO.seasonDTO;
5536
+ if (seasonDTOOptionList.findIndex(
5537
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5538
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5539
+ seasonDTOOptionList.push({
5540
+ value: currentSeason.id,
5541
+ fullValue: currentSeason,
5542
+ text: currentSeason.name
5543
+ });
5544
+ }
5545
+ }
5546
+ for (const seasonDTO of userProfile.seasonDTOList) {
5547
+ const currentSeason = seasonDTO;
5548
+ if (seasonDTOOptionList.findIndex(
5549
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5550
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5551
+ seasonDTOOptionList.push({
5552
+ value: currentSeason.id,
5553
+ fullValue: currentSeason,
5554
+ text: currentSeason.name
5555
+ });
5556
+ }
5557
+ }
5558
+ }
5559
+ }
5560
+ return seasonDTOOptionList;
5561
+ };
5562
+ var retrieveGradeDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedSeasonId) => {
5563
+ const gradeDTOOptionList = [];
5564
+ if (userProfile) {
5565
+ if (selectedSeasonId) {
5566
+ for (const branchDTO of userProfile.branchDTOList) {
5567
+ const currentGrade = branchDTO.gradeDTO;
5568
+ if (gradeDTOOptionList.findIndex(
5569
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
5570
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
5571
+ gradeDTOOptionList.push({
5572
+ value: currentGrade.id,
5573
+ fullValue: currentGrade,
5574
+ text: currentGrade.name
5575
+ });
5576
+ }
5577
+ }
5578
+ for (const gradeDTO of userProfile.gradeDTOList) {
5579
+ const currentGrade = gradeDTO;
5580
+ if (gradeDTOOptionList.findIndex(
5581
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
5582
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
5583
+ gradeDTOOptionList.push({
5584
+ value: currentGrade.id,
5585
+ fullValue: currentGrade,
5586
+ text: currentGrade.name
5587
+ });
5588
+ }
5589
+ }
5590
+ }
5591
+ }
5592
+ return gradeDTOOptionList;
5593
+ };
5594
+ var retrieveBranchDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedGradeId) => {
5595
+ const branchDTOOptionList = [];
5596
+ if (userProfile) {
5597
+ if (selectedGradeId) {
5598
+ for (const branchDTO of userProfile.branchDTOList) {
5599
+ const currentBranch = branchDTO;
5600
+ if (branchDTOOptionList.findIndex(
5601
+ (branchDTOOption) => branchDTOOption.value === currentBranch.id
5602
+ ) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
5603
+ branchDTOOptionList.push({
5604
+ value: currentBranch.id,
5605
+ fullValue: currentBranch,
5606
+ text: currentBranch.name
5607
+ });
5608
+ }
5609
+ }
5610
+ }
5611
+ }
5612
+ return branchDTOOptionList;
5613
+ };
5614
+ var retrieveExternalRegistrationDTOOptionList = (externalRegistrationDTOList) => {
5615
+ return externalRegistrationDTOList.map((externalRegistrationDTO) => ({
5616
+ value: externalRegistrationDTO.id,
5617
+ text: externalRegistrationDTO.name,
5618
+ fullValue: externalRegistrationDTO
5619
+ // text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5620
+ }));
5621
+ };
5622
+ var retrieveGenderOptionList = () => {
5623
+ return [
5624
+ {
5625
+ value: "MALE",
5626
+ text: i18n_default.t("MALE")
5627
+ },
5628
+ {
5629
+ value: "FEMALE",
5630
+ text: i18n_default.t("FEMALE")
5631
+ },
5632
+ {
5633
+ value: "NOT_GIVEN",
5634
+ text: i18n_default.t("NOT_GIVEN")
5635
+ }
5636
+ ];
5637
+ };
5638
+ var retrieveEnableOptionList = () => {
5639
+ return [
5640
+ {
5641
+ value: true,
5642
+ text: i18n_default.t("yes")
5643
+ },
5644
+ {
5645
+ value: false,
5646
+ text: i18n_default.t("no")
5647
+ }
5648
+ ];
5649
+ };
5650
+ var retrieveUserRoleOptionList = () => {
5651
+ return [
5652
+ {
5653
+ value: "STAFF",
5654
+ text: i18n_default.t("STAFF")
5655
+ },
5656
+ {
5657
+ value: "LEARNER",
5658
+ text: i18n_default.t("LEARNER")
5659
+ },
5660
+ {
5661
+ value: "PARENT",
5662
+ text: i18n_default.t("PARENT")
5663
+ },
5664
+ {
5665
+ value: "INDIVIDUAL",
5666
+ text: i18n_default.t("INDIVIDUAL")
5667
+ },
5668
+ {
5669
+ value: "CONTENT_CREATOR",
5670
+ text: i18n_default.t("CONTENT_CREATOR")
5671
+ }
5672
+ ];
5673
+ };
5674
+ var filterUserRoleOptionList = (accountType, userProfileRole) => {
5675
+ if (accountType === "GENIXO") {
5676
+ return retrieveUserRoleOptionList().filter(
5677
+ (userRoleOption) => userRoleOption.value === "STAFF" || userRoleOption.value === "LEARNER" || userRoleOption.value === "CONTENT_CREATOR"
5678
+ );
5679
+ } else {
5680
+ if (userProfileRole === "STAFF") {
5681
+ return retrieveUserRoleOptionList().filter(
5682
+ (userRoleOption) => userRoleOption.value === "STAFF" || userRoleOption.value === "LEARNER"
5683
+ );
5684
+ } else if (userProfileRole === "INDIVIDUAL") {
5685
+ return retrieveUserRoleOptionList().filter(
5686
+ (userRoleOption) => userRoleOption.value === "LEARNER"
5687
+ );
5688
+ }
5689
+ }
5690
+ return [];
5691
+ };
5692
+ var retrieveDefaultUserRoleOptionList = () => {
5693
+ return [
5694
+ {
5695
+ value: "BASIC",
5696
+ text: i18n_default.t("BASIC")
5697
+ },
5698
+ {
5699
+ value: "LEARNER",
5700
+ text: i18n_default.t("LEARNER")
5701
+ },
5702
+ {
5703
+ value: "STAFF_WRITER",
5704
+ text: i18n_default.t("STAFF_WRITER")
5705
+ },
5706
+ {
5707
+ value: "STAFF_TEACHER",
5708
+ text: i18n_default.t("STAFF_TEACHER")
5709
+ },
5710
+ {
5711
+ value: "STAFF_COTERIE_MANAGER",
5712
+ text: i18n_default.t("STAFF_COTERIE_MANAGER")
5713
+ },
5714
+ {
5715
+ value: "STAFF_INSTITUTION_MANAGER",
5716
+ text: i18n_default.t("STAFF_INSTITUTION_MANAGER")
5717
+ },
5718
+ {
5719
+ value: "STAFF_INSTITUTION_ASSISTANT_MANAGER",
5720
+ text: i18n_default.t("STAFF_INSTITUTION_ASSISTANT_MANAGER")
5721
+ },
5722
+ {
5723
+ value: "STAFF_CAMPUS_MANAGER",
5724
+ text: i18n_default.t("STAFF_CAMPUS_MANAGER")
5725
+ },
5726
+ {
5727
+ value: "STAFF_BRAND_MANAGER",
5728
+ text: i18n_default.t("STAFF_BRAND_MANAGER")
5729
+ },
5730
+ {
5731
+ value: "STAFF_INFORMATION_TECHNOLOGY",
5732
+ text: i18n_default.t("STAFF_INFORMATION_TECHNOLOGY")
5733
+ },
5734
+ {
5735
+ value: "INDIVIDUAL",
5736
+ text: i18n_default.t("INDIVIDUAL")
5737
+ },
5738
+ {
5739
+ value: "CONTENT_CREATOR",
5740
+ text: i18n_default.t("CONTENT_CREATOR")
5741
+ }
5742
+ ];
5743
+ };
5744
+ var retrieveCountryCodeOptionList = () => {
5745
+ return [
5746
+ {
5747
+ value: "TR",
5748
+ text: i18n_default.t("TR"),
5749
+ parent: "TURKEY"
5750
+ }
5751
+ // {
5752
+ // value: "US",
5753
+ // text: i18n.t("US"),
5754
+ // parent: "UNITED_STATES",
5755
+ // },
5756
+ // {
5757
+ // value: "DE",
5758
+ // text: i18n.t("DE"),
5759
+ // parent: "GERMANY",
5760
+ // },
5761
+ ];
5762
+ };
5763
+ var retrieveCountryNameOptionList = () => {
5764
+ return [
5765
+ {
5766
+ value: "TURKEY",
5767
+ text: i18n_default.t("TURKEY")
5768
+ }
5769
+ // {
5770
+ // value: "UNITED_STATES",
5771
+ // text: i18n.t("UNITED_STATES"),
5772
+ // },
5773
+ // {
5774
+ // value: "GERMANY",
5775
+ // text: i18n.t("GERMANY"),
5776
+ // },
5777
+ ];
5778
+ };
5779
+ var retrieveProvinceNameOptionList = () => {
5780
+ return [
5781
+ // { parent: "TURKEY", value: "ADANA", text: "Adana", code: "01" },
5782
+ // { parent: "TURKEY", value: "ADIYAMAN", text: "Adıyaman", code: "02" },
5783
+ // { parent: "TURKEY", value: "AFYON", text: "Afyon", code: "03" },
5784
+ // { parent: "TURKEY", value: "AGRI", text: "Ağrı", code: "04" },
5785
+ // { parent: "TURKEY", value: "AMASYA", text: "Amasya", code: "05" },
5786
+ { parent: "TURKEY", value: "ANKARA", text: "Ankara", code: "06" },
5787
+ { parent: "TURKEY", value: "ANTALYA", text: "Antalya", code: "07" },
5788
+ // { parent: "TURKEY", value: "ARTVIN", text: "Artvin", code: "08" },
5789
+ // { parent: "TURKEY", value: "AYDIN", text: "Aydın", code: "09" },
5790
+ // { parent: "TURKEY", value: "BALIKESIR", text: "Balıkesir", code: "10" },
5791
+ // { parent: "TURKEY", value: "BILECIK", text: "Bilecik", code: "11" },
5792
+ // { parent: "TURKEY", value: "BINGOL", text: "Bingöl", code: "12" },
5793
+ // { parent: "TURKEY", value: "BITLIS", text: "Bitlis", code: "13" },
5794
+ // { parent: "TURKEY", value: "BOLU", text: "Bolu", code: "14" },
5795
+ // { parent: "TURKEY", value: "BURDUR", text: "Burdur", code: "15" },
5796
+ // { parent: "TURKEY", value: "BURSA", text: "Bursa", code: "16" },
5797
+ // { parent: "TURKEY", value: "CANAKKALE", text: "Çanakkale", code: "17" },
5798
+ // { parent: "TURKEY", value: "CANKIRI", text: "Çankırı", code: "18" },
5799
+ // { parent: "TURKEY", value: "CORUM", text: "Çorum", code: "19" },
5800
+ // { parent: "TURKEY", value: "DENIZLI", text: "Denizli", code: "20" },
5801
+ // { parent: "TURKEY", value: "DIYARBAKIR", text: "Diyarbakır", code: "21" },
5802
+ // { parent: "TURKEY", value: "EDIRNE", text: "Edirne", code: "22" },
5803
+ // { parent: "TURKEY", value: "ELAZIG", text: "Elazığ", code: "23" },
5804
+ // { parent: "TURKEY", value: "ERZINCAN", text: "Erzincan", code: "24" },
5805
+ // { parent: "TURKEY", value: "ERZURUM", text: "Erzurum", code: "25" },
5806
+ { parent: "TURKEY", value: "ESKISEHIR", text: "Eski\u015Fehir", code: "26" },
5807
+ { parent: "TURKEY", value: "GAZIANTEP", text: "Gaziantep", code: "27" },
5808
+ // { parent: "TURKEY", value: "GIRESUN", text: "Giresun", code: "28" },
5809
+ // { parent: "TURKEY", value: "GUMUSHANE", text: "Gümüşhane", code: "29" },
5810
+ // { parent: "TURKEY", value: "HAKKARI", text: "Hakkari", code: "30" },
5811
+ // { parent: "TURKEY", value: "HATAY", text: "Hatay", code: "31" },
5812
+ // { parent: "TURKEY", value: "ISPARTA", text: "Isparta", code: "32" },
5813
+ { parent: "TURKEY", value: "MERSIN", text: "Mersin", code: "33" },
5814
+ { parent: "TURKEY", value: "ISTANBUL", text: "\u0130stanbul", code: "34" },
5815
+ { parent: "TURKEY", value: "IZMIR", text: "\u0130zmir", code: "35" }
5816
+ // { parent: "TURKEY", value: "KARS", text: "Kars", code: "36" },
5817
+ // { parent: "TURKEY", value: "KASTAMONU", text: "Kastamonu", code: "37" },
5818
+ // { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
5819
+ // { parent: "TURKEY", value: "KIRKLARELI", text: "Kırklareli", code: "39" },
5820
+ // { parent: "TURKEY", value: "KIRSEHIR", text: "Kırşehir", code: "40" },
5821
+ // { parent: "TURKEY", value: "KOCAELI", text: "Kocaeli", code: "41" },
5822
+ // { parent: "TURKEY", value: "KONYA", text: "Konya", code: "42" },
5823
+ // { parent: "TURKEY", value: "KUTAHYA", text: "Kütahya", code: "43" },
5824
+ // { parent: "TURKEY", value: "MALATYA", text: "Malatya", code: "44" },
5825
+ // { parent: "TURKEY", value: "MANISA", text: "Manisa", code: "45" },
5826
+ // {
5827
+ // parent: "TURKEY",
5828
+ // value: "KAHRAMANMARAS",
5829
+ // text: "Kahramanmaraş",
5830
+ // code: "46",
5831
+ // },
5832
+ // { parent: "TURKEY", value: "MARDIN", text: "Mardin", code: "47" },
5833
+ // { parent: "TURKEY", value: "MUGLA", text: "Muğla", code: "48" },
5834
+ // { parent: "TURKEY", value: "MUS", text: "Muş", code: "49" },
5835
+ // { parent: "TURKEY", value: "NEVSEHIR", text: "Nevşehir", code: "50" },
5836
+ // { parent: "TURKEY", value: "NIGDE", text: "Niğde", code: "51" },
5837
+ // { parent: "TURKEY", value: "ORDU", text: "Ordu", code: "52" },
5838
+ // { parent: "TURKEY", value: "RIZE", text: "Rize", code: "53" },
5839
+ // { parent: "TURKEY", value: "SAKARYA", text: "Sakarya", code: "54" },
5840
+ // { parent: "TURKEY", value: "SAMSUN", text: "Samsun", code: "55" },
5841
+ // { parent: "TURKEY", value: "SIIRT", text: "Siirt", code: "56" },
5842
+ // { parent: "TURKEY", value: "SINOP", text: "Sinop", code: "57" },
5843
+ // { parent: "TURKEY", value: "SIVAS", text: "Sivas", code: "58" },
5844
+ // { parent: "TURKEY", value: "TEKIRDAG", text: "Tekirdağ", code: "59" },
5845
+ // { parent: "TURKEY", value: "TOKAT", text: "Tokat", code: "60" },
5846
+ // { parent: "TURKEY", value: "TRABZON", text: "Trabzon", code: "61" },
5847
+ // { parent: "TURKEY", value: "TUNCELI", text: "Tunceli", code: "62" },
5848
+ // { parent: "TURKEY", value: "SANLIURFA", text: "Şanlıurfa", code: "63" },
5849
+ // { parent: "TURKEY", value: "USAK", text: "Uşak", code: "64" },
5850
+ // { parent: "TURKEY", value: "VAN", text: "Van", code: "65" },
5851
+ // { parent: "TURKEY", value: "YOZGAT", text: "Yozgat", code: "66" },
5852
+ // { parent: "TURKEY", value: "ZONGULDAK", text: "Zonguldak", code: "67" },
5853
+ // { parent: "TURKEY", value: "AKSARAY", text: "Aksaray", code: "68" },
5854
+ // { parent: "TURKEY", value: "BAYBURT", text: "Bayburt", code: "69" },
5855
+ // { parent: "TURKEY", value: "KARAMAN", text: "Karaman", code: "70" },
5856
+ // { parent: "TURKEY", value: "KIRIKKALE", text: "Kırıkkale", code: "71" },
5857
+ // { parent: "TURKEY", value: "BATMAN", text: "Batman", code: "72" },
5858
+ // { parent: "TURKEY", value: "SIRNAK", text: "Şırnak", code: "73" },
5859
+ // { parent: "TURKEY", value: "BARTIN", text: "Bartın", code: "74" },
5860
+ // { parent: "TURKEY", value: "ARDAHAN", text: "Ardahan", code: "75" },
5861
+ // { parent: "TURKEY", value: "IGDIR", text: "Iğdır", code: "76" },
5862
+ // { parent: "TURKEY", value: "YALOVA", text: "Yalova", code: "77" },
5863
+ // { parent: "TURKEY", value: "KARABUK", text: "Karabük", code: "78" },
5864
+ // { parent: "TURKEY", value: "KILIS", text: "Kilis", code: "79" },
5865
+ // { parent: "TURKEY", value: "OSMANIYE", text: "Osmaniye", code: "80" },
5866
+ // { parent: "TURKEY", value: "Düzce", text: "Düzce", code: "81" },
5867
+ ];
5868
+ };
5869
+ var retrievePhoneNumberAreaCodeList = () => {
5870
+ return [
5871
+ {
5872
+ parent: "UNITED_STATES",
5873
+ value: "+1",
5874
+ text: "+1"
5875
+ },
5876
+ {
5877
+ parent: "GERMANY",
5878
+ value: "+49",
5879
+ text: "+49"
5880
+ },
5881
+ {
5882
+ parent: "TURKEY",
5883
+ value: "+90",
5884
+ text: "+90"
5885
+ }
5886
+ ];
5887
+ };
5888
+ var retrieveInstitutionTypeOptionList = () => {
5889
+ return [
5890
+ {
5891
+ value: "WEST_PRIMARY",
5892
+ text: i18n_default.t("WEST_PRIMARY")
5893
+ },
5894
+ {
5895
+ value: "EAST_PRIMARY",
5896
+ text: i18n_default.t("EAST_PRIMARY")
5897
+ },
5898
+ {
5899
+ value: "EAST_SECONDARY",
5900
+ text: i18n_default.t("EAST_SECONDARY")
5901
+ },
5902
+ {
5903
+ value: "HIGH_SCHOOL",
5904
+ text: i18n_default.t("HIGH_SCHOOL")
5905
+ },
5906
+ {
5907
+ value: "COLLEGE",
5908
+ text: i18n_default.t("COLLEGE")
5909
+ },
5910
+ {
5911
+ value: "PRIVATE_TRAINING",
5912
+ text: i18n_default.t("PRIVATE_TRAINING")
5913
+ },
5914
+ {
5915
+ value: "PRIVATE_LESSON",
5916
+ text: i18n_default.t("PRIVATE_LESSON")
5917
+ },
5918
+ {
5919
+ value: "COURSE",
5920
+ text: i18n_default.t("COURSE")
5921
+ },
5922
+ {
5923
+ value: "COMPANY",
5924
+ text: i18n_default.t("COMPANY")
5925
+ },
5926
+ {
5927
+ value: "ORGANIZATION",
5928
+ text: i18n_default.t("ORGANIZATION")
5929
+ }
5930
+ ];
5931
+ };
5932
+ var retrieveGradeLevelOptionList = () => {
5933
+ return [
5934
+ {
5935
+ value: 0,
5936
+ text: i18n_default.t("other")
5937
+ },
5938
+ {
5939
+ value: 1,
5940
+ text: i18n_default.t("1")
5941
+ },
5942
+ {
5943
+ value: 2,
5944
+ text: i18n_default.t("2")
5945
+ },
5946
+ {
5947
+ value: 3,
5948
+ text: i18n_default.t("3")
5949
+ },
5950
+ {
5951
+ value: 4,
5952
+ text: i18n_default.t("4")
5953
+ },
5954
+ {
5955
+ value: 5,
5956
+ text: i18n_default.t("5")
5957
+ },
5958
+ {
5959
+ value: 6,
5960
+ text: i18n_default.t("6")
5961
+ },
5962
+ {
5963
+ value: 7,
5964
+ text: i18n_default.t("7")
5965
+ },
5966
+ {
5967
+ value: 8,
5968
+ text: i18n_default.t("8")
5969
+ },
5970
+ {
5971
+ value: 9,
5972
+ text: i18n_default.t("9")
5973
+ },
5974
+ {
5975
+ value: 10,
5976
+ text: i18n_default.t("10")
5977
+ },
5978
+ {
5979
+ value: 11,
5980
+ text: i18n_default.t("11")
5981
+ },
5982
+ {
5983
+ value: 12,
5984
+ text: i18n_default.t("12")
5985
+ }
5986
+ ];
5987
+ };
5988
+ var constructUserProfileQueryParams = (userProfile, userProfileBrand) => {
5989
+ let queryParams;
5990
+ if (userProfile.branchDTOList.length > 0) {
5991
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
5992
+ branchIdList: userProfile.branchDTOList.map(
5993
+ (branchDTO) => branchDTO.id
5994
+ )
5995
+ });
5996
+ } else if (userProfile.gradeDTOList.length > 0) {
5997
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
5998
+ gradeIdList: userProfile.gradeDTOList.map((gradeDTO) => gradeDTO.id)
5999
+ });
6000
+ } else if (userProfile.seasonDTOList.length > 0) {
6001
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6002
+ seasonIdList: userProfile.seasonDTOList.map(
6003
+ (seasonDTO) => seasonDTO.id
6004
+ )
6005
+ });
6006
+ } else if (userProfile.institutionDTOList.length > 0) {
6007
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6008
+ institutionIdList: userProfile.institutionDTOList.map(
6009
+ (institutionDTO) => institutionDTO.id
6010
+ )
6011
+ });
6012
+ } else if (userProfile.campusDTOList.length > 0) {
6013
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6014
+ campusIdList: userProfile.campusDTOList.map(
6015
+ (campusDTO) => campusDTO.id
6016
+ )
6017
+ });
6018
+ } else if (userProfile.brandDTOList.length > 0) {
6019
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6020
+ brandIdList: [userProfileBrand.id]
6021
+ });
6022
+ }
6023
+ queryParams.deleted = false;
6024
+ return queryParams;
6025
+ };
6026
+ var retrieveCoterieTypeOptionList = () => {
6027
+ return [
6028
+ {
6029
+ text: i18n_default.t("MANAGEMENT"),
6030
+ value: "MANAGEMENT",
6031
+ includes: [
6032
+ "WEST_PRIMARY",
6033
+ "EAST_PRIMARY",
6034
+ "EAST_SECONDARY",
6035
+ "COLLEGE",
6036
+ "HIGH_SCHOOL",
6037
+ "COURSE"
6038
+ ]
6039
+ },
6040
+ {
6041
+ text: i18n_default.t("TURKISH"),
6042
+ value: "TURKISH",
6043
+ includes: [
6044
+ "WEST_PRIMARY",
6045
+ "EAST_PRIMARY",
6046
+ "EAST_SECONDARY",
6047
+ "COLLEGE",
6048
+ "HIGH_SCHOOL",
6049
+ "COURSE"
6050
+ ]
6051
+ },
6052
+ {
6053
+ text: i18n_default.t("HISTORY"),
6054
+ value: "HISTORY",
6055
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6056
+ },
6057
+ {
6058
+ text: i18n_default.t("MATHEMATICS"),
6059
+ value: "MATHEMATICS",
6060
+ includes: [
6061
+ "WEST_PRIMARY",
6062
+ "EAST_PRIMARY",
6063
+ "EAST_SECONDARY",
6064
+ "COLLEGE",
6065
+ "HIGH_SCHOOL",
6066
+ "COURSE"
6067
+ ]
6068
+ },
6069
+ {
6070
+ text: i18n_default.t("BIOLOGY"),
6071
+ value: "BIOLOGY",
6072
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6073
+ },
6074
+ {
6075
+ text: i18n_default.t("LITERATURE"),
6076
+ value: "LITERATURE",
6077
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6078
+ },
6079
+ {
6080
+ text: i18n_default.t("GEOGRAPHY"),
6081
+ value: "GEOGRAPHY",
6082
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6083
+ },
6084
+ {
6085
+ text: i18n_default.t("ENGLISH"),
6086
+ value: "ENGLISH",
6087
+ includes: [
6088
+ "WEST_PRIMARY",
6089
+ "EAST_PRIMARY",
6090
+ "EAST_SECONDARY",
6091
+ "COLLEGE",
6092
+ "HIGH_SCHOOL",
6093
+ "COURSE"
6094
+ ]
6095
+ },
6096
+ {
6097
+ text: i18n_default.t("PHYSICS"),
6098
+ value: "PHYSICS",
6099
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6100
+ },
6101
+ {
6102
+ text: i18n_default.t("CHEMISTRY"),
6103
+ value: "CHEMISTRY",
6104
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6105
+ },
6106
+ {
6107
+ text: i18n_default.t("PHILOSOPHY"),
6108
+ value: "PHILOSOPHY",
6109
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6110
+ },
6111
+ {
6112
+ text: i18n_default.t("PHYSICAL_EDUCATION"),
6113
+ value: "PHYSICAL_EDUCATION",
6114
+ includes: [
6115
+ "WEST_PRIMARY",
6116
+ "EAST_PRIMARY",
6117
+ "EAST_SECONDARY",
6118
+ "COLLEGE",
6119
+ "HIGH_SCHOOL",
6120
+ "COURSE"
6121
+ ]
6122
+ },
6123
+ {
6124
+ text: i18n_default.t("SOCIAL_STUDIES"),
6125
+ value: "SOCIAL_STUDIES",
6126
+ includes: [
6127
+ "WEST_PRIMARY",
6128
+ "EAST_PRIMARY",
6129
+ "EAST_SECONDARY",
6130
+ "COLLEGE",
6131
+ "COURSE"
6132
+ ]
6133
+ },
6134
+ {
6135
+ text: i18n_default.t("SCIENCE"),
6136
+ value: "SCIENCE",
6137
+ includes: [
6138
+ "WEST_PRIMARY",
6139
+ "EAST_PRIMARY",
6140
+ "EAST_SECONDARY",
6141
+ "COLLEGE",
6142
+ "COURSE"
6143
+ ]
6144
+ },
6145
+ {
6146
+ text: i18n_default.t("LIFE_STUDIES"),
6147
+ value: "LIFE_STUDIES",
6148
+ includes: ["WEST_PRIMARY", "EAST_PRIMARY", "COLLEGE", "COURSE"]
6149
+ },
6150
+ {
6151
+ text: i18n_default.t("CULTURE_AND_RELIGION_KNOWLEDGE"),
6152
+ value: "CULTURE_AND_RELIGION_KNOWLEDGE",
6153
+ includes: [
6154
+ "WEST_PRIMARY",
6155
+ "EAST_PRIMARY",
6156
+ "EAST_SECONDARY",
6157
+ "COLLEGE",
6158
+ "HIGH_SCHOOL",
6159
+ "COURSE"
6160
+ ]
6161
+ },
6162
+ {
6163
+ text: i18n_default.t("TRAFFIC_SAFETY"),
6164
+ value: "TRAFFIC_SAFETY",
6165
+ includes: ["WEST_PRIMARY", "EAST_PRIMARY", "COLLEGE", "COURSE"]
6166
+ },
6167
+ {
6168
+ text: i18n_default.t("GENERAL_CULTURE"),
6169
+ value: "GENERAL_CULTURE",
6170
+ includes: [
6171
+ "WEST_PRIMARY",
6172
+ "EAST_PRIMARY",
6173
+ "EAST_SECONDARY",
6174
+ "COLLEGE",
6175
+ "HIGH_SCHOOL",
6176
+ "COURSE"
6177
+ ]
6178
+ }
6179
+ ];
6180
+ };
6181
+ var retrieveUserAuthorityGeneralOptionList = () => {
6182
+ return [
6183
+ { text: i18n_default.t("all"), value: "" },
6184
+ { text: i18n_default.t("user"), value: "USER" },
6185
+ { text: i18n_default.t("activity"), value: "ACTIVITY" },
6186
+ { text: i18n_default.t("catchtivity"), value: "CATCHTIVITY" },
6187
+ { text: i18n_default.t("catchxam"), value: "CATCHXAM" },
6188
+ { text: i18n_default.t("label"), value: "LABEL" },
6189
+ { text: i18n_default.t("announcement"), value: "NOTIFICATION" },
6190
+ { text: i18n_default.t("report"), value: "REPORT" },
6191
+ { text: i18n_default.t("category"), value: "CATEGORY" },
6192
+ { text: i18n_default.t("library"), value: "STORAGE_FILE" },
6193
+ { text: i18n_default.t("brand"), value: "BRAND" },
6194
+ { text: i18n_default.t("region"), value: "REGION" },
6195
+ { text: i18n_default.t("campus"), value: "CAMPUS" },
6196
+ { text: i18n_default.t("institution"), value: "INSTITUTION" },
6197
+ { text: i18n_default.t("season"), value: "SEASON" },
6198
+ { text: i18n_default.t("grade"), value: "GRADE" },
6199
+ { text: i18n_default.t("branch"), value: "BRANCH" },
6200
+ { text: i18n_default.t("plan"), value: "PLAN" },
6201
+ { text: i18n_default.t("standard_exam"), value: "STANDARD_EXAM" },
6202
+ { text: i18n_default.t("etude"), value: "ETUDE" }
6203
+ ];
6204
+ };
6205
+ var filterGradeLevelOptionList = (institutionDTO, gradeDTO) => {
6206
+ if (gradeDTO) {
6207
+ return retrieveGradeLevelOptionList().filter(
6208
+ (gradeLevel) => parseFloat(gradeLevel.value) === gradeDTO.level
6209
+ );
6210
+ }
6211
+ if (institutionDTO) {
6212
+ const { type } = institutionDTO;
6213
+ if (type === "WEST_PRIMARY") {
6214
+ return retrieveGradeLevelOptionList().filter(
6215
+ (gradeLevel) => parseFloat(gradeLevel.value) <= 8
6216
+ );
6217
+ } else if (type === "EAST_PRIMARY") {
6218
+ return retrieveGradeLevelOptionList().filter(
6219
+ (gradeLevel) => parseFloat(gradeLevel.value) <= 4
6220
+ );
6221
+ } else if (type === "EAST_SECONDARY") {
6222
+ return retrieveGradeLevelOptionList().filter(
6223
+ (gradeLevel) => parseFloat(gradeLevel.value) > 4 && parseFloat(gradeLevel.value) <= 8
6224
+ );
6225
+ } else if (type === "HIGH_SCHOOL") {
6226
+ return retrieveGradeLevelOptionList().filter(
6227
+ (gradeLevel) => parseFloat(gradeLevel.value) > 8
6228
+ );
6229
+ } else if (type === "COLLEGE" || type === "PRIVATE_TRAINING" || type === "PRIVATE_LESSON" || type === "COURSE") {
6230
+ return retrieveGradeLevelOptionList();
6231
+ } else {
6232
+ return [];
6233
+ }
6234
+ }
6235
+ return retrieveGradeLevelOptionList();
6236
+ };
6237
+ var filterCoterieTypeOptionList = (userInformation, userProfile, userProfileInstitution) => {
6238
+ if (userInformation.accountType === "GENIXO") {
6239
+ return retrieveCoterieTypeOptionList().sort(
6240
+ (a, b) => a.text.localeCompare(b.text)
6241
+ );
6242
+ }
6243
+ if (userProfile.role === "STAFF" || userProfile.role === "CONTENT_CREATOR") {
6244
+ if (userProfile.coterieType === "MANAGEMENT") {
6245
+ if (userProfileInstitution) {
6246
+ return retrieveCoterieTypeOptionList().filter(
6247
+ (coterieTypeOption) => coterieTypeOption.includes.includes(userProfileInstitution.type)
6248
+ ).sort((a, b) => a.text.localeCompare(b.text));
6249
+ } else {
6250
+ return retrieveCoterieTypeOptionList().sort(
6251
+ (a, b) => a.text.localeCompare(b.text)
6252
+ );
6253
+ }
6254
+ } else {
6255
+ return retrieveCoterieTypeOptionList().filter(
6256
+ (coterieTypeOption) => coterieTypeOption.value === userProfile.coterieType
6257
+ ).sort((a, b) => a.text.localeCompare(b.text));
6258
+ }
6259
+ } else if (userProfile.role === "INDIVIDUAL") {
6260
+ const individualCoterieTypeOptionList = [];
6261
+ const coterieTypeOptionList = retrieveCoterieTypeOptionList();
6262
+ userProfile.coterieTypeList.forEach((coterieType) => {
6263
+ const foundCoterieTypeOption = coterieTypeOptionList.find(
6264
+ (coterieTypeOption) => coterieTypeOption.value === coterieType
6265
+ );
6266
+ if (foundCoterieTypeOption) {
6267
+ individualCoterieTypeOptionList.push(foundCoterieTypeOption);
6268
+ }
6269
+ });
6270
+ return individualCoterieTypeOptionList;
6271
+ }
6272
+ return [];
6273
+ };
6274
+ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
6275
+ if (userProfileInstitution) {
6276
+ const { institutionSettingsDTO } = userProfileInstitution;
6277
+ const { institutionAISettingsDTO } = institutionSettingsDTO;
6278
+ return institutionAISettingsDTO;
6279
+ } else {
6280
+ if (userProfileCampus) {
6281
+ const { campusSettingsDTO } = userProfileCampus;
6282
+ const { campusAISettingsDTO } = campusSettingsDTO;
6283
+ return campusAISettingsDTO;
6284
+ } else {
6285
+ if (userProfileBrand) {
6286
+ const { brandSettingsDTO } = userProfileBrand;
6287
+ const { brandAISettingsDTO } = brandSettingsDTO;
6288
+ return brandAISettingsDTO;
6289
+ }
6290
+ }
6291
+ }
6292
+ };
6293
+
6294
+ // src/utilization/CategoryUtilization.ts
6295
+ var retrieveCategoryVersionCodeOptionList = () => {
6296
+ return [
6297
+ {
6298
+ value: "MEB-IO-MAT-2024",
6299
+ text: i18n_default.t("MEB-IO-MAT-2024"),
6300
+ type: "MATHEMATICS",
6301
+ availableLevelList: [5]
6302
+ },
6303
+ {
6304
+ value: "MEB-IO-MAT-2018",
6305
+ text: i18n_default.t("MEB-IO-MAT-2018"),
6306
+ type: "MATHEMATICS",
6307
+ availableLevelList: [4, 6, 7, 8]
6308
+ },
6309
+ {
6310
+ value: "MEB-IO-TUR-2024",
6311
+ text: i18n_default.t("MEB-IO-TUR-2024"),
6312
+ type: "TURKISH",
6313
+ availableLevelList: [5]
6314
+ },
6315
+ {
6316
+ value: "MEB-IO-TUR-2019",
6317
+ text: i18n_default.t("MEB-IO-TUR-2019"),
6318
+ type: "TURKISH",
6319
+ availableLevelList: [4, 6, 7, 8]
6320
+ },
6321
+ {
6322
+ value: "MEB-IO-HAY-2018",
6323
+ text: i18n_default.t("MEB-IO-HAY-2018"),
6324
+ type: "LIFE_STUDIES",
6325
+ availableLevelList: [3]
6326
+ },
6327
+ {
6328
+ value: "MEB-IO-TRAF-2018",
6329
+ text: i18n_default.t("MEB-IO-TRAF-2018"),
6330
+ type: "TRAFFIC_SAFETY",
6331
+ availableLevelList: [4]
6332
+ },
6333
+ {
6334
+ value: "MEB-IO-FEN-2024",
6335
+ text: i18n_default.t("MEB-IO-FEN-2024"),
6336
+ type: "SCIENCE",
6337
+ availableLevelList: [5]
6338
+ },
6339
+ {
6340
+ value: "MEB-IO-SCI-2018",
6341
+ text: i18n_default.t("MEB-IO-SCI-2018"),
6342
+ type: "SCIENCE",
6343
+ availableLevelList: [4, 6, 7, 8]
6344
+ },
6345
+ {
6346
+ value: "MEB-IO-SOS-2024",
6347
+ text: i18n_default.t("MEB-IO-SOS-2024"),
6348
+ type: "SOCIAL_STUDIES",
6349
+ availableLevelList: [5]
6350
+ },
6351
+ {
6352
+ value: "MEB-IO-SOS-2018",
6353
+ text: i18n_default.t("MEB-IO-SOS-2018"),
6354
+ type: "SOCIAL_STUDIES",
6355
+ availableLevelList: [4, 6, 7]
6356
+ },
6357
+ {
6358
+ value: "MEB-IO-ITA-2018",
6359
+ text: i18n_default.t("MEB-IO-ITA-2018"),
6360
+ type: "SOCIAL_STUDIES",
6361
+ availableLevelList: [8]
6362
+ },
6363
+ {
6364
+ value: "MEB-IO-ENG-2018",
6365
+ text: i18n_default.t("MEB-IO-ENG-2018"),
6366
+ type: "ENGLISH",
6367
+ availableLevelList: [4, 5, 6, 7, 8]
6368
+ },
6369
+ {
6370
+ value: "MEB-AL-MAT-2024",
6371
+ text: i18n_default.t("MEB-AL-MAT-2024"),
6372
+ type: "MATHEMATICS",
6373
+ availableLevelList: [9]
6374
+ },
6375
+ {
6376
+ value: "MEB-AL-MAT-2018",
6377
+ text: i18n_default.t("MEB-AL-MAT-2018"),
6378
+ type: "MATHEMATICS",
6379
+ availableLevelList: [10, 11, 12]
6380
+ },
6381
+ {
6382
+ value: "MEB-AL-F\u0130Z-2024",
6383
+ text: i18n_default.t("MEB-AL-F\u0130Z-2024"),
6384
+ type: "PHYSICS",
6385
+ availableLevelList: [9]
6386
+ },
6387
+ {
6388
+ value: "MEB-AL-FIZ-2018",
6389
+ text: i18n_default.t("MEB-AL-FIZ-2018"),
6390
+ type: "PHYSICS",
6391
+ availableLevelList: [10, 11, 12]
6392
+ },
6393
+ {
6394
+ value: "MEB-AL-B\u0130Y-2024",
6395
+ text: i18n_default.t("MEB-AL-B\u0130Y-2024"),
6396
+ type: "BIOLOGY",
6397
+ availableLevelList: [9]
6398
+ },
6399
+ {
6400
+ value: "MEB-AL-BIO-2018",
6401
+ text: i18n_default.t("MEB-AL-BIO-2018"),
6402
+ type: "BIOLOGY",
6403
+ availableLevelList: [10, 11, 12]
6404
+ },
6405
+ {
6406
+ value: "MEB-AL-K\u0130M-2024",
6407
+ text: i18n_default.t("MEB-AL-K\u0130M-2024"),
6408
+ type: "CHEMISTRY",
6409
+ availableLevelList: [9]
6410
+ },
6411
+ {
6412
+ value: "MEB-AL-KIM-2018",
6413
+ text: i18n_default.t("MEB-AL-KIM-2018"),
6414
+ type: "CHEMISTRY",
6415
+ availableLevelList: [10, 11, 12]
6416
+ },
6417
+ {
6418
+ value: "MEB-AL-TAR-2024",
6419
+ text: i18n_default.t("MEB-AL-TAR-2024"),
6420
+ type: "HISTORY",
6421
+ availableLevelList: [9]
6422
+ },
6423
+ {
6424
+ value: "MEB-AL-TAR-2018",
6425
+ text: i18n_default.t("MEB-AL-TAR-2018"),
6426
+ type: "HISTORY",
6427
+ availableLevelList: [10, 11]
6428
+ },
6429
+ {
6430
+ value: "MEB-AL-ITA-2018",
6431
+ text: i18n_default.t("MEB-AL-ITA-2018"),
6432
+ type: "HISTORY",
6433
+ availableLevelList: [12]
6434
+ },
6435
+ {
6436
+ value: "MEB-AL-CO\u011E-2024",
6437
+ text: i18n_default.t("MEB-AL-CO\u011E-2024"),
6438
+ type: "GEOGRAPHY",
6439
+ availableLevelList: [9]
6440
+ },
6441
+ {
6442
+ value: "MEB-AL-CO\u011E-2018",
6443
+ text: i18n_default.t("MEB-AL-CO\u011E-2018"),
6444
+ type: "GEOGRAPHY",
6445
+ availableLevelList: [10, 11, 12]
6446
+ },
6447
+ {
6448
+ value: "MEB-IO-DKAB-2018",
6449
+ text: i18n_default.t("MEB-IO-DKAB-2018"),
6450
+ type: "CULTURE_AND_RELIGION_KNOWLEDGE",
6451
+ availableLevelList: [4, 5, 6, 7, 8]
6452
+ },
6453
+ {
6454
+ value: "MEB-AL-DKAB-2018",
6455
+ text: i18n_default.t("MEB-AL-DKAB-2018"),
6456
+ type: "CULTURE_AND_RELIGION_KNOWLEDGE",
6457
+ availableLevelList: [9, 10, 11, 12]
6458
+ },
6459
+ {
6460
+ value: "MEB-AL-FEL-2018",
6461
+ text: i18n_default.t("MEB-AL-FEL-2018"),
6462
+ type: "PHILOSOPHY",
6463
+ availableLevelList: [10, 11]
6464
+ },
6465
+ {
6466
+ value: "MEB-AL-TDE-2024",
6467
+ text: i18n_default.t("MEB-AL-TDE-2024"),
6468
+ type: "LITERATURE",
6469
+ availableLevelList: [9]
6470
+ },
6471
+ {
6472
+ value: "MEB-AL-LIT-2018",
6473
+ text: i18n_default.t("MEB-AL-LIT-2018"),
6474
+ type: "LITERATURE",
6475
+ availableLevelList: [10, 11, 12]
6476
+ },
6477
+ // {
6478
+ // value: "CEFR-STANDARDS-A1",
6479
+ // text: i18n.t("CEFR-STANDARDS-A1"),
6480
+ // type: "ENGLISH",
6481
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6482
+ // },
6483
+ // {
6484
+ // value: "CEFR-STANDARDS-A2",
6485
+ // text: i18n.t("CEFR-STANDARDS-A2"),
6486
+ // type: "ENGLISH",
6487
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6488
+ // },
6489
+ // {
6490
+ // value: "CEFR-STANDARDS-B1",
6491
+ // text: i18n.t("CEFR-STANDARDS-B1"),
6492
+ // type: "ENGLISH",
6493
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6494
+ // },
6495
+ // {
6496
+ // value: "CEFR-STANDARDS-B2",
6497
+ // text: i18n.t("CEFR-STANDARDS-B2"),
6498
+ // type: "ENGLISH",
6499
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6500
+ // },
6501
+ {
6502
+ value: "GENERAL-CULTURE",
6503
+ text: i18n_default.t("GENERAL-CULTURE"),
6504
+ type: "GENERAL_CULTURE",
6505
+ availableLevelList: [8, 12]
6506
+ },
6507
+ {
6508
+ value: "SPE-TYT-TUR-2024",
6509
+ text: i18n_default.t("SPE-TYT-TUR-2024"),
6510
+ type: "TURKISH",
6511
+ availableLevelList: [12]
6512
+ },
6513
+ {
6514
+ value: "SPE-LGS-TUR-2024",
6515
+ text: i18n_default.t("SPE-LGS-TUR-2024"),
6516
+ type: "TURKISH",
6517
+ availableLevelList: [8]
6518
+ }
6519
+ ];
6520
+ };
6521
+ var filterCategoryVersionCodeOptionList = (categoryVersionCodeOptionList, coterieType, level) => {
6522
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6523
+ if (level && level === "DEFAULT_OPTION") return [];
6524
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6525
+ if (coterieType !== "MANAGEMENT") {
6526
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6527
+ (categoryVersionCode) => categoryVersionCode.type === coterieType
6528
+ );
6529
+ }
6530
+ if (level) {
6531
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6532
+ (categoryVersionCode) => categoryVersionCode.availableLevelList.includes(level)
6533
+ );
6534
+ }
6535
+ return currentCategoryVersionCodeOptionList;
6536
+ };
6537
+ var filterCategoryVersionCodeOptionListByGradeDTO = (categoryVersionCodeOptionList, coterieType, gradeDTO) => {
6538
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6539
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6540
+ if (coterieType !== "MANAGEMENT") {
6541
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6542
+ (categoryVersionCode) => categoryVersionCode.type === coterieType
6543
+ );
6544
+ }
6545
+ if (gradeDTO) {
6546
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6547
+ (categoryVersionCodeOption) => categoryVersionCodeOption.availableLevelList.includes(gradeDTO.level)
6548
+ );
6549
+ }
6550
+ return currentCategoryVersionCodeOptionList;
6551
+ };
6552
+ var filterCategoryVersionCodeOptionListByInstitutionDTO = (categoryVersionCodeOptionList, coterieType, institutionDTO) => {
6553
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6554
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6555
+ if (coterieType !== "MANAGEMENT") {
6556
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6557
+ (categoryVersionCodeOption) => categoryVersionCodeOption.type === coterieType
6558
+ );
6559
+ }
6560
+ if (institutionDTO) {
6561
+ const gradeLevelList = filterGradeLevelOptionList(institutionDTO, null).map(
6562
+ (option) => option.value
6563
+ );
6564
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6565
+ (categoryVersionCodeOption) => {
6566
+ return gradeLevelList.find(
6567
+ (gradeLevel) => categoryVersionCodeOption.availableLevelList.includes(gradeLevel)
6568
+ ) !== void 0;
6569
+ }
6570
+ );
6571
+ }
6572
+ return currentCategoryVersionCodeOptionList;
6573
+ };
6574
+
6575
+ // src/utilization/DateUtilization.ts
6576
+ var ONE_HOUR = 36e5;
6577
+ var ONE_DAY = 864e5;
6578
+ var ONE_WEEK = 6048e5;
6579
+ var ONE_MONTH = 24192e5;
6580
+ var THREE_MONTHS = 72576e5;
6581
+ var retrieveMonthNameByIndex = (index) => {
6582
+ if (index === 0) {
6583
+ return i18n_default.t("january");
6584
+ } else if (index === 1) {
6585
+ return i18n_default.t("february");
6586
+ } else if (index === 2) {
6587
+ return i18n_default.t("march");
6588
+ } else if (index === 3) {
6589
+ return i18n_default.t("april");
6590
+ } else if (index === 4) {
6591
+ return i18n_default.t("may");
6592
+ } else if (index === 5) {
6593
+ return i18n_default.t("june");
6594
+ } else if (index === 6) {
6595
+ return i18n_default.t("july");
6596
+ } else if (index === 7) {
6597
+ return i18n_default.t("august");
6598
+ } else if (index === 8) {
6599
+ return i18n_default.t("september");
6600
+ } else if (index === 9) {
6601
+ return i18n_default.t("october");
6602
+ } else if (index === 10) {
6603
+ return i18n_default.t("november");
6604
+ } else if (index === 11) {
6605
+ return i18n_default.t("december");
6606
+ }
6607
+ };
6608
+ var retrieveDateIntervalOptionList = () => {
6609
+ return [
6610
+ {
6611
+ value: "LAST_DAY",
6612
+ text: i18n_default.t("last_day")
6613
+ },
6614
+ {
6615
+ value: "LAST_WEEK",
6616
+ text: i18n_default.t("last_week")
6617
+ },
6618
+ {
6619
+ value: "LAST_MONTH",
6620
+ text: i18n_default.t("last_month")
6621
+ },
6622
+ {
6623
+ value: "LAST_THREE_MONTHS",
6624
+ text: i18n_default.t("last_three_months")
6625
+ }
6626
+ ];
6627
+ };
6628
+ var constructWeekName = (beginDate, endDate) => {
6629
+ let currentEndDate;
6630
+ if (endDate) {
6631
+ currentEndDate = endDate;
6632
+ } else {
6633
+ currentEndDate = new Date(beginDate);
6634
+ currentEndDate.setDate(beginDate.getDate() + 4);
6635
+ }
6636
+ if (beginDate.getFullYear() !== currentEndDate.getFullYear()) {
6637
+ return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
6638
+ beginDate.getMonth()
6639
+ )} ${beginDate.getFullYear()} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6640
+ currentEndDate.getMonth()
6641
+ )} ${currentEndDate.getFullYear()}`;
6642
+ } else {
6643
+ if (beginDate.getMonth() !== currentEndDate.getMonth()) {
6644
+ return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
6645
+ beginDate.getMonth()
6646
+ )} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6647
+ currentEndDate.getMonth()
6648
+ )} ${currentEndDate.getFullYear()}`;
6649
+ } else {
6650
+ return `${beginDate.getDate()} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6651
+ currentEndDate.getMonth()
6652
+ )} ${currentEndDate.getFullYear()}`;
6653
+ }
6654
+ }
6655
+ };
6656
+
6657
+ // src/utilization/FunctionUtilization.ts
6658
+ var calculateLevenshteinDistance = (s, t) => {
6659
+ if (!s.length) return t.length;
6660
+ if (!t.length) return s.length;
6661
+ const arr = [];
6662
+ for (let i = 0; i <= t.length; i++) {
6663
+ arr[i] = [i];
6664
+ for (let j = 1; j <= s.length; j++) {
6665
+ arr[i][j] = i === 0 ? j : Math.min(
6666
+ arr[i - 1][j] + 1,
6667
+ arr[i][j - 1] + 1,
6668
+ arr[i - 1][j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1)
6669
+ );
6670
+ }
6671
+ }
6672
+ return arr[t.length][s.length];
6673
+ };
6674
+ var convertTurkishCharactersToEnglish = (text) => {
6675
+ return text.replaceAll("\u011E", "g").replaceAll("\xDC", "u").replaceAll("\u015E", "s").replaceAll("I", "i").replaceAll("\u0130", "i").replaceAll("\xD6", "o").replaceAll("\xC7", "c").replaceAll("\u011F", "g").replaceAll("\xFC", "u").replaceAll("\u015F", "s").replaceAll("\u0131", "i").replaceAll("\xF6", "o").replaceAll("\xE7", "c");
6676
+ };
6677
+ function convertToBase64(arrayBuffer) {
6678
+ return new Promise((resolve, reject) => {
6679
+ const blob = new Blob([arrayBuffer], { type: "image/png" });
6680
+ const reader = new FileReader();
6681
+ reader.onloadend = () => {
6682
+ const base64data = typeof reader.result === "string" ? reader.result.split(",")[1] : null;
6683
+ resolve(base64data);
6684
+ };
6685
+ reader.onerror = reject;
6686
+ reader.readAsDataURL(blob);
6687
+ });
6688
+ }
6689
+
6690
+ // src/utilization/GamificationUtilization.ts
6691
+ var retrieveSourceTypeOptionList = (coterieOnly) => {
6692
+ const currentSourceTypeOptionList = [
6693
+ {
6694
+ value: "CATCHTIVITY",
6695
+ text: i18n_default.t("CATCHTIVITY")
6696
+ },
6697
+ {
6698
+ value: "CATCHXAM",
6699
+ text: i18n_default.t("CATCHXAM")
6700
+ },
6701
+ // {
6702
+ // value: "STANDARD_EXAM",
6703
+ // text: i18n.t("STANDARD_EXAM"),
6704
+ // },
6705
+ {
6706
+ value: "ETUDE",
6707
+ text: i18n_default.t("ETUDE")
6708
+ },
6709
+ {
6710
+ value: "CONTEST",
6711
+ text: i18n_default.t("CONTEST")
6712
+ },
6713
+ {
6714
+ value: "ACTIVITY",
6715
+ text: i18n_default.t("ACTIVITY")
6716
+ }
6717
+ ];
6718
+ if (!coterieOnly) {
6719
+ currentSourceTypeOptionList.push({
6720
+ value: "LOGIN",
6721
+ text: i18n_default.t("LOGIN")
6722
+ });
6723
+ }
6724
+ return currentSourceTypeOptionList;
6725
+ };
6726
+ var retrieveBadgeTypeOptionList = (isActivity) => {
6727
+ const currentBadgeTypeOptionList = [
6728
+ {
6729
+ value: "COUNT",
6730
+ text: i18n_default.t("COUNT")
6731
+ }
6732
+ ];
6733
+ if (isActivity) {
6734
+ currentBadgeTypeOptionList.push({
6735
+ value: "CORRECT",
6736
+ text: i18n_default.t("CORRECT")
6737
+ });
6738
+ currentBadgeTypeOptionList.push({
6739
+ value: "REVIEW",
6740
+ text: i18n_default.t("REVIEW")
6741
+ });
6742
+ currentBadgeTypeOptionList.push({
6743
+ value: "TIME_SPENT",
6744
+ text: i18n_default.t("TIME_SPENT")
6745
+ });
6746
+ }
6747
+ return currentBadgeTypeOptionList;
6748
+ };
6749
+ var retrieveOtherBadgeDTOList = () => {
6750
+ const badgeList = [];
6751
+ const sourceTypeOptionList = retrieveSourceTypeOptionList(false);
6752
+ const filteredSourceTypeOptionList = sourceTypeOptionList.filter(
6753
+ (sourceTypeOption) => sourceTypeOption.value === "LOGIN"
6754
+ );
6755
+ for (let i = 1; i <= 5; i++) {
6756
+ for (const sourceTypeOption of filteredSourceTypeOptionList) {
6757
+ const badgeTypeOptionList = retrieveBadgeTypeOptionList(
6758
+ sourceTypeOption.value === "ACTIVITY"
6759
+ );
6760
+ for (const badgeTypeOption of badgeTypeOptionList) {
6761
+ badgeList.push({
6762
+ badgeDTO: {
6763
+ coterieType: "MANAGEMENT",
6764
+ sourceType: sourceTypeOption.value,
6765
+ badgeType: badgeTypeOption.value
6766
+ },
6767
+ level: i
6768
+ });
6769
+ }
6770
+ }
6771
+ }
6772
+ return badgeList;
6773
+ };
6774
+ var retrieveAllEarnedBadgeDTOListByCoterieTypeList = (coterieTypeList) => {
6775
+ const badgeList = [];
6776
+ for (const coterieType of coterieTypeList) {
6777
+ badgeList.push(...retrieveAllEarnedBadgeDTOListByCoterieType(coterieType));
6778
+ }
6779
+ return badgeList;
6780
+ };
6781
+ var retrieveAllEarnedBadgeDTOListByCoterieType = (coterieType) => {
6782
+ const sourceTypeOptionList = retrieveSourceTypeOptionList(true);
6783
+ const badgeList = [];
6784
+ for (let i = 1; i <= 5; i++) {
6785
+ for (const sourceTypeOption of sourceTypeOptionList) {
6786
+ const badgeTypeOptionList = retrieveBadgeTypeOptionList(
6787
+ sourceTypeOption.value === "ACTIVITY"
6788
+ );
6789
+ for (const badgeTypeOption of badgeTypeOptionList) {
6790
+ badgeList.push({
6791
+ badgeDTO: {
6792
+ coterieType,
6793
+ sourceType: sourceTypeOption.value,
6794
+ badgeType: badgeTypeOption.value
6795
+ },
6796
+ level: i
6797
+ });
6798
+ }
6799
+ }
6800
+ }
6801
+ return badgeList.sort((a, b) => {
6802
+ if (a.badgeDTO.sourceType !== b.badgeDTO.sourceType) {
6803
+ return a.badgeDTO.sourceType.localeCompare(b.badgeDTO.sourceType);
6804
+ }
6805
+ return a.badgeDTO.badgeType.localeCompare(b.badgeDTO.badgeType);
6806
+ });
6807
+ };
6808
+ var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
6809
+ if (coterieType === "MANAGEMENT") {
6810
+ if (sourceType === "ACTIVITY") {
6811
+ if (badgeType === "COUNT") {
6812
+ return [
6813
+ {
6814
+ level: 1,
6815
+ value: 50
6816
+ },
6817
+ {
6818
+ level: 2,
6819
+ value: 100
6820
+ },
6821
+ {
6822
+ level: 3,
6823
+ value: 500
6824
+ },
6825
+ {
6826
+ level: 4,
6827
+ value: 1e3
6828
+ },
6829
+ {
6830
+ level: 5,
6831
+ value: 5e3
6832
+ }
6833
+ ];
6834
+ }
6835
+ } else if (sourceType === "LOGIN") {
6836
+ return [
6837
+ {
6838
+ level: 1,
6839
+ value: 3
6840
+ },
6841
+ {
6842
+ level: 2,
6843
+ value: 7
6844
+ },
6845
+ {
6846
+ level: 3,
6847
+ value: 15
6848
+ },
6849
+ {
6850
+ level: 4,
6851
+ value: 30
6852
+ },
6853
+ {
6854
+ level: 5,
6855
+ value: 90
6856
+ }
6857
+ ];
6858
+ } else {
6859
+ if (badgeType === "COUNT") {
6860
+ return [
6861
+ {
6862
+ level: 1,
6863
+ value: 5
6864
+ },
6865
+ {
6866
+ level: 2,
6867
+ value: 10
6868
+ },
6869
+ {
6870
+ level: 3,
6871
+ value: 50
6872
+ },
6873
+ {
6874
+ level: 4,
6875
+ value: 100
6876
+ },
6877
+ {
6878
+ level: 5,
6879
+ value: 500
6880
+ }
6881
+ ];
6882
+ } else {
6883
+ return [
6884
+ {
6885
+ level: 1,
6886
+ value: 25
6887
+ },
6888
+ {
6889
+ level: 2,
6890
+ value: 50
6891
+ },
6892
+ {
6893
+ level: 3,
6894
+ value: 250
6895
+ },
6896
+ {
6897
+ level: 4,
6898
+ value: 500
6899
+ },
6900
+ {
6901
+ level: 5,
6902
+ value: 1e3
6903
+ }
6904
+ ];
6905
+ }
6906
+ }
6907
+ } else {
6908
+ if (sourceType === "ACTIVITY") {
6909
+ if (badgeType === "COUNT") {
6910
+ return [
6911
+ {
6912
+ level: 1,
6913
+ value: 10
6914
+ },
6915
+ {
6916
+ level: 2,
6917
+ value: 50
6918
+ },
6919
+ {
6920
+ level: 3,
6921
+ value: 100
6922
+ },
6923
+ {
6924
+ level: 4,
6925
+ value: 500
6926
+ },
6927
+ {
6928
+ level: 5,
6929
+ value: 1e3
6930
+ }
6931
+ ];
6932
+ } else {
6933
+ return [
6934
+ {
6935
+ level: 1,
6936
+ value: 5
6937
+ },
6938
+ {
6939
+ level: 2,
6940
+ value: 25
6941
+ },
6942
+ {
6943
+ level: 3,
6944
+ value: 50
6945
+ },
6946
+ {
6947
+ level: 4,
6948
+ value: 250
6949
+ },
6950
+ {
6951
+ level: 5,
6952
+ value: 500
6953
+ }
6954
+ ];
6955
+ }
6956
+ } else if (sourceType === "LOGIN") {
6957
+ return [];
6958
+ } else {
6959
+ if (badgeType === "COUNT") {
6960
+ return [
6961
+ {
6962
+ level: 1,
6963
+ value: 1
6964
+ },
6965
+ {
6966
+ level: 2,
6967
+ value: 5
6968
+ },
6969
+ {
6970
+ level: 3,
6971
+ value: 25
6972
+ },
6973
+ {
6974
+ level: 4,
6975
+ value: 50
6976
+ },
6977
+ {
6978
+ level: 5,
6979
+ value: 100
6980
+ }
6981
+ ];
6982
+ }
6983
+ }
6984
+ }
6985
+ return [];
6986
+ };
6987
+ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, badgeType, level) => {
6988
+ const badgeRuleList = retrieveBadgeRuleListByParams(
6989
+ coterieType,
6990
+ sourceType,
6991
+ badgeType
6992
+ );
6993
+ const foundBadgeRule = badgeRuleList[level - 1];
6994
+ if (coterieType === "MANAGEMENT") {
6995
+ if (sourceType === "ACTIVITY") {
6996
+ if (badgeType === "COUNT") {
6997
+ if (foundBadgeRule) {
6998
+ return `${i18n_default.t("total_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_count_text_2")}`;
6999
+ } else {
7000
+ return i18n_default.t("none_activity_count_text");
7001
+ }
7002
+ } else if (badgeType === "CORRECT") {
7003
+ if (foundBadgeRule) {
7004
+ return `${i18n_default.t("total_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_correct_text_2")}`;
7005
+ } else {
7006
+ return i18n_default.t("none_activity_correct_text");
7007
+ }
7008
+ } else if (badgeType === "REVIEW") {
7009
+ if (foundBadgeRule) {
7010
+ return `${i18n_default.t("total_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_review_text_2")}`;
7011
+ } else {
7012
+ return i18n_default.t("none_activity_review_text");
7013
+ }
7014
+ } else if (badgeType === "TIME_SPENT") {
7015
+ if (foundBadgeRule) {
7016
+ return `${i18n_default.t("total_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_time_spent_text_2")}`;
7017
+ } else {
7018
+ return i18n_default.t("none_activity_time_spent_text");
7019
+ }
7020
+ }
7021
+ } else if (sourceType === "CATCHTIVITY") {
7022
+ if (badgeType === "COUNT") {
7023
+ if (foundBadgeRule) {
7024
+ return `${i18n_default.t("total_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchtivity_count_text_2")}`;
7025
+ } else {
7026
+ return i18n_default.t("none_catchtivity_count_text");
7027
+ }
7028
+ }
7029
+ } else if (sourceType === "CATCHXAM") {
7030
+ if (badgeType === "COUNT") {
7031
+ if (foundBadgeRule) {
7032
+ return `${i18n_default.t("total_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchxam_count_text_2")}`;
7033
+ } else {
7034
+ return i18n_default.t("none_catchxam_count_text");
7035
+ }
7036
+ }
7037
+ } else if (sourceType === "ETUDE") {
7038
+ if (badgeType === "COUNT") {
7039
+ if (foundBadgeRule) {
7040
+ return `${i18n_default.t("total_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_etude_count_text_2")}`;
7041
+ } else {
7042
+ return i18n_default.t("none_etude_count_text");
7043
+ }
7044
+ }
7045
+ } else if (sourceType === "CONTEST") {
7046
+ if (badgeType === "COUNT") {
7047
+ if (foundBadgeRule) {
7048
+ return `${i18n_default.t("total_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_contest_count_text_2")}`;
7049
+ } else {
7050
+ return i18n_default.t("none_contest_count_text");
7051
+ }
7052
+ }
7053
+ } else if (sourceType === "LOGIN") {
7054
+ if (badgeType === "COUNT") {
7055
+ if (foundBadgeRule) {
7056
+ return `${i18n_default.t("total_login_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_login_count_text_2")}`;
7057
+ } else {
7058
+ return i18n_default.t("none_login_count_text");
7059
+ }
7060
+ }
7061
+ }
7062
+ } else {
7063
+ if (sourceType === "ACTIVITY") {
7064
+ if (badgeType === "COUNT") {
7065
+ if (foundBadgeRule) {
7066
+ return `${i18n_default.t("coterie_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_count_text_2")}`;
7067
+ } else {
7068
+ return i18n_default.t("none_activity_count_text");
7069
+ }
7070
+ } else if (badgeType === "CORRECT") {
7071
+ if (foundBadgeRule) {
7072
+ return `${i18n_default.t("coterie_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_correct_text_2")}`;
7073
+ } else {
7074
+ return i18n_default.t("none_activity_correct_text");
7075
+ }
7076
+ } else if (badgeType === "REVIEW") {
7077
+ if (foundBadgeRule) {
7078
+ return `${i18n_default.t("coterie_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_review_text_2")}`;
7079
+ } else {
7080
+ return i18n_default.t("none_activity_review_text");
7081
+ }
7082
+ } else if (badgeType === "TIME_SPENT") {
7083
+ if (foundBadgeRule) {
7084
+ return `${i18n_default.t("coterie_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_time_spent_text_2")}`;
7085
+ } else {
7086
+ return i18n_default.t("none_activity_time_spent_text");
7087
+ }
7088
+ }
7089
+ } else if (sourceType === "CATCHTIVITY") {
7090
+ if (badgeType === "COUNT") {
7091
+ if (foundBadgeRule) {
7092
+ return `${i18n_default.t("coterie_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchtivity_count_text_2")}`;
7093
+ } else {
7094
+ return i18n_default.t("none_catchtivity_count_text");
7095
+ }
7096
+ }
7097
+ } else if (sourceType === "CATCHXAM") {
7098
+ if (badgeType === "COUNT") {
7099
+ if (foundBadgeRule) {
7100
+ return `${i18n_default.t("coterie_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchxam_count_text_2")}`;
7101
+ } else {
7102
+ return i18n_default.t("none_catchxam_count_text");
7103
+ }
7104
+ }
7105
+ } else if (sourceType === "ETUDE") {
7106
+ if (badgeType === "COUNT") {
7107
+ if (foundBadgeRule) {
7108
+ return `${i18n_default.t("coterie_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_etude_count_text_2")}`;
7109
+ } else {
7110
+ return i18n_default.t("none_etude_count_text");
7111
+ }
7112
+ }
7113
+ } else if (sourceType === "CONTEST") {
7114
+ if (badgeType === "COUNT") {
7115
+ if (foundBadgeRule) {
7116
+ return `${i18n_default.t("coterie_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_contest_count_text_2")}`;
7117
+ } else {
7118
+ return i18n_default.t("none_contest_count_text");
7119
+ }
7120
+ }
7121
+ } else if (sourceType === "LOGIN") {
7122
+ }
7123
+ }
7124
+ return null;
7125
+ };
7126
+
7127
+ // src/utilization/IndividualModelUtilization.ts
7128
+ var NUMBER_OF_ACTIVITY_TEMPLATE = 9;
7129
+ var NUMBER_OF_TAXONOMY = 6;
7130
+ var INITIAL_TAXONOMY_VALUE = 1 / NUMBER_OF_TAXONOMY;
7131
+ var INITIAL_TEMPLATE_VALUE = 1 / NUMBER_OF_ACTIVITY_TEMPLATE;
7132
+ var constructBaseVerbalIndvidualModel = (userId) => {
7133
+ return {
7134
+ bloomBloomAnalyze: INITIAL_TAXONOMY_VALUE,
7135
+ bloomBloomApply: INITIAL_TAXONOMY_VALUE,
7136
+ bloomBloomCreate: INITIAL_TAXONOMY_VALUE,
7137
+ bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
7138
+ bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
7139
+ bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
7140
+ dropdown: INITIAL_TEMPLATE_VALUE,
7141
+ coterieField: "VERBAL",
7142
+ fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
7143
+ grouping: INITIAL_TEMPLATE_VALUE,
7144
+ matching: INITIAL_TEMPLATE_VALUE,
7145
+ mcma: INITIAL_TEMPLATE_VALUE,
7146
+ mcsa: INITIAL_TEMPLATE_VALUE,
7147
+ openEnded: INITIAL_TEMPLATE_VALUE,
7148
+ ordering: INITIAL_TEMPLATE_VALUE,
7149
+ trueFalse: INITIAL_TEMPLATE_VALUE,
7150
+ userId
7151
+ };
7152
+ };
7153
+ var constructBaseNumericIndividualModel = (userId) => {
7154
+ return {
7155
+ bloomBloomAnalyze: INITIAL_TAXONOMY_VALUE,
7156
+ bloomBloomApply: INITIAL_TAXONOMY_VALUE,
7157
+ bloomBloomCreate: INITIAL_TAXONOMY_VALUE,
7158
+ bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
7159
+ bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
7160
+ bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
7161
+ dropdown: INITIAL_TEMPLATE_VALUE,
7162
+ coterieField: "NUMERIC",
7163
+ fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
7164
+ grouping: INITIAL_TEMPLATE_VALUE,
7165
+ matching: INITIAL_TEMPLATE_VALUE,
7166
+ mcma: INITIAL_TEMPLATE_VALUE,
7167
+ mcsa: INITIAL_TEMPLATE_VALUE,
7168
+ openEnded: INITIAL_TEMPLATE_VALUE,
7169
+ ordering: INITIAL_TEMPLATE_VALUE,
7170
+ trueFalse: INITIAL_TEMPLATE_VALUE,
7171
+ userId
7172
+ };
7173
+ };
7174
+
7175
+ // src/utilization/NotificationUtilization.ts
7176
+ var retrieveAnnouncementTypeOptionList = () => {
7177
+ return [
7178
+ {
7179
+ value: "USER",
7180
+ text: i18n_default.t("USER")
7181
+ },
7182
+ {
7183
+ value: "USER_PROFILE",
7184
+ text: i18n_default.t("USER_PROFILE")
7185
+ },
7186
+ {
7187
+ value: "BRAND",
7188
+ text: i18n_default.t("BRAND")
7189
+ },
7190
+ {
7191
+ value: "CAMPUS",
7192
+ text: i18n_default.t("CAMPUS")
7193
+ },
7194
+ {
7195
+ value: "INSTITUTION",
7196
+ text: i18n_default.t("INSTITUTION")
7197
+ },
7198
+ {
7199
+ value: "SEASON",
7200
+ text: i18n_default.t("SEASON")
7201
+ },
7202
+ {
7203
+ value: "GRADE",
7204
+ text: i18n_default.t("GRADE")
7205
+ },
7206
+ {
7207
+ value: "BRANCH",
7208
+ text: i18n_default.t("BRANCH")
7209
+ }
7210
+ ];
7211
+ };
7212
+ var retrieveAnnouncementAudienceOptionList = () => {
7213
+ return [
7214
+ {
7215
+ value: "EVERYONE",
7216
+ text: i18n_default.t("EVERYONE")
7217
+ },
7218
+ {
7219
+ value: "STAFF",
7220
+ text: i18n_default.t("STAFF")
7221
+ },
7222
+ {
7223
+ value: "COTERIE",
7224
+ text: i18n_default.t("COTERIE")
7225
+ },
7226
+ {
7227
+ value: "LEARNER",
7228
+ text: i18n_default.t("LEARNER")
7229
+ }
7230
+ ];
7231
+ };
7232
+
7233
+ // src/utilization/ReportUtilization.ts
7234
+ var retrieveReportTypeOptionList = () => {
7235
+ return [
7236
+ {
7237
+ value: "USER",
7238
+ text: i18n_default.t("USER")
7239
+ },
7240
+ {
7241
+ value: "USER_PROFILE",
7242
+ text: i18n_default.t("USER_PROFILE")
7243
+ },
7244
+ {
7245
+ value: "BRANCH",
7246
+ text: i18n_default.t("BRANCH")
7247
+ },
7248
+ {
7249
+ value: "GRADE",
7250
+ text: i18n_default.t("GRADE")
7251
+ },
7252
+ {
7253
+ value: "SEASON",
7254
+ text: i18n_default.t("SEASON")
7255
+ },
7256
+ {
7257
+ value: "INSTITUTION",
7258
+ text: i18n_default.t("INSTITUTION")
7259
+ },
7260
+ {
7261
+ value: "CAMPUS",
7262
+ text: i18n_default.t("CAMPUS")
7263
+ },
7264
+ {
7265
+ value: "REGION",
7266
+ text: i18n_default.t("REGION")
7267
+ },
7268
+ {
7269
+ value: "BRAND",
7270
+ text: i18n_default.t("BRAND")
7271
+ }
7272
+ ];
7273
+ };
7274
+
5170
7275
  // src/utilization/StorageUtilization.ts
5171
7276
  var convertDataURLtoFile = (dataurl, filename) => {
5172
7277
  var arr = dataurl.split(","), mime = (arr[0].match(/:(.*?);/) || [])[1], bstr = atob(arr[arr.length - 1]), n = bstr.length, u8arr = new Uint8Array(n);
@@ -5193,6 +7298,44 @@ var retrieveDocumentTypeFromExtension = (format) => {
5193
7298
  return "AUDIO";
5194
7299
  }
5195
7300
  };
7301
+
7302
+ // src/utilization/TokenUtilization.ts
7303
+ var retrieveTokenUsageTypeOptionList = () => {
7304
+ return [
7305
+ {
7306
+ text: i18n_default.t("AI"),
7307
+ value: "AI"
7308
+ },
7309
+ {
7310
+ text: i18n_default.t("SYSTEM"),
7311
+ value: "SYSTEM"
7312
+ }
7313
+ ];
7314
+ };
7315
+ var retrieveTokenUsageSubTypeOptionList = () => {
7316
+ return [
7317
+ {
7318
+ text: i18n_default.t("ACTIVITY_EVALUATION"),
7319
+ value: "ACTIVITY_EVALUATION"
7320
+ },
7321
+ {
7322
+ text: i18n_default.t("ACTIVITY_TEMPLATE_GENERATION"),
7323
+ value: "ACTIVITY_TEMPLATE_GENERATION"
7324
+ },
7325
+ {
7326
+ text: i18n_default.t("IMAGE_PROCESSING"),
7327
+ value: "IMAGE_PROCESSING"
7328
+ },
7329
+ {
7330
+ text: i18n_default.t("ACTIVITY_SOLUTION"),
7331
+ value: "ACTIVITY_SOLUTION"
7332
+ },
7333
+ {
7334
+ text: i18n_default.t("ACTIVITY_HINT"),
7335
+ value: "ACTIVITY_HINT"
7336
+ }
7337
+ ];
7338
+ };
5196
7339
  export {
5197
7340
  ApproveButton_default as ApproveButton,
5198
7341
  BaseImage_default as BaseImage,
@@ -5209,35 +7352,75 @@ export {
5209
7352
  MCMAActivityContent_default as MCMAActivityContent,
5210
7353
  MCSAActivityContent_default as MCSAActivityContent,
5211
7354
  MatchingActivityContent_default as MatchingActivityContent,
7355
+ ONE_DAY,
7356
+ ONE_HOUR,
7357
+ ONE_MONTH,
7358
+ ONE_WEEK,
5212
7359
  OpenEndedActivityContent_default as OpenEndedActivityContent,
5213
7360
  OrderingActivityContent_default as OrderingActivityContent,
5214
7361
  PrimaryButton_default as PrimaryButton,
5215
7362
  SecondaryButton_default as SecondaryButton,
7363
+ SelectionBox_default as SelectionBox,
7364
+ SelectionCheckbox_default as SelectionCheckbox,
7365
+ THREE_MONTHS,
5216
7366
  TrueFalseActivityContent_default as TrueFalseActivityContent,
5217
7367
  VerticalDividerLine_default as VerticalDividerLine,
7368
+ calculateLevenshteinDistance,
5218
7369
  checkActivityAnswerState,
5219
7370
  checkIfAnswerIsEmpty,
5220
7371
  constructActivityAnswerMap,
5221
7372
  constructActivityAnswerStateList,
5222
7373
  constructActivityItemListWithAnswersForAI,
5223
7374
  constructActivityItemListWithSolutionForAI,
7375
+ constructBaseNumericIndividualModel,
7376
+ constructBaseVerbalIndvidualModel,
5224
7377
  constructInputWithSpecialExpressionList,
7378
+ constructUserProfileQueryParams,
7379
+ constructWeekName,
5225
7380
  convertDataURLtoFile,
7381
+ convertToBase64,
7382
+ convertTurkishCharactersToEnglish,
7383
+ filterCategoryVersionCodeOptionList,
7384
+ filterCategoryVersionCodeOptionListByGradeDTO,
7385
+ filterCategoryVersionCodeOptionListByInstitutionDTO,
7386
+ filterCoterieTypeOptionList,
7387
+ filterGradeLevelOptionList,
7388
+ filterUserRoleOptionList,
7389
+ findAISettingsFromCurrentProfile,
5226
7390
  findBestFitActivity,
5227
7391
  getColorByIndex,
5228
7392
  i18n_default as i18n,
5229
7393
  ignoreMathematicalExpression,
5230
7394
  parseBodyMapFromData,
5231
7395
  parseContentMapFromData,
7396
+ parseJwt,
5232
7397
  parseMaterialMapFromData,
5233
7398
  retrieveActivityAnswerFromAnswerList,
5234
7399
  retrieveActivityTemplateDTOOptionList,
7400
+ retrieveAllEarnedBadgeDTOListByCoterieType,
7401
+ retrieveAllEarnedBadgeDTOListByCoterieTypeList,
7402
+ retrieveAnnouncementAudienceOptionList,
7403
+ retrieveAnnouncementTypeOptionList,
7404
+ retrieveBadgeRuleListByParams,
7405
+ retrieveBadgeRuleTextByParams,
7406
+ retrieveBranchDTOByUserProfileOptionList,
7407
+ retrieveBranchDTOOptionList,
7408
+ retrieveBrandDTOByUserProfileOptionList,
7409
+ retrieveBrandDTOOptionList,
7410
+ retrieveCampusDTOByUserProfileOptionList,
7411
+ retrieveCampusDTOOptionList,
7412
+ retrieveCategoryVersionCodeOptionList,
5235
7413
  retrieveClockTimeLeft,
5236
7414
  retrieveColorByScore,
5237
7415
  retrieveContentTypeOptionList,
5238
7416
  retrieveContestTypeOptionList,
5239
7417
  retrieveCoterieTypeFromStandardExamCoterieType,
7418
+ retrieveCoterieTypeOptionList,
7419
+ retrieveCountryCodeOptionList,
7420
+ retrieveCountryNameOptionList,
5240
7421
  retrieveCurrentDefaultDataMap,
7422
+ retrieveDateIntervalOptionList,
7423
+ retrieveDefaultUserRoleOptionList,
5241
7424
  retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
5242
7425
  retrieveDocumentTypeFromAcceptedFormat,
5243
7426
  retrieveDocumentTypeFromExtension,
@@ -5245,7 +7428,23 @@ export {
5245
7428
  retrieveDurationInSecondsOptionList,
5246
7429
  retrieveDurationTypeOptionList,
5247
7430
  retrieveEachTimeSpentInSeconds,
7431
+ retrieveEnableOptionList,
7432
+ retrieveExternalRegistrationDTOOptionList,
5248
7433
  retrieveFrequencyTypeOptionList,
7434
+ retrieveGenderOptionList,
7435
+ retrieveGradeDTOByUserProfileOptionList,
7436
+ retrieveGradeDTOOptionList,
7437
+ retrieveGradeLevelOptionList,
7438
+ retrieveInstitutionDTOByUserProfileOptionList,
7439
+ retrieveInstitutionDTOOptionList,
7440
+ retrieveInstitutionTypeOptionList,
7441
+ retrieveMonthNameByIndex,
7442
+ retrieveOtherBadgeDTOList,
7443
+ retrievePhoneNumberAreaCodeList,
7444
+ retrieveProvinceNameOptionList,
7445
+ retrieveReportTypeOptionList,
7446
+ retrieveSeasonDTOByUserProfileOptionList,
7447
+ retrieveSeasonDTOOptionList,
5249
7448
  retrieveStandardExamCoterieTypeOptionListByStandardExamType,
5250
7449
  retrieveStandardExamTypeIcon,
5251
7450
  retrieveStandardExamTypeOptionList,
@@ -5253,8 +7452,12 @@ export {
5253
7452
  retrieveTaxonomyGroupName,
5254
7453
  retrieveTaxonomyName,
5255
7454
  retrieveTaxonomyType,
7455
+ retrieveTokenUsageSubTypeOptionList,
7456
+ retrieveTokenUsageTypeOptionList,
5256
7457
  retrieveTotalTimeSpentInMinutes,
5257
7458
  retrieveTotalTimeSpentInSeconds,
7459
+ retrieveUserAuthorityGeneralOptionList,
7460
+ retrieveUserRoleOptionList,
5258
7461
  retrieveValidationRequirementList,
5259
7462
  shuffleArray,
5260
7463
  useScreenSize_default as useScreenSize