import{r as c}from"./framework.e8f655c8.js";import{s as o,R as a}from"./index.8c202964.js";function v(e){return o({url:a.knowledgeMapping.geoPerson.byNativePlace,method:"get",params:e})}function m(e){return o({url:a.knowledgeMapping.geoPerson.byOrgAddress,method:"get",params:e})}function h(e){return o({url:a.knowledgeMapping.geoPerson.searchAdvice,method:"get",params:e})}function y(e){const i=c(""),l=c(null);function d(s,u){if(!s){u([]);return}const g=[{show:e.nativePlaceChecked.value,key:"nativePlace"},{show:e.officeLocationChecked.value,key:"orgAddress"}].filter(r=>r.show).reduce((r,t)=>{const{key:n}=t;return r[n]=s,r},{});h(g).then(r=>{let t=r.data||[];t=t.map(n=>({value:n.content})),u(t)})}return{searchVal:i,inputSelectItem:l,querySearch:d}}export{m as a,v as b,y as u};
