1import {_ as _e$1,b as bn,Y as Yn,q as qn,Q as Qe,U as Un,H as Hn,c as _n,m as mn}from'./chunk-BpvYLVKx.js';import {H}from'./chunk-BTlVHQ4w.js';import {a as Br,ae as u,M as ze,f as fD,T as ar,A as At,O as Ot,af as Ri,s as sh,l as ll,S as Si,g as lw,d as sl,p as pT,u as ul,j as AT,h as fE,i as dl,m as Xh,n as hT,e as CT,k as kh,c as bh,a0 as DI,C as Ch,a2 as pw,a5 as wI,ag as Nw,ah as xw,q as qu,W as Wu}from'./main-3KPETXYL.js';import {l as g1,_ as _1}from'./chunk-BB6DNB3x.js';import {$ as $e,O}from'./chunk-BKV6SBtl.js';import'./chunk-DgYqYx-b.js';function Z(t,d){if(t&1&&(Si(0,"div",10),lw(1),sl()),t&2){let e=AT(2).$implicit;fE(),dl(" ",e("UI.feedback_required")," ");}}function ee(t,d){if(t&1&&(Si(0,"code",18),lw(1),Nw(2,"json"),sl()),t&2){let e=AT(4);fE(),dl(" ",xw(2,1,e.error.errors)," ");}}function te(t,d){if(t&1&&(Si(0,"div",11)(1,"div",15),bh(2,"fa-icon",16),Si(3,"span",17),lw(4,"Fehler:"),sl()(),Si(5,"p"),lw(6),sl(),pT(7,ee,3,3,"code",18),sl()),t&2){let e=AT(3);fE(2),Ch("icon",e.faBug),fE(4),Xh(e.error.message),fE(),hT(e.error.errors?7:-1);}}function ie(t,d){if(t&1){let e=CT();Si(0,"form",7),kh("ngSubmit",function(){qu(e);let s=AT(2);return Wu(s.submitForm())}),Si(1,"label",8),lw(2),sl(),bh(3,"textarea",9),DI(),pT(4,Z,2,1,"div",10),pT(5,te,8,3,"div",11),Si(6,"div",12)(7,"button",13),lw(8),sl(),Si(9,"span",14),kh("click",function(){qu(e);let s=AT(2);return Wu(s.onClose())}),lw(10),sl()()();}if(t&2){let e=AT().$implicit,i=AT();Ch("formGroup",i.form),fE(2),Xh(e("UI.your_feedback_label")),fE(),Ch("placeholder",pw(e("UI.your_feedback"))),wI(),fE(),hT(i.feedback.errors&&i.isValidFormSubmitted!=null&&!i.isValidFormSubmitted?4:-1),fE(),hT(i.error?5:-1),fE(3),dl(" ",e("UI.submit_feedback")," "),fE(2),Xh(e("UI.cancel"));}}function oe(t,d){if(t&1&&(ll(0),Si(1,"div",1)(2,"div",2)(3,"h3",3),lw(4),sl(),Si(5,"p",4),lw(6),sl(),Si(7,"div",5),pT(8,ie,11,8,"form",6),sl()()(),ul()),t&2){let e=d.$implicit,i=AT();fE(4),dl(" ",e("UI.open_feedback")," "),fE(2),Xh(e("UI.feedback_text")),fE(2),hT(i.form?8:-1);}}var _e=(()=>{class t{constructor(e,i,s,W,X,Y){this.data=e,this.dialogRef=i,this.fb=s,this.apiService=W,this.successHandler=X,this.translate=Y,this.hotkeys=Array.from(this.data),this.faClose=g1,this.faBug=_1,this.isValidFormSubmitted=null;}ngOnInit(){this.initForm();}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}onClose(){this.dialogRef.close();}initForm(){this.form=this.fb.group({feedback:["",[_e$1.required]]});}submitForm(){if(this.isValidFormSubmitted=false,this.form.invalid)return;let e=window.location.href;this.subscription=this.apiService.submitFeedback(this.form.value.feedback,e).subscribe(()=>{this.form.reset(),this.successHandler.successHandler(this.translate.translate("UI.feedback_success")),this.dialogRef.close(true);},i=>{this.error=i.error;});}get feedback(){return this.form.get("feedback")}static{this.\u0275fac=function(i){return new(i||t)(Br($e),Br(O),Br(bn),Br(H),Br(u),Br(ze))};}static{this.\u0275cmp=fD({type:t,selectors:[["app-feedback-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"relative","rounded-xl","bg-white","p-4","shadow-centerMd","sm:w-full","md:p-8"],[1,"bg-white"],["id","modal-title",1,"mb-2","text-xl","font-bold","leading-6","text-gray-900"],[1,"text-sm","text-gray-800"],[1,"mt-4","w-full"],[3,"formGroup"],[3,"ngSubmit","formGroup"],["for","feedback",1,"sr-only"],["formControlName","feedback","id","feedback","rows","3",1,"w-full","rounded-lg","bg-gray-300","p-4","text-sm","placeholder-gray-700","focus:outline-blue-600",3,"placeholder"],[1,"rounded","border","border-solid","border-red-500","bg-red-400","px-2","py-1","text-xs","font-semibold","text-white"],[1,"my-4","rounded","border","border-solid","border-red-500","bg-red-400","px-3","py-2","text-xs","font-semibold","text-white"],[1,"mt-4","sm:flex","sm:flex-row-reverse"],["type","submit",1,"inline-flex","w-full","justify-center","rounded-md","border","border-transparent","bg-blue-500","px-4","py-2","text-base","font-medium","text-white","shadow-sm","transition-colors","duration-200","ease-in-out","hover:bg-orange-500","focus:outline-none","sm:ml-3","sm:w-auto","sm:text-sm"],["type","button",1,"mt-3","inline-flex","w-full","cursor-pointer","justify-center","rounded-md","border","border-gray-400","bg-white","px-4","py-2","text-base","font-medium","text-gray-700","shadow-sm","hover:bg-gray-500","focus:outline-none","sm:ml-3","sm:mt-0","sm:w-auto","sm:text-sm",3,"click"],[1,"mb-1","flex","flex-row","flex-wrap","items-center"],[1,"mr-1",3,"icon"],[1,"font-semibold"],[1,"font-normal","text-gray-300"]],template:function(i,s){i&1&&sh(0,oe,9,3,"ng-container",0);},dependencies:[ar,Yn,qn,Qe,Un,Hn,_n,mn,At,Ot,Ri],encapsulation:2,changeDetection:1});}}return t})();export{_e as FeedbackDialogComponent};
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.