"use strict";(self["webpackChunksgc_mobile"]=self["webpackChunksgc_mobile"]||[]).push([[993],{5366:function(e,l,t){t.r(l),t.d(l,{default:function(){return r}});var o=t(6252),u=t(9963);function s(e,l,t,s,i,a){const d=(0,o.up)("sgc-item-input"),p=(0,o.up)("ion-list"),r=(0,o.up)("sgc-loading"),n=(0,o.up)("sgc-page"),h=(0,o.up)("ion-page");return(0,o.wg)(),(0,o.j4)(h,null,{default:(0,o.w5)((()=>[(0,o.Wm)(n,{title:e.title,toolbars:e.toolbars},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{loadStatus:e.loadStatus,loadType:"write"},{default:(0,o.w5)((()=>[(0,o._)("form",{novalidate:"",onSubmit:l[6]||(l[6]=(0,u.iM)(((...l)=>e.submit&&e.submit(...l)),["prevent"]))},[(0,o.Wm)(p,{class:"item-form"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{ref:"pushSeq",required:!0,label:"PUSH.LBL_PUSH_SEQ",type:"number",modelValue:e.writeModel.pushSeq,"onUpdate:modelValue":l[0]||(l[0]=l=>e.writeModel.pushSeq=l),helper:"SELECT PUSH_SEQ FROM MO_PUSH WHERE USEYN = 'Y'"},null,8,["modelValue"]),(0,o.Wm)(d,{ref:"pushTitle",label:"PUSH.LBL_PUSH_TITLE",type:"text",required:!0,modelValue:e.writeModel.pushTitle,"onUpdate:modelValue":l[1]||(l[1]=l=>e.writeModel.pushTitle=l)},null,8,["modelValue"]),(0,o.Wm)(d,{ref:"pushContents",label:"PUSH.LBL_PUSH_CONTENTS",type:"textarea",required:!0,modelValue:e.writeModel.pushContents,"onUpdate:modelValue":l[2]||(l[2]=l=>e.writeModel.pushContents=l)},null,8,["modelValue"]),(0,o.Wm)(d,{ref:"pushLink",label:"PUSH.LBL_PUSH_LINK",type:"text",modelValue:e.writeModel.pushLink,"onUpdate:modelValue":l[3]||(l[3]=l=>e.writeModel.pushLink=l),helper:"/home | /address | /po/roomrev ..."},null,8,["modelValue"]),(0,o.Wm)(d,{ref:"pushImage",label:"PUSH.LBL_PUSH_IMAGE",type:"text",modelValue:e.writeModel.pushImage,"onUpdate:modelValue":l[4]||(l[4]=l=>e.writeModel.pushImage=l),helper:"/resources/images/login/logo.png | https://~~~"},null,8,["modelValue"]),(0,o.Wm)(d,{ref:"pushType",label:"PUSH.LBL_PUSH_TYPE",required:!0,modelValue:e.writeModel.pushType,"onUpdate:modelValue":l[5]||(l[5]=l=>e.writeModel.pushType=l),helper:"TEST | NOTI - use for table MO_PUSHHIST.PUSH_TYPE"},null,8,["modelValue"])])),_:1})],32)])),_:1},8,["loadStatus"])])),_:1},8,["title","toolbars"])])),_:1})}var i=t(9243),a=(0,i.aZ)({name:"PushDevPage",components:{...i.nv},data(){return{title:"TIT_PUSHDEV",loadStatus:"loaded",writeModel:{pushType:"TEST",pushTitle:"",pushContents:"",pushLink:"",pushImage:"",pushSeq:0},toolbars:[{color:"primary",label:"PUSH.BTN_SEND",click:()=>{this.submit()}}]}},methods:{submit(){return i.Jd.isNull(this.writeModel.pushSeq)?i.Jd.openFormInvalid("대상번호",this.$refs,"pushSeq"):i.Jd.isNull(this.writeModel.pushTitle)?i.Jd.openFormInvalid("제목",this.$refs,"pushTitle"):i.Jd.isNull(this.writeModel.pushContents)?i.Jd.openFormInvalid("내용",this.$refs,"pushContents"):i.Jd.isNull(this.writeModel.pushType)?i.Jd.openFormInvalid("알림종류",this.$refs,"pushType"):void i.Jd.openConfirm("PUSH.MSG_CONFIRM_SEND").then((e=>{e&&i.Jd.getCreate("api/sendpushtest",i.Jd.getSubmitData(this.writeModel,{})).then((e=>{e&&e.pushToken?i.Jd.openToast("PUSH.MSG_SEND_RESULT",e,null,this.title,"success"):i.Jd.openToast("PUSH.MSG_SEND_ERROR",e,null,this.title,"warning")}))}))}}}),d=t(7789);const p=(0,d.Z)(a,[["render",s]]);var r=p}}]);
//# sourceMappingURL=993.fc6f37ec.js.map