@symbo.ls/uikit 2.11.119 → 2.11.122

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.cjs.js CHANGED
@@ -521,7 +521,7 @@ var require_cjs = __commonJS({
521
521
  return arr;
522
522
  };
523
523
  var createNestedObject = (arr, lastValue) => {
524
- let nestedObject = {};
524
+ const nestedObject = {};
525
525
  if (arr.length === 0) {
526
526
  return lastValue;
527
527
  }
@@ -560,7 +560,7 @@ var require_cjs = __commonJS({
560
560
  var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
561
561
  var string_exports = {};
562
562
  __export22(string_exports, {
563
- replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields3,
563
+ replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
564
564
  stringIncludesAny: () => stringIncludesAny
565
565
  });
566
566
  module22.exports = __toCommonJS22(string_exports);
@@ -572,19 +572,24 @@ var require_cjs = __commonJS({
572
572
  }
573
573
  return false;
574
574
  };
575
- var replaceLiteralsWithObjectFields3 = (str, state) => {
575
+ var replaceLiteralsWithObjectFields2 = (str, state) => {
576
+ if (!str.includes("{{"))
577
+ return str;
576
578
  return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => {
577
579
  if (parentPath) {
578
- const parentLevels = parentPath.split("../").filter(Boolean).length;
580
+ const parentLevels = parentPath.match(/\.\.\//g).length;
579
581
  let parentState = state;
580
582
  for (let i = 0; i < parentLevels; i++) {
581
583
  parentState = parentState.parent;
584
+ if (!parentState) {
585
+ return "";
586
+ }
582
587
  }
583
588
  const value = parentState[variable.trim()];
584
- return value ? `${value}` : "";
589
+ return value !== void 0 ? `${value}` : "";
585
590
  } else {
586
591
  const value = state[variable.trim()];
587
- return value ? `${value}` : "";
592
+ return value !== void 0 ? `${value}` : "";
588
593
  }
589
594
  });
590
595
  };
@@ -658,6 +663,8 @@ var require_cjs = __commonJS({
658
663
  };
659
664
  var merge5 = (element, obj, excludeFrom = []) => {
660
665
  for (const e in obj) {
666
+ if (e === "__proto__")
667
+ continue;
661
668
  if (excludeFrom.includes(e) || e.startsWith("__"))
662
669
  continue;
663
670
  const elementProp = element[e];
@@ -670,6 +677,8 @@ var require_cjs = __commonJS({
670
677
  };
671
678
  var deepMerge3 = (element, extend, excludeFrom = []) => {
672
679
  for (const e in extend) {
680
+ if (e === "__proto__")
681
+ continue;
673
682
  if (excludeFrom.includes(e) || e.startsWith("__"))
674
683
  continue;
675
684
  const elementProp = element[e];
@@ -718,6 +727,8 @@ var require_cjs = __commonJS({
718
727
  var deepClone22 = (obj, excludeFrom = []) => {
719
728
  const o = (0, import_types.isArray)(obj) ? [] : {};
720
729
  for (const prop in obj) {
730
+ if (prop === "__proto__")
731
+ continue;
721
732
  if (excludeFrom.includes(prop) || prop.startsWith("__"))
722
733
  continue;
723
734
  let objProp = obj[prop];
@@ -819,6 +830,8 @@ var require_cjs = __commonJS({
819
830
  };
820
831
  var deepDestringify = (obj, stringified = {}) => {
821
832
  for (const prop in obj) {
833
+ if (prop === "__proto__")
834
+ continue;
822
835
  const objProp = obj[prop];
823
836
  if ((0, import_types.isString)(objProp)) {
824
837
  if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
@@ -937,6 +950,8 @@ var require_cjs = __commonJS({
937
950
  };
938
951
  var overwriteDeep2 = (obj, params, excludeFrom = []) => {
939
952
  for (const e in params) {
953
+ if (e === "__proto__")
954
+ continue;
940
955
  if (excludeFrom.includes(e) || e.startsWith("__"))
941
956
  continue;
942
957
  const objProp = obj[e];
@@ -1264,7 +1279,7 @@ var require_cjs = __commonJS({
1264
1279
  setVariables: () => setVariables
1265
1280
  });
1266
1281
  var import_globals = __toESM2(require_cjs10(), 1);
1267
- var import_utils16 = __toESM2(require_cjs42(), 1);
1282
+ var import_utils15 = __toESM2(require_cjs42(), 1);
1268
1283
  var ENV = "development";
1269
1284
  var colorStringToRgbaArray = (color) => {
1270
1285
  if (color === "")
@@ -1392,9 +1407,9 @@ var require_cjs = __commonJS({
1392
1407
  return `rgba(${arr})`;
1393
1408
  };
1394
1409
  var getRgbTone = (rgb, tone) => {
1395
- if ((0, import_utils16.isString)(rgb))
1410
+ if ((0, import_utils15.isString)(rgb))
1396
1411
  rgb = rgb.split(", ").map((v) => parseFloat(v));
1397
- if ((0, import_utils16.isNumber)(tone))
1412
+ if ((0, import_utils15.isNumber)(tone))
1398
1413
  tone += "";
1399
1414
  const toHex = rgbArrayToHex(rgb);
1400
1415
  const abs2 = tone.slice(0, 1);
@@ -3185,7 +3200,7 @@ var require_types = __commonJS({
3185
3200
  isNumber: () => isNumber,
3186
3201
  isObject: () => isObject5,
3187
3202
  isObjectLike: () => isObjectLike3,
3188
- isString: () => isString8,
3203
+ isString: () => isString7,
3189
3204
  isUndefined: () => isUndefined,
3190
3205
  isValidHtmlTag: () => isValidHtmlTag
3191
3206
  });
@@ -3198,7 +3213,7 @@ var require_types = __commonJS({
3198
3213
  return false;
3199
3214
  return typeof arg === "object" && arg.constructor === Object;
3200
3215
  };
3201
- var isString8 = (arg) => typeof arg === "string";
3216
+ var isString7 = (arg) => typeof arg === "string";
3202
3217
  var isNumber = (arg) => typeof arg === "number";
3203
3218
  var isFunction3 = (arg) => typeof arg === "function";
3204
3219
  var isBoolean = (arg) => arg === true || arg === false;
@@ -3210,7 +3225,7 @@ var require_types = __commonJS({
3210
3225
  return typeof arg === "object";
3211
3226
  };
3212
3227
  var isDefined = (arg) => {
3213
- return isObject5(arg) || isObjectLike3(arg) || isString8(arg) || isNumber(arg) || isFunction3(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
3228
+ return isObject5(arg) || isObjectLike3(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
3214
3229
  };
3215
3230
  var isUndefined = (arg) => {
3216
3231
  return arg === void 0;
@@ -3219,7 +3234,7 @@ var require_types = __commonJS({
3219
3234
  boolean: isBoolean,
3220
3235
  array: isArray5,
3221
3236
  object: isObject5,
3222
- string: isString8,
3237
+ string: isString7,
3223
3238
  number: isNumber,
3224
3239
  null: isNull,
3225
3240
  function: isFunction3,
@@ -3322,7 +3337,7 @@ var require_array = __commonJS({
3322
3337
  return arr;
3323
3338
  };
3324
3339
  var createNestedObject = (arr, lastValue) => {
3325
- let nestedObject = {};
3340
+ const nestedObject = {};
3326
3341
  if (arr.length === 0) {
3327
3342
  return lastValue;
3328
3343
  }
@@ -3363,7 +3378,7 @@ var require_string = __commonJS({
3363
3378
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3364
3379
  var string_exports = {};
3365
3380
  __export2(string_exports, {
3366
- replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields3,
3381
+ replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
3367
3382
  stringIncludesAny: () => stringIncludesAny
3368
3383
  });
3369
3384
  module2.exports = __toCommonJS2(string_exports);
@@ -3375,19 +3390,24 @@ var require_string = __commonJS({
3375
3390
  }
3376
3391
  return false;
3377
3392
  };
3378
- var replaceLiteralsWithObjectFields3 = (str, state) => {
3393
+ var replaceLiteralsWithObjectFields2 = (str, state) => {
3394
+ if (!str.includes("{{"))
3395
+ return str;
3379
3396
  return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => {
3380
3397
  if (parentPath) {
3381
- const parentLevels = parentPath.split("../").filter(Boolean).length;
3398
+ const parentLevels = parentPath.match(/\.\.\//g).length;
3382
3399
  let parentState = state;
3383
3400
  for (let i = 0; i < parentLevels; i++) {
3384
3401
  parentState = parentState.parent;
3402
+ if (!parentState) {
3403
+ return "";
3404
+ }
3385
3405
  }
3386
3406
  const value = parentState[variable.trim()];
3387
- return value ? `${value}` : "";
3407
+ return value !== void 0 ? `${value}` : "";
3388
3408
  } else {
3389
3409
  const value = state[variable.trim()];
3390
- return value ? `${value}` : "";
3410
+ return value !== void 0 ? `${value}` : "";
3391
3411
  }
3392
3412
  });
3393
3413
  };
@@ -3463,6 +3483,8 @@ var require_object = __commonJS({
3463
3483
  };
3464
3484
  var merge5 = (element, obj, excludeFrom = []) => {
3465
3485
  for (const e in obj) {
3486
+ if (e === "__proto__")
3487
+ continue;
3466
3488
  if (excludeFrom.includes(e) || e.startsWith("__"))
3467
3489
  continue;
3468
3490
  const elementProp = element[e];
@@ -3475,6 +3497,8 @@ var require_object = __commonJS({
3475
3497
  };
3476
3498
  var deepMerge = (element, extend, excludeFrom = []) => {
3477
3499
  for (const e in extend) {
3500
+ if (e === "__proto__")
3501
+ continue;
3478
3502
  if (excludeFrom.includes(e) || e.startsWith("__"))
3479
3503
  continue;
3480
3504
  const elementProp = element[e];
@@ -3523,6 +3547,8 @@ var require_object = __commonJS({
3523
3547
  var deepClone3 = (obj, excludeFrom = []) => {
3524
3548
  const o = (0, import_types.isArray)(obj) ? [] : {};
3525
3549
  for (const prop in obj) {
3550
+ if (prop === "__proto__")
3551
+ continue;
3526
3552
  if (excludeFrom.includes(prop) || prop.startsWith("__"))
3527
3553
  continue;
3528
3554
  let objProp = obj[prop];
@@ -3624,6 +3650,8 @@ var require_object = __commonJS({
3624
3650
  };
3625
3651
  var deepDestringify = (obj, stringified = {}) => {
3626
3652
  for (const prop in obj) {
3653
+ if (prop === "__proto__")
3654
+ continue;
3627
3655
  const objProp = obj[prop];
3628
3656
  if ((0, import_types.isString)(objProp)) {
3629
3657
  if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
@@ -3742,6 +3770,8 @@ var require_object = __commonJS({
3742
3770
  };
3743
3771
  var overwriteDeep = (obj, params, excludeFrom = []) => {
3744
3772
  for (const e in params) {
3773
+ if (e === "__proto__")
3774
+ continue;
3745
3775
  if (excludeFrom.includes(e) || e.startsWith("__"))
3746
3776
  continue;
3747
3777
  const objProp = obj[e];
@@ -4006,12 +4036,12 @@ var require_on = __commonJS({
4006
4036
  triggerEventOnUpdate: () => triggerEventOnUpdate
4007
4037
  });
4008
4038
  module2.exports = __toCommonJS2(on_exports);
4009
- var import_utils16 = require_cjs5();
4039
+ var import_utils15 = require_cjs5();
4010
4040
  var applyEvent = (param, element, state, context, options) => {
4011
4041
  return param(element, state || element.state, context || element.context, options);
4012
4042
  };
4013
4043
  var triggerEventOn = (param, element, options) => {
4014
- if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
4044
+ if (element.on && (0, import_utils15.isFunction)(element.on[param])) {
4015
4045
  const { state, context } = element;
4016
4046
  return applyEvent(element.on[param], element, state, context, options);
4017
4047
  }
@@ -4020,7 +4050,7 @@ var require_on = __commonJS({
4020
4050
  return param(updatedObj, element, state || element.state, context || element.context, options);
4021
4051
  };
4022
4052
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
4023
- if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
4053
+ if (element.on && (0, import_utils15.isFunction)(element.on[param])) {
4024
4054
  const { state, context } = element;
4025
4055
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
4026
4056
  }
@@ -4031,7 +4061,7 @@ var require_on = __commonJS({
4031
4061
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
4032
4062
  continue;
4033
4063
  const appliedFunction = element.on[param];
4034
- if ((0, import_utils16.isFunction)(appliedFunction)) {
4064
+ if ((0, import_utils15.isFunction)(appliedFunction)) {
4035
4065
  const { state, context } = element;
4036
4066
  node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
4037
4067
  }
@@ -4164,10 +4194,10 @@ var require_can = __commonJS({
4164
4194
  });
4165
4195
  module2.exports = __toCommonJS2(can_exports);
4166
4196
  var import_report = require_cjs6();
4167
- var import_utils16 = require_cjs5();
4197
+ var import_utils15 = require_cjs5();
4168
4198
  var canRender = (element) => {
4169
4199
  const tag = element.tag || "div";
4170
- return (0, import_utils16.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4200
+ return (0, import_utils15.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4171
4201
  };
4172
4202
  }
4173
4203
  });
@@ -4232,11 +4262,11 @@ var require_methods = __commonJS({
4232
4262
  toggle: () => toggle
4233
4263
  });
4234
4264
  module2.exports = __toCommonJS2(methods_exports);
4235
- var import_utils16 = require_cjs5();
4265
+ var import_utils15 = require_cjs5();
4236
4266
  var import_ignore = require_ignore();
4237
4267
  var parse2 = function() {
4238
4268
  const state = this;
4239
- if ((0, import_utils16.isObject)(state)) {
4269
+ if ((0, import_utils15.isObject)(state)) {
4240
4270
  const obj = {};
4241
4271
  for (const param in state) {
4242
4272
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -4244,7 +4274,7 @@ var require_methods = __commonJS({
4244
4274
  }
4245
4275
  }
4246
4276
  return obj;
4247
- } else if ((0, import_utils16.isArray)(state)) {
4277
+ } else if ((0, import_utils15.isArray)(state)) {
4248
4278
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
4249
4279
  }
4250
4280
  };
@@ -4264,7 +4294,7 @@ var require_methods = __commonJS({
4264
4294
  const state = this;
4265
4295
  const element = state.__element;
4266
4296
  const stateKey = element.__ref.__state;
4267
- if ((0, import_utils16.isString)(stateKey)) {
4297
+ if ((0, import_utils15.isString)(stateKey)) {
4268
4298
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
4269
4299
  return element.state;
4270
4300
  }
@@ -4299,10 +4329,10 @@ var require_methods = __commonJS({
4299
4329
  };
4300
4330
  var add = function(value, options = {}) {
4301
4331
  const state = this;
4302
- if ((0, import_utils16.isArray)(state)) {
4332
+ if ((0, import_utils15.isArray)(state)) {
4303
4333
  state.push(value);
4304
4334
  state.update(state.parse(), { overwrite: "replace", ...options });
4305
- } else if ((0, import_utils16.isObject)(state)) {
4335
+ } else if ((0, import_utils15.isObject)(state)) {
4306
4336
  const key = Object.keys(state).length;
4307
4337
  state.update({ [key]: value }, options);
4308
4338
  }
@@ -4313,10 +4343,10 @@ var require_methods = __commonJS({
4313
4343
  };
4314
4344
  var remove = function(key, options = {}) {
4315
4345
  const state = this;
4316
- if ((0, import_utils16.isArray)(state))
4317
- (0, import_utils16.removeFromArray)(state, key);
4318
- if ((0, import_utils16.isObject)(state))
4319
- (0, import_utils16.removeFromObject)(state, key);
4346
+ if ((0, import_utils15.isArray)(state))
4347
+ (0, import_utils15.removeFromArray)(state, key);
4348
+ if ((0, import_utils15.isObject)(state))
4349
+ (0, import_utils15.removeFromObject)(state, key);
4320
4350
  return state.update(state.parse(), { replace: true, ...options });
4321
4351
  };
4322
4352
  var set2 = function(value, options = {}) {
@@ -4325,7 +4355,7 @@ var require_methods = __commonJS({
4325
4355
  };
4326
4356
  var apply = function(func, options = {}) {
4327
4357
  const state = this;
4328
- if ((0, import_utils16.isFunction)(func)) {
4358
+ if ((0, import_utils15.isFunction)(func)) {
4329
4359
  func(state);
4330
4360
  return state.update(state, { replace: true, ...options });
4331
4361
  }
@@ -4365,7 +4395,7 @@ var require_inherit = __commonJS({
4365
4395
  isState: () => isState3
4366
4396
  });
4367
4397
  module2.exports = __toCommonJS2(inherit_exports);
4368
- var import_utils16 = require_cjs5();
4398
+ var import_utils15 = require_cjs5();
4369
4399
  var import_ignore = require_ignore();
4370
4400
  var getParentStateInKey = (stateKey, parentState) => {
4371
4401
  if (!stateKey.includes("../"))
@@ -4385,12 +4415,15 @@ var require_inherit = __commonJS({
4385
4415
  for (let i = 0; i < arrLength; i++) {
4386
4416
  const childKey = arr[i];
4387
4417
  const grandChildKey = arr[i + 1];
4388
- const childInParent = parentState[childKey];
4389
- if (childInParent && childInParent[grandChildKey]) {
4390
- stateKey = grandChildKey;
4391
- parentState = childInParent;
4392
- } else
4418
+ if (childKey === "__proto__" || grandChildKey === "__proto__")
4393
4419
  return;
4420
+ let childInParent = parentState[childKey];
4421
+ if (!childInParent)
4422
+ childInParent = parentState[childKey] = {};
4423
+ if (!childInParent[grandChildKey])
4424
+ childInParent[grandChildKey] = {};
4425
+ stateKey = grandChildKey;
4426
+ parentState = childInParent;
4394
4427
  }
4395
4428
  if (options.returnParent)
4396
4429
  return parentState;
@@ -4416,9 +4449,9 @@ var require_inherit = __commonJS({
4416
4449
  const inheritedState = findInheritedState(element, parent);
4417
4450
  if (!inheritedState)
4418
4451
  return element.state;
4419
- if ((0, import_utils16.is)(inheritedState)("object", "array")) {
4420
- return (0, import_utils16.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
4421
- } else if ((0, import_utils16.is)(inheritedState)("string", "number")) {
4452
+ if ((0, import_utils15.is)(inheritedState)("object", "array")) {
4453
+ return (0, import_utils15.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
4454
+ } else if ((0, import_utils15.is)(inheritedState)("string", "number")) {
4422
4455
  ref.__stateType = "string";
4423
4456
  return { value: inheritedState };
4424
4457
  }
@@ -4427,15 +4460,15 @@ var require_inherit = __commonJS({
4427
4460
  var checkIfInherits = (element) => {
4428
4461
  const ref = element.__ref;
4429
4462
  const stateKey = ref.__state;
4430
- if (!stateKey || (0, import_utils16.isNot)(stateKey)("number", "string"))
4463
+ if (!stateKey || (0, import_utils15.isNot)(stateKey)("number", "string"))
4431
4464
  return false;
4432
4465
  return true;
4433
4466
  };
4434
4467
  var isState3 = function(state) {
4435
- if (!(0, import_utils16.isObjectLike)(state))
4468
+ if (!(0, import_utils15.isObjectLike)(state))
4436
4469
  return false;
4437
4470
  const keys = Object.keys(state);
4438
- return (0, import_utils16.arrayContainsOtherArray)(keys, ["update", "parse", "clean", "create", "parent", "rootUpdate"]);
4471
+ return (0, import_utils15.arrayContainsOtherArray)(keys, ["update", "parse", "clean", "create", "parent", "rootUpdate"]);
4439
4472
  };
4440
4473
  var createChangesByKey = (path, value) => {
4441
4474
  if (!path) {
@@ -4482,7 +4515,7 @@ var require_updateState = __commonJS({
4482
4515
  var import_report = require_cjs6();
4483
4516
  var import_event = require_cjs7();
4484
4517
  var import_ignore = require_ignore();
4485
- var import_utils16 = require_cjs5();
4518
+ var import_utils15 = require_cjs5();
4486
4519
  var import_inherit = require_inherit();
4487
4520
  var STATE_UPDATE_OPTIONS = {
4488
4521
  overwrite: true,
@@ -4496,7 +4529,7 @@ var require_updateState = __commonJS({
4496
4529
  const state = this;
4497
4530
  const element = state.__element;
4498
4531
  if (!options.updateByState)
4499
- (0, import_utils16.merge)(options, STATE_UPDATE_OPTIONS);
4532
+ (0, import_utils15.merge)(options, STATE_UPDATE_OPTIONS);
4500
4533
  if (!state.__element)
4501
4534
  (0, import_report.report)("ElementOnStateIsNotDefined");
4502
4535
  if (options.preventInheritAtCurrentState === true) {
@@ -4526,10 +4559,10 @@ var require_updateState = __commonJS({
4526
4559
  const shallow = overwrite === "shallow";
4527
4560
  const merge22 = overwrite === "merge";
4528
4561
  if (merge22) {
4529
- (0, import_utils16.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
4562
+ (0, import_utils15.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
4530
4563
  return;
4531
4564
  }
4532
- const overwriteFunc = shallow ? import_utils16.overwriteShallow : import_utils16.overwriteDeep;
4565
+ const overwriteFunc = shallow ? import_utils15.overwriteShallow : import_utils15.overwriteDeep;
4533
4566
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
4534
4567
  };
4535
4568
  var hoistStateUpdate = (state, obj, options) => {
@@ -4619,7 +4652,7 @@ var require_createState = __commonJS({
4619
4652
  });
4620
4653
  module2.exports = __toCommonJS2(createState_exports);
4621
4654
  var import_event = require_cjs7();
4622
- var import_utils16 = require_cjs5();
4655
+ var import_utils15 = require_cjs5();
4623
4656
  var import_ignore = require_ignore();
4624
4657
  var import_methods = require_methods();
4625
4658
  var import_updateState = require_updateState();
@@ -4630,7 +4663,7 @@ var require_createState = __commonJS({
4630
4663
  if (objectizeState === false)
4631
4664
  return parent.state || {};
4632
4665
  else
4633
- element.state = (0, import_utils16.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
4666
+ element.state = (0, import_utils15.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
4634
4667
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
4635
4668
  if (whatInitReturns === false)
4636
4669
  return element.state;
@@ -4645,7 +4678,7 @@ var require_createState = __commonJS({
4645
4678
  if (element.parent && element.parent.state) {
4646
4679
  element.state.parent = element.parent.state;
4647
4680
  } else {
4648
- element.state.parent = element.state;
4681
+ element.state.parent = {};
4649
4682
  }
4650
4683
  return element.state;
4651
4684
  }
@@ -4657,18 +4690,18 @@ var require_createState = __commonJS({
4657
4690
  const { __ref: ref } = state;
4658
4691
  if (!ref)
4659
4692
  return;
4660
- const dependentState = (0, import_utils16.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
4693
+ const dependentState = (0, import_utils15.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
4661
4694
  const newDepends = { [element.key]: dependentState };
4662
- ref.__depends = (0, import_utils16.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
4695
+ ref.__depends = (0, import_utils15.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
4663
4696
  return dependentState;
4664
4697
  };
4665
4698
  var checkForTypes = (element) => {
4666
4699
  const { state, __ref: ref } = element;
4667
- if ((0, import_utils16.isFunction)(state)) {
4700
+ if ((0, import_utils15.isFunction)(state)) {
4668
4701
  ref.__state = state;
4669
- return (0, import_utils16.exec)(state, element);
4702
+ return (0, import_utils15.exec)(state, element);
4670
4703
  }
4671
- if ((0, import_utils16.is)(state)("string", "number")) {
4704
+ if ((0, import_utils15.is)(state)("string", "number")) {
4672
4705
  ref.__state = state;
4673
4706
  return {};
4674
4707
  }
@@ -7228,11 +7261,11 @@ var require_moment = __commonJS({
7228
7261
  }
7229
7262
  }
7230
7263
  var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
7231
- function isString8(input) {
7264
+ function isString7(input) {
7232
7265
  return typeof input === "string" || input instanceof String;
7233
7266
  }
7234
7267
  function isMomentInput(input) {
7235
- return isMoment(input) || isDate(input) || isString8(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
7268
+ return isMoment(input) || isDate(input) || isString7(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
7236
7269
  }
7237
7270
  function isMomentInputObject(input) {
7238
7271
  var objectTest = isObject5(input) && !isObjectEmpty(input), propertyTest = false, properties = [
@@ -7271,7 +7304,7 @@ var require_moment = __commonJS({
7271
7304
  var arrayTest = isArray5(input), dataTypeTest = false;
7272
7305
  if (arrayTest) {
7273
7306
  dataTypeTest = input.filter(function(item) {
7274
- return !isNumber(item) && isString8(input);
7307
+ return !isNumber(item) && isString7(input);
7275
7308
  }).length === 0;
7276
7309
  }
7277
7310
  return arrayTest && dataTypeTest;
@@ -9108,6 +9141,7 @@ __export(domql_exports, {
9108
9141
  Slider: () => Slider,
9109
9142
  Span: () => Span,
9110
9143
  SquareButton: () => SquareButton,
9144
+ Steps: () => Steps,
9111
9145
  Strong: () => Strong,
9112
9146
  Subhead: () => Subhead,
9113
9147
  Svg: () => Svg,
@@ -10203,15 +10237,11 @@ var Shape = {
10203
10237
  };
10204
10238
 
10205
10239
  // Atoms/Text.js
10206
- var import_utils4 = __toESM(require_cjs5());
10207
10240
  var import_scratch8 = __toESM(require_cjs());
10208
10241
  var Text = {
10209
10242
  text: ({ key, props: props6, state }) => {
10210
10243
  if (props6.text === true)
10211
10244
  return state && state[key] || props6 && props6[key];
10212
- if ((0, import_utils4.isString)(props6.text) && props6.text.includes("{{")) {
10213
- return (0, import_utils4.replaceLiteralsWithObjectFields)(props6.text, state);
10214
- }
10215
10245
  return props6.text;
10216
10246
  },
10217
10247
  class: {
@@ -10274,7 +10304,7 @@ var XYZ = {
10274
10304
 
10275
10305
  // Atoms/Animation.js
10276
10306
  var import_scratch9 = __toESM(require_cjs());
10277
- var import_utils6 = __toESM(require_cjs5());
10307
+ var import_utils5 = __toESM(require_cjs5());
10278
10308
 
10279
10309
  // ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
10280
10310
  function sheetForTag(tag) {
@@ -11625,7 +11655,7 @@ var emotion = createEmotion3();
11625
11655
  // Atoms/Animation.js
11626
11656
  var { keyframes } = emotion;
11627
11657
  var applyAnimationProps = (animation, element) => {
11628
- if ((0, import_utils6.isObject)(animation))
11658
+ if ((0, import_utils5.isObject)(animation))
11629
11659
  return { animationName: keyframes(animation) };
11630
11660
  const { ANIMATION } = element.context && element.context.designSystem;
11631
11661
  const record = ANIMATION[animation];
@@ -11670,7 +11700,7 @@ var Animation = {
11670
11700
  };
11671
11701
 
11672
11702
  // Box/index.js
11673
- var import_utils7 = __toESM(require_cjs5());
11703
+ var import_utils6 = __toESM(require_cjs5());
11674
11704
  var PropsCSS = {
11675
11705
  class: {
11676
11706
  style: ({ props: props6 }) => props6 && props6.style
@@ -11693,8 +11723,8 @@ var Box = {
11693
11723
  Animation
11694
11724
  ],
11695
11725
  attr: {
11696
- id: ({ props: props6 }) => (0, import_utils7.isString)(props6.id) && props6.id,
11697
- title: ({ props: props6 }) => (0, import_utils7.isString)(props6.title) && props6.title,
11726
+ id: ({ props: props6 }) => (0, import_utils6.isString)(props6.id) && props6.id,
11727
+ title: ({ props: props6 }) => (0, import_utils6.isString)(props6.title) && props6.title,
11698
11728
  contentEditable: ({ props: props6 }) => props6.contentEditable || props6.contenteditable,
11699
11729
  dir: ({ props: props6 }) => props6.dir,
11700
11730
  draggable: ({ props: props6 }) => props6.draggable,
@@ -12912,7 +12942,7 @@ var RouteLink = {
12912
12942
  };
12913
12943
 
12914
12944
  // Input/index.js
12915
- var import_utils8 = __toESM(require_cjs5());
12945
+ var import_utils7 = __toESM(require_cjs5());
12916
12946
  var Input2 = {
12917
12947
  extend: [Focusable],
12918
12948
  tag: "input",
@@ -12934,8 +12964,8 @@ var Input2 = {
12934
12964
  autocomplete: ({ props: props6 }) => props6.autocomplete,
12935
12965
  placeholder: ({ props: props6 }) => props6.placeholder,
12936
12966
  value: ({ props: props6, state }) => {
12937
- if ((0, import_utils8.isString)(props6.value) && props6.value.includes("{{"))
12938
- return (0, import_utils8.replaceLiteralsWithObjectFields)(props6.value, state);
12967
+ if ((0, import_utils7.isString)(props6.value) && props6.value.includes("{{"))
12968
+ return (0, import_utils7.replaceLiteralsWithObjectFields)(props6.value, state);
12939
12969
  return props6.value;
12940
12970
  },
12941
12971
  disabled: ({ props: props6 }) => props6.disabled || null,
@@ -12963,7 +12993,7 @@ var import_scratch10 = __toESM(require_cjs());
12963
12993
  var import_scratch11 = __toESM(require_cjs());
12964
12994
 
12965
12995
  // Field/node_modules/@symbo.ls/atoms/Media.js
12966
- var import_utils9 = __toESM(require_cjs5());
12996
+ var import_utils8 = __toESM(require_cjs5());
12967
12997
 
12968
12998
  // Field/node_modules/@symbo.ls/atoms/Theme.js
12969
12999
  var import_scratch14 = __toESM(require_cjs());
@@ -13003,13 +13033,13 @@ var Focusable2 = {
13003
13033
 
13004
13034
  // Field/node_modules/@symbo.ls/atoms/Collection.js
13005
13035
  var import_state2 = __toESM(require_cjs8());
13006
- var import_utils10 = __toESM(require_cjs5());
13036
+ var import_utils9 = __toESM(require_cjs5());
13007
13037
 
13008
13038
  // Field/node_modules/@symbo.ls/atoms/Position.js
13009
13039
  var import_scratch15 = __toESM(require_cjs());
13010
13040
 
13011
13041
  // Field/node_modules/@symbo.ls/atoms/Shape/index.js
13012
- var import_utils11 = __toESM(require_cjs5());
13042
+ var import_utils10 = __toESM(require_cjs5());
13013
13043
  var import_scratch16 = __toESM(require_cjs());
13014
13044
 
13015
13045
  // Field/node_modules/@symbo.ls/atoms/Text.js
@@ -13017,7 +13047,7 @@ var import_scratch17 = __toESM(require_cjs());
13017
13047
 
13018
13048
  // Field/node_modules/@symbo.ls/atoms/Animation.js
13019
13049
  var import_scratch18 = __toESM(require_cjs());
13020
- var import_utils13 = __toESM(require_cjs5());
13050
+ var import_utils12 = __toESM(require_cjs5());
13021
13051
 
13022
13052
  // Field/node_modules/@emotion/hash/dist/emotion-hash.esm.js
13023
13053
  function murmur22(str) {
@@ -13575,7 +13605,7 @@ var Video = {
13575
13605
  };
13576
13606
 
13577
13607
  // Range/index.js
13578
- var import_utils14 = __toESM(require_cjs5());
13608
+ var import_utils13 = __toESM(require_cjs5());
13579
13609
  var import_scratch19 = __toESM(require_cjs());
13580
13610
  var props4 = {
13581
13611
  appearance: "none",
@@ -13643,7 +13673,7 @@ var Range = {
13643
13673
  };
13644
13674
  var listenProp = (el, prop, def) => {
13645
13675
  const val = el.props && el.props[prop];
13646
- const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
13676
+ const r = (0, import_utils13.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
13647
13677
  return r + "";
13648
13678
  };
13649
13679
  var RangeWithButtons = {
@@ -13652,7 +13682,7 @@ var RangeWithButtons = {
13652
13682
  props: { theme: "tertiary", icon: "minus" },
13653
13683
  on: {
13654
13684
  click: (ev, el, s) => {
13655
- el.props && (0, import_utils14.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
13685
+ el.props && (0, import_utils13.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
13656
13686
  }
13657
13687
  }
13658
13688
  },
@@ -13673,8 +13703,8 @@ var RangeWithButtons = {
13673
13703
  step: (el, s) => listenProp(el, "step", 1)
13674
13704
  },
13675
13705
  on: {
13676
- input: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.onInput) && el.props.onInput(ev, el, s),
13677
- change: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.onChange) && el.props.onChange(ev, el, s)
13706
+ input: (ev, el, s) => el.props && (0, import_utils13.isFunction)(el.props.onInput) && el.props.onInput(ev, el, s),
13707
+ change: (ev, el, s) => el.props && (0, import_utils13.isFunction)(el.props.onChange) && el.props.onChange(ev, el, s)
13678
13708
  }
13679
13709
  },
13680
13710
  plus: {
@@ -13682,7 +13712,7 @@ var RangeWithButtons = {
13682
13712
  props: { theme: "tertiary", icon: "plus" },
13683
13713
  on: {
13684
13714
  click: (ev, el, s) => {
13685
- el.props && (0, import_utils14.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
13715
+ el.props && (0, import_utils13.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
13686
13716
  }
13687
13717
  }
13688
13718
  }
@@ -13709,7 +13739,7 @@ var style_default = {
13709
13739
 
13710
13740
  // Slider/index.js
13711
13741
  var import_scratch20 = __toESM(require_cjs());
13712
- var import_utils15 = __toESM(require_cjs5());
13742
+ var import_utils14 = __toESM(require_cjs5());
13713
13743
  (0, import_scratch20.set)({
13714
13744
  theme: {
13715
13745
  sliderThumb: {
@@ -13741,7 +13771,7 @@ var RangeSlider = {
13741
13771
  };
13742
13772
  var listenProp2 = (el, prop, def) => {
13743
13773
  const val = el && el.props && el.props[prop];
13744
- const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
13774
+ const r = ((0, import_utils14.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
13745
13775
  return r;
13746
13776
  };
13747
13777
  var Slider = {
@@ -13752,10 +13782,10 @@ var Slider = {
13752
13782
  },
13753
13783
  on: {
13754
13784
  click: (ev, el, s) => {
13755
- el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
13785
+ el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
13756
13786
  const input = el.parent.input;
13757
13787
  const props6 = input.props;
13758
- const value = (0, import_utils15.isFunction)(props6.value) ? props6.value() : props6.value;
13788
+ const value = (0, import_utils14.isFunction)(props6.value) ? props6.value() : props6.value;
13759
13789
  input.node.value = value;
13760
13790
  }
13761
13791
  }
@@ -13778,8 +13808,8 @@ var Slider = {
13778
13808
  step: (el, s) => listenProp2(el, "step", 1)
13779
13809
  },
13780
13810
  on: {
13781
- input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
13782
- change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
13811
+ input: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.input) && el.props.input(ev, el, s),
13812
+ change: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.change) && el.props.change(ev, el, s)
13783
13813
  }
13784
13814
  },
13785
13815
  button1: {
@@ -13789,10 +13819,10 @@ var Slider = {
13789
13819
  },
13790
13820
  on: {
13791
13821
  click: (ev, el, s) => {
13792
- el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
13822
+ el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
13793
13823
  const input = el.parent.input;
13794
13824
  const props6 = input.props;
13795
- const value = (0, import_utils15.isFunction)(props6.value) ? props6.value() : props6.value;
13825
+ const value = (0, import_utils14.isFunction)(props6.value) ? props6.value() : props6.value;
13796
13826
  input.node.value = value;
13797
13827
  }
13798
13828
  }
@@ -14326,6 +14356,66 @@ var Search = {
14326
14356
  }
14327
14357
  }
14328
14358
  };
14359
+
14360
+ // Steps/index.js
14361
+ var Step = {
14362
+ tag: "label",
14363
+ extend: Flex,
14364
+ props: {
14365
+ cursor: "pointer",
14366
+ align: "center flex-start"
14367
+ },
14368
+ Input: {
14369
+ type: "checkbox",
14370
+ display: "none",
14371
+ ":checked + div": {
14372
+ theme: "primary",
14373
+ border: "none"
14374
+ },
14375
+ ":checked + div > svg": { opacity: "1" },
14376
+ ":checked ~ span": {
14377
+ theme: "primary"
14378
+ }
14379
+ },
14380
+ Flex: {
14381
+ props: {
14382
+ boxSize: "B1",
14383
+ border: "2px solid #313141",
14384
+ round: "100%",
14385
+ align: "center center"
14386
+ },
14387
+ Icon: {
14388
+ fontSize: "C2",
14389
+ opacity: "0",
14390
+ name: "checkmark"
14391
+ }
14392
+ },
14393
+ Caption: ({ key }) => ({
14394
+ text: "Step " + (parseInt(key) + 1),
14395
+ padding: "- Y2 - Z1"
14396
+ }),
14397
+ Span_line: {
14398
+ if: ({ parent }) => parent.key !== "0",
14399
+ props: {
14400
+ boxSize: "2px D",
14401
+ background: "#313141",
14402
+ margin: "- A - -",
14403
+ order: -1,
14404
+ round: "Z"
14405
+ }
14406
+ }
14407
+ };
14408
+ var Steps = {
14409
+ extend: Flex,
14410
+ props: {
14411
+ position: "relative",
14412
+ gap: "Y2",
14413
+ zIndex: "2",
14414
+ options: [{}, {}, {}, {}]
14415
+ },
14416
+ childExtend: Step,
14417
+ $setPropsCollection: ({ props: props6 }) => props6.options
14418
+ };
14329
14419
  /*! Bundled license information:
14330
14420
 
14331
14421
  moment/moment.js: