PageSourceSearch

https://transparencia.portsdebalears.com/_next/static/chunks/pages/dashboard/users/create-73e82a62739dc26f.js

js portsdebalears.com collected 2026-09-24 18:39:28 UTC 1,929 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1041],{93865:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/users/create",function(){return r(74833)}])},74833:function(e,s,r){"use strict";r.r(s),r.d(s,{__N_SSP:function(){return j}});var t=r(52676),a=r(34090),n=r(65629),i=r(41501),l=r(42474),u=r(78446),d=r(90394),c=r(78619),o=r(57394),h=r.n(o),x=r(1629),m=r(75271),_=r(55423),f=r(63534),p=r(31785);let w={username:"",email:"",password:"",password_confirmation:"",role:"",portal_creator_limit:"1"},Create=()=>{let{handlePermission:e}=(0,l.a)({middleware:["auth"]}),s=(0,x.useRouter)(),{t:r}=(0,c.$G)(),{alert:a,isOpen:o,showAlert:j}=(0,i.ZP)(),[v,N]=(0,m.useState)(!1),{newNotification:b}=(0,m.useContext)(p.u),g=(0,_.Ry)({username:(0,_.Z_)().required().min(3),email:(0,_.Z_)().email().required()}).required();return(0,m.useEffect)(()=>{e(["user.store"])||s.push("/dashboard")},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h(),{children:(0,t.jsx)("title",{children:r("users.create.pageTitle")})}),(0,t.jsx)("div",{className:"mx-auto max-w-screen-2xl",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col pt-6 pl-6",children:[(0,t.jsx)("div",{className:"text-xl font-bold text-black bg-white sm:text-2xl",children:r("users.create.pageTitle")}),(0,t.jsx)("div",{children:(0,t.jsx)(f.Z,{})})]}),(0,t.jsxs)("div",{className:"p-6",children:[o&&a(),(0,t.jsx)(n.Z,{defaultValues:w,validation:g,onSubmit:(e,t)=>{N(!0),u.W.create(e).then(()=>{b("success",r("common.successOperation")),s.push("/dashboard/users")}).catch(e=>{var s;N(!1),(0,d.xg)((null===(s=e.response)||void 0===s?void 0:s.data)||e,t,j)})},loading:v})]})]})})]})};Create.getLayout=function(e){return(0,t.jsx)(a.Z,{children:e})};var j=!0;s.default=Create}},function(e){e.O(0,[3043,4497,2771,5423,4090,7017,9774,2888,179],function(){return e(e.s=93865)}),_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.