import "../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, renderSlot, createElementVNode as createBaseVNode } from "../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
import { toDisplayString, normalizeStyle } from "../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
const _hoisted_1 = { class: "go-config-item-box" };
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "SettingItemBox",
  props: {
    name: {
      type: String,
      required: false
    },
    alone: {
      type: Boolean,
      default: false,
      required: false
    },
    itemRightStyle: {
      type: Object,
      default: () => {
      },
      required: false
    }
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_n_space = resolveComponent("n-space");
      const _component_n_text = resolveComponent("n-text");
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createVNode(_component_n_text, {
          class: "item-left",
          depth: "2"
        }, {
          default: withCtx(() => [
            createTextVNode(toDisplayString(__props.name) + " ", 1),
            createVNode(_component_n_space, { size: 5 }, {
              default: withCtx(() => [
                renderSlot(_ctx.$slots, "name", {}, void 0, true)
              ]),
              _: 3
            })
          ]),
          _: 3
        }),
        createBaseVNode("div", {
          class: "item-right",
          style: normalizeStyle({
            gridTemplateColumns: __props.alone ? "1fr" : "1fr 1fr",
            ...__props.itemRightStyle
          })
        }, [
          renderSlot(_ctx.$slots, "default", {}, void 0, true)
        ], 4)
      ]);
    };
  }
});
export {
  _sfc_main as default
};
