PageSourceSearch

https://urvana.net/_next/static/chunks/pages/admin/divisions-2b7de80c6152aca3.js

js urvana.net collected 2026-10-08 19:24:30 UTC 6,396 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[399],{97674:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/divisions",function(){return r(83453)}])},44829:function(n,e,r){"use strict";r.d(e,{l:function(){return f}});var t=r(52322),o=r(6277),s=r(39011),i=r(116),c=r(52123),l=r(80217),u=r(39936),a=r(70256);function f(n){let{children:e,className:r,...f}=n;const{data:d}=(0,i.e)(),h=d&&d.user_id,v=d&&d.email,{data:_}=(0,c.jd)({table:"urvana_roles",select:["id","user_id"]}),y=_?(0,s.tF)(_,(n=>n.user_id)):null;return(0,t.jsxs)("main",{className:(0,o.W)("container mx-auto",r),...f,children:[(0,t.jsx)(u.n,{title:"Admin",index:!1,follow:!1}),y&&h&&y.includes(h)?(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("section",{children:[(0,t.jsxs)("p",{className:"",children:["Sesi\xf3n como ",v]}),(0,t.jsxs)("p",{className:"space-x-4",children:[(0,t.jsx)(l.N,{className:"underline",href:"/admin",children:"Admin Home"}),(0,t.jsx)(l.N,{className:"underline",href:a.V,children:"Urvana Home"})]})]}),(0,t.jsx)("section",{children:e})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"Debes iniciar sesi\xf3n y tener acceso admin"}),(0,t.jsx)("p",{children:(0,t.jsx)(l.N,{href:"/auth",className:"btn btn-3 btn-gray",children:"Login"})})]})]})}},83453:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return u}});var t=r(52322),o=(r(2784),r(27071)),s=r(79381),i=r(31226),c=r(80217),l=r(44829);function u(){const n=(0,o.m8)(),{data:e}=(0,s.ZP)("admin divisions list",(async e=>(await n.from("divisions").select(["id","disabled","evaluable","zonable","postal_code","address_level4","address_level3","address_level2","address_level1","iso_3166_1","iso_3166_2"].join(",")).order("iso_3166_1").order("iso_3166_2").order("address_level1").order("address_level2").order("address_level3").order("address_level4").order("postal_code")).data));return(0,t.jsxs)(l.l,{className:"space-y-4 py-12",children:[(0,t.jsx)("h1",{children:"Divisions"}),(0,t.jsx)("hr",{}),(0,t.jsx)("button",{className:"p-2 bg-skin-500 text-white",type:"button",disabled:!0,children:"Can't create"}),(0,t.jsx)("hr",{}),"Count: ",null===e||void 0===e?void 0:e.length,(0,t.jsx)("hr",{}),(0,t.jsx)("ul",{className:"space-y-3",children:null===e||void 0===e?void 0:e.map((n=>{const e="/admin/divisions/".concat(n.id),r=[n.iso_3166_1,n.iso_3166_2,n.address_level1,n.address_level2,n.address_level3,n.address_level4].filter(i.I);return(0,t.jsx)("li",{children:(0,t.jsxs)(c.N,{href:e,children:[n.disabled?"\ud83d\udd34":"\ud83d\udfe2",n.zonable?"\ud83d\udcc4":"\ud83d\udd34",n.evaluable?"\ud83d\udcb0":"\ud83d\udd34"," ",r.join(", ")]})},n.id)}))})]})}},70256:function(n,e,r){"use strict";r.d(e,{V:function(){return t}});const t="/"},39011:function(n,e,r){"use strict";r.d(e,{AT:function(){return h},B6:function(){return i},KW:function(){return x},Qd:function(){return f},Qo:function(){return g},S3:function(){return u},Up:function(){return _},Uy:function(){return c},Xc:function(){return b},YO:function(){return p},by:function(){return y},gU:function(){return m},lO:function(){return a},my:function(){return s},oA:function(){return d},sd:function(){return N},tF:function(){return j},z9:function(){return v}});var t=r(31226);function o(n,e){return n===e}function*s(n){for(const e of n)Array.isArray(e)?yield e[1]:yield e}function i(n,e){let r=0;for(const t of s(n)){if(!e(t,r,n))return!1;r+=1}return!0}function c(n,e){let r=0;for(const t of s(n)){if(e(t,r,n))return!0;r+=1}return!1}function*l(n,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,t=!1,i=0;for(const o of s(n)){let n=0;for(const i of s(e))r(o,i)&&(t=!0,yield o),n+=1;i+=1}return t}function u(n,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;for(const t of l(n,e,r))return!0;return!1}function*a(n,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,t=!1,c=0;for(const o of s(n)){i(e,(n=>!r(o,n)))&&(t=!0,yield o,c+=1)}return t}function f(n,e){let r=0;for(const t of s(n)){if(e(t,r,n))return t;r+=1}}function d(n,e,r){let t=0,o=r;for(const i of s(n))o=e(o,i,t,n),t+=1;return o}function h(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;for(const t of s(n)){if(r===e)return t;r+=1}}function*v(n,e){let r=0;for(const t of n){const[o,s]=t,i=e(s,o,r,n);yield[o,i],r+=1}return r}function*_(n,e){let r=0;for(const t of n){if(Array.isArray(t)){const[o,s]=t,i=e(s,o,r,n);yield i}else{const o=e(t,t,r,n);yield o}r+=1}return r}function*y(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.I,r=0;for(const t of n){const[o,s]=t;e(s,o,r,n)&&(yield t),r+=1}return r}function*m(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.I,r=0;for(const t of n){if(Array.isArray(t)){const[o,s]=t;e(s,o,r,n)&&(yield t)}else e(t,t,r,n)&&(yield t);r+=1}return r}function j(n,e){return Array.from(s(n),e)}function p(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];const t=new Map;for(const o of e)if(o)for(const[n,e]of o)t.set(n,e);return t}function x(){return new Set}function*b(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];for(const t of e)for(const n of Object.entries(t))yield n}function*N(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];for(const t of e)for(const[n]of Object.entries(t))yield n}function*g(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];for(const t of e)for(const[,n]of Object.entries(t))yield n}},80217:function(n,e,r){"use strict";r.d(e,{N:function(){return h}});var t=r(52322),o=r(2784),s=r(6277),i=r(39097),c=r.n(i),l=r(18994),u=r(5632);function a(n,e){let[r,t]=e;return n.replace("[".concat(r,"]"),t)}function f(n,e){return Object.entries(e).reduce(a,n)}function d(n,e){let{passHref:r=!0,as:o,replace:i,scroll:a,shallow:d,prefetch:h,locale:v,href:_,base:y,params:m,className:j,target:p,...x}=n;const b=function(n,e){const r=(0,u.useRouter)();if(!n)return null;const t=r.query,o=e?{...t,...e}:t;return f(String(n),o)}(_&&y?(0,l.O5)(_,y):_,m),N=(0,s.Z)(j,x.disabled&&"pointer-events-none");return b&&"_blank"!==p?(0,t.jsx)(c(),{href:b,passHref:r,replace:i,scroll:a,shallow:d,prefetch:h,locale:v,as:o,ref:e,target:p,className:N,...x}):(0,t.jsx)("a",{target:p,href:b||void 0,className:N,...x})}const h=o.forwardRef(d)}},function(n){n.O(0,[9097,9774,2888,179],(function(){return e=97674,n(n.s=e);var e}));var e=n.O();_N_E=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.