import { resolveComponent, withCtx, createVNode, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrInterpolate, ssrRenderList, ssrRenderComponent, ssrRenderClass } from 'vue/server-renderer';

const _sfc_main = {
  __name: "BlogSocialMedia",
  __ssrInlineRender: true,
  props: {
    item: {
      required: true
    },
    routeLink: {
      required: true
    }
  },
  setup(__props) {
    const socialNetworks = [
      { network: "facebook", icon: "facebook", color: "#1877f2" },
      { network: "twitter", icon: "x-twitter", color: "#1da1f2" },
      { network: "telegram", icon: "telegram", color: "#0088cc" },
      // { network: "instagram", icon: "instagram", color: "#1877f2" },
      { network: "whatsapp", icon: "whatsapp", color: "#25d366" }
    ];
    return (_ctx, _push, _parent, _attrs) => {
      const _component_share_network = resolveComponent("share-network");
      _push(`<div${ssrRenderAttrs(_attrs)}><p class="text-primary font-bold mb-5 text-start lg:text-center">${ssrInterpolate(_ctx.$t("TITLES.share"))}</p><div class="flex lg:flex-col flex-row gap-1 lg:gap-3"><!--[-->`);
      ssrRenderList(socialNetworks, (network) => {
        _push(ssrRenderComponent(_component_share_network, {
          key: network.network,
          network: network.network,
          url: `https://alalmiyalhura.com/${__props.routeLink}/${__props.item.slug}`,
          title: __props.item.title,
          description: __props.item.description,
          class: "flex m-auto w-10 h-10 text-primary justify-center rounded-full border border-primary items-center text-md"
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(`<i class="${ssrRenderClass([`fa-${network.icon}`, "fab text-xl"])}"${_scopeId}></i>`);
            } else {
              return [
                createVNode("i", {
                  class: ["fab text-xl", `fa-${network.icon}`]
                }, null, 2)
              ];
            }
          }),
          _: 2
        }, _parent));
      });
      _push(`<!--]--></div></div>`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/blog/BlogSocialMedia.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};

export { _sfc_main as default };
//# sourceMappingURL=BlogSocialMedia-Cj3AFZC1.mjs.map
