From dce39774a2b8fb68ad6210e4f6a58195a52dcf57 Mon Sep 17 00:00:00 2001 From: Friederich Loheide Date: Mon, 28 Sep 2026 16:39:16 +0000 Subject: [PATCH 1/4] Vorschau zeigt immer das ganze Bild, eingepasst mit Rand (1.0.1) Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 2 +- dist/assets/style-DpnhOE_3.css | 2 -- dist/assets/style-HFzXm6mv.css | 2 ++ dist/editorial/EditorialRequests.js | 2 +- dist/inhaus.json | 2 +- dist/pages/Index.js | 2 +- dist/pages/Requests.js | 2 +- dist/pages/Show.js | 2 +- plugin.json | 2 +- resources/js/components/ItemCard.vue | 8 ++++---- resources/js/editorial/EditorialRequests.vue | 2 +- resources/js/pages/Requests.vue | 4 ++-- resources/js/pages/Show.vue | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 dist/assets/style-DpnhOE_3.css create mode 100644 dist/assets/style-HFzXm6mv.css diff --git a/README.md b/README.md index 83d9450..a3d9843 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Verleihsystem für das Mitarbeiterportal **Inhaus** – gebaut für die Bilder d aber für alles nutzbar, was verliehen wird (Bezeichnungen im Backend einstellbar). - **Übersicht** `/verleih`: alle Bilder mit Status (verfügbar / verliehen) und aktuellem Standort, - verfügbare zuerst, Filter und Suche. Kunstwerke werden nie beschnitten. + verfügbare zuerst, Filter und Suche. Die Vorschau füllt die Kachel, die Detailseite zeigt das ganze Bild. - **Anfragen im Portal** statt E-Mail-Links: „Bild anfragen“ mit Wunschort, optionalem Zeitraum und Nachricht. Das Team bekommt eine Benachrichtigung im Portal und eine E-Mail (Antworten gehen direkt an die anfragende Person). diff --git a/dist/assets/style-DpnhOE_3.css b/dist/assets/style-DpnhOE_3.css deleted file mode 100644 index 2d20285..0000000 --- a/dist/assets/style-DpnhOE_3.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--ih-color-black:#000;--ih-color-white:#fff;--ih-spacing:.25rem;--ih-container-md:28rem;--ih-container-lg:32rem;--ih-text-xs:.75rem;--ih-text-xs--line-height:calc(1 / .75);--ih-text-sm:.875rem;--ih-text-sm--line-height:calc(1.25 / .875);--ih-text-xl:1.25rem;--ih-text-xl--line-height:calc(1.75 / 1.25);--ih-font-weight-medium:500;--ih-font-weight-semibold:600;--ih-leading-snug:1.375;--ih-leading-relaxed:1.625;--ih-animate-spin:spin 1s linear infinite;--ih-default-transition-duration:.15s;--ih-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.ih\:pointer-events-none{pointer-events:none}.ih\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ih\:absolute{position:absolute}.ih\:fixed{position:fixed}.ih\:relative{position:relative}.ih\:inset-0{inset:0}.ih\:top-1\/2{top:50%}.ih\:top-2{top:calc(var(--ih-spacing) * 2)}.ih\:top-4{top:calc(var(--ih-spacing) * 4)}.ih\:right-4{right:calc(var(--ih-spacing) * 4)}.ih\:left-2{left:calc(var(--ih-spacing) * 2)}.ih\:left-2\.5{left:calc(var(--ih-spacing) * 2.5)}.ih\:z-50{z-index:50}.ih\:-mx-5{margin-inline:calc(var(--ih-spacing) * -5)}.ih\:mt-0\.5{margin-top:calc(var(--ih-spacing) * .5)}.ih\:mt-3{margin-top:calc(var(--ih-spacing) * 3)}.ih\:mt-6{margin-top:calc(var(--ih-spacing) * 6)}.ih\:mt-auto{margin-top:auto}.ih\:mb-2{margin-bottom:calc(var(--ih-spacing) * 2)}.ih\:mb-3{margin-bottom:calc(var(--ih-spacing) * 3)}.ih\:mb-4{margin-bottom:calc(var(--ih-spacing) * 4)}.ih\:mb-5{margin-bottom:calc(var(--ih-spacing) * 5)}.ih\:mb-6{margin-bottom:calc(var(--ih-spacing) * 6)}.ih\:mb-8{margin-bottom:calc(var(--ih-spacing) * 8)}.ih\:ml-auto{margin-left:auto}.ih\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ih\:block{display:block}.ih\:flex{display:flex}.ih\:grid{display:grid}.ih\:hidden{display:none}.ih\:inline-block{display:inline-block}.ih\:inline-flex{display:inline-flex}.ih\:aspect-\[4\/3\]{aspect-ratio:4/3}.ih\:size-1\.5{width:calc(var(--ih-spacing) * 1.5);height:calc(var(--ih-spacing) * 1.5)}.ih\:size-3\.5{width:calc(var(--ih-spacing) * 3.5);height:calc(var(--ih-spacing) * 3.5)}.ih\:size-4{width:calc(var(--ih-spacing) * 4);height:calc(var(--ih-spacing) * 4)}.ih\:size-6{width:calc(var(--ih-spacing) * 6);height:calc(var(--ih-spacing) * 6)}.ih\:size-8{width:calc(var(--ih-spacing) * 8);height:calc(var(--ih-spacing) * 8)}.ih\:size-10{width:calc(var(--ih-spacing) * 10);height:calc(var(--ih-spacing) * 10)}.ih\:h-9{height:calc(var(--ih-spacing) * 9)}.ih\:max-h-\[70vh\]{max-height:70vh}.ih\:max-h-full{max-height:100%}.ih\:w-28{width:calc(var(--ih-spacing) * 28)}.ih\:w-auto{width:auto}.ih\:w-fit{width:-moz-fit-content;width:fit-content}.ih\:w-full{width:100%}.ih\:max-w-full{max-width:100%}.ih\:min-w-0{min-width:0}.ih\:flex-1{flex:1}.ih\:shrink-0{flex-shrink:0}.ih\:-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.ih\:animate-spin{animation:var(--ih-animate-spin)}.ih\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:flex-col{flex-direction:column}.ih\:flex-wrap{flex-wrap:wrap}.ih\:place-items-center{place-items:center}.ih\:content-start{align-content:flex-start}.ih\:items-center{align-items:center}.ih\:justify-between{justify-content:space-between}.ih\:justify-items-center{justify-items:center}.ih\:gap-1{gap:var(--ih-spacing)}.ih\:gap-1\.5{gap:calc(var(--ih-spacing) * 1.5)}.ih\:gap-2{gap:calc(var(--ih-spacing) * 2)}.ih\:gap-3{gap:calc(var(--ih-spacing) * 3)}.ih\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:gap-5{gap:calc(var(--ih-spacing) * 5)}.ih\:gap-6{gap:calc(var(--ih-spacing) * 6)}.ih\:gap-x-3{column-gap:calc(var(--ih-spacing) * 3)}.ih\:gap-x-4{column-gap:calc(var(--ih-spacing) * 4)}.ih\:gap-y-1{row-gap:var(--ih-spacing)}:where(.ih\:divide-y.ih\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.ih\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ih\:overflow-hidden{overflow:hidden}.ih\:rounded{border-radius:.25rem}.ih\:rounded-full{border-radius:2147483647px}.ih\:rounded-lg{border-radius:var(--radius)}.ih\:rounded-md{border-radius:calc(var(--radius) - 2px)}.ih\:border{border-style:var(--tw-border-style);border-width:1px}.ih\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ih\:border-dashed{--tw-border-style:dashed;border-style:dashed}.ih\:border-brand{border-color:var(--brand)}.ih\:border-input{border-color:var(--input)}.ih\:bg-black\/85{background-color:var(--ih-color-black)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-black\/85.ih\:bg-black\/85{background-color:color-mix(in oklab, var(--ih-color-black) 85%, transparent)}}.ih\:bg-brand{background-color:var(--brand)}.ih\:bg-brand-foreground{background-color:var(--brand-foreground)}.ih\:bg-brand-soft{background-color:var(--brand-soft)}.ih\:bg-card{background-color:var(--card)}.ih\:bg-muted{background-color:var(--muted)}.ih\:bg-muted-foreground{background-color:var(--muted-foreground)}.ih\:bg-white\/15{background-color:var(--ih-color-white)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-white\/15.ih\:bg-white\/15{background-color:color-mix(in oklab, var(--ih-color-white) 15%, transparent)}}.ih\:object-contain{object-fit:contain}.ih\:p-1{padding:var(--ih-spacing)}.ih\:p-2{padding:calc(var(--ih-spacing) * 2)}.ih\:p-3{padding:calc(var(--ih-spacing) * 3)}.ih\:p-4{padding:calc(var(--ih-spacing) * 4)}.ih\:p-5{padding:calc(var(--ih-spacing) * 5)}.ih\:px-1\.5{padding-inline:calc(var(--ih-spacing) * 1.5)}.ih\:px-2{padding-inline:calc(var(--ih-spacing) * 2)}.ih\:px-3{padding-inline:calc(var(--ih-spacing) * 3)}.ih\:px-4{padding-inline:calc(var(--ih-spacing) * 4)}.ih\:px-5{padding-inline:calc(var(--ih-spacing) * 5)}.ih\:py-0\.5{padding-block:calc(var(--ih-spacing) * .5)}.ih\:py-1{padding-block:var(--ih-spacing)}.ih\:py-1\.5{padding-block:calc(var(--ih-spacing) * 1.5)}.ih\:py-2{padding-block:calc(var(--ih-spacing) * 2)}.ih\:py-2\.5{padding-block:calc(var(--ih-spacing) * 2.5)}.ih\:pt-1{padding-top:var(--ih-spacing)}.ih\:pr-3{padding-right:calc(var(--ih-spacing) * 3)}.ih\:pl-8{padding-left:calc(var(--ih-spacing) * 8)}.ih\:text-sm{font-size:var(--ih-text-sm);line-height:var(--tw-leading,var(--ih-text-sm--line-height))}.ih\:text-xl{font-size:var(--ih-text-xl);line-height:var(--tw-leading,var(--ih-text-xl--line-height))}.ih\:text-xs{font-size:var(--ih-text-xs);line-height:var(--tw-leading,var(--ih-text-xs--line-height))}.ih\:text-\[11px\]{font-size:11px}.ih\:text-\[13px\]{font-size:13px}.ih\:text-\[15px\]{font-size:15px}.ih\:leading-relaxed{--tw-leading:var(--ih-leading-relaxed);line-height:var(--ih-leading-relaxed)}.ih\:leading-snug{--tw-leading:var(--ih-leading-snug);line-height:var(--ih-leading-snug)}.ih\:font-medium{--tw-font-weight:var(--ih-font-weight-medium);font-weight:var(--ih-font-weight-medium)}.ih\:font-semibold{--tw-font-weight:var(--ih-font-weight-semibold);font-weight:var(--ih-font-weight-semibold)}.ih\:text-brand-foreground{color:var(--brand-foreground)}.ih\:text-brand-text{color:var(--brand-text)}.ih\:text-destructive{color:var(--destructive)}.ih\:text-muted-foreground{color:var(--muted-foreground)}.ih\:text-white{color:var(--ih-color-white)}.ih\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ih\:underline{text-decoration-line:underline}.ih\:opacity-75{opacity:.75}.ih\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.ih\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.ih\:duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.ih\:group-hover\:scale-\[1\.02\].ih\:group-hover\:scale-\[1\.02\]:is(:where(.ih\:group):hover *){scale:1.02}.ih\:hover\:bg-accent.ih\:hover\:bg-accent:hover{background-color:var(--accent)}.ih\:hover\:text-destructive.ih\:hover\:text-destructive:hover{color:var(--destructive)}.ih\:hover\:text-foreground.ih\:hover\:text-foreground:hover{color:var(--foreground)}.ih\:hover\:underline.ih\:hover\:underline:hover{text-decoration-line:underline}.ih\:hover\:shadow-md.ih\:hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.ih\:focus-visible\:ring-3.ih\:focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.ih\:focus-visible\:outline-none.ih\:focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.ih\:sm\:w-64.ih\:sm\:w-64{width:calc(var(--ih-spacing) * 64)}.ih\:sm\:max-w-lg.ih\:sm\:max-w-lg{max-width:var(--ih-container-lg)}.ih\:sm\:max-w-md.ih\:sm\:max-w-md{max-width:var(--ih-container-md)}.ih\:sm\:grid-cols-2.ih\:sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:sm\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\].ih\:sm\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\]{grid-template-columns:7rem minmax(0,1fr) auto}.ih\:sm\:flex-col.ih\:sm\:flex-col{flex-direction:column}.ih\:sm\:items-center.ih\:sm\:items-center{align-items:center}.ih\:sm\:gap-4.ih\:sm\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:sm\:p-8.ih\:sm\:p-8{padding:calc(var(--ih-spacing) * 8)}}@media (min-width:48rem){.ih\:md\:grid-cols-3.ih\:md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:64rem){.ih\:lg\:sticky.ih\:lg\:sticky{position:sticky}.ih\:lg\:top-24.ih\:lg\:top-24{top:calc(var(--ih-spacing) * 24)}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\]{grid-template-columns:minmax(0,1fr) 22rem}}@media (min-width:80rem){.ih\:xl\:grid-cols-4.ih\:xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}.verleih-text p{margin:.5rem 0}.verleih-text.verleih-text p:first-child{margin-top:0}.verleih-text.verleih-text p:last-child{margin-bottom:0}.verleih-text ul{margin:.5rem 0;padding-left:1.25rem;list-style:outside}.verleih-text ol{margin:.5rem 0;padding-left:1.25rem;list-style:decimal}.verleih-text h2,.verleih-text h3{margin:1rem 0 .5rem;font-weight:600}.verleih-text a{color:var(--color-brand-text);text-decoration:underline}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/assets/style-HFzXm6mv.css b/dist/assets/style-HFzXm6mv.css new file mode 100644 index 0000000..f4c1a5b --- /dev/null +++ b/dist/assets/style-HFzXm6mv.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--ih-color-black:#000;--ih-color-white:#fff;--ih-spacing:.25rem;--ih-container-md:28rem;--ih-container-lg:32rem;--ih-text-xs:.75rem;--ih-text-xs--line-height:calc(1 / .75);--ih-text-sm:.875rem;--ih-text-sm--line-height:calc(1.25 / .875);--ih-text-xl:1.25rem;--ih-text-xl--line-height:calc(1.75 / 1.25);--ih-font-weight-medium:500;--ih-font-weight-semibold:600;--ih-leading-snug:1.375;--ih-leading-relaxed:1.625;--ih-animate-spin:spin 1s linear infinite;--ih-default-transition-duration:.15s;--ih-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.ih\:pointer-events-none{pointer-events:none}.ih\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ih\:absolute{position:absolute}.ih\:fixed{position:fixed}.ih\:relative{position:relative}.ih\:inset-0{inset:0}.ih\:top-1\/2{top:50%}.ih\:top-2{top:calc(var(--ih-spacing) * 2)}.ih\:top-4{top:calc(var(--ih-spacing) * 4)}.ih\:right-4{right:calc(var(--ih-spacing) * 4)}.ih\:left-2{left:calc(var(--ih-spacing) * 2)}.ih\:left-2\.5{left:calc(var(--ih-spacing) * 2.5)}.ih\:z-50{z-index:50}.ih\:-mx-5{margin-inline:calc(var(--ih-spacing) * -5)}.ih\:mt-0\.5{margin-top:calc(var(--ih-spacing) * .5)}.ih\:mt-3{margin-top:calc(var(--ih-spacing) * 3)}.ih\:mt-6{margin-top:calc(var(--ih-spacing) * 6)}.ih\:mt-auto{margin-top:auto}.ih\:mb-2{margin-bottom:calc(var(--ih-spacing) * 2)}.ih\:mb-3{margin-bottom:calc(var(--ih-spacing) * 3)}.ih\:mb-4{margin-bottom:calc(var(--ih-spacing) * 4)}.ih\:mb-5{margin-bottom:calc(var(--ih-spacing) * 5)}.ih\:mb-6{margin-bottom:calc(var(--ih-spacing) * 6)}.ih\:mb-8{margin-bottom:calc(var(--ih-spacing) * 8)}.ih\:ml-auto{margin-left:auto}.ih\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ih\:block{display:block}.ih\:flex{display:flex}.ih\:grid{display:grid}.ih\:hidden{display:none}.ih\:inline-block{display:inline-block}.ih\:inline-flex{display:inline-flex}.ih\:aspect-\[4\/3\]{aspect-ratio:4/3}.ih\:size-1\.5{width:calc(var(--ih-spacing) * 1.5);height:calc(var(--ih-spacing) * 1.5)}.ih\:size-3\.5{width:calc(var(--ih-spacing) * 3.5);height:calc(var(--ih-spacing) * 3.5)}.ih\:size-4{width:calc(var(--ih-spacing) * 4);height:calc(var(--ih-spacing) * 4)}.ih\:size-6{width:calc(var(--ih-spacing) * 6);height:calc(var(--ih-spacing) * 6)}.ih\:size-8{width:calc(var(--ih-spacing) * 8);height:calc(var(--ih-spacing) * 8)}.ih\:size-10{width:calc(var(--ih-spacing) * 10);height:calc(var(--ih-spacing) * 10)}.ih\:size-full{width:100%;height:100%}.ih\:h-9{height:calc(var(--ih-spacing) * 9)}.ih\:max-h-\[70vh\]{max-height:70vh}.ih\:max-h-full{max-height:100%}.ih\:w-28{width:calc(var(--ih-spacing) * 28)}.ih\:w-auto{width:auto}.ih\:w-fit{width:-moz-fit-content;width:fit-content}.ih\:w-full{width:100%}.ih\:max-w-full{max-width:100%}.ih\:min-w-0{min-width:0}.ih\:flex-1{flex:1}.ih\:shrink-0{flex-shrink:0}.ih\:-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.ih\:animate-spin{animation:var(--ih-animate-spin)}.ih\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:flex-col{flex-direction:column}.ih\:flex-wrap{flex-wrap:wrap}.ih\:place-items-center{place-items:center}.ih\:content-start{align-content:flex-start}.ih\:items-center{align-items:center}.ih\:justify-between{justify-content:space-between}.ih\:justify-items-center{justify-items:center}.ih\:gap-1{gap:var(--ih-spacing)}.ih\:gap-1\.5{gap:calc(var(--ih-spacing) * 1.5)}.ih\:gap-2{gap:calc(var(--ih-spacing) * 2)}.ih\:gap-3{gap:calc(var(--ih-spacing) * 3)}.ih\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:gap-5{gap:calc(var(--ih-spacing) * 5)}.ih\:gap-6{gap:calc(var(--ih-spacing) * 6)}.ih\:gap-x-3{column-gap:calc(var(--ih-spacing) * 3)}.ih\:gap-x-4{column-gap:calc(var(--ih-spacing) * 4)}.ih\:gap-y-1{row-gap:var(--ih-spacing)}:where(.ih\:divide-y.ih\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.ih\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ih\:overflow-hidden{overflow:hidden}.ih\:rounded{border-radius:.25rem}.ih\:rounded-full{border-radius:2147483647px}.ih\:rounded-lg{border-radius:var(--radius)}.ih\:rounded-md{border-radius:calc(var(--radius) - 2px)}.ih\:border{border-style:var(--tw-border-style);border-width:1px}.ih\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ih\:border-dashed{--tw-border-style:dashed;border-style:dashed}.ih\:border-brand{border-color:var(--brand)}.ih\:border-input{border-color:var(--input)}.ih\:bg-black\/85{background-color:var(--ih-color-black)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-black\/85.ih\:bg-black\/85{background-color:color-mix(in oklab, var(--ih-color-black) 85%, transparent)}}.ih\:bg-brand{background-color:var(--brand)}.ih\:bg-brand-foreground{background-color:var(--brand-foreground)}.ih\:bg-brand-soft{background-color:var(--brand-soft)}.ih\:bg-card{background-color:var(--card)}.ih\:bg-muted{background-color:var(--muted)}.ih\:bg-muted-foreground{background-color:var(--muted-foreground)}.ih\:bg-white\/15{background-color:var(--ih-color-white)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-white\/15.ih\:bg-white\/15{background-color:color-mix(in oklab, var(--ih-color-white) 15%, transparent)}}.ih\:object-contain{object-fit:contain}.ih\:p-0\.5{padding:calc(var(--ih-spacing) * .5)}.ih\:p-1{padding:var(--ih-spacing)}.ih\:p-1\.5{padding:calc(var(--ih-spacing) * 1.5)}.ih\:p-2{padding:calc(var(--ih-spacing) * 2)}.ih\:p-3{padding:calc(var(--ih-spacing) * 3)}.ih\:p-4{padding:calc(var(--ih-spacing) * 4)}.ih\:p-5{padding:calc(var(--ih-spacing) * 5)}.ih\:px-1\.5{padding-inline:calc(var(--ih-spacing) * 1.5)}.ih\:px-2{padding-inline:calc(var(--ih-spacing) * 2)}.ih\:px-3{padding-inline:calc(var(--ih-spacing) * 3)}.ih\:px-4{padding-inline:calc(var(--ih-spacing) * 4)}.ih\:px-5{padding-inline:calc(var(--ih-spacing) * 5)}.ih\:py-0\.5{padding-block:calc(var(--ih-spacing) * .5)}.ih\:py-1{padding-block:var(--ih-spacing)}.ih\:py-1\.5{padding-block:calc(var(--ih-spacing) * 1.5)}.ih\:py-2{padding-block:calc(var(--ih-spacing) * 2)}.ih\:py-2\.5{padding-block:calc(var(--ih-spacing) * 2.5)}.ih\:pt-1{padding-top:var(--ih-spacing)}.ih\:pt-9{padding-top:calc(var(--ih-spacing) * 9)}.ih\:pr-3{padding-right:calc(var(--ih-spacing) * 3)}.ih\:pl-8{padding-left:calc(var(--ih-spacing) * 8)}.ih\:text-sm{font-size:var(--ih-text-sm);line-height:var(--tw-leading,var(--ih-text-sm--line-height))}.ih\:text-xl{font-size:var(--ih-text-xl);line-height:var(--tw-leading,var(--ih-text-xl--line-height))}.ih\:text-xs{font-size:var(--ih-text-xs);line-height:var(--tw-leading,var(--ih-text-xs--line-height))}.ih\:text-\[11px\]{font-size:11px}.ih\:text-\[13px\]{font-size:13px}.ih\:text-\[15px\]{font-size:15px}.ih\:leading-relaxed{--tw-leading:var(--ih-leading-relaxed);line-height:var(--ih-leading-relaxed)}.ih\:leading-snug{--tw-leading:var(--ih-leading-snug);line-height:var(--ih-leading-snug)}.ih\:font-medium{--tw-font-weight:var(--ih-font-weight-medium);font-weight:var(--ih-font-weight-medium)}.ih\:font-semibold{--tw-font-weight:var(--ih-font-weight-semibold);font-weight:var(--ih-font-weight-semibold)}.ih\:text-brand-foreground{color:var(--brand-foreground)}.ih\:text-brand-text{color:var(--brand-text)}.ih\:text-destructive{color:var(--destructive)}.ih\:text-muted-foreground{color:var(--muted-foreground)}.ih\:text-white{color:var(--ih-color-white)}.ih\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ih\:underline{text-decoration-line:underline}.ih\:opacity-75{opacity:.75}.ih\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.ih\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.ih\:duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.ih\:group-hover\:scale-\[1\.02\].ih\:group-hover\:scale-\[1\.02\]:is(:where(.ih\:group):hover *){scale:1.02}.ih\:hover\:bg-accent.ih\:hover\:bg-accent:hover{background-color:var(--accent)}.ih\:hover\:text-destructive.ih\:hover\:text-destructive:hover{color:var(--destructive)}.ih\:hover\:text-foreground.ih\:hover\:text-foreground:hover{color:var(--foreground)}.ih\:hover\:underline.ih\:hover\:underline:hover{text-decoration-line:underline}.ih\:hover\:shadow-md.ih\:hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.ih\:focus-visible\:ring-3.ih\:focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.ih\:focus-visible\:outline-none.ih\:focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.ih\:sm\:w-64.ih\:sm\:w-64{width:calc(var(--ih-spacing) * 64)}.ih\:sm\:max-w-lg.ih\:sm\:max-w-lg{max-width:var(--ih-container-lg)}.ih\:sm\:max-w-md.ih\:sm\:max-w-md{max-width:var(--ih-container-md)}.ih\:sm\:grid-cols-2.ih\:sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:sm\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\].ih\:sm\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\]{grid-template-columns:7rem minmax(0,1fr) auto}.ih\:sm\:flex-col.ih\:sm\:flex-col{flex-direction:column}.ih\:sm\:items-center.ih\:sm\:items-center{align-items:center}.ih\:sm\:gap-4.ih\:sm\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:sm\:p-8.ih\:sm\:p-8{padding:calc(var(--ih-spacing) * 8)}}@media (min-width:48rem){.ih\:md\:grid-cols-3.ih\:md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:64rem){.ih\:lg\:sticky.ih\:lg\:sticky{position:sticky}.ih\:lg\:top-24.ih\:lg\:top-24{top:calc(var(--ih-spacing) * 24)}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\]{grid-template-columns:minmax(0,1fr) 22rem}}@media (min-width:80rem){.ih\:xl\:grid-cols-4.ih\:xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}.verleih-text p{margin:.5rem 0}.verleih-text.verleih-text p:first-child{margin-top:0}.verleih-text.verleih-text p:last-child{margin-bottom:0}.verleih-text ul{margin:.5rem 0;padding-left:1.25rem;list-style:outside}.verleih-text ol{margin:.5rem 0;padding-left:1.25rem;list-style:decimal}.verleih-text h2,.verleih-text h3{margin:1rem 0 .5rem;font-weight:600}.verleih-text a{color:var(--color-brand-text);text-decoration:underline}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/editorial/EditorialRequests.js b/dist/editorial/EditorialRequests.js index cf06507..249cc90 100644 --- a/dist/editorial/EditorialRequests.js +++ b/dist/editorial/EditorialRequests.js @@ -1 +1 @@ -import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p,formatRelative as m}from"@inhaus/ui";var h={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},g=[`src`],_={class:`ih:min-w-0 ih:flex-1`},v={class:`ih:truncate ih:text-xs ih:text-muted-foreground`},y={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},b={key:1,class:`ih:text-sm ih:text-muted-foreground`},x={__name:`EditorialRequests`,props:{pending:{type:Array,required:!0}},setup(x){return(S,C)=>(s(),t(u(p),{title:`Verleih – offene Anfragen`,"action-label":`Zu den Anfragen`,"action-href":`/verleih/anfragen`},{default:d(()=>[x.pending.length?(s(),r(`ul`,h,[(s(!0),r(e,null,c(x.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.item?.thumb_url?(s(),r(`img`,{key:0,src:e.item.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:bg-muted ih:object-contain`},null,8,g)):n(``,!0),i(`div`,_,[o(u(f),{href:e.item?.url??`/verleih/anfragen`,class:`ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.item?.title),1)]),_:2},1032,[`href`]),i(`p`,v,l(e.user?.name)+` · nach `+l(e.location),1)]),i(`span`,y,l(u(m)(e.created_at)),1)]))),128))])):(s(),r(`p`,b,`Keine offenen Anfragen.`))]),_:1}))}};export{x as default}; \ No newline at end of file +import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p,formatRelative as m}from"@inhaus/ui";var h={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},g=[`src`],_={class:`ih:min-w-0 ih:flex-1`},v={class:`ih:truncate ih:text-xs ih:text-muted-foreground`},y={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},b={key:1,class:`ih:text-sm ih:text-muted-foreground`},x={__name:`EditorialRequests`,props:{pending:{type:Array,required:!0}},setup(x){return(S,C)=>(s(),t(u(p),{title:`Verleih – offene Anfragen`,"action-label":`Zu den Anfragen`,"action-href":`/verleih/anfragen`},{default:d(()=>[x.pending.length?(s(),r(`ul`,h,[(s(!0),r(e,null,c(x.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.item?.thumb_url?(s(),r(`img`,{key:0,src:e.item.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:bg-muted ih:object-contain ih:p-0.5`},null,8,g)):n(``,!0),i(`div`,_,[o(u(f),{href:e.item?.url??`/verleih/anfragen`,class:`ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.item?.title),1)]),_:2},1032,[`href`]),i(`p`,v,l(e.user?.name)+` · nach `+l(e.location),1)]),i(`span`,y,l(u(m)(e.created_at)),1)]))),128))])):(s(),r(`p`,b,`Keine offenen Anfragen.`))]),_:1}))}};export{x as default}; \ No newline at end of file diff --git a/dist/inhaus.json b/dist/inhaus.json index fa902f2..a2b5c79 100644 --- a/dist/inhaus.json +++ b/dist/inhaus.json @@ -7,6 +7,6 @@ "pages/Show": "pages/Show.js" }, "css": [ - "assets/style-DpnhOE_3.css" + "assets/style-HFzXm6mv.css" ] } \ No newline at end of file diff --git a/dist/pages/Index.js b/dist/pages/Index.js index f29579b..603c5ce 100644 --- a/dist/pages/Index.js +++ b/dist/pages/Index.js @@ -1 +1 @@ -import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,r as n,t as r}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as i}from"../chunks/inbox-CWQqWjak.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,normalizeClass as f,openBlock as p,ref as m,renderList as h,toDisplayString as g,unref as _,vModelText as v,watch as y,withCtx as b,withDirectives as x}from"vue";import{Link as S,router as C,usePage as w}from"@inertiajs/vue3";import{AppLayout as T,Button as E,EmptyState as D,PageHeader as O,formatDate as k,toast as A}from"@inhaus/ui";var j=e({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),M=e({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),N=e({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),P=e({name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]}),F={class:`ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md`},I=[`src`,`alt`],L={class:`ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3`},R={key:0,class:`ih:mt-auto ih:flex ih:items-center ih:gap-1 ih:pt-1 ih:text-xs ih:text-muted-foreground`},z={class:`ih:truncate`},B={__name:`ItemCard`,props:{item:{type:Object,required:!0}},setup(e){return(i,a)=>(p(),c(`article`,F,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:relative ih:grid ih:aspect-[4/3] ih:place-items-center ih:overflow-hidden ih:bg-muted ih:p-3`},{default:b(()=>[e.item.thumb_url?(p(),c(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,loading:`lazy`,class:`ih:max-h-full ih:max-w-full ih:object-contain ih:shadow-sm ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]`},null,8,I)):(p(),o(_(n),{key:1,class:`ih:size-8 ih:text-muted-foreground`,"stroke-width":1.5})),d(r,{lent:e.item.lent,class:`ih:absolute ih:top-2 ih:left-2`},null,8,[`lent`])]),_:1},8,[`href`]),l(`div`,L,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:line-clamp-2 ih:text-[15px] ih:leading-snug ih:font-semibold ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:1},8,[`href`]),e.item.location?(p(),c(`p`,R,[d(_(t),{class:`ih:size-3.5 ih:shrink-0`}),l(`span`,z,g(e.item.location),1)])):s(``,!0)])]))}},V={key:0,class:`ih:rounded-full ih:bg-brand ih:px-1.5 ih:text-[11px] ih:text-brand-foreground`},H={key:0,class:`ih:mb-6 ih:rounded-lg ih:border ih:bg-card ih:p-4`,"aria-labelledby":`meine-anfragen`},U={class:`ih:divide-y`},W={class:`ih:text-muted-foreground`},G={key:0,class:`ih:text-muted-foreground`},K={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},q=[`onClick`],J={class:`ih:mb-5 ih:flex ih:flex-wrap ih:items-center ih:gap-3`},Y={class:`ih:flex ih:flex-wrap ih:gap-1.5`,"aria-label":`Status`},X=[`aria-pressed`,`onClick`],Z={class:`ih:tabular-nums ih:opacity-75`},Q={class:`ih:relative ih:ml-auto ih:w-full ih:sm:w-64`},$=[`placeholder`,`aria-label`],ee={key:1,class:`ih:grid ih:grid-cols-2 ih:gap-3 ih:sm:gap-4 ih:md:grid-cols-3 ih:xl:grid-cols-4`},te={key:2,class:`ih:rounded-lg ih:border ih:bg-card`},ne={key:3,class:`ih:mt-6 ih:flex ih:items-center ih:gap-1.5 ih:text-xs ih:text-muted-foreground`},re={__name:`Index`,props:{items:{type:Array,required:!0},filters:{type:Object,required:!0},counts:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},pendingRequests:{type:Number,default:null},myRequests:{type:Array,default:()=>[]}},setup(e){let t=e,n=w();y(()=>n.props.flash?.status,e=>e&&A.success(e),{immediate:!0});let r=m(t.filters.q),F;y(r,e=>{clearTimeout(F),F=setTimeout(()=>I({q:e}),300)});function I(e){let n={...t.filters,...e};C.get(`/verleih`,Object.fromEntries(Object.entries(n).filter(([,e])=>e)),{preserveState:!0,preserveScroll:!0,replace:!0})}let L=[{value:null,label:`Alle`,count:`all`},{value:`verfuegbar`,label:`Verfügbar`,count:`available`},{value:`verliehen`,label:`Verliehen`,count:`lent`}],R=e=>window.confirm(`Anfrage zurückziehen?`)&&C.delete(`/verleih/anfragen/${e.id}`,{preserveScroll:!0});return(t,n)=>(p(),o(_(T),{title:e.labels.title},{default:b(()=>[d(_(O),{title:e.labels.title,description:`Alle ${e.labels.plural} auf einen Blick – verfügbar oder verliehen, und wo sie gerade sind.`},{actions:b(()=>[e.canManage?(p(),c(a,{key:0},[d(_(E),{variant:`outline`,"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/anfragen`},{default:b(()=>[d(_(i)),n[1]||=u(` Anfragen`,-1),e.pendingRequests?(p(),c(`span`,V,g(e.pendingRequests),1)):s(``,!0)]),_:1})]),_:1}),d(_(E),{"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/neu`},{default:b(()=>[d(_(M)),u(` `+g(e.labels.singular)+` erfassen`,1)]),_:1})]),_:1})],64)):s(``,!0)]),_:1},8,[`title`,`description`]),e.myRequests.length?(p(),c(`section`,H,[n[2]||=l(`h2`,{id:`meine-anfragen`,class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Ihre Anfragen`,-1),l(`ul`,U,[(p(!0),c(a,null,h(e.myRequests,e=>(p(),c(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:py-2 ih:text-sm`},[d(_(S),{href:e.item.url,class:`ih:font-medium ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:2},1032,[`href`]),l(`span`,W,`nach `+g(e.location),1),l(`span`,{class:f([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand ih:text-brand-foreground`:e.status===`pending`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},g(e.status_label),3),e.note?(p(),c(`span`,G,`„`+g(e.note)+`“`,1)):s(``,!0),l(`span`,K,g(_(k)(e.created_at)),1),e.status===`pending`?(p(),c(`button`,{key:1,type:`button`,class:`ih:text-xs ih:font-medium ih:text-muted-foreground ih:hover:text-destructive`,onClick:t=>R(e)},`Zurückziehen`,8,q)):s(``,!0)]))),128))])])):s(``,!0),l(`div`,J,[l(`nav`,Y,[(p(),c(a,null,h(L,t=>l(`button`,{key:t.label,type:`button`,class:f([`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-full ih:border ih:px-3 ih:py-1 ih:text-[13px]`,e.filters.status===t.value?`ih:border-brand ih:bg-brand ih:text-brand-foreground`:`ih:bg-card ih:hover:bg-accent`]),"aria-pressed":e.filters.status===t.value,onClick:e=>I({status:t.value})},[u(g(t.label)+` `,1),l(`span`,Z,g(e.counts[t.count]),1)],10,X)),64))]),l(`div`,Q,[d(_(N),{class:`ih:pointer-events-none ih:absolute ih:top-1/2 ih:left-2.5 ih:size-4 ih:-translate-y-1/2 ih:text-muted-foreground`}),x(l(`input`,{"onUpdate:modelValue":n[0]||=e=>r.value=e,type:`search`,placeholder:`${e.labels.plural} oder Orte suchen`,"aria-label":`${e.labels.plural} durchsuchen`,class:`ih:h-9 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:pr-3 ih:pl-8 ih:text-sm ih:shadow-xs ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`},null,8,$),[[v,r.value]])])]),e.items.length?(p(),c(`div`,ee,[(p(!0),c(a,null,h(e.items,e=>(p(),o(B,{key:e.id,item:e},null,8,[`item`]))),128))])):(p(),c(`div`,te,[d(_(D),{icon:_(j),title:e.filters.q||e.filters.status?`Keine passenden ${e.labels.plural}`:`Noch keine ${e.labels.plural}`,text:e.canManage&&!e.filters.q&&!e.filters.status?`Legen Sie mit „${e.labels.singular} erfassen“ los – oder übernehmen Sie den Bestand aus WordPress (Administration → Portal → Verleih).`:``},null,8,[`icon`,`title`,`text`])])),e.canManage?(p(),c(`p`,ne,[d(_(P),{class:`ih:size-3.5`}),n[3]||=u(` Bezeichnungen und Übernahme aus WordPress: Administration → Portal → Verleih `,-1)])):s(``,!0)]),_:1},8,[`title`]))}};export{re as default}; \ No newline at end of file +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,r as n,t as r}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as i}from"../chunks/inbox-CWQqWjak.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,normalizeClass as f,openBlock as p,ref as m,renderList as h,toDisplayString as g,unref as _,vModelText as v,watch as y,withCtx as b,withDirectives as x}from"vue";import{Link as S,router as C,usePage as w}from"@inertiajs/vue3";import{AppLayout as T,Button as E,EmptyState as D,PageHeader as O,formatDate as k,toast as A}from"@inhaus/ui";var j=e({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),M=e({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),N=e({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),P=e({name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]}),F={class:`ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md`},I=[`src`,`alt`],L={key:1,class:`ih:grid ih:size-full ih:place-items-center`},R={class:`ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3`},z={key:0,class:`ih:mt-auto ih:flex ih:items-center ih:gap-1 ih:pt-1 ih:text-xs ih:text-muted-foreground`},B={class:`ih:truncate`},V={__name:`ItemCard`,props:{item:{type:Object,required:!0}},setup(e){return(i,a)=>(p(),c(`article`,F,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:relative ih:block ih:aspect-[4/3] ih:overflow-hidden ih:bg-muted ih:p-3 ih:pt-9`},{default:b(()=>[e.item.thumb_url?(p(),c(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,loading:`lazy`,class:`ih:size-full ih:object-contain ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]`},null,8,I)):(p(),c(`span`,L,[d(_(n),{class:`ih:size-8 ih:text-muted-foreground`,"stroke-width":1.5})])),d(r,{lent:e.item.lent,class:`ih:absolute ih:top-2 ih:left-2`},null,8,[`lent`])]),_:1},8,[`href`]),l(`div`,R,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:line-clamp-2 ih:text-[15px] ih:leading-snug ih:font-semibold ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:1},8,[`href`]),e.item.location?(p(),c(`p`,z,[d(_(t),{class:`ih:size-3.5 ih:shrink-0`}),l(`span`,B,g(e.item.location),1)])):s(``,!0)])]))}},ee={key:0,class:`ih:rounded-full ih:bg-brand ih:px-1.5 ih:text-[11px] ih:text-brand-foreground`},H={key:0,class:`ih:mb-6 ih:rounded-lg ih:border ih:bg-card ih:p-4`,"aria-labelledby":`meine-anfragen`},U={class:`ih:divide-y`},W={class:`ih:text-muted-foreground`},G={key:0,class:`ih:text-muted-foreground`},K={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},q=[`onClick`],J={class:`ih:mb-5 ih:flex ih:flex-wrap ih:items-center ih:gap-3`},Y={class:`ih:flex ih:flex-wrap ih:gap-1.5`,"aria-label":`Status`},X=[`aria-pressed`,`onClick`],Z={class:`ih:tabular-nums ih:opacity-75`},Q={class:`ih:relative ih:ml-auto ih:w-full ih:sm:w-64`},$=[`placeholder`,`aria-label`],te={key:1,class:`ih:grid ih:grid-cols-2 ih:gap-3 ih:sm:gap-4 ih:md:grid-cols-3 ih:xl:grid-cols-4`},ne={key:2,class:`ih:rounded-lg ih:border ih:bg-card`},re={key:3,class:`ih:mt-6 ih:flex ih:items-center ih:gap-1.5 ih:text-xs ih:text-muted-foreground`},ie={__name:`Index`,props:{items:{type:Array,required:!0},filters:{type:Object,required:!0},counts:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},pendingRequests:{type:Number,default:null},myRequests:{type:Array,default:()=>[]}},setup(e){let t=e,n=w();y(()=>n.props.flash?.status,e=>e&&A.success(e),{immediate:!0});let r=m(t.filters.q),F;y(r,e=>{clearTimeout(F),F=setTimeout(()=>I({q:e}),300)});function I(e){let n={...t.filters,...e};C.get(`/verleih`,Object.fromEntries(Object.entries(n).filter(([,e])=>e)),{preserveState:!0,preserveScroll:!0,replace:!0})}let L=[{value:null,label:`Alle`,count:`all`},{value:`verfuegbar`,label:`Verfügbar`,count:`available`},{value:`verliehen`,label:`Verliehen`,count:`lent`}],R=e=>window.confirm(`Anfrage zurückziehen?`)&&C.delete(`/verleih/anfragen/${e.id}`,{preserveScroll:!0});return(t,n)=>(p(),o(_(T),{title:e.labels.title},{default:b(()=>[d(_(O),{title:e.labels.title,description:`Alle ${e.labels.plural} auf einen Blick – verfügbar oder verliehen, und wo sie gerade sind.`},{actions:b(()=>[e.canManage?(p(),c(a,{key:0},[d(_(E),{variant:`outline`,"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/anfragen`},{default:b(()=>[d(_(i)),n[1]||=u(` Anfragen`,-1),e.pendingRequests?(p(),c(`span`,ee,g(e.pendingRequests),1)):s(``,!0)]),_:1})]),_:1}),d(_(E),{"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/neu`},{default:b(()=>[d(_(M)),u(` `+g(e.labels.singular)+` erfassen`,1)]),_:1})]),_:1})],64)):s(``,!0)]),_:1},8,[`title`,`description`]),e.myRequests.length?(p(),c(`section`,H,[n[2]||=l(`h2`,{id:`meine-anfragen`,class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Ihre Anfragen`,-1),l(`ul`,U,[(p(!0),c(a,null,h(e.myRequests,e=>(p(),c(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:py-2 ih:text-sm`},[d(_(S),{href:e.item.url,class:`ih:font-medium ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:2},1032,[`href`]),l(`span`,W,`nach `+g(e.location),1),l(`span`,{class:f([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand ih:text-brand-foreground`:e.status===`pending`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},g(e.status_label),3),e.note?(p(),c(`span`,G,`„`+g(e.note)+`“`,1)):s(``,!0),l(`span`,K,g(_(k)(e.created_at)),1),e.status===`pending`?(p(),c(`button`,{key:1,type:`button`,class:`ih:text-xs ih:font-medium ih:text-muted-foreground ih:hover:text-destructive`,onClick:t=>R(e)},`Zurückziehen`,8,q)):s(``,!0)]))),128))])])):s(``,!0),l(`div`,J,[l(`nav`,Y,[(p(),c(a,null,h(L,t=>l(`button`,{key:t.label,type:`button`,class:f([`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-full ih:border ih:px-3 ih:py-1 ih:text-[13px]`,e.filters.status===t.value?`ih:border-brand ih:bg-brand ih:text-brand-foreground`:`ih:bg-card ih:hover:bg-accent`]),"aria-pressed":e.filters.status===t.value,onClick:e=>I({status:t.value})},[u(g(t.label)+` `,1),l(`span`,Z,g(e.counts[t.count]),1)],10,X)),64))]),l(`div`,Q,[d(_(N),{class:`ih:pointer-events-none ih:absolute ih:top-1/2 ih:left-2.5 ih:size-4 ih:-translate-y-1/2 ih:text-muted-foreground`}),x(l(`input`,{"onUpdate:modelValue":n[0]||=e=>r.value=e,type:`search`,placeholder:`${e.labels.plural} oder Orte suchen`,"aria-label":`${e.labels.plural} durchsuchen`,class:`ih:h-9 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:pr-3 ih:pl-8 ih:text-sm ih:shadow-xs ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`},null,8,$),[[v,r.value]])])]),e.items.length?(p(),c(`div`,te,[(p(!0),c(a,null,h(e.items,e=>(p(),o(V,{key:e.id,item:e},null,8,[`item`]))),128))])):(p(),c(`div`,ne,[d(_(D),{icon:_(j),title:e.filters.q||e.filters.status?`Keine passenden ${e.labels.plural}`:`Noch keine ${e.labels.plural}`,text:e.canManage&&!e.filters.q&&!e.filters.status?`Legen Sie mit „${e.labels.singular} erfassen“ los – oder übernehmen Sie den Bestand aus WordPress (Administration → Portal → Verleih).`:``},null,8,[`icon`,`title`,`text`])])),e.canManage?(p(),c(`p`,re,[d(_(P),{class:`ih:size-3.5`}),n[3]||=u(` Bezeichnungen und Übernahme aus WordPress: Administration → Portal → Verleih `,-1)])):s(``,!0)]),_:1},8,[`title`]))}};export{ie as default}; \ No newline at end of file diff --git a/dist/pages/Requests.js b/dist/pages/Requests.js index 04c3227..38e24ec 100644 --- a/dist/pages/Requests.js +++ b/dist/pages/Requests.js @@ -1 +1 @@ -import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as ee,t as te}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as ne,r as re,t as ie}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as r}from"../chunks/inbox-CWQqWjak.js";import{Fragment as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,normalizeClass as d,openBlock as f,ref as p,renderList as m,toDisplayString as h,unref as g,watch as _,withCtx as v,withModifiers as y}from"vue";import{Link as b,useForm as x,usePage as S}from"@inertiajs/vue3";import{AppLayout as C,Button as w,Dialog as T,DialogContent as E,DialogDescription as D,DialogFooter as O,DialogHeader as k,DialogTitle as A,EmptyState as j,FormField as M,PageHeader as N,PersonAvatar as P,Textarea as F,formatDate as I,formatRelative as L,toast as R}from"@inhaus/ui";var z=e({name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]}),B=e({name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]}),V={"aria-labelledby":`offen`,class:`ih:mb-8`},H={id:`offen`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},ae={class:`ih:text-muted-foreground`},U={key:0,class:`ih:grid ih:gap-3`},W=[`src`,`alt`],G={class:`ih:grid ih:min-w-0 ih:gap-1.5`},K={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-2`},q={class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},J={class:`ih:font-medium`},oe={key:0,class:`ih:text-muted-foreground`},se={class:`ih:text-xs ih:text-muted-foreground`},ce={class:`ih:flex ih:flex-wrap ih:gap-x-4 ih:gap-y-1 ih:text-sm ih:text-muted-foreground`},le={class:`ih:inline-flex ih:items-center ih:gap-1`},ue={key:0,class:`ih:inline-flex ih:items-center ih:gap-1`},de={key:0,class:`ih:flex ih:gap-1.5 ih:text-sm`},fe={key:1,class:`ih:text-xs ih:text-muted-foreground`},pe={class:`ih:flex ih:gap-2 ih:sm:flex-col`},me={key:1,class:`ih:rounded-lg ih:border ih:bg-card`},he={key:0,"aria-labelledby":`zuletzt`},ge={class:`ih:divide-y ih:rounded-lg ih:border ih:bg-card`},_e={class:`ih:text-muted-foreground`},ve={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},Y={__name:`Requests`,props:{pending:{type:Array,required:!0},recent:{type:Array,default:()=>[]},labels:{type:Object,required:!0}},setup(e){let Y=S();_(()=>Y.props.flash?.status,e=>e&&R.success(e),{immediate:!0});let X=p(null),Z=x({note:``});function Q(e,t){Z.reset(),Z.clearErrors(),X.value={request:e,accept:t}}function ye(){let{request:e,accept:t}=X.value;Z.post(`/verleih/anfragen/${e.id}/${t?`zusagen`:`absagen`}`,{preserveScroll:!0,onSuccess:()=>X.value=null})}let $=e=>[e.from?`ab ${I(e.from)}`:null,e.until?`bis ${I(e.until)}`:null].filter(Boolean).join(` `);return(p,_)=>(f(),a(g(C),{title:`Anfragen`},{default:v(()=>[u(g(b),{href:`/verleih`,class:`ih:mb-4 ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:v(()=>[u(g(ee),{class:`ih:size-4`}),l(` `+h(e.labels.title),1)]),_:1}),u(g(N),{title:`Anfragen`,description:`Zusagen trägt das ${e.labels.singular} gleich als verliehen ein – mit Wunschort und Person. Die anfragende Person wird benachrichtigt.`},null,8,[`description`]),c(`section`,V,[c(`h2`,H,[_[3]||=l(`Offen `,-1),c(`span`,ae,`(`+h(e.pending.length)+`)`,1)]),e.pending.length?(f(),s(`div`,U,[(f(!0),s(i,null,m(e.pending,e=>(f(),s(`article`,{key:e.id,class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:sm:grid-cols-[7rem_minmax(0,1fr)_auto] ih:sm:items-center`},[u(g(b),{href:e.item?.url??`#`,class:`ih:grid ih:aspect-[4/3] ih:w-28 ih:place-items-center ih:overflow-hidden ih:rounded-md ih:bg-muted`},{default:v(()=>[e.item?.thumb_url?(f(),s(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,W)):(f(),a(g(re),{key:1,class:`ih:size-6 ih:text-muted-foreground`}))]),_:2},1032,[`href`]),c(`div`,G,[c(`div`,K,[u(g(b),{href:e.item?.url??`#`,class:`ih:font-semibold ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),e.item?(f(),a(ie,{key:0,lent:e.item.lent,class:`ih:border`},null,8,[`lent`])):o(``,!0)]),c(`p`,q,[u(g(P),{person:e.user,class:`ih:size-6`},null,8,[`person`]),c(`span`,null,[c(`span`,J,h(e.user?.name),1),e.user?.department?(f(),s(`span`,oe,` · `+h(e.user.department),1)):o(``,!0)]),c(`span`,se,h(g(L)(e.created_at)),1)]),c(`p`,ce,[c(`span`,le,[u(g(ne),{class:`ih:size-3.5`}),l(` `+h(e.location),1)]),$(e)?(f(),s(`span`,ue,[u(g(t),{class:`ih:size-3.5`}),l(` `+h($(e)),1)])):o(``,!0)]),e.message?(f(),s(`p`,de,[u(g(B),{class:`ih:mt-0.5 ih:size-3.5 ih:shrink-0 ih:text-muted-foreground`}),l(` „`+h(e.message)+`“`,1)])):o(``,!0),e.item?.lent?(f(),s(`p`,fe,`Gerade verliehen`+h(e.item.location?` (${e.item.location})`:``)+` – eine Zusage trägt den neuen Ort ein.`,1)):o(``,!0)]),c(`div`,pe,[u(g(w),{onClick:t=>Q(e,!0)},{default:v(()=>[u(g(z)),_[4]||=l(` Zusagen`,-1)]),_:1},8,[`onClick`]),u(g(w),{variant:`outline`,onClick:t=>Q(e,!1)},{default:v(()=>[u(g(n)),_[5]||=l(` Absagen`,-1)]),_:1},8,[`onClick`])])]))),128))])):(f(),s(`div`,me,[u(g(j),{icon:g(r),title:`Keine offenen Anfragen`,text:`Neue Anfragen kommen im Portal und per E-Mail.`},null,8,[`icon`])]))]),e.recent.length?(f(),s(`section`,he,[_[6]||=c(`h2`,{id:`zuletzt`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Zuletzt beantwortet`,-1),c(`ul`,ge,[(f(!0),s(i,null,m(e.recent,e=>(f(),s(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:px-4 ih:py-2.5 ih:text-sm`},[u(g(b),{href:e.item?.url??`#`,class:`ih:font-medium ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),c(`span`,_e,h(e.user?.name)+` · `+h(e.location),1),c(`span`,{class:d([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},h(e.status_label),3),c(`span`,ve,h(e.decider?`${e.decider.name}, `:``)+h(g(I)(e.decided_at??e.created_at)),1)]))),128))])])):o(``,!0),u(g(T),{open:!!X.value,"onUpdate:open":_[2]||=e=>!e&&(X.value=null)},{default:v(()=>[X.value?(f(),a(g(E),{key:0,class:`ih:sm:max-w-md`},{default:v(()=>[u(g(k),null,{default:v(()=>[u(g(A),null,{default:v(()=>[l(h(X.value.accept?`Zusagen`:`Absagen`)+`: `+h(X.value.request.item?.title),1)]),_:1}),u(g(D),null,{default:v(()=>[X.value.accept?(f(),s(i,{key:0},[l(`Wird als verliehen an `+h(X.value.request.user?.name)+` nach „`+h(X.value.request.location)+`“ eingetragen.`,1)],64)):(f(),s(i,{key:1},[l(h(X.value.request.user?.name)+` bekommt die Absage im Portal und per E-Mail.`,1)],64))]),_:1})]),_:1}),c(`form`,{id:`verleih-entscheidung`,onSubmit:y(ye,[`prevent`])},[u(g(M),{id:`vl-note`,label:`Hinweis (optional)`,error:g(Z).errors.note||g(Z).errors.status},{default:v(()=>[u(g(F),{id:`vl-note`,modelValue:g(Z).note,"onUpdate:modelValue":_[0]||=e=>g(Z).note=e,rows:`3`,maxlength:`1000`,placeholder:X.value.accept?`z. B. Wir bringen es am Montag vorbei.`:`z. B. Ist bis Ende März schon vergeben.`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])],32),u(g(O),null,{default:v(()=>[u(g(w),{variant:`outline`,onClick:_[1]||=e=>X.value=null},{default:v(()=>[..._[7]||=[l(`Abbrechen`,-1)]]),_:1}),u(g(w),{type:`submit`,form:`verleih-entscheidung`,variant:X.value.accept?`default`:`destructive`,disabled:g(Z).processing},{default:v(()=>[g(Z).processing?(f(),a(g(te),{key:0,class:`ih:animate-spin`})):o(``,!0),l(` `+h(X.value.accept?`Zusagen`:`Absagen`),1)]),_:1},8,[`variant`,`disabled`])]),_:1})]),_:1})):o(``,!0)]),_:1},8,[`open`])]),_:1}))}};export{Y as default}; \ No newline at end of file +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as ee,t as te}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as ne,r as re,t as ie}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as r}from"../chunks/inbox-CWQqWjak.js";import{Fragment as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,normalizeClass as d,openBlock as f,ref as p,renderList as m,toDisplayString as h,unref as g,watch as _,withCtx as v,withModifiers as y}from"vue";import{Link as b,useForm as x,usePage as S}from"@inertiajs/vue3";import{AppLayout as C,Button as w,Dialog as T,DialogContent as E,DialogDescription as D,DialogFooter as O,DialogHeader as k,DialogTitle as A,EmptyState as j,FormField as M,PageHeader as N,PersonAvatar as P,Textarea as F,formatDate as I,formatRelative as L,toast as R}from"@inhaus/ui";var z=e({name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]}),B=e({name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]}),V={"aria-labelledby":`offen`,class:`ih:mb-8`},H={id:`offen`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},ae={class:`ih:text-muted-foreground`},U={key:0,class:`ih:grid ih:gap-3`},W=[`src`,`alt`],G={class:`ih:grid ih:min-w-0 ih:gap-1.5`},K={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-2`},q={class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},J={class:`ih:font-medium`},oe={key:0,class:`ih:text-muted-foreground`},se={class:`ih:text-xs ih:text-muted-foreground`},ce={class:`ih:flex ih:flex-wrap ih:gap-x-4 ih:gap-y-1 ih:text-sm ih:text-muted-foreground`},le={class:`ih:inline-flex ih:items-center ih:gap-1`},ue={key:0,class:`ih:inline-flex ih:items-center ih:gap-1`},de={key:0,class:`ih:flex ih:gap-1.5 ih:text-sm`},fe={key:1,class:`ih:text-xs ih:text-muted-foreground`},pe={class:`ih:flex ih:gap-2 ih:sm:flex-col`},me={key:1,class:`ih:rounded-lg ih:border ih:bg-card`},he={key:0,"aria-labelledby":`zuletzt`},ge={class:`ih:divide-y ih:rounded-lg ih:border ih:bg-card`},_e={class:`ih:text-muted-foreground`},ve={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},Y={__name:`Requests`,props:{pending:{type:Array,required:!0},recent:{type:Array,default:()=>[]},labels:{type:Object,required:!0}},setup(e){let Y=S();_(()=>Y.props.flash?.status,e=>e&&R.success(e),{immediate:!0});let X=p(null),Z=x({note:``});function Q(e,t){Z.reset(),Z.clearErrors(),X.value={request:e,accept:t}}function ye(){let{request:e,accept:t}=X.value;Z.post(`/verleih/anfragen/${e.id}/${t?`zusagen`:`absagen`}`,{preserveScroll:!0,onSuccess:()=>X.value=null})}let $=e=>[e.from?`ab ${I(e.from)}`:null,e.until?`bis ${I(e.until)}`:null].filter(Boolean).join(` `);return(p,_)=>(f(),a(g(C),{title:`Anfragen`},{default:v(()=>[u(g(b),{href:`/verleih`,class:`ih:mb-4 ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:v(()=>[u(g(ee),{class:`ih:size-4`}),l(` `+h(e.labels.title),1)]),_:1}),u(g(N),{title:`Anfragen`,description:`Zusagen trägt das ${e.labels.singular} gleich als verliehen ein – mit Wunschort und Person. Die anfragende Person wird benachrichtigt.`},null,8,[`description`]),c(`section`,V,[c(`h2`,H,[_[3]||=l(`Offen `,-1),c(`span`,ae,`(`+h(e.pending.length)+`)`,1)]),e.pending.length?(f(),s(`div`,U,[(f(!0),s(i,null,m(e.pending,e=>(f(),s(`article`,{key:e.id,class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:sm:grid-cols-[7rem_minmax(0,1fr)_auto] ih:sm:items-center`},[u(g(b),{href:e.item?.url??`#`,class:`ih:grid ih:aspect-[4/3] ih:w-28 ih:place-items-center ih:overflow-hidden ih:rounded-md ih:bg-muted ih:p-1.5`},{default:v(()=>[e.item?.thumb_url?(f(),s(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,class:`ih:size-full ih:object-contain`},null,8,W)):(f(),a(g(re),{key:1,class:`ih:size-6 ih:text-muted-foreground`}))]),_:2},1032,[`href`]),c(`div`,G,[c(`div`,K,[u(g(b),{href:e.item?.url??`#`,class:`ih:font-semibold ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),e.item?(f(),a(ie,{key:0,lent:e.item.lent,class:`ih:border`},null,8,[`lent`])):o(``,!0)]),c(`p`,q,[u(g(P),{person:e.user,class:`ih:size-6`},null,8,[`person`]),c(`span`,null,[c(`span`,J,h(e.user?.name),1),e.user?.department?(f(),s(`span`,oe,` · `+h(e.user.department),1)):o(``,!0)]),c(`span`,se,h(g(L)(e.created_at)),1)]),c(`p`,ce,[c(`span`,le,[u(g(ne),{class:`ih:size-3.5`}),l(` `+h(e.location),1)]),$(e)?(f(),s(`span`,ue,[u(g(t),{class:`ih:size-3.5`}),l(` `+h($(e)),1)])):o(``,!0)]),e.message?(f(),s(`p`,de,[u(g(B),{class:`ih:mt-0.5 ih:size-3.5 ih:shrink-0 ih:text-muted-foreground`}),l(` „`+h(e.message)+`“`,1)])):o(``,!0),e.item?.lent?(f(),s(`p`,fe,`Gerade verliehen`+h(e.item.location?` (${e.item.location})`:``)+` – eine Zusage trägt den neuen Ort ein.`,1)):o(``,!0)]),c(`div`,pe,[u(g(w),{onClick:t=>Q(e,!0)},{default:v(()=>[u(g(z)),_[4]||=l(` Zusagen`,-1)]),_:1},8,[`onClick`]),u(g(w),{variant:`outline`,onClick:t=>Q(e,!1)},{default:v(()=>[u(g(n)),_[5]||=l(` Absagen`,-1)]),_:1},8,[`onClick`])])]))),128))])):(f(),s(`div`,me,[u(g(j),{icon:g(r),title:`Keine offenen Anfragen`,text:`Neue Anfragen kommen im Portal und per E-Mail.`},null,8,[`icon`])]))]),e.recent.length?(f(),s(`section`,he,[_[6]||=c(`h2`,{id:`zuletzt`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Zuletzt beantwortet`,-1),c(`ul`,ge,[(f(!0),s(i,null,m(e.recent,e=>(f(),s(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:px-4 ih:py-2.5 ih:text-sm`},[u(g(b),{href:e.item?.url??`#`,class:`ih:font-medium ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),c(`span`,_e,h(e.user?.name)+` · `+h(e.location),1),c(`span`,{class:d([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},h(e.status_label),3),c(`span`,ve,h(e.decider?`${e.decider.name}, `:``)+h(g(I)(e.decided_at??e.created_at)),1)]))),128))])])):o(``,!0),u(g(T),{open:!!X.value,"onUpdate:open":_[2]||=e=>!e&&(X.value=null)},{default:v(()=>[X.value?(f(),a(g(E),{key:0,class:`ih:sm:max-w-md`},{default:v(()=>[u(g(k),null,{default:v(()=>[u(g(A),null,{default:v(()=>[l(h(X.value.accept?`Zusagen`:`Absagen`)+`: `+h(X.value.request.item?.title),1)]),_:1}),u(g(D),null,{default:v(()=>[X.value.accept?(f(),s(i,{key:0},[l(`Wird als verliehen an `+h(X.value.request.user?.name)+` nach „`+h(X.value.request.location)+`“ eingetragen.`,1)],64)):(f(),s(i,{key:1},[l(h(X.value.request.user?.name)+` bekommt die Absage im Portal und per E-Mail.`,1)],64))]),_:1})]),_:1}),c(`form`,{id:`verleih-entscheidung`,onSubmit:y(ye,[`prevent`])},[u(g(M),{id:`vl-note`,label:`Hinweis (optional)`,error:g(Z).errors.note||g(Z).errors.status},{default:v(()=>[u(g(F),{id:`vl-note`,modelValue:g(Z).note,"onUpdate:modelValue":_[0]||=e=>g(Z).note=e,rows:`3`,maxlength:`1000`,placeholder:X.value.accept?`z. B. Wir bringen es am Montag vorbei.`:`z. B. Ist bis Ende März schon vergeben.`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])],32),u(g(O),null,{default:v(()=>[u(g(w),{variant:`outline`,onClick:_[1]||=e=>X.value=null},{default:v(()=>[..._[7]||=[l(`Abbrechen`,-1)]]),_:1}),u(g(w),{type:`submit`,form:`verleih-entscheidung`,variant:X.value.accept?`default`:`destructive`,disabled:g(Z).processing},{default:v(()=>[g(Z).processing?(f(),a(g(te),{key:0,class:`ih:animate-spin`})):o(``,!0),l(` `+h(X.value.accept?`Zusagen`:`Absagen`),1)]),_:1},8,[`variant`,`disabled`])]),_:1})]),_:1})):o(``,!0)]),_:1},8,[`open`])]),_:1}))}};export{Y as default}; \ No newline at end of file diff --git a/dist/pages/Show.js b/dist/pages/Show.js index 4d0666a..7037762 100644 --- a/dist/pages/Show.js +++ b/dist/pages/Show.js @@ -1 +1 @@ -import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as r,t as i}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as a,r as o,t as s}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as ee}from"../chunks/trash-COMUOW6h.js";import{Fragment as c,computed as te,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createTextVNode as p,createVNode as m,mergeModels as h,onBeforeUnmount as g,openBlock as _,ref as v,renderList as ne,toDisplayString as y,unref as b,useModel as x,watch as S,withCtx as C,withModifiers as w}from"vue";import{Link as T,router as E,useForm as D,usePage as O}from"@inertiajs/vue3";import{AppLayout as re,Button as k,Dialog as A,DialogContent as j,DialogDescription as M,DialogFooter as N,DialogHeader as P,DialogTitle as F,FormField as I,Input as L,PersonAvatar as R,Textarea as z,formatDate as B,toast as ie}from"@inhaus/ui";var ae=e({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),V=e({name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]}),H=e({name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]}),U=e({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),W=e({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),G={class:`ih:grid ih:gap-4 ih:sm:grid-cols-2`},K={__name:`RequestDialog`,props:h({item:{type:Object,required:!0},labels:{type:Object,required:!0},defaultLocation:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let t=e,n=x(e,`open`),r=new Date().toISOString().slice(0,10),a=D({location:t.defaultLocation??``,from:``,until:``,message:``});function o(){a.post(`/verleih/${t.item.id}/anfragen`,{preserveScroll:!0,onSuccess:()=>{n.value=!1,a.reset(`from`,`until`,`message`)}})}return(t,s)=>(_(),l(b(A),{open:n.value,"onUpdate:open":s[5]||=e=>n.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-lg`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(e.item.title)+`“ anfragen`,1)]),_:1}),m(b(M),null,{default:C(()=>[s[6]||=p(` Das Team bekommt Ihre Anfrage im Portal und per E-Mail und meldet sich bei Ihnen. `,-1),e.item.lent?(_(),d(c,{key:0},[p(` Gerade ist es verliehen – Sie können es trotzdem für später anfragen.`)],64)):u(``,!0)]),_:1})]),_:1}),f(`form`,{id:`verleih-anfrage`,class:`ih:grid ih:gap-4`,onSubmit:w(o,[`prevent`])},[m(b(I),{id:`vl-location`,label:`Wo soll es hin?`,error:b(a).errors.location},{default:C(()=>[m(b(L),{id:`vl-location`,modelValue:b(a).location,"onUpdate:modelValue":s[0]||=e=>b(a).location=e,maxlength:`200`,placeholder:`z. B. Verwaltung, Besprechungsraum 2. OG`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),f(`div`,G,[m(b(I),{id:`vl-from`,label:`Ab (optional)`,error:b(a).errors.from},{default:C(()=>[m(b(L),{id:`vl-from`,modelValue:b(a).from,"onUpdate:modelValue":s[1]||=e=>b(a).from=e,type:`date`,min:b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`]),m(b(I),{id:`vl-until`,label:`Bis (optional)`,error:b(a).errors.until},{default:C(()=>[m(b(L),{id:`vl-until`,modelValue:b(a).until,"onUpdate:modelValue":s[2]||=e=>b(a).until=e,type:`date`,min:b(a).from||b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`])]),m(b(I),{id:`vl-message`,label:`Nachricht (optional)`,error:b(a).errors.message},{default:C(()=>[m(b(z),{id:`vl-message`,modelValue:b(a).message,"onUpdate:modelValue":s[3]||=e=>b(a).message=e,rows:`3`,maxlength:`2000`,placeholder:`z. B. Anlass, Ansprechperson vor Ort …`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:s[4]||=e=>n.value=!1},{default:C(()=>[...s[7]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-anfrage`,disabled:b(a).processing||!b(a).location.trim()},{default:C(()=>[b(a).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):(_(),l(b(H),{key:1})),s[8]||=p(` Anfrage senden `,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},q={class:`ih:mb-4 ih:flex ih:flex-wrap ih:items-center ih:justify-between ih:gap-3`},J={key:0,class:`ih:flex ih:gap-2`},oe={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_22rem]`},se={class:`ih:grid ih:min-w-0 ih:content-start ih:gap-6`},ce=[`aria-label`],le=[`src`,`alt`],ue={key:1,class:`ih:grid ih:aspect-[4/3] ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:text-muted-foreground`},de={key:2,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},fe=[`innerHTML`],pe={class:`ih:grid ih:content-start ih:gap-4 ih:lg:sticky ih:lg:top-24`},me={class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-5`},he={class:`ih:grid ih:gap-2`},ge={class:`ih:text-xl ih:leading-snug ih:font-semibold`},_e={class:`ih:grid ih:gap-2 ih:text-sm`},ve={class:`ih:flex ih:gap-2`},ye={key:0,class:`ih:flex ih:gap-2`},be={key:1,class:`ih:flex ih:gap-2`},xe={key:0,class:`ih:grid ih:gap-2 ih:rounded-md ih:bg-brand-soft ih:p-3 ih:text-sm ih:text-brand-text`},Se={class:`ih:flex ih:items-center ih:gap-1.5 ih:font-medium`},Ce={key:0,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},we={class:`ih:grid ih:gap-3`},Te={class:`ih:min-w-0`},Ee={class:`ih:font-medium`},De={class:`ih:text-xs ih:text-muted-foreground`},Oe=[`aria-label`],ke=[`src`,`alt`],Y={__name:`Show`,props:{item:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myRequest:{type:Object,default:null},defaultLocation:{type:String,default:null},requests:{type:Array,default:()=>[]}},setup(e){let h=e,x=O();S(()=>x.props.flash?.status,e=>e&&ie.success(e),{immediate:!0});let z=te(()=>h.item),G=v(!1),Y=v(!1),X=e=>e.key===`Escape`&&(Y.value=!1);S(Y,e=>e?window.addEventListener(`keydown`,X):window.removeEventListener(`keydown`,X)),g(()=>window.removeEventListener(`keydown`,X));let Z=v(!1),Q=D({location:``}),Ae=()=>Q.post(`/verleih/${z.value.id}/zurueck`,{preserveScroll:!0,onSuccess:()=>Z.value=!1}),je=()=>window.confirm(`Anfrage zurückziehen?`)&&E.delete(`/verleih/anfragen/${h.myRequest.id}`,{preserveScroll:!0}),Me=()=>window.confirm(`„${z.value.title}“ endgültig löschen?`)&&E.delete(`/verleih/${z.value.id}`),$=(e,t)=>[e?`ab ${B(e)}`:null,t?`bis ${B(t)}`:null].filter(Boolean).join(` `);return(te,h)=>(_(),l(b(re),{title:z.value.title},{default:C(()=>[f(`div`,q,[m(b(T),{href:`/verleih`,class:`ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:C(()=>[m(b(r),{class:`ih:size-4`}),p(` `+y(e.labels.title),1)]),_:1}),e.canManage?(_(),d(`div`,J,[m(b(k),{variant:`outline`,size:`sm`,"as-child":``},{default:C(()=>[m(b(T),{href:`/verleih/${z.value.id}/bearbeiten`},{default:C(()=>[m(b(V)),h[9]||=p(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1}),m(b(k),{variant:`ghost`,size:`sm`,class:`ih:text-destructive ih:hover:text-destructive`,onClick:Me},{default:C(()=>[m(b(ee)),h[10]||=p(` Löschen`,-1)]),_:1})])):u(``,!0)]),f(`div`,oe,[f(`div`,se,[z.value.image_url?(_(),d(`button`,{key:0,type:`button`,class:`ih:grid ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:p-4 ih:sm:p-8`,"aria-label":`${z.value.title} vergrößern`,onClick:h[0]||=e=>Y.value=!0},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:max-h-[70vh] ih:w-auto ih:max-w-full ih:object-contain ih:shadow-md`},null,8,le)],8,ce)):(_(),d(`div`,ue,[m(b(o),{class:`ih:size-10`,"stroke-width":1.5})])),z.value.description?(_(),d(`section`,de,[f(`div`,{class:`verleih-text ih:text-[15px] ih:leading-relaxed`,innerHTML:z.value.description},null,8,fe)])):u(``,!0)]),f(`aside`,pe,[f(`section`,me,[f(`div`,he,[m(s,{lent:z.value.lent,class:`ih:w-fit ih:border`},null,8,[`lent`]),f(`h1`,ge,y(z.value.title),1)]),f(`dl`,_e,[f(`div`,ve,[h[11]||=f(`dt`,{class:`ih:sr-only`},`Aktueller Standort`,-1),m(b(a),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,y(z.value.location||`Standort nicht angegeben`),1)]),z.value.lent&&(z.value.lent_since||z.value.lent_until)?(_(),d(`div`,ye,[h[12]||=f(`dt`,{class:`ih:sr-only`},`Zeitraum`,-1),m(b(t),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,`Verliehen `+y($(z.value.lent_since,z.value.lent_until)),1)])):u(``,!0),z.value.lent_to?(_(),d(`div`,be,[h[13]||=f(`dt`,{class:`ih:sr-only`},`Ausgeliehen von`,-1),m(b(W),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,[m(b(T),{href:`/personen/${z.value.lent_to.id}`,class:`ih:hover:underline`},{default:C(()=>[p(y(z.value.lent_to.name),1)]),_:1},8,[`href`])])])):u(``,!0)]),e.myRequest?(_(),d(`div`,xe,[f(`p`,Se,[m(b(ae),{class:`ih:size-4`}),p(` Angefragt am `+y(b(B)(e.myRequest.created_at)),1)]),f(`p`,null,`Nach „`+y(e.myRequest.location)+`“ `+y($(e.myRequest.from,e.myRequest.until))+` – das Team meldet sich.`,1),f(`button`,{type:`button`,class:`ih:w-fit ih:text-xs ih:font-medium ih:underline`,onClick:je},`Anfrage zurückziehen`)])):(_(),l(b(k),{key:1,size:`lg`,class:`ih:w-full`,onClick:h[1]||=e=>G.value=!0},{default:C(()=>[m(b(H)),p(` `+y(e.labels.singular)+` anfragen`,1)]),_:1})),e.canManage&&z.value.lent?(_(),l(b(k),{key:2,variant:`outline`,class:`ih:w-full`,onClick:h[2]||=e=>Z.value=!0},{default:C(()=>[m(b(U)),h[14]||=p(` Zurückgenommen`,-1)]),_:1})):u(``,!0)]),e.canManage&&e.requests.length?(_(),d(`section`,Ce,[h[16]||=f(`h2`,{class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Anfragen`,-1),f(`ul`,we,[(_(!0),d(c,null,ne(e.requests,e=>(_(),d(`li`,{key:e.id,class:`ih:flex ih:gap-3 ih:text-sm`},[m(b(R),{person:e.user,class:`ih:size-8`},null,8,[`person`]),f(`div`,Te,[f(`p`,null,[f(`span`,Ee,y(e.user?.name),1),p(` · `+y(e.location),1)]),f(`p`,De,y(e.status_label)+` · `+y(b(B)(e.created_at)),1)])]))),128))]),m(b(T),{href:`/verleih/anfragen`,class:`ih:mt-3 ih:inline-block ih:text-sm ih:font-medium ih:text-brand-text ih:hover:underline`},{default:C(()=>[...h[15]||=[p(`Alle Anfragen`,-1)]]),_:1})])):u(``,!0)])]),m(K,{open:G.value,"onUpdate:open":h[3]||=e=>G.value=e,item:z.value,labels:e.labels,"default-location":e.defaultLocation},null,8,[`open`,`item`,`labels`,`default-location`]),m(b(A),{open:Z.value,"onUpdate:open":h[6]||=e=>Z.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-md`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(z.value.title)+`“ zurückgenommen`,1)]),_:1}),m(b(M),null,{default:C(()=>[...h[17]||=[p(`Danach ist es wieder verfügbar. Wo ist es jetzt?`,-1)]]),_:1})]),_:1}),f(`form`,{id:`verleih-zurueck`,onSubmit:w(Ae,[`prevent`])},[m(b(I),{id:`vl-return`,label:`Neuer Standort`,error:b(Q).errors.location},{default:C(()=>[m(b(L),{id:`vl-return`,modelValue:b(Q).location,"onUpdate:modelValue":h[4]||=e=>b(Q).location=e,maxlength:`200`,placeholder:`z. B. Lager Künstlerteam`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:h[5]||=e=>Z.value=!1},{default:C(()=>[...h[18]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-zurueck`,disabled:b(Q).processing},{default:C(()=>[b(Q).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):u(``,!0),h[19]||=p(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]),Y.value?(_(),d(`div`,{key:0,class:`ih:fixed ih:inset-0 ih:z-50 ih:grid ih:place-items-center ih:bg-black/85 ih:p-4`,role:`dialog`,"aria-modal":`true`,"aria-label":z.value.title,onClick:h[8]||=e=>Y.value=!1},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,ke),f(`button`,{type:`button`,class:`ih:absolute ih:top-4 ih:right-4 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-white/15 ih:text-white`,"aria-label":`Schließen`,onClick:h[7]||=w(e=>Y.value=!1,[`stop`])},[m(b(n))])],8,Oe)):u(``,!0)]),_:1},8,[`title`]))}};export{Y as default}; \ No newline at end of file +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as r,t as i}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as a,r as o,t as s}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as ee}from"../chunks/trash-COMUOW6h.js";import{Fragment as c,computed as te,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createTextVNode as p,createVNode as m,mergeModels as h,onBeforeUnmount as g,openBlock as _,ref as v,renderList as ne,toDisplayString as y,unref as b,useModel as x,watch as S,withCtx as C,withModifiers as w}from"vue";import{Link as T,router as E,useForm as D,usePage as O}from"@inertiajs/vue3";import{AppLayout as re,Button as k,Dialog as A,DialogContent as j,DialogDescription as M,DialogFooter as N,DialogHeader as P,DialogTitle as F,FormField as I,Input as L,PersonAvatar as R,Textarea as z,formatDate as B,toast as ie}from"@inhaus/ui";var ae=e({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),V=e({name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]}),H=e({name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]}),U=e({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),W=e({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),G={class:`ih:grid ih:gap-4 ih:sm:grid-cols-2`},K={__name:`RequestDialog`,props:h({item:{type:Object,required:!0},labels:{type:Object,required:!0},defaultLocation:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let t=e,n=x(e,`open`),r=new Date().toISOString().slice(0,10),a=D({location:t.defaultLocation??``,from:``,until:``,message:``});function o(){a.post(`/verleih/${t.item.id}/anfragen`,{preserveScroll:!0,onSuccess:()=>{n.value=!1,a.reset(`from`,`until`,`message`)}})}return(t,s)=>(_(),l(b(A),{open:n.value,"onUpdate:open":s[5]||=e=>n.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-lg`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(e.item.title)+`“ anfragen`,1)]),_:1}),m(b(M),null,{default:C(()=>[s[6]||=p(` Das Team bekommt Ihre Anfrage im Portal und per E-Mail und meldet sich bei Ihnen. `,-1),e.item.lent?(_(),d(c,{key:0},[p(` Gerade ist es verliehen – Sie können es trotzdem für später anfragen.`)],64)):u(``,!0)]),_:1})]),_:1}),f(`form`,{id:`verleih-anfrage`,class:`ih:grid ih:gap-4`,onSubmit:w(o,[`prevent`])},[m(b(I),{id:`vl-location`,label:`Wo soll es hin?`,error:b(a).errors.location},{default:C(()=>[m(b(L),{id:`vl-location`,modelValue:b(a).location,"onUpdate:modelValue":s[0]||=e=>b(a).location=e,maxlength:`200`,placeholder:`z. B. Verwaltung, Besprechungsraum 2. OG`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),f(`div`,G,[m(b(I),{id:`vl-from`,label:`Ab (optional)`,error:b(a).errors.from},{default:C(()=>[m(b(L),{id:`vl-from`,modelValue:b(a).from,"onUpdate:modelValue":s[1]||=e=>b(a).from=e,type:`date`,min:b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`]),m(b(I),{id:`vl-until`,label:`Bis (optional)`,error:b(a).errors.until},{default:C(()=>[m(b(L),{id:`vl-until`,modelValue:b(a).until,"onUpdate:modelValue":s[2]||=e=>b(a).until=e,type:`date`,min:b(a).from||b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`])]),m(b(I),{id:`vl-message`,label:`Nachricht (optional)`,error:b(a).errors.message},{default:C(()=>[m(b(z),{id:`vl-message`,modelValue:b(a).message,"onUpdate:modelValue":s[3]||=e=>b(a).message=e,rows:`3`,maxlength:`2000`,placeholder:`z. B. Anlass, Ansprechperson vor Ort …`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:s[4]||=e=>n.value=!1},{default:C(()=>[...s[7]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-anfrage`,disabled:b(a).processing||!b(a).location.trim()},{default:C(()=>[b(a).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):(_(),l(b(H),{key:1})),s[8]||=p(` Anfrage senden `,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},q={class:`ih:mb-4 ih:flex ih:flex-wrap ih:items-center ih:justify-between ih:gap-3`},J={key:0,class:`ih:flex ih:gap-2`},oe={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_22rem]`},se={class:`ih:grid ih:min-w-0 ih:content-start ih:gap-6`},ce=[`aria-label`],le=[`src`,`alt`],ue={key:1,class:`ih:grid ih:aspect-[4/3] ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:text-muted-foreground`},de={key:2,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},fe=[`innerHTML`],pe={class:`ih:grid ih:content-start ih:gap-4 ih:lg:sticky ih:lg:top-24`},me={class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-5`},he={class:`ih:grid ih:gap-2`},ge={class:`ih:text-xl ih:leading-snug ih:font-semibold`},_e={class:`ih:grid ih:gap-2 ih:text-sm`},ve={class:`ih:flex ih:gap-2`},ye={key:0,class:`ih:flex ih:gap-2`},be={key:1,class:`ih:flex ih:gap-2`},xe={key:0,class:`ih:grid ih:gap-2 ih:rounded-md ih:bg-brand-soft ih:p-3 ih:text-sm ih:text-brand-text`},Se={class:`ih:flex ih:items-center ih:gap-1.5 ih:font-medium`},Ce={key:0,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},we={class:`ih:grid ih:gap-3`},Te={class:`ih:min-w-0`},Ee={class:`ih:font-medium`},De={class:`ih:text-xs ih:text-muted-foreground`},Oe=[`aria-label`],ke=[`src`,`alt`],Y={__name:`Show`,props:{item:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myRequest:{type:Object,default:null},defaultLocation:{type:String,default:null},requests:{type:Array,default:()=>[]}},setup(e){let h=e,x=O();S(()=>x.props.flash?.status,e=>e&&ie.success(e),{immediate:!0});let z=te(()=>h.item),G=v(!1),Y=v(!1),X=e=>e.key===`Escape`&&(Y.value=!1);S(Y,e=>e?window.addEventListener(`keydown`,X):window.removeEventListener(`keydown`,X)),g(()=>window.removeEventListener(`keydown`,X));let Z=v(!1),Q=D({location:``}),Ae=()=>Q.post(`/verleih/${z.value.id}/zurueck`,{preserveScroll:!0,onSuccess:()=>Z.value=!1}),je=()=>window.confirm(`Anfrage zurückziehen?`)&&E.delete(`/verleih/anfragen/${h.myRequest.id}`,{preserveScroll:!0}),Me=()=>window.confirm(`„${z.value.title}“ endgültig löschen?`)&&E.delete(`/verleih/${z.value.id}`),$=(e,t)=>[e?`ab ${B(e)}`:null,t?`bis ${B(t)}`:null].filter(Boolean).join(` `);return(te,h)=>(_(),l(b(re),{title:z.value.title},{default:C(()=>[f(`div`,q,[m(b(T),{href:`/verleih`,class:`ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:C(()=>[m(b(r),{class:`ih:size-4`}),p(` `+y(e.labels.title),1)]),_:1}),e.canManage?(_(),d(`div`,J,[m(b(k),{variant:`outline`,size:`sm`,"as-child":``},{default:C(()=>[m(b(T),{href:`/verleih/${z.value.id}/bearbeiten`},{default:C(()=>[m(b(V)),h[9]||=p(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1}),m(b(k),{variant:`ghost`,size:`sm`,class:`ih:text-destructive ih:hover:text-destructive`,onClick:Me},{default:C(()=>[m(b(ee)),h[10]||=p(` Löschen`,-1)]),_:1})])):u(``,!0)]),f(`div`,oe,[f(`div`,se,[z.value.image_url?(_(),d(`button`,{key:0,type:`button`,class:`ih:grid ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:p-4 ih:sm:p-8`,"aria-label":`${z.value.title} vergrößern`,onClick:h[0]||=e=>Y.value=!0},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:max-h-[70vh] ih:w-auto ih:max-w-full ih:object-contain ih:shadow-md`},null,8,le)],8,ce)):(_(),d(`div`,ue,[m(b(o),{class:`ih:size-10`,"stroke-width":1.5})])),z.value.description?(_(),d(`section`,de,[f(`div`,{class:`verleih-text ih:text-[15px] ih:leading-relaxed`,innerHTML:z.value.description},null,8,fe)])):u(``,!0)]),f(`aside`,pe,[f(`section`,me,[f(`div`,he,[m(s,{lent:z.value.lent,class:`ih:w-fit ih:border`},null,8,[`lent`]),f(`h1`,ge,y(z.value.title),1)]),f(`dl`,_e,[f(`div`,ve,[h[11]||=f(`dt`,{class:`ih:sr-only`},`Aktueller Standort`,-1),m(b(a),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,y(z.value.location||`Standort nicht angegeben`),1)]),z.value.lent&&(z.value.lent_since||z.value.lent_until)?(_(),d(`div`,ye,[h[12]||=f(`dt`,{class:`ih:sr-only`},`Zeitraum`,-1),m(b(t),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,`Verliehen `+y($(z.value.lent_since,z.value.lent_until)),1)])):u(``,!0),z.value.lent_to?(_(),d(`div`,be,[h[13]||=f(`dt`,{class:`ih:sr-only`},`Ausgeliehen von`,-1),m(b(W),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,[m(b(T),{href:`/personen/${z.value.lent_to.id}`,class:`ih:hover:underline`},{default:C(()=>[p(y(z.value.lent_to.name),1)]),_:1},8,[`href`])])])):u(``,!0)]),e.myRequest?(_(),d(`div`,xe,[f(`p`,Se,[m(b(ae),{class:`ih:size-4`}),p(` Angefragt am `+y(b(B)(e.myRequest.created_at)),1)]),f(`p`,null,`Nach „`+y(e.myRequest.location)+`“ `+y($(e.myRequest.from,e.myRequest.until))+` – das Team meldet sich.`,1),f(`button`,{type:`button`,class:`ih:w-fit ih:text-xs ih:font-medium ih:underline`,onClick:je},`Anfrage zurückziehen`)])):(_(),l(b(k),{key:1,size:`lg`,class:`ih:w-full`,onClick:h[1]||=e=>G.value=!0},{default:C(()=>[m(b(H)),p(` `+y(e.labels.singular)+` anfragen`,1)]),_:1})),e.canManage&&z.value.lent?(_(),l(b(k),{key:2,variant:`outline`,class:`ih:w-full`,onClick:h[2]||=e=>Z.value=!0},{default:C(()=>[m(b(U)),h[14]||=p(` Zurückgenommen`,-1)]),_:1})):u(``,!0)]),e.canManage&&e.requests.length?(_(),d(`section`,Ce,[h[16]||=f(`h2`,{class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Anfragen`,-1),f(`ul`,we,[(_(!0),d(c,null,ne(e.requests,e=>(_(),d(`li`,{key:e.id,class:`ih:flex ih:gap-3 ih:text-sm`},[m(b(R),{person:e.user,class:`ih:size-8`},null,8,[`person`]),f(`div`,Te,[f(`p`,null,[f(`span`,Ee,y(e.user?.name),1),p(` · `+y(e.location),1)]),f(`p`,De,y(e.status_label)+` · `+y(b(B)(e.created_at)),1)])]))),128))]),m(b(T),{href:`/verleih/anfragen`,class:`ih:mt-3 ih:inline-block ih:text-sm ih:font-medium ih:text-brand-text ih:hover:underline`},{default:C(()=>[...h[15]||=[p(`Alle Anfragen`,-1)]]),_:1})])):u(``,!0)])]),m(K,{open:G.value,"onUpdate:open":h[3]||=e=>G.value=e,item:z.value,labels:e.labels,"default-location":e.defaultLocation},null,8,[`open`,`item`,`labels`,`default-location`]),m(b(A),{open:Z.value,"onUpdate:open":h[6]||=e=>Z.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-md`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(z.value.title)+`“ zurückgenommen`,1)]),_:1}),m(b(M),null,{default:C(()=>[...h[17]||=[p(`Danach ist es wieder verfügbar. Wo ist es jetzt?`,-1)]]),_:1})]),_:1}),f(`form`,{id:`verleih-zurueck`,onSubmit:w(Ae,[`prevent`])},[m(b(I),{id:`vl-return`,label:`Neuer Standort`,error:b(Q).errors.location},{default:C(()=>[m(b(L),{id:`vl-return`,modelValue:b(Q).location,"onUpdate:modelValue":h[4]||=e=>b(Q).location=e,maxlength:`200`,placeholder:`z. B. Lager Künstlerteam`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:h[5]||=e=>Z.value=!1},{default:C(()=>[...h[18]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-zurueck`,disabled:b(Q).processing},{default:C(()=>[b(Q).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):u(``,!0),h[19]||=p(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]),Y.value?(_(),d(`div`,{key:0,class:`ih:fixed ih:inset-0 ih:z-50 ih:grid ih:place-items-center ih:bg-black/85 ih:p-4`,role:`dialog`,"aria-modal":`true`,"aria-label":z.value.title,onClick:h[8]||=e=>Y.value=!1},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:size-full ih:object-contain`},null,8,ke),f(`button`,{type:`button`,class:`ih:absolute ih:top-4 ih:right-4 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-white/15 ih:text-white`,"aria-label":`Schließen`,onClick:h[7]||=w(e=>Y.value=!1,[`stop`])},[m(b(n))])],8,Oe)):u(``,!0)]),_:1},8,[`title`]))}};export{Y as default}; \ No newline at end of file diff --git a/plugin.json b/plugin.json index 20d195e..ee225b8 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "slug": "verleih", "name": "Verleih", - "version": "1.0.0", + "version": "1.0.1", "description": "Verleihsystem, z. B. für die Bilder des Künstlerteams: Übersicht mit Status und aktuellem Standort, Anfragen im Portal mit Zusage oder Absage, Import aus dem bisherigen WordPress-Verleihsystem.", "author": "Loheide", "namespace": "Inhaus\\Plugins\\Verleih\\", diff --git a/resources/js/components/ItemCard.vue b/resources/js/components/ItemCard.vue index bfb41a9..3bc7ff0 100644 --- a/resources/js/components/ItemCard.vue +++ b/resources/js/components/ItemCard.vue @@ -10,10 +10,10 @@ defineProps({