"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("lodash-unified"),p=require("vue"),M=require("./use-create-table-modal.js");function b(r){const s={rowSelection:void 0},a={footer:null},n=f.merge(r,{...a,apTableProps:s,destroyOnUnmounted:!1,isRenderModalTitleSuffix:!1}),{destroy:o,openModal:l,closeModal:d,...c}=M.useCreateTableModal(n),i=async u=>{try{await l([],u)}catch(e){if(!(typeof e=="string"&&e.startsWith("Ignored Reject:")))throw e}},t=()=>{d()};return p.onUnmounted(()=>{t(),o()}),{open:i,destroy:o,close:t,...c}}exports.useTableModal=b;
