@saltcorn/data 1.1.4-beta.9 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/base-plugin/actions.d.ts +2 -2
  2. package/dist/base-plugin/actions.js +1 -1
  3. package/dist/base-plugin/actions.js.map +1 -1
  4. package/dist/base-plugin/fieldviews.d.ts +3 -3
  5. package/dist/base-plugin/fieldviews.d.ts.map +1 -1
  6. package/dist/base-plugin/fileviews.d.ts +8 -8
  7. package/dist/base-plugin/fileviews.js +4 -2
  8. package/dist/base-plugin/fileviews.js.map +1 -1
  9. package/dist/base-plugin/index.d.ts +47 -47
  10. package/dist/base-plugin/types.d.ts +35 -35
  11. package/dist/base-plugin/types.d.ts.map +1 -1
  12. package/dist/base-plugin/types.js +3 -2
  13. package/dist/base-plugin/types.js.map +1 -1
  14. package/dist/base-plugin/viewtemplates/edit.d.ts +1 -1
  15. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  16. package/dist/base-plugin/viewtemplates/edit.js +7 -2
  17. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  18. package/dist/base-plugin/viewtemplates/feed.d.ts +1 -1
  19. package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
  20. package/dist/base-plugin/viewtemplates/feed.js +1 -1
  21. package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
  22. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  23. package/dist/base-plugin/viewtemplates/list.js +13 -4
  24. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  25. package/dist/base-plugin/viewtemplates/listshowlist.d.ts +1 -1
  26. package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
  27. package/dist/base-plugin/viewtemplates/room.d.ts +2 -2
  28. package/dist/base-plugin/viewtemplates/room.d.ts.map +1 -1
  29. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  30. package/dist/base-plugin/viewtemplates/show.js +2 -1
  31. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  32. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +4 -4
  33. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  34. package/dist/base-plugin/viewtemplates/viewable_fields.js +32 -24
  35. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  36. package/dist/base-plugin/viewtemplates/workflow-room.d.ts +1 -1
  37. package/dist/base-plugin/viewtemplates/workflow-room.d.ts.map +1 -1
  38. package/dist/db/state.d.ts +2 -0
  39. package/dist/db/state.d.ts.map +1 -1
  40. package/dist/db/state.js +26 -0
  41. package/dist/db/state.js.map +1 -1
  42. package/dist/models/discovery.d.ts +1 -1
  43. package/dist/models/discovery.d.ts.map +1 -1
  44. package/dist/models/discovery.js +33 -11
  45. package/dist/models/discovery.js.map +1 -1
  46. package/dist/models/email.d.ts.map +1 -1
  47. package/dist/models/email.js +11 -9
  48. package/dist/models/email.js.map +1 -1
  49. package/dist/models/index.d.ts +1 -1
  50. package/dist/models/index.d.ts.map +1 -1
  51. package/dist/models/table.d.ts +3 -3
  52. package/dist/models/table.d.ts.map +1 -1
  53. package/dist/models/table.js +12 -4
  54. package/dist/models/table.js.map +1 -1
  55. package/dist/models/workflow_run.js +1 -1
  56. package/dist/models/workflow_run.js.map +1 -1
  57. package/dist/plugin-helper.d.ts +1 -1
  58. package/dist/plugin-helper.d.ts.map +1 -1
  59. package/dist/plugin-helper.js +16 -9
  60. package/dist/plugin-helper.js.map +1 -1
  61. package/dist/tests/exact_views.test.js +9 -21
  62. package/dist/tests/exact_views.test.js.map +1 -1
  63. package/dist/tests/list.test.js +3 -3
  64. package/dist/tests/list.test.js.map +1 -1
  65. package/dist/tests/mocks.d.ts +4 -4
  66. package/dist/tests/state.test.js +11 -13
  67. package/dist/tests/state.test.js.map +1 -1
  68. package/dist/utils.d.ts +2 -0
  69. package/dist/utils.d.ts.map +1 -1
  70. package/dist/utils.js +6 -0
  71. package/dist/utils.js.map +1 -1
  72. package/package.json +8 -8
@@ -19,7 +19,7 @@ export namespace string {
19
19
  export { isEdit_1 as isEdit };
20
20
  let description_2: string;
21
21
  export { description_2 as description };
22
- export function run_1(s: any): any;
22
+ export function run_1(s: any): string;
23
23
  export { run_1 as run };
24
24
  }
25
25
  export namespace code {
@@ -27,7 +27,7 @@ export namespace string {
27
27
  export { isEdit_2 as isEdit };
28
28
  let description_3: string;
29
29
  export { description_3 as description };
30
- export function run_2(s: any): any;
30
+ export function run_2(s: any): string;
31
31
  export { run_2 as run };
32
32
  }
33
33
  export namespace monospace_block {
@@ -46,7 +46,7 @@ export namespace string {
46
46
  })[];
47
47
  let description_4: string;
48
48
  export { description_4 as description };
49
- export function run_3(s: any, req: any, attrs?: {}): any;
49
+ export function run_3(s: any, req: any, attrs?: {}): string;
50
50
  export { run_3 as run };
51
51
  }
52
52
  export namespace ellipsize {
@@ -76,7 +76,7 @@ export namespace string {
76
76
  export { description_6 as description };
77
77
  let isEdit_5: boolean;
78
78
  export { isEdit_5 as isEdit };
79
- export function run_5(s: any, req: any, attrs?: {}): any;
79
+ export function run_5(s: any, req: any, attrs?: {}): string;
80
80
  export { run_5 as run };
81
81
  }
82
82
  export namespace img_from_url {
@@ -84,7 +84,7 @@ export namespace string {
84
84
  export { isEdit_6 as isEdit };
85
85
  let description_7: string;
86
86
  export { description_7 as description };
87
- export function run_6(s: any, req: any, attrs: any): any;
87
+ export function run_6(s: any, req: any, attrs: any): string;
88
88
  export { run_6 as run };
89
89
  }
90
90
  export namespace as_header {
@@ -92,7 +92,7 @@ export namespace string {
92
92
  export { isEdit_7 as isEdit };
93
93
  let description_8: string;
94
94
  export { description_8 as description };
95
- export function run_7(s: any): any;
95
+ export function run_7(s: any): string;
96
96
  export { run_7 as run };
97
97
  }
98
98
  export { show_with_html };
@@ -125,7 +125,7 @@ export namespace string {
125
125
  sublabel?: undefined;
126
126
  })[];
127
127
  export { configFields_3 as configFields };
128
- export function run_8(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
128
+ export function run_8(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
129
129
  export { run_8 as run };
130
130
  }
131
131
  export namespace fill_formula_btn {
@@ -175,7 +175,7 @@ export namespace string {
175
175
  default?: undefined;
176
176
  })[];
177
177
  export { configFields_4 as configFields };
178
- export function run_9(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
178
+ export function run_9(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
179
179
  export { run_9 as run };
180
180
  }
181
181
  export namespace make_unique {
@@ -208,7 +208,7 @@ export namespace string {
208
208
  options?: undefined;
209
209
  })[];
210
210
  export { configFields_5 as configFields };
211
- export function run_10(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
211
+ export function run_10(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
212
212
  export { run_10 as run };
213
213
  }
214
214
  export namespace textarea {
@@ -224,7 +224,7 @@ export namespace string {
224
224
  label: string;
225
225
  }[];
226
226
  export { configFields_6 as configFields };
227
- export function run_11(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
227
+ export function run_11(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
228
228
  export { run_11 as run };
229
229
  }
230
230
  export namespace code_editor {
@@ -244,7 +244,7 @@ export namespace string {
244
244
  };
245
245
  }[];
246
246
  export { configFields_7 as configFields };
247
- export function run_12(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
247
+ export function run_12(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
248
248
  export { run_12 as run };
249
249
  }
250
250
  export namespace radio_group {
@@ -258,7 +258,7 @@ export namespace string {
258
258
  export { configFields_8 as configFields };
259
259
  let description_14: string;
260
260
  export { description_14 as description };
261
- export function run_13(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
261
+ export function run_13(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
262
262
  export { run_13 as run };
263
263
  }
264
264
  export namespace checkbox_group {
@@ -273,7 +273,7 @@ export namespace string {
273
273
  label: string;
274
274
  }[];
275
275
  export { configFields_9 as configFields };
276
- export function run_14(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
276
+ export function run_14(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
277
277
  export { run_14 as run };
278
278
  }
279
279
  export namespace password {
@@ -283,7 +283,7 @@ export namespace string {
283
283
  export { blockDisplay_5 as blockDisplay };
284
284
  let description_16: string;
285
285
  export { description_16 as description };
286
- export function run_15(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
286
+ export function run_15(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
287
287
  export { run_15 as run };
288
288
  }
289
289
  }
@@ -345,7 +345,7 @@ export namespace int {
345
345
  type: string;
346
346
  }[];
347
347
  export { configFields_10 as configFields };
348
- export function run_17(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
348
+ export function run_17(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
349
349
  export { run_17 as run };
350
350
  }
351
351
  export { edit_1 as edit };
@@ -362,7 +362,7 @@ export namespace int {
362
362
  export { description_20 as description };
363
363
  let blockDisplay_7: boolean;
364
364
  export { blockDisplay_7 as blockDisplay };
365
- export function run_18(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any): any;
365
+ export function run_18(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any): string;
366
366
  export { run_18 as run };
367
367
  }
368
368
  export namespace range_interval {
@@ -380,7 +380,7 @@ export namespace int {
380
380
  export { blockDisplay_8 as blockDisplay };
381
381
  let description_21: string;
382
382
  export { description_21 as description };
383
- export function run_19(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
383
+ export function run_19(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
384
384
  export { run_19 as run };
385
385
  }
386
386
  export namespace progress_bar {
@@ -427,7 +427,7 @@ export namespace int {
427
427
  export { isEdit_20 as isEdit };
428
428
  let description_22: string;
429
429
  export { description_22 as description };
430
- export function run_20(v: any, req: any, attrs?: {}): any;
430
+ export function run_20(v: any, req: any, attrs?: {}): string;
431
431
  export { run_20 as run };
432
432
  }
433
433
  export namespace heat_cell {
@@ -488,7 +488,7 @@ export namespace int {
488
488
  export { isEdit_21 as isEdit };
489
489
  let description_23: string;
490
490
  export { description_23 as description };
491
- export function run_21(v: any, req: any, attrs?: {}): any;
491
+ export function run_21(v: any, req: any, attrs?: {}): string;
492
492
  export { run_21 as run };
493
493
  }
494
494
  export namespace above_input {
@@ -504,7 +504,7 @@ export namespace int {
504
504
  type: string;
505
505
  }[];
506
506
  export { configFields_15 as configFields };
507
- export function run_22(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
507
+ export function run_22(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
508
508
  export { run_22 as run };
509
509
  }
510
510
  export namespace below_input { }
@@ -523,7 +523,7 @@ export namespace int {
523
523
  export { isEdit_23 as isEdit };
524
524
  let blockDisplay_10: boolean;
525
525
  export { blockDisplay_10 as blockDisplay };
526
- export function run_23(v: any, req: any, attrs?: {}): any;
526
+ export function run_23(v: any, req: any, attrs?: {}): string;
527
527
  export { run_23 as run };
528
528
  }
529
529
  export namespace edit_star_rating {
@@ -540,7 +540,7 @@ export namespace int {
540
540
  export { isEdit_24 as isEdit };
541
541
  let blockDisplay_11: boolean;
542
542
  export { blockDisplay_11 as blockDisplay };
543
- export function run_24(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
543
+ export function run_24(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
544
544
  export { run_24 as run };
545
545
  }
546
546
  export { to_locale_string };
@@ -552,7 +552,7 @@ export namespace int {
552
552
  let description_26: string;
553
553
  export { description_26 as description };
554
554
  export function fill_options(field: any): Promise<void>;
555
- export function run_25(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
555
+ export function run_25(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
556
556
  export { run_25 as run };
557
557
  }
558
558
  }
@@ -583,7 +583,7 @@ export namespace bool {
583
583
  export { isEdit_26 as isEdit };
584
584
  let description_28: string;
585
585
  export { description_28 as description };
586
- export function run_26(v: any, req: any): any;
586
+ export function run_26(v: any, req: any): string;
587
587
  export { run_26 as run };
588
588
  }
589
589
  export { show_1 as show };
@@ -592,7 +592,7 @@ export namespace bool {
592
592
  export { isEdit_27 as isEdit };
593
593
  let description_29: string;
594
594
  export { description_29 as description };
595
- export function run_27(v: any): any;
595
+ export function run_27(v: any): string;
596
596
  export { run_27 as run };
597
597
  }
598
598
  export namespace TrueFalse {
@@ -622,7 +622,7 @@ export namespace bool {
622
622
  attributes?: undefined;
623
623
  })[];
624
624
  export { configFields_18 as configFields };
625
- export function run_29(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
625
+ export function run_29(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
626
626
  export { run_29 as run };
627
627
  }
628
628
  export { edit_2 as edit };
@@ -631,7 +631,7 @@ export namespace bool {
631
631
  export { isEdit_30 as isEdit };
632
632
  let description_32: string;
633
633
  export { description_32 as description };
634
- export function run_30(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
634
+ export function run_30(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
635
635
  export { run_30 as run };
636
636
  }
637
637
  export { _switch as switch };
@@ -647,7 +647,7 @@ export namespace bool {
647
647
  type: string;
648
648
  }[];
649
649
  export { configFields_19 as configFields };
650
- export function run_31(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
650
+ export function run_31(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
651
651
  export { run_31 as run };
652
652
  }
653
653
  }
@@ -707,7 +707,7 @@ export namespace date {
707
707
  };
708
708
  }[];
709
709
  export { configFields_20 as configFields };
710
- export function run_34(d: any, req: any, options: any): any;
710
+ export function run_34(d: any, req: any, options: any): string;
711
711
  export { run_34 as run };
712
712
  }
713
713
  export namespace relative {
@@ -734,7 +734,7 @@ export namespace date {
734
734
  export { blockDisplay_13 as blockDisplay };
735
735
  let description_40: string;
736
736
  export { description_40 as description };
737
- export function run_37(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
737
+ export function run_37(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
738
738
  export { run_37 as run };
739
739
  }
740
740
  export { edit_3 as edit };
@@ -745,7 +745,7 @@ export namespace date {
745
745
  export { blockDisplay_14 as blockDisplay };
746
746
  let description_41: string;
747
747
  export { description_41 as description };
748
- export function run_38(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
748
+ export function run_38(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
749
749
  export { run_38 as run };
750
750
  }
751
751
  }
@@ -805,7 +805,7 @@ export namespace float {
805
805
  type: string;
806
806
  }[];
807
807
  export { configFields_21 as configFields };
808
- export function run_40(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
808
+ export function run_40(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
809
809
  export { run_40 as run };
810
810
  }
811
811
  export { edit_4 as edit };
@@ -824,7 +824,7 @@ export namespace float {
824
824
  export { isFilter_3 as isFilter };
825
825
  let blockDisplay_16: boolean;
826
826
  export { blockDisplay_16 as blockDisplay };
827
- export function run_41(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
827
+ export function run_41(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
828
828
  export { run_41 as run };
829
829
  }
830
830
  export { above_input_1 as above_input };
@@ -858,7 +858,7 @@ export namespace color {
858
858
  export { isEdit_42 as isEdit };
859
859
  let description_46: string;
860
860
  export { description_46 as description };
861
- export function run_42(s: any): any;
861
+ export function run_42(s: any): string;
862
862
  export { run_42 as run };
863
863
  }
864
864
  export { show_4 as show };
@@ -870,7 +870,7 @@ export namespace color {
870
870
  export { blockDisplay_17 as blockDisplay };
871
871
  let description_47: string;
872
872
  export { description_47 as description };
873
- export function run_43(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
873
+ export function run_43(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
874
874
  export { run_43 as run };
875
875
  }
876
876
  export { edit_5 as edit };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";cA4tBa,MAAM;;kBAGN,MAAM;;IAQL,+CAsFX;IAMS;;gBAK+D;;;;;;YAehE,oCAAyB;;;;;;;YAKzB,mCACiE;;;;;;;;YAKjE,mCAA+C;;;;;;;;;;;;;;;;;;;YAc/C,yDA8CJ;;;;;;;;;;;;;;;YAcI,4DAIJ;;;;;;;;;;;;;;;YAkBI,yDAGG;;;;;;;;YAUH,yDAAmE;;;;;;;;YAWnE,mCAA6B;;;;;;;;;;YAapB;;;;;;;;;;;;;;;;;;;;;iBAmDb;;YACI,6FAgGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDH,6FAyCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCE,8FAqBF;;;;;;;;;;;;;;;;YA4BE,8FAkBF;;;;;;;;;;;;;;;;;;;;YA2BE,8FAkBF;;;;;;;;;;;;;;YAiBE,8FAcyB;;;;;;;;;;;;;;;YAczB,8FAYoB;;;;;;;;;;YAWpB,8FAWD;;;;IAOF,0CAQL;;QAYK;;mBAAmB;QAMZ;;mBAAyD;;IAOpE,+FAYC;IAMkB,iFAEwB;;;gBAuBlC,MAAM;;;;oBAGN,MAAM;;;;IAUP;;;gBAAoD;;;;;;;;;;;;;;;;;;YAkBrD,uCAAc;;;;;;;;;;;;;;;;YAyBd,8FAwBJ;;;;;YA5iDS;;;;gBAOb;;;;;;;;YAII,yGAmBD;;;;YAGU;;;;gBAOb;;;;;;;;;;YAOI,qHAmCJ;;;;YAaa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiDb;;;;;;YAII,0DAoE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;;;;;sBAq8CO,MAAM,EAAE;;IAgBb,+DAYL;;IAMC,mEAKC;;;;gBA7MQ,MAAM;;;;oBAGN,MAAM;;;;IAOP,uCAAY;;;;;;;;YAeb,uCAMG;;;;;;;;;;;;YAYH,iGAWD;;;;;;sBAGG,MAAM,EAAE;;IAMb,0CAOL;;IAIS,sCAET;;;;;;;;;;;;;;;;;;;IA5iDI,6DAUJ;;;;;;IAmSa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoHb;;;;IAEI,6DAoBJ"}
@@ -11,7 +11,7 @@ const moment = require("moment");
11
11
  const { input, select, option, text, div, h3, a, i, button, textarea, span, img, text_attr, label, script, optgroup, domReady, section, pre, code, style, time, } = require("@saltcorn/markup/tags");
12
12
  const { contract, is } = require("contractis");
13
13
  const { radio_group, checkbox_group } = require("@saltcorn/markup/helpers");
14
- const { getState } = require("../db/state");
14
+ const { getState, getApp__ } = require("../db/state");
15
15
  const { localeDate, localeDateTime } = require("@saltcorn/markup");
16
16
  const { freeVariables, eval_expression } = require("../models/expression");
17
17
  const Table = require("../models/table");
@@ -411,12 +411,13 @@ const getStrOptions = (v, optsStr, exclude_values_string) => {
411
411
  .map((o) => o.trim())
412
412
  .filter(Boolean))
413
413
  : new Set([]);
414
+ const __ = typeof optsStr === "string" ? getApp__() : (s) => s;
414
415
  return typeof optsStr === "string"
415
416
  ? optsStr
416
417
  .split(",")
417
418
  .map((o) => o.trim())
418
419
  .filter((o) => eqStr(v, o) || !exclude_values.has(o))
419
- .map((o) => option({ value: text_attr(o), ...(eqStr(v, o) && { selected: true }) }, text_attr(o)))
420
+ .map((o) => option({ value: text_attr(o), ...(eqStr(v, o) && { selected: true }) }, __(text_attr(o))))
420
421
  : optsStr.map((o, ix) => o?.optgroup
421
422
  ? optgroup({ label: o.label }, o.options.map((oi) => option({
422
423
  selected: v == or_if_undefined(oi.value, oi),