1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2cffedfa-bae4-47e4-a8a1-32edef14c127",e._sentryDebugIdIdentifier="sentry-dbid-2cffedfa-bae4-47e4-a8a1-32edef14c127")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3440],{83183:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/settings/cancellation-requests",function(){return n(16919)}])},16919:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var a=n(52322);n(2784);var s=n(39097),i=n.n(s),o=n(97729),r=n.n(o),l=n(83878),c=n(28857),d=n(97141),u=n(87779),h=n(93829),g=n(49759),f=n(35882),m=n(10763);let y=(0,m.Z)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);var p=n(65780);let x=(0,m.Z)("git-branch-plus",[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]]);var v=n(15412);let _=(0,m.Z)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);var R=n(78134),j=n(10314),Z=n(49530);function SettingsRow(e){let{section:t}=e,n=t.icon;return(0,a.jsx)(i(),{href:t.href,children:(0,a.jsx)(d.Zb,{className:"transition-colors hover:bg-muted/50 cursor-pointer",children:(0,a.jsxs)(d.aY,{className:"flex items-center gap-4 p-4",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:(0,a.jsx)(n,{className:"h-5 w-5 text-muted-foreground"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-medium",children:t.title}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t.description})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[t.isLoading?(0,a.jsx)(g.Z,{className:"h-4 w-4 animate-spin text-muted-foreground"}):void 0!==t.count&&(0,a.jsx)(u.C,{variant:"secondary",children:t.count}),(0,a.jsx)(f.Z,{className:"h-4 w-4 text-muted-foreground"})]})]})})})}var k=(0,l.Z)(()=>{var e,t,n,s,o;let l=(0,Z.gg)(),d=(0,Z.$i)(),u=(0,Z.JY)(),g=(0,Z.iH)(),f=(0,Z.Re)(),m=[{title:"Categorias de razon",description:"Agrupa las razones de cancelacion en categorias para organizarlas mejor",href:"/admin/settings/cancellation-requests/reason-categories",icon:y,count:null===(e=l.data)||void 0===e?void 0:e.length,isLoading:l.isLoading},{title:"Razones de cancelacion",description:"Opciones que el usuario puede seleccionar como motivo de cancelacion",href:"/admin/settings/cancellation-requests/reason-options",icon:p.Z,count:null===(t=d.data)||void 0===t?void 0:t.length,isLoading:d.isLoading},{title:"Estados del embudo",description:"Define los estados por los que pasa una solicitud de cancelacion",href:"/admin/settings/cancellation-requests/statuses",icon:x,count:null===(n=u.data)||void 0===n?void 0:n.length,isLoading:u.isLoading},{title:"Motivos de retencion",description:"Razones que se pueden registrar al retener a un cliente",href:"/admin/settings/cancellation-requests/retention-reasons",icon:v.Z,count:null===(s=g.data)||void 0===s?void 0:s.length,isLoading:g.isLoading},{title:"Formas de gestion",description:"Acciones de retencion que se pueden registrar al gestionar una solicitud",href:"/admin/settings/cancellation-requests/retention-actions",icon:_,count:null===(o=f.data)||void 0===o?void 0:o.length,isLoading:f.isLoading}];return(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:"Configuracion de Cancelaciones - Admin | Cacttus"})}),(0,a.jsxs)("div",{className:"max-w-3xl mx-auto px-6 py-8",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)(i(),{href:"/admin/settings",children:(0,a.jsxs)(h.z,{variant:"ghost",size:"sm",className:"mb-4 -ml-2",children:[(0,a.jsx)(R.Z,{className:"h-4 w-4 mr-2"}),"Volver a Settings"]})}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Configuracion de Cancelaciones"}),(0,a.jsx)("p",{className:"text-muted-foreground mt-1",children:"Administra las opciones y estados del flujo de cancelacion"})]}),(0,a.jsx)(i(),{href:"/admin/support/cancellation-requests",children:(0,a.jsxs)(h.z,{variant:"outline",children:[(0,a.jsx)(j.Z,{className:"h-4 w-4 mr-2"}),"Ir a solicitudes"]})})]})]}),(0,a.jsx)("div",{className:"space-y-2",children:m.map(e=>(0,a.jsx)(SettingsRow,{section:e},e.href))})]})]})},["callcenter_supervisor"])},49530:function(e,t,n){"use strict";n.d(t,{$i:function(){return useCancellationReasonOptionsQuery},JY:function(){return useCancellationRequestStatusesQuery},Re:function(){return useRetentionActionTypesQuery},gg:function(){return useCancellationReasonCategoriesQuery},iH:function(){return useRetentionReasonOptionsQuery}});var a=n(7040),s=n(44994),i=n(13346),o=n(67669),r=n(40131),l=n(53538);let useCancellationReasonCategoriesQuery=()=>(0,a.a)({queryKey:o.a.cancellationSettings.reasonCategories(),queryFn:async()=>{let e=await (0,s.h)(l.IX(r.PQ),{method:"get",url:i.Z.admin.cancellationSettings.reasonCategories.list()});return e.data}}),useCancellationReasonOptionsQuery=()=>(0,a.a)({queryKey:o.a.cancellationSettings.reasonOptions(),queryFn:async()=>{let e=await (0,s.h)(l.IX(r.oX),{method:"get",url:i.Z.admin.cancellationSettings.reasonOptions.list()});return e.data}}),useCancellationRequestStatusesQuery=()=>(0,a.a)({queryKey:o.a.cancellationSettings.statuses(),queryFn:async()=>{let e=await (0,s.h)(l.IX(r.Qf),{method:"get",url:i.Z.admin.cancellationSettings.statuses.list()});return e.data}}),useRetentionReasonOptionsQuery=()=>(0,a.a)({queryKey:o.a.cancellationSettings.retentionReasons(),queryFn:async()=>{let e=await (0,s.h)(l.IX(r.pr),{method:"get",url:i.Z.admin.cancellationSettings.retentionReasons.list()});return e.data}}),useRetentionActionTypesQuery=()=>(0,a.a)({queryKey:o.a.cancellationSettings.retentionActions(),queryFn:async()=>{let e=await (0,s.h)(l.IX(r.mj),{method:"get",url:i.Z.admin.cancellationSettings.retentionActions.list()});return e.data}})},40131:function(e,t,n){"use strict";n.d(t,{PQ:function(){return s},Qf:function(){return o},mj:function(){return r},oX:function(){return i},pr:function(){return l}});var a=n(53538);let s=a.Ry({id:a.Rx(),key:a.Z_(),label:a.Z_(),is_active:a.O7(),sort_order:a.Rx(),reason_options_count:a.Rx()}),i=a.Ry({id:a.Rx(),key:a.Z_(),label:a.Z_(),category_id:a.Rx(),category_label:a.Z_(),is_active:a.O7(),sort_order:a.Rx()}),o=a.Ry({id:a.Rx(),key:a.Z_(),label:a.Z_(),group:a.Z_(),group_label:a.Z_(),color:a.Z_(),is_default:a.O7(),is_active:a.O7(),sort_order:a.Rx(),requests_count:a.Rx()}),r=a.Ry({id:a.Rx(),key:a.Z_(),label:a.Z_(),is_active:a.O7(),sort_order:a.Rx(),requests_count:a.Rx()}),l=a.Ry({id:a.Rx(),key:a.Z_(),label:a.Z_(),is_active:a.O7(),sort_order:a.Rx(),requests_count:a.Rx()})}},function(e){e.O(0,[6495,8897,2128,95,7127,8857,9774,2888,179],function(){return e(e.s=83183)}
1),_N_E=e.O()}]);
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.