import { defineComponent, mergeProps, withCtx, createVNode, toDisplayString, useSSRContext, unref, withAsyncContext, computed } from "vue";
import { ssrRenderComponent, ssrInterpolate, ssrRenderAttrs } from "vue/server-renderer";
import __nuxt_component_0 from "./InternalHeaderSection-DIj5MLKD.js";
import __nuxt_component_0$1 from "./Contact-Ik5xD7tN.js";
import { _ as __nuxt_component_3 } from "./SubscribeSection-D6lSAdXw.js";
import { u as useSocialIconsQuery, a as useServicesQuery } from "./contact-k0MTtZDV.js";
import { u as useBranches } from "./useBranches-BHivqtZy.js";
import { u as useLocalePath, b as useRuntimeConfig, c as useSchemaOrg, d as useI18n, e as useSeoMeta } from "../server.mjs";
import { u as useAsyncData } from "./asyncData-t1m_EyLu.js";
import "./useBreadcrumbSchema-CZ-Fj_m_.js";
import "./utils-H80jjgLf.js";
import "clsx";
import "tailwind-merge";
import "reka-ui";
import "lucide-vue-next";
import "@unhead/schema-org";
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 "./SectionHeadline-0zkilFRp.js";
import "./ContactIcon-CO7vyUaQ.js";
import "./Form-BItdTITZ.js";
import "./useUtmPayload-DlQ2OH8k.js";
import "vee-validate";
import "./index-Cce4iXMN.js";
import "./index-B_IDLhd1.js";
import "./FormLabel-PCaiHQXT.js";
import "./PopoverTrigger-D3Tywx5m.js";
import "./index-m9AqQ9dr.js";
import "class-variance-authority";
import "./FlagComponent-tWUs0Zo0.js";
import "./Textarea-D5DXsU7G.js";
import "@vee-validate/zod";
import "base-vue-phone-input";
import "zod";
import "./useApi-Dv-cyvzn.js";
import "axios";
import "vue-sonner";
import "./Skeleton-CRkCoUmX.js";
import "./EmptyState-CWK2sm1Q.js";
import "./BrancheCard-DdXAv4Sd.js";
import "./fetch-C0COJdJ7.js";
import "@vue/shared";
import "D:/marwa/front/webstdy-v2-frontend/node_modules/perfect-debounce/dist/index.mjs";
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 شارع الثورة، الدقي، الجيزة",
    addressLocality: "الجيزة",
    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: "بدر الحمدان",
        rating: 5,
        body: "بفخر نشهد لتجربتنا مع ويب ستدي في مجال تطوير المواقع والتطبيقات حيث قدموا لنا حلول متميزة وخدمة عملاء ممتازة"
      },
      {
        author: "محمد القحطاني",
        rating: 4,
        body: "فريق ويب ستدي محترف وساعدنا على تسليم المشروع في الوقت المحدد بجودة عالية"
      }
    ];
    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.js.map
