import { d as useI18n, g as _sfc_main$1, f as __nuxt_component_0$1, a as _export_sfc } from "../server.mjs";
import { u as useBreadcrumbSchema, _ as _sfc_main$2, a as _sfc_main$3, b as _sfc_main$4, c as _sfc_main$5, d as _sfc_main$6, e as _sfc_main$7 } from "./useBreadcrumbSchema-CZ-Fj_m_.js";
import { defineComponent, computed, ref, mergeProps, withCtx, unref, createTextVNode, toDisplayString, createVNode, resolveDynamicComponent, createBlock, openBlock, Fragment, renderList, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderStyle, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderVNode, ssrRenderClass, ssrRenderSlot } from "vue/server-renderer";
import { ChevronRight, ChevronLeft } from "lucide-vue-next";
import "ofetch";
import "#internal/nuxt/paths";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/hookable/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/unctx/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/h3/dist/index.mjs";
import "pinia";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/defu/dist/defu.mjs";
import "@pinia/colada";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/klona/dist/index.mjs";
import "vue-router";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/radix3/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/cookie-es/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/destr/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/ohash/dist/index.mjs";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/@unhead/vue/dist/index.mjs";
import "@vue/devtools-api";
import "@unhead/schema-org/vue";
import "scule";
import "deep-pick-omit";
import "@iconify/vue";
import "./utils-H80jjgLf.js";
import "clsx";
import "tailwind-merge";
import "reka-ui";
import "@unhead/schema-org";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "InternalHeaderSection",
  __ssrInlineRender: true,
  props: {
    pages: {},
    videoUrl: {},
    image: {}
  },
  setup(__props) {
    const { locale, t } = useI18n();
    const dir = computed(() => locale.value === "ar" ? "rtl" : "ltr");
    ref();
    ref(true);
    ref(true);
    const props = __props;
    useBreadcrumbSchema(props.pages);
    return (_ctx, _push, _parent, _attrs) => {
      var _a, _b, _c, _d;
      const _component_NuxtImg = _sfc_main$1;
      const _component_Breadcrumb = _sfc_main$2;
      const _component_BreadcrumbList = _sfc_main$3;
      const _component_BreadcrumbItem = _sfc_main$4;
      const _component_BreadcrumbLink = _sfc_main$5;
      const _component_NuxtLinkLocale = __nuxt_component_0$1;
      const _component_BreadcrumbSeparator = _sfc_main$6;
      const _component_BreadcrumbPage = _sfc_main$7;
      _push(`<section${ssrRenderAttrs(mergeProps({ class: "hero -mt-header relative grid min-h-[500px] w-full items-center" }, _attrs))} data-v-b29e29f7><div class="absolute inset-0 overflow-hidden" data-v-b29e29f7>`);
      if (props.videoUrl) {
        _push(`<video autoplay muted loop playsinline preload="metadata" class="absolute inset-0 h-full w-full object-cover will-change-auto"${ssrRenderAttr("poster", (_a = props.image) == null ? void 0 : _a.Url)} style="${ssrRenderStyle({ "filter": "contrast(1.05) brightness(0.95)" })}" data-v-b29e29f7><source${ssrRenderAttr("src", props.videoUrl)} type="video/mp4" data-v-b29e29f7> Your browser does not support the video tag. </video>`);
      } else {
        _push(`<!---->`);
      }
      if ((_b = _ctx.image) == null ? void 0 : _b.Url) {
        _push(ssrRenderComponent(_component_NuxtImg, {
          src: (_c = _ctx.image) == null ? void 0 : _c.Url,
          class: "absolute inset-0 block h-full w-full object-cover",
          alt: (_d = _ctx.image) == null ? void 0 : _d.Alt,
          width: "1920",
          height: "500",
          sizes: "100vw"
        }, null, _parent));
      } else {
        _push(`<!---->`);
      }
      _push(`<div class="bg-hero-bg absolute inset-0 z-[1]" data-v-b29e29f7></div></div><div class="relative z-[2] container mx-auto grid place-items-center px-4 py-[40px] lg:pt-[80px]" data-v-b29e29f7><div class="mb-[60px]" data-v-b29e29f7>`);
      _push(ssrRenderComponent(_component_Breadcrumb, null, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(ssrRenderComponent(_component_BreadcrumbList, { class: "text-primary flex items-center gap-1" }, {
              default: withCtx((_2, _push3, _parent3, _scopeId2) => {
                if (_push3) {
                  _push3(ssrRenderComponent(_component_BreadcrumbItem, null, {
                    default: withCtx((_3, _push4, _parent4, _scopeId3) => {
                      if (_push4) {
                        _push4(ssrRenderComponent(_component_BreadcrumbLink, { "as-child": "" }, {
                          default: withCtx((_4, _push5, _parent5, _scopeId4) => {
                            if (_push5) {
                              _push5(ssrRenderComponent(_component_NuxtLinkLocale, { to: "/" }, {
                                default: withCtx((_5, _push6, _parent6, _scopeId5) => {
                                  if (_push6) {
                                    _push6(`${ssrInterpolate(unref(t)("home"))}`);
                                  } else {
                                    return [
                                      createTextVNode(toDisplayString(unref(t)("home")), 1)
                                    ];
                                  }
                                }),
                                _: 1
                              }, _parent5, _scopeId4));
                            } else {
                              return [
                                createVNode(_component_NuxtLinkLocale, { to: "/" }, {
                                  default: withCtx(() => [
                                    createTextVNode(toDisplayString(unref(t)("home")), 1)
                                  ]),
                                  _: 1
                                })
                              ];
                            }
                          }),
                          _: 1
                        }, _parent4, _scopeId3));
                      } else {
                        return [
                          createVNode(_component_BreadcrumbLink, { "as-child": "" }, {
                            default: withCtx(() => [
                              createVNode(_component_NuxtLinkLocale, { to: "/" }, {
                                default: withCtx(() => [
                                  createTextVNode(toDisplayString(unref(t)("home")), 1)
                                ]),
                                _: 1
                              })
                            ]),
                            _: 1
                          })
                        ];
                      }
                    }),
                    _: 1
                  }, _parent3, _scopeId2));
                  _push3(`<!--[-->`);
                  ssrRenderList(_ctx.pages, (page, index) => {
                    _push3(`<!--[-->`);
                    _push3(ssrRenderComponent(_component_BreadcrumbSeparator, null, {
                      default: withCtx((_3, _push4, _parent4, _scopeId3) => {
                        if (_push4) {
                          ssrRenderVNode(_push4, createVNode(resolveDynamicComponent(unref(dir) === "ltr" ? unref(ChevronRight) : unref(ChevronLeft)), { size: 20 }, null), _parent4, _scopeId3);
                        } else {
                          return [
                            (openBlock(), createBlock(resolveDynamicComponent(unref(dir) === "ltr" ? unref(ChevronRight) : unref(ChevronLeft)), { size: 20 }))
                          ];
                        }
                      }),
                      _: 2
                    }, _parent3, _scopeId2));
                    _push3(ssrRenderComponent(_component_BreadcrumbItem, null, {
                      default: withCtx((_3, _push4, _parent4, _scopeId3) => {
                        if (_push4) {
                          if (page.link && index !== _ctx.pages.length - 1) {
                            _push4(ssrRenderComponent(_component_BreadcrumbLink, { "as-child": "" }, {
                              default: withCtx((_4, _push5, _parent5, _scopeId4) => {
                                if (_push5) {
                                  _push5(ssrRenderComponent(_component_NuxtLinkLocale, {
                                    to: page.link
                                  }, {
                                    default: withCtx((_5, _push6, _parent6, _scopeId5) => {
                                      if (_push6) {
                                        _push6(`${ssrInterpolate(page.name)}`);
                                      } else {
                                        return [
                                          createTextVNode(toDisplayString(page.name), 1)
                                        ];
                                      }
                                    }),
                                    _: 2
                                  }, _parent5, _scopeId4));
                                } else {
                                  return [
                                    createVNode(_component_NuxtLinkLocale, {
                                      to: page.link
                                    }, {
                                      default: withCtx(() => [
                                        createTextVNode(toDisplayString(page.name), 1)
                                      ]),
                                      _: 2
                                    }, 1032, ["to"])
                                  ];
                                }
                              }),
                              _: 2
                            }, _parent4, _scopeId3));
                          } else {
                            _push4(ssrRenderComponent(_component_BreadcrumbPage, {
                              class: index === _ctx.pages.length - 1 ? "text-accent font-semibold" : ""
                            }, {
                              default: withCtx((_4, _push5, _parent5, _scopeId4) => {
                                if (_push5) {
                                  _push5(`<span class="${ssrRenderClass(
                                    index === _ctx.pages.length - 1 ? "xs:inline xs:w-auto block max-w-[130px] truncate" : ""
                                  )}" data-v-b29e29f7${_scopeId4}>${ssrInterpolate(page.name)}</span>`);
                                } else {
                                  return [
                                    createVNode("span", {
                                      class: index === _ctx.pages.length - 1 ? "xs:inline xs:w-auto block max-w-[130px] truncate" : ""
                                    }, toDisplayString(page.name), 3)
                                  ];
                                }
                              }),
                              _: 2
                            }, _parent4, _scopeId3));
                          }
                        } else {
                          return [
                            page.link && index !== _ctx.pages.length - 1 ? (openBlock(), createBlock(_component_BreadcrumbLink, {
                              key: 0,
                              "as-child": ""
                            }, {
                              default: withCtx(() => [
                                createVNode(_component_NuxtLinkLocale, {
                                  to: page.link
                                }, {
                                  default: withCtx(() => [
                                    createTextVNode(toDisplayString(page.name), 1)
                                  ]),
                                  _: 2
                                }, 1032, ["to"])
                              ]),
                              _: 2
                            }, 1024)) : (openBlock(), createBlock(_component_BreadcrumbPage, {
                              key: 1,
                              class: index === _ctx.pages.length - 1 ? "text-accent font-semibold" : ""
                            }, {
                              default: withCtx(() => [
                                createVNode("span", {
                                  class: index === _ctx.pages.length - 1 ? "xs:inline xs:w-auto block max-w-[130px] truncate" : ""
                                }, toDisplayString(page.name), 3)
                              ]),
                              _: 2
                            }, 1032, ["class"]))
                          ];
                        }
                      }),
                      _: 2
                    }, _parent3, _scopeId2));
                    _push3(`<!--]-->`);
                  });
                  _push3(`<!--]-->`);
                } else {
                  return [
                    createVNode(_component_BreadcrumbItem, null, {
                      default: withCtx(() => [
                        createVNode(_component_BreadcrumbLink, { "as-child": "" }, {
                          default: withCtx(() => [
                            createVNode(_component_NuxtLinkLocale, { to: "/" }, {
                              default: withCtx(() => [
                                createTextVNode(toDisplayString(unref(t)("home")), 1)
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }),
                    (openBlock(true), createBlock(Fragment, null, renderList(_ctx.pages, (page, index) => {
                      return openBlock(), createBlock(Fragment, { key: index }, [
                        createVNode(_component_BreadcrumbSeparator, null, {
                          default: withCtx(() => [
                            (openBlock(), createBlock(resolveDynamicComponent(unref(dir) === "ltr" ? unref(ChevronRight) : unref(ChevronLeft)), { size: 20 }))
                          ]),
                          _: 1
                        }),
                        createVNode(_component_BreadcrumbItem, null, {
                          default: withCtx(() => [
                            page.link && index !== _ctx.pages.length - 1 ? (openBlock(), createBlock(_component_BreadcrumbLink, {
                              key: 0,
                              "as-child": ""
                            }, {
                              default: withCtx(() => [
                                createVNode(_component_NuxtLinkLocale, {
                                  to: page.link
                                }, {
                                  default: withCtx(() => [
                                    createTextVNode(toDisplayString(page.name), 1)
                                  ]),
                                  _: 2
                                }, 1032, ["to"])
                              ]),
                              _: 2
                            }, 1024)) : (openBlock(), createBlock(_component_BreadcrumbPage, {
                              key: 1,
                              class: index === _ctx.pages.length - 1 ? "text-accent font-semibold" : ""
                            }, {
                              default: withCtx(() => [
                                createVNode("span", {
                                  class: index === _ctx.pages.length - 1 ? "xs:inline xs:w-auto block max-w-[130px] truncate" : ""
                                }, toDisplayString(page.name), 3)
                              ]),
                              _: 2
                            }, 1032, ["class"]))
                          ]),
                          _: 2
                        }, 1024)
                      ], 64);
                    }), 128))
                  ];
                }
              }),
              _: 1
            }, _parent2, _scopeId));
          } else {
            return [
              createVNode(_component_BreadcrumbList, { class: "text-primary flex items-center gap-1" }, {
                default: withCtx(() => [
                  createVNode(_component_BreadcrumbItem, null, {
                    default: withCtx(() => [
                      createVNode(_component_BreadcrumbLink, { "as-child": "" }, {
                        default: withCtx(() => [
                          createVNode(_component_NuxtLinkLocale, { to: "/" }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(unref(t)("home")), 1)
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }),
                  (openBlock(true), createBlock(Fragment, null, renderList(_ctx.pages, (page, index) => {
                    return openBlock(), createBlock(Fragment, { key: index }, [
                      createVNode(_component_BreadcrumbSeparator, null, {
                        default: withCtx(() => [
                          (openBlock(), createBlock(resolveDynamicComponent(unref(dir) === "ltr" ? unref(ChevronRight) : unref(ChevronLeft)), { size: 20 }))
                        ]),
                        _: 1
                      }),
                      createVNode(_component_BreadcrumbItem, null, {
                        default: withCtx(() => [
                          page.link && index !== _ctx.pages.length - 1 ? (openBlock(), createBlock(_component_BreadcrumbLink, {
                            key: 0,
                            "as-child": ""
                          }, {
                            default: withCtx(() => [
                              createVNode(_component_NuxtLinkLocale, {
                                to: page.link
                              }, {
                                default: withCtx(() => [
                                  createTextVNode(toDisplayString(page.name), 1)
                                ]),
                                _: 2
                              }, 1032, ["to"])
                            ]),
                            _: 2
                          }, 1024)) : (openBlock(), createBlock(_component_BreadcrumbPage, {
                            key: 1,
                            class: index === _ctx.pages.length - 1 ? "text-accent font-semibold" : ""
                          }, {
                            default: withCtx(() => [
                              createVNode("span", {
                                class: index === _ctx.pages.length - 1 ? "xs:inline xs:w-auto block max-w-[130px] truncate" : ""
                              }, toDisplayString(page.name), 3)
                            ]),
                            _: 2
                          }, 1032, ["class"]))
                        ]),
                        _: 2
                      }, 1024)
                    ], 64);
                  }), 128))
                ]),
                _: 1
              })
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div><div class="title dark-text-gradient mb-6 max-w-[800px] text-center text-2xl leading-10 font-semibold text-pretty md:text-4xl md:leading-14 2xl:text-5xl 2xl:leading-16" data-v-b29e29f7>`);
      ssrRenderSlot(_ctx.$slots, "title", {}, null, _push, _parent);
      _push(`</div><div class="button flex min-h-[48px] items-center justify-center" data-v-b29e29f7>`);
      ssrRenderSlot(_ctx.$slots, "button", {}, null, _push, _parent);
      _push(`</div></div></section>`);
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/global/InternalHeaderSection.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const __nuxt_component_0 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b29e29f7"]]);
export {
  __nuxt_component_0 as default
};
//# sourceMappingURL=InternalHeaderSection-DIj5MLKD.js.map
