@dcodegroup-au/page-builder 0.7.6 → 0.7.8

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.
@@ -449,7 +449,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
449
449
  const _hoisted_7$q = { class: "flex justify-between" };
450
450
  const _hoisted_8$o = { class: "flex flex-col gap-1" };
451
451
  const _hoisted_9$n = { class: "font-semibold text-gray-900" };
452
- const _hoisted_10$i = { class: "text-sm text-gray-600" };
452
+ const _hoisted_10$j = { class: "text-sm text-gray-600" };
453
453
  const _hoisted_11$g = ["disabled"];
454
454
  const _hoisted_12$d = { class: "flex flex-col gap-3" };
455
455
  const _hoisted_13$b = ["onClick"];
@@ -515,7 +515,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
515
515
  vue.createElementVNode("div", _hoisted_7$q, [
516
516
  vue.createElementVNode("div", _hoisted_8$o, [
517
517
  vue.createElementVNode("div", _hoisted_9$n, vue.toDisplayString(vue.unref(parseName)(vue.unref(type))), 1),
518
- vue.createElementVNode("div", _hoisted_10$i, "This " + vue.toDisplayString(vue.unref(singularize)(vue.unref(type))) + " can contain up to " + vue.toDisplayString(dataRef.value.max_items) + " " + vue.toDisplayString(vue.unref(parseName)(vue.unref(type), false)), 1)
518
+ vue.createElementVNode("div", _hoisted_10$j, "This " + vue.toDisplayString(vue.unref(singularize)(vue.unref(type))) + " can contain up to " + vue.toDisplayString(dataRef.value.max_items) + " " + vue.toDisplayString(vue.unref(parseName)(vue.unref(type), false)), 1)
519
519
  ]),
520
520
  vue.createElementVNode("div", null, [
521
521
  vue.createElementVNode("button", {
@@ -11702,7 +11702,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11702
11702
  const _hoisted_7$p = { class: "file-upload-preview" };
11703
11703
  const _hoisted_8$n = ["src", "title"];
11704
11704
  const _hoisted_9$m = ["href"];
11705
- const _hoisted_10$h = { class: "file-upload-title" };
11705
+ const _hoisted_10$i = { class: "file-upload-title" };
11706
11706
  const _hoisted_11$f = { class: "file-upload-file-remove" };
11707
11707
  const _hoisted_12$c = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full" };
11708
11708
  const _sfc_main$O = {
@@ -11808,7 +11808,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11808
11808
  target: "_blank",
11809
11809
  class: "link"
11810
11810
  }, [
11811
- vue.createElementVNode("div", _hoisted_10$h, vue.toDisplayString(file.value.file_name), 1)
11811
+ vue.createElementVNode("div", _hoisted_10$i, vue.toDisplayString(file.value.file_name), 1)
11812
11812
  ], 8, _hoisted_9$m),
11813
11813
  vue.createElementVNode("a", _hoisted_11$f, [
11814
11814
  vue.createElementVNode("i", {
@@ -33927,7 +33927,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
33927
33927
  const _hoisted_7$n = { key: 0 };
33928
33928
  const _hoisted_8$l = { key: 1 };
33929
33929
  const _hoisted_9$l = { key: 2 };
33930
- const _hoisted_10$g = { class: "flex max-h-[196px] flex-wrap gap-1.5 overflow-y-auto" };
33930
+ const _hoisted_10$h = { class: "flex max-h-[196px] flex-wrap gap-1.5 overflow-y-auto" };
33931
33931
  const __default__ = {
33932
33932
  directives: {
33933
33933
  clickOutside: useClickOutside
@@ -34007,7 +34007,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
34007
34007
  vue.createElementVNode("p", _hoisted_6$o, [
34008
34008
  icons2.value.length > 0 && search.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$n, " Search result ")) : icons2.value.length < 1 && search.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$l, " No search result ")) : search.value.length < 1 && icons2.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$l, " Frequently used icons ")) : vue.createCommentVNode("", true)
34009
34009
  ]),
34010
- vue.createElementVNode("div", _hoisted_10$g, [
34010
+ vue.createElementVNode("div", _hoisted_10$h, [
34011
34011
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(icons2.value, (icon) => {
34012
34012
  return vue.openBlock(), vue.createBlock(_sfc_main$H, {
34013
34013
  class: "cursor-pointer rounded p-1 hover:bg-gray-100",
@@ -45225,7 +45225,7 @@ ${escapeText(this.code(index, length))}
45225
45225
  const _hoisted_7$m = { class: "flex flex-col gap-3" };
45226
45226
  const _hoisted_8$k = { class: "flex items-center justify-between" };
45227
45227
  const _hoisted_9$k = { class: "text-lg font-semibold text-gray-900" };
45228
- const _hoisted_10$f = { class: "relative flex items-end" };
45228
+ const _hoisted_10$g = { class: "relative flex items-end" };
45229
45229
  const _hoisted_11$e = { class: "flex flex-col gap-6" };
45230
45230
  const _hoisted_12$b = {
45231
45231
  key: 0,
@@ -45360,7 +45360,7 @@ ${escapeText(this.code(index, length))}
45360
45360
  }, [
45361
45361
  vue.createElementVNode("div", _hoisted_8$k, [
45362
45362
  vue.createElementVNode("div", _hoisted_9$k, " Item #" + vue.toDisplayString(index + 1), 1),
45363
- vue.createElementVNode("div", _hoisted_10$f, [
45363
+ vue.createElementVNode("div", _hoisted_10$g, [
45364
45364
  vue.createVNode(_sfc_main$S, {
45365
45365
  onRemoveItem: ($event) => handleDeleteItem(index)
45366
45366
  }, null, 8, ["onRemoveItem"])
@@ -45480,7 +45480,7 @@ ${escapeText(this.code(index, length))}
45480
45480
  const _hoisted_7$l = { class: "flex items-center justify-between" };
45481
45481
  const _hoisted_8$j = { class: "text-lg font-semibold text-gray-900" };
45482
45482
  const _hoisted_9$j = { class: "relative flex items-end" };
45483
- const _hoisted_10$e = { class: "flex flex-col gap-6" };
45483
+ const _hoisted_10$f = { class: "flex flex-col gap-6" };
45484
45484
  const _hoisted_11$d = { class: "flex flex-col gap-1.5" };
45485
45485
  const _hoisted_12$a = ["onUpdate:modelValue"];
45486
45486
  const _sfc_main$B = {
@@ -45563,7 +45563,7 @@ ${escapeText(this.code(index, length))}
45563
45563
  }, null, 8, ["onRemoveItem"])
45564
45564
  ])
45565
45565
  ]),
45566
- vue.createElementVNode("div", _hoisted_10$e, [
45566
+ vue.createElementVNode("div", _hoisted_10$f, [
45567
45567
  vue.createElementVNode("div", _hoisted_11$d, [
45568
45568
  vue.createVNode(vue.unref(VFileUpload), {
45569
45569
  name: "image",
@@ -45768,7 +45768,7 @@ ${escapeText(this.code(index, length))}
45768
45768
  const _hoisted_7$j = { class: "flex items-center justify-between" };
45769
45769
  const _hoisted_8$i = { class: "text-lg font-semibold text-gray-900" };
45770
45770
  const _hoisted_9$i = { class: "relative flex items-end" };
45771
- const _hoisted_10$d = { class: "flex flex-col gap-6" };
45771
+ const _hoisted_10$e = { class: "flex flex-col gap-6" };
45772
45772
  const _hoisted_11$c = { class: "flex flex-col gap-1.5" };
45773
45773
  const _sfc_main$y = {
45774
45774
  __name: "VideoGrid",
@@ -45844,7 +45844,7 @@ ${escapeText(this.code(index, length))}
45844
45844
  }, null, 8, ["onRemoveItem"])
45845
45845
  ])
45846
45846
  ]),
45847
- vue.createElementVNode("div", _hoisted_10$d, [
45847
+ vue.createElementVNode("div", _hoisted_10$e, [
45848
45848
  vue.createElementVNode("div", _hoisted_11$c, [
45849
45849
  vue.createVNode(vue.unref(VFileUpload), {
45850
45850
  name: "image",
@@ -46165,7 +46165,7 @@ ${escapeText(this.code(index, length))}
46165
46165
  key: 0,
46166
46166
  class: "flex flex-col gap-2"
46167
46167
  };
46168
- const _hoisted_10$c = ["onClick"];
46168
+ const _hoisted_10$d = ["onClick"];
46169
46169
  const _hoisted_11$b = { class: "flex flex-col" };
46170
46170
  const _hoisted_12$9 = { class: "text-sm font-medium text-gray-900" };
46171
46171
  const _hoisted_13$9 = { class: "flex items-center justify-between gap-3 px-[10px]" };
@@ -46308,7 +46308,7 @@ ${escapeText(this.code(index, length))}
46308
46308
  vue.createElementVNode("div", _hoisted_13$9, [
46309
46309
  vue.createVNode(vue.unref(ChevronRight), { class: "h-5 w-5" })
46310
46310
  ])
46311
- ], 10, _hoisted_10$c);
46311
+ ], 10, _hoisted_10$d);
46312
46312
  }), 256))
46313
46313
  ])) : vue.createCommentVNode("", true)
46314
46314
  ]);
@@ -46576,17 +46576,17 @@ ${escapeText(this.code(index, length))}
46576
46576
  });
46577
46577
  return { widthMultiplier, heightMultiplier };
46578
46578
  }
46579
- function getSnapAlignOffsetByItemsToShow(align, itemsToShow2) {
46579
+ function getSnapAlignOffsetByItemsToShow(align, itemsToShow) {
46580
46580
  switch (align) {
46581
46581
  case "start":
46582
46582
  return 0;
46583
46583
  case "center":
46584
46584
  case "center-odd":
46585
- return (itemsToShow2 - 1) / 2;
46585
+ return (itemsToShow - 1) / 2;
46586
46586
  case "center-even":
46587
- return (itemsToShow2 - 2) / 2;
46587
+ return (itemsToShow - 2) / 2;
46588
46588
  case "end":
46589
- return itemsToShow2 - 1;
46589
+ return itemsToShow - 1;
46590
46590
  default:
46591
46591
  return 0;
46592
46592
  }
@@ -46606,9 +46606,9 @@ ${escapeText(this.code(index, length))}
46606
46606
  return 0;
46607
46607
  }
46608
46608
  }
46609
- function getSnapAlignOffset({ slideSize, viewportSize, align, itemsToShow: itemsToShow2 }) {
46610
- if (itemsToShow2 !== void 0) {
46611
- return getSnapAlignOffsetByItemsToShow(align, itemsToShow2);
46609
+ function getSnapAlignOffset({ slideSize, viewportSize, align, itemsToShow }) {
46610
+ if (itemsToShow !== void 0) {
46611
+ return getSnapAlignOffsetByItemsToShow(align, itemsToShow);
46612
46612
  }
46613
46613
  if (slideSize !== void 0 && viewportSize !== void 0) {
46614
46614
  return getSnapAlignOffsetBySlideAndViewport(align, slideSize, viewportSize);
@@ -47034,9 +47034,9 @@ ${escapeText(this.code(index, length))}
47034
47034
  if (isAuto.value) {
47035
47035
  slideSize.value = calculateAverage(slidesRect.value.map((slide) => slide[dimension.value]));
47036
47036
  } else {
47037
- const itemsToShow2 = Number(config2.itemsToShow);
47038
- const totalGap = (itemsToShow2 - 1) * config2.gap;
47039
- slideSize.value = (viewportRect.value[dimension.value] - totalGap) / itemsToShow2;
47037
+ const itemsToShow = Number(config2.itemsToShow);
47038
+ const totalGap = (itemsToShow - 1) * config2.gap;
47039
+ slideSize.value = (viewportRect.value[dimension.value] - totalGap) / itemsToShow;
47040
47040
  }
47041
47041
  }
47042
47042
  function updateSlidesData() {
@@ -47318,8 +47318,8 @@ ${escapeText(this.code(index, length))}
47318
47318
  if (isAuto.value) {
47319
47319
  return { before: slides.length, after: slides.length };
47320
47320
  }
47321
- const itemsToShow2 = Number(config2.itemsToShow);
47322
- const slidesToClone = Math.ceil(itemsToShow2 + (config2.itemsToScroll - 1));
47321
+ const itemsToShow = Number(config2.itemsToShow);
47322
+ const slidesToClone = Math.ceil(itemsToShow + (config2.itemsToScroll - 1));
47323
47323
  const before = slidesToClone - activeSlideIndex.value;
47324
47324
  const after = slidesToClone - (slidesCount.value - (activeSlideIndex.value + 1));
47325
47325
  return {
@@ -47681,14 +47681,14 @@ ${escapeText(this.code(index, length))}
47681
47681
  },
47682
47682
  setup(props) {
47683
47683
  let carousel = vue.inject(injectCarousel, null);
47684
- const itemsToShow2 = vue.computed(() => carousel.config.itemsToShow);
47684
+ const itemsToShow = vue.computed(() => carousel.config.itemsToShow);
47685
47685
  const offset = vue.computed(() => getSnapAlignOffset({
47686
47686
  align: carousel.config.snapAlign,
47687
- itemsToShow: itemsToShow2.value
47687
+ itemsToShow: itemsToShow.value
47688
47688
  }));
47689
- const isPaginated = vue.computed(() => props.paginateByItemsToShow && itemsToShow2.value > 1);
47690
- const currentPage = vue.computed(() => Math.ceil((carousel.activeSlide - offset.value) / itemsToShow2.value));
47691
- const pageCount = vue.computed(() => Math.ceil(carousel.slidesCount / itemsToShow2.value));
47689
+ const isPaginated = vue.computed(() => props.paginateByItemsToShow && itemsToShow.value > 1);
47690
+ const currentPage = vue.computed(() => Math.ceil((carousel.activeSlide - offset.value) / itemsToShow.value));
47691
+ const pageCount = vue.computed(() => Math.ceil(carousel.slidesCount / itemsToShow.value));
47692
47692
  const isActive = (slide) => mapNumberToRange(isPaginated.value ? {
47693
47693
  val: currentPage.value,
47694
47694
  max: pageCount.value - 1,
@@ -47777,8 +47777,8 @@ ${escapeText(this.code(index, length))}
47777
47777
  if (carousel.config.itemsToShow === "auto") {
47778
47778
  return;
47779
47779
  }
47780
- const itemsToShow2 = carousel.config.itemsToShow;
47781
- const dimension = carousel.config.gap > 0 && itemsToShow2 > 1 ? `calc(${100 / itemsToShow2}% - ${carousel.config.gap * (itemsToShow2 - 1) / itemsToShow2}px)` : `${100 / itemsToShow2}%`;
47780
+ const itemsToShow = carousel.config.itemsToShow;
47781
+ const dimension = carousel.config.gap > 0 && itemsToShow > 1 ? `calc(${100 / itemsToShow}% - ${carousel.config.gap * (itemsToShow - 1) / itemsToShow}px)` : `${100 / itemsToShow}%`;
47782
47782
  return carousel.isVertical ? { height: dimension } : { width: dimension };
47783
47783
  });
47784
47784
  carousel.slideRegistry.registerSlide(instance, props.index);
@@ -47838,7 +47838,7 @@ ${escapeText(this.code(index, length))}
47838
47838
  const _hoisted_7$h = { class: "max-md:flex-1" };
47839
47839
  const _hoisted_8$g = ["innerHTML"];
47840
47840
  const _hoisted_9$g = { class: "flex gap-3 md:mt-8 max-sm:flex-col" };
47841
- const _hoisted_10$b = ["href", "target"];
47841
+ const _hoisted_10$c = ["href", "target"];
47842
47842
  const _hoisted_11$a = ["href", "target"];
47843
47843
  const _hoisted_12$8 = ["src"];
47844
47844
  const _hoisted_13$8 = {
@@ -47898,7 +47898,7 @@ ${escapeText(this.code(index, length))}
47898
47898
  target: slide.secondary_button.open_in_new_tab ? "_blank" : ""
47899
47899
  }, [
47900
47900
  vue.createElementVNode("span", null, vue.toDisplayString(slide.secondary_button.label), 1)
47901
- ], 8, _hoisted_10$b)) : vue.createCommentVNode("", true),
47901
+ ], 8, _hoisted_10$c)) : vue.createCommentVNode("", true),
47902
47902
  slide.primary_button.show ? (vue.openBlock(), vue.createElementBlock("a", {
47903
47903
  key: 1,
47904
47904
  class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",
@@ -48017,15 +48017,15 @@ ${escapeText(this.code(index, length))}
48017
48017
  return (_ctx, _cache) => {
48018
48018
  var _a, _b, _c, _d, _e, _f, _g;
48019
48019
  return vue.openBlock(), vue.createElementBlock("div", {
48020
- class: vue.normalizeClass(["flex flex-col sm:px-0 px-4", { "items-center": (_a = component.value) == null ? void 0 : _a.center }])
48020
+ class: vue.normalizeClass(["flex flex-col gap-4", { "items-center": (_a = component.value) == null ? void 0 : _a.center }])
48021
48021
  }, [
48022
48022
  ((_b = component.value) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("p", {
48023
48023
  key: 0,
48024
- class: vue.normalizeClass(["pb-4 text-4xl font-semibold text-white", { "!text-gray-900": (_c = component.value) == null ? void 0 : _c.dark }])
48024
+ class: vue.normalizeClass(["text-2xl sm:text-3xl lg:text-4xl font-semibold text-white", { "!text-gray-900": (_c = component.value) == null ? void 0 : _c.dark }])
48025
48025
  }, vue.toDisplayString((_d = component.value) == null ? void 0 : _d.title), 3)) : vue.createCommentVNode("", true),
48026
48026
  ((_e = component.value) == null ? void 0 : _e.supporting_text) ? (vue.openBlock(), vue.createElementBlock("p", {
48027
48027
  key: 1,
48028
- class: vue.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]", { "!text-gray-600": (_f = component.value) == null ? void 0 : _f.dark }])
48028
+ class: vue.normalizeClass(["text-navy-25 text-sm sm:text-base lg:text-xl", { "!text-gray-600": (_f = component.value) == null ? void 0 : _f.dark }])
48029
48029
  }, vue.toDisplayString((_g = component.value) == null ? void 0 : _g.supporting_text), 3)) : vue.createCommentVNode("", true)
48030
48030
  ], 2);
48031
48031
  };
@@ -48121,20 +48121,21 @@ ${escapeText(this.code(index, length))}
48121
48121
  };
48122
48122
  }
48123
48123
  };
48124
- const _hoisted_1$G = { class: "flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6" };
48125
- const _hoisted_2$k = { class: "flex-1 w-full md:w-1/2 flex flex-col" };
48124
+ const _hoisted_1$G = { class: "grid sm:grid-cols-[auto_240px] lg:grid-cols-2 justify-center gap-4 items-stretch mt-6 text-left" };
48125
+ const _hoisted_2$k = { class: "grid max-sm:grid-cols-2 gap-4" };
48126
48126
  const _hoisted_3$i = ["onClick"];
48127
- const _hoisted_4$i = { class: "py-4 pl-4 md:pl-6" };
48128
- const _hoisted_5$h = ["innerHTML"];
48129
- const _hoisted_6$h = { class: "flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center" };
48130
- const _hoisted_7$g = ["src"];
48131
- const _hoisted_8$f = {
48127
+ const _hoisted_4$i = { class: "sm:py-4 sm:pl-4 md:pl-6" };
48128
+ const _hoisted_5$h = ["target", "href"];
48129
+ const _hoisted_6$h = ["innerHTML"];
48130
+ const _hoisted_7$g = { class: "max-sm:hidden bg-transparent flex flex-col items-center" };
48131
+ const _hoisted_8$f = ["src"];
48132
+ const _hoisted_9$f = {
48132
48133
  key: 1,
48133
- class: "rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",
48134
+ class: "rounded-[20px] md:rounded-[40px] object-contain lg:max-h-[387px] w-full",
48134
48135
  src: _imports_0,
48135
48136
  alt: "No Image Available"
48136
48137
  };
48137
- const _hoisted_9$f = ["target", "href"];
48138
+ const _hoisted_10$b = ["target", "href"];
48138
48139
  const _sfc_main$n = {
48139
48140
  __name: "VerticalTabPresenter",
48140
48141
  props: {
@@ -48160,27 +48161,37 @@ ${escapeText(this.code(index, length))}
48160
48161
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
48161
48162
  vue.createElementVNode("div", _hoisted_2$k, [
48162
48163
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(publicTabs.value, (item) => {
48164
+ var _a, _b, _c, _d, _e, _f;
48163
48165
  return vue.openBlock(), vue.createElementBlock("div", {
48164
48166
  key: item.title
48165
48167
  }, [
48166
48168
  vue.createElementVNode("div", {
48167
- class: vue.normalizeClass(["flex-col flex gap-1.5 cursor-pointer mb-4 group", { "border-l-4 border-brand-600": selectedItem.value === item, "border-l-4 border-gray-100": selectedItem.value !== item }]),
48168
- onClick: vue.withModifiers(($event) => selectItem(item), ["prevent"])
48169
+ class: vue.normalizeClass(["flex-col flex gap-1.5 cursor-pointer group", { "sm:border-l-4 border-brand-600": selectedItem.value === item, "sm:border-l-4 border-navy-25": selectedItem.value !== item }]),
48170
+ onClick: ($event) => selectItem(item)
48169
48171
  }, [
48170
48172
  vue.createElementVNode("div", _hoisted_4$i, [
48173
+ vue.createElementVNode("div", {
48174
+ class: vue.normalizeClass([{ "text-gray-900": selectedItem.value === item, "text-gray-600": selectedItem.value !== item }, "max-sm:text-gray-900 max-sm:bg-white max-sm:p-3 max-sm:rounded-lg max-sm:min-h-[84px] text-sm relative sm:text-lg md:text-xl font-semibold sm:mb-2 group-hover:text-gray-900 grid max-sm:grid-cols-[auto_20px] gap-2"])
48175
+ }, [
48176
+ vue.createTextVNode(vue.toDisplayString(item.title) + " ", 1),
48177
+ vue.createVNode(vue.unref(ArrowUpRight), { class: "sm:hidden" }),
48178
+ ((_b = (_a = selectedItem.value) == null ? void 0 : _a.primary_button) == null ? void 0 : _b.show) ? (vue.openBlock(), vue.createElementBlock("a", {
48179
+ key: 0,
48180
+ target: ((_d = (_c = selectedItem.value) == null ? void 0 : _c.primary_button) == null ? void 0 : _d.open_in_new_tab) ? "_blank" : "",
48181
+ href: ((_f = (_e = selectedItem.value) == null ? void 0 : _e.primary_button) == null ? void 0 : _f.url.startsWith("http")) ? selectedItem.value.primary_button.url : `//${selectedItem.value.primary_button.url}`,
48182
+ class: "absolute inset-0 sm:hidden z-10"
48183
+ }, null, 8, _hoisted_5$h)) : vue.createCommentVNode("", true)
48184
+ ], 2),
48171
48185
  vue.createElementVNode("p", {
48172
- class: vue.normalizeClass([{ "text-gray-900": selectedItem.value === item, "text-gray-600": selectedItem.value !== item }, "text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])
48173
- }, vue.toDisplayString(item.title), 3),
48174
- vue.createElementVNode("p", {
48175
- class: vue.normalizeClass([{ "text-gray-700": selectedItem.value === item, "text-gray-400": selectedItem.value !== item }, "text-sm md:text-md font-normal group-hover:text-gray-700"]),
48186
+ class: vue.normalizeClass([{ "text-gray-700": selectedItem.value === item, "text-gray-400": selectedItem.value !== item }, "max-sm:hidden text-sm md:text-md font-normal group-hover:text-gray-700"]),
48176
48187
  innerHTML: item.description
48177
- }, null, 10, _hoisted_5$h)
48188
+ }, null, 10, _hoisted_6$h)
48178
48189
  ])
48179
48190
  ], 10, _hoisted_3$i)
48180
48191
  ]);
48181
48192
  }), 128))
48182
48193
  ]),
48183
- vue.createElementVNode("div", _hoisted_6$h, [
48194
+ vue.createElementVNode("div", _hoisted_7$g, [
48184
48195
  vue.createVNode(vue.Transition, {
48185
48196
  name: "fade",
48186
48197
  mode: "out-in"
@@ -48196,8 +48207,8 @@ ${escapeText(this.code(index, length))}
48196
48207
  key: 0,
48197
48208
  src: selectedItem.value.featured_image,
48198
48209
  alt: "Selected Item Image",
48199
- class: "rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full"
48200
- }, null, 8, _hoisted_7$g)) : (vue.openBlock(), vue.createElementBlock("img", _hoisted_8$f)),
48210
+ class: "rounded-[20px] md:rounded-[40px] object-contain lg:max-h-[387px] w-full"
48211
+ }, null, 8, _hoisted_8$f)) : (vue.openBlock(), vue.createElementBlock("img", _hoisted_9$f)),
48201
48212
  ((_d = (_c = selectedItem.value) == null ? void 0 : _c.primary_button) == null ? void 0 : _d.show) ? (vue.openBlock(), vue.createElementBlock("a", {
48202
48213
  key: 2,
48203
48214
  class: "text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",
@@ -48206,7 +48217,7 @@ ${escapeText(this.code(index, length))}
48206
48217
  }, [
48207
48218
  vue.createTextVNode(vue.toDisplayString(((_j = (_i = selectedItem.value) == null ? void 0 : _i.primary_button) == null ? void 0 : _j.label) ?? "N/A") + " ", 1),
48208
48219
  vue.createVNode(vue.unref(ArrowUpRight), { class: "w-4 h-4 md:w-5 md:h-5" })
48209
- ], 8, _hoisted_9$f)) : vue.createCommentVNode("", true)
48220
+ ], 8, _hoisted_10$b)) : vue.createCommentVNode("", true)
48210
48221
  ]))
48211
48222
  ];
48212
48223
  }),
@@ -48217,9 +48228,9 @@ ${escapeText(this.code(index, length))}
48217
48228
  };
48218
48229
  }
48219
48230
  };
48220
- const VVerticalTabPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ef885607"]]);
48231
+ const VVerticalTabPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-85226fd9"]]);
48221
48232
  const _hoisted_1$F = { class: "pb-container" };
48222
- const _hoisted_2$j = { class: "max-md:mx-[30px] 1xl:mx-0 bg-navy-25 rounded-3xl md:rounded-[48px] p-16" };
48233
+ const _hoisted_2$j = { class: "bg-navy-25 rounded-3xl md:rounded-[48px] py-6 px-4 lg:p-16 text-center" };
48223
48234
  const _sfc_main$m = {
48224
48235
  __name: "VTabs",
48225
48236
  props: {
@@ -48446,13 +48457,12 @@ ${escapeText(this.code(index, length))}
48446
48457
  const _hoisted_11$9 = ["innerHTML"];
48447
48458
  const _hoisted_12$7 = { class: "border-t border-gray-200 mt-4 pt-[17px] flex justify-between items-center" };
48448
48459
  const _hoisted_13$7 = ["href"];
48449
- const _hoisted_14$6 = { class: "absolute top-[-65px] right-4 flex gap-4" };
48460
+ const _hoisted_14$6 = { class: "absolute max-sm:bottom-0 sm:top-[-65px] right-0 md:-right-28 lg:right-4 flex gap-4" };
48450
48461
  const _hoisted_15$4 = {
48451
48462
  key: 0,
48452
- class: "flex justify-center mb-[40px]"
48463
+ class: "flex sm:justify-center mb-6 lg:mb-10"
48453
48464
  };
48454
48465
  const _hoisted_16$2 = ["href", "target"];
48455
- const itemsToShow = 4;
48456
48466
  const _sfc_main$j = {
48457
48467
  __name: "CarouselPresenter",
48458
48468
  props: {
@@ -48470,20 +48480,30 @@ ${escapeText(this.code(index, length))}
48470
48480
  const VCarouselPrimaryButton = vue.inject("VCarouselPrimaryButton", _sfc_main$k);
48471
48481
  const props = __props;
48472
48482
  const currentSlide = vue.ref(0);
48483
+ const itemsToShow = vue.ref(4);
48473
48484
  const slides = [...((_a = props.component.content) == null ? void 0 : _a.items) || []];
48474
48485
  const windowWidth = vue.ref(480);
48486
+ const slideWidth = vue.ref(480);
48475
48487
  vue.onMounted(() => {
48476
48488
  windowWidth.value = window.innerWidth;
48489
+ adjustSlides();
48477
48490
  window.addEventListener("resize", updateWidth);
48478
48491
  });
48479
48492
  vue.onUnmounted(() => {
48480
48493
  window.removeEventListener("resize", updateWidth);
48481
48494
  });
48495
+ const activeRightButton = vue.computed(() => {
48496
+ return currentSlide.value <= slides.length - itemsToShow.value;
48497
+ });
48498
+ const activeLeftButton = vue.computed(() => {
48499
+ return currentSlide.value !== 0;
48500
+ });
48482
48501
  const updateWidth = () => {
48483
48502
  windowWidth.value = window.innerWidth;
48503
+ adjustSlides();
48484
48504
  };
48485
48505
  const nextSlide = () => {
48486
- if (currentSlide.value <= slides.length - itemsToShow) {
48506
+ if (currentSlide.value <= slides.length - itemsToShow.value) {
48487
48507
  currentSlide.value++;
48488
48508
  }
48489
48509
  };
@@ -48492,12 +48512,22 @@ ${escapeText(this.code(index, length))}
48492
48512
  currentSlide.value--;
48493
48513
  }
48494
48514
  };
48515
+ const adjustSlides = () => {
48516
+ if (windowWidth.value < 512) {
48517
+ itemsToShow.value = 2;
48518
+ slideWidth.value = windowWidth.value - 32;
48519
+ } else if (windowWidth.value < 1120) {
48520
+ itemsToShow.value = 2;
48521
+ } else if (windowWidth.value < 1630) {
48522
+ itemsToShow.value = 3;
48523
+ }
48524
+ };
48495
48525
  return (_ctx, _cache) => {
48496
48526
  var _a2;
48497
48527
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
48498
48528
  vue.createElementVNode("div", {
48499
48529
  class: "slider-wrapper flex transition-transform duration-500 gap-0 mb-6",
48500
- style: vue.normalizeStyle({ transform: `translateX(-${currentSlide.value * ((windowWidth.value >= 480 ? 480 : windowWidth.value) + 24)}px)` })
48530
+ style: vue.normalizeStyle({ transform: `translateX(-${currentSlide.value * ((windowWidth.value >= slideWidth.value ? slideWidth.value : windowWidth.value) + 24)}px)` })
48501
48531
  }, [
48502
48532
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(slides, (slide, index) => {
48503
48533
  return vue.createElementVNode("div", {
@@ -48567,16 +48597,16 @@ ${escapeText(this.code(index, length))}
48567
48597
  vue.createElementVNode("div", _hoisted_14$6, [
48568
48598
  vue.createElementVNode("button", {
48569
48599
  onClick: prevSlide,
48570
- class: "p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"
48600
+ class: vue.normalizeClass(["p-2.5 bg-white text-navy-800 rounded-full opacity-100", { "opacity-50 pointer-events-none": !activeLeftButton.value }])
48571
48601
  }, [
48572
48602
  vue.createVNode(vue.unref(ChevronLeft), { class: "w-6 h-6" })
48573
- ]),
48603
+ ], 2),
48574
48604
  vue.createElementVNode("button", {
48575
48605
  onClick: nextSlide,
48576
- class: "p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"
48606
+ class: vue.normalizeClass(["p-2.5 bg-white text-navy-800 rounded-full opacity-100", { "opacity-50 pointer-events-auto": !activeRightButton.value }])
48577
48607
  }, [
48578
48608
  vue.createVNode(vue.unref(ChevronRight), { class: "w-6 h-6" })
48579
- ])
48609
+ ], 2)
48580
48610
  ]),
48581
48611
  ((_a2 = __props.component) == null ? void 0 : _a2.button) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$4, [
48582
48612
  vue.createElementVNode("a", {
@@ -48593,7 +48623,7 @@ ${escapeText(this.code(index, length))}
48593
48623
  }
48594
48624
  };
48595
48625
  const _hoisted_1$x = { class: "pb-container" };
48596
- const _hoisted_2$g = { class: "max-md:mx-[30px] 1xl:mx-0 rounded-3xl md:rounded-[48px] pt-[40px]" };
48626
+ const _hoisted_2$g = { class: "rounded-3xl lg:rounded-[48px] pt-6 lg:pt-10 sm:pr-28 md:pr-0" };
48597
48627
  const _sfc_main$i = {
48598
48628
  __name: "CollectionCarousel",
48599
48629
  props: {
@@ -48614,7 +48644,7 @@ ${escapeText(this.code(index, length))}
48614
48644
  return (_ctx, _cache) => {
48615
48645
  var _a, _b, _c, _d;
48616
48646
  return vue.openBlock(), vue.createElementBlock("div", {
48617
- class: vue.normalizeClass(["overflow-hidden", { "rounded-br-[48px] rounded-tl-[48px] bg-aqua-100": (_a = section.value) == null ? void 0 : _a.has_background }])
48647
+ class: vue.normalizeClass(["overflow-hidden", { "rounded-br-3xl lg:rounded-br-[48px] rounded-tl-3xl lg:rounded-tl-[48px] bg-aqua-100": (_a = section.value) == null ? void 0 : _a.has_background }])
48618
48648
  }, [
48619
48649
  vue.createElementVNode("div", _hoisted_1$x, [
48620
48650
  vue.createElementVNode("div", _hoisted_2$g, [
@@ -48931,7 +48961,7 @@ ${escapeText(this.code(index, length))}
48931
48961
  const _hoisted_1$r = { class: "overflow-hidden mt-4" };
48932
48962
  const _hoisted_2$d = {
48933
48963
  key: 0,
48934
- class: "text-[36px] text-gray-900 font-semibold"
48964
+ class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900"
48935
48965
  };
48936
48966
  const _hoisted_3$d = { class: "all-unset ql-editor" };
48937
48967
  const _hoisted_4$d = ["innerHTML"];
@@ -49060,7 +49090,7 @@ ${escapeText(this.code(index, length))}
49060
49090
  key: 1,
49061
49091
  class: "my-[44px]"
49062
49092
  };
49063
- const _hoisted_9$b = { class: "text-[36px] text-gray-900 font-semibold" };
49093
+ const _hoisted_9$b = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49064
49094
  const _hoisted_10$8 = ["innerHTML"];
49065
49095
  const _hoisted_11$7 = {
49066
49096
  key: 0,
@@ -49221,7 +49251,7 @@ ${escapeText(this.code(index, length))}
49221
49251
  key: 0,
49222
49252
  class: "rounded-xl px-[40px] text-center mb-1 max-w-[1280px] mx-auto"
49223
49253
  };
49224
- const _hoisted_4$b = { class: "text-[36px] text-gray-900 font-semibold" };
49254
+ const _hoisted_4$b = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49225
49255
  const _hoisted_5$b = ["innerHTML"];
49226
49256
  const _hoisted_6$b = { key: 1 };
49227
49257
  const _hoisted_7$b = { class: "mt-4" };
@@ -49309,7 +49339,7 @@ ${escapeText(this.code(index, length))}
49309
49339
  key: 0,
49310
49340
  class: "rounded-xl px-[40px] text-center mb-6 max-w-[1280px] mx-auto"
49311
49341
  };
49312
- const _hoisted_3$a = { class: "text-[36px] text-gray-900 font-semibold" };
49342
+ const _hoisted_3$a = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49313
49343
  const _hoisted_4$a = ["innerHTML"];
49314
49344
  const _hoisted_5$a = ["src"];
49315
49345
  const _hoisted_6$a = {
@@ -49414,7 +49444,7 @@ ${escapeText(this.code(index, length))}
49414
49444
  };
49415
49445
  }
49416
49446
  };
49417
- const LinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-a7422ac9"]]);
49447
+ const LinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-af7a1782"]]);
49418
49448
  const _hoisted_1$n = {
49419
49449
  xmlns: "http://www.w3.org/2000/svg",
49420
49450
  fill: "none",
@@ -49438,7 +49468,7 @@ ${escapeText(this.code(index, length))}
49438
49468
  key: 0,
49439
49469
  class: "rounded-xl px-[40px] text-center mb-6 max-w-[1280px] mx-auto"
49440
49470
  };
49441
- const _hoisted_4$9 = { class: "text-[36px] text-gray-900 font-semibold" };
49471
+ const _hoisted_4$9 = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49442
49472
  const _hoisted_5$9 = ["innerHTML"];
49443
49473
  const _hoisted_6$9 = ["src"];
49444
49474
  const _hoisted_7$9 = {
@@ -49539,7 +49569,7 @@ ${escapeText(this.code(index, length))}
49539
49569
  key: 0,
49540
49570
  class: "w-[48px] h-[48px] bg-brand-100 border-[8px] border-brand-50 rounded-full flex items-center justify-center"
49541
49571
  };
49542
- const _hoisted_4$8 = { class: "text-[36px] text-gray-900 font-semibold" };
49572
+ const _hoisted_4$8 = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49543
49573
  const _hoisted_5$8 = ["innerHTML"];
49544
49574
  const _hoisted_6$8 = ["textContent"];
49545
49575
  const _hoisted_7$8 = { class: "flex" };
@@ -49888,7 +49918,7 @@ ${escapeText(this.code(index, length))}
49888
49918
  key: 0,
49889
49919
  class: "px-[40px] text-center mb-6 mx-auto"
49890
49920
  };
49891
- const _hoisted_3$5 = { class: "text-[36px] text-gray-900 font-semibold" };
49921
+ const _hoisted_3$5 = { class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900" };
49892
49922
  const _hoisted_4$5 = ["innerHTML"];
49893
49923
  const _hoisted_5$5 = {
49894
49924
  key: 1,
@@ -50021,7 +50051,7 @@ ${escapeText(this.code(index, length))}
50021
50051
  vue.createElementVNode("div", _hoisted_2$4, [
50022
50052
  vue.createElementVNode("div", null, [
50023
50053
  vue.createElementVNode("p", {
50024
- class: "text-[36px] font-semibold text-gray-900 mb-[48px]",
50054
+ class: "text-2xl sm:text-3xl lg:text-4xl font-semibold text-gray-900 mb-[48px]",
50025
50055
  textContent: vue.toDisplayString(pricingComponent.value.title)
50026
50056
  }, null, 8, _hoisted_3$4),
50027
50057
  vue.createElementVNode("div", _hoisted_4$4, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -110,5 +110,5 @@
110
110
  }
111
111
 
112
112
  .pb-container {
113
- @apply max-w-[1640px] px-4 md:px-[120px] mx-auto w-full;
113
+ @apply max-w-[1640px] px-4 md:px-16 lg:px-[120px] mx-auto w-full;
114
114
  }