import{m as Y,S as v}from"./index.56449854.js";const p=s=>s?v(s).format("YYYY-MM-DD"):"";function j(s,i,u,M,S){const c=Y(null);function l(n){const{result:o,deleteProps:t}=s?s(n):{result:{},deleteProps:[]},e={...n,...o};if(u){const{formItems:a}=u;return a.forEach(D=>{const{field:r,type_field:f,otherOptions:E={},type:d}=D,{startProp:g,endProp:m}=E;(g||m)&&e[r]&&(e[g]=d==="date_picker"?p(e[r][0]):e[r][0],e[m]=d==="date_picker"?p(e[r][1]):e[r][1],delete e[r]),f&&(e[e[f]]=e[r],delete e[r],delete e[f])}),e}t.forEach(a=>delete e[a]),Object.keys(e).forEach(a=>{Array.isArray(e[a])&&e[a].length===0&&(e[a]="")})}function P(n){var t;const o=l(n);(t=c.value)==null||t.getPageData(o)}function h(n){var t;const o=l(n);(t=c.value)==null||t.intialData(o)}function y(n){var t;const{result:o}=i?i(n):{result:{}};(t=c.value)==null||t.getPageData(i?o:n),i&&i()}return{pageContentRef:c,handleSearchClick:P,handleResetClick:y,handleintial:h}}export{j as u};