(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fda6462","chunk-1c15ac72"],{"0160":function(t,e,i){},"0bc6":function(t,e,i){},"20f6":function(t,e,i){},"553a":function(t,e,i){"use strict";i("a9e3"),i("c7cd");var s=i("5530"),a=(i("b5b6"),i("8dd9")),n=i("3a66"),o=i("d10f"),r=i("58df"),c=i("80d2");e["a"]=Object(r["a"])(a["a"],Object(n["a"])("footer",["height","inset"]),o["a"]).extend({name:"v-footer",props:{height:{default:"auto",type:[Number,String]},inset:Boolean,padless:Boolean,tag:{type:String,default:"footer"}},computed:{applicationProperty:function(){return this.inset?"insetFooter":"footer"},classes:function(){return Object(s["a"])(Object(s["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-footer--absolute":this.absolute,"v-footer--fixed":!this.absolute&&(this.app||this.fixed),"v-footer--padless":this.padless,"v-footer--inset":this.inset})},computedBottom:function(){if(this.isPositioned)return this.app?this.$vuetify.application.bottom:0},computedLeft:function(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.left:0},computedRight:function(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.right:0},isPositioned:function(){return Boolean(this.absolute||this.fixed||this.app)},styles:function(){var t=parseInt(this.height);return Object(s["a"])(Object(s["a"])({},a["a"].options.computed.styles.call(this)),{},{height:isNaN(t)?t:Object(c["g"])(t),left:Object(c["g"])(this.computedLeft),right:Object(c["g"])(this.computedRight),bottom:Object(c["g"])(this.computedBottom)})}},methods:{updateApplication:function(){var t=parseInt(this.height);return isNaN(t)?this.$el?this.$el.clientHeight:0:t}},render:function(t){var e=this.setBackgroundColor(this.color,{staticClass:"v-footer",class:this.classes,style:this.styles});return t(this.tag,e,this.$slots.default)}})},"57fc":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",[s("v-card",{staticClass:"mt-5"},[s("v-card-subtitle",[s("v-card-title",[t._v(" Ticket Detail "+t._s(t.responses.data[0].ticketNo)+" ")]),s("v-timeline",{attrs:{"align-top":"",dense:""}},[s("v-timeline-item",{attrs:{color:"deep-purple lighten-1",small:""}},[s("div",{staticClass:"font-weight-normal"},[s("strong",[t._v("issue Type")])]),s("div",[t._v(t._s(t.responses.data[0].issueType))])]),s("v-timeline-item",{attrs:{color:"green",small:""}},[s("div",{staticClass:"font-weight-normal"},[s("strong",[t._v("Subject")])]),s("div",[t._v(t._s(t.responses.data[0].issueSubType))])]),s("v-timeline-item",{attrs:{color:"deep-purple lighten-1",small:""}},[s("div",{staticClass:"font-weight-normal"},[s("strong",[t._v("Token Generate via")])]),s("div",[t._v(t._s(t.responses.data[0].via))])])],1),s("b",[t._v(t._s(t.$t("description")))]),t._v(" : "),s("span",{domProps:{textContent:t._s(t.responses.data[0].description)}}),s("br"),t.responses.data[0].opdNumber?s("div",[s("b",[t._v(t._s(t.$t("opdNumber")))]),t._v(" : "),s("span",{domProps:{textContent:t._s(t.responses.data[0].opdNumber)}}),s("br")]):t._e(),t.responses.data[0].saleOrderItemId?s("div",[s("b",[t._v(t._s(t.$t("saleOrder Item")))]),t._v(" : "),s("span",{domProps:{textContent:t._s(t.responses.data[0].saleOrderItem.product.identifier)}}),s("br")]):t._e(),s("b",[t._v(t._s(t.$t("create date")))]),t._v(" : "),s("span",{domProps:{textContent:t._s(new Date(t.responses.data[0].createdAt).toDateString())}}),s("br")],1)],1),s("br"),s("v-card",[s("v-card-title",[t._v("Chat")]),[s("v-row",{staticClass:"mb-8"},[s("v-col",{attrs:{cols:"12",sm:"6","offset-sm":"3"}},[s("v-card",[s("v-list",{attrs:{"two-line":""}},[t._l(t.items.slice(0,6),(function(e,a){return[e.header?s("v-subheader",{key:e.header},[t._v(" "+t._s(e.header)+" ")]):e.divider?s("v-divider",{key:a,attrs:{inset:e.inset}}):"user"!=e.via?s("v-list-item",{key:e.subject},[s("v-list-item-avatar",["partner"==e.via?s("img",{attrs:{src:i("c863")}}):s("img",{staticStyle:{"background-color":"#6a1b9a"},attrs:{src:i("cf05")}})]),s("v-list-item-content",[s("v-list-item-subtitle",[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.via))]),t._v(" "+t._s(e.body))])],1)],1):s("v-list-item",{key:e.subject,staticClass:"d-flex flex-row-reverse",attrs:{flat:"",tile:""}},[s("v-list-item-avatar",[s("img",{attrs:{src:i("c121")}})]),s("v-list-item-content",[s("v-list-item-subtitle",{staticClass:"d-flex flex-row-reverse pr-5"},[s("span",{staticClass:"font-weight-bold pl-2"},[t._v(t._s(e.via)+" ")]),t._v(" "+t._s(e.body))])],1)],1)]}))],2)],1)],1)],1),s("v-footer",{staticClass:"ma-0 pa-3",staticStyle:{bottom:"55px",height:"66px"},attrs:{fixed:""}},[s("v-container",{staticClass:"ma-0 pa-0"},[s("v-row",{attrs:{"no-gutters":""}},[s("v-col",{staticClass:"col-12"},[s("div",{staticClass:"d-flex flex-row align-left"},[s("v-text-field",{staticClass:"text-xl",attrs:{placeholder:"Message"},on:{keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.send(e)}},model:{value:t.msg,callback:function(e){t.msg=e},expression:"msg"}}),s("v-btn",{staticClass:"ml-4",attrs:{icon:""},on:{click:t.send}},[s("v-icon",[t._v("mdi-send")])],1)],1)])],1)],1)],1)]],2)],1)},a=[],n=i("8e6a"),o={components:{},name:"Ticket",props:{datafeed:[Array,Boolean],configfeed:[Object,Boolean]},data:function(){return{apisource:{},clear:"allData",responses:[],communications:[],msg:"",items:[{header:"Commmunication"},{},{divider:!0,inset:!0}]}},created:function(){var t=this;this.interval=setInterval((function(){return t.ticketCommunication()}),5e3)},methods:{ticketDetail:function(){var t=this,e={model:"Ticket",read:{modeloptions:{attributes:["id","status","ticketNo","via","issueType","issueSubType","description","userId","userInfo","partnerId","partnerInfo","saleOrderId","saleOrderItemId","opdNumber","saleOrder","saleOrderItem","createdAt"],where:{id:this.$route.query.ticketId}}}};n["a"].post("/vnatk/crud",e).then((function(e){t.responses=e.data}))},ticketCommunication:function(){var t=this,e={model:"Communication",read:{modeloptions:{attributes:["id","subject","body","via","subType1","subType2","subType3","status","fromEmployeeId","toEmployeeId","ticketId","createdById","createdAt"],where:{ticketId:this.$route.query.ticketId,type:"Chat"},order:[["createdAt","ASC"]]}}};n["a"].post("/vnatk/crud",e).then((function(e){t.items=e.data.data,t.msg=""}))},send:function(){var t=this,e={model:"Communication",action_to_execute:{name:"vnatk_add"},arg_item:{subject:"user msg",body:this.msg,via:"user",fromEmployeeId:this.$store.state.User.userId,ticketId:this.responses.data[0].id,createdById:this.$store.state.User.userId}};n["a"].post("/vnatk/executeaction",e).then((function(e){t.ticketCommunication(),console.log(e)}))},update:function(){var t=this,e={model:"Communication",action_to_execute:{name:"vnatk_edit"},arg_item:{id:1,isReadByUser:this.$store.state.User.userId}};n["a"].post("/vnatk/executeaction",e).then((function(e){t.ticketCommunication(),console.log(e)}))}},mounted:function(){this.ticketDetail(),this.ticketCommunication(),this.update()},watch:{}},r=o,c=i("2877"),l=i("6544"),d=i.n(l),u=i("8336"),m=i("b0af"),p=i("99d9"),h=i("62ad"),v=i("a523"),f=i("ce7e"),b=i("553a"),g=i("132d"),_=i("8860"),C=i("da13"),y=i("8270"),k=i("5d23"),I=i("0fd9"),x=i("e0c7"),$=i("8654"),O=i("5530"),j=(i("0160"),i("58df")),B=i("7560"),w=Object(j["a"])(B["a"]).extend({name:"v-timeline",provide:function(){return{timeline:this}},props:{alignTop:Boolean,dense:Boolean,reverse:Boolean},computed:{classes:function(){return Object(O["a"])({"v-timeline--align-top":this.alignTop,"v-timeline--dense":this.dense,"v-timeline--reverse":this.reverse},this.themeClasses)}},render:function(t){return t("div",{staticClass:"v-timeline",class:this.classes},this.$slots.default)}}),S=(i("c96a"),i("9d26")),V=i("a9ad"),D=Object(j["a"])(V["a"],B["a"]),T=D.extend().extend({name:"v-timeline-item",inject:["timeline"],props:{color:{type:String,default:"primary"},fillDot:Boolean,hideDot:Boolean,icon:String,iconColor:String,large:Boolean,left:Boolean,right:Boolean,small:Boolean},computed:{hasIcon:function(){return!!this.icon||!!this.$slots.icon}},methods:{genBody:function(){return this.$createElement("div",{staticClass:"v-timeline-item__body"},this.$slots.default)},genIcon:function(){return this.$slots.icon?this.$slots.icon:this.$createElement(S["a"],{props:{color:this.iconColor,dark:!this.theme.isDark,small:this.small}},this.icon)},genInnerDot:function(){var t=this.setBackgroundColor(this.color);return this.$createElement("div",Object(O["a"])({staticClass:"v-timeline-item__inner-dot"},t),[this.hasIcon&&this.genIcon()])},genDot:function(){return this.$createElement("div",{staticClass:"v-timeline-item__dot",class:{"v-timeline-item__dot--small":this.small,"v-timeline-item__dot--large":this.large}},[this.genInnerDot()])},genDivider:function(){var t=[];return this.hideDot||t.push(this.genDot()),this.$createElement("div",{staticClass:"v-timeline-item__divider"},t)},genOpposite:function(){return this.$createElement("div",{staticClass:"v-timeline-item__opposite"},this.$slots.opposite)}},render:function(t){var e=[this.genBody(),this.genDivider()];return this.$slots.opposite&&e.push(this.genOpposite()),t("div",{staticClass:"v-timeline-item",class:Object(O["a"])({"v-timeline-item--fill-dot":this.fillDot,"v-timeline-item--before":this.timeline.reverse?this.right:this.left,"v-timeline-item--after":this.timeline.reverse?this.left:this.right},this.themeClasses)},e)}}),P=Object(c["a"])(r,s,a,!1,null,null,null);e["default"]=P.exports;d()(P,{VBtn:u["a"],VCard:m["a"],VCardSubtitle:p["b"],VCardTitle:p["d"],VCol:h["a"],VContainer:v["a"],VDivider:f["a"],VFooter:b["a"],VIcon:g["a"],VList:_["a"],VListItem:C["a"],VListItemAvatar:y["a"],VListItemContent:k["a"],VListItemSubtitle:k["b"],VRow:I["a"],VSubheader:x["a"],VTextField:$["a"],VTimeline:w,VTimelineItem:T})},"8ce9":function(t,e,i){},a523:function(t,e,i){"use strict";i("99af"),i("4de4"),i("b64b"),i("2ca0"),i("20f6"),i("4b85");var s=i("e8f2"),a=i("d9f7");e["a"]=Object(s["a"])("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(t,e){var i,s=e.props,n=e.data,o=e.children,r=n.attrs;return r&&(n.attrs={},i=Object.keys(r).filter((function(t){if("slot"===t)return!1;var e=r[t];return t.startsWith("data-")?(n.attrs[t]=e,!1):e||"string"===typeof e}))),s.id&&(n.domProps=n.domProps||{},n.domProps.id=s.id),t(s.tag,Object(a["a"])(n,{staticClass:"container",class:Array({"container--fluid":s.fluid}).concat(i||[])}),o)}})},b5b6:function(t,e,i){},c121:function(t,e,i){t.exports=i.p+"img/user.f9ca9ef6.png"},c863:function(t,e,i){t.exports=i.p+"img/partner.1a4ae1f5.png"},ce7e:function(t,e,i){"use strict";var s=i("5530"),a=(i("8ce9"),i("7560"));e["a"]=a["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(t){var e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:Object(s["a"])({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:Object(s["a"])({role:"separator","aria-orientation":e},this.$attrs),on:this.$listeners})}})},cf05:function(t,e,i){t.exports=i.p+"img/logo.c17bae98.png"},e0c7:function(t,e,i){"use strict";var s=i("5530"),a=(i("0bc6"),i("7560")),n=i("58df");e["a"]=Object(n["a"])(a["a"]).extend({name:"v-subheader",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"v-subheader",class:Object(s["a"])({"v-subheader--inset":this.inset},this.themeClasses),attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},e8f2:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("99af"),i("4de4"),i("a15b"),i("b64b"),i("2ca0"),i("498a");var s=i("2b0e");function a(t){return s["a"].extend({name:"v-".concat(t),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(e,i){var s=i.props,a=i.data,n=i.children;a.staticClass="".concat(t," ").concat(a.staticClass||"").trim();var o=a.attrs;if(o){a.attrs={};var r=Object.keys(o).filter((function(t){if("slot"===t)return!1;var e=o[t];return t.startsWith("data-")?(a.attrs[t]=e,!1):e||"string"===typeof e}));r.length&&(a.staticClass+=" ".concat(r.join(" ")))}return s.id&&(a.domProps=a.domProps||{},a.domProps.id=s.id),e(s.tag,a,n)}})}}}]);