"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),r=require("./index-YwS-u3iG.cjs"),i=o=>(e.pushScopeId("data-v-8a66406d"),o=o(),e.popScopeId(),o),d={style:{"margin-top":"-8px"}},p=i(()=>e.createBaseVNode("div",{class:"tip"},"限2字以内",-1)),u={class:"flex items-center content-text",style:{gap:"6px"}},_={class:"input"},m={class:"input"},f=e.defineComponent({__name:"Stock",props:{disabled:{type:Boolean},label:{},tips:{},wrap:{type:Boolean},custom:{type:Boolean},is_title:{type:Boolean}},setup(o){const s=o,n=e.computed({get:()=>{var t;return((t=e.activeWidgetAttrs.value)==null?void 0:t.prefixStock)??null},set:t=>{e.setPrefixStock(t)}}),c=e.computed({get:()=>{var t;return((t=e.activeWidgetAttrs.value)==null?void 0:t.suffixStock)??null},set:t=>{e.setSuffixStock(t)}});return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createBaseVNode("div",d,[e.createVNode(r.Row,e.normalizeProps(e.guardReactiveProps(s)),{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},void 0,!0)]),_:3},16)]),p,e.createBaseVNode("div",u,[e.createBaseVNode("div",_,[e.createVNode(e.unref(e.ElInput),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),maxlength:2,placeholder:"库存"},null,8,["modelValue"])]),e.createTextVNode(" 若干 "),e.createBaseVNode("div",m,[e.createVNode(e.unref(e.ElInput),{maxlength:2,modelValue:c.value,"onUpdate:modelValue":a[1]||(a[1]=l=>c.value=l),placeholder:"件"},null,8,["modelValue"])])])],64))}}),v=e._export_sfc(f,[["__scopeId","data-v-8a66406d"]]),x=e.defineComponent({__name:"GainSettings",setup(o){return(s,n)=>(e.openBlock(),e.createBlock(e.unref(v),{label:"库存文案",is_title:"",tips:"当商品设置了库存后，库存剩余文案会显示在商品价格下方。库存数量按照当前商品的实际库存递减。文案请限定在2字以内。"}))}}),S=e.defineComponent({__name:"GainConfig",setup(o){return(s,n)=>(e.openBlock(),e.createBlock(x))}});exports.default=S;
