szld-libs 0.2.77 → 0.2.78

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.
@@ -26593,26 +26593,35 @@ function YM(n) {
26593
26593
  return a.toUpperCase();
26594
26594
  });
26595
26595
  }
26596
- const qM = (n) => {
26597
- var s;
26598
- const l = {
26596
+ const qM = (n, l) => {
26597
+ var p;
26598
+ const a = {
26599
26599
  data: {
26600
- asid: ((s = n[0]) == null ? void 0 : s.asid) || "",
26600
+ asid: ((p = n[0]) == null ? void 0 : p.asid) || "",
26601
26601
  data_list: []
26602
26602
  }
26603
- }, a = (p) => {
26604
- var g;
26605
- const v = {}, h = `${p.attrid}_${p.attrtype}`;
26606
- return p.children && p.children.length > 0 && p.attrtype == 1 ? (v[h] = {
26607
- asid: ((g = p.children[0]) == null ? void 0 : g.asid) || "",
26608
- data_list: {}
26609
- }, p.children.forEach((E) => {
26610
- v[h].data_list[E.attrid] = E.attrvalue || "";
26611
- }), v[h].data_list = [v[h].data_list]) : v[h] = p.attrvalue || "", v;
26603
+ }, s = (v) => {
26604
+ var E;
26605
+ const h = {}, g = `${v.attrid}_${v.attrtype}`;
26606
+ if (v.children && v.children.length > 0 && v.attrtype == 1)
26607
+ if (h[g] = {
26608
+ asid: ((E = v.children[0]) == null ? void 0 : E.asid) || "",
26609
+ data_list: [],
26610
+ data_list_obj: {}
26611
+ }, v.children.forEach((d) => {
26612
+ h[g].data_list_obj[d.attrid] = d.attrvalue || "";
26613
+ }), l && l > 1)
26614
+ for (let d = 0; d < l; d++)
26615
+ h[g].data_list.push(h[g].data_list_obj);
26616
+ else
26617
+ h[g].data_list.push(h[g].data_list_obj);
26618
+ else
26619
+ h[g] = v.attrvalue || "";
26620
+ return h;
26612
26621
  };
26613
- return n.forEach((p) => {
26614
- l.data.data_list.push(a(p));
26615
- }), l.data.data_list = [Object.assign({}, ...l.data.data_list)], l;
26622
+ return n.forEach((v) => {
26623
+ a.data.data_list.push(s(v));
26624
+ }), a.data.data_list = [Object.assign({}, ...a.data.data_list)], a;
26616
26625
  }, lL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26617
26626
  __proto__: null,
26618
26627
  getJson: ry,