@dcodegroup-au/page-builder 0.4.8 → 0.4.9

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.
@@ -2189,22 +2189,22 @@ vt.getAdapter = Li.getAdapter;
2189
2189
  vt.HttpStatusCode = _2;
2190
2190
  vt.default = vt;
2191
2191
  const {
2192
- Axios: uke,
2193
- AxiosError: dke,
2194
- CanceledError: hke,
2195
- isCancel: fke,
2196
- CancelToken: pke,
2197
- VERSION: mke,
2198
- all: vke,
2199
- Cancel: wke,
2200
- isAxiosError: gke,
2201
- spread: xke,
2202
- toFormData: kke,
2203
- AxiosHeaders: Cke,
2204
- HttpStatusCode: yke,
2205
- formToJSON: bke,
2206
- getAdapter: Mke,
2207
- mergeConfig: Ake
2192
+ Axios: dke,
2193
+ AxiosError: hke,
2194
+ CanceledError: fke,
2195
+ isCancel: pke,
2196
+ CancelToken: mke,
2197
+ VERSION: vke,
2198
+ all: wke,
2199
+ Cancel: gke,
2200
+ isAxiosError: xke,
2201
+ spread: kke,
2202
+ toFormData: Cke,
2203
+ AxiosHeaders: yke,
2204
+ HttpStatusCode: bke,
2205
+ formToJSON: Mke,
2206
+ getAdapter: Ake,
2207
+ mergeConfig: _ke
2208
2208
  } = vt;
2209
2209
  var G1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2210
2210
  function oo(t) {
@@ -37484,7 +37484,7 @@ const An = /* @__PURE__ */ K0(L9e, [["render", H9e]]), O9e = { class: "rounded-x
37484
37484
  }, lme = { class: "flex flex-col gap-1 pt-6 text-gray-600" }, ame = ["value"], cme = {
37485
37485
  key: 1,
37486
37486
  class: "rounded-xl bg-gray-50 px-6 py-5"
37487
- }, ume = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Lke = {
37487
+ }, ume = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Tke = {
37488
37488
  __name: "PageBuilder",
37489
37489
  props: {
37490
37490
  modelValue: {
@@ -39962,10 +39962,10 @@ function bxe(t, e) {
39962
39962
  }, null, -1)
39963
39963
  ]));
39964
39964
  }
39965
- const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class: "max-w-[1640px] md:px-[120px] mx-auto w-full my-[40px] bg-gray-100 rounded-[16px] flex justify-center" }, Bxe = {
39965
+ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class: "max-w-[1640px] md:px-[120px] mx-auto w-full my-[40px] flex justify-center" }, Bxe = {
39966
39966
  key: 0,
39967
- class: "flex items-center justify-center flex-col py-[40px] max-w-[820px]"
39968
- }, $xe = { class: "flex justify-between relative w-[150px]" }, Sxe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center" }, jxe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center absolute top-[40%] left-1/2 -translate-x-1/2 -translate-y-1/2" }, Lxe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center" }, Txe = { class: "text-[24px] text-gray-900 font-semibold mt-4" }, Exe = ["innerHTML"], Hxe = { class: "flex gap-2" }, Oxe = ["href"], Rxe = {
39967
+ class: "bg-gray-100 rounded-[16px] flex justify-center w-full"
39968
+ }, $xe = { class: "flex items-center justify-center flex-col py-[40px] max-w-[820px]" }, Sxe = { class: "flex justify-between relative w-[150px]" }, jxe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center" }, Lxe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center absolute top-[40%] left-1/2 -translate-x-1/2 -translate-y-1/2" }, Txe = { class: "w-[56px] h-[56px] border-[2px] border-white bg-gray-200 rounded-full flex justify-center items-center" }, Exe = { class: "text-[24px] text-gray-900 font-semibold mt-4" }, Hxe = ["innerHTML"], Oxe = { class: "flex gap-2" }, Rxe = ["href"], Nxe = {
39969
39969
  __name: "ContactUs",
39970
39970
  props: {
39971
39971
  section: {
@@ -39982,39 +39982,41 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
39982
39982
  r.value ? (s(), i("div", Bxe, [
39983
39983
  o("div", $xe, [
39984
39984
  o("div", Sxe, [
39985
- me(Ce(gxe), { class: "w-6 h-6 text-gray-600" })
39986
- ]),
39987
- o("div", jxe, [
39988
- me(Ce(Cxe), { class: "w-6 h-6 text-gray-600" })
39985
+ o("div", jxe, [
39986
+ me(Ce(gxe), { class: "w-6 h-6 text-gray-600" })
39987
+ ]),
39988
+ o("div", Lxe, [
39989
+ me(Ce(Cxe), { class: "w-6 h-6 text-gray-600" })
39990
+ ]),
39991
+ o("div", Txe, [
39992
+ me(Ce(Mxe), { class: "w-6 h-6 text-gray-600" })
39993
+ ])
39989
39994
  ]),
39990
- o("div", Lxe, [
39991
- me(Ce(Mxe), { class: "w-6 h-6 text-gray-600" })
39995
+ o("h3", Exe, be(r.value.title), 1),
39996
+ (d = r.value) != null && d.supporting_text ? (s(), i("p", {
39997
+ key: 0,
39998
+ class: "text-[18px] font-normal mt-2 text-gray-600 leading-[30px] text-center",
39999
+ innerHTML: r.value.supporting_text
40000
+ }, null, 8, Hxe)) : de("", !0),
40001
+ o("div", Oxe, [
40002
+ (s(!0), i(ze, null, Qe(l.value.data, (a) => (s(), i(ze, null, [
40003
+ a != null && a.show ? (s(), i("a", {
40004
+ key: 0,
40005
+ class: Pe(["inline-flex gap-1.5 items-center font-semibold text-base mt-4 px-5 py-2.5 rounded-full", { "text-brand-700 hover:bg-white border border-brand-300": a.type === "phone", "text-white bg-brand-600 hover:bg-brand-800": a.type === "email" }]),
40006
+ href: `${a.type === "email" ? "mailto:" : "tel:"} ${a.address}`
40007
+ }, [
40008
+ P1(be(a.label) + " ", 1),
40009
+ me(Ce(V1), { class: "w-5 h-5" })
40010
+ ], 10, Rxe)) : de("", !0)
40011
+ ], 64))), 256))
39992
40012
  ])
39993
- ]),
39994
- o("h3", Txe, be(r.value.title), 1),
39995
- (d = r.value) != null && d.supporting_text ? (s(), i("p", {
39996
- key: 0,
39997
- class: "text-[18px] font-normal mt-2 text-gray-600 leading-[30px] text-center",
39998
- innerHTML: r.value.supporting_text
39999
- }, null, 8, Exe)) : de("", !0),
40000
- o("div", Hxe, [
40001
- (s(!0), i(ze, null, Qe(l.value.data, (a) => (s(), i(ze, null, [
40002
- a != null && a.show ? (s(), i("a", {
40003
- key: 0,
40004
- class: Pe(["inline-flex gap-1.5 items-center font-semibold text-base mt-4 px-5 py-2.5 rounded-full", { "text-brand-700 hover:bg-white border border-brand-300": a.type === "phone", "text-white bg-brand-600 hover:bg-brand-800": a.type === "email" }]),
40005
- href: `${a.type === "email" ? "mailto:" : "tel:"} ${a.address}`
40006
- }, [
40007
- P1(be(a.label) + " ", 1),
40008
- me(Ce(V1), { class: "w-5 h-5" })
40009
- ], 10, Oxe)) : de("", !0)
40010
- ], 64))), 256))
40011
40013
  ])
40012
40014
  ])) : de("", !0)
40013
40015
  ])
40014
40016
  ]);
40015
40017
  };
40016
40018
  }
40017
- }, Nxe = { class: "page-render" }, Tke = {
40019
+ }, Vxe = { class: "page-render" }, Eke = {
40018
40020
  __name: "PageRender",
40019
40021
  props: {
40020
40022
  page: {
@@ -40038,9 +40040,9 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40038
40040
  link_list: We(Wge),
40039
40041
  bullet_points: We(sxe),
40040
40042
  callout: We(mxe),
40041
- contact_us: We(Rxe)
40043
+ contact_us: We(Nxe)
40042
40044
  }), n = (r) => r != null && r.type ? e.value[r == null ? void 0 : r.type] : "";
40043
- return (r, l) => (s(), i("div", Nxe, [
40045
+ return (r, l) => (s(), i("div", Vxe, [
40044
40046
  (s(!0), i(ze, null, Qe(t.page.sections, (u, c) => (s(), i("div", null, [
40045
40047
  (s(), Ze(Y1(n(u)), {
40046
40048
  key: c,
@@ -40049,7 +40051,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40049
40051
  ]))), 256))
40050
40052
  ]));
40051
40053
  }
40052
- }, Vxe = { class: "item-edit" }, Pxe = { class: "flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]" }, Ixe = { class: "flex flex-1 flex-col gap-4 mb-4" }, Dxe = { key: 0 }, Fxe = { class: "flex justify-between mb-4" }, Uxe = { class: "flex flex-col gap-1" }, zxe = { class: "text-sm" }, qxe = ["disabled"], Gxe = { class: "flex flex-col gap-4" }, Wxe = { class: "flex justify-between items-center border-b border-gray-200 pb-3 mb-4" }, Xxe = { class: "text-lg font-semibold text-gray-900" }, Kxe = ["onUpdate:modelValue"], Zxe = { class: "flex flex-col gap-8" }, Qxe = { class: "flex w-full max-w-[356px] flex-col gap-4" }, Yxe = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Eke = {
40054
+ }, Pxe = { class: "item-edit" }, Ixe = { class: "flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]" }, Dxe = { class: "flex flex-1 flex-col gap-4 mb-4" }, Fxe = { key: 0 }, Uxe = { class: "flex justify-between mb-4" }, zxe = { class: "flex flex-col gap-1" }, qxe = { class: "text-sm" }, Gxe = ["disabled"], Wxe = { class: "flex flex-col gap-4" }, Xxe = { class: "flex justify-between items-center border-b border-gray-200 pb-3 mb-4" }, Kxe = { class: "text-lg font-semibold text-gray-900" }, Zxe = ["onUpdate:modelValue"], Qxe = { class: "flex flex-col gap-8" }, Yxe = { class: "flex w-full max-w-[356px] flex-col gap-4" }, Jxe = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Hke = {
40053
40055
  __name: "ItemEdit",
40054
40056
  props: {
40055
40057
  item: {
@@ -40106,14 +40108,14 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40106
40108
  };
40107
40109
  return (b, A) => {
40108
40110
  var $, R, V;
40109
- return s(), i("div", Vxe, [
40110
- o("div", Pxe, [
40111
- o("div", Ixe, [
40112
- u.value ? (s(), i("div", Dxe, [
40113
- o("div", Fxe, [
40114
- o("div", Uxe, [
40111
+ return s(), i("div", Pxe, [
40112
+ o("div", Ixe, [
40113
+ o("div", Dxe, [
40114
+ u.value ? (s(), i("div", Fxe, [
40115
+ o("div", Uxe, [
40116
+ o("div", zxe, [
40115
40117
  A[6] || (A[6] = o("p", { class: "text-base font-semibold text-gray-900" }, "Events", -1)),
40116
- o("p", zxe, " This timeline item can contain up to " + be(($ = t.item) == null ? void 0 : $.max_items) + " events. ", 1)
40118
+ o("p", qxe, " This timeline item can contain up to " + be(($ = t.item) == null ? void 0 : $.max_items) + " events. ", 1)
40117
40119
  ]),
40118
40120
  o("button", {
40119
40121
  disabled: a.value.lines.length >= ((R = t.item) == null ? void 0 : R.max_items),
@@ -40122,15 +40124,15 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40122
40124
  }, [
40123
40125
  me(Ce(m0), { class: "h-5 w-5" }),
40124
40126
  A[7] || (A[7] = o("span", null, "Event", -1))
40125
- ], 10, qxe)
40127
+ ], 10, Gxe)
40126
40128
  ]),
40127
- o("div", Gxe, [
40129
+ o("div", Wxe, [
40128
40130
  (s(!0), i(ze, null, Qe(a.value.lines, (I, W) => (s(), i("div", {
40129
40131
  key: W,
40130
40132
  class: "flex flex-col gap-2 rounded-lg px-6 pt-4 pb-[40px] bg-gray-50"
40131
40133
  }, [
40132
- o("div", Wxe, [
40133
- o("p", Xxe, " Event #" + be(W + 1), 1),
40134
+ o("div", Xxe, [
40135
+ o("p", Kxe, " Event #" + be(W + 1), 1),
40134
40136
  me(Bn, {
40135
40137
  onRemoveItem: (X) => v(W)
40136
40138
  }, null, 8, ["onRemoveItem"])
@@ -40149,7 +40151,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40149
40151
  type: "text",
40150
40152
  placeholder: "Heading",
40151
40153
  class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
40152
- }, null, 8, Kxe), [
40154
+ }, null, 8, Zxe), [
40153
40155
  [Lt, I.title]
40154
40156
  ])
40155
40157
  ]),
@@ -40178,7 +40180,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40178
40180
  title: "Description"
40179
40181
  }, {
40180
40182
  default: Xe(() => [
40181
- o("div", Zxe, [
40183
+ o("div", Qxe, [
40182
40184
  me(pt, {
40183
40185
  "is-vertical": "",
40184
40186
  field: "title",
@@ -40232,7 +40234,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40232
40234
  sites: t.sites
40233
40235
  }, null, 8, ["button", "sites"])) : de("", !0)
40234
40236
  ]),
40235
- o("div", Qxe, [
40237
+ o("div", Yxe, [
40236
40238
  u.value ? (s(), i(ze, { key: 1 }, [
40237
40239
  me(t1, {
40238
40240
  title: "Timeline item title",
@@ -40327,7 +40329,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40327
40329
  ])
40328
40330
  ]),
40329
40331
  a0(b.$slots, "default", {}, () => [
40330
- o("div", Yxe, [
40332
+ o("div", Jxe, [
40331
40333
  o("a", {
40332
40334
  onClick: m,
40333
40335
  class: "w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"
@@ -40347,7 +40349,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40347
40349
  ]);
40348
40350
  };
40349
40351
  }
40350
- }, Jxe = { class: "item-edit" }, eke = { class: "flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]" }, tke = { class: "flex flex-1 flex-col gap-4" }, nke = { class: "flex flex-col gap-8" }, rke = { class: "flex gap-4" }, oke = { class: "flex w-full max-w-[356px] flex-col gap-4" }, ske = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Hke = {
40352
+ }, eke = { class: "item-edit" }, tke = { class: "flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]" }, nke = { class: "flex flex-1 flex-col gap-4" }, rke = { class: "flex flex-col gap-8" }, oke = { class: "flex gap-4" }, ske = { class: "flex w-full max-w-[356px] flex-col gap-4" }, ike = { class: "flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6" }, Oke = {
40351
40353
  __name: "LinkCardEdit",
40352
40354
  props: {
40353
40355
  item: {
@@ -40390,13 +40392,13 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40390
40392
  var f;
40391
40393
  return ((f = l.value.description) == null ? void 0 : f.replace(/<[^>]*>/g, " ").trim()).split(/\s+/).filter((p) => p.length > 0).length;
40392
40394
  });
40393
- return (a, h) => (s(), i("div", Jxe, [
40394
- o("div", eke, [
40395
- o("div", tke, [
40395
+ return (a, h) => (s(), i("div", eke, [
40396
+ o("div", tke, [
40397
+ o("div", nke, [
40396
40398
  me(t1, { title: "Description" }, {
40397
40399
  default: Xe(() => [
40398
- o("div", nke, [
40399
- o("div", rke, [
40400
+ o("div", rke, [
40401
+ o("div", oke, [
40400
40402
  me(pt, {
40401
40403
  "is-vertical": "",
40402
40404
  field: "icon",
@@ -40461,7 +40463,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40461
40463
  sites: t.sites
40462
40464
  }, null, 8, ["button", "sites"])) : de("", !0)
40463
40465
  ]),
40464
- o("div", oke, [
40466
+ o("div", ske, [
40465
40467
  me(t1, {
40466
40468
  title: "Visibility",
40467
40469
  supporting_text: "Toggle off if you'd like to hide this item"
@@ -40479,7 +40481,7 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40479
40481
  ])
40480
40482
  ]),
40481
40483
  a0(a.$slots, "default", {}, () => [
40482
- o("div", ske, [
40484
+ o("div", ike, [
40483
40485
  o("a", {
40484
40486
  onClick: c,
40485
40487
  class: "w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"
@@ -40494,8 +40496,8 @@ const Mxe = { render: bxe }, Axe = { class: "overflow-hidden" }, _xe = { class:
40494
40496
  }
40495
40497
  };
40496
40498
  export {
40497
- Eke as ItemEdit,
40498
- Hke as LinkCardEdit,
40499
- Lke as PageBuilder,
40500
- Tke as PageRender
40499
+ Hke as ItemEdit,
40500
+ Oke as LinkCardEdit,
40501
+ Tke as PageBuilder,
40502
+ Eke as PageRender
40501
40503
  };