import { defineComponent, withAsyncContext, computed, mergeProps, withCtx, createVNode, toDisplayString, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate } from 'vue/server-renderer';
import __nuxt_component_0 from './InternalHeaderSection-DIj5MLKD.mjs';
import __nuxt_component_0$1 from './Contact-Ik5xD7tN.mjs';
import { _ as __nuxt_component_3 } from './SubscribeSection-D6lSAdXw.mjs';
import { u as useSocialIconsQuery, a as useServicesQuery } from './contact-k0MTtZDV.mjs';
import { u as useBranches } from './useBranches-BHivqtZy.mjs';
import { d as useI18n, e as useSeoMeta, b as useRuntimeConfig, u as useLocalePath, c as useSchemaOrg } from './server.mjs';
import { u as useAsyncData } from './asyncData-t1m_EyLu.mjs';
import './useBreadcrumbSchema-CZ-Fj_m_.mjs';
import './utils-H80jjgLf.mjs';
import 'clsx';
import 'tailwind-merge';
import 'reka-ui';
import 'lucide-vue-next';
import '@unhead/schema-org';
import './SectionHeadline-0zkilFRp.mjs';
import './ContactIcon-CO7vyUaQ.mjs';
import './Form-BItdTITZ.mjs';
import './useUtmPayload-DlQ2OH8k.mjs';
import 'vee-validate';
import './index-Cce4iXMN.mjs';
import './index-B_IDLhd1.mjs';
import './FormLabel-PCaiHQXT.mjs';
import './PopoverTrigger-D3Tywx5m.mjs';
import './index-m9AqQ9dr.mjs';
import 'class-variance-authority';
import './FlagComponent-tWUs0Zo0.mjs';
import './Textarea-D5DXsU7G.mjs';
import '@vee-validate/zod';
import 'base-vue-phone-input';
import 'zod';
import './useApi-Dv-cyvzn.mjs';
import 'axios';
import 'vue-sonner';
import './Skeleton-CRkCoUmX.mjs';
import './EmptyState-CWK2sm1Q.mjs';
import './BrancheCard-DdXAv4Sd.mjs';
import '@pinia/colada';
import './fetch-C0COJdJ7.mjs';
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 '@vue/shared';
import 'pinia';
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';

const _sfc_main$2 = /* @__PURE__ */ defineComponent({
  __name: "ContactHero",
  __ssrInlineRender: true,
  setup(__props) {
    return (_ctx, _push, _parent, _attrs) => {
      _push(ssrRenderComponent(__nuxt_component_0, mergeProps({
        pages: [{ name: _ctx.$t("contact") }],
        "video-url": "/videos/contact-hero.mp4"
      }, _attrs), {
        title: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h1${_scopeId}>${ssrInterpolate(_ctx.$t("contactPageTitle"))}</h1>`);
          } else {
            return [
              createVNode("h1", null, toDisplayString(_ctx.$t("contactPageTitle")), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
    };
  }
});
const _sfc_setup$2 = _sfc_main$2.setup;
_sfc_main$2.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/contact/ContactHero.vue");
  return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
  __name: "ContactMainSection",
  __ssrInlineRender: true,
  setup(__props) {
    const { data: socialIcons } = useSocialIconsQuery();
    const { data: services } = useServicesQuery();
    const { branches, isLoading } = useBranches();
    return (_ctx, _push, _parent, _attrs) => {
      const _component_Contact = __nuxt_component_0$1;
      _push(`<section${ssrRenderAttrs(mergeProps({ id: "contact" }, _attrs))}><div class="py-section bg-gradient-odd">`);
      if (unref(branches) && unref(socialIcons) && unref(services)) {
        _push(ssrRenderComponent(_component_Contact, {
          "social-icons": unref(socialIcons),
          branches: unref(branches),
          "branches-loading": unref(isLoading),
          services: unref(services),
          "form-title": _ctx.$t("contactSection.title")
        }, null, _parent));
      } else {
        _push(`<!---->`);
      }
      _push(`</div><div class="bg-gradient-even pb-section px-4">`);
      _push(ssrRenderComponent(__nuxt_component_3, null, null, _parent));
      _push(`</div></section>`);
    };
  }
});
const _sfc_setup$1 = _sfc_main$1.setup;
_sfc_main$1.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/contact/ContactMainSection.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const useContactSchema = (settings = {}, reviews = [], 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);
  const contactPoints = [
    {
      "@type": "ContactPoint",
      telephone: "+9661000025705",
      contactType: "customer service",
      email: "info@webstdy.com",
      areaServed: "Worldwide",
      availableLanguage: ["en", "ar"],
      additionalProperty: {
        "@type": "PropertyValue",
        name: "WhatsApp",
        value: "+9661000025705"
      }
    }
  ];
  const mainAddress = {
    "@type": "PostalAddress",
    streetAddress: "38 \u0634\u0627\u0631\u0639 \u0627\u0644\u062B\u0648\u0631\u0629\u060C \u0627\u0644\u062F\u0642\u064A\u060C \u0627\u0644\u062C\u064A\u0632\u0629",
    addressLocality: "\u0627\u0644\u062C\u064A\u0632\u0629",
    postalCode: "12345",
    addressCountry: "EG"
  };
  const aggregateRating = {
    "@type": "AggregateRating",
    ratingValue: "4.9",
    bestRating: "5",
    worstRating: "1",
    reviewCount: "57"
  };
  useSchemaOrg([
    {
      "@type": "ContactPage",
      name: t("contact"),
      description: t("contactSeo.description")
    },
    {
      "@type": ["LocalBusiness", "ProfessionalService"],
      "@id": `${toAbs(localPath("/contact"))}#business`,
      name: "WebSTDY - Software Development Company",
      description: "Professional software development agency specializing in web applications, mobile apps, and custom software solutions",
      url: toAbs(localPath("/contact")),
      image: (settings == null ? void 0 : settings.light_logo) || "https://webstdy.com/web/img/2022/new-share-image.png",
      telephone: "+9661000025705",
      email: "info@webstdy.com",
      address: mainAddress,
      contactPoint: contactPoints,
      openingHoursSpecification: {
        "@type": "OpeningHoursSpecification",
        dayOfWeek: ["Monday", "Tuesday", "Wednesday", "Thursday", "Sunday"],
        opens: "10:00",
        closes: "20:00"
      },
      aggregateRating,
      review: reviews.map((review) => ({
        "@type": "Review",
        author: {
          "@type": "Person",
          name: review.author
        },
        reviewRating: {
          "@type": "Rating",
          ratingValue: review.rating.toString(),
          bestRating: "5",
          worstRating: "1"
        },
        reviewBody: review.body,
        datePublished: "2025-11-10"
      })),
      ...socialLinks.length > 0 && { sameAs: socialLinks },
      parentOrganization: {
        "@id": "https://webstdy.com/#identity"
      }
    }
  ]);
};
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "contact",
  __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);
    const staticReviews = [
      {
        author: "\u0628\u062F\u0631 \u0627\u0644\u062D\u0645\u062F\u0627\u0646",
        rating: 5,
        body: "\u0628\u0641\u062E\u0631 \u0646\u0634\u0647\u062F \u0644\u062A\u062C\u0631\u0628\u062A\u0646\u0627 \u0645\u0639 \u0648\u064A\u0628 \u0633\u062A\u062F\u064A \u0641\u064A \u0645\u062C\u0627\u0644 \u062A\u0637\u0648\u064A\u0631 \u0627\u0644\u0645\u0648\u0627\u0642\u0639 \u0648\u0627\u0644\u062A\u0637\u0628\u064A\u0642\u0627\u062A \u062D\u064A\u062B \u0642\u062F\u0645\u0648\u0627 \u0644\u0646\u0627 \u062D\u0644\u0648\u0644 \u0645\u062A\u0645\u064A\u0632\u0629 \u0648\u062E\u062F\u0645\u0629 \u0639\u0645\u0644\u0627\u0621 \u0645\u0645\u062A\u0627\u0632\u0629"
      },
      {
        author: "\u0645\u062D\u0645\u062F \u0627\u0644\u0642\u062D\u0637\u0627\u0646\u064A",
        rating: 4,
        body: "\u0641\u0631\u064A\u0642 \u0648\u064A\u0628 \u0633\u062A\u062F\u064A \u0645\u062D\u062A\u0631\u0641 \u0648\u0633\u0627\u0639\u062F\u0646\u0627 \u0639\u0644\u0649 \u062A\u0633\u0644\u064A\u0645 \u0627\u0644\u0645\u0634\u0631\u0648\u0639 \u0641\u064A \u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F \u0628\u062C\u0648\u062F\u0629 \u0639\u0627\u0644\u064A\u0629"
      }
    ];
    useSeoMeta({
      title: computed(() => t("contactSeo.title")),
      description: computed(() => t("contactSeo.description")),
      ogTitle: computed(() => t("contactSeo.ogTitle")),
      ogDescription: computed(() => t("contactSeo.ogDescription")),
      keywords: computed(() => t("contactSeo.keywords"))
    });
    {
      useContactSchema((_a = settings == null ? void 0 : settings.value) == null ? void 0 : _a.data, staticReviews, t);
    }
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<main${ssrRenderAttrs(_attrs)}>`);
      _push(ssrRenderComponent(_sfc_main$2, null, null, _parent));
      _push(ssrRenderComponent(_sfc_main$1, 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/contact.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};

export { _sfc_main as default };
//# sourceMappingURL=contact-C71gVPSw.mjs.map
