PageSourceSearch

https://www.burkert.com/bundles/buerkertwebsite/generated/new-buerkert-builds/basketPage-C_A08cR0.js

js burkert.com collected 2026-10-03 19:52:16 UTC 2,649 bytes, 67 lines download raw bytes

1import { d as s } from "./pinia-CiH11FLJ.js";
2import { u as o } from "./api-vmXNQwuv.js";
3import { c as r } from "./index-BBvUVmxt.js";
4import { u as d } from "./useCommonUtils-eps3nKgp.js";
5const m = s("basketPage", {
6  state: () => ({
7    initialized: !1,
8    hasTracked: !1,
9    loading: !0,
10    openLoginModal: !1,
11    basketId: void 0,
12    totalsPriceFormatted: void 0,
13    currency: void 0,
14    lines: [],
15    totalsSum: void 0,
16    dataMap: {
17      hintboxes: [],
18      sumTable: void 0,
19      allowedActions: [],
20      totalNetFormatted: void 0
21    },
22    quantityErrors: /* @__PURE__ */ new Set()
23  }),
24  actions: {
25    //TODO: this init dosen't do anything anymore, remove its call with loadBasket()
26    async init() {
27      await this.loadBasket();
28    },
29    async loadBasket() {
30      this.loading = !0;
31      const e = o().apiParameters, { Basket: t } = await r.getCurrentBasket(e);
32      t && (this.basketId = t.basketId, this.currency = t?.currency, this.lines = t.lines, this.totalsPriceFormatted = t.totalsPriceFormatted, this.totals = t.totals, this.totalsSum = t.totalsSum, this.dataMap.hintboxes = t.dataMap?.hintboxes, this.dataMap.totalNetFormatted = t.dataMap?.totalNetFormatted, this.dataMap.sumTable = t?.dataMap?.sumTable, this.dataMap.allowedActions = t?.dataMap?.allowedActions, this.resetQuantityError(), this.openLoginModal = !1, this.hasTracked || (this.hasTracked = !0, d().track("checkout", void 0, void 0, void 0, {
33        ecommerce: {
34          checkout: {
35            actionField: { step: 1, action: "checkout", option: "" }
36          },
37          products: t.lines.map((a) => ({
38            name: a.remoteDataMap.name,
39            id: a.basketLineId,
40            price: a.remoteDataMap.priceNetFormatted,
41            quantity: a.quantity
42          }))
43        }
44      }))), this.loading = !1, this.initialized = !0;
45    },
46    async clear() {
47      this.lines = [], this.totalsPriceFormatted = void 0, this.totals = void 0, this.totalsSum = void 0, this.dataMap.hintboxes = void 0, this.dataMap.totalNetFormatted = void 0, this.dataMap.sumTable = void 0, this.resetQuantityError(), this.openLoginModal = !1;
48    },
49    setRemark(e, t) {
50      const a = this.lines.find((i) => i.basketLineId === e);
51      a && (a.remark = t, a.remoteDataMap.lineRemark = t);
52    },
53    setQuantity(e, t) {
54      const a = this.lines.find((i) => i.basketLineId === e);
55      a && (a.quantity = t);
56    },
57    setQuantityError(e, t) {
58      t ? this.quantityErrors.add(e) : this.quantityErrors.delete(e);
59    },
60    resetQuantityError() {
61      this.quantityErrors = /* @__PURE__ */ new Set();
62    }
63  }
64});
65export {
66  m as u
67};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.