PageSourceSearch

https://cacttus.cl/_next/static/chunks/pages/403-b1aa62e40da974e5.js

js cacttus.cl collected 2026-09-24 13:29:59 UTC 13,960 bytes, 1 lines download raw bytes

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]="b7481cc7-4c85-466c-9f86-779681aabb15",e._sentryDebugIdIdentifier="sentry-dbid-b7481cc7-4c85-466c-9f86-779681aabb15")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3136],{56262:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/403",function(){return a(50638)}])},50638:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _403}});var n=a(52322),r=a(2784),c=a(97729),i=a.n(c),s=a(10763);let d=(0,s.Z)("shield-x",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);var l=a(64131),h=a(65615),u=a(17861),o=a(39097),y=a.n(o),f=a(5632),p=a(55830),k=a(39776),v=a(27254),m=a(50095),x=a(93829),g=a(93419);let b="https://admin.cacttus.invalid",M="/admin";async function switchAdminAccount(e){let{redirect:t,logout:a,cancelQueries:n,clearCache:r,navigate:c}=e;a(),await n(),r();let i=function(e){if("string"!=typeof e||!(0,g.uI)(e)||(0,g.qt)(e))return M;try{var t;let a=new URL(e,b);if(a.origin!==b||(t=a.pathname,!("/admin"===t||t.startsWith("/admin/"))))return M;return"".concat(a.pathname).concat(a.search).concat(a.hash)}catch(e){return M}}(t);c("".concat("/partner/login","?redirect=").concat(encodeURIComponent(i)))}var w=a(14016),_403=()=>{let e=(0,f.useRouter)(),t=(0,p.NL)(),{data:a}=(0,k.a)(),c=(0,v.t)(e=>e.token),s=(0,v.t)(e=>e.logout),[o,g]=r.useState(!1),[b,M]=r.useState(null),Z=(0,m.Yt)(a),j=!!c||!!a||o||null!==b,handleSwitchAccount=async()=>{g(!0),M(null);try{await switchAdminAccount({redirect:e.query.redirect,logout:s,cancelQueries:()=>t.cancelQueries(),clearCache:()=>t.clear(),navigate:e=>window.location.assign(e)})}catch(e){M("Cerramos tu sesi\xf3n, pero no pudimos abrir el inicio de sesi\xf3n. Intenta nuevamente."),g(!1),(0,w.rj)(e,{silent:!0})}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:"Acceso Denegado - Cactus Insurance"}),(0,n.jsx)("meta",{name:"description",content:"No tienes permisos para acceder a esta p\xe1gina"})]}),(0,n.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-red-50 via-white to-orange-50 flex items-center justify-center px-4",children:(0,n.jsx)("div",{className:"max-w-md w-full text-center",children:(0,n.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm shadow-xl rounded-2xl p-8 border border-white/20",children:[(0,n.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,n.jsx)(d,{className:"w-8 h-8 text-red-600"})}),(0,n.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Acceso Denegado"}),(0,n.jsxs)("p",{className:"text-gray-600 mb-8",children:["No tienes permisos para acceder a esta p\xe1gina.",c&&a&&(0,n.jsxs)("span",{className:"block mt-2 text-sm text-gray-500",children:["Tu rol actual: ",a.is_staff?"Administrador":a.groups.map(e=>e.name).join(", ")]})]}),(0,n.jsxs)("div",{className:"space-y-3",children:[c&&a&&(0,n.jsx)(y(),{href:Z,className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-lg transition-colors flex items-center justify-center",children:a.is_staff?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{className:"w-4 h-4 mr-2"}),"Ir al Admin"]}):a.groups.some(e=>["seller","callcenter_supervisor","callcenter_venta","callcenter_renovacion","callcenter_retencion"].includes(e.name))?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{className:"w-4 h-4 mr-2"}),"Ir al Portal de Partners"]}):Z.startsWith("/admin")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{className:"w-4 h-4 mr-2"}),"Ir al Admin"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{className:"w-4 h-4 mr-2"}),"Ir a mi Perfil"]})}),j&&(0,n.jsx)(x.z,{type:"button",variant:"brand-outline",size:"full",className:"rounded-lg border-blue-600 py-3 px-4 text-base font-medium text-blue-600",loading:o,disabled:o||!e.isReady,"aria-busy":o,onClick:()=>void handleSwitchAccount(),iconLeft:(0,n.jsx)(h.Z,{className:"w-4 h-4"}),children:"Cambiar de cuenta"}),b&&(0,n.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:b}),(0,n.jsxs)(y(),{href:"/",className:"w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium py-3 px-4 roun
1ded-lg transition-colors flex items-center justify-center",children:[(0,n.jsx)(u.Z,{className:"w-4 h-4 mr-2"}),"Ir al Inicio"]}),!c&&(0,n.jsxs)(y(),{href:"/partner/login",className:"w-full bg-green-600 hover:bg-green-700 text-white font-medium py-3 px-4 rounded-lg transition-colors flex items-center justify-center",children:[(0,n.jsx)(h.Z,{className:"w-4 h-4 mr-2"}),"Iniciar Sesi\xf3n"]})]})]})})})]})}},65458:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},5884:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]])},61105:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("book-open",[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]])},40534:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},12062:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},93509:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]])},64131:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]])},8087:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},48689:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},82704:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},93558:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("file-up",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},77896:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]])},73:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]])},22104:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
1]])},17861:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},10314:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},68352:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},9491:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]])},78786:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]])},1490:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},15412:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},20468:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},77612:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},65615:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},8881:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},41733:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},47860:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(10763);let r=(0,n.Z)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}
1],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])}},function(e){e.O(0,[95,9774,2888,179],function(){return e(e.s=56262)}),_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.