import __nuxt_component_0 from './InternalHeaderSection-DIj5MLKD.mjs';
import { d as useI18n, e as useSeoMeta, f as __nuxt_component_0$1, b as useRuntimeConfig, u as useLocalePath, c as useSchemaOrg } from './server.mjs';
import _sfc_main$1 from './MainButton-ul6epHgF.mjs';
import { defineComponent, withAsyncContext, computed, withCtx, createVNode, toDisplayString, defineAsyncComponent, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate } from 'vue/server-renderer';
import { u as useAsyncData } from './asyncData-t1m_EyLu.mjs';
import { definePerson, defineOrganization } from '@unhead/schema-org';
import './useBreadcrumbSchema-CZ-Fj_m_.mjs';
import './utils-H80jjgLf.mjs';
import 'clsx';
import 'tailwind-merge';
import 'reka-ui';
import 'lucide-vue-next';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'nitropack/dist/runtime/plugin';
import 'packrup';
import 'consola';
import 'node:fs';
import 'node:url';
import '@iconify/utils';
import 'node:crypto';
import 'ipx';
import 'node:path';
import 'pinia';
import '@pinia/colada';
import 'vue-router';
import '@unhead/schema-org/vue';
import 'deep-pick-omit';
import '@iconify/vue';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/plugins';
import 'unhead/utils';
import './index-m9AqQ9dr.mjs';
import 'class-variance-authority';

const useAboutSchema = (settings = {}, t) => {
  const localPath = useLocalePath();
  const config = useRuntimeConfig();
  const siteUrl = config.public.BASE_URL;
  const toAbs = (path) => new URL(path, siteUrl).toString();
  const socialLinks = [
    settings == null ? void 0 : settings.facebook_link,
    settings == null ? void 0 : settings.instagram_link,
    settings == null ? void 0 : settings.tiktok_link,
    settings == null ? void 0 : settings.X_link,
    settings == null ? void 0 : settings.linkedIn_link,
    settings == null ? void 0 : settings.snapchat_link,
    settings == null ? void 0 : settings.youtube_link
  ].filter(Boolean);
  useSchemaOrg([
    {
      "@type": "AboutPage",
      name: t("about"),
      description: t("aboutSeo.description")
    },
    definePerson({
      "@id": `${toAbs(localPath("/about"))}#ceo`,
      name: "Mahmoud Nabil",
      jobTitle: "CEO",
      worksFor: {
        "@id": "https://webstdy.com/#identity"
      },
      image: {
        "@type": "ImageObject",
        url: "https://webstdy.com/images/about-img.png"
      },
      sameAs: socialLinks
    }),
    // Reinforce Organization data on About page
    defineOrganization({
      "@id": "https://webstdy.com/#identity",
      name: "WebSTDY",
      url: localPath("https://webstdy.com/"),
      logo: (settings == null ? void 0 : settings.light_logo) || "https://webstdy.com/web/img/2022/new-share-image.png",
      description: t("homeSeo.description")
    })
  ]);
};
const __nuxt_component_3_lazy = defineAsyncComponent(() => import('./Counter-CE49iUPQ.mjs').then((c) => c.default || c));
const __nuxt_component_4_lazy = defineAsyncComponent(() => import('./WhoWeAre-giw6qRl-.mjs').then((c) => c.default || c));
const __nuxt_component_5_lazy = defineAsyncComponent(() => import('./Ceo-Dx7Cuqef.mjs').then((c) => c.default || c));
const __nuxt_component_6_lazy = defineAsyncComponent(() => import('./Clients-CqXDRvaa.mjs').then((c) => c.default || c));
const __nuxt_component_7_lazy = defineAsyncComponent(() => import('./Testimonials-CN2teOXQ.mjs').then((c) => c.default || c));
const __nuxt_component_8_lazy = defineAsyncComponent(() => import('./ProjectStages-DSIXXmur.mjs').then((c) => c.default || c));
const __nuxt_component_9_lazy = defineAsyncComponent(() => import('./ContactSection-CAtiNUTD.mjs').then((c) => c.default || c));
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "about",
  __ssrInlineRender: true,
  async setup(__props) {
    var _a;
    let __temp, __restore;
    const { t, locale } = useI18n();
    const config = useRuntimeConfig();
    const { data: settings } = ([__temp, __restore] = withAsyncContext(() => useAsyncData(
      "general",
      () => $fetch(`${config.public.apiBase}general`, {
        headers: {
          "Content-Language": locale.value
        }
      }),
      { lazy: true }
    )), __temp = await __temp, __restore(), __temp);
    useSeoMeta({
      title: computed(() => t("aboutSeo.title")),
      description: computed(() => t("aboutSeo.description")),
      ogTitle: computed(() => t("aboutSeo.ogTitle")),
      ogDescription: computed(() => t("aboutSeo.ogDescription")),
      keywords: computed(() => t("aboutSeo.keywords"))
    });
    {
      useAboutSchema((_a = settings == null ? void 0 : settings.value) == null ? void 0 : _a.data, t);
    }
    return (_ctx, _push, _parent, _attrs) => {
      const _component_InternalHeaderSection = __nuxt_component_0;
      const _component_NuxtLinkLocale = __nuxt_component_0$1;
      const _component_MainButton = _sfc_main$1;
      const _component_LazyAboutCounter = __nuxt_component_3_lazy;
      const _component_LazyAboutWhoWeAre = __nuxt_component_4_lazy;
      const _component_LazyAboutCeo = __nuxt_component_5_lazy;
      const _component_LazyAboutClients = __nuxt_component_6_lazy;
      const _component_LazyAboutTestimonials = __nuxt_component_7_lazy;
      const _component_LazyAboutProjectStages = __nuxt_component_8_lazy;
      const _component_LazyAboutContactSection = __nuxt_component_9_lazy;
      _push(`<main${ssrRenderAttrs(_attrs)}>`);
      _push(ssrRenderComponent(_component_InternalHeaderSection, {
        pages: [{ name: _ctx.$t("about") }],
        "video-url": "/videos/about-header.mp4"
      }, {
        title: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h1${_scopeId}>${ssrInterpolate(_ctx.$t("aboutHero.title"))}</h1>`);
          } else {
            return [
              createVNode("h1", null, toDisplayString(_ctx.$t("aboutHero.title")), 1)
            ];
          }
        }),
        button: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(ssrRenderComponent(_component_NuxtLinkLocale, { to: "/contact" }, {
              default: withCtx((_2, _push3, _parent3, _scopeId2) => {
                if (_push3) {
                  _push3(ssrRenderComponent(_component_MainButton, {
                    contnet: _ctx.$t("aboutHero.button")
                  }, null, _parent3, _scopeId2));
                } else {
                  return [
                    createVNode(_component_MainButton, {
                      contnet: _ctx.$t("aboutHero.button")
                    }, null, 8, ["contnet"])
                  ];
                }
              }),
              _: 1
            }, _parent2, _scopeId));
          } else {
            return [
              createVNode(_component_NuxtLinkLocale, { to: "/contact" }, {
                default: withCtx(() => [
                  createVNode(_component_MainButton, {
                    contnet: _ctx.$t("aboutHero.button")
                  }, null, 8, ["contnet"])
                ]),
                _: 1
              })
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(ssrRenderComponent(_component_LazyAboutCounter, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutWhoWeAre, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutCeo, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutClients, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutTestimonials, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutProjectStages, null, null, _parent));
      _push(ssrRenderComponent(_component_LazyAboutContactSection, null, null, _parent));
      _push(`</main>`);
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/about.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};

export { _sfc_main as default };
//# sourceMappingURL=about-DKdmcDxy.mjs.map
