(this["webpackJsonpqq-delivery-ui"]=this["webpackJsonpqq-delivery-ui"]||[]).push([[153],{1430:function(e,t,a){"use strict";a.r(t);var r=a(0),s=a.n(r),i=a(1452),n=a(36),l=a(41),o=a(48),c=a(355),h=a(311),u=a(297),p=a(288),d=a(317),m=a(287),g=a(367),v=a(582),E=(a(269),a(465),a(3),a(828)),b=a(843),y=a(829),f=a(830);a(151);class w extends r.Component{constructor(e){super(e),this.state={dialogOpen:!1,contentList:null,errors:{error:!1,errorMessage:"",customer:{name:null,state:null,township:null,street:null,latitude:null,longitude:null}},message:!1,dialogMessage:"",loading:!1,latitude:16.798407777614155,longitude:96.14960052073003,recipient:"",deliveryman:"",trackingId:"",keyword:"",branchGuid:null},this.config=new l.a,this.dataService=new o.a,this.resources=new n.a,this.auth=null,this.userData=null,this.openPopup=this.openPopup.bind(this),this.onSubmit=this.onSubmit.bind(this)}openPopup(e){e&&e.leafletElement&&e.leafletElement.openPopup()}onSubmit(e){this.state.keyword=e}render(){this.props;return s.a.createElement("div",null,s.a.createElement(c.a,null,this.state.loading&&s.a.createElement(h.a,null),s.a.createElement(u.a,{title:(this.state.trackingId?this.state.trackingId+", ":"")+"Parcel delivered location",subheader:"This parcel has been delivered to the following location",avatar:s.a.createElement(p.a,{"aria-label":"settings",onClick:e=>{this.props.history.goBack()}},s.a.createElement(v.a,{color:"primary"}))}),s.a.createElement(d.a,null,s.a.createElement(m.a,{container:!0,spacing:3},s.a.createElement(m.a,{item:!0,md:12,xs:12},s.a.createElement(E.a,{center:[this.state.latitude,this.state.longitude],zoom:10,scrollWheelZoom:!0,style:{height:700,width:"100%"}},s.a.createElement(b.a,{attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a>',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),this.state.latitude&&s.a.createElement("div",null,s.a.createElement(y.a,{position:[this.state.latitude,this.state.longitude]},s.a.createElement(f.a,null,s.a.createElement("div",null,"Recipient: "+this.state.recipient," ",s.a.createElement("br",null),"Deliveryman: "+this.state.deliveryman," ",s.a.createElement("br",null)))))))))),s.a.createElement(g.a,{open:this.state.message,autoHideDuration:3e3,anchorOrigin:{vertical:"top",horizontal:"center"},onClose:e=>{this.setState({message:!1}),this.props.history.goBack()}},s.a.createElement(i.a,{severity:"success",elevation:6,variant:"filled",onClose:e=>{this.setState({message:!1}),this.props.history.goBack()}},this.state.dialogMessage)),s.a.createElement(g.a,{open:this.state.errors.error,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"center"},onClose:e=>{this.state.errors.error=!1,this.state.errors.errorMessage=null,this.setState({loading:!1})}},s.a.createElement(i.a,{severity:"error",elevation:6,variant:"filled",onClose:e=>{this.state.errors.error=!1,this.state.errors.errorMessage=null,this.setState({loading:!1})}},this.state.errors.errorMessage)))}componentDidMount(){const e=this.props.match.params.lat,t=this.props.match.params.lon,a=this.props.match.params.recipient,r=this.props.match.params.deliveryman,s=this.props.match.params.id;this.auth=this.dataService.getAuthoritiesData(),this.userData=this.dataService.getCurrentUserData(),this.state.branchGuid=this.dataService.getSwitchBranchGuid(),this.setState({latitude:e,longitude:t,recipient:a,deliveryman:r,trackingId:s})}componentWillUnmount(){}}t.default=w},355:function(e,t,a){"use strict";var r=a(1),s=a(4),i=a(0),n=a(3),l=a(96),o=a(6),c=i.forwardRef((function(e,t){var a=e.classes,o=e.className,c=e.raised,h=void 0!==c&&c,u=Object(s.a)(e,["classes","className","raised"]);return i.createElement(l.a,Object(r.a)({className:Object(n.a)(a.root,o),elevation:h?8:1,ref:t},u))}));t.a=Object(o.a)({root:{overflow:"hidden"}},{name:"MuiCard"})(c)},582:function(e,t,a){"use strict";var r=a(0),s=a(12);t.a=Object(s.a)(r.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack")}}]);
//# sourceMappingURL=153.bab64507.chunk.js.map