"use strict";(self["webpackChunksgc_mobile"]=self["webpackChunksgc_mobile"]||[]).push([[737],{5737:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var s=a(6252),o=a(9963),l=a(3577);function d(e,t,a,d,n,i){const u=(0,s.up)("ion-button"),r=(0,s.up)("sgc-item-input"),c=(0,s.up)("ion-list"),p=(0,s.up)("ion-label"),h=(0,s.up)("ion-item"),m=(0,s.up)("sgc-loading"),S=(0,s.up)("sgc-page"),w=(0,s.up)("ion-page");return(0,s.wg)(),(0,s.j4)(w,null,{default:(0,s.w5)((()=>[(0,s.Wm)(S,{useRefresh:!0,title:e.title,onSgcRefresh:t[3]||(t[3]=t=>e.onSearch())},{default:(0,s.w5)((()=>[(0,s._)("form",{novalidate:"",onSubmit:t[2]||(t[2]=(0,o.iM)(((...t)=>e.onSearch&&e.onSearch(...t)),["prevent"]))},[(0,s.Wm)(c,{class:"item-form"},{default:(0,s.w5)((()=>[(0,s.Wm)(r,{type:"search",modelValue:e.searchModel.query,"onUpdate:modelValue":t[1]||(t[1]=t=>e.searchModel.query=t),ref:"siteNm",placeholder:"SITE.LBL_SITE_NM"},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{disabled:0===e.dataList.length,type:"button",color:"primary",size:"small",expand:"block",onClick:t[0]||(t[0]=t=>e.showMap()),class:"map-btn"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(e.$t("SITE.BTN_MAP")),1)])),_:1},8,["disabled"])])),_:1},8,["modelValue"])])),_:1})],32),(0,s.Wm)(m,{loadStatus:e.loadStatus,loadType:"list"},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{class:"item-list"},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.dataList,((t,a)=>((0,s.wg)(),(0,s.j4)(h,{key:a,onClick:a=>e.showSiteInfo(t)},{default:(0,s.w5)((()=>[(0,s.Wm)(p,null,{default:(0,s.w5)((()=>[(0,s._)("h3",null,(0,l.zw)(t.siteNm)+" - "+(0,l.zw)(t.constCorp)+" [ "+(0,l.zw)(t.constPrdFromDt)+" ~ "+(0,l.zw)(t.constPrdToDt)+" ]",1),(0,s._)("p",null,(0,l.zw)(t.fieldAddress),1),(0,s._)("p",null,(0,l.zw)(t.contactNumber),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["loadStatus"])])),_:1},8,["title"])])),_:1})}var n=a(9243),i=a(9934),u=(0,n.aZ)({name:"SiteAddressPage",components:{...n.nv},setup(){return{Icon:n.JO}},created(){this.onLoad()},data(){return{title:"TIT_ADDRESS",loadStatus:"ready",searchModel:{query:""},dataList:[],codeKey:{}}},methods:{showMap(e){n.Jd.openModal(i.NH,{siteList:e?[e]:this.dataList})},showSiteInfo(e){n.Jd.openToast("SITE.MSG_SITE_TOAST",e,5e3,e.siteNm,"success",n.JO.map,[{text:this.$t("SITE.BTN_SHOWMAP"),handler:()=>{this.showMap(e)}}])},onSearch(){n.Jd.checkLoadStatusList(this,n.Jd.getList("api/siteAddressList",n.Jd.getSubmitData(this.searchModel,{},{useYn:"Y"})).then((e=>{this.dataList=e})))},onLoad(){this.onSearch()}}}),r=a(7789);const c=(0,r.Z)(u,[["render",d],["__scopeId","data-v-79637af0"]]);var p=c}}]);
//# sourceMappingURL=737.27670a5e.js.map