import{p as v,aN as p}from"./index.4d3e3847.js";function E(o,d,i){const s=v(null);let a={};function g(r){var m;const{result:f,deleteProps:n}=o?o(r):{result:{},deleteProps:[]},e={...r,...f};if(i){const{formItems:u}=i;u.forEach(D=>{const{field:t,type_field:l,otherOptions:M={}}=D,{startProp:c,endProp:P}=M;(c||P)&&(e[c]=e[t][0]?p(e[t][0]).format("YYYY-MM-DD hh:mm:ss"):"",e[P]=e[t][1]?p(e[t][1]).format("YYYY-MM-DD hh:mm:ss"):"",delete e[t]),l&&(e[e[l]]=e[t],delete e[t],delete e[l])})}n.forEach(u=>delete e[u]),a=e,(m=s.value)==null||m.getPageData(e)}function h(r){var n;const{result:f}=o?o(r):{result:{}};(n=s.value)==null||n.getPageData(f),d&&d(),a={}}function Y(){return a}return{pageContentRef:s,handleSearchClick:g,handleResetClick:h,getMergeParams:Y}}export{E as u};
