1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="194a097b-de94-424a-aafe-25187808f06b",e._sentryDebugIdIdentifier="sentry-dbid-194a097b-de94-424a-aafe-25187808f06b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[342],{96883:function(e,n,t){t.d(n,{F:function(){return r}});let r=(0,t(22663).Bd)({name:"calendar"});r._innerFactory},39908:function(e,n,t){t.d(n,{Y:function(){return r},d:function(){return c}});let r=t(96883).F.addDomain("order"),c=r._innerFactory},54341:function(e,n,t){var r=t(62595),c=t(98029),s=t(39908);let a=()=>s.Y.detail("public-cancel-order"),i=async e=>{await (0,r.KE)(e)},o=e=>({mutationFn:e=>i(e),mutationKey:a(),...e});n.Z={useMutation:function(e){return(0,c.D)(o(e))},getOptions:o}},95095:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(85893),c=t(22568),s=t(54341),a=t(62595),i=t(98029),o=t(39908);let l=()=>o.Y.detail("public-cancel-service-order"),d=async e=>{await (0,a.MX)(e)},u=e=>({mutationFn:e=>d(e),mutationKey:l(),...e});var m=t(20807),v=t(25269),p=t(47543),x=t(53485),f=t(27484),j=t.n(f),y=t(37303),g=t(11163);t(67294);var b=t(15437),h=t(16310);let w={reason:""},N=h.Ry().shape({reason:h.Z_().required("errors.required")});var Z=e=>{let{detail:n,provider:t,animationColor:a,onRefetch:o}=e,l=(0,g.useRouter)(),{providerKey:d,leadToken:f}=l.query,{locale:h="en"}=l;(0,b.Fg)();let{t:Z}=(0,y.$G)("order"),C=(0,m.Z)(v.l.sm.query),F=(0,x.e)(n),{mutateAsync:k}=s.Z.useMutation(),{mutateAsync:K}=(0,i.D)(u(void 0)),_=async(e,n)=>{let{reason:t}=e;try{F?await k({token:f,reason:t}):await K({token:f,reason:t})}finally{o()}},[,z]=c.l0.useForm({initialValues:w,validationSchema:N,onSubmit:_});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.ZT,{display:"h3",className:"title tw:text-center tw:pt-txs",children:(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.".concat(F?"order":"service",".active.title"),values:{provider:null==t?void 0:t.name},components:{strong:(0,r.jsx)("strong",{className:"provider-name",style:{color:a}}),br:(0,r.jsx)("br",{})}})}),(0,r.jsx)(c.ZT,{display:"body1",className:"description",children:F?(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.order.active.description",values:{date:j()(null==n?void 0:n.event.from).format("DD.MM.YYYY - HH:mm"),expert:(0,p.Z)(null==n?void 0:n.event.expertProfile.profile),workspace:null==n?void 0:n.event.workspace.name},components:{strong:(0,r.jsx)("strong",{className:"strong"}),accent:(0,r.jsx)("strong",{className:"accent"}),br:(0,r.jsx)("br",{})}}):(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.service.active.description",values:{request:null==n?void 0:n.serviceOrder.tag.name},components:{strong:(0,r.jsx)("strong",{className:"strong"}),accent:(0,r.jsx)("strong",{className:"accent"}),br:(0,r.jsx)("br",{})}})}),(0,r.jsxs)(c.l0,{...z,children:[(0,r.jsx)(c._p,{variant:"warning",size:"small",className:"cancel-message",title:Z("cancel.order.active.message.title"),description:Z("cancel.order.active.message.description")}),(0,r.jsx)(c.l0.Field,{className:"reason",name:"reason",showFeedback:!1,children:(0,r.jsx)(c.nv.TextArea,{autoSize:{minRows:2},autoFocus:!0,placeholder:Z("cancel.".concat(F?"order":"service",".active.form.reason.placeholder"))})}),(0,r.jsx)("div",{className:"actions",children:(0,r.jsxs)(c.zx.Group,{layout:C?"horizontal":"vertical",size:"small",children:[(0,r.jsx)(c.l0.Custom,{children:e=>(0,r.jsx)(c.zx,{variant:"danger",className:"submit-button",onClick:e.submitForm,loading:e.isSubmitting,size:"small",children:(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.".concat(F?"order":"service",".active.actions.submitAction")})})}),(0,r.jsx)(c.zx,{variant:"secondary",onClick:()=>l.push("/#app-promo"),children:(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.".concat(F?"order":"service",".active.actions.cancelAction")})})]})}),F?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.iz,{label:Z("cancel.order.active.or"),className:"tw:pt-cs"}),(0,r.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-cs",children:[(0,r.jsx)(c._p,{variant:"default",size:"small",title:Z("cancel.order.active.rescheduleMessage.title"),description:Z("cancel.order.active.rescheduleMessage.description"),className:"tw:mt-cs"}),(0,r.jsx)(c.zx,{size:"small",variant:"tertiary",onClick:()=>{l.push({pathname:"/".concat(h,"/profile/").concat(d,"/order/e-visit/reschedule"),query:l.query})},disabled:!n.order.isEditable,className:"tw:mr-auto tw:ml-auto tw:mt-txs tw:min-w-1/2! tw:w-full",children:(0,r.jsx)(y.cC,{t:Z,i18nKey:"cancel.order.active.actions.changeAction"})})]})]}):null]})]})}},72513:function(e,n,t){t.d(n,{Z:function(){return u}});var r=t(85893),c=t(22568),s=t(47543),a=t(53485),i=t(27484),o=t.n(i),l=t(37303);t(67294);var d=t(69497),u=e=>{let{detail:n,provider:t,animationColor:i}=e,{t:u}=(0,l.$G)("order"),m=(0,a.e)(n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.H4,{type:"info"}),(0,r.jsx)(c.ZT,{display:"h3",style:{textAlign:"center"},className:"title",children:(0,r.jsx)(l.cC,{t:u,i18nKey:"cancel.".concat(m?"order":"service",".canceled.title"),values:{provider:null==t?void 0:t.name},components:{strong:(0,r.jsx)("strong",{className:"provider-name",style:{color:i}}),br:(0,r.jsx)("br",{})}})}),(0,r.jsx)(c.ZT,{display:"body1",className:"description",children:m?(0,r.jsx)(l.cC,{t:u,i18nKey:"cancel.".concat(m?"order":"service",".canceled.description"),values:{date:o()(null==n?void 0:n.event.from).format("DD.MM.YYYY - HH:mm"),expert:(0,s.Z)(null==n?void 0:n.event.expertProfile.profile),workspace:null==n?void 0:n.event.workspace.name},components:{strong:(0,r.jsx)("strong",{className:"strong"}),accent:(0,r.jsx)("strong",{className:"accent"}),br:(0,r.jsx)("br",{})}}):(0,r.jsx)(l.cC,{t:u,i18nKey:"cancel.".concat(m?"order":"service",".canceled.description"),values:{request:null==n?void 0:n.serviceOrder.tag.name},components:{strong:(0,r.jsx)("strong",{className:"strong"}),accent:(0,r.jsx)("strong",{className:"accent"}),br:(0,r.jsx)("br",{})}})}),(0,r.jsx)("div",{className:"actions",children:(0,r.jsx)(d.Z,{})})]})}},60100:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(85893),c=t(22568),s=t(53485),a=t(37303);t(67294);var i=t(69497),o=e=>{let{detail:n,provider:t,animationColor:o}=e,{t:l}=(0,a.$G)("order"),d=(0,s.e)(n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.H4,{type:"failed"}),(0,r.jsx)(c.ZT,{display:"h3",style:{textAlign:"center"},className:"title",children:(0,r.jsx)(a.cC,{t:l,i18nKey:"cancel.".concat(d?"order":"service",".expired.title"),values:{provider:null==t?void 0:t.name,br:(0,r.jsx)("br",{})},components:{strong:(0,r.jsx)("strong",{className:"provider-name",style:{color:o}}),br:(0,r.jsx)("br",{})}})}),(0,r.jsx)(c.ZT,{display:"body1",className:"description",children:l("cancel.".concat(d?"order":"service",".expired.description"))}),(0,r.jsx)("div",{className:"actions",children:(0,r.jsx)(i.Z,{})})]})}},69497:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(85893),c=t(22568),s=t(37303);t(67294);var a=t(15437),i=()=>{let e=(0,a.Fg)(),{t:n}=(0,s.$G)("order");return(0,r.jsx)(c.ZT,{display:"body1",style:{textAlign:"center",color:e.color.tint.secondary},children:(0,r.jsx)(s.cC,{t:n,i18nKey:"cancel.moreInfo",components:{strong:(0,r.jsx)("a",{href:"mailto:[email protected]",style:{textDecoration:"underline",color:e.color.tint.highlight}})}})})}},62595:function(e,n,t){t.d(n,{Go:function(){return a},KE:function(){return s},MX:function(){return i},Xt:function(){return o},m$:function(){return c}});var r=t(6121);function c(e,n){return r.pB.get("/v2/public/e-calendar/e-visit/orders/info",{...n,params:e})}function s(e,n){return r.pB.get("/v2/public/e-calendar/e-visit/orders/cancel",{...n,params:e})}function a(e,n){return r.pB.get("/v2/public/e-calendar/service-order/detail",{...n,params:e})}function i(e,n){return r.pB.get("/v2/public/e-calendar/service-order/cancel",{...n,params:e})}function o(e,n){let{token:t,...c}=e;return r.pB.put("/v2/public/e-calendar/e-visit/orders/reschedule",c,{...n,params:{token:t}})}},53485:function(e,n,t){t.d(n,{e:function(){return r}});function r(e){return!!e&&"event"in e}}}]);
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.