PageSourceSearch

https://leemos.de/build/assets/ClubsEdit-2aadb91d.js

js leemos.de collected 2026-10-04 23:01:02 UTC 21,722 bytes, 1 lines download raw bytes

1import{T,r as B,o as F,y as P,a,c as H,w as M,b as m,u as o,Z as I,d as e,t as u,j as Z,n as i,m as p,x,g as d,f as b,e as y,z as D,i as $,F as j,k as K}from"./app-3bdfdba9.js";import{_ as O}from"./AppLayout-b8acfdcc.js";import{_ as V}from"./InputLabel-cfe7447d.js";import{_ as A}from"./InputError-c34b7a16.js";import{_ as q}from"./ClubHubPanel-69fc284e.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css            */import"./ApplicationMark-41ad62ab.js";import"./PromoBanner.vue_vue_type_style_index_0_scoped_b6cf4914_lang-e09716ab.js";const G={class:"relative isolate mb-8 overflow-hidden bg-stone-900 text-white sm:mb-10","aria-label":"Kopfbereich"},J={class:"relative mx-auto max-w-screen-xl px-4 py-16 text-center sm:px-6 sm:py-20 lg:py-24"},Q={class:"mx-auto mt-3 max-w-2xl text-base text-stone-200 line-clamp-2 sm:text-lg"},R={class:"mx-auto mb-16 max-w-3xl px-3 sm:px-4 md:px-6"},X={class:"rounded-2xl border border-stone-100 bg-stone-50/60 p-4 sm:p-5"},Y={key:0,class:"text-red-500"},ee={class:"pb-5"},te={class:"inline-block rounded-xl border border-stone-200 bg-white px-3 py-2 shadow-sm","data-hs-input-number":""},se={class:"flex items-center gap-x-1.5"},oe={class:"mt-2 text-sm text-stone-500"},ne={key:0,class:"text-red-500"},re={class:"pb-5"},le={class:"relative"},ie=["value"],ae={class:"pb-5"},de={class:"relative"},ue=["value"],be={key:1,class:"pb-5 pt-1"},pe={class:"mb-6 flex flex-wrap gap-3"},me={class:"relative"},ce={key:0,class:"autocomplete-results rounded-xl"},xe=["onClick"],ve={key:0},_e={key:1},ge={key:2},he={key:0,class:"px-4 py-3 text-stone-500"},fe={key:0,class:"mt-2 text-sm text-red-600"},we={id:"UpdateSuBSettingForm",class:"rounded-2xl border border-stone-100 bg-stone-50/40 p-4 sm:p-5"},ke={class:"py-2"},ye={class:"ms-3 text-sm font-medium text-stone-900"},Ce={key:0,class:"pb-4"},Be={class:"inline-block rounded-xl border border-stone-200 bg-white px-3 py-2 shadow-sm","data-hs-input-number":""},Me={class:"flex items-center gap-x-1.5"},$e={key:1},je={class:""},Ve={class:"py-2"},Ae={class:"ms-3 text-sm font-medium text-stone-900"},Se={key:0,class:"pb-4"},ze={class:"inline-block rounded-xl border border-emerald-200 bg-emerald-50/80 px-3 py-2 shadow-sm","data-hs-input-number":""},De={class:"flex items-center gap-x-1.5"},Ue={class:""},Ee={class:"py-2"},Le={class:"ms-3 text-sm font-medium text-stone-900"},Ne={key:1,class:""},Te={class:"inline-block rounded-xl border border-amber-200 bg-amber-100/90 px-3 py-2 shadow-sm","data-hs-input-number":""},Fe={class:"flex items-center gap-x-1.5"},Pe={class:"flex flex-col gap-3 border-t border-stone-100 pt-6 sm:flex-row sm:flex-wrap sm:items-center"},He=["disabled"],g="mt-1.5 block w-full rounded-xl border border-stone-300 bg-white px-3 py-2.5 text-base text-stone-900 shadow-sm placeholder:text-stone-400 focus:border-violet-600 focus:outline-none focus:ring-2 focus:ring-violet-600/25 sm:text-sm",_="block text-sm font-medium text-stone-700",U="mb-2 block text-xs font-bold uppercase tracking-wide text-stone-600",Ie={__name:"ClubsEdit",props:{genres:Array,clubs:Object,location_types:Array,place_locations:Array},setup(C){const l=C,s=T({title:l.clubs.title,description:l.clubs.description,user_id:null,genre_id:l.clubs.genre_id,max_users:l.clubs.max_users,current_users:l.clubs.current_users,type_id:l.clubs.type_id,town:"",city:l.clubs.city??"",place_location_id:l.clubs.place_location_id,tbr_enabled:l.clubs.tbr_enabled,tbr_vote_enabled:l.clubs.tbr_vote_enabled,tbr_reader_proposal_enabled:l.clubs.tbr_reader_proposal_enabled,tbr_max_votes:l.clubs.tbr_max_votes,tbr_max_proposals:l.clubs.tbr_max_proposals,tbr_max_books:l.clubs.tbr_max_books}),v=B([]),h=B(!1),c=B(null);F(()=>{var r;if(l.clubs.place_location_id&&((r=l.place_locations)!=null&&r.length)){const t=l.place_locations.find(n=>n.id==l.clubs.place_location_id);t&&(c.value=t.country_code)}});function f(r){r==="max_users"?s.max_users++:r==="tbr_max_votes"?s.tbr_max_votes++:r==="tbr_max_proposals"?s.tbr_max_proposals++:r==="tbr_max_books"&&s.tbr_max_books++}function w(r){r==="max_users"&&s.max_users>1&&s.max_users>s.current_users?s.max_users--:r==="tbr_max_votes"&&s.tbr_max_votes>1?s.tbr_max_votes--:r==="tbr_max_proposals"&&s.tbr_max_proposals>1?s.tbr_max_proposals--:r==="tbr_max_books"&&s.tbr_max_books>1&&s.tbr_max_books--}function E(r){return c.value?r.country_code===c.value:!0}function S(){var t;const r=((t=s.town)==null?void 0:t.toLowerCase())||"";if(r.length<2){v.value=[];return}v.value=l.place_locations.filter(n=>E(n)&&n.place.toLowerCase().startsWith(r)).sort((n,z)=>n.place.length-z.place.length)}function L(r){s.city=r.place,s.place_location_id=r.id,s.town="",v.value=[],h.value=!1}function k(r){c.value=r,S()}P(()=>l.place_locations,()=>{v.value=[]});function N(){s.type_id==2&&(s.city="",s.town="",s.place_location_id=null)}return(r,t)=>(a(),H(O,{title:"Buchclub bearbeiten",class:"bg-white"},{default:M(()=>[m(o(I),{title:"Bearbeiten: "+l.clubs.title},null,8,["title"]),e("section",G,[t[29]||(t[29]=e("div",{class:"absolute inset-0 bg-cover bg-center bg-no-repeat opacity-40",style:{"background-image":"url('/images/yhn4okt6ci0.jpeg')"},"aria-hidden":"true"},null,-1)),t[30]||(t[30]=e("div",{class:"absolute inset-0 bg-gradient-to-br from-stone-950/95 via-stone-900/85 to-violet-950/50","aria-hidden":"true"},null,-1)),t[31]||(t[31]=e("div",{class:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_100%_-10%,rgba(139,92,246,0.2),transparent_55%)]","aria-hidden":"true"},null,-1)),e("div",J,[t[27]||(t[27]=e("p",{class:"text-xs font-semibold uppercase tracking-[0.2em] text-violet-200/90"},"Leemos · Moderation",-1)),t[28]||(t[28]=e("h1",{class:"mt-4 font-playfair-display text-3xl font-extrabold tracking-tight text-white sm:text-4xl lg:text-5xl"}," Buchclub bearbeiten ",-1)),e("p",Q,u(l.clubs.title),1)])]),e("div",R,[m(q,{"clip-content":!1},{default:M(()=>
1[t[51]||(t[51]=e("header",{class:"mb-6 border-b border-stone-100 pb-5 sm:mb-8"},[e("p",{class:"text-xs font-semibold uppercase tracking-[0.2em] text-violet-800"},"Einstellungen"),e("h2",{class:"mt-3 font-playfair-display text-2xl font-bold tracking-tight text-stone-950 sm:text-3xl"}," Details & Lesestapel ")],-1)),e("form",{onSubmit:t[26]||(t[26]=Z(n=>o(s).put("/clubs/"+l.clubs.id),["prevent"])),class:"space-y-6"},[e("div",null,[e("label",{class:i(_)},"Name deines Buchclubs"),e("div",null,[p(e("input",{id:"title","onUpdate:modelValue":t[0]||(t[0]=n=>o(s).title=n),class:i(g),name:"title",type:"text",placeholder:"z.B. Bücherclub München Sendling"},null,512),[[x,o(s).title]])])]),e("div",X,[e("label",{for:"description",class:i(_)},"Beschreibung"),e("div",null,[p(e("textarea",{id:"description","onUpdate:modelValue":t[1]||(t[1]=n=>o(s).description=n),class:i(g),name:"description",rows:"6"},null,512),[[x,o(s).description]])]),t[32]||(t[32]=e("p",{class:"mt-2 text-sm text-stone-500"},"Kurze Beschreibung deines Buchclubs.",-1)),o(s).errors.description?(a(),d("div",Y,u(o(s).errors.description),1)):b("",!0)]),e("div",ee,[e("label",{class:i(_)},"Maximale Anzahl an Mitgliedern"),e("div",null,[e("div",te,[e("div",se,[e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-decrement":"",onClick:t[2]||(t[2]=n=>w("max_users"))},t[33]||(t[33]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"})],-1)])),p(e("input",{class:"w-6 border-0 bg-transparent p-0 text-center text-stone-800 focus:ring-0",type:"text","onUpdate:modelValue":t[3]||(t[3]=n=>o(s).max_users=n),"data-hs-input-number-input":""},null,512),[[x,o(s).max_users]]),e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-increment":"",onClick:t[4]||(t[4]=n=>f("max_users"))},t[34]||(t[34]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)]))])]),e("p",oe,[t[35]||(t[35]=y(" Bestimme aus wie vielen Mitgliedern dein Buchclub bestehen kann. Du zählst selbst als Mitglied. ")),t[36]||(t[36]=e("br",null,null,-1)),y(" Sollte das Limit erreicht sein, können neue Personen keinen Platz mehr anfragen. Die Zahl kann nicht kleiner sein als die aktuelle Mitgliederanzahl ("+u(o(s).current_users)+") ",1)])])]),o(s).errors.path?(a(),d("div",ne,u(o(s).errors.path),1)):b("",!0),e("div",null,[e("div",re,[e("label",{class:i(U),for:"grid-state"},"Das Hauptgenre"),e("div",le,[p(e("select",{id:"genre_id","onUpdate:modelValue":t[5]||(t[5]=n=>o(s).genre_id=n),class:i(g)},[(a(!0),d(j,null,$(C.genres,n=>(a(),d("option",{value:n.id},u(n.title),9,ie))),256))],512),[[D,o(s).genre_id]])])])]),e("div",null,[e("div",ae,[e("label",{class:i(U),for:"grid-state"},"Online, in Person oder Beides?"),e("div",de,[p(e("select",{id:"type_id","onUpdate:modelValue":t[6]||(t[6]=n=>o(s).type_id=n),class:i(g),onChange:N},[(a(!0),d(j,null,$(C.location_types,n=>(a(),d("option",{value:n.id},u(n.title),9,ue))),256))],544),[[D,o(s).type_id]])])])]),o(s).type_id===3||o(s).type_id===4?(a(),d("div",be,[t[37]||(t[37]=e("label",{class:"mb-3 block text-xs font-bold uppercase tracking-wide text-violet-800"},"Land auswählen",-1)),e("div",pe,[e("button",{type:"button",onClick:t[7]||(t[7]=n=>k("DE")),class:i(["flex cursor-pointer select-none items-center gap-2 rounded-full border px-4 py-2 shadow-sm transition-colors duration-300",c.value==="DE"?"border-violet-600 bg-violet-600 text-white":"border-stone-200 bg-stone-50 text-stone-700 hover:border-violet-200 hover:bg-violet-50 hover:text-violet-900"])}," 🇩🇪 Deutschland ",2),e("button",{type:"button",onClick:t[8]||(t[8]=n=>k("AT")),class:i(["flex cursor-pointer select-none items-center gap-2 rounded-full border px-4 py-2 shadow-sm transition-colors duration-300",c.value==="AT"?"border-violet-600 bg-violet-600 text-white":"border-stone-200 bg-stone-50 text-stone-700 hover:border-violet-200 hover:bg-violet-50 hover:text-violet-900"])}," 🇦🇹 Österreich ",2),e("button",{type:"button",onClick:t[9]||(t[9]=n=>k("CH")),class:i(["flex cursor-pointer select-none items-center gap-2 rounded-full border px-4 py-2 shadow-sm transition-colors duration-300",c.value==="CH"?"border-violet-600 bg-violet-600 text-white":"border-stone-200 bg-stone-50 text-stone-700 hover:border-violet-200 hover:bg-violet-50 hover:text-violet-900"])}
1," 🇨🇭 Schweiz ",2),e("button",{type:"button",onClick:t[10]||(t[10]=n=>k(null)),class:i(["flex cursor-pointer select-none items-center gap-2 rounded-full border px-4 py-2 shadow-sm transition-colors duration-300",c.value?"border-stone-200 bg-stone-50 text-stone-700 hover:border-violet-200 hover:bg-violet-50 hover:text-violet-900":"border-violet-600 bg-violet-600 text-white"])}," Alle ",2)]),t[38]||(t[38]=e("label",{class:"mb-3 block text-xs font-bold uppercase tracking-wide text-violet-800"},"In welcher Stadt trefft Ihr euch?",-1)),p(e("input",{id:"city","onUpdate:modelValue":t[11]||(t[11]=n=>o(s).city=n),class:"mb-3 block w-full cursor-not-allowed rounded-xl border border-stone-200 bg-stone-100 px-3 py-2.5 text-sm text-stone-600",name:"city",type:"text",disabled:""},null,512),[[x,o(s).city]]),e("div",me,[p(e("input",{id:"town","onUpdate:modelValue":t[12]||(t[12]=n=>o(s).town=n),class:i([g,"mb-1"]),name:"town",type:"text",placeholder:"Suche nach deiner Stadt und wähle einen Eintrag aus",onInput:S,onFocus:t[13]||(t[13]=n=>h.value=!0)},null,544),[[x,o(s).town]]),v.value.length>0||h.value&&o(s).town.length>2?(a(),d("ul",ce,[(a(!0),d(j,null,$(v.value,n=>(a(),d("li",{key:n.id,class:"flex cursor-pointer items-center gap-2 rounded-md border border-transparent px-4 py-3 transition duration-300 hover:border-violet-200 hover:bg-violet-50",onClick:z=>L(n)},[n.country_code==="DE"?(a(),d("span",ve,"🇩🇪")):n.country_code==="AT"?(a(),d("span",_e,"🇦🇹")):n.country_code==="CH"?(a(),d("span",ge,"🇨🇭")):b("",!0),y(" "+u(n.place),1)],8,xe))),128)),v.value.length===0&&h.value&&o(s).town.length>2?(a(),d("li",he," Nicht gefunden ")):b("",!0)])):b("",!0)]),o(s).errors.place_location_id?(a(),d("p",fe,u(o(s).errors.place_location_id),1)):b("",!0)])):b("",!0),t[50]||(t[50]=e("hr",{class:"border-stone-200"},null,-1)),e("div",we,[e("div",null,[t[39]||(t[39]=e("label",{class:"mb-3 block text-sm font-bold tracking-wide text-stone-800",for:"grid-state"},"Einstellungen für euren „Stapel ungelesener Bücher“",-1)),e("div",ke,[m(V,{for:"tbr_enabled",class:"pb-2",value:"Stapel ungelesener Bücher aktivieren:"}),e("button",{id:"toggleButton",onClick:t[14]||(t[14]=n=>o(s).tbr_enabled=!o(s).tbr_enabled),class:i([{"bg-violet-600":o(s).tbr_enabled,"bg-stone-200":!o(s).tbr_enabled},"relative inline-flex h-6 w-11 items-center rounded-full transition-colors duration-300 focus:outline-none focus:ring-4 focus:ring-violet-300/40"]),role:"switch",type:"button"},[e("span",{class:i(["ml-0.5 inline-block h-5 w-5 transform rounded-full bg-white shadow transition-transform duration-300",{"translate-x-5":o(s).tbr_enabled,"translate-x-0":!o(s).tbr_enabled}])},null,2)],2),e("span",ye,u(o(s).tbr_enabled?"Aktiviert":"Deaktiviert"),1),m(A,{message:o(s).errors.tbr_enabled,class:"mt-2"},null,8,["message"])])]),o(s).tbr_enabled?(a(),d("div",Ce,[e("label",{class:i(_)},"Max. Anzahl an Büchern im SuB"),e("div",null,[e("div",Be,[e("div",Me,[e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-decrement":"",onClick:t[15]||(t[15]=n=>w("tbr_max_books"))},t[40]||(t[40]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"})],-1)])),p(e("input",{class:"w-6 border-0 bg-transparent p-0 text-center text-stone-800 focus:ring-0",type:"text","onUpdate:modelValue":t[16]||(t[16]=n=>o(s).tbr_max_books=n),"data-hs-input-number-input":""},null,512),[[x,o(s).tbr_max_books]]),e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-increment":"",onClick:t[17]||(t[17]=n=>f("tbr_max_books"))},t[41]||(t[41]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)]))])]),t[42]||(t[42]=e("p",{class:"mt-2 text-sm text-stone-500"},"Bestimme aus wie viele Büchern dein SuB maximal bestehen darf.",-1))])])):b("",!0),o(s).tbr_enabled?(a(),d("div",$e,[e("div",je,[e("div",Ve,[m(V,{for:"tbr_reader_proposal_enabled",class:"pb-2",value:"Mitgliedern erlauben Bücher vorzuschlagen:"}),e("button",{id:"toggleButton",onClick:t[18]||(t[18]=n=>o(s).tbr_reader_proposal_enabled=!o(s).tbr_reader_proposal_enabled),class:i([{"bg-emerald-600":o(s).tbr_reader_proposal_enabled,"bg-stone-200":!o(s).tbr_reader_proposal_enabled},"relative inline-flex h-6 w-11 items-center rounded-full transition-colors duration-300 focus:outline-none focus:ring-4 focus:ring-emerald-300/40"]),role:"switch",type:"button"},[e("span",{class:i(["ml-0.5 inline-block h-5 w-5 transform rounded-full bg-white shadow transition-transform duration-300",{"translate-x-5":o(s).tbr_reader_proposal_enabled,"translate-x-0":!o(s).tbr_reader_proposal_enabled}])},null,2)],2),e("span",Ae,u(o(s).tbr_reader_proposal_enabled?"An":"Aus"),1),m(A,{message:o(s).errors.tbr_reader_proposal_enabled,class:"mt-2"},null,8,["message"])])]),o(s).tbr_reader_proposal_enabled?(a(),d("div",Se,[e("label",{class:i(_)},"Max. Anzahl an Vorschlägen pro Mitglied"),e("div",null,[e("div",ze,[e("div",De,[e
1("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-decrement":"",onClick:t[19]||(t[19]=n=>w("tbr_max_proposals"))},t[43]||(t[43]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"})],-1)])),p(e("input",{class:"w-6 border-0 bg-transparent p-0 text-center text-stone-800 focus:ring-0",type:"text","onUpdate:modelValue":t[20]||(t[20]=n=>o(s).tbr_max_proposals=n),"data-hs-input-number-input":""},null,512),[[x,o(s).tbr_max_proposals]]),e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-increment":"",onClick:t[21]||(t[21]=n=>f("tbr_max_proposals"))},t[44]||(t[44]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)]))])]),t[45]||(t[45]=e("p",{class:"mt-2 text-sm text-stone-500"},"Bestimme wie viele Bücher ein Mitglied vorschlagen kann.",-1))])])):b("",!0),e("div",Ue,[e("div",Ee,[m(V,{for:"tbr_vote_enabled",class:"pb-2",value:"Mitgliedern erlauben für Bücher abzustimmen:"}),e("button",{id:"toggleButton",onClick:t[22]||(t[22]=n=>o(s).tbr_vote_enabled=!o(s).tbr_vote_enabled),class:i([{"bg-amber-400":o(s).tbr_vote_enabled,"bg-stone-200":!o(s).tbr_vote_enabled},"relative inline-flex h-6 w-11 items-center rounded-full transition-colors duration-300 focus:outline-none focus:ring-4 focus:ring-amber-300/50"]),role:"switch",type:"button"},[e("span",{class:i(["ml-0.5 inline-block h-5 w-5 transform rounded-full bg-white shadow transition-transform duration-300",{"translate-x-5":o(s).tbr_vote_enabled,"translate-x-0":!o(s).tbr_vote_enabled}])},null,2)],2),e("span",Le,u(o(s).tbr_vote_enabled?"An":"Aus"),1),m(A,{message:o(s).errors.tbr_vote_enabled,class:"mt-2"},null,8,["message"])])]),o(s).tbr_vote_enabled?(a(),d("div",Ne,[e("label",{class:i(_)},"Max. Anzahl an Stimmen pro Mitglied"),e("div",null,[e("div",Te,[e("div",Fe,[e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-decrement":"",onClick:t[23]||(t[23]=n=>w("tbr_max_votes"))},t[46]||(t[46]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"})],-1)])),p(e("input",{class:"w-6 border-0 bg-transparent p-0 text-center text-stone-800 focus:ring-0",type:"text","onUpdate:modelValue":t[24]||(t[24]=n=>o(s).tbr_max_votes=n),"data-hs-input-number-input":""},null,512),[[x,o(s).tbr_max_votes]]),e("button",{type:"button",class:"inline-flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-sm font-medium text-stone-800 shadow-sm hover:bg-stone-50 disabled:pointer-events-none disabled:opacity-50","data-hs-input-number-increment":"",onClick:t[25]||(t[25]=n=>f("tbr_max_votes"))},t[47]||(t[47]=[e("svg",{class:"flex-shrink-0 w-3.5 h-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)]))])]),t[48]||(t[48]=e("p",{class:"mt-2 text-sm text-stone-500"},"Bestimme für wie viele Bücher ein Mitglied abstimmen kann.",-1))])])):b("",!0)])):b("",!0)]),e("div",Pe,[m(o(K),{href:r.route("dashboard"),as:"button",class:"inline-flex cursor-pointer justify-center rounded-xl border border-stone-200 bg-stone-100 px-5 py-2.5 text-sm font-semibold text-stone-800 shadow-sm transition hover:bg-stone-200 focus:outline-none focus:ring-2 focus:ring-violet-600/25 focus:ring-offset-2"},{default:M(()=>t[49]||(t[49]=[y(" Zurück ")])),_:1},8,["href"]),e("button",{type:"submit",disabled:o(s).processing,class:"inline-flex justify-center rounded-xl bg-gradient-to-r from-violet-600 to-violet-500 px-6 py-2.5 text-sm font-semibold text-white shadow-md shadow-violet-600/25 transition hover:from-violet-700 hover:to-violet-600 focus:outline-none focus:ring-2 focus:ring-violet-600/40 focu
1s:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"}," Ändern ",8,He)])],32)]),_:1})])]),_:1}))}},Xe=W(Ie,[["__scopeId","data-v-9708914a"]]);export{Xe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.