@getodk/web-forms 1.0.0 → 1.0.1

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.
@@ -5065,7 +5065,7 @@ function _toPrimitive$c(er, nr) {
5065
5065
  }
5066
5066
  return (nr === "string" ? String : Number)(er);
5067
5067
  }
5068
- var _hoisted_1$Z = ["data-p"], _hoisted_2$v = ["aria-labelledby", "aria-modal", "data-p"], _hoisted_3$n = ["id"], _hoisted_4$g = ["data-p"];
5068
+ var _hoisted_1$Z = ["data-p"], _hoisted_2$v = ["aria-labelledby", "aria-modal", "data-p"], _hoisted_3$o = ["id"], _hoisted_4$h = ["data-p"];
5069
5069
  function render$C(er, nr, rr, or, Ar, ir) {
5070
5070
  var sr = resolveComponent("Button"), lr = resolveComponent("Portal"), dr = resolveDirective("focustrap");
5071
5071
  return openBlock(), createBlock(lr, {
@@ -5128,7 +5128,7 @@ function render$C(er, nr, rr, or, Ar, ir) {
5128
5128
  key: 0,
5129
5129
  id: ir.ariaLabelledById,
5130
5130
  class: er.cx("title")
5131
- }, er.ptm("title")), toDisplayString(er.header), 17, _hoisted_3$n)) : createCommentVNode("", !0)];
5131
+ }, er.ptm("title")), toDisplayString(er.header), 17, _hoisted_3$o)) : createCommentVNode("", !0)];
5132
5132
  }), createElementVNode("div", mergeProps({
5133
5133
  class: er.cx("headerActions")
5134
5134
  }, er.ptm("headerActions")), [er.maximizable ? renderSlot(er.$slots, "maximizebutton", {
@@ -5189,7 +5189,7 @@ function render$C(er, nr, rr, or, Ar, ir) {
5189
5189
  class: [er.cx("content"), er.contentClass],
5190
5190
  style: er.contentStyle,
5191
5191
  "data-p": ir.dataP
5192
- }, _objectSpread$6(_objectSpread$6({}, er.contentProps), er.ptm("content"))), [renderSlot(er.$slots, "default")], 16, _hoisted_4$g), er.footer || er.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({
5192
+ }, _objectSpread$6(_objectSpread$6({}, er.contentProps), er.ptm("content"))), [renderSlot(er.$slots, "default")], 16, _hoisted_4$h), er.footer || er.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({
5193
5193
  key: 1,
5194
5194
  ref: ir.footerContainerRef,
5195
5195
  class: er.cx("footer")
@@ -5680,7 +5680,7 @@ function _toPrimitive$b(er, nr) {
5680
5680
  }
5681
5681
  return (nr === "string" ? String : Number)(er);
5682
5682
  }
5683
- var _hoisted_1$Y = ["data-p"], _hoisted_2$u = ["data-p"], _hoisted_3$m = ["data-p"], _hoisted_4$f = ["aria-label", "data-p"], _hoisted_5$a = ["data-p"];
5683
+ var _hoisted_1$Y = ["data-p"], _hoisted_2$u = ["data-p"], _hoisted_3$n = ["data-p"], _hoisted_4$g = ["aria-label", "data-p"], _hoisted_5$a = ["data-p"];
5684
5684
  function render$B(er, nr, rr, or, Ar, ir) {
5685
5685
  var sr = resolveComponent("TimesIcon"), lr = resolveDirective("ripple");
5686
5686
  return openBlock(), createBlock(Transition$1, mergeProps({
@@ -5712,7 +5712,7 @@ function render$B(er, nr, rr, or, Ar, ir) {
5712
5712
  key: 0,
5713
5713
  class: er.cx("text"),
5714
5714
  "data-p": ir.dataP
5715
- }, er.ptm("text")), [renderSlot(er.$slots, "default")], 16, _hoisted_3$m)) : createCommentVNode("", !0), er.closable ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
5715
+ }, er.ptm("text")), [renderSlot(er.$slots, "default")], 16, _hoisted_3$n)) : createCommentVNode("", !0), er.closable ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
5716
5716
  key: 1,
5717
5717
  class: er.cx("closeButton"),
5718
5718
  "aria-label": ir.closeAriaLabel,
@@ -5731,7 +5731,7 @@ function render$B(er, nr, rr, or, Ar, ir) {
5731
5731
  class: [er.cx("closeIcon"), er.closeIcon],
5732
5732
  "data-p": ir.dataP
5733
5733
  }, er.ptm("closeIcon")), null, 16, ["class", "data-p"]))];
5734
- })], 16, _hoisted_4$f)), [[lr]]) : createCommentVNode("", !0)], 16, _hoisted_2$u))], 16, _hoisted_1$Y), [[vShow, Ar.visible]])];
5734
+ })], 16, _hoisted_4$g)), [[lr]]) : createCommentVNode("", !0)], 16, _hoisted_2$u))], 16, _hoisted_1$Y), [[vShow, Ar.visible]])];
5735
5735
  }),
5736
5736
  _: 3
5737
5737
  }, 16);
@@ -19500,18 +19500,6 @@ const XFORM_EVENT = {
19500
19500
  xformsValueChanged: "xforms-value-changed"
19501
19501
  };
19502
19502
  class ActionDefinition {
19503
- constructor(nr, rr, or) {
19504
- this.element = rr;
19505
- const Ar = ActionDefinition.getRef(nr, rr);
19506
- if (!Ar)
19507
- throw new Error(
19508
- `Invalid ${rr.localName} element - you must define either "ref" or "bind" attribute`
19509
- );
19510
- this.ref = Ar, this.events = ActionDefinition.getEvents(rr);
19511
- const ir = ActionDefinition.getValue(rr);
19512
- this.computation = new ActionComputationExpression("string", ir), this.source = or;
19513
- }
19514
- element;
19515
19503
  static getRef(nr, rr) {
19516
19504
  if (rr.hasAttribute("ref"))
19517
19505
  return rr.getAttribute("ref") ?? null;
@@ -19537,6 +19525,17 @@ class ActionDefinition {
19537
19525
  events;
19538
19526
  computation;
19539
19527
  source;
19528
+ type;
19529
+ constructor(nr, rr, or) {
19530
+ const Ar = ActionDefinition.getRef(nr, rr);
19531
+ if (!Ar)
19532
+ throw new Error(
19533
+ `Invalid ${rr.localName} element - you must define either "ref" or "bind" attribute`
19534
+ );
19535
+ this.ref = Ar, this.events = ActionDefinition.getEvents(rr);
19536
+ const ir = ActionDefinition.getValue(rr);
19537
+ this.computation = new ActionComputationExpression("string", ir), this.source = or, this.type = rr.nodeName === SET_GEOPOINT_LOCAL_NAME ? "geopoint" : "value";
19538
+ }
19540
19539
  }
19541
19540
  const REPEAT_REGEX = /(\[[^\]]*\])/gm;
19542
19541
  class ModelActionMap extends Map {
@@ -20123,10 +20122,11 @@ class GroupDefinition extends DescendentNodeDefinition {
20123
20122
  constructor(nr, rr, or, Ar, ir) {
20124
20123
  if (Ar != null && (Ar.category !== "structure" || Ar.type === "repeat"))
20125
20124
  throw new Error(`Unexpected body element for nodeset ${or.nodeset}`);
20126
- super(rr, or, Ar), this.template = ir;
20125
+ super(rr, or, Ar), this.model = nr, this.template = ir;
20127
20126
  const { root: sr } = rr;
20128
20127
  this.qualifiedName = ir.qualifiedName, this.namespaceDeclarations = new NamespaceDeclarationMap(this), this.children = sr.buildSubtree(this, ir), this.attributes = AttributeDefinitionMap.from(nr, ir);
20129
20128
  }
20129
+ model;
20130
20130
  template;
20131
20131
  type = "group";
20132
20132
  namespaceDeclarations;
@@ -20593,6 +20593,14 @@ const isJRTemplateAttributeName = (er) => er.localName !== "template" ? !1 : (er
20593
20593
  return nr;
20594
20594
  }, parseRepeatTemplateElement = (er) => isExplicitRepeatTemplateElement(er) ? er : cloneStaticElementStructure(er);
20595
20595
  class RepeatDefinition extends DescendentNodeDefinition {
20596
+ constructor(nr, rr, or, Ar, ir) {
20597
+ super(rr, or, Ar), this.model = nr;
20598
+ const { root: sr } = rr, [lr] = ir, dr = parseRepeatTemplateElement(lr), cr = this;
20599
+ this.template = dr, this.qualifiedName = dr.qualifiedName, this.namespaceDeclarations = new NamespaceDeclarationMap(this), this.children = sr.buildSubtree(cr, dr);
20600
+ const gr = this.omitTemplate(ir).length;
20601
+ this.attributes = AttributeDefinitionMap.from(nr, dr), this.count = RepeatCountControlExpression.from(Ar, gr);
20602
+ }
20603
+ model;
20596
20604
  static from(nr, rr, or, Ar, ir) {
20597
20605
  return new this(nr, rr, or, Ar, ir);
20598
20606
  }
@@ -20603,13 +20611,6 @@ class RepeatDefinition extends DescendentNodeDefinition {
20603
20611
  namespaceDeclarations;
20604
20612
  qualifiedName;
20605
20613
  attributes;
20606
- constructor(nr, rr, or, Ar, ir) {
20607
- super(rr, or, Ar);
20608
- const { root: sr } = rr, [lr] = ir, dr = parseRepeatTemplateElement(lr), cr = this;
20609
- this.template = dr, this.qualifiedName = dr.qualifiedName, this.namespaceDeclarations = new NamespaceDeclarationMap(this), this.children = sr.buildSubtree(cr, dr);
20610
- const gr = this.omitTemplate(ir).length;
20611
- this.attributes = AttributeDefinitionMap.from(nr, dr), this.count = RepeatCountControlExpression.from(Ar, gr);
20612
- }
20613
20614
  isControlled() {
20614
20615
  return this.count != null;
20615
20616
  }
@@ -28291,362 +28292,17 @@ const createAttributeNodeInstanceState = (er) => {
28291
28292
  return cr;
28292
28293
  }
28293
28294
  });
28294
- }), REPEAT_INDEX_REGEX = /([^[]*)(\[[0-9]+\])/g, isInstanceFirstLoad = (er) => er.rootDocument.initializationMode === "create" && !isAddingRepeatChild(er), isAddingRepeatChild = (er) => er.rootDocument.isAttached(), isEditInitialLoad = (er) => er.rootDocument.initializationMode === "edit" && !isAddingRepeatChild(er), getInitialValue = (er) => {
28295
- const nr = er.instanceNode ?? er.definition.template;
28296
- return er.decodeInstanceValue(nr.value);
28297
- }, createRelevantValueState = (er, nr) => er.scope.runTask(() => {
28298
- const [rr, or] = nr;
28299
- return [createMemo(() => er.isRelevant() ? rr() : ""), or];
28300
- }), guardDownstreamReadonlyWrites = (er, nr) => {
28301
- const { readonly: rr } = er.definition.bind;
28302
- if (rr.isDefaultExpression)
28303
- return nr;
28304
- const [or, Ar] = nr;
28305
- return [or, (sr) => {
28306
- if (er.isReadonly()) {
28307
- const lr = untrack(() => er.contextReference());
28308
- throw new Error(`Cannot write to readonly field: ${lr}`);
28309
- }
28310
- return Ar(sr);
28311
- }];
28312
- }, setValueIfPreloadDefined = (er, nr, rr) => {
28313
- const or = rr.getValue(er);
28314
- or && nr(or);
28315
- }, postloadValue = (er, nr, rr) => {
28316
- const { model: or } = er.definition;
28317
- or.registerXformsRevalidateListener(er, () => {
28318
- setValueIfPreloadDefined(er, nr, rr);
28319
- }), onCleanup(() => {
28320
- or.unregisterXformsRevalidateListener(er);
28321
- });
28322
- }, preloadValue = (er, nr) => {
28323
- const { preload: rr } = er.definition.bind;
28324
- rr && (rr.event === XFORM_EVENT.xformsRevalidate ? postloadValue(er, nr, rr) : rr.event === XFORM_EVENT.odkInstanceFirstLoad ? isInstanceFirstLoad(er) && setValueIfPreloadDefined(er, nr, rr) : rr.event === XFORM_EVENT.odkInstanceLoad && (isInstanceFirstLoad(er) || isEditInitialLoad(er)) && setValueIfPreloadDefined(er, nr, rr));
28325
- }, referencesCurrentNode = (er, nr) => {
28326
- const rr = er.evaluator.evaluateNodes(nr, {
28327
- contextNode: er.contextNode
28328
- });
28329
- if (rr.length > 1)
28330
- throw new Error(
28331
- "You are trying to target a repeated field. Currently you may only target a field in a specific repeat instance. XPath nodeset has more than one node."
28332
- );
28333
- return rr.includes(er.contextNode);
28334
- }, bindToRepeatInstance = (er, nr) => {
28335
- let rr = nr.source, or = nr.ref;
28336
- if (rr) {
28337
- const Ar = er.contextReference();
28338
- for (const ir of Ar.matchAll(REPEAT_INDEX_REGEX)) {
28339
- const sr = ir[1] + "/";
28340
- if (rr.includes(sr)) {
28341
- const lr = ir[0] + "/";
28342
- rr = rr.replace(sr, lr), or = or.replace(sr, lr);
28343
- }
28344
- }
28345
- }
28346
- return { source: rr, ref: or };
28347
- }, createCalculation = (er, nr, rr) => {
28348
- const or = createComputedExpression(er, rr);
28349
- createComputed(() => {
28350
- if (er.isAttached() && er.isRelevant()) {
28351
- const Ar = or(), ir = er.decodeInstanceValue(Ar);
28352
- nr(ir);
28353
- }
28354
- });
28355
- }, createActionCalculation = (er, nr, rr) => {
28356
- createComputed(() => {
28357
- if (er.isAttached()) {
28358
- if (!untrack(() => er.isRelevant()))
28359
- return;
28360
- const Ar = untrack(() => er.evaluator.evaluateString(rr.expression, er)), ir = er.decodeInstanceValue(Ar);
28361
- nr(ir);
28362
- }
28363
- });
28364
- }, resolveAndSetValueChanged = (er, nr, rr) => {
28365
- const or = er.evaluator.evaluateString(rr, er), Ar = er.decodeInstanceValue(or);
28366
- nr(Ar);
28367
- }, createValueChangedCalculation = (er, nr, rr) => {
28368
- const { source: or, ref: Ar } = bindToRepeatInstance(er, rr);
28369
- if (!or)
28370
- return;
28371
- const ir = new ActionComputationExpression("string", or), sr = createComputedExpression(er, ir);
28372
- let lr;
28373
- createComputed(() => {
28374
- if (er.isAttached()) {
28375
- const dr = sr();
28376
- lr !== void 0 && lr !== dr && referencesCurrentNode(er, Ar) && (rr.element.nodeName === SET_GEOPOINT_LOCAL_NAME ? getGeopointValue(er, (cr) => {
28377
- nr(cr);
28378
- }) : resolveAndSetValueChanged(er, nr, rr.computation.expression)), lr = dr;
28379
- }
28380
- });
28381
- }, getGeopointValue = (er, nr) => {
28382
- er.rootDocument.getBackgroundGeopoint()?.then((rr) => {
28383
- nr(sharedValueCodecs.geopoint.encodeValue(rr));
28384
- });
28385
- }, performActionComputation = (er, nr, rr) => {
28386
- if (rr.element.nodeName === SET_GEOPOINT_LOCAL_NAME) {
28387
- getGeopointValue(er, (or) => nr(or));
28388
- return;
28389
- }
28390
- createActionCalculation(er, nr, rr.computation);
28391
- }, dispatchAction = (er, nr, rr) => {
28392
- rr.events.includes(XFORM_EVENT.odkInstanceFirstLoad) && isInstanceFirstLoad(er) && performActionComputation(er, nr, rr), rr.events.includes(XFORM_EVENT.odkInstanceLoad) && (isAddingRepeatChild(er) || performActionComputation(er, nr, rr)), rr.events.includes(XFORM_EVENT.odkNewRepeat) && isAddingRepeatChild(er) && performActionComputation(er, nr, rr), rr.events.includes(XFORM_EVENT.xformsValueChanged) && createValueChangedCalculation(er, nr, rr);
28393
- }, createInstanceValueState = (er) => er.scope.runTask(() => {
28394
- const nr = getInitialValue(er), rr = createSignal(nr), or = createRelevantValueState(er, rr), [, Ar] = or;
28395
- preloadValue(er, Ar);
28396
- const { calculate: ir } = er.definition.bind;
28397
- return ir != null && createCalculation(er, Ar, ir), er.definition.model.actions.get(er.contextReference())?.forEach((lr) => dispatchAction(er, Ar, lr)), guardDownstreamReadonlyWrites(er, or);
28398
- }), XFORMS_XPATH_NODE_RANGE_KIND = "comment";
28399
- class DescendantNode extends InstanceNode {
28400
- constructor(nr, rr, or, Ar) {
28401
- super(nr.instanceConfig, nr, rr, or, Ar), this.parent = nr, this.instanceNode = rr, this.definition = or, this.isRoot() ? this.root = this : this.root = nr.root;
28402
- const { evaluator: ir } = nr;
28403
- or.type === "repeat" ? this[XPathNodeKindKey] = XFORMS_XPATH_NODE_RANGE_KIND : this[XPathNodeKindKey] = "element";
28404
- const sr = this;
28405
- this.isAttachedDescendant = this.scope.runTask(() => createMemo(() => {
28406
- for (const gr of nr.getChildren())
28407
- if (gr === sr)
28408
- return !0;
28409
- return !1;
28410
- })), this.isAttached = this.scope.runTask(() => createMemo(() => this.parent.isAttached() && this.isAttachedDescendant())), this.evaluator = ir, this.getActiveLanguage = nr.getActiveLanguage;
28411
- const { readonly: lr, relevant: dr, required: cr } = or.bind;
28412
- this.isSelfReadonly = createComputedExpression(this, lr, {
28413
- defaultValue: !0
28414
- }), this.isSelfRelevant = createComputedExpression(this, dr, {
28415
- defaultValue: !1
28416
- }), this.isRequired = createComputedExpression(this, cr, {
28417
- defaultValue: !1
28418
- });
28419
- }
28420
- parent;
28421
- instanceNode;
28422
- definition;
28423
- /**
28424
- * Partial implementation of {@link isAttached}, used to check whether `this`
28425
- * is present in {@link parent}'s children state.
28426
- */
28427
- isAttachedDescendant;
28428
- hasReadonlyAncestor = () => {
28429
- const { parent: nr } = this;
28430
- return nr.hasReadonlyAncestor() || nr.isReadonly();
28431
- };
28432
- isSelfReadonly;
28433
- isReadonly = () => this.hasReadonlyAncestor() ? !0 : this.isSelfReadonly();
28434
- hasNonRelevantAncestor = () => {
28435
- const { parent: nr } = this;
28436
- return nr.hasNonRelevantAncestor() || !nr.isRelevant();
28437
- };
28438
- isSelfRelevant;
28439
- isRelevant = () => this.hasNonRelevantAncestor() ? !1 : this.isSelfRelevant();
28440
- hasRelevantBodyNodes = () => {
28441
- if (!this.isSelfRelevant())
28442
- return !1;
28443
- const nr = this.getChildren();
28444
- return nr?.length ? nr.filter((rr) => rr.nodeType !== "model-value").some((rr) => rr.getChildren()?.length ? rr.hasRelevantBodyNodes() : rr.isSelfRelevant()) : !1;
28445
- };
28446
- isRequired;
28447
- // XFormsXPathPrimaryInstanceDescendantNode
28448
- /**
28449
- * WARNING! Ideally, this would be an abstract property, defined by each
28450
- * concrete subclass (or other intermediate abstract classes, where
28451
- * appropriate). Unfortunately it must be assigned here, so it will be present
28452
- * for certain XPath DOM adapter functionality **during** each concrete node's
28453
- * construction.
28454
- *
28455
- * Those subclasses nevertheless override this same property, assigning the
28456
- * same value, for the purposes of narrowing the XPath node kind semantics
28457
- * appropriate for each node type.
28458
- */
28459
- [XPathNodeKindKey];
28460
- root;
28461
- // EvaluationContext
28462
- isAttached;
28463
- evaluator;
28464
- contextNode = this;
28465
- getActiveLanguage;
28466
- /**
28467
- * @package
28468
- *
28469
- * Performs recursive removal, first of the node's descendants, then of the
28470
- * node itself. For all {@link DescendantNode}s, removal involves **at least**
28471
- * disposal of its {@link scope} ({@link ReactiveScope}).
28472
- *
28473
- * It is expected that the outermost node targeted for removal will always be
28474
- * a {@link RepeatInstance}. @see {@link RepeatInstance.remove} for additional
28475
- * details.
28476
- *
28477
- * It is also expected that upon that outermost node's removal, its parent
28478
- * {@link RepeatRange} will perform a reactive update to its children state so
28479
- * that:
28480
- *
28481
- * 1. Any downstream computations affected by the removal are updated.
28482
- * 2. The client invoking removal is also reactively updated (where
28483
- * applicable).
28484
- *
28485
- * @see {@link RepeatInstance.remove} and {@link RepeatRange.removeInstances}
28486
- * for additional details about their respective node-specific removal
28487
- * behaviors and ordering.
28488
- *
28489
- * @todo Possibly retain removed repeat instances in memory. This came up as a
28490
- * behavior of Collect/JavaRosa, and we should investigate the details and
28491
- * ramifications of that, and whether it's the desired behavior.
28492
- */
28493
- remove() {
28494
- this.scope.runTask(() => {
28495
- this.getChildren().forEach((nr) => {
28496
- nr.remove();
28497
- });
28498
- }), this.scope.dispose();
28499
- }
28500
- }
28501
- class Attribute extends DescendantNode {
28502
- constructor(nr, rr, or) {
28503
- const Ar = () => `${this.owner.contextReference()}/@${this.definition.qualifiedName.getPrefixedName()}`;
28504
- super(nr, or, rr, { computeReference: Ar }), this.owner = nr, this.instanceNode = or;
28505
- const ir = getSharedValueCodec("string");
28506
- this.validationState = { violations: [] }, this.valueType = "string", this.decodeInstanceValue = ir.decodeInstanceValue;
28507
- const sr = createInstanceValueState(this), lr = ir.createRuntimeValueState(sr), [dr] = sr, [, cr] = lr;
28508
- this.getInstanceValue = dr, this.setValueState = cr, this.valueState = lr;
28509
- const gr = createSharedNodeState(
28510
- nr.scope,
28511
- {
28512
- value: this.valueState,
28513
- instanceValue: this.getInstanceValue,
28514
- relevant: this.owner.isRelevant,
28515
- readonly: () => !0,
28516
- reference: this.contextReference,
28517
- required: () => !1,
28518
- children: null,
28519
- label: () => null,
28520
- hint: () => null,
28521
- attributes: () => [],
28522
- valueOptions: () => []
28523
- },
28524
- this.instanceConfig
28525
- );
28526
- this.state = gr, this.engineState = gr.engineState, this.currentState = gr.currentState, this.instanceState = createAttributeNodeInstanceState(this), this.attributeState = createAttributeState(this.scope), this.getXPathValue = () => this.getInstanceValue();
28527
- }
28528
- owner;
28529
- instanceNode;
28530
- [XPathNodeKindKey] = "attribute";
28531
- state;
28532
- engineState;
28533
- validationState;
28534
- nodeType = "attribute";
28535
- currentState;
28536
- instanceState;
28537
- appearances = null;
28538
- nodeOptions = null;
28539
- valueType;
28540
- decodeInstanceValue;
28541
- getInstanceValue;
28542
- valueState;
28543
- setValueState;
28544
- attributeState;
28545
- isAttached = () => this.owner.isAttached();
28546
- getXPathValue;
28547
- setValue(nr) {
28548
- return this.setValueState(nr), this.root;
28549
- }
28550
- getAttributes() {
28551
- return [];
28552
- }
28553
- getChildren() {
28554
- return [];
28555
- }
28556
- }
28557
- function buildInstanceAttributeMap(er) {
28558
- const nr = /* @__PURE__ */ new Map();
28559
- if (!er)
28560
- return nr;
28561
- for (const rr of er.attributes)
28562
- nr.set(rr.qualifiedName.getPrefixedName(), rr);
28563
- return nr;
28564
- }
28565
- function buildAttributes(er) {
28566
- const nr = er.definition.attributes;
28567
- if (!nr)
28568
- return [];
28569
- const rr = buildInstanceAttributeMap(er.instanceNode);
28570
- return Array.from(nr.values()).map((or) => {
28571
- const Ar = rr.get(or.qualifiedName.getPrefixedName()) ?? or.template;
28572
- return new Attribute(er, or, Ar);
28573
- });
28574
- }
28575
- class InstanceAttachmentsState extends Map {
28576
- constructor(nr = null, rr = null) {
28577
- super(), this.sourceAttachments = nr, this.fetchFormAttachment = rr;
28578
- }
28579
- sourceAttachments;
28580
- fetchFormAttachment;
28581
- async resolveFormAttachmentFile(nr, rr) {
28582
- const or = await nr(JRResourceURL.from(rr));
28583
- if (!or.ok)
28584
- throw new Error(`Error fetching form attachment: ${rr}`);
28585
- const Ar = await or.blob();
28586
- return new File([Ar], rr, { type: Ar.type });
28587
- }
28588
- getInitialFileValue(nr) {
28589
- if (nr == null)
28590
- return null;
28591
- const { value: rr } = nr, or = this.sourceAttachments?.get(rr) ?? null;
28592
- return or ?? (this.fetchFormAttachment != null && JRResourceURL.isJRResourceReference(rr) ? this.resolveFormAttachmentFile(this.fetchFormAttachment, rr) : null);
28593
- }
28594
- retryFileValue(nr) {
28595
- nr !== null && this.sourceAttachments?.retry(nr.value);
28596
- }
28597
- }
28598
- const createRootInstanceState = (er) => ({
28599
- get instanceXML() {
28600
- return serializeParentElementXML(
28601
- er.definition.qualifiedName,
28602
- er.currentState.children,
28603
- er.currentState.attributes,
28604
- er.definition.namespaceDeclarations
28605
- );
28606
- }
28607
- }), violationReference = (er) => {
28608
- const nr = er.getViolation();
28609
- if (nr == null)
28610
- return null;
28611
- const { nodeId: rr } = er;
28295
+ }), createValueNodeInstanceState = (er) => {
28296
+ const { qualifiedName: nr } = er.definition;
28612
28297
  return {
28613
- nodeId: rr,
28614
- get reference() {
28615
- return er.currentState.reference;
28616
- },
28617
- violation: nr
28618
- };
28619
- }, collectViolationReferences = (er) => er.getChildren().flatMap((nr) => {
28620
- switch (nr.nodeType) {
28621
- case "model-value":
28622
- case "input":
28623
- case "note":
28624
- case "select":
28625
- case "range":
28626
- case "rank":
28627
- case "trigger":
28628
- case "upload": {
28629
- const rr = violationReference(nr);
28630
- return rr == null ? [] : [rr];
28298
+ get instanceXML() {
28299
+ if (!er.currentState.relevant)
28300
+ return "";
28301
+ const rr = escapeXMLText(er.currentState.instanceValue), or = er.currentState.attributes;
28302
+ return serializeLeafElementXML(nr, rr, or);
28631
28303
  }
28632
- default:
28633
- return collectViolationReferences(nr);
28634
- }
28635
- }), createAggregatedViolations = (er, nr) => {
28636
- const { scope: rr } = er;
28637
- return rr.runTask(() => {
28638
- const Ar = { violations: createMemo(() => collectViolationReferences(er)) };
28639
- return createSharedNodeState(rr, Ar, nr).currentState;
28640
- });
28641
- }, createParentNodeInstanceState = (er) => ({
28642
- get instanceXML() {
28643
- return er.currentState.relevant ? serializeParentElementXML(
28644
- er.definition.qualifiedName,
28645
- er.currentState.children,
28646
- er.currentState.attributes
28647
- ) : "";
28648
- }
28649
- });
28304
+ };
28305
+ };
28650
28306
  class TextChunk {
28651
28307
  constructor(nr, rr, or) {
28652
28308
  this.context = nr, this.source = rr, this.asString = or;
@@ -31897,7 +31553,11 @@ function escapeEditableChunks(er) {
31897
31553
  function isSingleOrderedList(er) {
31898
31554
  return er.length === 1 && er[0]?.role === "parent" && er[0]?.elementName === "ol" && er[0].children.length === 1;
31899
31555
  }
31556
+ function escapeBlockquote(er) {
31557
+ return er.replaceAll(/(^|\n)> /g, "$1\\> ");
31558
+ }
31900
31559
  function toOdkMarkdown(er) {
31560
+ er = escapeBlockquote(er);
31901
31561
  const nr = fromMarkdown(er);
31902
31562
  newlineToBreak(nr);
31903
31563
  const rr = mdastToOdkMarkdown(nr.children);
@@ -31980,72 +31640,7 @@ const generateResourceChunk = (er, nr, rr) => {
31980
31640
  }, createTextRange = (er, nr, rr) => er.scope.runTask(() => createMemo(() => {
31981
31641
  const or = createTextChunks(er, rr);
31982
31642
  return new TextRange(nr, or.chunks, or.mediaSources);
31983
- })), createNodeLabel = (er, nr) => {
31984
- const rr = nr.bodyElement?.label ?? null;
31985
- return rr == null ? () => null : createTextRange(er, "label", rr);
31986
- };
31987
- class Group extends DescendantNode {
31988
- childrenState;
31989
- [XPathNodeKindKey] = "element";
31990
- // InstanceNode
31991
- state;
31992
- engineState;
31993
- attributeState;
31994
- // GroupNode
31995
- nodeType = "group";
31996
- appearances;
31997
- nodeOptions = null;
31998
- currentState;
31999
- validationState;
32000
- instanceState;
32001
- constructor(nr, rr, or) {
32002
- super(nr, rr, or), this.appearances = or.bodyElement?.appearances ?? null;
32003
- const Ar = createChildrenState(this);
32004
- this.attributeState = createAttributeState(this.scope), this.childrenState = Ar;
32005
- const ir = createSharedNodeState(
32006
- this.scope,
32007
- {
32008
- reference: this.contextReference,
32009
- readonly: this.isReadonly,
32010
- relevant: this.isRelevant,
32011
- required: this.isRequired,
32012
- label: createNodeLabel(this, or),
32013
- hint: null,
32014
- children: Ar.childIds,
32015
- hasRelevantBodyNodes: this.hasRelevantBodyNodes,
32016
- attributes: this.attributeState.getAttributes,
32017
- valueOptions: null,
32018
- value: null
32019
- },
32020
- this.instanceConfig
32021
- );
32022
- this.state = ir, this.engineState = ir.engineState, this.currentState = materializeCurrentStateChildren(
32023
- this.scope,
32024
- ir.currentState,
32025
- Ar
32026
- ), Ar.setChildren(buildChildren(this)), this.attributeState.setAttributes(buildAttributes(this)), this.validationState = createAggregatedViolations(this, this.instanceConfig), this.instanceState = createParentNodeInstanceState(this);
32027
- }
32028
- getChildren() {
32029
- return this.childrenState.getChildren();
32030
- }
32031
- getAttributes() {
32032
- return this.attributeState.getAttributes();
32033
- }
32034
- }
32035
- const createFieldHint = (er, nr) => {
32036
- const rr = nr.bodyElement?.hint ?? null;
32037
- return rr == null ? () => null : createTextRange(er, "hint", rr);
32038
- }, createValueNodeInstanceState = (er) => {
32039
- const { qualifiedName: nr } = er.definition;
32040
- return {
32041
- get instanceXML() {
32042
- if (!er.currentState.relevant)
32043
- return "";
32044
- const rr = escapeXMLText(er.currentState.instanceValue), or = er.currentState.attributes;
32045
- return serializeLeafElementXML(nr, rr, or);
32046
- }
32047
- };
32048
- }, constraintValid = () => ({
31643
+ })), constraintValid = () => ({
32049
31644
  condition: "constraint",
32050
31645
  valid: !0,
32051
31646
  message: null
@@ -32088,12 +31683,120 @@ const createFieldHint = (er, nr) => {
32088
31683
  violation: lr
32089
31684
  }, nr);
32090
31685
  });
32091
- };
31686
+ }, XFORMS_XPATH_NODE_RANGE_KIND = "comment";
31687
+ class DescendantNode extends InstanceNode {
31688
+ constructor(nr, rr, or, Ar) {
31689
+ super(nr.instanceConfig, nr, rr, or, Ar), this.parent = nr, this.instanceNode = rr, this.definition = or, this.isRoot() ? this.root = this : this.root = nr.root;
31690
+ const { evaluator: ir } = nr;
31691
+ or.type === "repeat" ? this[XPathNodeKindKey] = XFORMS_XPATH_NODE_RANGE_KIND : this[XPathNodeKindKey] = "element";
31692
+ const sr = this;
31693
+ this.isAttachedDescendant = this.scope.runTask(() => createMemo(() => {
31694
+ for (const gr of nr.getChildren())
31695
+ if (gr === sr)
31696
+ return !0;
31697
+ return !1;
31698
+ })), this.isAttached = this.scope.runTask(() => createMemo(() => this.parent.isAttached() && this.isAttachedDescendant())), this.evaluator = ir, this.getActiveLanguage = nr.getActiveLanguage;
31699
+ const { readonly: lr, relevant: dr, required: cr } = or.bind;
31700
+ this.isSelfReadonly = createComputedExpression(this, lr, {
31701
+ defaultValue: !0
31702
+ }), this.isSelfRelevant = createComputedExpression(this, dr, {
31703
+ defaultValue: !1
31704
+ }), this.isRequired = createComputedExpression(this, cr, {
31705
+ defaultValue: !1
31706
+ }), this.valueChangedActions = Array.from(or.bodyElement?.element.children ?? []).map((gr) => {
31707
+ if (gr.nodeName === SET_VALUE_LOCAL_NAME || gr.nodeName === SET_GEOPOINT_LOCAL_NAME) {
31708
+ const Ir = new ActionDefinition(or.model, gr);
31709
+ if (Ir.events.includes(XFORM_EVENT.xformsValueChanged))
31710
+ return Ir;
31711
+ }
31712
+ return null;
31713
+ }).filter((gr) => !!gr);
31714
+ }
31715
+ parent;
31716
+ instanceNode;
31717
+ definition;
31718
+ /**
31719
+ * Partial implementation of {@link isAttached}, used to check whether `this`
31720
+ * is present in {@link parent}'s children state.
31721
+ */
31722
+ isAttachedDescendant;
31723
+ hasReadonlyAncestor = () => {
31724
+ const { parent: nr } = this;
31725
+ return nr.hasReadonlyAncestor() || nr.isReadonly();
31726
+ };
31727
+ isSelfReadonly;
31728
+ isReadonly = () => this.hasReadonlyAncestor() ? !0 : this.isSelfReadonly();
31729
+ hasNonRelevantAncestor = () => {
31730
+ const { parent: nr } = this;
31731
+ return nr.hasNonRelevantAncestor() || !nr.isRelevant();
31732
+ };
31733
+ isSelfRelevant;
31734
+ isRelevant = () => this.hasNonRelevantAncestor() ? !1 : this.isSelfRelevant();
31735
+ hasRelevantBodyNodes = () => {
31736
+ if (!this.isSelfRelevant())
31737
+ return !1;
31738
+ const nr = this.getChildren();
31739
+ return nr?.length ? nr.filter((rr) => rr.nodeType !== "model-value").some((rr) => rr.getChildren()?.length ? rr.hasRelevantBodyNodes() : rr.isSelfRelevant()) : !1;
31740
+ };
31741
+ isRequired;
31742
+ // XFormsXPathPrimaryInstanceDescendantNode
31743
+ /**
31744
+ * WARNING! Ideally, this would be an abstract property, defined by each
31745
+ * concrete subclass (or other intermediate abstract classes, where
31746
+ * appropriate). Unfortunately it must be assigned here, so it will be present
31747
+ * for certain XPath DOM adapter functionality **during** each concrete node's
31748
+ * construction.
31749
+ *
31750
+ * Those subclasses nevertheless override this same property, assigning the
31751
+ * same value, for the purposes of narrowing the XPath node kind semantics
31752
+ * appropriate for each node type.
31753
+ */
31754
+ [XPathNodeKindKey];
31755
+ root;
31756
+ // EvaluationContext
31757
+ isAttached;
31758
+ evaluator;
31759
+ contextNode = this;
31760
+ getActiveLanguage;
31761
+ valueChangedActions;
31762
+ /**
31763
+ * @package
31764
+ *
31765
+ * Performs recursive removal, first of the node's descendants, then of the
31766
+ * node itself. For all {@link DescendantNode}s, removal involves **at least**
31767
+ * disposal of its {@link scope} ({@link ReactiveScope}).
31768
+ *
31769
+ * It is expected that the outermost node targeted for removal will always be
31770
+ * a {@link RepeatInstance}. @see {@link RepeatInstance.remove} for additional
31771
+ * details.
31772
+ *
31773
+ * It is also expected that upon that outermost node's removal, its parent
31774
+ * {@link RepeatRange} will perform a reactive update to its children state so
31775
+ * that:
31776
+ *
31777
+ * 1. Any downstream computations affected by the removal are updated.
31778
+ * 2. The client invoking removal is also reactively updated (where
31779
+ * applicable).
31780
+ *
31781
+ * @see {@link RepeatInstance.remove} and {@link RepeatRange.removeInstances}
31782
+ * for additional details about their respective node-specific removal
31783
+ * behaviors and ordering.
31784
+ */
31785
+ remove() {
31786
+ this.scope.runTask(() => {
31787
+ this.getChildren().forEach((nr) => {
31788
+ nr.remove();
31789
+ });
31790
+ }), this.scope.dispose();
31791
+ }
31792
+ }
32092
31793
  class ValueNode extends DescendantNode {
32093
31794
  constructor(nr, rr, or, Ar) {
32094
31795
  super(nr, rr, or), this.instanceNode = rr, this.valueType = or.valueType, this.decodeInstanceValue = Ar.decodeInstanceValue;
32095
31796
  const ir = createInstanceValueState(this), sr = Ar.createRuntimeValueState(ir), [lr] = ir, [, dr] = sr;
32096
- this.getInstanceValue = lr, this.setValueState = dr, this.getXPathValue = () => this.getInstanceValue(), this.valueState = sr, this.validation = createValidationState(this, this.instanceConfig), this.instanceState = createValueNodeInstanceState(this);
31797
+ this.getInstanceValue = lr, this.setValueState = dr, this.getXPathValue = () => this.getInstanceValue(), this.valueState = sr, this.validation = createValidationState(this, this.instanceConfig), this.instanceState = createValueNodeInstanceState(this), this.setEncodedValue = (cr) => {
31798
+ this.setValueState(Ar.decodeValue(cr));
31799
+ };
32097
31800
  }
32098
31801
  instanceNode;
32099
31802
  validation;
@@ -32110,6 +31813,7 @@ class ValueNode extends DescendantNode {
32110
31813
  return this.validation.currentState;
32111
31814
  }
32112
31815
  instanceState;
31816
+ setEncodedValue;
32113
31817
  // ValidationContext
32114
31818
  getViolation() {
32115
31819
  return this.validation.engineState.violation;
@@ -32122,7 +31826,330 @@ class ValueNode extends DescendantNode {
32122
31826
  return [];
32123
31827
  }
32124
31828
  }
32125
- const stringInputNodeOptions = (er) => ({
31829
+ const REPEAT_INDEX_REGEX = /([^[]*)(\[[0-9]+\])/g, isInstanceFirstLoad = (er) => er.rootDocument.initializationMode === "create" && !isAddingRepeatChild(er), isAddingRepeatChild = (er) => er.rootDocument.isAttached(), isEditInitialLoad = (er) => er.rootDocument.initializationMode === "edit" && !isAddingRepeatChild(er), getInitialValue = (er) => {
31830
+ const nr = er.instanceNode ?? er.definition.template;
31831
+ return er.decodeInstanceValue(nr.value);
31832
+ }, createRelevantValueState = (er, nr) => er.scope.runTask(() => {
31833
+ const [rr, or] = nr;
31834
+ return [createMemo(() => er.isRelevant() ? rr() : ""), or];
31835
+ }), guardDownstreamReadonlyWrites = (er, nr) => {
31836
+ const { readonly: rr } = er.definition.bind;
31837
+ if (rr.isDefaultExpression)
31838
+ return nr;
31839
+ const [or, Ar] = nr;
31840
+ return [or, (sr) => {
31841
+ if (er.isReadonly()) {
31842
+ const lr = untrack(() => er.contextReference());
31843
+ throw new Error(`Cannot write to readonly field: ${lr}`);
31844
+ }
31845
+ return Ar(sr);
31846
+ }];
31847
+ }, setValueIfPreloadDefined = (er, nr, rr) => {
31848
+ const or = rr.getValue(er);
31849
+ or && nr(or);
31850
+ }, postloadValue = (er, nr, rr) => {
31851
+ const { model: or } = er.definition;
31852
+ or.registerXformsRevalidateListener(er, () => {
31853
+ setValueIfPreloadDefined(er, nr, rr);
31854
+ }), onCleanup(() => {
31855
+ or.unregisterXformsRevalidateListener(er);
31856
+ });
31857
+ }, preloadValue = (er, nr) => {
31858
+ const { preload: rr } = er.definition.bind;
31859
+ rr && (rr.event === XFORM_EVENT.xformsRevalidate ? postloadValue(er, nr, rr) : rr.event === XFORM_EVENT.odkInstanceFirstLoad ? isInstanceFirstLoad(er) && setValueIfPreloadDefined(er, nr, rr) : rr.event === XFORM_EVENT.odkInstanceLoad && (isInstanceFirstLoad(er) || isEditInitialLoad(er)) && setValueIfPreloadDefined(er, nr, rr));
31860
+ }, referencesCurrentNode = (er, nr) => {
31861
+ const rr = er.evaluator.evaluateNodes(nr, {
31862
+ contextNode: er.contextNode
31863
+ });
31864
+ if (rr.length > 1)
31865
+ throw new Error(
31866
+ "You are trying to target a repeated field. Currently you may only target a field in a specific repeat instance. XPath nodeset has more than one node."
31867
+ );
31868
+ return rr.includes(er.contextNode);
31869
+ }, bindRefToRepeatInstance = (er, nr) => {
31870
+ const rr = er.contextReference();
31871
+ for (const or of rr.matchAll(REPEAT_INDEX_REGEX)) {
31872
+ const Ar = or[1] + "/", ir = or[0] + "/";
31873
+ nr.includes(Ar) && (nr = nr.replace(Ar, ir));
31874
+ }
31875
+ return nr;
31876
+ }, createCalculation = (er, nr, rr) => {
31877
+ const or = createComputedExpression(er, rr);
31878
+ createComputed(() => {
31879
+ if (er.isAttached() && er.isRelevant()) {
31880
+ const Ar = or(), ir = er.decodeInstanceValue(Ar);
31881
+ nr(ir);
31882
+ }
31883
+ });
31884
+ }, createActionCalculation = (er, nr, rr) => {
31885
+ createComputed(() => {
31886
+ if (er.isAttached()) {
31887
+ if (!untrack(() => er.isRelevant()))
31888
+ return;
31889
+ const Ar = untrack(() => er.evaluator.evaluateString(rr.expression, er)), ir = er.decodeInstanceValue(Ar);
31890
+ nr(ir);
31891
+ }
31892
+ });
31893
+ }, getGeopointValue = (er, nr) => {
31894
+ er.rootDocument.getBackgroundGeopoint()?.then((rr) => {
31895
+ nr(sharedValueCodecs.geopoint.encodeValue(rr));
31896
+ });
31897
+ }, performActionComputation = (er, nr, rr) => {
31898
+ if (rr.type === "geopoint") {
31899
+ getGeopointValue(er, (or) => nr(or));
31900
+ return;
31901
+ }
31902
+ createActionCalculation(er, nr, rr.computation);
31903
+ }, registerSetValueActions = (er, nr) => {
31904
+ er.definition.model.actions.get(er.contextReference())?.forEach((or) => {
31905
+ or.events.includes(XFORM_EVENT.odkInstanceFirstLoad) && isInstanceFirstLoad(er) && performActionComputation(er, nr, or), or.events.includes(XFORM_EVENT.odkInstanceLoad) && (isAddingRepeatChild(er) || performActionComputation(er, nr, or)), or.events.includes(XFORM_EVENT.odkNewRepeat) && isAddingRepeatChild(er) && performActionComputation(er, nr, or);
31906
+ });
31907
+ }, registerValueChangedActions = (er, nr) => {
31908
+ if (!er.valueChangedActions?.length)
31909
+ return;
31910
+ let rr;
31911
+ createComputed(() => {
31912
+ const or = nr();
31913
+ er.valueChangedActions.forEach((Ar) => {
31914
+ const ir = bindRefToRepeatInstance(er, Ar.ref), sr = er.evaluator.evaluateNodes(ir, {
31915
+ contextNode: er.contextNode
31916
+ });
31917
+ if (!sr.length)
31918
+ return;
31919
+ const lr = sr[0];
31920
+ if ((lr instanceof ValueNode || lr instanceof Attribute) && lr.isAttached() && er.isAttached() && rr !== void 0 && rr !== or && referencesCurrentNode(lr, ir))
31921
+ if (Ar.type === "geopoint")
31922
+ getGeopointValue(er, (dr) => lr.setEncodedValue(dr));
31923
+ else {
31924
+ const dr = untrack(() => er.evaluator.evaluateString(
31925
+ Ar.computation.expression,
31926
+ lr
31927
+ ));
31928
+ lr.setEncodedValue(dr);
31929
+ }
31930
+ }), rr = or;
31931
+ });
31932
+ }, createInstanceValueState = (er) => er.scope.runTask(() => {
31933
+ const nr = getInitialValue(er), rr = createSignal(nr), or = createRelevantValueState(er, rr), [Ar, ir] = or;
31934
+ preloadValue(er, ir);
31935
+ const { calculate: sr } = er.definition.bind;
31936
+ return sr != null && createCalculation(er, ir, sr), registerValueChangedActions(er, Ar), registerSetValueActions(er, ir), guardDownstreamReadonlyWrites(er, or);
31937
+ });
31938
+ class Attribute extends DescendantNode {
31939
+ constructor(nr, rr, or) {
31940
+ const Ar = () => `${this.owner.contextReference()}/@${this.definition.qualifiedName.getPrefixedName()}`;
31941
+ super(nr, or, rr, { computeReference: Ar }), this.owner = nr, this.instanceNode = or;
31942
+ const ir = getSharedValueCodec("string");
31943
+ this.validationState = { violations: [] }, this.valueType = "string", this.decodeInstanceValue = ir.decodeInstanceValue;
31944
+ const sr = createInstanceValueState(this), lr = ir.createRuntimeValueState(sr), [dr] = sr, [, cr] = lr;
31945
+ this.getInstanceValue = dr, this.setValueState = cr, this.valueState = lr;
31946
+ const gr = createSharedNodeState(
31947
+ nr.scope,
31948
+ {
31949
+ value: this.valueState,
31950
+ instanceValue: this.getInstanceValue,
31951
+ relevant: this.owner.isRelevant,
31952
+ readonly: () => !0,
31953
+ reference: this.contextReference,
31954
+ required: () => !1,
31955
+ children: null,
31956
+ label: () => null,
31957
+ hint: () => null,
31958
+ attributes: () => [],
31959
+ valueOptions: () => []
31960
+ },
31961
+ this.instanceConfig
31962
+ );
31963
+ this.state = gr, this.engineState = gr.engineState, this.currentState = gr.currentState, this.instanceState = createAttributeNodeInstanceState(this), this.attributeState = createAttributeState(this.scope), this.getXPathValue = () => this.getInstanceValue(), this.setEncodedValue = (Ir) => {
31964
+ this.setValueState(ir.decodeValue(Ir));
31965
+ };
31966
+ }
31967
+ owner;
31968
+ instanceNode;
31969
+ [XPathNodeKindKey] = "attribute";
31970
+ state;
31971
+ engineState;
31972
+ validationState;
31973
+ nodeType = "attribute";
31974
+ currentState;
31975
+ instanceState;
31976
+ appearances = null;
31977
+ nodeOptions = null;
31978
+ valueType;
31979
+ decodeInstanceValue;
31980
+ getInstanceValue;
31981
+ valueState;
31982
+ setValueState;
31983
+ attributeState;
31984
+ isAttached = () => this.owner.isAttached();
31985
+ getXPathValue;
31986
+ setEncodedValue;
31987
+ setValue(nr) {
31988
+ return this.setValueState(nr), this.root;
31989
+ }
31990
+ getAttributes() {
31991
+ return [];
31992
+ }
31993
+ getChildren() {
31994
+ return [];
31995
+ }
31996
+ }
31997
+ function buildInstanceAttributeMap(er) {
31998
+ const nr = /* @__PURE__ */ new Map();
31999
+ if (!er)
32000
+ return nr;
32001
+ for (const rr of er.attributes)
32002
+ nr.set(rr.qualifiedName.getPrefixedName(), rr);
32003
+ return nr;
32004
+ }
32005
+ const isFormMetadataAttribute = (er, nr) => er.nodeType === "root" && nr.qualifiedName.localName === "version", resolveAttributeSourceNode = (er, nr, rr) => isFormMetadataAttribute(er, nr) ? nr.template : rr.get(
32006
+ nr.qualifiedName.getPrefixedName()
32007
+ ) ?? nr.template;
32008
+ function buildAttributes(er) {
32009
+ const nr = er.definition.attributes;
32010
+ if (!nr)
32011
+ return [];
32012
+ const rr = buildInstanceAttributeMap(er.instanceNode);
32013
+ return Array.from(nr.values()).map((or) => {
32014
+ const Ar = resolveAttributeSourceNode(er, or, rr);
32015
+ return new Attribute(er, or, Ar);
32016
+ });
32017
+ }
32018
+ class AttachmentNotFoundError extends Error {
32019
+ constructor(nr) {
32020
+ super(`Attachment not found: ${nr}`);
32021
+ }
32022
+ }
32023
+ class InstanceAttachmentsState extends Map {
32024
+ constructor(nr = null, rr = null) {
32025
+ super(), this.sourceAttachments = nr, this.fetchFormAttachment = rr;
32026
+ }
32027
+ sourceAttachments;
32028
+ fetchFormAttachment;
32029
+ async resolveFormAttachmentFile(nr, rr) {
32030
+ const or = await nr(JRResourceURL.from(rr));
32031
+ if (!or.ok)
32032
+ throw new Error(`Error fetching form attachment: ${rr}`);
32033
+ const Ar = await or.blob();
32034
+ return new File([Ar], rr, { type: Ar.type });
32035
+ }
32036
+ getInitialFileValue(nr) {
32037
+ if (!nr?.value?.length)
32038
+ return null;
32039
+ const rr = nr.value.trim(), or = this.sourceAttachments?.get(rr) ?? null;
32040
+ return or ?? (JRResourceURL.isJRResourceReference(rr) ? this.fetchFormAttachment ? this.resolveFormAttachmentFile(this.fetchFormAttachment, rr) : null : Promise.reject(new AttachmentNotFoundError(rr)));
32041
+ }
32042
+ retryFileValue(nr) {
32043
+ nr !== null && this.sourceAttachments?.retry(nr.value.trim());
32044
+ }
32045
+ }
32046
+ const createRootInstanceState = (er) => ({
32047
+ get instanceXML() {
32048
+ return serializeParentElementXML(
32049
+ er.definition.qualifiedName,
32050
+ er.currentState.children,
32051
+ er.currentState.attributes,
32052
+ er.definition.namespaceDeclarations
32053
+ );
32054
+ }
32055
+ }), violationReference = (er) => {
32056
+ const nr = er.getViolation();
32057
+ if (nr == null)
32058
+ return null;
32059
+ const { nodeId: rr } = er;
32060
+ return {
32061
+ nodeId: rr,
32062
+ get reference() {
32063
+ return er.currentState.reference;
32064
+ },
32065
+ violation: nr
32066
+ };
32067
+ }, collectViolationReferences = (er) => er.getChildren().flatMap((nr) => {
32068
+ switch (nr.nodeType) {
32069
+ case "model-value":
32070
+ case "input":
32071
+ case "note":
32072
+ case "select":
32073
+ case "range":
32074
+ case "rank":
32075
+ case "trigger":
32076
+ case "upload": {
32077
+ const rr = violationReference(nr);
32078
+ return rr == null ? [] : [rr];
32079
+ }
32080
+ default:
32081
+ return collectViolationReferences(nr);
32082
+ }
32083
+ }), createAggregatedViolations = (er, nr) => {
32084
+ const { scope: rr } = er;
32085
+ return rr.runTask(() => {
32086
+ const Ar = { violations: createMemo(() => collectViolationReferences(er)) };
32087
+ return createSharedNodeState(rr, Ar, nr).currentState;
32088
+ });
32089
+ }, createParentNodeInstanceState = (er) => ({
32090
+ get instanceXML() {
32091
+ return er.currentState.relevant ? serializeParentElementXML(
32092
+ er.definition.qualifiedName,
32093
+ er.currentState.children,
32094
+ er.currentState.attributes
32095
+ ) : "";
32096
+ }
32097
+ }), createNodeLabel = (er, nr) => {
32098
+ const rr = nr.bodyElement?.label ?? null;
32099
+ return rr == null ? () => null : createTextRange(er, "label", rr);
32100
+ };
32101
+ class Group extends DescendantNode {
32102
+ childrenState;
32103
+ [XPathNodeKindKey] = "element";
32104
+ // InstanceNode
32105
+ state;
32106
+ engineState;
32107
+ attributeState;
32108
+ // GroupNode
32109
+ nodeType = "group";
32110
+ appearances;
32111
+ nodeOptions = null;
32112
+ currentState;
32113
+ validationState;
32114
+ instanceState;
32115
+ constructor(nr, rr, or) {
32116
+ super(nr, rr, or), this.appearances = or.bodyElement?.appearances ?? null;
32117
+ const Ar = createChildrenState(this);
32118
+ this.attributeState = createAttributeState(this.scope), this.childrenState = Ar;
32119
+ const ir = createSharedNodeState(
32120
+ this.scope,
32121
+ {
32122
+ reference: this.contextReference,
32123
+ readonly: this.isReadonly,
32124
+ relevant: this.isRelevant,
32125
+ required: this.isRequired,
32126
+ label: createNodeLabel(this, or),
32127
+ hint: null,
32128
+ children: Ar.childIds,
32129
+ hasRelevantBodyNodes: this.hasRelevantBodyNodes,
32130
+ attributes: this.attributeState.getAttributes,
32131
+ valueOptions: null,
32132
+ value: null
32133
+ },
32134
+ this.instanceConfig
32135
+ );
32136
+ this.state = ir, this.engineState = ir.engineState, this.currentState = materializeCurrentStateChildren(
32137
+ this.scope,
32138
+ ir.currentState,
32139
+ Ar
32140
+ ), Ar.setChildren(buildChildren(this)), this.attributeState.setAttributes(buildAttributes(this)), this.validationState = createAggregatedViolations(this, this.instanceConfig), this.instanceState = createParentNodeInstanceState(this);
32141
+ }
32142
+ getChildren() {
32143
+ return this.childrenState.getChildren();
32144
+ }
32145
+ getAttributes() {
32146
+ return this.attributeState.getAttributes();
32147
+ }
32148
+ }
32149
+ const createFieldHint = (er, nr) => {
32150
+ const rr = nr.bodyElement?.hint ?? null;
32151
+ return rr == null ? () => null : createTextRange(er, "hint", rr);
32152
+ }, stringInputNodeOptions = (er) => ({
32126
32153
  rows: er.rows
32127
32154
  }), geoInputNodeOptions = (er) => ({
32128
32155
  accuracyThreshold: er.accuracyThreshold,
@@ -32769,8 +32796,8 @@ class BaseRepeatRange extends DescendantNode {
32769
32796
  }
32770
32797
  addChildren(nr, rr) {
32771
32798
  return this.scope.runTask(() => {
32772
- const or = nr + 1, Ar = this.createChildren(nr, rr);
32773
- return this.childrenState.setChildren((ir) => insertAtIndex(ir, or, Ar));
32799
+ const or = rr ?? this.getLastIndex(), Ar = or + 1, ir = this.createChildren(or, nr);
32800
+ return this.childrenState.setChildren((sr) => insertAtIndex(sr, Ar, ir));
32774
32801
  });
32775
32802
  }
32776
32803
  removeChildren(nr, rr) {
@@ -32790,70 +32817,42 @@ class BaseRepeatRange extends DescendantNode {
32790
32817
  }
32791
32818
  class RepeatRangeControlled extends BaseRepeatRange {
32792
32819
  isInstanceCreation;
32793
- countControlType;
32794
32820
  // RepeatRangeControlledNode
32795
32821
  nodeType = "repeat-range:controlled";
32796
32822
  appearances;
32797
32823
  validationState;
32798
32824
  constructor(nr, rr, or) {
32799
- super(nr, or), this.isInstanceCreation = nr.rootDocument.initializationMode === "create", this.appearances = or.bodyElement.appearances, or.count.isConstantExpression() ? this.countControlType = "REPEAT_COUNT_CONTROL_FIXED" : this.countControlType = "REPEAT_COUNT_CONTROL_DYNAMIC", this.initializeControlledChildrenState(or, rr), this.validationState = createAggregatedViolations(this, this.instanceConfig);
32825
+ super(nr, or), this.isInstanceCreation = nr.rootDocument.initializationMode === "create", this.appearances = or.bodyElement.appearances, this.initChildrenState(or, rr), this.validationState = createAggregatedViolations(this, this.instanceConfig);
32800
32826
  }
32801
- initializeControlledChildrenState(nr, rr) {
32827
+ initChildrenState(nr, rr) {
32828
+ const { count: or, template: Ar } = nr, ir = nr.omitTemplate(rr), sr = this.isInstanceCreation ? 0 : ir.length;
32802
32829
  this.scope.runTask(() => {
32803
- const { count: or, template: Ar } = nr, ir = nr.omitTemplate(rr), sr = createComputedExpression(this, or, {
32804
- defaultValue: 0
32805
- });
32806
- createComputed((lr = null) => {
32807
- const dr = lr ?? 0;
32808
- let cr = sr();
32809
- if (Number.isFinite(cr) && cr < 0 && (cr = 0), cr === dr || // TODO: the intent of this check is to defer a count update when the
32810
- // count expression produces a blank value. This "feels right" when
32811
- // the count is directly controlled by the user (i.e. entering a
32812
- // number in an input), but probably does not make sense in every
32813
- // scenario! For instance, when a referenced node's relevance changes.
32814
- Number.isNaN(cr))
32815
- return dr;
32816
- if (this.warnDroppedInstanceNodes(ir, lr, cr), cr > dr) {
32817
- const gr = cr - dr, Ir = Array(gr).fill(null).map((pr, Cr) => {
32818
- const mr = dr + Cr;
32819
- return ir[mr] ?? Ar;
32820
- });
32821
- this.addChildren(dr - 1, Ir);
32822
- } else {
32823
- const gr = dr - cr;
32824
- this.removeChildren(cr, gr);
32825
- }
32826
- return cr;
32827
- });
32830
+ const lr = this.applyCountChange(
32831
+ this.getChildren().length,
32832
+ sr,
32833
+ ir,
32834
+ Ar
32835
+ ), dr = createComputedExpression(this, or, { defaultValue: 0 });
32836
+ createComputed(
32837
+ (cr) => this.applyCountChange(cr, dr(), ir, Ar),
32838
+ lr
32839
+ );
32828
32840
  });
32829
32841
  }
32830
- /**
32831
- * Note: we do not warn about dropping "excess" repeat instances...
32832
- *
32833
- * - ... after the instance is fully loaded: dropping repeat instances after
32834
- * that point is an expected behavior of _dynamically-controlled repeats_
32835
- * (i.e. those defined with `jr:count`), and it does not occur for
32836
- * _fixed-controlled repeats_ (i.e. defined with `jr:noAddRemove`);
32837
- *
32838
- * - ... for dynamic (`jr:count`) repeats _in newly created form instances_, i.e. instances whose input instance
32839
- * nodes are derived from the _form definition_: those form-defined repeat
32840
- * instances are not "dropped", instead they're retained in memory to be
32841
- * added as count is recomputed to a larger value.
32842
- *
32843
- * @todo ^ it is pretty likely that retain-in-memory behavior also applies to
32844
- * instance state which has been serialized and restored as well! In this way,
32845
- * it's possible we're not really "dropping" those nodes, only deferring their
32846
- * restoration. Is this what we want?
32847
- *
32848
- * @todo Design and produce {@link LoadFormWarnings | warnings} as values!
32849
- */
32850
- warnDroppedInstanceNodes(nr, rr, or) {
32851
- if (this.isInstanceCreation || rr == null && this.countControlType === "REPEAT_COUNT_CONTROL_DYNAMIC")
32852
- return;
32853
- const ir = nr.length - or;
32854
- ir > 0 && console.warn(
32855
- `Dropped ${ir} repeat instances for repeat range ${this.contextReference()}`
32856
- );
32842
+ // Never delete repeat instances when `jr:count` decreases (avoids data loss).
32843
+ // Seeded on restore with the saved count so excess survives a lower re-evaluation.
32844
+ applyCountChange(nr, rr, or, Ar) {
32845
+ const ir = Number.isFinite(rr) && rr < 0 ? 0 : rr;
32846
+ if (Number.isNaN(ir) || ir <= nr)
32847
+ return nr;
32848
+ const sr = ir - nr, lr = this.resolveInstanceNodes(or, Ar, nr, sr);
32849
+ return this.addChildren(lr), ir;
32850
+ }
32851
+ resolveInstanceNodes(nr, rr, or, Ar) {
32852
+ const ir = [];
32853
+ for (let sr = 0; sr < Ar; sr++)
32854
+ ir.push(nr[or + sr] ?? rr);
32855
+ return ir;
32857
32856
  }
32858
32857
  }
32859
32858
  class RepeatRangeUncontrolled extends BaseRepeatRange {
@@ -32862,12 +32861,12 @@ class RepeatRangeUncontrolled extends BaseRepeatRange {
32862
32861
  appearances;
32863
32862
  validationState;
32864
32863
  constructor(nr, rr, or) {
32865
- super(nr, or), this.appearances = or.bodyElement.appearances, this.addChildren(-1, or.omitTemplate(rr)), this.validationState = createAggregatedViolations(this, this.instanceConfig);
32864
+ super(nr, or), this.appearances = or.bodyElement.appearances, this.addChildren(or.omitTemplate(rr)), this.validationState = createAggregatedViolations(this, this.instanceConfig);
32866
32865
  }
32867
32866
  // RepeatRangeUncontrolledNode
32868
32867
  addInstances(nr = this.getLastIndex(), rr = 1) {
32869
32868
  const or = Array(rr).fill(this.definition.template);
32870
- return this.addChildren(nr, or), this.root;
32869
+ return this.addChildren(or, nr), this.root;
32871
32870
  }
32872
32871
  /**
32873
32872
  * Removes the {@link RepeatInstance}s corresponding to the specified range of
@@ -33178,8 +33177,9 @@ const assertFileNameExtension = (er) => {
33178
33177
  }, resolveFile = (er, nr, rr) => {
33179
33178
  rr.then((or) => {
33180
33179
  nr((Ar) => Ar.dirty ? Ar : instanceAttachmentState(er, { file: or }));
33181
- }).catch(() => {
33182
- nr((or) => or.dirty ? or : instanceAttachmentState(er, { error: !0 }));
33180
+ }).catch((or) => {
33181
+ const Ar = or instanceof AttachmentNotFoundError ? "not-found" : "network-error";
33182
+ nr((ir) => ir.dirty ? ir : instanceAttachmentState(er, { error: Ar }));
33183
33183
  });
33184
33184
  }, retryFetch = (er, nr, rr) => {
33185
33185
  rr(instanceAttachmentState(er, { loading: !0 })), nr.retryFileValue(er.instanceNode);
@@ -36337,7 +36337,7 @@ var script$s = {
36337
36337
  CheckIcon: script$B,
36338
36338
  BlankIcon: script$C
36339
36339
  }
36340
- }, _hoisted_1$T = ["id", "data-p"], _hoisted_2$s = ["name", "id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "data-p"], _hoisted_3$l = ["name", "id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled", "data-p"], _hoisted_4$e = ["data-p"], _hoisted_5$9 = ["id"], _hoisted_6$6 = ["id"], _hoisted_7$5 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onMousedown", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
36340
+ }, _hoisted_1$T = ["id", "data-p"], _hoisted_2$s = ["name", "id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "data-p"], _hoisted_3$m = ["name", "id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled", "data-p"], _hoisted_4$f = ["data-p"], _hoisted_5$9 = ["id"], _hoisted_6$6 = ["id"], _hoisted_7$5 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onMousedown", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
36341
36341
  function render$r(er, nr, rr, or, Ar, ir) {
36342
36342
  var sr = resolveComponent("SpinnerIcon"), lr = resolveComponent("InputText"), dr = resolveComponent("SearchIcon"), cr = resolveComponent("InputIcon"), gr = resolveComponent("IconField"), Ir = resolveComponent("CheckIcon"), pr = resolveComponent("BlankIcon"), Cr = resolveComponent("VirtualScroller"), mr = resolveComponent("Portal"), Er = resolveDirective("ripple");
36343
36343
  return openBlock(), createElementBlock("div", mergeProps({
@@ -36415,7 +36415,7 @@ function render$r(er, nr, rr, or, Ar, ir) {
36415
36415
  }, function() {
36416
36416
  var Br;
36417
36417
  return [createTextVNode(toDisplayString(ir.label === "p-emptylabel" ? " " : (Br = ir.label) !== null && Br !== void 0 ? Br : "empty"), 1)];
36418
- })], 16, _hoisted_3$l)), ir.isClearIconVisible ? renderSlot(er.$slots, "clearicon", {
36418
+ })], 16, _hoisted_3$m)), ir.isClearIconVisible ? renderSlot(er.$slots, "clearicon", {
36419
36419
  key: 2,
36420
36420
  class: normalizeClass(er.cx("clearIcon")),
36421
36421
  clearCallback: ir.onClearClick
@@ -36692,7 +36692,7 @@ function render$r(er, nr, rr, or, Ar, ir) {
36692
36692
  }, er.ptm("hiddenLastFocusableEl"), {
36693
36693
  "data-p-hidden-accessible": !0,
36694
36694
  "data-p-hidden-focusable": !0
36695
- }), null, 16)], 16, _hoisted_4$e)) : createCommentVNode("", !0)];
36695
+ }), null, 16)], 16, _hoisted_4$f)) : createCommentVNode("", !0)];
36696
36696
  }),
36697
36697
  _: 3
36698
36698
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
@@ -36728,7 +36728,7 @@ const _hoisted_1$S = { class: "language-dd-label" }, _sfc_main$_ = /* @__PURE__
36728
36728
  _: 1
36729
36729
  }, 8, ["model-value", "options"])) : createCommentVNode("", !0);
36730
36730
  }
36731
- }), FormLanguageMenu = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-5de3d079"]]), _hoisted_1$R = { class: "hidden lg:inline larger-screens" }, _hoisted_2$r = { class: "flex justify-content-end flex-wrap gap-3" }, _hoisted_3$k = { class: "flex lg:hidden align-items-start justify-content-between smaller-screens" }, _hoisted_4$d = { class: "form-options" }, _sfc_main$Z = /* @__PURE__ */ defineComponent({
36731
+ }), FormLanguageMenu = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-5de3d079"]]), _hoisted_1$R = { class: "hidden lg:inline larger-screens" }, _hoisted_2$r = { class: "flex justify-content-end flex-wrap gap-3" }, _hoisted_3$l = { class: "flex lg:hidden align-items-start justify-content-between smaller-screens" }, _hoisted_4$e = { class: "form-options" }, _sfc_main$Z = /* @__PURE__ */ defineComponent({
36732
36732
  __name: "FormHeader",
36733
36733
  props: {
36734
36734
  form: {}
@@ -36754,9 +36754,9 @@ const _hoisted_1$S = { class: "language-dd-label" }, _sfc_main$_ = /* @__PURE__
36754
36754
  _: 1
36755
36755
  })
36756
36756
  ]),
36757
- createElementVNode("div", _hoisted_3$k, [
36757
+ createElementVNode("div", _hoisted_3$l, [
36758
36758
  createElementVNode("h1", null, toDisplayString(er.form.definition.bind.form.title), 1),
36759
- createElementVNode("div", _hoisted_4$d, [
36759
+ createElementVNode("div", _hoisted_4$e, [
36760
36760
  unref(ir).length > 0 ? (openBlock(), createBlock(FormLanguageMenu, {
36761
36761
  key: 0,
36762
36762
  "active-language": er.form.currentState.activeLanguage,
@@ -37614,7 +37614,7 @@ const DOM_PURIFY_SETTINGS = {
37614
37614
  const nr = er.url;
37615
37615
  return purify$1.removeAllHooks(), purify$1.setConfig({ ALLOWED_TAGS: ["a"], ALLOWED_ATTR: ["href"] }), purify$1.isValidAttribute("a", "href", nr) ? nr : "about:blank";
37616
37616
  }
37617
- }, purify = (er) => (purify$1.removeAllHooks(), purify$1.setConfig(DOM_PURIFY_SETTINGS), purify$1.sanitize(er.unsafeHtml)), _hoisted_1$Q = { key: 1 }, _hoisted_2$q = ["innerHTML"], _hoisted_3$j = ["href"], _sfc_main$X = /* @__PURE__ */ defineComponent({
37617
+ }, purify = (er) => (purify$1.removeAllHooks(), purify$1.setConfig(DOM_PURIFY_SETTINGS), purify$1.sanitize(er.unsafeHtml)), _hoisted_1$Q = { key: 1 }, _hoisted_2$q = ["innerHTML"], _hoisted_3$k = ["href"], _sfc_main$X = /* @__PURE__ */ defineComponent({
37618
37618
  __name: "MarkdownBlock",
37619
37619
  props: {
37620
37620
  elem: {}
@@ -37636,7 +37636,7 @@ const DOM_PURIFY_SETTINGS = {
37636
37636
  key: Ar.id,
37637
37637
  elem: Ar
37638
37638
  }, null, 8, ["elem"]))), 128))
37639
- ], 8, _hoisted_3$j)) : er.elem.elementName ? (openBlock(), createBlock(resolveDynamicComponent(er.elem.elementName), {
37639
+ ], 8, _hoisted_3$k)) : er.elem.elementName ? (openBlock(), createBlock(resolveDynamicComponent(er.elem.elementName), {
37640
37640
  key: 4,
37641
37641
  style: normalizeStyle(unref(getStylePropertyMap)(er.elem))
37642
37642
  }, {
@@ -37884,7 +37884,7 @@ var style$c = ({ dt: er }) => `
37884
37884
  directives: {
37885
37885
  ripple: Ripple
37886
37886
  }
37887
- }, _hoisted_1$1$1 = ["id", "aria-label", "aria-disabled", "data-p-focused", "data-p-disabled", "data-p"], _hoisted_2$1$1 = ["data-p"], _hoisted_3$1$1 = ["href", "target"], _hoisted_4$c = ["data-p"], _hoisted_5$8 = ["data-p"];
37887
+ }, _hoisted_1$1$1 = ["id", "aria-label", "aria-disabled", "data-p-focused", "data-p-disabled", "data-p"], _hoisted_2$1$1 = ["data-p"], _hoisted_3$1$1 = ["href", "target"], _hoisted_4$d = ["data-p"], _hoisted_5$8 = ["data-p"];
37888
37888
  function render$1$1(er, nr, rr, or, Ar, ir) {
37889
37889
  var sr = resolveDirective("ripple");
37890
37890
  return ir.visible() ? (openBlock(), createElementBlock("li", mergeProps({
@@ -37926,7 +37926,7 @@ function render$1$1(er, nr, rr, or, Ar, ir) {
37926
37926
  key: 1,
37927
37927
  class: [er.cx("itemIcon"), rr.item.icon],
37928
37928
  "data-p": ir.dataP
37929
- }, ir.getPTOptions("itemIcon")), null, 16, _hoisted_4$c)) : createCommentVNode("", !0), createElementVNode("span", mergeProps({
37929
+ }, ir.getPTOptions("itemIcon")), null, 16, _hoisted_4$d)) : createCommentVNode("", !0), createElementVNode("span", mergeProps({
37930
37930
  class: er.cx("itemLabel"),
37931
37931
  "data-p": ir.dataP
37932
37932
  }, ir.getPTOptions("itemLabel")), toDisplayString(ir.label()), 17, _hoisted_5$8)], 16, _hoisted_3$1$1)), [[sr]])], 16, _hoisted_2$1$1)], 16, _hoisted_1$1$1)) : createCommentVNode("", !0);
@@ -38155,7 +38155,7 @@ var script$r = {
38155
38155
  PVMenuitem: script$1$c,
38156
38156
  Portal: script$G
38157
38157
  }
38158
- }, _hoisted_1$P = ["id", "data-p"], _hoisted_2$p = ["id", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby"], _hoisted_3$i = ["id"];
38158
+ }, _hoisted_1$P = ["id", "data-p"], _hoisted_2$p = ["id", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby"], _hoisted_3$j = ["id"];
38159
38159
  function render$q(er, nr, rr, or, Ar, ir) {
38160
38160
  var sr = resolveComponent("PVMenuitem"), lr = resolveComponent("Portal");
38161
38161
  return openBlock(), createBlock(lr, {
@@ -38215,7 +38215,7 @@ function render$q(er, nr, rr, or, Ar, ir) {
38215
38215
  item: dr
38216
38216
  }, function() {
38217
38217
  return [createTextVNode(toDisplayString(ir.label(dr)), 1)];
38218
- })], 16, _hoisted_3$i)) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(dr.items, function(gr, Ir) {
38218
+ })], 16, _hoisted_3$j)) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(dr.items, function(gr, Ir) {
38219
38219
  return openBlock(), createElementBlock(Fragment, {
38220
38220
  key: gr.label + cr + "_" + Ir
38221
38221
  }, [ir.visible(gr) && !gr.separator ? (openBlock(), createBlock(sr, {
@@ -38423,7 +38423,7 @@ var style$b = ({ dt: er }) => `
38423
38423
  directives: {
38424
38424
  ripple: Ripple
38425
38425
  }
38426
- }, _hoisted_1$O = ["data-p"], _hoisted_2$o = ["data-p"], _hoisted_3$h = ["id"], _hoisted_4$b = ["id", "aria-labelledby"];
38426
+ }, _hoisted_1$O = ["data-p"], _hoisted_2$o = ["data-p"], _hoisted_3$i = ["id"], _hoisted_4$c = ["id", "aria-labelledby"];
38427
38427
  function render$n(er, nr, rr, or, Ar, ir) {
38428
38428
  var sr = resolveComponent("Button");
38429
38429
  return openBlock(), createElementBlock("div", mergeProps({
@@ -38440,7 +38440,7 @@ function render$n(er, nr, rr, or, Ar, ir) {
38440
38440
  key: 0,
38441
38441
  id: er.$id + "_header",
38442
38442
  class: er.cx("title")
38443
- }, er.ptm("title")), toDisplayString(er.header), 17, _hoisted_3$h)) : createCommentVNode("", !0)];
38443
+ }, er.ptm("title")), toDisplayString(er.header), 17, _hoisted_3$i)) : createCommentVNode("", !0)];
38444
38444
  }), createElementVNode("div", mergeProps({
38445
38445
  class: er.cx("headerActions")
38446
38446
  }, er.ptm("headerActions")), [renderSlot(er.$slots, "icons"), er.toggleable ? renderSlot(er.$slots, "togglebutton", {
@@ -38494,16 +38494,16 @@ function render$n(er, nr, rr, or, Ar, ir) {
38494
38494
  }, er.ptm("content")), [renderSlot(er.$slots, "default")], 16), er.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({
38495
38495
  key: 0,
38496
38496
  class: er.cx("footer")
38497
- }, er.ptm("footer")), [renderSlot(er.$slots, "footer")], 16)) : createCommentVNode("", !0)], 16, _hoisted_4$b), [[vShow, !Ar.d_collapsed]])];
38497
+ }, er.ptm("footer")), [renderSlot(er.$slots, "footer")], 16)) : createCommentVNode("", !0)], 16, _hoisted_4$c), [[vShow, !Ar.d_collapsed]])];
38498
38498
  }),
38499
38499
  _: 3
38500
38500
  }, 16)], 16, _hoisted_1$O);
38501
38501
  }
38502
38502
  script$o.render = render$n;
38503
- const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38503
+ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$h = {
38504
38504
  key: 0,
38505
38505
  class: "label-number"
38506
- }, _hoisted_4$a = { class: "content-wrapper" }, _sfc_main$W = /* @__PURE__ */ defineComponent({
38506
+ }, _hoisted_4$b = { class: "content-wrapper" }, _sfc_main$W = /* @__PURE__ */ defineComponent({
38507
38507
  __name: "FormPanel",
38508
38508
  props: {
38509
38509
  title: { default: void 0 },
@@ -38548,11 +38548,11 @@ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38548
38548
  }, null, 8, ["elem"]))), 128))
38549
38549
  ])) : (openBlock(), createElementBlock("span", _hoisted_2$n, toDisplayString(er.title), 1))
38550
38550
  ]),
38551
- er.labelNumber ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(er.labelNumber), 1)) : createCommentVNode("", !0)
38551
+ er.labelNumber ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(er.labelNumber), 1)) : createCommentVNode("", !0)
38552
38552
  ])
38553
38553
  ]),
38554
38554
  default: withCtx(() => [
38555
- createElementVNode("div", _hoisted_4$a, [
38555
+ createElementVNode("div", _hoisted_4$b, [
38556
38556
  renderSlot(Ar.$slots, "default", {}, void 0, !0)
38557
38557
  ])
38558
38558
  ]),
@@ -38735,7 +38735,7 @@ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38735
38735
  }), ControlHint = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-2bd34488"]]), __vite_glob_0_0 = "data:image/svg+xml,%3csvg%20width='176'%20height='176'%20viewBox='0%200%20176%20176'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M26.62%2026.62C23.76%2029.48%2023.76%2034.1%2026.62%2036.96L53.46%2063.8L51.3333%2066H29.3333C25.3%2066%2022%2069.3%2022%2073.3333V102.667C22%20106.7%2025.3%20110%2029.3333%20110H51.3333L75.46%20134.127C80.08%20138.747%2088%20135.447%2088%20128.92V98.34L118.653%20128.993C115.06%20131.707%20111.173%20133.98%20106.92%20135.667C104.28%20136.767%20102.667%20139.553%20102.667%20142.413C102.667%20147.693%20108.02%20151.067%20112.86%20149.087C118.727%20146.667%20124.227%20143.44%20129.14%20139.48L138.967%20149.307C141.827%20152.167%20146.447%20152.167%20149.307%20149.307C152.167%20146.447%20152.167%20141.827%20149.307%20138.967L37.0333%2026.62C34.1733%2023.76%2029.5533%2023.76%2026.62%2026.62ZM139.333%2088C139.333%2094.0133%20138.233%2099.8066%20136.327%20105.16L147.547%20116.38C151.653%20107.8%20154%2098.1933%20154%2088C154%2059.9133%20136.4%2035.86%20111.613%2026.4C107.287%2024.7133%20102.667%2028.0866%20102.667%2032.7066V34.1C102.667%2036.8866%20104.5%2039.3066%20107.14%2040.3333C125.987%2047.96%20139.333%2066.44%20139.333%2088ZM75.46%2041.8733L74.2133%2043.12L88%2056.9066V47.0066C88%2040.48%2080.08%2037.2533%2075.46%2041.8733ZM121%2088C121%2075.02%20113.52%2063.8733%20102.667%2058.4466V71.5733L120.853%2089.76C120.927%2089.1733%20121%2088.5866%20121%2088Z'%20fill='%23E0E0E0'/%3e%3c/svg%3e", __vite_glob_0_1 = "data:image/svg+xml,%3csvg%20width='187'%20height='192'%20viewBox='0%200%20187%20192'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1881_7575)'%3e%3cpath%20d='M160.601%20176.6L115.867%20131.867L96.1405%20112.14L36.6672%2052.6667L26.3272%2042.3267L15.4005%2031.4L5.06055%2041.74L22.0005%2058.7534V155.333C22.0005%20163.4%2028.6005%20170%2036.6672%20170H133.247L150.187%20186.94L160.601%20176.6ZM36.6672%20155.333V73.42L86.8272%20123.58L80.6672%20131.28L66.0006%20111.333L44.0005%20140.667H103.914L118.581%20155.333H36.6672ZM57.4205%2052.6667L42.7539%2038H139.334C147.401%2038%20154.001%2044.6%20154.001%2052.6667V149.247L139.334%20134.58V52.6667H57.4205Z'%20fill='%23E0E0E0'/%3e%3c/g%3e%3ccircle%20cx='147.5'%20cy='39.5'%20r='34.5'%20fill='white'/%3e%3cpath%20d='M147.501%206.58331C129.298%206.58331%20114.584%2021.2971%20114.584%2039.5C114.584%2057.7029%20129.298%2072.4166%20147.501%2072.4166C165.704%2072.4166%20180.417%2057.7029%20180.417%2039.5C180.417%2021.2971%20165.704%206.58331%20147.501%206.58331ZM163.959%2051.3171L159.318%2055.9583L147.501%2044.1412L135.684%2055.9583L131.042%2051.3171L142.859%2039.5L131.042%2027.6829L135.684%2023.0416L147.501%2034.8587L159.318%2023.0416L163.959%2027.6829L152.142%2039.5L163.959%2051.3171Z'%20fill='%23E0E0E0'/%3e%3cdefs%3e%3cclipPath%20id='clip0_1881_7575'%3e%3crect%20width='176'%20height='176'%20fill='white'%20transform='translate(0%2016)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", __vite_glob_0_2 = "data:image/svg+xml,%3csvg%20width='176'%20height='176'%20viewBox='0%200%20176%20176'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4126_17379)'%3e%3cpath%20d='M70.106%2058.6667L55.4393%2044L25.006%2013.64L14.666%2023.98L34.686%2044H29.3327C25.2993%2044%2021.9993%2047.3%2021.9993%2051.3333V124.667C21.9993%20128.7%2025.2993%20132%2029.3327%20132H117.333C118.873%20132%20120.193%20131.413%20121.366%20130.68L144.686%20154L155.026%20143.66L90.0527%2078.6867L70.106%2058.6667ZM36.666%20117.333V58.6667H49.3527L108.019%20117.333H36.666ZM109.999%2058.6667V77.8067L153.999%20121.807V47.6667L124.666%2077V51.3333C124.666%2047.3%20121.366%2044%20117.333%2044H76.1927L90.8594%2058.6667H109.999Z'%20fill='%23E0E0E0'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4126_17379'%3e%3crect%20width='176'%20height='176'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", __vite_glob_0_3 = "data:image/svg+xml,%3csvg%20width='86'%20height='84'%20viewBox='0%200%2086%2084'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3080_8764)'%3e%3cg%20filter='url(%23filter0_d_3080_8764)'%3e%3cpath%20d='M43.0003%207C29.1328%207%2017.917%2017.955%2017.917%2031.5C17.917%2049.875%2043.0003%2077%2043.0003%2077C43.0003%2077%2068.0837%2049.875%2068.0837%2031.5C68.0837%2017.955%2056.8678%207%2043.0003%207ZM43.0003%2040.25C38.0553%2040.25%2034.042%2036.33%2034.042%2031.5C34.042%2026.67%2038.0553%2022.75%2043.0003%2022.75C47.9453%2022.75%2051.9587%2026.67%2051.9587%2031.5C51.9587%2036.33%2047.9453%2040.25%2043.0003%2040.25Z'%20fill='%233E9FCC'/%3e%3c/g%3e%3ccircle%20cx='43'%20cy='32'%20r='10'%20fill='%23E9F8FF'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3080_8764'%20x='13.917'%20y='7'%20width='58.167'%20height='78'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3080_8764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3080_8764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3080_8764'%3e%3crect%20width='86'%20height='84'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", __vite_glob_0_4 = "data:image/svg+xml,%3csvg%20width='86'%20height='84'%20viewBox='0%200%2086%2084'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3080_8764)'%3e%3cg%20filter='url(%23filter0_d_3080_8764)'%3e%3cpath%20d='M43.0003%207C29.1328%207%2017.917%2017.955%2017.917%2031.5C17.917%2049.875%2043.0003%2077%2043.0003%2077C43.0003%2077%2068.0837%2049.875%2068.0837%2031.5C68.0837%2017.955%2056.8678%207%2043.0003%207ZM43.0003%2040.25C38.0553%2040.25%2034.042%2036.33%2034.042%2031.5C34.042%2026.67%2038.0553%2022.75%2043.0003%2022.75C47.9453%2022.75%2051.9587%2026.67%2051.9587%2031.5C51.9587%2036.33%2047.9453%2040.25%2043.0003%2040.25Z'%20fill='%2322C55E'/%3e%3c/g%3e%3ccircle%20cx='43'%20cy='32'%20r='10'%20fill='%23E9F8FF'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3080_8764'%20x='13.917'%20y='7'%20width='58.167'%20height='78'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3080_8764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3080_8764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3080_8764'%3e%3crect%20width='86'%20height='84'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", __vite_glob_0_5 = "data:image/svg+xml,%3csvg%20width='426'%20height='223'%20viewBox='0%200%20426%20223'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M207.673%20111.26C207.483%20115.352%20205.769%20119.225%20202.868%20122.117C177.62%20147.262%20152.391%20172.427%20127.181%20197.61L122.207%20202.699C120.82%20204.2%20119.138%20205.398%20117.267%20206.218C115.395%20207.038%20113.375%20207.463%20111.332%20207.465C109.289%20207.468%20107.268%20207.048%20105.394%20206.233C103.521%20205.418%20101.836%20204.224%20100.445%20202.727L26.3689%20128.507L20.0099%20122.287C18.4635%20120.894%2017.2265%20119.193%2016.379%20117.292C15.5314%20115.391%2015.092%20113.333%2015.0894%20111.252C15.0867%20109.171%2015.5208%20107.112%2016.3635%20105.209C17.2062%20103.306%2018.4388%20101.601%2019.9816%20100.204L97.6468%2022.7327C100.84%2019.4246%20103.865%2016.0599%20108.754%2015.2683C111.182%2014.8277%20113.682%2015.0061%20116.024%2015.7868C118.365%2016.5676%20120.472%2017.9256%20122.15%2019.7356C146.871%2044.4474%20171.572%2069.1781%20196.255%2093.9276C198.346%2096.0387%20200.475%2098.1122%20202.642%20100.148C205.692%20103.047%20207.488%20107.025%20207.644%20111.231M111.298%20171.258C111.926%20170.801%20112.53%20170.31%20113.106%20169.788L169.914%20113.069C171.327%20111.656%20171.327%20110.779%20169.914%20109.365C150.959%2090.497%20132.023%2071.5908%20113.106%2052.647C111.835%2051.3746%20110.958%2051.1767%20109.574%2052.5339C90.6377%2071.5531%2071.6548%2090.5346%2052.6247%20109.478C51.2964%20110.807%2051.2964%20111.684%2052.6247%20113.013C71.6548%20131.957%2090.6566%20150.919%20109.63%20169.901C110.082%20170.381%20110.648%20170.749%20111.326%20171.286M309.474%2079.7621L334.062%2060.1114L386.065%2018.5481C395.787%2010.8575%20409.014%2015.8337%20410.936%2027.9069C411.869%2033.8445%20409.41%2038.6512%20404.747%2042.3268C392.368%2052.204%20379.998%2062.1001%20367.638%2072.0149L321.627%20108.772C320.694%20109.507%20319.818%20110.27%20318.659%20111.231L321.712%20113.776L404.097%20179.571C407.304%20181.826%20409.631%20185.123%20410.682%20188.901C411.406%20191.915%20411.186%20195.078%20410.051%20197.963C408.916%20200.847%20406.922%20203.311%20404.338%20205.022C401.754%20206.733%20398.707%20207.607%20395.61%20207.525C392.513%20207.443%20389.516%20206.41%20387.026%20204.565C381.148%20200.098%20375.467%20195.404%20369.701%20190.824L312.159%20144.821C311.452%20144.256%20310.746%20143.747%20309.672%20142.955C309.587%20144.199%20309.53%20145.104%20309.53%20145.981C309.53%20161.39%20309.587%20176.8%20309.474%20192.209C309.526%20194.784%20308.917%20197.329%20307.706%20199.601C306.495%20201.874%20304.723%20203.798%20302.557%20205.19C300.392%20206.582%20297.906%20207.396%20295.337%20207.554C292.768%20207.712%20290.201%20207.209%20287.881%20206.092C285.318%20205.006%20283.133%20203.187%20281.599%20200.863C280.066%20198.539%20279.253%20195.814%20279.261%20193.029C279.064%20178.553%20279.12%20164.076%20279.177%20149.6C279.177%20148.752%20279.855%20147.705%20280.533%20147.168C288.692%20140.514%20296.897%20133.964%20305.15%20127.518C316.822%20118.498%20316.737%20103.852%20305.037%2094.8324C296.699%2088.4141%20288.56%2081.7696%20280.42%2075.1534C279.667%2074.4457%20279.221%2073.4715%20279.177%2072.439C279.12%2058.4527%20279.129%2044.4757%20279.205%2030.5081C279.144%2028.4701%20279.493%2026.4406%20280.229%2024.5394C280.965%2022.6382%20282.075%2020.9038%20283.492%2019.4385C284.909%2017.9733%20286.606%2016.8068%20288.481%2016.008C290.356%2015.2092%20292.372%2014.7943%20294.41%2014.7876C302.889%2014.8159%20309.474%2021.7148%20309.502%2030.6212V76.3409L309.474%2079.7621Z'%20fill='%2364748B'/%3e%3cpath%20d='M207.87%20124.549V161.023L270.161%20111.26L207.898%2061.4968V97.5466L207.192%2097.9707C206.146%2096.8115%20205.129%2095.5674%20204.026%2094.4647C195.642%2086.0955%20187.276%2077.698%20178.929%2069.2722C178.056%2068.3207%20177.554%2067.086%20177.516%2065.7945C177.403%2053.9192%20177.516%2042.0723%20177.516%2030.2253C177.381%2027.3216%20178.127%2024.4449%20179.655%2021.9725C181.183%2019.5002%20183.423%2017.5476%20186.08%2016.3709C191.845%2013.5434%20197.413%2014.3917%20202.444%2018.4066L300.006%2096.4722L303.425%2099.1017C305.316%20100.513%20306.852%20102.347%20307.911%20104.456C308.97%20106.565%20309.523%20108.892%20309.525%20111.253C309.528%20113.613%20308.981%20115.941%20307.927%20118.053C306.873%20120.165%20305.341%20122.002%20303.454%20123.418L204.761%20202.105C202.229%20204.302%20199.304%20206.001%20196.141%20207.11C186.899%20209.796%20177.573%20202.416%20177.516%20192.803C177.46%20180.702%20177.441%20168.6%20177.46%20156.499C177.46%20155.509%20177.884%20154.265%20178.534%20153.615C187.898%20144.171%20197.309%20134.775%20206.768%20125.425C206.966%20125.199%20207.248%20125.029%20207.898%20124.577'%20fill='%2364748B'/%3e%3c/svg%3e", _hoisted_1$K = {
38736
38736
  key: 1,
38737
38737
  class: "skeleton-loading"
38738
- }, _hoisted_2$m = ["src", "alt"], _hoisted_3$f = { class: "media-error-message" }, _sfc_main$S = /* @__PURE__ */ defineComponent({
38738
+ }, _hoisted_2$m = ["src", "alt"], _hoisted_3$g = { class: "media-error-message" }, _sfc_main$S = /* @__PURE__ */ defineComponent({
38739
38739
  __name: "MediaBlockBase",
38740
38740
  props: {
38741
38741
  resourceUrl: {},
@@ -38796,7 +38796,7 @@ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38796
38796
  src: dr.value,
38797
38797
  alt: er.alt
38798
38798
  }, null, 8, _hoisted_2$m),
38799
- createElementVNode("p", _hoisted_3$f, toDisplayString(lr.value), 1)
38799
+ createElementVNode("p", _hoisted_3$g, toDisplayString(lr.value), 1)
38800
38800
  ], 64)) : createCommentVNode("", !0)
38801
38801
  ], 2));
38802
38802
  }
@@ -38975,7 +38975,7 @@ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38975
38975
  return er.toString();
38976
38976
  const or = Math.pow(10, rr), Ar = Math.floor(Math.abs(er) * or) / or, ir = Math.sign(er);
38977
38977
  return String(Ar * ir);
38978
- }, _hoisted_1$E = { class: "geolocation-formatted-value" }, _hoisted_2$k = { key: 0 }, _hoisted_3$e = { key: 1 }, _hoisted_4$9 = { key: 2 }, _sfc_main$M = /* @__PURE__ */ defineComponent({
38978
+ }, _hoisted_1$E = { class: "geolocation-formatted-value" }, _hoisted_2$k = { key: 0 }, _hoisted_3$f = { key: 1 }, _hoisted_4$a = { key: 2 }, _sfc_main$M = /* @__PURE__ */ defineComponent({
38979
38979
  __name: "GeolocationFormattedValue",
38980
38980
  props: {
38981
38981
  question: {}
@@ -38988,8 +38988,8 @@ const _hoisted_1$N = { key: 2 }, _hoisted_2$n = { key: 3 }, _hoisted_3$g = {
38988
38988
  return (Ar, ir) => (openBlock(!0), createElementBlock(Fragment, null, renderList(or.value, (sr, lr) => (openBlock(), createElementBlock("div", { key: lr }, [
38989
38989
  createElementVNode("p", _hoisted_1$E, [
38990
38990
  sr?.accuracy ? (openBlock(), createElementBlock("span", _hoisted_2$k, toDisplayString(unref(rr)("geolocation_formatted_value.accuracy.label", { accuracy: unref(truncateDecimals)(sr.accuracy, { decimals: 3 }) })), 1)) : createCommentVNode("", !0),
38991
- sr?.latitude != null ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(unref(rr)("geolocation_formatted_value.latitude.label", { latitude: sr.latitude })), 1)) : createCommentVNode("", !0),
38992
- sr?.longitude != null ? (openBlock(), createElementBlock("span", _hoisted_4$9, toDisplayString(unref(rr)("geolocation_formatted_value.longitude.label", { longitude: sr.longitude })), 1)) : createCommentVNode("", !0)
38991
+ sr?.latitude != null ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(unref(rr)("geolocation_formatted_value.latitude.label", { latitude: sr.latitude })), 1)) : createCommentVNode("", !0),
38992
+ sr?.longitude != null ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(unref(rr)("geolocation_formatted_value.longitude.label", { longitude: sr.longitude })), 1)) : createCommentVNode("", !0)
38993
38993
  ])
38994
38994
  ]))), 128));
38995
38995
  }
@@ -39186,7 +39186,7 @@ class GeopointAccuracy {
39186
39186
  this.value = or, this.quality = Ar, this.labelMessageId = GEOPOINT_ACCURACY_QUALITY_LABEL[Ar];
39187
39187
  }
39188
39188
  }
39189
- const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "geo-dialog-header-title" }, _hoisted_3$d = { class: "geo-dialog-body" }, _hoisted_4$8 = {
39189
+ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "geo-dialog-header-title" }, _hoisted_3$e = { class: "geo-dialog-body" }, _hoisted_4$9 = {
39190
39190
  key: 0,
39191
39191
  class: "geopoint-icons"
39192
39192
  }, _hoisted_5$7 = { class: "geopoint-information" }, _hoisted_6$5 = {
@@ -39268,8 +39268,8 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39268
39268
  ])
39269
39269
  ]),
39270
39270
  default: withCtx(() => [
39271
- createElementVNode("div", _hoisted_3$d, [
39272
- lr.value.value != null ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
39271
+ createElementVNode("div", _hoisted_3$e, [
39272
+ lr.value.value != null ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
39273
39273
  lr.value.quality === unref(GeopointAccuracy).POOR ? (openBlock(), createBlock(IconSVG, {
39274
39274
  key: 0,
39275
39275
  class: "warning-icon",
@@ -39317,7 +39317,7 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39317
39317
  }, _hoisted_2$i = {
39318
39318
  key: 1,
39319
39319
  class: "geopoint-value-container"
39320
- }, _hoisted_3$c = { class: "geopoint-icons" }, _hoisted_4$7 = { class: "geopoint-value" }, _hoisted_5$6 = { class: "geo-quality" }, _sfc_main$J = /* @__PURE__ */ defineComponent({
39320
+ }, _hoisted_3$d = { class: "geopoint-icons" }, _hoisted_4$8 = { class: "geopoint-value" }, _hoisted_5$6 = { class: "geo-quality" }, _sfc_main$J = /* @__PURE__ */ defineComponent({
39321
39321
  __name: "InputGeopoint",
39322
39322
  props: {
39323
39323
  question: {}
@@ -39373,7 +39373,7 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39373
39373
  _: 1
39374
39374
  }, 8, ["disabled"])) : createCommentVNode("", !0),
39375
39375
  lr.value != null ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
39376
- createElementVNode("div", _hoisted_3$c, [
39376
+ createElementVNode("div", _hoisted_3$d, [
39377
39377
  dr.value.quality === unref(GeopointAccuracy).POOR ? (openBlock(), createBlock(IconSVG, {
39378
39378
  key: 0,
39379
39379
  class: "warning-icon",
@@ -39386,7 +39386,7 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39386
39386
  variant: "primary"
39387
39387
  }))
39388
39388
  ]),
39389
- createElementVNode("div", _hoisted_4$7, [
39389
+ createElementVNode("div", _hoisted_4$8, [
39390
39390
  createElementVNode("strong", _hoisted_5$6, toDisplayString(unref(rr)(dr.value.labelMessageId)), 1),
39391
39391
  createVNode(GeolocationFormattedValue, { question: er.question }, null, 8, ["question"]),
39392
39392
  Ar.value ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(script$H), {
@@ -39503,10 +39503,10 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39503
39503
  console.warn("Invalid GeoJSON", er);
39504
39504
  return;
39505
39505
  }
39506
- }, cache$1 = { promise: null }, loadMapBlock = () => (cache$1.promise ??= (async () => (await import("./MapBlock-BTX9u64V.js")).default)(), cache$1.promise), _hoisted_1$z = { class: "async-loader-container" }, _hoisted_2$h = {
39506
+ }, cache$1 = { promise: null }, loadMapBlock = () => (cache$1.promise ??= (async () => (await import("./MapBlock-DtECrk0U.js")).default)(), cache$1.promise), _hoisted_1$z = { class: "async-loader-container" }, _hoisted_2$h = {
39507
39507
  key: 0,
39508
39508
  class: "async-loader-error"
39509
- }, _hoisted_3$b = { class: "async-loader-error-message" }, _sfc_main$I = /* @__PURE__ */ defineComponent({
39509
+ }, _hoisted_3$c = { class: "async-loader-error-message" }, _sfc_main$I = /* @__PURE__ */ defineComponent({
39510
39510
  __name: "AsyncLoader",
39511
39511
  props: {
39512
39512
  load: { type: Function },
@@ -39527,7 +39527,7 @@ const _hoisted_1$B = { class: "geo-dialog-header" }, _hoisted_2$j = { class: "ge
39527
39527
  };
39528
39528
  return onMounted(() => Ar()), (ir, sr) => (openBlock(), createElementBlock("div", _hoisted_1$z, [
39529
39529
  or.value === rr.ERROR ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
39530
- createElementVNode("p", _hoisted_3$b, toDisplayString(er.errorMessage), 1)
39530
+ createElementVNode("p", _hoisted_3$c, toDisplayString(er.errorMessage), 1)
39531
39531
  ])) : or.value === rr.LOADING ? (openBlock(), createBlock(unref(script$n), {
39532
39532
  key: 1,
39533
39533
  class: "async-loader-spinner"
@@ -42000,7 +42000,7 @@ var script$i = {
42000
42000
  directives: {
42001
42001
  ripple: Ripple
42002
42002
  }
42003
- }, _hoisted_1$y = ["id", "data-p"], _hoisted_2$g = ["disabled", "aria-label", "aria-expanded", "aria-controls"], _hoisted_3$a = ["data-p"], _hoisted_4$6 = ["id", "role", "aria-modal", "aria-label", "data-p"], _hoisted_5$5 = ["disabled", "aria-label"], _hoisted_6$4 = ["disabled", "aria-label"], _hoisted_7$3 = ["disabled", "aria-label"], _hoisted_8$3 = ["disabled", "aria-label"], _hoisted_9$1 = ["data-p-disabled"], _hoisted_10$1 = ["abbr"], _hoisted_11 = ["data-p-disabled"], _hoisted_12 = ["aria-label", "data-p-today", "data-p-other-month"], _hoisted_13 = ["onClick", "onKeydown", "aria-selected", "aria-disabled", "data-p"], _hoisted_14 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"], _hoisted_15 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"], _hoisted_16 = ["data-p"];
42003
+ }, _hoisted_1$y = ["id", "data-p"], _hoisted_2$g = ["disabled", "aria-label", "aria-expanded", "aria-controls"], _hoisted_3$b = ["data-p"], _hoisted_4$7 = ["id", "role", "aria-modal", "aria-label", "data-p"], _hoisted_5$5 = ["disabled", "aria-label"], _hoisted_6$4 = ["disabled", "aria-label"], _hoisted_7$3 = ["disabled", "aria-label"], _hoisted_8$3 = ["disabled", "aria-label"], _hoisted_9$1 = ["data-p-disabled"], _hoisted_10$1 = ["abbr"], _hoisted_11 = ["data-p-disabled"], _hoisted_12 = ["aria-label", "data-p-today", "data-p-other-month"], _hoisted_13 = ["onClick", "onKeydown", "aria-selected", "aria-disabled", "data-p"], _hoisted_14 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"], _hoisted_15 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"], _hoisted_16 = ["data-p"];
42004
42004
  function render$h(er, nr, rr, or, Ar, ir) {
42005
42005
  var sr = resolveComponent("InputText"), lr = resolveComponent("Button"), dr = resolveComponent("Portal"), cr = resolveDirective("ripple");
42006
42006
  return openBlock(), createElementBlock("span", mergeProps({
@@ -42079,7 +42079,7 @@ function render$h(er, nr, rr, or, Ar, ir) {
42079
42079
  class: [er.icon, er.cx("inputIcon")],
42080
42080
  onClick: ir.onButtonClick
42081
42081
  }, er.ptm("inputicon")), null, 16, ["class", "onClick"]))];
42082
- })], 16, _hoisted_3$a)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0), createVNode(dr, {
42082
+ })], 16, _hoisted_3$b)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0), createVNode(dr, {
42083
42083
  appendTo: er.appendTo,
42084
42084
  disabled: er.inline
42085
42085
  }, {
@@ -42880,7 +42880,7 @@ function render$h(er, nr, rr, or, Ar, ir) {
42880
42880
  pt: er.ptm("pcClearButton"),
42881
42881
  "data-pc-group-section": "button"
42882
42882
  }), null, 16, ["label", "class", "unstyled", "onKeydown", "pt"])];
42883
- })], 16)) : createCommentVNode("", !0), renderSlot(er.$slots, "footer")], 16, _hoisted_4$6)) : createCommentVNode("", !0)];
42883
+ })], 16)) : createCommentVNode("", !0), renderSlot(er.$slots, "footer")], 16, _hoisted_4$7)) : createCommentVNode("", !0)];
42884
42884
  }),
42885
42885
  _: 3
42886
42886
  }, 16, ["onAfterEnter", "onAfterLeave", "onLeave"])];
@@ -43397,7 +43397,7 @@ var script$f = {
43397
43397
  CheckIcon: script$B,
43398
43398
  MinusIcon: script$q
43399
43399
  }
43400
- }, _hoisted_1$w = ["data-p-checked", "data-p-indeterminate", "data-p-disabled", "data-p"], _hoisted_2$e = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid", "aria-checked"], _hoisted_3$9 = ["data-p"];
43400
+ }, _hoisted_1$w = ["data-p-checked", "data-p-indeterminate", "data-p-disabled", "data-p"], _hoisted_2$e = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid", "aria-checked"], _hoisted_3$a = ["data-p"];
43401
43401
  function render$e(er, nr, rr, or, Ar, ir) {
43402
43402
  var sr = resolveComponent("CheckIcon"), lr = resolveComponent("MinusIcon");
43403
43403
  return openBlock(), createElementBlock("div", mergeProps({
@@ -43453,7 +43453,7 @@ function render$e(er, nr, rr, or, Ar, ir) {
43453
43453
  }, ir.getPTOptions("icon"), {
43454
43454
  "data-p": ir.dataP
43455
43455
  }), null, 16, ["class", "data-p"])) : createCommentVNode("", !0)];
43456
- })], 16, _hoisted_3$9)], 16, _hoisted_1$w);
43456
+ })], 16, _hoisted_3$a)], 16, _hoisted_1$w);
43457
43457
  }
43458
43458
  script$f.render = render$e;
43459
43459
  var script$e = {
@@ -44495,7 +44495,7 @@ var script$c = {
44495
44495
  AngleUpIcon: script$d,
44496
44496
  AngleDownIcon: script$e
44497
44497
  }
44498
- }, _hoisted_1$v = ["data-p"], _hoisted_2$d = ["data-p"], _hoisted_3$8 = ["disabled", "data-p"], _hoisted_4$5 = ["disabled", "data-p"], _hoisted_5$4 = ["disabled", "data-p"], _hoisted_6$3 = ["disabled", "data-p"];
44498
+ }, _hoisted_1$v = ["data-p"], _hoisted_2$d = ["data-p"], _hoisted_3$9 = ["disabled", "data-p"], _hoisted_4$6 = ["disabled", "data-p"], _hoisted_5$4 = ["disabled", "data-p"], _hoisted_6$3 = ["disabled", "data-p"];
44499
44499
  function render$b(er, nr, rr, or, Ar, ir) {
44500
44500
  var sr = resolveComponent("InputText");
44501
44501
  return openBlock(), createElementBlock("span", mergeProps({
@@ -44556,7 +44556,7 @@ function render$b(er, nr, rr, or, Ar, ir) {
44556
44556
  }, er.ptm("incrementIcon"), {
44557
44557
  "data-pc-section": "incrementicon"
44558
44558
  }), null, 16, ["class"]))];
44559
- })], 16, _hoisted_3$8)];
44559
+ })], 16, _hoisted_3$9)];
44560
44560
  }), renderSlot(er.$slots, "decrementbutton", {
44561
44561
  listeners: ir.downButtonListeners
44562
44562
  }, function() {
@@ -44575,7 +44575,7 @@ function render$b(er, nr, rr, or, Ar, ir) {
44575
44575
  }, er.ptm("decrementIcon"), {
44576
44576
  "data-pc-section": "decrementicon"
44577
44577
  }), null, 16, ["class"]))];
44578
- })], 16, _hoisted_4$5)];
44578
+ })], 16, _hoisted_4$6)];
44579
44579
  })], 16, _hoisted_2$d)) : createCommentVNode("", !0), renderSlot(er.$slots, "incrementbutton", {
44580
44580
  listeners: ir.upButtonListeners
44581
44581
  }, function() {
@@ -44896,7 +44896,7 @@ var script$b = {
44896
44896
  }, this.size, this.size));
44897
44897
  }
44898
44898
  }
44899
- }, _hoisted_1$u = ["data-p-checked", "data-p-disabled", "data-p"], _hoisted_2$c = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "aria-labelledby", "aria-label", "aria-invalid"], _hoisted_3$7 = ["data-p"], _hoisted_4$4 = ["data-p"];
44899
+ }, _hoisted_1$u = ["data-p-checked", "data-p-disabled", "data-p"], _hoisted_2$c = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "aria-labelledby", "aria-label", "aria-invalid"], _hoisted_3$8 = ["data-p"], _hoisted_4$5 = ["data-p"];
44900
44900
  function render$a(er, nr, rr, or, Ar, ir) {
44901
44901
  return openBlock(), createElementBlock("div", mergeProps({
44902
44902
  class: er.cx("root")
@@ -44935,7 +44935,7 @@ function render$a(er, nr, rr, or, Ar, ir) {
44935
44935
  class: er.cx("icon")
44936
44936
  }, ir.getPTOptions("icon"), {
44937
44937
  "data-p": ir.dataP
44938
- }), null, 16, _hoisted_4$4)], 16, _hoisted_3$7)], 16, _hoisted_1$u);
44938
+ }), null, 16, _hoisted_4$5)], 16, _hoisted_3$8)], 16, _hoisted_1$u);
44939
44939
  }
44940
44940
  script$b.render = render$a;
44941
44941
  var script$a = {
@@ -46225,7 +46225,7 @@ function _toPrimitive$3(er, nr) {
46225
46225
  }
46226
46226
  return (nr === "string" ? String : Number)(er);
46227
46227
  }
46228
- var _hoisted_1$t = ["data-p"], _hoisted_2$b = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], _hoisted_3$6 = ["data-p"], _hoisted_4$3 = {
46228
+ var _hoisted_1$t = ["data-p"], _hoisted_2$b = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], _hoisted_3$7 = ["data-p"], _hoisted_4$4 = {
46229
46229
  key: 0
46230
46230
  }, _hoisted_5$3 = ["data-p"], _hoisted_6$2 = ["id", "aria-label"], _hoisted_7$2 = ["id"], _hoisted_8$2 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
46231
46231
  function render$8(er, nr, rr, or, Ar, ir) {
@@ -46280,7 +46280,7 @@ function render$8(er, nr, rr, or, Ar, ir) {
46280
46280
  key: 0
46281
46281
  }, [createTextVNode(toDisplayString(ir.label || "empty"), 1)], 64)) : er.display === "chip" ? (openBlock(), createElementBlock(Fragment, {
46282
46282
  key: 1
46283
- }, [ir.chipSelectedItems ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(ir.label), 1)) : (openBlock(!0), createElementBlock(Fragment, {
46283
+ }, [ir.chipSelectedItems ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(ir.label), 1)) : (openBlock(!0), createElementBlock(Fragment, {
46284
46284
  key: 1
46285
46285
  }, renderList(er.d_value, function(Br) {
46286
46286
  return openBlock(), createElementBlock("span", mergeProps({
@@ -46319,7 +46319,7 @@ function render$8(er, nr, rr, or, Ar, ir) {
46319
46319
  }), 128)), !er.d_value || er.d_value.length === 0 ? (openBlock(), createElementBlock(Fragment, {
46320
46320
  key: 2
46321
46321
  }, [createTextVNode(toDisplayString(er.placeholder || "empty"), 1)], 64)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)];
46322
- })], 16, _hoisted_3$6)], 16), ir.isClearIconVisible ? renderSlot(er.$slots, "clearicon", {
46322
+ })], 16, _hoisted_3$7)], 16), ir.isClearIconVisible ? renderSlot(er.$slots, "clearicon", {
46323
46323
  key: 0,
46324
46324
  class: normalizeClass(er.cx("clearIcon")),
46325
46325
  clearCallback: ir.onClearClick
@@ -47159,7 +47159,7 @@ function _toPrimitive$2(er, nr) {
47159
47159
  }
47160
47160
  return (nr === "string" ? String : Number)(er);
47161
47161
  }
47162
- var _hoisted_1$s = ["data-p"], _hoisted_2$a = ["id", "data-p"], _hoisted_3$5 = ["data-p"];
47162
+ var _hoisted_1$s = ["data-p"], _hoisted_2$a = ["id", "data-p"], _hoisted_3$6 = ["data-p"];
47163
47163
  function render$6(er, nr, rr, or, Ar, ir) {
47164
47164
  var sr = resolveComponent("InputText"), lr = resolveComponent("Portal");
47165
47165
  return openBlock(), createElementBlock("div", mergeProps({
@@ -47249,7 +47249,7 @@ function render$6(er, nr, rr, or, Ar, ir) {
47249
47249
  width: Ar.meter ? Ar.meter.width : ""
47250
47250
  },
47251
47251
  "data-p": ir.meterDataP
47252
- }, er.ptm("meterLabel")), null, 16, _hoisted_3$5)], 16), createElementVNode("div", mergeProps({
47252
+ }, er.ptm("meterLabel")), null, 16, _hoisted_3$6)], 16), createElementVNode("div", mergeProps({
47253
47253
  class: er.cx("meterText")
47254
47254
  }, er.ptm("meterText")), toDisplayString(Ar.infoText), 17)], 16)];
47255
47255
  }), renderSlot(er.$slots, "footer")], 16, _hoisted_2$a)) : createCommentVNode("", !0)];
@@ -47488,7 +47488,7 @@ var style$2 = ({ dt: er }) => `
47488
47488
  StarIcon: script$5,
47489
47489
  BanIcon: script$6
47490
47490
  }
47491
- }, _hoisted_1$r = ["data-p"], _hoisted_2$9 = ["onClick", "data-p-active", "data-p-focused", "data-p"], _hoisted_3$4 = ["value", "name", "checked", "disabled", "readonly", "aria-label", "onFocus", "onChange"];
47491
+ }, _hoisted_1$r = ["data-p"], _hoisted_2$9 = ["onClick", "data-p-active", "data-p-focused", "data-p"], _hoisted_3$5 = ["value", "name", "checked", "disabled", "readonly", "aria-label", "onFocus", "onChange"];
47492
47492
  function render$2(er, nr, rr, or, Ar, ir) {
47493
47493
  return openBlock(), createElementBlock("div", mergeProps({
47494
47494
  class: er.cx("root")
@@ -47531,7 +47531,7 @@ function render$2(er, nr, rr, or, Ar, ir) {
47531
47531
  return ir.onChange(dr, sr);
47532
47532
  },
47533
47533
  ref_for: !0
47534
- }, er.ptm("hiddenOptionInput")), null, 16, _hoisted_3$4)], 16), sr <= er.d_value ? renderSlot(er.$slots, "onicon", {
47534
+ }, er.ptm("hiddenOptionInput")), null, 16, _hoisted_3$5)], 16), sr <= er.d_value ? renderSlot(er.$slots, "onicon", {
47535
47535
  key: 0,
47536
47536
  value: sr,
47537
47537
  class: normalizeClass(er.cx("onIcon"))
@@ -47920,7 +47920,7 @@ var script$2 = {
47920
47920
  return cn$1(_defineProperty$1({}, this.orientation, this.orientation));
47921
47921
  }
47922
47922
  }
47923
- }, _hoisted_1$q = ["data-p"], _hoisted_2$8 = ["data-p"], _hoisted_3$3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], _hoisted_4$2 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], _hoisted_5$2 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"];
47923
+ }, _hoisted_1$q = ["data-p"], _hoisted_2$8 = ["data-p"], _hoisted_3$4 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], _hoisted_4$3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], _hoisted_5$2 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"];
47924
47924
  function render$1(er, nr, rr, or, Ar, ir) {
47925
47925
  return openBlock(), createElementBlock("div", mergeProps({
47926
47926
  class: er.cx("root"),
@@ -47967,7 +47967,7 @@ function render$1(er, nr, rr, or, Ar, ir) {
47967
47967
  "aria-orientation": er.orientation
47968
47968
  }, er.ptm("handle"), {
47969
47969
  "data-p": ir.dataP
47970
- }), null, 16, _hoisted_3$3)), er.range ? (openBlock(), createElementBlock("span", mergeProps({
47970
+ }), null, 16, _hoisted_3$4)), er.range ? (openBlock(), createElementBlock("span", mergeProps({
47971
47971
  key: 1,
47972
47972
  class: er.cx("handle"),
47973
47973
  style: [er.sx("handle"), ir.rangeStartHandleStyle()],
@@ -47999,7 +47999,7 @@ function render$1(er, nr, rr, or, Ar, ir) {
47999
47999
  "aria-orientation": er.orientation
48000
48000
  }, er.ptm("startHandler"), {
48001
48001
  "data-p": ir.dataP
48002
- }), null, 16, _hoisted_4$2)) : createCommentVNode("", !0), er.range ? (openBlock(), createElementBlock("span", mergeProps({
48002
+ }), null, 16, _hoisted_4$3)) : createCommentVNode("", !0), er.range ? (openBlock(), createElementBlock("span", mergeProps({
48003
48003
  key: 2,
48004
48004
  class: er.cx("handle"),
48005
48005
  style: [er.sx("handle"), ir.rangeEndHandleStyle()],
@@ -48662,7 +48662,7 @@ const _hoisted_1$n = { class: "note-control" }, _hoisted_2$7 = {
48662
48662
  ])) : createCommentVNode("", !0)
48663
48663
  ]));
48664
48664
  }
48665
- }), NoteControl = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-cd7a73b8"]]), _hoisted_1$m = { class: "range-value" }, _hoisted_2$6 = { class: "range-bound range-min" }, _hoisted_3$2 = { class: "range-bound range-max" }, _sfc_main$u = /* @__PURE__ */ defineComponent({
48665
+ }), NoteControl = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-cd7a73b8"]]), _hoisted_1$m = { class: "range-value" }, _hoisted_2$6 = { class: "range-bound range-min" }, _hoisted_3$3 = { class: "range-bound range-max" }, _sfc_main$u = /* @__PURE__ */ defineComponent({
48666
48666
  __name: "RangeControl",
48667
48667
  props: {
48668
48668
  node: {}
@@ -48703,7 +48703,7 @@ const _hoisted_1$n = { class: "note-control" }, _hoisted_2$7 = {
48703
48703
  "onUpdate:modelValue": lr
48704
48704
  }, null, 8, ["id", "disabled", "min", "max", "step", "orientation", "model-value"]),
48705
48705
  createElementVNode("div", _hoisted_2$6, toDisplayString(unref(or)), 1),
48706
- createElementVNode("div", _hoisted_3$2, toDisplayString(unref(Ar)), 1)
48706
+ createElementVNode("div", _hoisted_3$3, toDisplayString(unref(Ar)), 1)
48707
48707
  ], 2))
48708
48708
  ], 64));
48709
48709
  }
@@ -50296,7 +50296,7 @@ const ft = [
50296
50296
  }), _hoisted_1$l = { class: "rank-control-container" }, _hoisted_2$5 = {
50297
50297
  key: 0,
50298
50298
  class: "rank-overlay"
50299
- }, _hoisted_3$1 = ["disabled"], _hoisted_4$1 = ["id", "onKeydown"], _hoisted_5$1 = { class: "rank-label" }, _hoisted_6$1 = { class: "rank-buttons" }, _hoisted_7$1 = ["disabled", "onClick", "onMousedown"], _hoisted_8$1 = ["disabled", "onClick", "onMousedown"], HIGHLIGHT_DELAY = 1200, HOLD_DELAY = 200, _sfc_main$t = /* @__PURE__ */ defineComponent({
50299
+ }, _hoisted_3$2 = ["disabled"], _hoisted_4$2 = ["id", "onKeydown"], _hoisted_5$1 = { class: "rank-label" }, _hoisted_6$1 = { class: "rank-buttons" }, _hoisted_7$1 = ["disabled", "onClick", "onMousedown"], _hoisted_8$1 = ["disabled", "onClick", "onMousedown"], HIGHLIGHT_DELAY = 1200, HOLD_DELAY = 200, _sfc_main$t = /* @__PURE__ */ defineComponent({
50300
50300
  __name: "RankControl",
50301
50301
  props: {
50302
50302
  question: {}
@@ -50346,7 +50346,7 @@ const ft = [
50346
50346
  variant: Ar.value ? "muted" : "base"
50347
50347
  }, null, 8, ["variant"]),
50348
50348
  createElementVNode("span", null, toDisplayString(unref(nr)("rank_control.open.label")), 1)
50349
- ], 8, _hoisted_3$1)
50349
+ ], 8, _hoisted_3$2)
50350
50350
  ])) : createCommentVNode("", !0),
50351
50351
  createVNode(unref(lo), {
50352
50352
  id: er.question.nodeId,
@@ -50403,7 +50403,7 @@ const ft = [
50403
50403
  }, null, 8, ["variant"])
50404
50404
  ], 40, _hoisted_8$1)) : createCommentVNode("", !0)
50405
50405
  ])
50406
- ], 42, _hoisted_4$1))), 128))
50406
+ ], 42, _hoisted_4$2))), 128))
50407
50407
  ]),
50408
50408
  _: 1
50409
50409
  }, 8, ["id", "modelValue", "disabled", "class", "on-end"])
@@ -52672,7 +52672,7 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
52672
52672
  }
52673
52673
  }), UploadImageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4dbe652c"]]), cache = { promise: null }, loadCanvas = (er) => er ? (cache.promise ??= (async () => {
52674
52674
  const { default: nr } = await import("./vue-konva-D0sZ6RWk.js");
52675
- return er.use(nr), (await import("./CanvasBlock-DWoXGSW9.js")).default;
52675
+ return er.use(nr), (await import("./CanvasBlock-DCxff1En.js")).default;
52676
52676
  })(), cache.promise) : Promise.reject(new Error("No Vue app instance available")), _hoisted_1$5 = {
52677
52677
  key: 0,
52678
52678
  class: "canvas-disabled-overlay"
@@ -52811,11 +52811,11 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
52811
52811
  }, null, 8, _hoisted_2$2)
52812
52812
  ])) : createCommentVNode("", !0);
52813
52813
  }
52814
- }), UploadVideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cc8df2f8"]]), _hoisted_1$2 = {
52814
+ }), UploadVideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cc8df2f8"]]), _hoisted_1$2 = { class: "upload-control-header" }, _hoisted_2$1 = { class: "upload-control-content" }, _hoisted_3$1 = {
52815
52815
  key: 0,
52816
52816
  class: "canvas-empty-placeholder"
52817
- }, _hoisted_2$1 = {
52818
- key: 5,
52817
+ }, _hoisted_4$1 = {
52818
+ key: 6,
52819
52819
  class: "placeholder"
52820
52820
  }, MAX_FILE_SIZE = 1e8, _sfc_main$5 = /* @__PURE__ */ defineComponent({
52821
52821
  __name: "UploadControl",
@@ -52901,10 +52901,10 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
52901
52901
  Sr.value && URL.revokeObjectURL(Sr.value), $r();
52902
52902
  }), (Jr, Tr) => (openBlock(), createElementBlock(Fragment, null, [
52903
52903
  createVNode(ControlText, { question: er.question }, null, 8, ["question"]),
52904
- createVNode(unref(script$o), {
52905
- class: normalizeClass({ "mobile-only-header": br.value })
52906
- }, {
52907
- header: withCtx(() => [
52904
+ createElementVNode("div", {
52905
+ class: normalizeClass(["upload-control", { "mobile-only-header": br.value }])
52906
+ }, [
52907
+ createElementVNode("div", _hoisted_1$2, [
52908
52908
  dr.value === "image" ? (openBlock(), createBlock(UploadImageHeader, {
52909
52909
  key: 0,
52910
52910
  question: er.question,
@@ -52933,14 +52933,14 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
52933
52933
  onChange: Hr
52934
52934
  }, null, 8, ["question", "accept", "is-disabled"]))
52935
52935
  ]),
52936
- default: withCtx(() => [
52936
+ createElementVNode("div", _hoisted_2$1, [
52937
52937
  createElementVNode("div", {
52938
52938
  class: normalizeClass(["drag-and-drop", { disabled: ir.value, "canvas-mode": !!wr.value && vr.value }]),
52939
52939
  onDrop: withModifiers(qr, ["prevent", "stop"]),
52940
52940
  onDragover: Tr[5] || (Tr[5] = withModifiers(() => {
52941
52941
  }, ["prevent"]))
52942
52942
  }, [
52943
- Fr.value.length && !er.question.currentState.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(Fr.value), 1)) : createCommentVNode("", !0),
52943
+ Fr.value.length && !er.question.currentState.value ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(Fr.value), 1)) : createCommentVNode("", !0),
52944
52944
  gr.value ? (openBlock(), createElementBlock("div", {
52945
52945
  key: 1,
52946
52946
  class: normalizeClass(["skeleton-loading", { "loading-image": dr.value === "image", "loading-video": dr.value === "video", "loading-audio": dr.value === "audio" }])
@@ -52994,9 +52994,18 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
52994
52994
  createTextVNode(toDisplayString(Br.value), 1)
52995
52995
  ]),
52996
52996
  _: 1
52997
- })) : Ir.value ? (openBlock(), createBlock(unref(script$E), {
52997
+ })) : Ir.value === "not-found" ? (openBlock(), createBlock(unref(script$E), {
52998
52998
  key: 4,
52999
52999
  severity: "error",
53000
+ closable: !1
53001
+ }, {
53002
+ default: withCtx(() => [
53003
+ createTextVNode(toDisplayString(unref(Ar)("media_block.not_found.error", { file: pr.value })), 1)
53004
+ ]),
53005
+ _: 1
53006
+ })) : Ir.value ? (openBlock(), createBlock(unref(script$E), {
53007
+ key: 5,
53008
+ severity: "error",
53000
53009
  closable: !0,
53001
53010
  onClose: Tr[4] || (Tr[4] = (Pr) => Ur())
53002
53011
  }, {
@@ -53011,11 +53020,10 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
53011
53020
  createTextVNode(" " + toDisplayString(unref(Ar)("upload_control.downloading.error")), 1)
53012
53021
  ]),
53013
53022
  _: 1
53014
- })) : (openBlock(), createElementBlock("div", _hoisted_2$1, toDisplayString(unref(Ar)("upload_control.drag_and_drop.placeholder")), 1))
53023
+ })) : (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(unref(Ar)("upload_control.drag_and_drop.placeholder")), 1))
53015
53024
  ], 34)
53016
- ]),
53017
- _: 1
53018
- }, 8, ["class"]),
53025
+ ])
53026
+ ], 2),
53019
53027
  createVNode(_sfc_main$f, {
53020
53028
  visible: Cr.value,
53021
53029
  "onUpdate:visible": Tr[6] || (Tr[6] = (Pr) => Cr.value = Pr),
@@ -53023,7 +53031,7 @@ const IMAGE_QUALITY = 0.8, resize = async (er, nr) => {
53023
53031
  }, null, 8, ["visible"])
53024
53032
  ], 64));
53025
53033
  }
53026
- }), UploadControl = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9545a54a"]]), _hoisted_1$1 = ["id"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
53034
+ }), UploadControl = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6dcf7337"]]), _hoisted_1$1 = ["id"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
53027
53035
  __name: "FormQuestion",
53028
53036
  props: {
53029
53037
  question: {}
@@ -68347,7 +68355,7 @@ const ar = {
68347
68355
  },
68348
68356
  emits: ["loaded", "submit", "submitChunked"],
68349
68357
  setup(er, { emit: nr }) {
68350
- const rr = "v1.0.0", or = er, Ar = (Dr) => {
68358
+ const rr = "v1.0.1", or = er, Ar = (Dr) => {
68351
68359
  const kr = async (Lr) => {
68352
68360
  const $r = await Lr, Vr = {
68353
68361
  form: Ir,