1"use strict";(self.webpackChunkvue_contests=self.webpackChunkvue_contests||[]).push([[722],{722:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var n=a(4865),r=a(1664),o=a(2587),u=a(4028),c=a(3907),i=a(6570),l=(a(129),a(2201)),s=a(9669),d=a.n(s);const m={__name:"SuperEditUser",props:{submitForm:{type:Function,required:!0}},setup:function(e){(0,l.tv)();var t=(0,l.yj)(),a=(0,c.oR)();(0,n.onMounted)((function(){v()}));var s={userFormData:{admin_level:{required:o.C1}}},m=(0,n.computed)((function(){return a.state.userFormData})),p=(0,u.Xw)(s,a.state),h=function(){a.dispatch("LOADING",!0);var e=localStorage.getItem("laravelAuthToken"),n={headers:{Authorization:"Bearer ".concat(e)}},r=i.ENV_URL+t.path,o={};o.userFormData=m.value,d().patch(r,o,n).then((function(e){a.dispatch("LOADING",!1),alert("Your item was updated!")}))},v=function(){a.dispatch("LOADING",!0);var e,n=i.ENV_URL+t.path,r=localStorage.getItem("laravelAuthToken");e={headers:{Authorization:"Bearer ".concat(r)}},d().get(n,e).then((function(e){a.commit("SET_STATE",{key:"userFormData",data:e.data.userFormData})})).catch((function(e){console.log("app error: ",e)})).finally((function(){a.dispatch("LOADING",!1)}))};return function(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("form",{onSubmit:h},[(0,n.createVNode)((0,n.unref)(r.Z),{vuelidate:(0,n.unref)(p).userFormData.admin_level,id:"admin_level",label:"Admin Level"},null,8,["vuelidate"]),(0,n.createElementVNode)("div",{class:"px-6 py-2 bg-blue-900 text-white cursor-pointer inline-block rounded",onClick:h}," Submit ")],32)}}}}}]); 2//# sourceMappingURL=722.js.map
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.