import{a5 as b,r as g,F as C,W as x}from"./index.17037962789732.js";import"./index.170379627897337.js";import"./index.170379627897315.js";import"./index.170379627897318.js";import"./index.170379627897319.js";import"./index.170379627897316.js";import"./index.170379627897317.js";import{b as I}from"./home.1703796278973.js";import{d as h,k as m,o as k,c as w,a as s,b as i,u as r}from"./vue.1703796278973.js";import{_ as y}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./system.1703796278973.js";import"./comm.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const L=h({__name:"ProductChooseDialog",props:{visible:{type:Boolean}},emits:["confirm","update:visible"],setup(j,{emit:a}){const l=()=>{a("confirm",t.value.productId),a("update:visible",!1)},t=m({productId:""}),p=m([]),c=()=>{I().then(({result:e})=>{p.value=e.filter(o=>!(o!=null&&o.accessId)).map(o=>({label:o.name,value:o.id}))})},d=(e,o)=>o.value.toLowerCase().indexOf(e.toLowerCase())>=0;return c(),(e,o)=>{const _=b,u=g,f=C,v=x;return k(),w(v,{visible:"",title:"选择产品",width:"700px",onOk:l,onCancel:o[1]||(o[1]=n=>a("update:visible",!1)),"filter-option":d,maskClosable:!1,class:"access-method-dialog-container"},{default:s(()=>[i(f,{model:r(t),name:"basic",autocomplete:"off",layout:"vertical"},{default:s(()=>[i(u,{label:"产品",name:"productId",rules:[{required:!0,message:"该字段是必填字段"}]},{default:s(()=>[i(_,{value:r(t).productId,"onUpdate:value":o[0]||(o[0]=n=>r(t).productId=n),style:{width:"100%"},options:r(p)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1})}}});const Z=y(L,[["__scopeId","data-v-d9a4f1e4"]]);export{Z as default};