PageSourceSearch

https://planephotos.net/build/assets/Edit-B44dFRMy.js

js planephotos.net collected 2026-10-02 18:33:01 UTC 2,201 bytes, 1 lines download raw bytes

1import{u as y,i as b,r as g,o as h,c as _,a as s,b as o,w as l,d as a,T,e as x,f as C,v,n as w,k,F as B,B as M}from"./app-BM1Lz8vY.js";import{_ as U}from"./Administration-Dpzuidgj.js";import{u as m}from"./Route-n1FONMKg.js";import{A as $}from"./AdministrationMenu-BH6giun_.js";import{_ as j}from"./FlashMessages-DCn2Ll3Z.js";import{_ as D}from"./FormError-BIjo75sV.js";import{_ as H}from"./LoadingButton-Ax9tC4Ct.js";import"./MemberStatusBar-av5CkuB5.js";/* empty css                                                                           */import"./_plugin-vue_export-helper-DlAUqK2U.js";const S=["innerHTML"],V={class:"mx-auto max-w-md"},Y=Object.assign({layout:U},{__name:"Edit",props:{backUrl:String,can:Object,header:String,photoCategoryType:Object},setup(r){const n=r,e=y({id:n.photoCategoryType.id,name:n.photoCategoryType.name}),d=b("$swal"),p=()=>{e.put(m("admin.data.photo_category_types.update"),{preserveScroll:!0})},u=()=>{d({icon:"question",title:"Are you sure?",html:"Delete this entry?",showCancelButton:!0,confirmButtonText:"Yes, delete it!"}).then(i=>{i.isConfirmed&&M.delete(m("admin.data.photo_category_types.delete",{photoCategoryType:n.photoCategoryType.id}))})};return(i,t)=>{const c=g("Head");return h(),_(B,null,[s(c,{title:r.header},null,8,["title"]),o("div",null,[s($,{backRoute:r.backUrl,onDestroy:u,"disable-delete":!r.can.delete},null,8,["backRoute","disable-delete"]),s(T,{appear:""},{default:l(()=>[o("div",null,[t[1]||(t[1]=o("h1",{class:"mb-0"},"Photo Category Type Update",-1)),o("h2",{class:"mb-8 text-corp-yellow-600",innerHTML:a(e).name},null,8,S)])]),_:1}),s(j),o("div",V,[o("form",{onSubmit:x(p,["prevent"]),class:"w-full"},[t[3]||(t[3]=o("label",{class:"form-label light mt-4"},"photo category type:",-1)),C(o("input",{type:"text",class:w(["db-form-input",{error:a(e).errors.name}]),"onUpdate:modelValue":t[0]||(t[0]=f=>a(e).name=f),required:""},null,2),[[v,a(e).name,void 0,{trim:!0}]]),s(D,{class:"light",content:a(e).errors.name},null,8,["content"]),s(H,{loading:a(e).processing,disabled:!a(e).isDirty,class:"btn-red mx-auto mt-8"},{default:l(()=>[...t[2]||(t[2]=[k("Update",-1)])]),_:1},8,["loading","disabled"])],32)])])],64)}}});export{Y as default};

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.