@dcodegroup-au/page-builder 0.8.0 → 0.8.2

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.
@@ -894,6 +894,9 @@ select {
894
894
  .mt-6 {
895
895
  margin-top: 1.5rem;
896
896
  }
897
+ .mt-7 {
898
+ margin-top: 1.75rem;
899
+ }
897
900
  .mt-8 {
898
901
  margin-top: 2rem;
899
902
  }
@@ -915,12 +918,6 @@ select {
915
918
  -webkit-box-orient: vertical;
916
919
  -webkit-line-clamp: 4;
917
920
  }
918
- .line-clamp-6 {
919
- overflow: hidden;
920
- display: -webkit-box;
921
- -webkit-box-orient: vertical;
922
- -webkit-line-clamp: 6;
923
- }
924
921
  .\!block {
925
922
  display: block !important;
926
923
  }
@@ -1020,12 +1017,12 @@ select {
1020
1017
  .h-\[48px\] {
1021
1018
  height: 48px;
1022
1019
  }
1020
+ .h-\[494px\] {
1021
+ height: 494px;
1022
+ }
1023
1023
  .h-\[56px\] {
1024
1024
  height: 56px;
1025
1025
  }
1026
- .h-\[614px\] {
1027
- height: 614px;
1028
- }
1029
1026
  .h-\[674px\] {
1030
1027
  height: 674px;
1031
1028
  }
@@ -1388,6 +1385,9 @@ select {
1388
1385
  .rounded-\[20px\] {
1389
1386
  border-radius: 20px;
1390
1387
  }
1388
+ .rounded-\[24px\] {
1389
+ border-radius: 24px;
1390
+ }
1391
1391
  .rounded-\[6px\] {
1392
1392
  border-radius: 6px;
1393
1393
  }
@@ -2956,6 +2956,10 @@ select {
2956
2956
 
2957
2957
  @media not all and (min-width: 1024px) {
2958
2958
 
2959
+ .max-lg\:absolute {
2960
+ position: absolute;
2961
+ }
2962
+
2959
2963
  .max-lg\:hidden {
2960
2964
  display: none;
2961
2965
  }
@@ -2975,6 +2979,10 @@ select {
2975
2979
  .max-lg\:pb-6 {
2976
2980
  padding-bottom: 1.5rem;
2977
2981
  }
2982
+
2983
+ .max-lg\:pt-\[55\%\] {
2984
+ padding-top: 55%;
2985
+ }
2978
2986
  }
2979
2987
 
2980
2988
  @media not all and (min-width: 768px) {
@@ -3023,10 +3031,6 @@ select {
3023
3031
  grid-template-columns: auto 20px;
3024
3032
  }
3025
3033
 
3026
- .max-sm\:flex-col {
3027
- flex-direction: column;
3028
- }
3029
-
3030
3034
  .max-sm\:rounded-lg {
3031
3035
  border-radius: 0.5rem;
3032
3036
  }
@@ -3112,6 +3116,11 @@ select {
3112
3116
  padding-right: 1rem;
3113
3117
  }
3114
3118
 
3119
+ .sm\:px-6 {
3120
+ padding-left: 1.5rem;
3121
+ padding-right: 1.5rem;
3122
+ }
3123
+
3115
3124
  .sm\:py-4 {
3116
3125
  padding-top: 1rem;
3117
3126
  padding-bottom: 1rem;
@@ -3871,12 +3880,12 @@ select {
3871
3880
  }
3872
3881
 
3873
3882
 
3874
- .carousel[data-v-29ca6047] {
3883
+ .carousel[data-v-37e27419] {
3875
3884
  margin: 1rem 0;
3876
3885
  flex-direction: column;
3877
3886
  }
3878
3887
  @media not all and (min-width: 1024px) {
3879
- [data-v-29ca6047] .carousel__slide {
3888
+ [data-v-37e27419] .carousel__slide {
3880
3889
  flex-direction: column;
3881
3890
  }
3882
3891
  }
@@ -3898,7 +3907,7 @@ select {
3898
3907
  -webkit-line-clamp: 4; /* Limit the text to 3 lines */
3899
3908
  }
3900
3909
 
3901
- .card[data-v-b6625ed3] {
3910
+ .card[data-v-77dcb437] {
3902
3911
  display: flex;
3903
3912
  flex-direction: column;
3904
3913
  align-items: center;
@@ -448,11 +448,11 @@ const _hoisted_8$o = { class: "flex flex-col gap-1" };
448
448
  const _hoisted_9$n = { class: "font-semibold text-gray-900" };
449
449
  const _hoisted_10$j = { class: "text-sm text-gray-600" };
450
450
  const _hoisted_11$g = ["disabled"];
451
- const _hoisted_12$d = { class: "flex flex-col gap-3" };
451
+ const _hoisted_12$e = { class: "flex flex-col gap-3" };
452
452
  const _hoisted_13$b = ["onClick"];
453
453
  const _hoisted_14$9 = ["onClick"];
454
- const _hoisted_15$7 = { class: "text-xs text-gray-600" };
455
- const _hoisted_16$4 = { class: "text-sm font-medium text-gray-900" };
454
+ const _hoisted_15$8 = { class: "text-xs text-gray-600" };
455
+ const _hoisted_16$5 = { class: "text-sm font-medium text-gray-900" };
456
456
  const _sfc_main$Q = {
457
457
  __name: "Items",
458
458
  props: {
@@ -526,7 +526,7 @@ const _sfc_main$Q = {
526
526
  ], 10, _hoisted_11$g)
527
527
  ])
528
528
  ]),
529
- createElementVNode("div", _hoisted_12$d, [
529
+ createElementVNode("div", _hoisted_12$e, [
530
530
  (openBlock(true), createElementBlock(Fragment, null, renderList(dataRef.value.data, (item, index) => {
531
531
  return openBlock(), createElementBlock("div", {
532
532
  class: normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg", { "bg-gray-200 hover:bg-gray-200": openItemStates.value[index] }])
@@ -541,8 +541,8 @@ const _sfc_main$Q = {
541
541
  class: "flex flex-1 flex-col cursor-pointer",
542
542
  onClick: ($event) => edit(item, index)
543
543
  }, [
544
- createElementVNode("div", _hoisted_15$7, toDisplayString(unref(singularize)(unref(parseName)(unref(type)))) + " #" + toDisplayString(index + 1), 1),
545
- createElementVNode("div", _hoisted_16$4, toDisplayString(item.title), 1)
544
+ createElementVNode("div", _hoisted_15$8, toDisplayString(unref(singularize)(unref(parseName)(unref(type)))) + " #" + toDisplayString(index + 1), 1),
545
+ createElementVNode("div", _hoisted_16$5, toDisplayString(item.title), 1)
546
546
  ], 8, _hoisted_14$9),
547
547
  createVNode(_sfc_main$S, {
548
548
  onRemoveItem: ($event) => handleDeleteItem(index),
@@ -11701,7 +11701,7 @@ const _hoisted_8$n = ["src", "title"];
11701
11701
  const _hoisted_9$m = ["href"];
11702
11702
  const _hoisted_10$i = { class: "file-upload-title" };
11703
11703
  const _hoisted_11$f = { class: "file-upload-file-remove" };
11704
- 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" };
11704
+ const _hoisted_12$d = { 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" };
11705
11705
  const _sfc_main$O = {
11706
11706
  __name: "FileUpload",
11707
11707
  props: {
@@ -11822,7 +11822,7 @@ const _sfc_main$O = {
11822
11822
  ref_key: "dropzone",
11823
11823
  ref: dropzone2
11824
11824
  }, null, 512),
11825
- createElementVNode("div", _hoisted_12$c, [
11825
+ createElementVNode("div", _hoisted_12$d, [
11826
11826
  createElementVNode("div", null, [
11827
11827
  createVNode(unref(UploadCloud), { class: "w-6 h-6" })
11828
11828
  ]),
@@ -45224,17 +45224,17 @@ const _hoisted_8$k = { class: "flex items-center justify-between" };
45224
45224
  const _hoisted_9$k = { class: "text-lg font-semibold text-gray-900" };
45225
45225
  const _hoisted_10$g = { class: "relative flex items-end" };
45226
45226
  const _hoisted_11$e = { class: "flex flex-col gap-6" };
45227
- const _hoisted_12$b = {
45227
+ const _hoisted_12$c = {
45228
45228
  key: 0,
45229
45229
  class: "flex gap-4"
45230
45230
  };
45231
45231
  const _hoisted_13$a = { class: "flex items-center gap-2 cursor-pointer" };
45232
45232
  const _hoisted_14$8 = ["name", "value", "onUpdate:modelValue", "onChange"];
45233
- const _hoisted_15$6 = {
45233
+ const _hoisted_15$7 = {
45234
45234
  key: 1,
45235
45235
  class: "flex flex-col gap-1.5"
45236
45236
  };
45237
- const _hoisted_16$3 = ["onUpdate:modelValue", "maxlength"];
45237
+ const _hoisted_16$4 = ["onUpdate:modelValue", "maxlength"];
45238
45238
  const _hoisted_17$2 = ["onUpdate:modelValue", "maxlength"];
45239
45239
  const _hoisted_18$2 = { key: 2 };
45240
45240
  const _sfc_main$C = {
@@ -45364,7 +45364,7 @@ const _sfc_main$C = {
45364
45364
  ])
45365
45365
  ]),
45366
45366
  createElementVNode("div", _hoisted_11$e, [
45367
- !((_a2 = componentData.value) == null ? void 0 : _a2.hasOwnProperty("has_type_switcher")) || ((_b = componentData.value) == null ? void 0 : _b.has_type_switcher) ? (openBlock(), createElementBlock("div", _hoisted_12$b, [
45367
+ !((_a2 = componentData.value) == null ? void 0 : _a2.hasOwnProperty("has_type_switcher")) || ((_b = componentData.value) == null ? void 0 : _b.has_type_switcher) ? (openBlock(), createElementBlock("div", _hoisted_12$c, [
45368
45368
  (openBlock(), createElementBlock(Fragment, null, renderList(options, (option) => {
45369
45369
  return createElementVNode("label", _hoisted_13$a, [
45370
45370
  withDirectives(createElementVNode("input", {
@@ -45381,7 +45381,7 @@ const _sfc_main$C = {
45381
45381
  ]);
45382
45382
  }), 64))
45383
45383
  ])) : createCommentVNode("", true),
45384
- !item.hasOwnProperty("content_type") || item.content_type === "content" ? (openBlock(), createElementBlock("div", _hoisted_15$6, [
45384
+ !item.hasOwnProperty("content_type") || item.content_type === "content" ? (openBlock(), createElementBlock("div", _hoisted_15$7, [
45385
45385
  ["feature_items", "faqs", "pricing"].includes(componentData.value.type) ? (openBlock(), createBlock(_sfc_main$D, {
45386
45386
  key: 0,
45387
45387
  data: item
@@ -45405,7 +45405,7 @@ const _sfc_main$C = {
45405
45405
  placeholder: "Title",
45406
45406
  maxlength: ((_a3 = componentData.value) == null ? void 0 : _a3.max_title) ?? 200,
45407
45407
  class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
45408
- }, null, 8, _hoisted_16$3)), [
45408
+ }, null, 8, _hoisted_16$4)), [
45409
45409
  [vModelText, item.title]
45410
45410
  ]) : createCommentVNode("", true),
45411
45411
  isBulletPoint.value ? withDirectives((openBlock(), createElementBlock("textarea", {
@@ -45479,7 +45479,7 @@ const _hoisted_8$j = { class: "text-lg font-semibold text-gray-900" };
45479
45479
  const _hoisted_9$j = { class: "relative flex items-end" };
45480
45480
  const _hoisted_10$f = { class: "flex flex-col gap-6" };
45481
45481
  const _hoisted_11$d = { class: "flex flex-col gap-1.5" };
45482
- const _hoisted_12$a = ["onUpdate:modelValue"];
45482
+ const _hoisted_12$b = ["onUpdate:modelValue"];
45483
45483
  const _sfc_main$B = {
45484
45484
  __name: "Logos",
45485
45485
  props: {
@@ -45581,7 +45581,7 @@ const _sfc_main$B = {
45581
45581
  type: "text",
45582
45582
  placeholder: "Enter your url",
45583
45583
  class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
45584
- }, null, 8, _hoisted_12$a), [
45584
+ }, null, 8, _hoisted_12$b), [
45585
45585
  [vModelText, item.url]
45586
45586
  ])
45587
45587
  ]),
@@ -45765,8 +45765,9 @@ const _hoisted_6$k = { class: "flex flex-col gap-3" };
45765
45765
  const _hoisted_7$j = { class: "flex items-center justify-between" };
45766
45766
  const _hoisted_8$i = { class: "text-lg font-semibold text-gray-900" };
45767
45767
  const _hoisted_9$i = { class: "relative flex items-end" };
45768
- const _hoisted_10$e = { class: "flex flex-col gap-6" };
45769
- const _hoisted_11$c = { class: "flex flex-col gap-1.5" };
45768
+ const _hoisted_10$e = ["onUpdate:modelValue"];
45769
+ const _hoisted_11$c = { class: "flex flex-col gap-6" };
45770
+ const _hoisted_12$a = { class: "flex flex-col gap-1.5" };
45770
45771
  const _sfc_main$y = {
45771
45772
  __name: "VideoGrid",
45772
45773
  props: {
@@ -45841,8 +45842,29 @@ const _sfc_main$y = {
45841
45842
  }, null, 8, ["onRemoveItem"])
45842
45843
  ])
45843
45844
  ]),
45844
- createElementVNode("div", _hoisted_10$e, [
45845
- createElementVNode("div", _hoisted_11$c, [
45845
+ createVNode(_sfc_main$P, {
45846
+ "is-vertical": "",
45847
+ field: "line.title",
45848
+ "label-text": "Youtube URL",
45849
+ class: "w-full",
45850
+ value: item.youtube_url
45851
+ }, {
45852
+ default: withCtx(() => [
45853
+ withDirectives(createElementVNode("input", {
45854
+ "onUpdate:modelValue": ($event) => item.youtube_url = $event,
45855
+ name: "youtube_url.youtube_url",
45856
+ type: "text",
45857
+ placeholder: "Url",
45858
+ class: "border-1 border-solid border-gray-300 rounded-lg bg-white w-full"
45859
+ }, null, 8, _hoisted_10$e), [
45860
+ [vModelText, item.youtube_url]
45861
+ ])
45862
+ ]),
45863
+ _: 2
45864
+ }, 1032, ["value"]),
45865
+ _cache[1] || (_cache[1] = createElementVNode("p", null, "OR", -1)),
45866
+ createElementVNode("div", _hoisted_11$c, [
45867
+ createElementVNode("div", _hoisted_12$a, [
45846
45868
  createVNode(unref(VFileUpload), {
45847
45869
  name: "image",
45848
45870
  type: "video",
@@ -46167,11 +46189,11 @@ const _hoisted_11$b = { class: "flex flex-col" };
46167
46189
  const _hoisted_12$9 = { class: "text-sm font-medium text-gray-900" };
46168
46190
  const _hoisted_13$9 = { class: "flex items-center justify-between gap-3 px-[10px]" };
46169
46191
  const _hoisted_14$7 = { class: "flex h-full flex-1 flex-col mb-20" };
46170
- const _hoisted_15$5 = {
46192
+ const _hoisted_15$6 = {
46171
46193
  key: 0,
46172
46194
  class: "mb-4 px-6 py-5 rounded-xl bg-gray-50"
46173
46195
  };
46174
- const _hoisted_16$2 = { class: "flex flex-col gap-1 pt-6 text-gray-600" };
46196
+ const _hoisted_16$3 = { class: "flex flex-col gap-1 pt-6 text-gray-600" };
46175
46197
  const _hoisted_17$1 = ["value"];
46176
46198
  const _hoisted_18$1 = {
46177
46199
  key: 1,
@@ -46312,9 +46334,9 @@ const _sfc_main$t = {
46312
46334
  }), 256))
46313
46335
  ]),
46314
46336
  createElementVNode("div", _hoisted_14$7, [
46315
- !unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_15$5, [
46337
+ !unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_15$6, [
46316
46338
  _cache[3] || (_cache[3] = createElementVNode("div", { class: "text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200" }, "Settings", -1)),
46317
- createElementVNode("div", _hoisted_16$2, [
46339
+ createElementVNode("div", _hoisted_16$3, [
46318
46340
  createVNode(_sfc_main$P, {
46319
46341
  field: "breadcrumb",
46320
46342
  "label-text": "Breadcrumb section",
@@ -47826,15 +47848,15 @@ const Slide = defineComponent({
47826
47848
  };
47827
47849
  }
47828
47850
  });
47829
- const _hoisted_1$M = { class: "flex h-[614px] sm:h-[550px] md:h-[806px] lg:h-[872px] w-full bg-navy-800 relative rounded-3xl lg:rounded-[48px] z-10" };
47851
+ const _hoisted_1$M = { class: "flex h-[494px] sm:h-[550px] md:h-[806px] lg:h-[872px] w-full bg-navy-800 relative rounded-[24px] lg:rounded-[48px] z-10" };
47830
47852
  const _hoisted_2$m = { class: "flex-1 lg:p-8 px-4 lg:py-4 flex max-lg:flex-col-reverse relative w-full" };
47831
- const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-8 sm:mt-14 lg:mt-[218px]" };
47853
+ const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-7 sm:mt-14 lg:mt-[218px]" };
47832
47854
  const _hoisted_4$j = { class: "gap-2 flex z-10 mb-4" };
47833
47855
  const _hoisted_5$i = ["onClick"];
47834
47856
  const _hoisted_6$i = { class: "text-[30px] lg:text-[48px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]" };
47835
47857
  const _hoisted_7$h = { class: "max-md:flex-1" };
47836
47858
  const _hoisted_8$g = ["innerHTML"];
47837
- const _hoisted_9$g = { class: "flex gap-3 md:mt-8 max-sm:flex-col" };
47859
+ const _hoisted_9$g = { class: "flex gap-3 mt-4 md:mt-8" };
47838
47860
  const _hoisted_10$c = ["href", "target"];
47839
47861
  const _hoisted_11$a = ["href", "target"];
47840
47862
  const _hoisted_12$8 = ["src"];
@@ -47883,14 +47905,14 @@ const _sfc_main$s = {
47883
47905
  createElementVNode("h3", _hoisted_6$i, toDisplayString(slide == null ? void 0 : slide.title), 1),
47884
47906
  createElementVNode("div", _hoisted_7$h, [
47885
47907
  createElementVNode("p", {
47886
- class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-6 sm:line-clamp-3",
47908
+ class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-4 sm:line-clamp-3",
47887
47909
  innerHTML: slide == null ? void 0 : slide.description
47888
47910
  }, null, 8, _hoisted_8$g)
47889
47911
  ]),
47890
47912
  createElementVNode("div", _hoisted_9$g, [
47891
47913
  slide.secondary_button.show ? (openBlock(), createElementBlock("a", {
47892
47914
  key: 0,
47893
- class: "text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
47915
+ class: "text-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
47894
47916
  href: unref(formatUrl)(slide.secondary_button.url),
47895
47917
  target: slide.secondary_button.open_in_new_tab ? "_blank" : ""
47896
47918
  }, [
@@ -47898,7 +47920,7 @@ const _sfc_main$s = {
47898
47920
  ], 8, _hoisted_10$c)) : createCommentVNode("", true),
47899
47921
  slide.primary_button.show ? (openBlock(), createElementBlock("a", {
47900
47922
  key: 1,
47901
- 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",
47923
+ class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-50",
47902
47924
  href: unref(formatUrl)(slide.primary_button.url),
47903
47925
  target: slide.primary_button.open_in_new_tab ? "_blank" : ""
47904
47926
  }, [
@@ -47928,7 +47950,7 @@ const _sfc_main$s = {
47928
47950
  };
47929
47951
  }
47930
47952
  };
47931
- const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-29ca6047"]]);
47953
+ const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-37e27419"]]);
47932
47954
  const _hoisted_1$L = ["target", "href"];
47933
47955
  const _sfc_main$r = {
47934
47956
  __name: "LinkPresenter",
@@ -48455,11 +48477,11 @@ const _hoisted_11$9 = ["innerHTML"];
48455
48477
  const _hoisted_12$7 = { class: "border-t border-gray-200 mt-4 pt-[17px] flex justify-between items-center" };
48456
48478
  const _hoisted_13$7 = ["href"];
48457
48479
  const _hoisted_14$6 = { class: "absolute max-sm:bottom-0 sm:top-[-65px] right-0 lg:right-4 flex gap-4" };
48458
- const _hoisted_15$4 = {
48480
+ const _hoisted_15$5 = {
48459
48481
  key: 0,
48460
48482
  class: "flex sm:justify-center mb-6 lg:mb-10"
48461
48483
  };
48462
- const _hoisted_16$1 = ["href", "target"];
48484
+ const _hoisted_16$2 = ["href", "target"];
48463
48485
  const _sfc_main$j = {
48464
48486
  __name: "CarouselPresenter",
48465
48487
  props: {
@@ -48605,7 +48627,7 @@ const _sfc_main$j = {
48605
48627
  createVNode(unref(ChevronRight), { class: "w-6 h-6" })
48606
48628
  ], 2)
48607
48629
  ]),
48608
- ((_a2 = __props.component) == null ? void 0 : _a2.button) ? (openBlock(), createElementBlock("div", _hoisted_15$4, [
48630
+ ((_a2 = __props.component) == null ? void 0 : _a2.button) ? (openBlock(), createElementBlock("div", _hoisted_15$5, [
48609
48631
  createElementVNode("a", {
48610
48632
  class: "border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",
48611
48633
  href: unref(formatUrl)(__props.component.button.url),
@@ -48613,7 +48635,7 @@ const _sfc_main$j = {
48613
48635
  }, [
48614
48636
  createTextVNode(toDisplayString(__props.component.button.title) + " ", 1),
48615
48637
  createVNode(unref(ArrowUpRight), { class: "w-5 h-5" })
48616
- ], 8, _hoisted_16$1)
48638
+ ], 8, _hoisted_16$2)
48617
48639
  ])) : createCommentVNode("", true)
48618
48640
  ]);
48619
48641
  };
@@ -48680,31 +48702,36 @@ const PlayButton = { render: render$e };
48680
48702
  const _hoisted_1$v = { class: "grid grid-cols-1 md:grid-cols-3 gap-6 w-full" };
48681
48703
  const _hoisted_2$f = {
48682
48704
  key: 0,
48683
- class: "relative group"
48705
+ class: "relative group w-full object-cover rounded-lg md:rounded-2xl overflow-hidden"
48706
+ };
48707
+ const _hoisted_3$f = {
48708
+ key: 0,
48709
+ class: "w-full h-[281px] md:rounded-2xl"
48684
48710
  };
48685
- const _hoisted_3$f = ["onClick"];
48686
48711
  const _hoisted_4$f = ["src"];
48687
- const _hoisted_5$f = ["src"];
48688
- const _hoisted_6$f = {
48712
+ const _hoisted_5$f = ["onClick"];
48713
+ const _hoisted_6$f = ["src"];
48714
+ const _hoisted_7$e = ["src"];
48715
+ const _hoisted_8$d = {
48689
48716
  key: 2,
48690
48717
  class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4",
48691
48718
  alt: "No Available",
48692
48719
  src: _imports_0
48693
48720
  };
48694
- const _hoisted_7$e = { class: "flex flex-col gap-2 items-start text-left w-full" };
48695
- const _hoisted_8$d = {
48721
+ const _hoisted_9$d = { class: "flex flex-col gap-2 items-start text-left w-full" };
48722
+ const _hoisted_10$9 = {
48696
48723
  key: 0,
48697
48724
  class: "flex gap-2"
48698
48725
  };
48699
- const _hoisted_9$d = ["href"];
48700
- const _hoisted_10$9 = { class: "flex justify-between" };
48701
- const _hoisted_11$8 = ["innerHTML"];
48702
- const _hoisted_12$6 = { class: "text-gray-500 text-sm mb-4" };
48703
- const _hoisted_13$6 = {
48726
+ const _hoisted_11$8 = ["href"];
48727
+ const _hoisted_12$6 = { class: "flex justify-between" };
48728
+ const _hoisted_13$6 = ["innerHTML"];
48729
+ const _hoisted_14$5 = { class: "text-gray-500 text-sm mb-4" };
48730
+ const _hoisted_15$4 = {
48704
48731
  key: 0,
48705
48732
  class: "flex justify-center"
48706
48733
  };
48707
- const _hoisted_14$5 = ["href", "target"];
48734
+ const _hoisted_16$1 = ["href", "target"];
48708
48735
  const _sfc_main$h = {
48709
48736
  __name: "CollectionGridPresenter",
48710
48737
  props: {
@@ -48741,6 +48768,13 @@ const _sfc_main$h = {
48741
48768
  videoRefs.value[index] = el;
48742
48769
  }
48743
48770
  };
48771
+ const getEmbedUrl = (item) => {
48772
+ if (!item.youtube_url) return null;
48773
+ const m = item.youtube_url.match(/(?:youtube\.com\/(?:.*v=|v\/|embed\/)|youtu\.be\/)([A-Za-z0-9_-]{11})/);
48774
+ const id = m ? m[1] : null;
48775
+ if (!id) return null;
48776
+ return `https://www.youtube.com/embed/${id}`;
48777
+ };
48744
48778
  return (_ctx, _cache) => {
48745
48779
  var _a2, _b2;
48746
48780
  return openBlock(), createElementBlock("div", {
@@ -48750,35 +48784,45 @@ const _sfc_main$h = {
48750
48784
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (card, index) => {
48751
48785
  return openBlock(), createElementBlock("div", {
48752
48786
  key: index,
48753
- class: "card bg-white sm:p-0 px-4"
48787
+ class: "card bg-white sm:p-0 px-4 w-full"
48754
48788
  }, [
48755
48789
  __props.component.type === "video_grid" ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
48756
- createElementVNode("video", {
48757
- onClick: ($event) => togglePlayPause(index),
48758
- ref_for: true,
48759
- ref: (el) => setVideoRef(el, index),
48760
- class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl",
48761
- width: "640",
48762
- height: "360",
48763
- preload: "metadata"
48764
- }, [
48765
- createElementVNode("source", {
48766
- src: `${card.video}#t=2`
48790
+ (card == null ? void 0 : card.youtube_url) && getEmbedUrl(card) ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
48791
+ createElementVNode("iframe", {
48792
+ src: getEmbedUrl(card),
48793
+ frameborder: "0",
48794
+ allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
48795
+ allowfullscreen: "",
48796
+ class: "w-full h-full"
48767
48797
  }, null, 8, _hoisted_4$f)
48768
- ], 8, _hoisted_3$f),
48769
- !isPlaying.value[index] ? (openBlock(), createBlock(unref(PlayButton), {
48770
- key: 0,
48771
- class: "cursor-pointer absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 group-hover:opacity-100 transition-opacity",
48772
- onClick: ($event) => togglePlayPause(index)
48773
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
48798
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
48799
+ createElementVNode("video", {
48800
+ onClick: ($event) => togglePlayPause(index),
48801
+ ref_for: true,
48802
+ ref: (el) => setVideoRef(el, index),
48803
+ class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl",
48804
+ width: "640",
48805
+ height: "360",
48806
+ preload: "metadata"
48807
+ }, [
48808
+ createElementVNode("source", {
48809
+ src: `${card.video}#t=2`
48810
+ }, null, 8, _hoisted_6$f)
48811
+ ], 8, _hoisted_5$f),
48812
+ !isPlaying.value[index] ? (openBlock(), createBlock(unref(PlayButton), {
48813
+ key: 0,
48814
+ class: "cursor-pointer absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 group-hover:opacity-100 transition-opacity",
48815
+ onClick: ($event) => togglePlayPause(index)
48816
+ }, null, 8, ["onClick"])) : createCommentVNode("", true)
48817
+ ], 64))
48774
48818
  ])) : card.image ? (openBlock(), createElementBlock("img", {
48775
48819
  key: 1,
48776
48820
  src: card.image,
48777
48821
  alt: "Card Image",
48778
48822
  class: "w-full h-[281px] object-cover rounded-lg md:rounded-2xl mb-4"
48779
- }, null, 8, _hoisted_5$f)) : (openBlock(), createElementBlock("img", _hoisted_6$f)),
48780
- createElementVNode("div", _hoisted_7$e, [
48781
- card.categories && card.categories.length ? (openBlock(), createElementBlock("div", _hoisted_8$d, [
48823
+ }, null, 8, _hoisted_7$e)) : (openBlock(), createElementBlock("img", _hoisted_8$d)),
48824
+ createElementVNode("div", _hoisted_9$d, [
48825
+ card.categories && card.categories.length ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
48782
48826
  (openBlock(true), createElementBlock(Fragment, null, renderList(card.categories, (tag) => {
48783
48827
  return openBlock(), createElementBlock("span", {
48784
48828
  key: tag,
@@ -48797,20 +48841,20 @@ const _sfc_main$h = {
48797
48841
  target: "_blank",
48798
48842
  rel: "noopener noreferrer"
48799
48843
  }, [
48800
- createElementVNode("div", _hoisted_10$9, [
48844
+ createElementVNode("div", _hoisted_12$6, [
48801
48845
  createElementVNode("span", {
48802
48846
  class: "w-5/6 leading-[28px]",
48803
48847
  innerHTML: card.title
48804
- }, null, 8, _hoisted_11$8),
48848
+ }, null, 8, _hoisted_13$6),
48805
48849
  createVNode(unref(ArrowUpRight), { class: "w-5 h-5 mt-1" })
48806
48850
  ])
48807
- ], 8, _hoisted_9$d)) : createCommentVNode("", true),
48808
- createElementVNode("p", _hoisted_12$6, toDisplayString(card.dateTime), 1)
48851
+ ], 8, _hoisted_11$8)) : createCommentVNode("", true),
48852
+ createElementVNode("p", _hoisted_14$5, toDisplayString(card.dateTime), 1)
48809
48853
  ])
48810
48854
  ]);
48811
48855
  }), 128))
48812
48856
  ]),
48813
- Object.keys(unref(button)).length && ((_b2 = unref(button)) == null ? void 0 : _b2.show) ? (openBlock(), createElementBlock("div", _hoisted_13$6, [
48857
+ Object.keys(unref(button)).length && ((_b2 = unref(button)) == null ? void 0 : _b2.show) ? (openBlock(), createElementBlock("div", _hoisted_15$4, [
48814
48858
  createElementVNode("a", {
48815
48859
  class: "border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",
48816
48860
  href: unref(formatUrl)(unref(button).url),
@@ -48818,13 +48862,13 @@ const _sfc_main$h = {
48818
48862
  }, [
48819
48863
  createTextVNode(toDisplayString(unref(button).title) + " ", 1),
48820
48864
  createVNode(unref(ArrowUpRight), { class: "w-5 h-5" })
48821
- ], 8, _hoisted_14$5)
48865
+ ], 8, _hoisted_16$1)
48822
48866
  ])) : createCommentVNode("", true)
48823
48867
  ], 2);
48824
48868
  };
48825
48869
  }
48826
48870
  };
48827
- const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b6625ed3"]]);
48871
+ const CollectionGridPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-77dcb437"]]);
48828
48872
  const _hoisted_1$u = { class: "overflow-hidden" };
48829
48873
  const _sfc_main$g = {
48830
48874
  __name: "CollectionGrid",
@@ -49098,7 +49142,7 @@ const _hoisted_12$5 = ["href", "target"];
49098
49142
  const _hoisted_13$5 = ["src"];
49099
49143
  const _hoisted_14$4 = {
49100
49144
  key: 0,
49101
- class: "w-full md:w-[560px] flex"
49145
+ class: "w-full md:w-[560px] rounded-br-[24px] rounded-tl-[24px] overflow-hidden relative max-lg:pt-[55%]"
49102
49146
  };
49103
49147
  const _hoisted_15$3 = ["src", "alt"];
49104
49148
  const _sfc_main$d = {
@@ -49226,7 +49270,7 @@ const _sfc_main$d = {
49226
49270
  createElementVNode("img", {
49227
49271
  src: imageComponent.value.featured_image,
49228
49272
  alt: ((_d = imageComponent.value) == null ? void 0 : _d.caption) ?? "Image",
49229
- class: "rounded-br-[24px] rounded-tl-[24px] w-full object-cover"
49273
+ class: "w-full h-full object-cover max-lg:absolute inset-0"
49230
49274
  }, null, 8, _hoisted_15$3)
49231
49275
  ])) : createCommentVNode("", true)
49232
49276
  ], 2)
@@ -49599,14 +49643,18 @@ const _sfc_main$9 = {
49599
49643
  createElementVNode("div", {
49600
49644
  class: normalizeClass(["pb-container my-[40px]", { "flex gap-8 flex-col lg:flex-row": (_c = headerComponent.value) == null ? void 0 : _c.featured_image, "flex-col-reverse lg:flex-row-reverse justify-between": (_d = headerComponent.value) == null ? void 0 : _d.revert }])
49601
49645
  }, [
49602
- ((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (openBlock(), createElementBlock("img", {
49646
+ ((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (openBlock(), createElementBlock("div", {
49603
49647
  key: 0,
49604
- src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
49605
- class: "lg:max-w-[480px] w-full object-cover rounded-xl md:rounded-3xl",
49606
49648
  ref_key: "leftColumn",
49607
49649
  ref: leftColumn,
49608
- alt: "Feature"
49609
- }, null, 8, _hoisted_2$8)) : createCommentVNode("", true),
49650
+ class: "w-full lg:max-w-[480px] rounded-xl md:rounded-3xl overflow-hidden shrink-0 relative max-lg:pt-[55%]"
49651
+ }, [
49652
+ createElementVNode("img", {
49653
+ src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
49654
+ class: "w-full h-full object-cover max-lg:absolute inset-0",
49655
+ alt: "Feature"
49656
+ }, null, 8, _hoisted_2$8)
49657
+ ], 512)) : createCommentVNode("", true),
49610
49658
  headerComponent.value ? (openBlock(), createElementBlock("div", {
49611
49659
  key: 1,
49612
49660
  class: normalizeClass(["h-fit flex flex-col gap-4 lg:gap-8", { "xl:py-[48px]": (_g = headerComponent.value) == null ? void 0 : _g.featured_image, "[&]:grid lg:grid-cols-2": (_h = section.value) == null ? void 0 : _h.two_column }]),