import _sfc_main$1 from "./SectionHeadline-0zkilFRp.js";
import __nuxt_component_1 from "./SocialSliderWithControls-2I3NCkag.js";
import _sfc_main$2 from "./EmptyState-CWK2sm1Q.js";
import { defineComponent, computed, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderComponent } from "vue/server-renderer";
import { a as useMarketingPostsQuery } from "./marketing-lpt_YDVO.js";
import "../server.mjs";
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 "./GradientFullArrowRight-B3gaunpf.js";
import "./useSwiper.client-B39wiisS.js";
import "./useApi-Dv-cyvzn.js";
import "axios";
import "vue-sonner";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "SocialMediaWork",
  __ssrInlineRender: true,
  setup(__props) {
    const postsQuery = useMarketingPostsQuery();
    computed(() => postsQuery.state);
    const posts = computed(() => postsQuery.data.value || []);
    const isPending = computed(() => postsQuery.isPending.value);
    return (_ctx, _push, _parent, _attrs) => {
      const _component_SectionHeadline = _sfc_main$1;
      const _component_SocialSliderWithControls = __nuxt_component_1;
      const _component_EmptyState = _sfc_main$2;
      _push(`<section${ssrRenderAttrs(mergeProps({ class: "py-section bg-gradient-odd socialWork" }, _attrs))}><div class="container mx-auto px-4">`);
      _push(ssrRenderComponent(_component_SectionHeadline, {
        title: _ctx.$t("socialMedia.postsTitle")
      }, null, _parent));
      if (unref(isPending)) {
        _push(`<div class="bg-surface-background border-surface-border mx-auto flex w-full flex-col gap-4 rounded-[2rem] border p-4 lg:h-[654px] lg:flex-row xl:max-w-[1190px]"><div class="flex h-full flex-1 flex-col gap-y-4"><div class="h-full animate-pulse rounded-2xl bg-gray-200 dark:bg-gray-700"></div><div class="flex flex-col gap-4 md:flex-row lg:h-56"><div class="h-full w-full animate-pulse rounded-2xl bg-gray-200 dark:bg-gray-700"></div><div class="h-full w-full animate-pulse rounded-2xl bg-gray-200 dark:bg-gray-700"></div></div></div><div class="animate-pulse rounded-2xl bg-gray-200 lg:h-[620px] lg:w-[350px] dark:bg-gray-700"></div></div>`);
      } else if (unref(posts).length > 0 && !unref(isPending)) {
        _push(ssrRenderComponent(_component_SocialSliderWithControls, {
          posts: unref(posts),
          "is-pending": unref(isPending)
        }, null, _parent));
      } else {
        _push(`<div>`);
        _push(ssrRenderComponent(_component_EmptyState, { size: "100%" }, null, _parent));
        _push(`</div>`);
      }
      _push(`</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/digital-marketing/SocialMediaWork.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
  _sfc_main as default
};
//# sourceMappingURL=SocialMediaWork-Bfq_sBnE.js.map
