1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a644613-5017-48a7-9dea-a2165fb69739",e._sentryDebugIdIdentifier="sentry-dbid-3a644613-5017-48a7-9dea-a2165fb69739")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"v2.0.5696-web"},(self.webpackChunk=self.webpackChunk||[]).push([[381],{2254:function(e,t,i){i.r(t),i.d(t,{default:function(){return S}});var n=i(5910),a=i(32136),s=i(30089),o=i(21253),l=i(40285),r=i(1231),c=i(50877),d=i(13324),u=i(22369),h=i(40005),f=i(92951),v=i(99773),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("web-await-loading",{attrs:{loading:e.loading},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"character-sheet-header-sticky"},[t("web-page-header",{scopedSlots:e._u([{key:"actions",fn:function(){return[t(a.A,{attrs:{type:"submit",form:"character-sheet-config-form",color:"primary",loading:e.savingConfig}},[t(d.A,{attrs:{left:""}},[e._v("fas fa-save")]),e._v("\n Speichern\n ")],1)]},proxy:!0}])},[e._v("\n Charakter-Steckbrief konfigurieren\n ")])],1),e._v(" "),t(c.A,{ref:"characterSheetConfigForm",attrs:{id:"character-sheet-config-form"},on:{submit:function(t){t.preventDefault(),e.$refs.characterSheetConfigForm.validate()&&e.saveConfig()}}},[e._l(e.categories,(function(i){return t(s.A,{key:i.id,staticClass:"mb-3"},[t(o.ri,[e._v(e._s(i.name))]),e._v(" "),t(o.OQ,[t(u.A,{staticClass:"mb-2"},[t(r.A,{staticClass:"mt-1",attrs:{cols:"12",md:"1"}},[t(l.A,{attrs:{"hide-details":"",dense:""},model:{value:i.active,callback:function(t){e.$set(i,"active",t)},expression:"category.active"}}
1)],1),e._v(" "),t(r.A,{attrs:{cols:"12",md:e.questionModeEnabled?3:4}},[t(f.A,{attrs:{label:"Name",rules:[e.$validationRules.required()],dense:"",outlined:"","hide-details":""},model:{value:i.name,callback:function(t){e.$set(i,"name","string"==typeof t?t.trim():t)},expression:"category.name"}})],1),e._v(" "),t(r.A,{attrs:{cols:"12",md:"2"}},[t(f.A,{attrs:{label:"Min. Zeichen",type:"number",min:"0",dense:"",outlined:"","hide-details":""},on:{blur:function(t){return e.normalizeMinAnswerLength(i)}},model:{value:i.minAnswerLength,callback:function(t){e.$set(i,"minAnswerLength",e._n(t))},expression:"category.minAnswerLength"}})],1),e._v(" "),e.questionModeEnabled?t(r.A,{attrs:{cols:"12",md:"2"}},[t(f.A,{attrs:{label:"Fragenanzahl",type:"number",min:"0",dense:"",outlined:"","hide-details":""},on:{blur:function(t){return e.normalizeQuestionCount(i)}},model:{value:i.questionCount,callback:function(t){e.$set(i,"questionCount",e._n(t))},expression:"category.questionCount"}})],1):e._e(),e._v(" "),t(r.A,{attrs:{cols:"12",md:e.questionModeEnabled?4:5}},[t(v.A,{attrs:{label:"Hinweistext (optional)",rows:"2","auto-grow":"",dense:"",outlined:"","hide-details":""},model:{value:i.hintText,callback:function(t){e.$set(i,"hintText","string"==typeof t?t.trim():t)},expression:"category.hintText"}})],1)],1)],1),e._v(" "),i.active?t(o.ZR,[e._v("\n "+e._s(e.questionModeEnabled?"Charakter-Steckbrief Fragen":"Charakter-Steckbrief Themen")+"\n ")]):e._e(),e._v(" "),i.active?t(o.OQ,[t("div",{staticClass:"d-flex justify-end mb-2"},[t(a.A,{attrs:{to:{name:"admin-character-sheet-question",params:{id:"new"},query:{categoryId:i.id,categoryName:i.name,categoryIndex:String(i.categoryIndex)}},color:"primary"}},[t(d.A,{attrs:{left:""}},[e._v("fas fa-plus")]),e._v("\n "+e._s(e.questionModeEnabled?"Neue Frage":"Neues Thema")+"\n ")],1)],1),e._v(" "),e.questionDataTableSourcesByCategory[i.id]?t("web-acp-server-data-table",{key:`${i.id}-datatable`,attrs:{source:e.questionDataTableSourcesByCategory[i.id],filter:e.questionTableFiltersByCategory[i.id],"remember-filter":!1,"sort-by":"active","sort-desc":!0},scopedSlots:e._u([{key:"item.active",fn:function({item:i}){return[i.active?t(a.A,{attrs:{icon:"",color:"green"}},[t(d.A,{attrs:{small:""}},[e._v("far fa-check-circle")])],1):t(a.A,{attrs:{icon:"",color:"red"}},[t(d.A,{attrs:{small:""}},[e._v("far fa-times-circle")])],1)]}},{key:"item.buttons",fn:function({item:i}){return[t(a.A,{attrs:{icon:"",to:{name:"admin-character-sheet-question",params:{id:i.id}}}},[t(d.A,{attrs:{small:""}},[e._v("fas fa-edit")])],1)]}}],null,!0)}):e._e()],1):e._e()],1)})),e._v(" "),t(s.A,{staticClass:"mt-3"},[t(o.ri,[e._v("Feste Kategorien")]),e._v(" "),t(o.OQ,e._l(e.fixedCategories,(function(i){return t(u.A,{key:i.id,staticClass:"mb-2"},[t(r.A,{attrs:{cols:"12",md:"3"}},[t(f.A,{attrs:{value:i.label,label:"Kategorie",disabled:"",dense:"",outlined:"","hide-details":""}})],1),e._v(" "),t(r.A,{attrs:{cols:"12",md:"9"}},[t(v.A,{attrs:{label:"Hinweistext (optional)",rows:"2","auto-grow":"",dense:"",outlined:"","hide-details":""},model:{value:i.hintText,callback:function(t){e.$set(i,"hintText","string"==typeof t?t.trim():t)},expression:"fixedCategory.hintText"}})],1)],1)})),1)],1),e._v(" "),t(s.A,{staticClass:"mt-3"},[t(o.ri,[e._v("\n Abschlusscheck\n "),t(h.A),e._v(" "),t(a.A,{attrs:{color:"primary",outlined:"",small:""},on:{click:e.addCompletionCheck}},[t(d.A,{attrs:{left:"",small:""}},[e._v("fas fa-plus")]),e._v("\n Neuer Check\n ")],1)],1),e._v(" "),t(o.OQ,[e._l(e.completionChecks,(function(i){return t(u.A,{key:i.id,staticClass:"mb-2"},[t(r.A,{attrs:{cols:"12",md:"8"}},[t(f.A,{attrs:{label:"Check-Text",rules:[e.$validationRules.required()],dense:"",outlined:"","hide-details":""},model:{value:i.text,callback:function(t){e.$set(i,"text","string"==typeof t?t.trim():t)},expression:"check.text"}})],1),e._v(" "),t(r.A,{attrs:{cols:"12",md:"2"}},[t(f.A,{attrs:{label:"Position",type:"number",min:"0",dense:"",outlined:"","hide-details":""},model:{value:i.position,callback:function(t){e.$set(i,"position",e._n(t))},expression:"check.position"}})],1),e._v(" "),t(r.A,{staticClass:"d-flex align-center",attrs:{cols:"12",md:"2"}},[t(a.A,{staticClass:"mr-2",attrs:{color:"primary",outlined:"",small:""},on:{click:function(t){return e.saveCompletionCheck(i)}}},[t(d.A,{attrs:{small:""}},[e._v("fas fa-save")])],1),e._v(" "),t(a.A,{attrs:{color:"error",outlined:"",small:""},on:{click:function(t){e.deletableCheck=i}}},[t(d.A,{attrs:{small:""}}
1,[e._v("fas fa-trash")])],1)],1)],1)})),e._v(" "),0===e.completionChecks.length?t(n.A,{attrs:{text:""}},[e._v(" Es wurden noch keine Abschlusschecks angelegt. ")]):e._e()],2)],1),e._v(" "),t(s.A,{staticClass:"mt-6",class:e.questionModeEnabled?"question-mode-enabled":"question-mode-disabled"},[t(o.ri,[e._v("Charakter-Steckbrief Zufalls-Fragenmodus")]),e._v(" "),t(o.OQ,[e._v("Kann nur durch die Entwicklung umgeschaltet werden.")]),e._v(" "),t(o.OQ,[t(l.A,{attrs:{label:"Aktiviert?","input-value":e.questionModeEnabled,disabled:"","hide-details":""}})],1)],1)],2)]},proxy:!0}])}),e._v(" "),e.deletableCheck?t("web-confirm-delete-dialog",{attrs:{loading:e.deletingCheck},on:{delete:e.removeCompletionCheck},model:{value:e.deletableCheck,callback:function(t){e.deletableCheck=t},expression:"deletableCheck"}},[t("p",[e._v("Möchtest du diesen Abschlusscheck wirklich löschen?")])]):e._e()],1)};m._withStripped=!0;var p=i(54705),g=i(91955),b=i(91642),y=i(95826),A=i(34048),_=i(47515),k=i(36599),C=i(86555),w=function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let x=class extends C.default{constructor(...e){super(...e),(0,p.A)(this,"questionModeEnabled",!1),(0,p.A)(this,"loading",!0),(0,p.A)(this,"savingConfig",!1),(0,p.A)(this,"savingCheck",!1),(0,p.A)(this,"deletingCheck",!1),(0,p.A)(this,"categories",[]),(0,p.A)(this,"fixedCategories",[]),(0,p.A)(this,"completionChecks",[]),(0,p.A)(this,"deletableCheck",null),(0,p.A)(this,"questionTableFiltersByCategory",{}),(0,p.A)(this,"questionDataTableSourcesByCategory",{})}async mounted(){this.loading=!0;try{await this.load()}finally{this.loading=!1}}async load(){const e=(await g.SS.get("/admin/character-sheet-config")).data;this.questionModeEnabled=e.questionModeEnabled,this.categories=e.categories,this.fixedCategories=e.fixedCategories,this.completionChecks=e.completionChecks.sort(((e,t)=>e.position-t.position)),this.initializeQuestionTables()}normalizeQuestionCount(e){e.questionCount=Math.max(0,Number.isFinite(e.questionCount)?e.questionCount:0)}normalizeMinAnswerLength(e){e.minAnswerLength=Math.max(0,Number.isFinite(e.minAnswerLength)?e.minAnswerLength:0)}async saveConfig(){this.savingConfig=!0;try{const e=(await g.SS.put("/admin/character-sheet-config",{categories:this.categories,fixedCategories:this.fixedCategories})).data;this.categories=e.categories,this.fixedCategories=e.fixedCategories,this.questionModeEnabled=e.questionModeEnabled,this.initializeQuestionTables()}finally{this.savingConfig=!1}}initializeQuestionTables(){const e={},t={};for(const i of this.categories)e[i.id]={category:i.id},t[i.id]=new b.j("/admin/character-sheet-questions",[{text:"Aktiv?",value:"active",align:"center",width:80,sortable:!0},{text:this.questionModeEnabled?"Frage":"Thema",value:"question",sortable:!0},{text:"",value:"buttons",align:"end",width:120}]);this.questionTableFiltersByCategory=e,this.questionDataTableSourcesByCategory=t}async addCompletionCheck(){this.savingCheck=!0;try{const e=this.completionChecks.reduce(((e,t)=>Math.max(e,t.position)),-1),t=(await g.SS.post("/admin/character-sheet-config/completion-checks",{text:"Neuer Abschlusscheck",position:e+1})).data;this.completionChecks.push(t),this.completionChecks.sort(((e,t)=>e.position-t.position))}finally{this.savingCheck=!1}}async saveCompletionCheck(e){if(e.text.trim()){this.savingCheck=!0;try{const t=(await g.SS.put(`/admin/character-sheet-config/completion-checks/${e.id}`,{text:e.text,position:Math.max(0,e.position)})).data,i=this.completionChecks.findIndex((e=>e.id===t.id));-1!==i&&this.completionChecks.splice(i,1,t),this.completionChecks.sort(((e,t)=>e.position-t.position))}finally{this.savingCheck=!1}}}async removeCompletionCheck(){if(this.deletableCheck){this.deletingCheck=!0;try{await g.SS.delete(`/admin/character-sheet-config/completion-checks/${this.deletableCheck.id}`),this.completionChecks=this.completionChecks.filter((e=>e.id!==this.deletableCheck?.id))}finally{this.deletingCheck=!1,this.deletableCheck=null}}}};x=w([(0,k.Ay)({components:{WebAcpServerDataTable:b.A,WebConfirmDeleteDialog:_.A,WebAwaitLoading:A.A,WebPageHeader:y.A}})],x);var q=x,S=(0,i(14486).A)(q,m,[],!1,null,"67d78898",null).exports},34048:function(e,t,i){i.d(t,{A:function(){return d}});var n=i(80583),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isLoading?t("div",[t(n.A,{attrs:{indeterminate:""}}),e._v("\n "+e._s(e.label)+"\n ")],1):t("div",[e._t("content")],2)
1])};a._withStripped=!0;var s=i(54705),o=i(76120),l=function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let r=class extends o.lD{constructor(...e){super(...e),(0,s.A)(this,"isLoading",void 0),(0,s.A)(this,"label",void 0)}};l([(0,o.pF)("loading",{default:!0})],r.prototype,"isLoading",void 0),l([(0,o.kv)({default:"Wird geladen ..."})],r.prototype,"label",void 0),r=l([(0,o.uA)({components:{}})],r);var c=r,d=(0,i(14486).A)(c,a,[],!1,null,"670fc4ad",null).exports},47515:function(e,t,i){i.d(t,{A:function(){return m}});var n=i(32136),a=i(30089),s=i(21253),o=i(26511),l=i(13324),r=i(40005),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(o.A,{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t(a.A,{attrs:{color:"error darken-4",outlined:""}},[t(s.ri,[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),t(s.OQ,[t("div",{staticClass:"d-flex"},[e.icon?t("div",{staticClass:"mr-4"},[t(l.A,[e._v(e._s(e.icon))])],1):e._e(),e._v(" "),t("div",[e._t("default")],2)])]),e._v(" "),t(s.SL,[t(r.A),e._v(" "),t(n.A,{attrs:{text:"",loading:e.loading},on:{click:e.cancel}},[t(l.A,{attrs:{left:""}},[e._v("fas fa-ban fa-fw")]),e._v("\n Abbrechen\n ")],1),e._v(" "),t(n.A,{attrs:{color:"error",loading:e.loading},on:{click:this.delete}},[t(l.A,{attrs:{left:""}},[e._v("fas fa-trash-alt fa-fw")]),e._v("\n "+e._s(e.label)+"\n ")],1)],1)],1)],1)};c._withStripped=!0;var d=i(54705),u=i(76120),h=function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let f=class extends u.lD{constructor(...e){super(...e),(0,d.A)(this,"show",void 0),(0,d.A)(this,"loading",void 0),(0,d.A)(this,"icon",void 0),(0,d.A)(this,"title",void 0),(0,d.A)(this,"label",void 0)}delete(){}cancel(){this.$listeners.cancel||(this.show="boolean"!=typeof this.show&&null)}};h([(0,u.Qq)()],f.prototype,"show",void 0),h([(0,u.kv)()],f.prototype,"loading",void 0),h([(0,u.kv)()],f.prototype,"icon",void 0),h([(0,u.kv)({default:"Löschen"})],f.prototype,"title",void 0),h([(0,u.kv)({default:"Löschen"})],f.prototype,"label",void 0),h([(0,u.O5)()],f.prototype,"delete",null),h([(0,u.O5)()],f.prototype,"cancel",null),f=h([(0,u.uA)({components:{}})],f);var v=f,m=(0,i(14486).A)(v,c,[],!1,null,"18c32b29",null).exports}}]);
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.