1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4019],{74019:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var a=n(57437),r=n(51059),s=n(22384),l=n(68238),i=n(41021),c=n(1829),o=n(28297),d=n(59352);n(2265);var u=n(68575);function m(){let e=(0,u.v9)(s.br),t=(0,u.I0)(),[n]=l.Z.useForm(),m=async()=>{t((0,s.K4)({treatmentCancel:!0}));let a=await n.validateFields(),l=await (0,r.d$)({id:e.canceltreatmentBooking.id,user_note:a.userNote});if(!l.success){i.ZP.error(l.message),t((0,s.K4)({}));return}setTimeout(()=>{i.ZP.success("Treatment canceled successfully!"),n.resetFields(),t((0,s.tJ)({})),t((0,s.K4)({}))},1e3)};return(0,a.jsx)("div",{children:(0,a.jsx)(c.Z,{title:"Cancel Treatment",open:e.canceltreatmentBooking.id,onCancel:()=>{t((0,s.tJ)({})),t((0,s.K4)({})),n.resetFields()},footer:null,children:(0,a.jsxs)(l.Z,{form:n,layout:"vertical",onFinish:m,children:[(0,a.jsx)(l.Z.Item,{label:"Reason for Cancellation",name:"userNote",rules:[{required:!0,message:"Please provide a reason"}],children:(0,a.jsx)(o.default.TextArea,{rows:4,placeholder:"Enter the reason for cancellation"})}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(d.ZP,{type:"primary",htmlType:"submit",disabled:e.loading.treatmentCancel,loading:e.loading.treatmentCancel,children:"Submit"})})]})})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.