1import{d as h,k,e as b,f as c,a as e,c as y,g as u,b as o,t as v,o as i,r as $,w as l,i as p,l as D,h as d,s as f,v as S,F as L}from"./app-D4_sZpcy.js";import{_ as V}from"./AdminLayout.vue_vue_type_style_index_0_lang-CaRsVnH5.js";import{_ as j}from"./BackButton.vue_vue_type_script_setup_true_lang-BbSWD8F_.js";import{_ as C,a as g}from"./Dropdown-CGk6JxHx.js";import{_ as A}from"./DialogModal.vue_vue_type_script_setup_true_lang-XB6yMkfl.js";import{_ as B}from"./EditButton-BP29abhJ.js";import{_ as G,a as M}from"./SubscriptionCard.vue_vue_type_script_setup_true_lang-CZGUkgCj.js";import{C as x}from"./Card-BZZaydzi.js";import"./FlashMessageCard-DZ4t8e_e.js";import"./PrimaryButton-C0VBxRvM.js";import"./useUser-CzcVeoTj.js";import"./index-twKrKl7X.js";import"./Modal.vue_vue_type_script_setup_true_lang-CsKN53ap.js";const N={class:"flex flex-row items-center justify-between bg-neutral-800 p-6 shadow"},W={class:"flex flex-row items-center"},E={class:"mr-6 rounded-full bg-neutral-700 p-2"},K={class:"text-xl font-bold"},F=h({__name:"StateShowComponent",props:{state:{},edit:{type:Boolean},editHref:{}},setup(a){const s=a,r={0:"Stufe 1: Angebot",1:"Stufe 2: Entwicklung",2:"Stufe 3: Veröffentlicht",3:"Abgelehnt",4:"Abo abgelaufen",5:"Deaktiviert",6:"Demo",7:"Gekauft und unveröffentlicht",8:"Veröffentlicht",9:"Ausgelaufen"},n=k(()=>r[s.state]);return(t,w)=>{const m=b("mdicon");return i(),c("div",N,[e("div",W,[e("div",E,[o(m,{name:"finance"})]),e("h2",K,v(n.value),1)]),a.edit?(i(),y(B,{key:0,href:a.editHref},null,8,["href"])):u("",!0)])}}}),H=["href"],P={key:1,class:"text-primary mt-3"},T=["href"],z={class:"h-full cursor-pointer rounded-full p-2 transition hover:bg-neutral-700"},I={key:3,class:"mt-3 flex items-center justify-between space-x-2"},U=["src"],q=["href"],J=h({__name:"StoreGameAwSystemDetailCard",props:{awSystem:{}},setup(a){const s=$(!1);return(r,n)=>{const t=b("mdicon"),w=b("ac-button");return i(),c("div",null,[n[9]||(n[9]=e("p",{class:"text-primary mt-3"},"Unternehmen",-1)),a.awSystem.team?(i(),y(x,{key:0,class:"p-4"},{default:l(()=>[e("a",{href:r.route("admin.teams.show",a.awSystem.team.id),class:"font-bold"},v(a.awSystem.team.name),9,H)]),_:1})):u("",!0),a.awSystem.store_game_configuration?(i(),c("p",P," Konfiguration ")):u("",!0),a.awSystem.store_game_configuration?(i(),y(x,{key:2,class:"flex flex-wrap justify-between p-4"},{default:l(()=>[e("div",null,[e("p",null," Template: "+v(a.awSystem.store_game_configuration.store_game_template.name),1),e("p",null,[n[4]||(n[4]=p(" Erstellt von: ",-1)),a.awSystem?.store_game_configuration?.published_by?.id?(i(),c("a",{key:0,href:r.route("admin.users.show",a.awSystem.store_game_configuration.published_by.id),class:"font-bold"},v(a.awSystem.store_game_configuration.published_by.name),9,T)):u("",!0)]),e("p",null,"Gekauft am: "+v(a.awSystem.store_game_configuration.published_at),1),e("p",null," Konfiguration gestartet am: "+v(a.awSystem.store_game_configuration.created_at),1)]),a.awSystem.store_game_configuration?.id?(i(),y(C,{key:0},{trigger:l(()=>[e("div",z,[o(t,{name:"dots-vertical"})])]),content:l(()=>[o(g,{as:"button",onClick:n[0]||(n[0]=m=>s.value=!0)},{default:l(()=>[...n[5]||(n[5]=[e("p",{class:"text-red-500"},"Löschen",-1)])]),_:1})]),_:1})):u("",!0)]),_:1})):u("",!0),a.awSystem.logo?(i(),c("div",I,[n[6]||(n[6]=e("p",null,"Logo:",-1)),e("img",{src:a.awSystem.logo,class:"mt-2 max-w-40"},null,8,U),e("a",{href:r.route("admin.images.downloadLogo",a.awSystem.logoId),target:"_blank"},[o(t,{name:"download-circle-outline",size:"40"}
1)],8,q)])):u("",!0),o(A,{show:s.value,onClose:n[3]||(n[3]=m=>s.value=!1)},{title:l(()=>[...n[7]||(n[7]=[e("p",{class:"text-center font-bold"},"Konfiguration löschen",-1)])]),content:l(()=>[...n[8]||(n[8]=[e("div",{class:"text-center"},[e("p",null,"Möchtest du diese Spielkonfiguration wirklich löschen?")],-1)])]),footer:l(()=>[o(w,{primary:!1,secondary:!0,class:"mr-3",label:"Abbrechen",onClick:n[1]||(n[1]=m=>s.value=!1)}),a.awSystem.store_game_configuration?(i(),y(w,{key:0,outlined:!0,primary:!1,label:"Löschen",type:"error",onClick:n[2]||(n[2]=m=>r.$inertia.delete(r.route("storeGameConfiguration.destroy",a.awSystem.store_game_configuration.id)))})):u("",!0)]),_:1},8,["show"])])}}}),O={class:"mb-6 flex justify-between py-6"},Q={class:"h-full cursor-pointer rounded-full p-2 transition duration-200 hover:bg-neutral-600"},R={class:"flex flex-row space-x-6"},X={class:"w-full"},Y={class:"w-full"},Z={key:1,class:"mb-6"},ee={class:"flex max-w-xs items-center justify-center overflow-hidden rounded bg-neutral-800"},te=["src"],ve=h({__name:"Show",setup(a){const s=k(()=>D().props.awSystem),r=$(!1);return(n,t)=>{const w=b("mdicon"),m=b("ac-button");return i(),y(V,{dark:""},{default:l(()=>[e("div",O,[o(j,{href:d(f)("admin.awSystem.index"),text:s.value?.name},null,8,["href","text"]),o(C,null,S({trigger:l(()=>[e("div",Q,[o(w,{name:"dots-vertical"})])]),_:2},[s.value?{name:"content",fn:l(()=>[o(g,{href:d(f)("admin.awSystem.editWorld",s.value.id)},{default:l(()=>[...t[4]||(t[4]=[p(" World verknüpfen ",-1)])]),_:1},8,["href"]),o(g,{href:d(f)("admin.awSystem.edit",s.value.id)},{default:l(()=>[...t[5]||(t[5]=[p(" Bearbeiten ",-1)])]),_:1},8,["href"]),o(g,{as:"button",onClick:t[0]||(t[0]=_=>r.value=!0)},{default:l(()=>[...t[6]||(t[6]=[e("p",{class:"text-red-500"},"Löschen",-1)])]),_:1})]),key:"0"}:void 0]),1024),o(A,{show:r.value,onClose:t[3]||(t[3]=_=>r.value=!1)},S({title:l(()=>[t[7]||(t[7]=e("p",{class:"text-center font-bold"},"Welt löschen",-1))]),content:l(()=>[t[8]||(t[8]=e("div",{class:"text-center"},[e("p",null,"Möchtest du diese Welt wirklich löschen?")],-1))]),_:2},[s.value?{name:"footer",fn:l(()=>[o(m,{primary:!1,secondary:!0,class:"mr-3",label:"Abbrechen",onClick:t[1]||(t[1]=_=>r.value=!1)}),o(m,{outlined:!0,primary:!1,label:"Löschen",type:"error",onClick:t[2]||(t[2]=_=>n.$inertia.delete(d(f)("admin.awSystem.delete",s.value.id)))})]),key:"0"}:void 0]),1032,["show"])]),s.value?(i(),c(L,{key:0},[s.value.isStoreGame?(i(),y(J,{key:0,"aw-system":s.value,class:"mb-6"},null,8,["aw-system"])):u("",!0),o(F,{edit:"","edit-href":d(f)("admin.awSystem.editState",s.value.id),state:s.value.state,class:"mb-6"},null,8,["edit-href","state"]),e("div",R,[e("div",X,[t[9]||(t[9]=e("p",{class:"text-primary mb-3 text-xl"},"Mein Paket",-1)),o(G,{"aw-system":s.value,"edit-href":d(f)("admin.awSystem.editSubscription",s.value),edit:""},null,8,["aw-system","edit-href"])]),e("div",Y,[t[10]||(t[10]=e("p",{class:"text-primary mb-3 text-xl"},"Mein Ansprechpartner",-1)),o(M,{"button-caption":s.value.contact_button_caption,"button-link":s.value.contact_button_url,"edit-href":d(f)("admin.awSystem.editContact",s.value.id),user:s.value.contact_user,edit:""},null,8,["button-caption","button-link","edit-href","user"])])]),s.value.world_header_image_url?(i(),c("div",Z,[t[11]||(t[11]=e("p",{class:"text-primary mb-3 text-xl"},"Vorschaubild",-1)),e("div",ee,[e("img",{src:s.value.world_header_image_url,alt:"Vorschaubild",class:"h-full w-full object-cover"},null,8,te)])])):u("",!0)],64)):u("",!0)]),_:1})}}});
1export{ve 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.