import { _ as _sfc_main$1 } from "./index-m9AqQ9dr.js";
import { defineComponent, ref, unref, mergeProps, withCtx, createVNode, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderComponent } from "vue/server-renderer";
import { _ as __nuxt_component_2 } from "./ArrowUpIcon-CPulX-6W.js";
import { a as _export_sfc } from "../server.mjs";
import "reka-ui";
import "./utils-H80jjgLf.js";
import "clsx";
import "tailwind-merge";
import "class-variance-authority";
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";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "ScrollToTop",
  __ssrInlineRender: true,
  setup(__props) {
    const scrollToTop = () => {
      (void 0).scrollTo({
        top: 0,
        behavior: "smooth"
      });
    };
    const bottomOffset = ref("1rem");
    const showArrow = ref(false);
    return (_ctx, _push, _parent, _attrs) => {
      const _component_Button = _sfc_main$1;
      if (unref(showArrow)) {
        _push(`<div${ssrRenderAttrs(mergeProps({
          class: "fixed right-4 z-50 cursor-pointer transition-all duration-300",
          style: { bottom: unref(bottomOffset) }
        }, _attrs))} data-v-b37fcf76>`);
        _push(ssrRenderComponent(_component_Button, {
          "aria-label": _ctx.$t("ariaLabels.scrollToTop"),
          size: "wsIcon",
          class: "hover:bg-accent/90 !text-primary ws-gradient-border-animated cursor-pointer transition-colors",
          onClick: scrollToTop
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(__nuxt_component_2, { "aria-hidden": "true" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(__nuxt_component_2, { "aria-hidden": "true" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(`</div>`);
      } else {
        _push(`<!---->`);
      }
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/global/ScrollToTop.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const ScrollToTop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b37fcf76"]]);
export {
  ScrollToTop as default
};
//# sourceMappingURL=ScrollToTop-f92Wcp6u.js.map
