- Vorlagen + Ketten: Partei-Dropdown-Filter mit Badges (#9) - Vorlagen-Detail: Ketten-Klassifikation mit Begründung anzeigen - Vorlagen-Detail: Umsetzungsbewertungen mit Score + Begründung - SPA-Routing: Catch-All für direkten URL-Zugriff - Status-Engine: Begründungen für alle Ketten-Status generieren - Kurze Beschlusstexte (<=5 Zeichen) nicht mehr als Beschluss werten - POST /api/bewertung/vorlagen/{id} + /ketten/{id} für KI-Neubewertung - Frontend: 'Neu bewerten' Button + Kommentarfeld auf beiden Detailseiten - Job-Status-Polling mit Spinner - ALLRIS-Rescrape vor Bewertung noch offen (#10) Closes #9
3 lines
6.3 KiB
JavaScript
3 lines
6.3 KiB
JavaScript
import{aQ as K,g as j,E as ee,o as te,aR as W,af as T,ax as z,Y as g,F as v,l as m,aS as B,Q as re,R as se,ap as ie,aT as H,a2 as p,a1 as Q,a0 as x,B as P,a3 as ne,aU as ae,aV as A,aW as D,aX as $,aY as fe,aZ as he,a_ as U,an as X,ar as oe,_ as k,W as O,n as le,V as de,a$ as S,T as ce,aE as ue,b0 as _e,b1 as pe,M as ge,G as ve,b2 as ye,b3 as M,a5 as be,a7 as G,b4 as me,a8 as Ee,aa as L,X as R,b5 as we,aC as Te,b6 as Se,au as Re,d as Ne,aq as Ae,a9 as De,h as Oe}from"./DAfY0XTB.js";import{b as Fe}from"./DCPIP6Ym.js";function xe(t){let e=0,r=z(0),i;return()=>{K()&&(j(r),ee(()=>(e===0&&(i=te(()=>t(()=>W(r)))),e+=1,()=>{T(()=>{e-=1,e===0&&(i?.(),i=void 0,W(r))})})))}}var ke=ce|ue;function Me(t,e,r,i){new Le(t,e,r,i)}class Le{parent;is_pending=!1;transform_error;#t;#_=v?g:null;#i;#o;#e;#n=null;#r=null;#s=null;#a=null;#l=0;#h=0;#d=!1;#p=new Set;#g=new Set;#f=null;#b=xe(()=>(this.#f=z(this.#l),()=>{this.#f=null}));constructor(e,r,i,n){this.#t=e,this.#i=r,this.#o=s=>{var a=m;a.b=this,a.f|=B,i(s)},this.parent=m.b,this.transform_error=n??this.parent?.transform_error??(s=>s),this.#e=re(()=>{if(v){const s=this.#_;se();const a=s.data===ie;if(s.data.startsWith(H)){const f=JSON.parse(s.data.slice(H.length));this.#E(f)}else a?this.#w():this.#m()}else this.#v()},ke),v&&(this.#t=g)}#m(){try{this.#n=p(()=>this.#o(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#i.failed;r&&(this.#s=p(()=>{r(this.#t,()=>e,()=>()=>{})}))}#w(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#r=p(()=>e(this.#t)),T(()=>{var r=this.#a=document.createDocumentFragment(),i=Q();r.append(i),this.#n=this.#u(()=>p(()=>this.#o(i))),this.#h===0&&(this.#t.before(r),this.#a=null,x(this.#r,()=>{this.#r=null}),this.#c(P))}))}#v(){try{if(this.is_pending=this.has_pending_snippet(),this.#h=0,this.#l=0,this.#n=p(()=>{this.#o(this.#t)}),this.#h>0){var e=this.#a=document.createDocumentFragment();ne(this.#n,e);const r=this.#i.pending;this.#r=p(()=>r(this.#t))}else this.#c(P)}catch(r){this.error(r)}}#c(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#g)}defer_effect(e){ae(e,this.#p,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#u(e){var r=m,i=U,n=X;A(this.#e),D(this.#e),$(this.#e.ctx);try{return fe.ensure(),e()}catch(s){return he(s),null}finally{A(r),D(i),$(n)}}#y(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,r);return}this.#h+=e,this.#h===0&&(this.#c(r),this.#r&&x(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,r){this.#y(e,r),this.#l+=e,!(!this.#f||this.#d)&&(this.#d=!0,T(()=>{this.#d=!1,this.#f&&oe(this.#f,this.#l)}))}get_effect_pending(){return this.#b(),j(this.#f)}error(e){var r=this.#i.onerror;let i=this.#i.failed;if(!r&&!i)throw e;this.#n&&(k(this.#n),this.#n=null),this.#r&&(k(this.#r),this.#r=null),this.#s&&(k(this.#s),this.#s=null),v&&(O(this.#_),le(),O(de()));var n=!1,s=!1;const a=()=>{if(n){pe();return}n=!0,s&&_e(),this.#s!==null&&x(this.#s,()=>{this.#s=null}),this.#u(()=>{this.#v()})},c=f=>{try{s=!0,r?.(f,a),s=!1}catch(h){S(h,this.#e&&this.#e.parent)}i&&(this.#s=this.#u(()=>{try{return p(()=>{var h=m;h.b=this,h.f|=B,i(this.#t,()=>f,()=>a)})}catch(h){return S(h,this.#e.parent),null}}))};T(()=>{var f;try{f=this.transform_error(e)}catch(h){S(h,this.#e&&this.#e.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(c,h=>S(h,this.#e&&this.#e.parent)):c(f)})}}const Ye=["touchstart","touchmove"];function Ce(t){return Ye.includes(t)}const w=Symbol("events"),J=new Set,Y=new Set;function Ie(t,e,r,i={}){function n(s){if(i.capture||C.call(e,s),!s.cancelBubble)return ye(()=>r?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?T(()=>{e.addEventListener(t,n,i)}):e.addEventListener(t,n,i),n}function He(t,e,r,i,n){var s={capture:i,passive:n},a=Ie(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ve(()=>{e.removeEventListener(t,a,s)})}function Pe(t,e,r){(e[w]??={})[t]=r}function $e(t){for(var e=0;e<t.length;e++)J.add(t[e]);for(var r of Y)r(t)}let q=null;function C(t){var e=this,r=e.ownerDocument,i=t.type,n=t.composedPath?.()||[],s=n[0]||t.target;q=t;var a=0,c=q===t&&t[w];if(c){var f=n.indexOf(c);if(f!==-1&&(e===document||e===window)){t[w]=e;return}var h=n.indexOf(e);if(h===-1)return;f<=h&&(a=f)}if(s=n[a]||t.target,s!==e){ge(t,"currentTarget",{configurable:!0,get(){return s||r}});var y=U,E=m;D(null),A(null);try{for(var _,l=[];s!==null;){var o=s.assignedSlot||s.parentNode||s.host||null;try{var d=s[w]?.[i];d!=null&&(!s.disabled||t.target===s)&&d.call(s,t)}catch(u){_?l.push(u):_=u}if(t.cancelBubble||o===e||o===null)break;s=o}if(_){for(let u of l)queueMicrotask(()=>{throw u});throw _}}finally{t[w]=e,delete t.currentTarget,D(y),A(E)}}}function qe(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function Ve(t,e){return Z(t,e)}function je(t,e){M(),e.intro=e.intro??!1;const r=e.target,i=v,n=g;try{for(var s=be(r);s&&(s.nodeType!==G||s.data!==me);)s=Ee(s);if(!s)throw L;R(!0),O(s);const a=Z(t,{...e,anchor:s});return R(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==L&&console.warn("Failed to hydrate: ",a),e.recover===!1&&we(),M(),Te(r),R(!1),Ve(t,e)}finally{R(i),O(n)}}const N=new Map;function Z(t,{target:e,anchor:r,props:i={},events:n,context:s,intro:a=!0,transformError:c}){M();var f=void 0,h=Se(()=>{var y=r??e.appendChild(Q());Me(y,{pending:()=>{}},l=>{Ne({});var o=X;if(s&&(o.c=s),n&&(i.$$events=n),v&&Fe(l,null),f=t(l,i)||{},v&&(m.nodes.end=g,g===null||g.nodeType!==G||g.data!==Ae))throw De(),L;Oe()},c);var E=new Set,_=l=>{for(var o=0;o<l.length;o++){var d=l[o];if(!E.has(d)){E.add(d);var u=Ce(d);for(const F of[e,document]){var b=N.get(F);b===void 0&&(b=new Map,N.set(F,b));var V=b.get(d);V===void 0?(F.addEventListener(d,C,{passive:u}),b.set(d,1)):b.set(d,V+1)}}}};return _(Re(J)),Y.add(_),()=>{for(var l of E)for(const u of[e,document]){var o=N.get(u),d=o.get(l);--d==0?(u.removeEventListener(l,C),o.delete(l),o.size===0&&N.delete(u)):o.set(l,d)}Y.delete(_),y!==r&&y.parentNode?.removeChild(y)}});return I.set(f,h),f}let I=new WeakMap;function ze(t,e){const r=I.get(t);return r?(I.delete(t),r(e)):Promise.resolve()}export{Pe as a,$e as d,He as e,je as h,Ve as m,qe as s,ze as u};
|