(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(41725),i=t(86677),s=t(812),l=t(77213),o=t(77830),p=t(58754),a=t(46628),c=t(98795),d=t(18880),f=t(31883);r.default=()=>{let e=(0,u.p8r)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,c.J6)(r),[_]=(0,c.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,a.Vo)((0,s.e$)(i.error)));return}e((0,a.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(l.Z,{title:t.name,children:[(0,n.jsx)(p.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:t.name}]}),(0,n.jsx)(u.TJV,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[787,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);