1import{d as L,L as w,o as u,a as D,H as t,w as a,p as f,e as d,f as e,bq as M,J as m,M as l,t as o,br as _,a3 as y,b as C,bs as B,a2 as I}from"./vendor-3ff8172d.js";import{a as p,m as A,o as $,p as b,L as g,j as v}from"./index-64bcbe01.js";import{_ as T}from"./PageHeader.vue_vue_type_script_setup_true_lang-80ea486e.js";import{_ as F}from"./PageContent.vue_vue_type_script_setup_true_lang-e80de6db.js";import{u as N}from"./useFormLocale-16b058bf.js";const V={class:"sr-only"},S={class:"flex items-center justify-end gap-3"},R=L({__name:"Index",props:{mapLayerCategories:null},setup(h){const{availableLocales:j,currentLocale:k,translatableDefaultValue:q,getLabelWithLocale:H}=N();return(r,P)=>{const c=w("can");return u(),D(I,null,[t(e(T),{title:r.$t("craftable-pro","Map Layer Categories")},{default:a(()=>[f((u(),d(e(p),{leftIcon:e(M),as:e(m),href:r.route("craftable-pro.map-layer-categories.create")},{default:a(()=>[l(o(r.$t("craftable-pro","New Map Layer Category")),1)]),_:1},8,["leftIcon","as","href"])),[[c,"craftable-pro.map-layer-category.create"]])]),_:1},8,["title"]),t(e(F),null,{default:a(()=>[t(e(A),{baseUrl:r.route("craftable-pro.map-layer-categories.index"),data:h.mapLayerCategories,dataKey:"mapLayerCategories",withBulkSelect:!1},{bulkActions:a(({bulkAction:n})=>[t(e($),{type:"danger"},{trigger:a(({setIsOpen:i})=>[f((u(),d(e(p),{onClick:()=>i(!0),color:"gray",variant:"outline",size:"sm",leftIcon:e(_)},{default:a(()=>[l(o(r.$t("craftable-pro","Delete")),1)]),_:2},1032,["onClick","leftIcon"])),[[c,"craftable-pro.map-layer-category.destroy"]])]),title:a(()=>[l(o(r.$t("craftable-pro","Delete Map Layer Category")),1)]),content:a(()=>[l(o(r.$t("craftable-pro","Are you sure you want to delete selected Map Layer Category? All data will be permanently removed from our servers forever. This action cannot be undone.")),1)]),buttons:a(({setIsOpen:i})=>[f((u(),d(e(p),{onClick:y(()=>{n("post",r.route("craftable-pro.map-layer-categories.bulk-destroy"),{onFinish:()=>i(!1)})},["prevent"]),color:"danger"},{default:a(()=>[l(o(r.$t("craftable-pro","Delete")),1)]),_:2},1032,["onClick"])),[[c,"craftable-pro.map-layer-category.destroy"]]),t(e(p),{onClick:y(()=>i(),["prevent"]),color:"gray",variant:"outline"},{default:a(()=>[l(o(r.$t("craftable-pro","Cancel")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),tableHead:a(()=>[t(e(b),{sortBy:"id"},{default:a(()=>[l(o(r.$t("craftable-pro","Id")),1)]),_:1}),t(e(b),{sortBy:"title"},{default:a(()=>[l(o(r.$t("craftable-pro","Title")),1)]),_:1}),t(e(b),null,{default:a(()=>[l(o(r.$t("craftable-pro","Ordering")),1)]),_:1}),t(e(b),null,{default:a(()=>[C("span",V,o(r.$t("craftable-pro","Actions")),1)]),_:1})]),tableRow:a(({item:n,action:i})=>[t(e(g),null,{default:a(()=>[l(o(n.id),1)]),_:2},1024),t(e(g),null,{default:a(()=>{var s;return[l(o((s=n.title)==null?void 0:s[e(k)]),1)]}),_:2},1024),t(e(g),null,{default:a(()=>[l(o(n.ordering),1)]),_:2},1024),t(e(g),null,{default:a(()=>[C("div",S,[f(t(e(v),{as:e(m),href:r.route("craftable-pro.map-layer-categories.edit",n),variant:"ghost",color:"gray",icon:e(B)},null,8,["as","href","icon"]),[[c,"craftable-pro.map-layer-category.edit"]]),t(e($),{type:"danger"},{trigger:a(({setIsOpen:s})=>[f(t(e(v),{onClick:()=>s(!0),color:"gray",variant:"ghost",icon:e(_)},null,8,["onClick","icon"]),[[c,"craftable-pro.map-layer-category.destroy"]])]),title:a(()=>[l(o(r.$t("craftable-pro","Delete Map Layer Category")),1)]),content:a(()=>[l(o(r.$t("craftable-pro","Are you sure you want to delete selected Map Layer Category? All data will be permanently removed from our servers forever. This action cannot be undone.")),1)]),buttons:a(({setIsOpen:s})=>[f((u(),d(e(p),{onClick:y(()=>{i("delete",r.route("craftable-pro.map-layer-categories.destroy",n),{onFinish:()=>s(!1)})},["prevent"]),color:"danger"},{default:a(()=>[l(o(r.$t("craftable-pro","Delete")),1)]),_:2},1032,["onClick"])),[[c,"craftable-pro.map-layer-category.destroy"]]),t(e(p),{onClick:y(()=>s(),["prevent"]),color:"gray",variant:"outline"},{default:a(()=>[l(o(r.$t("craftable-pro","Cancel")),1)]),_:2},1032,["onClick"])]),_:2},1024)])]),_:2},1024)]),_:1},8,["baseUrl","data"])]),_:1})],64)}}});
1export{R 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.