@uipath/du-validation-station-wc 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +142 -98
- package/LICENSE +9 -9
- package/README.md +296 -296
- package/chunk-2EG2XMZA.js +1 -0
- package/{chunk-YCOIYOXV.js → chunk-46UR4BR4.js} +1 -1
- package/{chunk-4RC3DPEI.js → chunk-72L4UBH7.js} +1 -1
- package/chunk-A7SW22GE.js +2 -0
- package/chunk-AEFGZOXA.js +1 -0
- package/{chunk-7XMORYEY.js → chunk-IGNVST57.js} +1 -1
- package/{chunk-5LGMGLPM.js → chunk-XOLTEKM3.js} +80 -80
- package/chunk-YYFDQWK6.js +5 -0
- package/{chunk-MEJRHTNP.js → chunk-Z4Q2KRL4.js} +1 -1
- package/du-assets/du-business-rules-executor/dotnet.d.ts +0 -0
- package/du-assets/du-business-rules-executor/dotnet.js +0 -0
- package/du-assets/du-business-rules-executor/dotnet.js.map +0 -0
- package/du-assets/du-business-rules-executor/dotnet.native.wasm +0 -0
- package/du-assets/du-business-rules-executor/dotnet.runtime.js +0 -0
- package/du-assets/du-business-rules-executor/dotnet.runtime.js.map +0 -0
- package/du-assets/du-validation-station-feature/i18n/en.json +14 -1
- package/index.html +16 -16
- package/main.js +25 -19
- package/package.json +3 -2
- package/types.d.ts +401 -401
- package/chunk-4DL5ZETN.js +0 -1
- package/chunk-6AEFIYR5.js +0 -4
- package/chunk-GUD4Q5ED.js +0 -2
- package/chunk-OCUVVNK2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as bt,g as Ln,h as kn,i as An,j as Oo,l as Un,m as Bn,n as Hn,p as Wn,q as jn,r as qn,s as Gn,t as Kn,u as $n,v as Ro}from"./chunk-Z4Q2KRL4.js";import{j as Mn,l as Eo,m as Fn,n as Do,o as qt,p as Nn,q as Po}from"./chunk-YYFDQWK6.js";import{$a as Ve,$b as $e,$d as et,A as wt,Ab as le,Ad as At,Ae as Li,Ai as vn,B as Te,Bb as Vt,Be as xe,Bi as gn,Cb as h,Cc as bi,Ce as rt,Ci as xn,Cj as ht,Db as U,Dc as yi,Dd as fo,Dg as en,Di as bn,Dk as gt,E as Q,Ea as Rt,Eb as fe,Ed as Ti,Eg as So,Ei as yn,Fg as tn,Fk as xt,Ga as si,Ge as W,Gi as Sn,H as Dt,Ha as k,He as $,Hg as nn,Hj as ft,Ia as Be,Id as wi,Ig as on,Ih as ln,Ij as wn,Ik as In,Ja as re,Jb as V,Jd as Di,Jg as an,Jh as sn,K as we,Ka as ci,Kb as w,Kd as Ye,Kk as Vn,La as Re,Lb as f,Ld as Qe,Lg as rn,M as oi,Ma as di,Mb as Ge,Md as Pi,Mh as ut,Na as H,Nb as zt,Nf as qi,O as De,Ob as vi,Oe as ki,Of as Gi,Ol as zn,Pb as ze,Ph as cn,Q as N,Qb as Fe,Qd as vo,Qf as yo,Ql as wo,Rb as Ne,Rd as Oi,Re as Ai,Rf as Ki,Sa as He,Sb as Ke,Sd as Ri,Ta as R,Tf as $i,Ud as Je,Uf as Zi,Uh as ce,V as Pt,Va as E,Vd as Ut,Vf as Xi,Vj as Dn,Wd as Ii,We as Ui,Wf as Yi,Wh as pt,Wj as Pn,Xa as T,Xb as x,Xe as Bi,Xf as Qi,Y as A,Yb as M,Yd as Vi,Ye as lt,Yf as mt,Yh as _t,Yj as On,Z as Ue,Za as mi,Zb as Ft,Zd as zi,Ze as te,Zf as Bt,Zj as ie,_ as Ot,_a as Ie,_b as Le,_d as Fi,_e as be,a as ni,aa as l,ab as u,ad as Si,ae as Ni,ai as Ct,ak as vt,b as Tt,bb as r,be as tt,c as G,ca as ai,cb as d,cc as Nt,ce as it,da as p,db as I,dc as C,ea as _,ec as B,ef as Hi,ff as go,fk as Rn,ga as Pe,gb as ui,gd as Mi,gk as To,ha as Oe,hb as We,hc as Ze,hd as Ei,he as nt,ib as je,ic as b,ie as ot,ig as se,jb as It,jc as ve,je as at,ka as J,kb as y,lf as Wi,ma as Co,md as kt,mf as xo,nb as g,nf as st,o as ne,oa as ee,ob as a,oc as gi,of as ct,p as Ae,pa as K,pb as pi,pf as dt,pi as dn,qb as _i,qc as Lt,qd as ge,qi as Mo,ra as ri,ri as Ht,sb as Ci,sd as ho,sg as Ji,si as Wt,sj as jt,tb as hi,tc as z,ti as mn,tj as En,ua as s,ub as fi,ui as un,v as oe,vi as pn,w as Y,wb as Ce,wi as _n,wj as Tn,xa as ae,xb as qe,xf as ji,xi as Cn,ya as li,yb as he,yf as bo,yi as hn,yj as j,zc as xi,zd as Xe,zi as fn}from"./chunk-XOLTEKM3.js";import"./chunk-ZOBGFIAP.js";import"./chunk-7LF7TUYR.js";import"./chunk-QSPXPEUM.js";import"./chunk-MHF6VH7J.js";import"./chunk-OC2CZ3QN.js";import"./chunk-S75KSQCC.js";import"./chunk-F3WKVTVT.js";import"./chunk-TX6COQKF.js";import"./chunk-B3JIB7CB.js";import"./chunk-AV2XMJZK.js";import"./chunk-TLNUV6LJ.js";import"./chunk-X3MDAFQV.js";import"./chunk-LE344D6P.js";import"./chunk-BSSTUKEO.js";import"./chunk-SLCVE5JY.js";import"./chunk-NWYS2Y26.js";import"./chunk-5ORQKHAE.js";import"./chunk-NNIW76YM.js";import"./chunk-GN4LVN6F.js";import"./chunk-Q3TZ5E3J.js";import"./chunk-THUL57GX.js";import"./chunk-7FN55G7Q.js";import"./chunk-JA4SO6QN.js";import"./chunk-DJJWZ6ME.js";import"./chunk-BME7YW2F.js";import"./chunk-ZHEQ3EZZ.js";import"./chunk-LIP7LW4Z.js";import"./chunk-OCJB2TQU.js";import"./chunk-UFSYSDPG.js";import"./chunk-NVYUSY5M.js";import"./chunk-DP4VB7EI.js";import"./chunk-FBLIPTM4.js";import"./chunk-3JRA4PLP.js";import"./chunk-RQKBBL3R.js";import"./chunk-ZTKCIUS4.js";import"./chunk-FEFKMD5S.js";import"./chunk-5ORJAWGA.js";import"./chunk-YTZYL6W2.js";import"./chunk-JBS3UN52.js";import{a as L,b as ii,f as X}from"./chunk-3ONYU5UZ.js";function ye(i,c){if(!(i instanceof Node))return null;let e=i;for(;e!=null&&!(e instanceof Element);)e=e.parentNode;return e?.closest(c)??null}var Zn=X(()=>{"use strict"});function No(i){return Number(i.match(/(\d+)px/)?.[1])}function Lo(i){return Number(i?.match(/0 0\.01 (\d+)px/)?.[1])}var Qn,Gt,Io,Xn,Vo,zo,de,me,St,Ee,yt,ue,Kt,pe,Fo,$t,Zt,ko,Jn,Er,Tr,Ao,Se,Yn,Uo,eo,to,io=X(()=>{"use strict";z();z();kt();Pt();Co();Zn();mn();ho();vo();it();Qn=".cdk-header-cell, .mat-header-cell",Gt=".cdk-header-row, .mat-header-row",Io=".mat-column-resize-overlay-thumb",Xn="cdk-column-resize-hover-or-active",Vo="cdk-column-resize-with-resized-column",zo=new Ot("CdkColumnResizeOptions"),de=(()=>{class i{_renderer=l(Rt);_eventCleanups;destroyed=new G;selectorId=l(Ei).getId("cdk-column-resize-");id;_flushPending=!1;liveResizeUpdates=l(zo,{optional:!0})?.liveResizeUpdates??!0;ngAfterViewInit(){this.elementRef.nativeElement.classList.add(this.getUniqueCssClass()),this._listenForRowHoverEvents(),this._listenForResizeActivity(),this._listenForHoverActivity()}ngOnDestroy(){this._eventCleanups?.forEach(e=>e()),this.destroyed.next(),this.destroyed.complete()}getUniqueCssClass(){return this.selectorId}getTableId(){return String(this.elementRef.nativeElement.id)}setResized(){this.elementRef.nativeElement.classList.add(Vo)}_listenForRowHoverEvents(){this.ngZone.runOutsideAngular(()=>{let e=this.elementRef.nativeElement;this._eventCleanups=[this._renderer.listen(e,"mouseover",t=>{this.eventDispatcher.headerCellHovered.next(ye(t.target,Qn))}),this._renderer.listen(e,"mouseleave",t=>{t.relatedTarget&&!t.relatedTarget.matches(Io)&&this.eventDispatcher.headerCellHovered.next(null)})]})}_listenForResizeActivity(){oe(this.eventDispatcher.overlayHandleActiveForCell.pipe(Te(void 0)),this.notifier.triggerResize.pipe(Te(void 0)),this.notifier.resizeCompleted.pipe(Te(void 0))).pipe(wt(1),N(this.destroyed)).subscribe(()=>{this.setResized()})}_listenForHoverActivity(){this.eventDispatcher.headerRowHoveredOrActiveDistinct.pipe(De(null),Dt(),N(this.destroyed)).subscribe(([e,t])=>{t&&t.classList.add(Xn),e&&e.classList.remove(Xn)})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=re({type:i,inputs:{liveResizeUpdates:"liveResizeUpdates"}})}return i})(),me=(()=>{class i{resizeCanceled=new G;resizeCompleted=new G;triggerResize=new G;static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),St=(()=>{class i{_source=l(me);resizeCompleted=this._source.resizeCompleted;resize(e,t){this._source.triggerResize.next({columnId:e,size:t,completeImmediately:!0,isStickyColumn:!0})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),Ee=(()=>{class i{_ngZone=l(ae);headerCellHovered=new G;overlayHandleActiveForCell=new G;headerCellHoveredDistinct=this.headerCellHovered.pipe(Q(),we());headerRowHoveredOrActiveDistinct=Ae([this.headerCellHoveredDistinct.pipe(ne(e=>ye(e,Gt)),De(null),Q()),this.overlayHandleActiveForCell.pipe(ne(e=>ye(e,Gt)),De(null),Q())]).pipe(oi(1),ne(([e,t])=>t||e),Q(),we());_headerRowHoveredOrActiveDistinctReenterZone=this.headerRowHoveredOrActiveDistinct.pipe(this._enterZone(),we());_lastSeenRow=null;_lastSeenRowHover=null;resizeOverlayVisibleForHeaderRow(e){return e!==this._lastSeenRow&&(this._lastSeenRow=e,this._lastSeenRowHover=this._headerRowHoveredOrActiveDistinctReenterZone.pipe(ne(t=>t===e),Q(),we())),this._lastSeenRowHover}_enterZone(){return e=>new Tt(t=>e.subscribe({next:n=>this._ngZone.run(()=>t.next(n)),error:n=>t.error(n),complete:()=>t.complete()}))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),yt=class{tasks=[];endTasks=[]},ue=new Ot("_COALESCED_STYLE_SCHEDULER"),Kt=(()=>{class i{_currentSchedule=null;_ngZone=l(ae);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new yt,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new yt;for(let t of e.tasks)t();for(let t of e.endTasks)t()}this._currentSchedule=null})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),pe=(()=>{class i{_tableObserved=!1;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(e=>this._updateCachedSizes(e)):null;updateTableWidthAndStickyColumns(e){this.columnResize._flushPending=!0,this.styleScheduler.scheduleEnd(()=>{this.columnResize._flushPending&&(this.columnResize._flushPending=!1,this.table.updateStickyColumnStyles())})}getElementWidth(e){return No(e.style.width)||this._elemSizeCache.get(e)?.width||e.offsetWidth}registerColumn(e){this._tableObserved||(this._tableObserved=!0,this._resizeObserver?.observe(this.columnResize.elementRef.nativeElement,{box:"border-box"})),this._resizeObserver?.observe(e,{box:"border-box"})}ngOnDestroy(){this._resizeObserver?.disconnect()}_updateCachedSizes(e){for(let t of e){let n=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};this._elemSizeCache.set(t.target,n)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),Fo=(()=>{class i extends pe{columnResize=l(de);styleScheduler=l(ue);table=l(Wt);applyColumnSize(e,t,n,o){let m=n-(o??this.getElementWidth(t));m!==0&&(this.styleScheduler.schedule(()=>{t.style.width=ge(n)}),this.updateTableWidthAndStickyColumns(m))}applyMinColumnSize(e,t,n){let o=this.getElementWidth(t),m=Math.max(o,n);this.applyColumnSize(e,t,m,o)}applyMaxColumnSize(e,t,n){let o=this.getElementWidth(t),m=Math.min(o,n);this.applyColumnSize(e,t,m,o)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),$t=(()=>{class i extends pe{columnResize=l(de);styleScheduler=l(ue);table=l(Wt);_nonce=l(ri,{optional:!0});_document=l(Oe);_columnIndexes=new Map;_columnProperties=new Map;_styleElement;_indexSequence=0;defaultMinSize=0;defaultMaxSize=Number.MAX_SAFE_INTEGER;applyColumnSize(e,t,n,o){let m=n-(o??(this._getAppliedWidth(e)||t.offsetWidth));if(m===0)return;let v=ge(n);this._applyProperty(e,"flex",`0 0.01 ${v}`),this.updateTableWidthAndStickyColumns(m)}applyMinColumnSize(e,t,n){let o=ge(n);this._applyProperty(e,"min-width",o,n!==this.defaultMinSize),this.updateTableWidthAndStickyColumns(0)}applyMaxColumnSize(e,t,n){let o=ge(n);this._applyProperty(e,"max-width",o,n!==this.defaultMaxSize),this.updateTableWidthAndStickyColumns(0)}getColumnCssClass(e){return`cdk-column-${e}`}ngOnDestroy(){super.ngOnDestroy(),this._styleElement?.remove(),this._styleElement=void 0}_getPropertyValue(e,t){return this._getColumnPropertiesMap(e).get(t)}_getAppliedWidth(e){return Lo(this._getPropertyValue(e,"flex"))}_applyProperty(e,t,n,o=!0){let m=this._getColumnPropertiesMap(e);this.styleScheduler.schedule(()=>{o?m.set(t,n):m.delete(t),this._applySizeCss(e)})}_getStyleSheet(){return this._styleElement||(this._styleElement=this._document.createElement("style"),this._nonce&&this._styleElement.setAttribute("nonce",this._nonce),this._styleElement.appendChild(this._document.createTextNode("")),this._document.head.appendChild(this._styleElement)),this._styleElement.sheet}_getColumnPropertiesMap(e){let t=this._columnProperties.get(e);return t===void 0&&(t=new Map,this._columnProperties.set(e,t)),t}_applySizeCss(e){let t=this._getColumnPropertiesMap(e),n=Array.from(t.keys()),o=this._columnIndexes.get(e);if(o===void 0){if(!n.length)return;o=this._indexSequence++,this._columnIndexes.set(e,o)}else this._getStyleSheet().deleteRule(o);let m=this.getColumnCssClass(e),S=`.${this.columnResize.getUniqueCssClass()} .${m}`,P=n.map(D=>`${D}:${t.get(D)}`).join(";");this._getStyleSheet().insertRule(`${S} {${P}}`,o)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})();Zt={provide:pe,useClass:Fo},ko={provide:pe,useClass:$t},Jn=[St,Ee,me,{provide:ue,useClass:Kt}],Er=[...Jn,Zt],Tr=[...Jn,ko],Ao=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),Se=class{origin;overlayRef;minWidthPx;maxWidthPx;liveUpdates;constructor(c,e,t,n,o=!0){this.origin=c,this.overlayRef=e,this.minWidthPx=t,this.maxWidthPx=n,this.liveUpdates=o}},Yn="cdk-resizable-overlay-thumb-active",Uo="cdk-resizable-resize-disabled",eo=(()=>{class i{minWidthPxInternal=0;maxWidthPxInternal=Number.MAX_SAFE_INTEGER;inlineHandle;overlayRef;destroyed=new G;columnSizeStore=l(Ao,{optional:!0});_injector=l(Pe);_viewInitialized=!1;_isDestroyed=!1;get minWidthPx(){return this.minWidthPxInternal}set minWidthPx(e){this.minWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMinWidthPx()}get maxWidthPx(){return this.maxWidthPxInternal}set maxWidthPx(e){this.maxWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMaxWidthPx()}ngOnInit(){this.resizeStrategy.registerColumn(this.elementRef.nativeElement)}ngAfterViewInit(){this._listenForRowHoverEvents(),this._listenForResizeEvents(),this._appendInlineHandle(),this.styleScheduler.scheduleEnd(()=>{this._isDestroyed||(this._viewInitialized=!0,this._applyMinWidthPx(),this._applyMaxWidthPx(),this.columnSizeStore?.getSize(this.columnResize.getTableId(),this.columnDef.name)?.pipe(wt(1),N(this.destroyed)).subscribe(e=>{e!=null&&this._applySize(e)}))})}ngOnDestroy(){this._isDestroyed=!0,this.destroyed.next(),this.destroyed.complete(),this.inlineHandle?.remove(),this.overlayRef?.dispose()}_createOverlayForHandle(){let e=this.directionality.value==="rtl",t=Vi(this._injector,this.elementRef.nativeElement).withFlexibleDimensions(!1).withGrowAfterOpen(!1).withPush(!1).withDefaultOffsetX(e?1:0).withPositions([{originX:e?"start":"end",originY:"top",overlayX:"center",overlayY:"top"}]);return zi(this._injector,{direction:"ltr",disposeOnNavigation:!0,positionStrategy:t,scrollStrategy:Ii(this._injector),width:"16px"})}_listenForRowHoverEvents(){let e=this.elementRef.nativeElement,t=N(this.destroyed);this.eventDispatcher.resizeOverlayVisibleForHeaderRow(ye(e,Gt)).pipe(t).subscribe(n=>{if(n){let o=this.maxWidthPxInternal<Number.MAX_SAFE_INTEGER&&e.offsetWidth>this.maxWidthPxInternal;e.classList.toggle(Uo,o),o||(this.overlayRef||(this.overlayRef=this._createOverlayForHandle()),this._showHandleOverlay())}else this.overlayRef&&this.overlayRef.detach()})}_listenForResizeEvents(){let e=N(this.destroyed);oe(this.resizeNotifier.resizeCanceled,this.resizeNotifier.triggerResize).pipe(e,Y(t=>t.columnId===this.columnDef.name)).subscribe(({size:t,previousSize:n,completeImmediately:o})=>{this.elementRef.nativeElement.classList.add(Yn),this._applySize(t,n),o&&this._completeResizeOperation()}),oe(this.resizeNotifier.resizeCanceled,this.resizeNotifier.resizeCompleted).pipe(e).subscribe(t=>{this._cleanUpAfterResize(t)}),this.resizeNotifier.resizeCompleted.pipe(Y(t=>t.columnId===this.columnDef.name),Q((t,n)=>t.size===n.size),N(this.destroyed)).subscribe(t=>{this.columnSizeStore?.setSize(this.columnResize.getTableId(),this.columnDef.name,t.size)})}_completeResizeOperation(){this.ngZone.run(()=>{this.resizeNotifier.resizeCompleted.next({columnId:this.columnDef.name,size:this.elementRef.nativeElement.offsetWidth})})}_cleanUpAfterResize(e){this.elementRef.nativeElement.classList.remove(Yn),this.overlayRef&&this.overlayRef.hasAttached()&&(this._updateOverlayHandleHeight(),this.overlayRef.updatePosition(),e.columnId===this.columnDef.name&&this.inlineHandle.focus())}_createHandlePortal(){let e=Pe.create({parent:this.injector,providers:[{provide:Se,useValue:new Se(this.elementRef,this.overlayRef,this.minWidthPx,this.maxWidthPx,this.columnResize.liveResizeUpdates)}]});return new Pi(this.getOverlayHandleComponentType(),this.viewContainerRef,e)}_showHandleOverlay(){this._updateOverlayHandleHeight(),this.overlayRef.attach(this._createHandlePortal()),this.changeDetectorRef.markForCheck()}_updateOverlayHandleHeight(){ai(this.injector,()=>{li({write:()=>{this.overlayRef.updateSize({height:this.elementRef.nativeElement.offsetHeight})}})})}_applySize(e,t){let n=Math.min(Math.max(e,this.minWidthPx,0),this.maxWidthPx);this.resizeStrategy.applyColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,n,t)}_applyMinWidthPx(){this.resizeStrategy.applyMinColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.minWidthPx)}_applyMaxWidthPx(){this.resizeStrategy.applyMaxColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.maxWidthPx)}_appendInlineHandle(){this.inlineHandle=this.document.createElement("div"),this.inlineHandle.className=this.getInlineHandleCssClassName(),this.elementRef.nativeElement.appendChild(this.inlineHandle)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=re({type:i})}return i})(),to=(()=>{class i{_renderer=l(Rt);destroyed=new G;_cumulativeDeltaX=0;ngAfterViewInit(){this._listenForMouseEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForMouseEvents(){this.ngZone.runOutsideAngular(()=>{this._observableFromEvent(this.elementRef.nativeElement,"mouseenter").pipe(Te(this.resizeRef.origin.nativeElement),N(this.destroyed)).subscribe(e=>this.eventDispatcher.headerCellHovered.next(e)),this._observableFromEvent(this.elementRef.nativeElement,"mouseleave").pipe(ne(e=>e.relatedTarget&&ye(e.relatedTarget,Qn)),N(this.destroyed)).subscribe(e=>this.eventDispatcher.headerCellHovered.next(e)),this._observableFromEvent(this.elementRef.nativeElement,"mousedown").pipe(N(this.destroyed)).subscribe(e=>{this._dragStarted(e)})})}_dragStarted(e){if(e.button!==0)return;let t=this._observableFromEvent(this.document,"mouseup"),n=this._observableFromEvent(this.document,"mousemove"),o=this._observableFromEvent(this.document,"keyup").pipe(Y(F=>F.keyCode===27)),m=e.screenX,v=this._getOriginWidth(),S=0,P=this._getOriginOffset(),D=v,O=0;this._cumulativeDeltaX=0,this.updateResizeActive(!0),t.pipe(N(oe(o,this.destroyed))).subscribe(({screenX:F})=>{this.styleScheduler.scheduleEnd(()=>{this._notifyResizeEnded(D,F!==m)})}),o.pipe(N(oe(t,this.destroyed))).subscribe(()=>{this._notifyResizeEnded(v)}),n.pipe(ne(({screenX:F})=>F),De(m),Q(),Dt(),N(oe(t,o,this.destroyed))).subscribe(([F,_e])=>{let q=_e-F;if(!this.resizeRef.liveUpdates){this._cumulativeDeltaX+=q;let Z=this._computeNewSize(D,this._cumulativeDeltaX)-D;this._updateOverlayOffset(Z);return}if(O!==0)if(O<0&&q<0||O>0&&q>0){O+=q;return}else{let Z=O+q;if(O=O>0?Math.max(Z,0):Math.min(Z,0),q=Z-O,q===0)return}this._triggerResize(D,q),this.styleScheduler.scheduleEnd(()=>{let Z=this._getOriginWidth(),ti=this._getOriginOffset(),_o=ti-P,Et=Z-D;D=Z,P=ti,O+=q+(this._isLtr()?-Et:Et),S+=_o+(this._isLtr()?Et:0),this._updateOverlayOffset(S)})})}updateResizeActive(e){this.eventDispatcher.overlayHandleActiveForCell.next(e?this.resizeRef.origin.nativeElement:null)}_triggerResize(e,t){this.resizeNotifier.triggerResize.next({columnId:this.columnDef.name,size:this._computeNewSize(e,t),previousSize:e,isStickyColumn:this.columnDef.sticky||this.columnDef.stickyEnd})}_computeNewSize(e,t){let n=e+(this._isLtr()?t:-t);return n=Math.min(Math.max(n,this.resizeRef.minWidthPx,0),this.resizeRef.maxWidthPx),n}_getOriginWidth(){return this.resizeRef.origin.nativeElement.offsetWidth}_getOriginOffset(){return this.resizeRef.origin.nativeElement.offsetLeft}_updateOverlayOffset(e){this.resizeRef.overlayRef.overlayElement.style.transform=`translateX(${ge(e)})`}_isLtr(){return this.directionality.value==="ltr"}_notifyResizeEnded(e,t=!1){this.updateResizeActive(!1),this.ngZone.run(()=>{let n={columnId:this.columnDef.name,size:this._computeNewSize(e,this._cumulativeDeltaX)};t?(this.resizeRef.liveUpdates||this._triggerResize(e,this._cumulativeDeltaX),this.resizeNotifier.resizeCompleted.next(n)):this.resizeNotifier.resizeCanceled.next(n)})}_observableFromEvent(e,t){return new Tt(n=>{let o=v=>n.next(v),m=this._renderer.listen(e,t,o);return()=>{m(),n.complete()}})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=re({type:i})}return i})()});var Bo,Ho,Wo,no,jo,Br,Xt,ke,qo,Yt,oo,Go,Ko,ao,Qt=X(()=>{"use strict";io();z();z();xo();it();fo();mn();Bo=["top"],Ho=(()=>{class i extends $t{getColumnCssClass(e){return`mat-column-${e}`}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})(),Wo={provide:pe,useClass:Ho},no=[St,Ee,me,{provide:ue,useClass:Kt}],jo=[...no,Zt],Br=[...no,Wo],Xt=class extends de{getTableHeight(){return this.elementRef.nativeElement.offsetHeight}},ke=(()=>{class i extends Xt{columnResizeNotifier=l(St);elementRef=l(K);eventDispatcher=l(Ee);ngZone=l(ae);notifier=l(me);static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275dir=re({type:i,selectors:[["table","mat-table","","columnResize",""]],hostAttrs:[1,"mat-column-resize-table"],features:[ze([...jo,{provide:de,useExisting:i}]),Re]})}return i})(),qo=(()=>{class i extends to{columnDef=l(Ht);columnResize=l(de);directionality=l(At);elementRef=l(K);eventDispatcher=l(Ee);ngZone=l(ae);resizeNotifier=l(me);resizeRef=l(Se);styleScheduler=l(ue);document=l(Oe);topElement;updateResizeActive(e){super.updateResizeActive(e);let t=this.resizeRef.origin.nativeElement.offsetHeight;this.topElement.nativeElement.style.height=`${t}px`,this.resizeRef.overlayRef.updateSize({height:e?this.columnResize.getTableHeight():t})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275cmp=k({type:i,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&Ci(Bo,7),t&2){let o;hi(o=fi())&&(n.topElement=o.first)}},hostAttrs:[1,"mat-column-resize-overlay-thumb"],features:[Re],decls:2,vars:0,consts:[["top",""],[1,"mat-column-resize-overlay-thumb-top"]],template:function(t,n){t&1&&ui(0,"div",1,0)},encapsulation:2,changeDetection:0})}return i})(),Yt=class extends eo{minWidthPxInternal=32;getInlineHandleCssClassName(){return"mat-resizable-handle"}getOverlayHandleComponentType(){return qo}},oo=(()=>{class i extends Yt{columnDef=l(Ht);columnResize=l(de);directionality=l(At);elementRef=l(K);eventDispatcher=l(Ee);injector=l(Pe);ngZone=l(ae);resizeNotifier=l(me);resizeStrategy=l(pe);styleScheduler=l(ue);viewContainerRef=l(si);changeDetectorRef=l(gi);document=l(Oe);static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(i)))(n||i)}})();static \u0275dir=re({type:i,selectors:[["mat-header-cell","resizable",""],["th","mat-header-cell","","resizable",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:[0,"matResizableMinWidthPx","minWidthPx"],maxWidthPx:[0,"matResizableMaxWidthPx","maxWidthPx"]},features:[Re]})}return i})(),Go=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Be({type:i});static \u0275inj=Ue({})}return i})(),Ko=[Ti,tt,Go],ao=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Be({type:i});static \u0275inj=Ue({imports:[Ko]})}return i})()});function oa(i,c){if(i&1){let e=y();r(0,"ui-du-compact-crop-popover",10),g("mouseenter",function(){p(e);let n=a(2);return _(n.onCropPopoverMouseEnter())}),d()}if(i&2){let e=a(2);u("crops",e.referenceCrops()??Fe(1,ia))}}function aa(i,c){if(i&1&&H(0,oa,1,2,"ng-template",5,1,$e),i&2){let e=a();u("cdkConnectedOverlayOrigin",e.overlayOrigin)("cdkConnectedOverlayOpen",e.shouldShowCropPopover())("cdkConnectedOverlayScrollStrategy",e.cropPopoverScrollStrategy)("cdkConnectedOverlayViewportMargin",30)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayPositions",e.cropPopoverPositions())}}function ra(i,c){if(i&1){let e=y();r(0,"button",11),x(1,"translate"),x(2,"uiHotkeysComboDisplay"),x(3,"translate"),g("click",function(){p(e);let n=a();return _(n.addNewValueToField())}),r(4,"mat-icon"),h(5,"add_circle_outline"),d()()}if(i&2){let e,t=a();u("disabled",!t.canChangeValue())("matTooltip",Ke(9,na,M(1,3,t.createValueTooltip()),M(2,5,(e=t.changeValueShortcut())==null?null:e.combos)).join(" ")),R("aria-label",M(3,7,t.createValueTooltip()))}}function la(i,c){if(i&1){let e=y();r(0,"ui-compact-actions-menu",12),g("change",function(){p(e);let n=a(),o=f(1);return _(o?n.changeExtractedValue():n.addNewValueToField())})("revert",function(){p(e);let n=a();return _(n.revertToPreviousValue())})("remove",function(){p(e);let n=a();return _(n.removeExtractedValue())})("textDirectionChange",function(n){p(e);let o=a();return _(o.onTextDirectionChange(n))})("reverseWords",function(){p(e);let n=a();return _(n.reverseWords())})("stateChange",function(n){p(e);let o=a();return _(o.menuOpen.set(n==="open"))}),d()}if(i&2){let e=a(),t=f(0);u("disableChange",!e.canChangeValue())("disableRevert",!e.hasHistory())("displayRemove",t.valueIds.length>0)("displayTextDirection",e.displayRTLFeatures())("displayReverseWords",e.displayRTLFeatures())("shouldMarkAsMissingInsteadOfRemove",t.valueIds.length===1)("shouldAddInsteadOfChange",t.valueIds.length===0)("hotkeys",e.hotkeys())}}var Jo,ea,ta,ia,na,Mt,ei=X(()=>{"use strict";kt();it();Ut();z();yo();Qe();be();bo();dt();Bt();at();$();Ct();ht();vt();cn();Ji();Pt();Vn();wo();Oo();z();it();kt();at();dt();be();Qe();$();Jo=["cropPopover"],ea=["cell"],ta=["*"],ia=()=>[],na=(i,c)=>[i,c];Mt=(()=>{class i{_overlay=l(Fi);_configurationsManagerService=l(ft);_extractionManagerService=l(ie);_bridgeService=l(gt);_vsKeyboardShortcutsService=l(xt);_valuesFactoryService=l(Pn);_scrollDispatcher=l(Oi);_rootNodeService=l(ut);_hostElement=l(K).nativeElement;field=b.required();taxonomy=b.required();value=b.required();rowIndex=b.required();readonly=b(!1);allowRevertValue=b(!1);textDirection=b("auto");positionCropHorizontally=b(!1);textDirectionChange=Ze();disableChange=J(!0);menuOpen=J(!1);overlayOrigin=l(et);_cropPopoverOverlay=ve("cropPopover");_cellElement=ve.required("cell");referenceCrops=C(()=>{let e=this.value();if(e?.id)return this._extractionManagerService.cropsMap()[e.id]?.crops});shouldShowCropPopover=C(()=>this.isSelected());_cropPopoverPositionFlipped=this._extractionManagerService.cropsPositionFlipped;cropPopoverPositions=C(()=>this._cropPopoverPositionFlipped()!==(this.positionCropHorizontally()||this.menuOpen())?nn:on);createValueTooltip=C(()=>this._pdfHasValidSelectionForValue()?"VS_SIMPLE_FIELD_CHANGE_VALUE_TOOLTIP":this.taxonomy().requiresReference?"":"VS_SIMPLE_FIELD_CHANGE_EMPTY_REFERENCE_VALUE_TOOLTIP");cropPopoverScrollStrategy=this._overlay.scrollStrategies.reposition();hasHistory=C(()=>!!this._extractionManagerService.historyMap()[this._valueOrFieldId()]?.history?.length);displayRTLFeatures=C(()=>this._configurationsManagerService.globalCustomizations().isRTLFeaturesEnabled&&!this._configurationsManagerService.isTemplateManager()&&zn(this.taxonomy()));hotkeys=this._vsKeyboardShortcutsService.table;markAsValidatedShortcut=C(()=>this.readonly()?void 0:this.hotkeys()?.markAsValidated);changeValueShortcut=C(()=>this.readonly()?void 0:this.hotkeys()?.changeValue);revertShortcut=C(()=>this.readonly()?void 0:this.hotkeys()?.revert);removeShortcut=C(()=>this.readonly()?void 0:this.hotkeys()?.remove);exitEditModeShortcut=C(()=>this.readonly()?void 0:this.hotkeys()?.exitEditMode);markAsValidatedCheckboxShortcut=C(()=>this.field().valueIds.length?this.markAsValidatedShortcut():void 0);checkboxTooltipKey=C(()=>!this.field().valueIds.length?"VS_TABLE_FIELD_CONFIRM_IS_MISSING_TOOLTIP":"VS_VALUE_CONFIRM_TOOLTIP");isSelected=C(()=>this._valueOrFieldId()===this._extractionManagerService.selectedValueId());confirmed=C(()=>(this.value()??this.field()).confirmationStatus===j.Confirmed);_pdfSelectionAsPrimaryValue=this._bridgeService.pdfSelectionAsPrimaryValue;_pdfHasValidSelectionForValue=C(()=>{if(this.readonly())return!1;let e=this._pdfSelectionAsPrimaryValue();return In(e,this._fieldConfiguration().referenceEditModes)&&!Tn(e?.reference,this.value()?.reference)});_fieldConfiguration=C(()=>this._configurationsManagerService.getFieldCustomization(this.taxonomy().id));_valueOrFieldId=C(()=>this.value()?.id??this.field().id);_valueOrFieldId$=Gi(this._valueOrFieldId);canChangeValue=C(()=>{let e=this.taxonomy(),t=this._pdfSelectionAsPrimaryValue();return!e.requiresReference&&!t||this._pdfHasValidSelectionForValue()});_resizeObserver=null;constructor(){B(e=>{let t=this.cropPopoverPositions(),n=this._cropPopoverOverlay()?.overlayRef;Nt(()=>{if(t&&n){let o=setTimeout(()=>this.shouldShowCropPopover()&&n.updatePosition());e(()=>clearTimeout(o))}})}),B(e=>{let t=this.shouldShowCropPopover();Nt(()=>{t?(this._resizeObserver??=new ResizeObserver(an(()=>this._handleResize(),10)),this._resizeObserver.observe(this._cellElement().nativeElement)):this._resizeObserver?.disconnect(),e(()=>this._resizeObserver?.disconnect())})}),B(e=>{let t=this._registerHotKeys();e(()=>t?.unsubscribe())}),B(()=>{this.isSelected()&&this._bringValueIntoViewAndFocus()}),Ae([this._extractionManagerService.focusedValueId$,this._valueOrFieldId$]).pipe(Y(([e,t])=>e===t),qi()).subscribe(()=>this._bringValueIntoViewAndFocus())}_handleResize(){let e=this._cropPopoverOverlay()?.overlayRef;this.shouldShowCropPopover()&&e&&requestAnimationFrame(()=>e.updatePosition())}addNewValueToField(){let e=L(L({},this._valuesFactoryService.generatePrimaryValue(this.field().fieldId,this.field().id)),this._pdfSelectionAsPrimaryValue());this._extractionManagerService.addExtractedPrimaryValue(this.field().id,e)}changeExtractedValue(){let e=this.value();if(!this.canChangeValue()||!e||this.taxonomy().type!==ce.Field)return;let n=L(L({},e),this._pdfSelectionAsPrimaryValue());this._extractionManagerService.updateExtractedPrimaryValue(n)}revertToPreviousValue(){this._extractionManagerService.restorePreviousValue(this._valueOrFieldId())}removeExtractedValue(){let e=this.value()?.id;e&&this._extractionManagerService.removeExtractedValues(this.field().id,[e])}onTextDirectionChange(e){this.textDirectionChange.emit(e)}reverseWords(){let e=this.value();if(!e?.reference)return;let n=this._bridgeService.reverseWordsInPrimaryValue(e);this._extractionManagerService.updateExtractedPrimaryValue(n)}onFocusChange(e){se(e)&&!this.isSelected()&&e!=="mouse"&&e!=="touch"&&(this._selectValue(jt.Tab),this._focusShell())}onClick(){this.isSelected()||this._selectValue(jt.MouseClick),this._bringValueIntoViewAndFocus()}onConfirmationChange(e){this._bringValueIntoViewAndFocus(),this._extractionManagerService.changeValueConfirmation(this._valueOrFieldId(),e)}restorePreviousValue(){this._extractionManagerService.restorePreviousValue(this._valueOrFieldId())}onCropPopoverMouseEnter(){this._cropPopoverPositionFlipped.update(e=>!e)}_selectValue(e){this._extractionManagerService.setSelectedValue(this._valueOrFieldId())}_registerHotKeys(){let e=this.markAsValidatedShortcut(),t=this.changeValueShortcut(),n=this.revertShortcut(),o=this.removeShortcut(),m=this.exitEditModeShortcut(),v=[e,t,n,o,m].filter(se);return this._vsKeyboardShortcutsService.listen$(v).subscribe(S=>{if(this.isSelected())switch(S.shortcut){case e:this.onConfirmationChange(!0);break;case t:{if(!this._pdfHasValidSelectionForValue())break;this.value()?this.changeExtractedValue():this.addNewValueToField();break}case n:this.restorePreviousValue();break;case o:this._extractionManagerService.removeExtractedValues(this.field().id,[this.value()?.id??""]);break;case m:this._focusShell();break;default:break}})}_bringValueIntoViewAndFocus(){this._isFocusWithinShell()||this._focusShell()}_focusShell(){requestAnimationFrame(()=>{this._cellElement().nativeElement.focus(),this._scrollIntoViewIfNeeded()})}_scrollIntoViewIfNeeded(){let e=this._hostElement,t=this._scrollDispatcher.getAncestorScrollContainers(e)[0];if(!t)return;let n=t.getElementRef().nativeElement,o=e.getBoundingClientRect(),m=n.getBoundingClientRect(),v=n.offsetHeight-n.clientHeight,S=n.offsetWidth-n.clientWidth,P={left:5,bottom:5+v,right:95+S,top:50},D={left:o.left-m.left,top:o.top-m.top,right:m.right-o.right,bottom:m.bottom-o.bottom},O,F;D.left<P.left?O={left:t.measureScrollOffset("left")+D.left-P.left,right:void 0}:D.right<P.right&&(O={left:void 0,right:t.measureScrollOffset("right")+D.right-P.right}),D.top<P.top?F={top:t.measureScrollOffset("top")+D.top-P.top,bottom:void 0}:D.bottom<P.bottom&&(F={top:void 0,bottom:t.measureScrollOffset("bottom")+D.bottom-P.bottom}),t.scrollTo(L(L({},O),F))}_isFocusWithinShell(){let e=this._cellElement().nativeElement,t=this._rootNodeService.getRootNode(e).activeElement;return e.contains(t)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["ui-du-compact-cell-shell"]],viewQuery:function(t,n){t&1&&(Ce(n._cropPopoverOverlay,Jo,5),Ce(n._cellElement,ea,5)),t&2&&qe(2)},inputs:{field:[1,"field"],taxonomy:[1,"taxonomy"],value:[1,"value"],rowIndex:[1,"rowIndex"],readonly:[1,"readonly"],allowRevertValue:[1,"allowRevertValue"],textDirection:[1,"textDirection"],positionCropHorizontally:[1,"positionCropHorizontally"]},outputs:{textDirectionChange:"textDirectionChange"},features:[di([et])],ngContentSelectors:ta,decls:15,vars:22,consts:[["cell",""],["cropPopover","cdkConnectedOverlay"],["cdkMonitorSubtreeFocus","","tabindex","0",1,"compact-cell-shell",3,"cdkFocusChange","click"],[3,"field","taxonomy","value","valueIndex"],[1,"value-container"],["cdkConnectedOverlay","","cdkConnectedOverlayTransformOriginOn","ui-du-compact-crop-popover",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayViewportMargin","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayPositions"],["mat-icon-button","","data-testid","missing-value-create-value","type","button","color","primary",3,"disabled","matTooltip"],["data-testid","confirmation-checkbox","matTooltipPosition","above","matTooltipShowDelay","500",3,"change","matTooltip","checked","disabled","aria-label"],[1,"menu"],["direction","vert",3,"disableChange","disableRevert","displayRemove","displayTextDirection","displayReverseWords","shouldMarkAsMissingInsteadOfRemove","shouldAddInsteadOfChange","hotkeys"],["data-testid","crop-popover",3,"mouseenter","crops"],["mat-icon-button","","data-testid","missing-value-create-value","type","button","color","primary",3,"click","disabled","matTooltip"],["direction","vert",3,"change","revert","remove","textDirectionChange","reverseWords","stateChange","disableChange","disableRevert","displayRemove","displayTextDirection","displayReverseWords","shouldMarkAsMissingInsteadOfRemove","shouldAddInsteadOfChange","hotkeys"]],template:function(t,n){if(t&1){let o=y();pi(),V(0)(1),r(2,"div",2,0),g("cdkFocusChange",function(v){return p(o),_(n.onFocusChange(v))})("click",function(){return p(o),_(n.onClick())}),I(4,"ui-du-compact-value-indicators",3),r(5,"div",4),_i(6),d(),E(7,aa,2,6,null,5),E(8,ra,6,12,"button",6),V(9),x(10,"translate"),r(11,"mat-checkbox",7),x(12,"uiHotkeysComboDisplay"),g("change",function(v){return p(o),_(n.onConfirmationChange(v.checked))}),d(),r(13,"div",8),E(14,la,1,8,"ui-compact-actions-menu",9),d()()}if(t&2){let o,m,v=w(n.field());s();let S=w(n.value()),P=n.taxonomy(),D=n.confirmed();s(),le("is-selected",n.isSelected()),R("data-testid","value-shell"+(n.isSelected()?"_selected":"")),s(2),u("field",v)("taxonomy",P)("value",S)("valueIndex",n.rowIndex()),s(3),T(S&&((o=n.referenceCrops())!=null&&o.length)?7:-1),s(),T(!n.readonly()&&!S?8:-1);let O=M(10,18,n.checkboxTooltipKey());s(3),u("matTooltip",vi("",O," ",M(12,20,(m=n.markAsValidatedCheckboxShortcut())==null?null:m.combos)))("checked",D)("disabled",n.readonly()),He("aria-label",O),s(3),T(n.readonly()?-1:14)}},dependencies:[tt,Ni,Mi,Si,Je,mt,ji,ot,nt,ct,st,te,lt,Ye,Xe,W,An,Ln,kn,rt,rn],styles:[".compact-cell-shell[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-height:40px;cursor:pointer;margin:4px 0;padding:0 2px;border-radius:4px;outline:2px solid transparent;display:flex;align-items:center}.compact-cell-shell.is-selected[_ngcontent-%COMP%]{outline-color:var(--color-primary);--value-selected: 1}.compact-cell-shell[_ngcontent-%COMP%]:hover{--value-hovered: 1}.compact-cell-shell[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{opacity:calc(var(--value-hovered, 0) + var(--value-selected, 0))}.compact-cell-shell[_ngcontent-%COMP%] .value-container[_ngcontent-%COMP%]{flex:1;overflow:hidden}"],changeDetection:0})}return i})()});function sa(i,c){i&1&&(r(0,"i",2),h(1,"VS_SIMPLE_FIELD_REMOVED_MESSAGE"),d())}function ca(i,c){i&1&&(r(0,"i",2),h(1,"VS_SIMPLE_FIELD_NO_DATA_MESSAGE"),d())}function da(i,c){if(i&1&&(r(0,"div",1),E(1,sa,2,0,"i",2)(2,ca,2,0,"i",2),d()),i&2){let e=a(),t=f(0);s(),T(t.confirmationStatus===e.ConfirmationStatus.Confirmed?1:2)}}function ma(i,c){if(i&1){let e=y();r(0,"ui-du-compact-boolean-input",10),g("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("validationError",e.computedValidationError())}}function ua(i,c){if(i&1){let e=y();r(0,"ui-du-compact-set-input",11),g("panelOpenChange",function(n){p(e);let o=a(2);return _(o.panelOpen.set(n))})("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))}),d()}if(i&2){let e=a(2),t=f(1),n=f(2);u("value",t.value??"")("options",n.values)("validationError",e.computedValidationError())}}function pa(i,c){if(i&1){let e=y();r(0,"ui-du-compact-number-input",12),g("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("valueUniqueId",t.id)("derivedParts",t.derivedParts)("validationError",e.computedValidationError())("textDirection",e.textDirection())("decimalSeparator",e.docTypeMetadata().decimalSeparator)("thousandsSeparator",e.docTypeMetadata().thousandsSeparator)}}function _a(i,c){if(i&1){let e=y();r(0,"ui-du-compact-monetary-input",13),g("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))})("derivedPartsChange",function(n){p(e);let o=a(2);return _(o.onDerivedPartsChange(n,!0))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("valueUniqueId",t.id)("derivedParts",t.derivedParts)("validationError",e.computedValidationError())("textDirection",e.textDirection())("decimalSeparator",e.docTypeMetadata().decimalSeparator)("thousandsSeparator",e.docTypeMetadata().thousandsSeparator)}}function Ca(i,c){if(i&1){let e=y();r(0,"ui-du-compact-date-input",14),g("panelOpenChange",function(n){p(e);let o=a(2);return _(o.panelOpen.set(n))})("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))})("derivedPartsChange",function(n){p(e);let o=a(2);return _(o.onDerivedPartsChange(n))}),d()}if(i&2){let e=a(2),t=f(0),n=f(1);u("fieldId",t.id)("value",n.value??"")("valueUniqueId",n.id)("derivedParts",n.derivedParts)("validationError",e.computedValidationError())("textDirection",e.textDirection())("displayFormat",e.docTypeMetadata().dateDisplayFormat)}}function ha(i,c){if(i&1){let e=y();r(0,"ui-du-compact-address-input",15),g("panelOpenChange",function(n){p(e);let o=a(2);return _(o.panelOpen.set(n))})("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n,!0))})("derivedPartsChange",function(n){p(e);let o=a(2);return _(o.onDerivedPartsChange(n))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("valueUniqueId",t.id)("derivedParts",t.derivedParts)("validationError",e.computedValidationError())("maxRows",4)("textDirection",e.textDirection())}}function fa(i,c){if(i&1){let e=y();r(0,"ui-du-compact-name-input",16),g("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n,!0))})("derivedPartsChange",function(n){p(e);let o=a(2);return _(o.onDerivedPartsChange(n))})("panelOpenChange",function(n){p(e);let o=a(2);return _(o.panelOpen.set(n))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("valueUniqueId",t.id)("derivedParts",t.derivedParts)("validationError",e.computedValidationError())("maxRows",4)("textDirection",e.textDirection())}}function va(i,c){if(i&1){let e=y();r(0,"ui-du-compact-text-input",17),g("valueChange",function(n){p(e);let o=a(2);return _(o.onInputValueChanges(n))}),d()}if(i&2){let e=a(2),t=f(1);u("value",t.value??"")("validationError",e.computedValidationError())("maxRows",4)("textDirection",e.textDirection())}}function ga(i,c){if(i&1&&I(0,"ui-du-compact-validator-notes",9),i&2){a();let e=f(9),t=f(10);a();let n=f(0),o=f(1);u("fieldId",n.id)("valueId",o.id)("taxonomy",e)("notes",t)("appInReadonlyMode",!1)}}function xa(i,c){if(i&1&&(r(0,"div"),E(1,ma,1,2,"ui-du-compact-boolean-input",3)(2,ua,1,3,"ui-du-compact-set-input",4)(3,pa,1,7,"ui-du-compact-number-input",5)(4,_a,1,7,"ui-du-compact-monetary-input",5)(5,Ca,1,7,"ui-du-compact-date-input",6)(6,ha,1,6,"ui-du-compact-address-input",7)(7,fa,1,6,"ui-du-compact-name-input",7)(8,va,1,4,"ui-du-compact-text-input",8),d(),V(9)(10),E(11,ga,1,5,"ui-du-compact-validator-notes",9)),i&2){let e,t=a(),n=f(2);s(),T((e=n.contentType)===t.FieldType.Boolean?1:e===t.FieldType.Set?2:e===t.FieldType.Number?3:e===t.FieldType.MonetaryQuantity?4:e===t.FieldType.Date?5:e===t.FieldType.Address?6:e===t.FieldType.Name?7:8),s(8);let o=w(t.validatorNotesTaxonomy());s(),w(t.validatorNotes()),s(),T(o&&o.enabled&&o.level===t.ValidatorNotesLevel.Value?11:-1)}}var ro,lo=X(()=>{"use strict";z();$();Ct();ht();vt();Ro();Un();ei();z();$();ro=(()=>{class i{_taxonomyManagerService=l(wn);_extractionManagerService=l(ie);_derivedPartsService=l(Dn);_extractionValidationService=l(On);field=b.required();taxonomy=b.required();value=b.required();rowIndex=b.required();panelOpen=J(!1);textDirection=J("auto");docTypeMetadata=C(()=>this._extractionManagerService.documentTypeTaxonomy());computedValidationError=C(()=>this._extractionValidationService.invalidPrimaryValuesMap()[this.value()?.id??""]?.validationError??null);validatorNotesTaxonomy=C(()=>this._taxonomyManagerService.getById(this.field().fieldId)?.validatorNotes);validatorNotes=C(()=>this.validatorNotesTaxonomy()?.enabled?this.value()?.validatorNotes:void 0);ValidatorNotesLevel=_t;FieldType=pt;ConfirmationStatus=j;hasHistory=C(()=>!!this._extractionManagerService.historyMap()[this._valueOrFieldId()]?.history?.length);_valueOrFieldId=C(()=>this.value()?.id??this.field().id);onTextDirectionChange(e){this.textDirection.set(e)}onInputValueChanges(e,t=!1){let n=this.value();if(!n)return;let o=t,m=this.taxonomy(),v=L({},n);!e&&n.value!==n.unformattedValue?(v.value=n.unformattedValue,v.derivedParts=n.derivedParts.map(S=>ii(L({},S),{value:""})),o=!1):(v.value=this._derivedPartsService.convertFormattedValueToValue(m.contentType,e)??e,v.derivedParts=this._derivedPartsService.convertFormattedValueToDerivedParts(m.contentType,e),v.reference||(v.unformattedValue=e)),this._extractionManagerService.updateExtractedPrimaryValue(v,o,!0)}onDerivedPartsChange(e,t=!1){let n=this.value();if(!n)return;let o=L(L({},n),this._derivedPartsService.derivedPartsToValueUpdate(n,e));this._extractionManagerService.updateExtractedPrimaryValue(o,!1,t)}onRevertToPreviousValue(){this._extractionManagerService.restorePreviousValue(this.value()?.id??this.field().id)}onConfirmCell(){this._changeCellConfirmation(!0)}onUnconfirmCell(){this._changeCellConfirmation(!1)}onRemoveExtractedValue(){this._extractionManagerService.removeExtractedValues(this.field().id,[this.value()?.id??""])}_changeCellConfirmation(e){this._extractionManagerService.changeValueConfirmation(this._valueOrFieldId(),e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["ui-du-compact-cell"]],inputs:{field:[1,"field"],taxonomy:[1,"taxonomy"],value:[1,"value"],rowIndex:[1,"rowIndex"]},decls:6,vars:10,consts:[[3,"textDirectionChange","field","taxonomy","value","textDirection","rowIndex","positionCropHorizontally"],["data-testid","missing-cell-value",1,"missing-value"],["translate",""],[3,"value","validationError"],[3,"value","options","validationError"],[3,"value","valueUniqueId","derivedParts","validationError","textDirection","decimalSeparator","thousandsSeparator"],[3,"fieldId","value","valueUniqueId","derivedParts","validationError","textDirection","displayFormat"],[3,"value","valueUniqueId","derivedParts","validationError","maxRows","textDirection"],[3,"value","validationError","maxRows","textDirection"],["data-testid","validator-notes",1,"validator-notes",3,"fieldId","valueId","taxonomy","notes","appInReadonlyMode"],[3,"valueChange","value","validationError"],[3,"panelOpenChange","valueChange","value","options","validationError"],[3,"valueChange","value","valueUniqueId","derivedParts","validationError","textDirection","decimalSeparator","thousandsSeparator"],[3,"valueChange","derivedPartsChange","value","valueUniqueId","derivedParts","validationError","textDirection","decimalSeparator","thousandsSeparator"],[3,"panelOpenChange","valueChange","derivedPartsChange","fieldId","value","valueUniqueId","derivedParts","validationError","textDirection","displayFormat"],[3,"panelOpenChange","valueChange","derivedPartsChange","value","valueUniqueId","derivedParts","validationError","maxRows","textDirection"],[3,"valueChange","derivedPartsChange","panelOpenChange","value","valueUniqueId","derivedParts","validationError","maxRows","textDirection"],[3,"valueChange","value","validationError","maxRows","textDirection"]],template:function(t,n){if(t&1){let o=y();V(0)(1)(2),r(3,"ui-du-compact-cell-shell",0),g("textDirectionChange",function(v){return p(o),_(n.onTextDirectionChange(v))}),E(4,da,3,1,"div",1)(5,xa,12,4),d()}if(t&2){let o=w(n.field());s();let m=w(n.value());s(),w(n.taxonomy()),s(),u("field",o)("taxonomy",n.taxonomy())("value",m)("textDirection",n.textDirection())("rowIndex",n.rowIndex())("positionCropHorizontally",n.panelOpen()),s(),T(m?5:4)}},dependencies:[W,xe,Mt,Bn,Hn,Wn,jn,qn,Kn,Gn,$n,bt],styles:[".missing-value[_ngcontent-%COMP%]{display:flex;align-items:center}.missing-value[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:auto}"],changeDetection:0})}return i})()});function ba(i,c){i&1&&(r(0,"i",2),h(1,"VS_SIMPLE_FIELD_REMOVED_MESSAGE"),d())}function ya(i,c){i&1&&(r(0,"i",2),h(1,"VS_SIMPLE_FIELD_NO_DATA_MESSAGE"),d())}function Sa(i,c){if(i&1&&(r(0,"div",1),E(1,ba,2,0,"i",2)(2,ya,2,0,"i",2),d()),i&2){let e=a(),t=f(0);s(),T(t.confirmationStatus===e.ConfirmationStatus.Confirmed?1:2)}}function Ma(i,c){if(i&1&&I(0,"ui-du-compact-validator-notes",4),i&2){a();let e=f(2),t=f(3);a();let n=f(0),o=f(1);u("fieldId",n.id)("valueId",o.id)("taxonomy",t)("notes",e)("appInReadonlyMode",!0)}}function Ea(i,c){if(i&1&&(r(0,"div",3),h(1),d(),V(2)(3),E(4,Ma,1,5,"ui-du-compact-validator-notes",4)),i&2){let e=a();s(),fe(" ",e.stringValue()," "),s(),w(e.validatorNotes()),s();let t=w(e.validatorNotesTaxonomy());s(),T(t&&t.enabled&&t.level===e.ValidatorNotesLevel.Value?4:-1)}}var so,co=X(()=>{"use strict";z();be();$();Ct();ht();Un();ei();z();$();so=(()=>{class i{field=b.required();taxonomy=b.required();value=b.required();rowIndex=b.required();TaxonomyDefinitionType=ce;ConfirmationStatus=j;validatorNotesTaxonomy=C(()=>{let e=this.taxonomy();if(e.type===ce.Field)return e.validatorNotes});validatorNotes=C(()=>this.validatorNotesTaxonomy()?.enabled?this.value()?.validatorNotes:void 0);ValidatorNotesLevel=_t;stringValue=C(()=>{let e=this.taxonomy(),t=this.value()?.value??"";return t?e.contentType===pt.Set?e.values.find(n=>n===t)??"":t:""});isMissing=C(()=>!this.value());static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["ui-du-compact-readonly-cell"]],inputs:{field:[1,"field"],taxonomy:[1,"taxonomy"],value:[1,"value"],rowIndex:[1,"rowIndex"]},decls:5,vars:8,consts:[[3,"field","taxonomy","value","readonly","rowIndex"],[1,"missing-value"],["translate",""],[1,"display-value"],["data-testid","validator-notes",1,"validator-notes",3,"fieldId","valueId","taxonomy","notes","appInReadonlyMode"]],template:function(t,n){if(t&1&&(V(0)(1),r(2,"ui-du-compact-cell-shell",0),E(3,Sa,3,1,"div",1)(4,Ea,5,4),d()),t&2){let o=w(n.field());s();let m=w(n.value());s(),u("field",o)("taxonomy",n.taxonomy())("value",m)("readonly",!0)("rowIndex",n.rowIndex()),s(),T(m?4:3)}},dependencies:[te,W,xe,Mt,bt],encapsulation:2,changeDetection:0})}return i})()});function Pa(i,c){if(i&1&&It(0,1),i&2){let e=c.$implicit,t=c.$index;a();let n=he(6);u("ngTemplateOutlet",n)("ngTemplateOutletContext",Ke(2,Ta,e,t))}}function Oa(i,c){if(i&1&&It(0,1),i&2){a();let e=he(6);u("ngTemplateOutlet",e)("ngTemplateOutletContext",Ne(2,wa,-1))}}function Ra(i,c){if(i&1&&I(0,"ui-du-compact-readonly-cell",2),i&2){let e=a().value,t=a(),n=f(0),o=f(1);u("field",n)("taxonomy",o)("value",e)("rowIndex",t.rowIndex())}}function Ia(i,c){if(i&1&&I(0,"ui-du-compact-cell",2),i&2){let e=a().value,t=a(),n=f(0),o=f(1);u("field",n)("taxonomy",o)("value",e)("rowIndex",t.rowIndex())}}function Va(i,c){if(i&1&&E(0,Ra,1,4,"ui-du-compact-readonly-cell",2)(1,Ia,1,4,"ui-du-compact-cell",2),i&2){let e=a();T(e.isReadonly()?0:1)}}var Ta,wa,Da,mo,uo=X(()=>{"use strict";yi();z();be();$();Ct();vt();lo();co();z();yi();Ta=(i,c)=>({value:i,index:c}),wa=i=>({value:null,index:i}),Da=(i,c)=>c.id;mo=(()=>{class i{_extractionManagerService=l(ie);isReadonly=b.required();fieldId=b.required();taxonomy=b.required();field=C(()=>this._extractionManagerService.getById(this.fieldId()));rowIndex=b.required();values=C(()=>this.field().valueIds.map(e=>this._extractionManagerService.getById(e)));TaxonomyDefinitionType=ce;constructor(){B(()=>{let e=this.field();this._extractionManagerService.selectedValueId()===e.id&&e.valueIds.length&&this._extractionManagerService.setSelectedValue(e.valueIds[0])})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["ui-du-compact-cell-field"]],inputs:{isReadonly:[1,"isReadonly"],fieldId:[1,"fieldId"],taxonomy:[1,"taxonomy"],rowIndex:[1,"rowIndex"]},decls:7,vars:3,consts:[["valueTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","taxonomy","value","rowIndex"]],template:function(t,n){t&1&&(V(0)(1),Ie(2,Pa,1,5,"ng-container",1,Da,!1,Oa,1,4,"ng-container",1),H(5,Va,2,1,"ng-template",null,0,$e)),t&2&&(w(n.field()),s(),w(n.taxonomy()),s(),Ve(n.values()))},dependencies:[bi,xi,te,W,so,ro],encapsulation:2,changeDetection:0})}return i})()});function ka(i,c){if(i&1&&(r(0,"th",27)(1,"div",28),I(2,"ui-du-shared-field-hotkey-button",29),r(3,"span"),h(4),d()()()),i&2){let e=a(),t=e.$implicit,n=e.$index,o=f(1);Vt(zt("mat-column-",t.name.toLowerCase())),u("matResizableMinWidthPx",o),R("data-testid","header-cell_"+n),s(2),u("disabled",!0)("disableInteraction",!0)("fieldId",t.id)("color",t.color)("hotkey",""),s(2),U(t.name)}}function Aa(i,c){if(i&1&&(r(0,"td",30),I(1,"ui-du-compact-cell-field",31),x(2,"toAbsoluteRowIndex"),d()),i&2){let e,t=c.$implicit,n=c.dataIndex,o=a(),m=o.$implicit,v=o.$index,S=a();Vt(zt("mat-column-",m.contentType.toLowerCase())),le("selected",((e=S.selectedCell())==null?null:e.id)===t.id)("missing",!t.valueIds.length)("confirmed",t.confirmationStatus===S.ConfirmationStatus.Confirmed);let P=t.valueIds[v];s(),u("fieldId",P)("taxonomy",m)("isReadonly",S.readonly())("rowIndex",Le(2,14,n,S.pageIndex(),S.pageSize())),R("data-testid","table-cell_"+v)}}function Ua(i,c){if(i&1&&(r(0,"div",6),V(1),H(2,ka,5,11,"th",25)(3,Aa,3,18,"td",26),d()),i&2){let e=c.$implicit;u("matColumnDef",e.id),s(),w(e.contentType==="Set"?300:270)}}function Ba(i,c){if(i&1){let e=y();r(0,"button",37),g("click",function(){p(e);let n=a(2);return _(n.toggleEntireTableSelection())}),r(1,"mat-icon",38),h(2," photo_size_select_small"),d(),r(3,"span"),h(4),x(5,"translate"),d()()}if(i&2){let e=a(2),t=f(9);u("disabled",e.isDrawingTableSelectionCells()||t),s(),u("color",e.extractTableIconColor()),s(3),U(M(5,3,"VS_TABLE_EXTRACT_NEW_TABLE"))}}function Ha(i,c){if(i&1){let e=y();r(0,"button",39),g("click",function(){p(e);let n=a(2);return _(n.deleteAllRows())}),r(1,"mat-icon"),h(2,"delete_forever"),d(),r(3,"span"),h(4),x(5,"translate"),d()()}if(i&2){a(2);let e=f(0);u("disabled",e),s(4),U(M(5,2,"VS_TABLE_DELETE_ALL_ROWS"))}}function Wa(i,c){if(i&1){let e=y();r(0,"th",32)(1,"button",33),x(2,"translate"),r(3,"mat-icon"),h(4,"more_vert"),d()(),r(5,"mat-menu",null,1),E(7,Ba,6,5,"button",34),r(8,"button",35),g("click",function(){p(e);let n=a();return _(n.highlightTable())}),r(9,"mat-icon"),h(10,"table_chart"),d(),r(11,"span"),h(12),x(13,"translate"),d()(),E(14,Ha,6,4,"button",36),d()()}if(i&2){let e=he(6),t=a();s(),u("matMenuTriggerFor",e),R("aria-label",M(2,5,"A11Y_MORE_MENU")),s(6),T(t.readonly()?-1:7),s(5),U(M(13,7,"VS_TABLE_HIGHLIGHT_TABLE")),s(2),T(t.readonly()?-1:14)}}function ja(i,c){if(i&1){let e=y();r(0,"button",45),g("click",function(){p(e);let n=a().dataIndex,o=a();return _(o.toggleRowsSelection(n))}),r(1,"mat-icon",38),h(2," photo_size_select_small"),d(),r(3,"span"),h(4),x(5,"translate"),d()(),r(6,"button",46),g("click",function(){p(e);let n=a().dataIndex,o=a();return _(o.addNewRow(n))}),r(7,"mat-icon"),h(8,"vertical_align_top"),d(),r(9,"span"),h(10),x(11,"translate"),d()(),r(12,"button",47),g("click",function(){p(e);let n=a().dataIndex,o=a();return _(o.addNewRow(n+1))}),r(13,"mat-icon"),h(14,"vertical_align_bottom"),d(),r(15,"span"),h(16),x(17,"translate"),d()(),r(18,"button",48),g("click",function(){p(e);let n=a().$implicit,o=a();return _(o.deleteRow(n.id))}),r(19,"mat-icon"),h(20,"delete"),d(),r(21,"span"),h(22),x(23,"translate"),d()()}if(i&2){let e=a(2),t=f(9);u("disabled",e.isDrawingTableSelectionCells()||t),s(),u("color",e.extractTableIconColor()),s(3),U(M(5,6,"VS_TABLE_EXTRACT_TABLE_HERE")),s(6),U(M(11,8,"VS_TABLE_ADD_ROW_ABOVE")),s(6),U(M(17,10,"VS_TABLE_ADD_ROW_BELOW")),s(6),U(M(23,12,"VS_TABLE_DELETE_ROW"))}}function qa(i,c){if(i&1){let e=y();r(0,"td",40)(1,"div",41)(2,"button",42),x(3,"translate"),r(4,"mat-icon"),h(5,"more_vert"),d()(),r(6,"mat-menu",null,2)(8,"button",43),g("click",function(){let n=p(e).$implicit,o=a();return _(o.highlightRow(n))}),r(9,"mat-icon"),h(10,"select_all"),d(),r(11,"span"),h(12),x(13,"translate"),d()(),E(14,ja,24,14),d(),r(15,"mat-checkbox",44),x(16,"translate"),x(17,"translate"),g("change",function(n){let o=p(e).$implicit,m=a();return _(m.setRowConfirmedStatus(o,n))})("click",function(n){return p(e),_(n.stopPropagation())}),d()()()}if(i&2){let e=c.$implicit,t=he(7),n=a();s(2),u("matMenuTriggerFor",t),R("aria-label",M(3,10,"VS_TABLE_FIELD_CONFIRM_IS_MISSING_TOOLTIP")),s(10),U(M(13,12,"VS_TABLE_HIGHLIGHT_ROW")),s(2),T(n.readonly()?-1:14),s(),u("matTooltip",Ge(M(16,14,"VS_ROW_CONFIRM_TOOLTIP"))),He("aria-label",M(17,16,"VS_ROW_CONFIRM_TOOLTIP")),u("checked",e.confirmationStatus===n.ConfirmationStatus.Confirmed)("indeterminate",e.confirmationStatus===n.ConfirmationStatus.PartiallyConfirmed)("disabled",n.readonly())}}function Ga(i,c){if(i&1){let e=y();r(0,"td",40)(1,"button",49),x(2,"translate"),x(3,"translate"),g("click",function(){let n=p(e).dataIndex,o=a();return _(o.addNewRow(n))}),r(4,"mat-icon"),h(5,"add_box"),d()()()}if(i&2){a();let e=f(1);R("colspan",e.length),s(),u("matTooltip",M(2,3,"VS_TABLE_INLINE_ADD_ROW_BUTTON_TOOLTIP")),R("aria-label",M(3,5,"VS_TABLE_INLINE_ADD_ROW_BUTTON_TOOLTIP"))}}function Ka(i,c){if(i&1){let e=y();r(0,"td",40)(1,"button",49),x(2,"translate"),x(3,"translate"),g("click",function(){let n=p(e).dataIndex,o=a();return _(o.addNewRow(n+1))}),r(4,"mat-icon"),h(5,"add_box"),d()()()}if(i&2){a();let e=f(1);R("colspan",e.length),s(),u("matTooltip",M(2,3,"VS_TABLE_INLINE_ADD_ROW_BUTTON_TOOLTIP")),R("aria-label",M(3,5,"VS_TABLE_INLINE_ADD_ROW_BUTTON_TOOLTIP"))}}function $a(i,c){i&1&&I(0,"tr",50)}function Za(i,c){if(i&1&&(I(0,"tr",51),x(1,"toAbsoluteRowIndex")),i&2){let e=c.dataIndex,t=a();le("hide",t.readonly()),R("data-testid","add-table-row_above-row_"+Le(1,3,e,t.pageIndex(),t.pageSize()))}}function Xa(i,c){if(i&1&&(I(0,"tr",52),x(1,"toAbsoluteRowIndex")),i&2){let e,t=c.$implicit,n=c.dataIndex,o=a();le("row-selected",t.id===((e=o.selectedTableRow())==null?null:e.id)),R("data-testid","table-row_"+Le(1,3,n,o.pageIndex(),o.pageSize()))}}function Ya(i,c){if(i&1&&(I(0,"tr",53),x(1,"toAbsoluteRowIndex")),i&2){let e=c.dataIndex,t=a();le("hide",t.readonly()),R("data-testid","add-table-row_below-row_"+Le(1,3,e,t.pageIndex(),t.pageSize()))}}function Qa(i,c){if(i&1){let e=y();r(0,"div",16),h(1),x(2,"translate"),r(3,"button",54),g("click",function(){p(e);let n=a();return _(n.addNewRow(0))}),r(4,"mat-icon"),h(5,"add_circle_outline"),d()()()}i&2&&(s(),fe(" ",M(2,1,"VS_TABLE_ADD_FIRST_ROW_MESSAGE")," "))}function Ja(i,c){if(i&1){let e=y();r(0,"section",19)(1,"label",20),h(2,"VS_TABLE_PAGE"),d(),r(3,"ui-navigator",55),g("changePageIndex",function(n){p(e);let o=a();return _(o.goToPage(n))}),d()()}if(i&2){let e=a();s(3),u("currentPageIndex",e.pageIndex())("maxPageIndex",e.totalPages()-1)("totalPagesToLoad",e.totalPages())}}function er(i,c){if(i&1&&(r(0,"mat-option",22),h(1),d()),i&2){let e=c.$implicit;u("value",e),R("data-testid","rows-per-page-option_"+e),s(),U(e)}}function tr(i,c){i&1&&(r(0,"div",56),h(1,"VS_TABLE_ALL_CELLS_ARE_VALID_AND_CONFIRMED_MESSAGE"),d())}function ir(i,c){if(i&1){let e=y();r(0,"button",59),x(1,"translate"),g("click",function(){p(e);let n=a(3);return _(n.goToFirstInvalidCell())}),h(2),x(3,"translate"),d()}if(i&2){a(2);let e=f(0);u("matTooltip",Ge(Ft(1,3,"VS_TABLE_CHECK_NEXT_INVALID_CELL_BUTTON_TOOLTIP",Ne(9,po,e)))),s(2),fe(" ",Ft(3,6,e===1?"VS_TABLE_CHECK_NEXT_INVALID_CELL_BUTTON.singular":"VS_TABLE_CHECK_NEXT_INVALID_CELL_BUTTON.plural",Ne(11,po,e))," ")}}function nr(i,c){i&1&&(r(0,"div",56),h(1,"VS_TABLE_NO_INVALID_CELLS_MESSAGE"),d())}function or(i,c){if(i&1){let e=y();r(0,"ui-button-group",60),g("clickActionButton",function(n){p(e);let o=a(3);return _(o.handleConfirmationButtonClick(n.id))}),d()}if(i&2){let e=a(3);u("type",e.ButtonGroupType.Secondary)("options",e.confirmationButtonGroupOptions())}}function ar(i,c){i&1&&(r(0,"div",56),h(1,"VS_TABLE_NO_UNCONFIRMED_CELLS_MESSAGE"),d())}function rr(i,c){if(i&1&&(E(0,ir,4,13,"button",57)(1,nr,2,0,"div",56),E(2,or,1,2,"ui-button-group",58)(3,ar,2,0,"div",56)),i&2){a();let e=f(0),t=f(1);T(e>0?0:1),s(2),T(t>0?2:3)}}function lr(i,c){if(i&1&&(V(0)(1),E(2,tr,2,0,"div",56)(3,rr,4,2)),i&2){let e=a(),t=w(e.invalidCells().length);s();let n=w(e.unconfirmedCells().length);s(),T(t===0&&n===0?2:3)}}var za,Fa,Na,po,La,sr,Ps,cr=X(()=>{Ut();z();Bi();Qe();be();go();dt();Bt();Zi();Sn();at();Qt();$();Mo();To();Eo();ht();vt();cn();So();Ji();Pt();Po();Vn();Do();uo();z();Bi();Ut();$();Sn();Bt();dt();Zi();be();at();Qe();Qt();za=["tableContent"],Fa=()=>["before"],Na=()=>["after"],po=i=>({numberOfInvalidCells:i}),La=(i,c)=>c.id;sr=(()=>{class i{transform(e,t,n){return e+t*n}static \u0275fac=function(t){return new(t||i)};static \u0275pipe=ci({name:"toAbsoluteRowIndex",type:i,pure:!0})}return i})(),Ps=(()=>{class i{_translateService=l(Li);_extractionManagerService=l(ie);_configurationsManagerService=l(ft);_userPreferencesService=l(en);_vsKeyboardShortcutsService=l(xt);_bridgeService=l(gt);_rootNodeService=l(ut);_elementRef=l(K);_tableService=l(Nn);field=b.required();readonly=b(!1);isTableSelectionEnabled=b(!1);isDrawingTableSelectionCells=b(!1);_matColumnResizeDirective=ve(ke);_tableContent=ve.required("tableContent");tableSelectionEvent=Ze();fieldId=C(()=>this.field().id);selectedCell=this._tableService.selectedCell;selectedTableRow=this._tableService.selectedRow;isPdfTextViewActive=this._bridgeService.pdfViewerTextMode;ConfirmationStatus=j;ButtonGroupType=ln;paginationValues=[5,10,15];columnTaxonomies=this._tableService.columnTaxonomies;columnIdsWithActions=C(()=>this.columnTaxonomies().map(e=>e.id).concat(["actions"]));columnSizes=C(()=>this.columnIdsWithActions().map(e=>this._userPreferencesService.get(this._getColumnSizePreferenceKey(e),Lt)||140));tableDataSource=this._tableService.paginatedDataSource;hasRows=this._tableService.hasRows;pageSize=this._tableService.rowsPerPage;pageIndex=this._tableService.pageIndex;totalPages=this._tableService.totalPages;invalidCells=this._tableService.invalidCells;unconfirmedCells=this._tableService.unconfirmedCells;extractTableIconColor=C(()=>this.isTableSelectionEnabled()&&!se(this._tableService.tableSelectionAppendFromRowIndex())?"primary":null);confirmationButtonGroupOptions=C(()=>{let e=this.unconfirmedCells().length,t=this.invalidCells().length;return[{id:qt.NextUnconfirmedCell,text:this._translateService.instant(e===1?"VS_TABLE_CHECK_FIRST_UNCONFIRMED_CELL_BUTTON.singular":"VS_TABLE_CHECK_FIRST_UNCONFIRMED_CELL_BUTTON.plural",{numberOfUnconfirmedCells:e}),description:this._translateService.instant("VS_TABLE_CHECK_FIRST_UNCONFIRMED_CELL_BUTTON_TOOLTIP",{numberOfUnconfirmedCells:e})},{id:qt.ConfirmAllCells,text:this._translateService.instant("VS_TABLE_CONFIRM_ALL_CELLS_BUTTON"),disabled:t>0}]});_editReferenceCapabilities=C(()=>{let e=this._tableService.selectedTableValue()?.fieldId;return e?this._configurationsManagerService.getFieldCustomization(e).referenceEditModes:[]});_runResizing=J(!1);constructor(){B(e=>{let t=this._matColumnResizeDirective()?.columnResizeNotifier;if(!t)return;if(this._runResizing())for(let o of this._tableService.columnTaxonomies()){let m=this._userPreferencesService.get(this._getColumnSizePreferenceKey(o.id),Lt);m&&t.resize(o.id,m)}let n=t.resizeCompleted.subscribe(o=>{this._userPreferencesService.save(this._getColumnSizePreferenceKey(o.columnId),o.size)});e(()=>n.unsubscribe())}),B(e=>{let t=this._registerHotkeys();e(()=>t?.unsubscribe())}),B(()=>{this._extractionManagerService.selectedValueId()===this.fieldId()&&this._tableContent()&&this._tableContent().nativeElement.focus()})}ngOnInit(){setTimeout(()=>{this._runResizing.set(!0)},100)}goToPage(e){this._tableService.pageIndex.set(e)}goToFirstInvalidCell(){this._tableService.goToFirstInvalidCell()}handleConfirmationButtonClick(e){this._tableService.handleConfirmationButtonClick(e)}setRowConfirmedStatus(e,t){this._tableService.setRowConfirmedStatus(e,t.checked?j.Confirmed:j.NotConfirmed)}setRowsPerPage(e){this._tableService.setRowsPerPage(e)}highlightRow(e){this._bridgeService.activeHighlight([e.id])}addNewRow(e){this.readonly()||this._tableService.addNewRow(e)}deleteRow(e){this._extractionManagerService.removeExtractedValues(this.fieldId(),[e])}deleteAllRows(){this._extractionManagerService.removeExtractedValues(this.fieldId(),this.field().valueIds)}highlightTable(){this._bridgeService.activeHighlight(this.field().valueIds)}toggleEntireTableSelection(){let e=this._tableService.tableSelectionAppendFromRowIndex()!==void 0;this._toggleTableSelection({forceStart:e,fromRow:void 0})}toggleRowsSelection(e){let t=this._tableService.getPaginatedRowIndex(e),n=this._tableService.tableSelectionAppendFromRowIndex(),o=n===void 0,m=!o&&n!==t;this._toggleTableSelection({forceStart:o||m,fromRow:t})}onDismiss(){this._dismissTable()}onValidate(){this._tableService.goToFirstInvalidCell()}tableTrackBy(e,t){return t.id}_toggleTableSelection(e){if(!this.isTableSelectionEnabled()||e.forceStart){this.tableSelectionEvent.emit(this._createTableSelectionInput({appendRows:e.fromRow!==void 0})),this._tableService.tableSelectionAppendFromRowIndex.set(e.fromRow),setTimeout(()=>this._bridgeService.focusPdfViewer$.next(!0));return}this.tableSelectionEvent.emit(null),this._tableService.tableSelectionAppendFromRowIndex.set(void 0)}_createTableSelectionInput(e){return{canExtractHeaders:!1,columnNames:this._tableService.columnTaxonomies().map(t=>t.name),appendRows:e.appendRows,tokensRequired:!this._editReferenceCapabilities().includes(En.area)}}_dismissTable(){let e=this._tableService.selectedTableId();e&&this._extractionManagerService.setSelectedValue(e),this.tableSelectionEvent.emit(null),this._tableService.isTableEditorVisible.set(!1)}_isFocusWithinTheTable(){let e=this._rootNodeService.getRootNode(this._elementRef.nativeElement).activeElement;return!!e&&!!this._elementRef.nativeElement.contains(e)}_registerHotkeys(){let e=new ni,t=this._vsKeyboardShortcutsService.table()?.moveToRightCell,n=this._vsKeyboardShortcutsService.table()?.moveToLeftCell,o=this._vsKeyboardShortcutsService.table()?.moveToUpCell,m=this._vsKeyboardShortcutsService.table()?.moveToDownCell,v=[t,n,o,m].filter(se);e.add(this._vsKeyboardShortcutsService.listen$(v,this._elementRef.nativeElement).pipe(Y(()=>this._isFocusWithinTheTable())).subscribe(_e=>{switch(_e.nativeEvent.preventDefault(),_e.shortcut){case t:this._tableService.moveCellPosition("Right");break;case n:this._tableService.moveCellPosition("Left");break;case o:this._tableService.moveCellPosition("Up");break;case m:this._tableService.moveCellPosition("Down");break}}));let S=this._vsKeyboardShortcutsService.table()?.closeTableEditor,P=this._vsKeyboardShortcutsService.table()?.startTableSelection,D=this._vsKeyboardShortcutsService.table()?.goToFirstInvalidCell,O=this._vsKeyboardShortcutsService.table()?.goToFirstUnconfirmedCell,F=[S,P,D,O].filter(se);return e.add(this._vsKeyboardShortcutsService.listen$(F).subscribe(_e=>{switch(_e.shortcut){case S:this._dismissTable();break;case P:this.toggleEntireTableSelection();break;case D:this._tableService.goToFirstInvalidCell();break;case O:this._tableService.goToFirstUnconfirmedCell();break}})),e}_getColumnSizePreferenceKey(e){return`ui-du-vs.column-size_${e}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["ui-du-compact-table-editor"]],viewQuery:function(t,n){t&1&&(Ce(n._matColumnResizeDirective,ke,5),Ce(n._tableContent,za,5)),t&2&&qe(2)},inputs:{field:[1,"field"],readonly:[1,"readonly"],isTableSelectionEnabled:[1,"isTableSelectionEnabled"],isDrawingTableSelectionCells:[1,"isDrawingTableSelectionCells"]},outputs:{tableSelectionEvent:"tableSelectionEvent"},features:[ze([...Fn])],decls:36,vars:23,consts:[["tableContent",""],["headerMenu",""],["bodyMenu",""],[1,"ui-compact-table"],["cdkScrollable","","data-testid","compact-table-form","tabindex","0",1,"table-form",3,"submit"],["mat-table","","multiTemplateDataRows","","columnResize","",3,"dataSource","trackBy"],[3,"matColumnDef"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","before"],["matColumnDef","after"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","uiKeydownStopEventPropagation","","class","row-add before",3,"hide",4,"matRowDef","matRowDefColumns"],["mat-row","",3,"row-selected",4,"matRowDef","matRowDefColumns"],["mat-row","","uiKeydownStopEventPropagation","","class","row-add after",3,"hide",4,"matRowDef","matRowDefColumns"],[1,"empty-table"],["data-testid","table-editor-footer",1,"footer"],[1,"left-pagination"],[1,"pagination-field"],["translate","",1,"pagination-label"],["data-testid","select-rows-per-page",1,"pagination-control","no-form-field-wrapper",3,"selectionChange","value"],[3,"value"],[1,"right-buttons"],["mat-stroked-button","","color","secondary","data-testid","dismiss-button",3,"click","matTooltip"],["mat-header-cell","","resizable","",3,"class","matResizableMinWidthPx",4,"matHeaderCellDef"],["mat-cell","","valign","top",3,"class","selected","missing","confirmed",4,"matCellDef"],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx"],[1,"table-header-cell-contents"],[3,"disabled","disableInteraction","fieldId","color","hotkey"],["mat-cell","","valign","top"],[3,"fieldId","taxonomy","isReadonly","rowIndex"],["mat-header-cell",""],["mat-icon-button","","data-testid","table-header-menu",3,"matMenuTriggerFor"],["mat-menu-item","","data-testid","toggle-table-selection-mode",3,"disabled"],["mat-menu-item","","data-testid","highlight-table",3,"click"],["mat-menu-item","","data-testid","delete-all-rows",3,"disabled"],["mat-menu-item","","data-testid","toggle-table-selection-mode",3,"click","disabled"],[3,"color"],["mat-menu-item","","data-testid","delete-all-rows",3,"click","disabled"],["mat-cell",""],[1,"column-actions-container"],["mat-icon-button","","data-testid","table-body-menu",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["data-testid","table-row-confirmed-checkbox","tabindex","-1",1,"row-confirm-checkbox",3,"change","click","matTooltip","aria-label","checked","indeterminate","disabled"],["mat-menu-item","","data-testid","extract-rows-from-here",3,"click","disabled"],["mat-menu-item","","data-testid","insert-row-above",3,"click"],["mat-menu-item","","data-testid","insert-row-below",3,"click"],["mat-menu-item","","data-testid","delete-row",3,"click"],["color","primary","mat-mini-fab","","uiKeydownStopEventPropagation","","data-testid","insert-row-button",3,"click","matTooltip"],["mat-header-row",""],["mat-row","","uiKeydownStopEventPropagation","",1,"row-add","before"],["mat-row",""],["mat-row","","uiKeydownStopEventPropagation","",1,"row-add","after"],["mat-icon-button","","data-testid","add-first-row","uiKeydownStopEventPropagation","",3,"click"],[1,"pagination-control",3,"changePageIndex","currentPageIndex","maxPageIndex","totalPagesToLoad"],["translate",""],["mat-stroked-button","","color","warn","data-testid","next-invalid-cell-button",3,"matTooltip"],["data-testid","unconfirmed-cells-button-group",3,"type","options"],["mat-stroked-button","","color","warn","data-testid","next-invalid-cell-button",3,"click","matTooltip"],["data-testid","unconfirmed-cells-button-group",3,"clickActionButton","type","options"]],template:function(t,n){if(t&1){let o=y();V(0)(1),r(2,"div",3)(3,"form",4,0),g("submit",function(v){return p(o),_(v.preventDefault())}),r(5,"table",5),Ie(6,Ua,4,2,"div",6,La),We(8,7),V(9),H(10,Wa,15,9,"th",8)(11,qa,18,18,"td",9),je(),We(12,10),H(13,Ga,6,7,"td",9),je(),We(14,11),H(15,Ka,6,7,"td",9),je(),H(16,$a,1,0,"tr",12)(17,Za,2,7,"tr",13)(18,Xa,2,7,"tr",14)(19,Ya,2,7,"tr",15),d(),E(20,Qa,6,3,"div",16),d(),r(21,"div",17)(22,"div",18),E(23,Ja,4,3,"section",19),r(24,"section",19)(25,"label",20),h(26,"VS_TABLE_ROWS_PER_PAGE"),d(),r(27,"mat-select",21),g("selectionChange",function(v){return p(o),_(n.setRowsPerPage(v.value))}),Ie(28,er,2,3,"mat-option",22,mi),d()()(),r(30,"div",23),E(31,lr,4,3),r(32,"button",24),x(33,"translate"),g("click",function(){return p(o),_(n.onDismiss())}),h(34),x(35,"translate"),d()()()()}if(t&2){let o=w(!n.hasRows()),m=n.tableDataSource();s();let v=w(n.columnTaxonomies()),S=n.columnIdsWithActions();s(4),u("dataSource",m)("trackBy",n.tableTrackBy),s(),Ve(v),s(3),w(n.isPdfTextViewActive()),s(7),u("matHeaderRowDef",S)("matHeaderRowDefSticky",!0),s(),u("matRowDefColumns",Fe(21,Fa)),s(),u("matRowDefColumns",S),s(),u("matRowDefColumns",Fe(22,Na)),s(),T(o&&!n.readonly()?20:-1),s(3),T(o?-1:23),s(4),u("value",n.pageSize()),s(),Ve(n.paginationValues),s(3),T(!n.readonly()&&!o?31:-1),s(),u("matTooltip",Ge(M(33,17,"VS_TABLE_CLOSE_TOOLTIP"))),s(2),fe(" ",M(35,19,"VS_TABLE_CLOSE_BUTTON")," ")}},dependencies:[Ui,Ai,ki,Je,Ri,W,xe,yn,un,_n,vn,Cn,pn,gn,hn,fn,xn,bn,mt,Yi,Xi,Qi,ct,st,Hi,$i,Ki,Wi,te,lt,ot,nt,Ye,wi,Di,Xe,ao,ke,oo,dn,sn,Mn,tn,Rn,mo,rt,sr],styles:['.ui-compact-table[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:auto;margin:2px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%]:focus-visible{border-radius:4px;outline:solid 2px var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%]{width:100%}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:auto}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%]{height:0px;position:relative}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add.hide[_ngcontent-%COMP%]{display:none}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{border:0 none;background-color:transparent;position:absolute;height:14px;width:100%;top:-8px;z-index:105!important}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;transition:background-color .2s;background-color:transparent}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%]{opacity:0;position:sticky;left:0;margin-left:-4px;margin-top:-5px;transition:opacity .2s;z-index:105;width:24px!important;height:24px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%] > *[role=img][_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%] > *[role=img][_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{width:24px!important;height:24px!important}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:hover:before, .ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:focus-within:before{background-color:var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:hover .mat-mdc-button-base[_ngcontent-%COMP%], .ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row.row-add[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:focus-within .mat-mdc-button-base[_ngcontent-%COMP%]{opacity:1}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%], .ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{overflow:visible;padding:0 4px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell.mat-column-actions[_ngcontent-%COMP%], .ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell.mat-column-actions[_ngcontent-%COMP%]{width:91px;padding:0 4px;border-left:1px solid var(--mat-table-row-item-outline-color)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell.mat-column-actions[_ngcontent-%COMP%] .column-actions-container[_ngcontent-%COMP%], .ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell.mat-column-actions[_ngcontent-%COMP%] .column-actions-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{background:var(--color-background-secondary);z-index:105!important}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%] .table-header-cell-contents[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{cursor:pointer;background:var(--color-background);vertical-align:middle}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .empty-table[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding-top:30px}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .row-selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:2px solid var(--color-primary);border-bottom:2px solid var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .row-selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:2px solid var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .row-selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:2px solid var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .table-form[_ngcontent-%COMP%] .row-selected[_ngcontent-%COMP%] td.mat-column-actions[_ngcontent-%COMP%]{border-right:2px solid var(--color-primary)}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:8px;padding:10px;border-top:1px solid var(--mat-table-row-item-outline-color)}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .left-pagination[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:20px}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .left-pagination[_ngcontent-%COMP%] .pagination-field[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:8px;height:100%}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .left-pagination[_ngcontent-%COMP%] .pagination-field[_ngcontent-%COMP%] .pagination-label[_ngcontent-%COMP%]{flex-shrink:0;font-size:14px;font-weight:400;line-height:20px}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .left-pagination[_ngcontent-%COMP%] .pagination-field[_ngcontent-%COMP%] .pagination-control[_ngcontent-%COMP%]{min-width:45px}.ui-compact-table[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .right-buttons[_ngcontent-%COMP%]{margin-left:auto;display:flex;flex-shrink:0;align-items:center;gap:12px}'],changeDetection:0})}return i})()});cr();export{sr as ToAbsoluteRowIndexPipe,Ps as UiCompactTableEditorComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as qo,b as vr}from"./chunk-GUD4Q5ED.js";import{A as na,B as oa,C as xr,a as Xo,b as pr,c as Go,d as mr,f as Wo,g as _r,h as Ko,i as hr,j as jo,k as fr,l as Qo,m as gr,n as Ei,o as Wt,p as yt,q as Zo,r as Vi,s as Kt,t as St,u as Jo,v as wi,w as jt,x as ki,y as qt,z as bt}from"./chunk-4RC3DPEI.js";import{$ as _,$a as s,$c as Ot,$e as Ci,$i as ko,A as Ri,Ab as C,Ae as dt,Af as We,Bb as W,Be as ct,Bf as Ke,Bk as Bo,C as hn,Ca as Ft,Cb as E,Ce as ut,Cf as ro,Ck as dr,D as fn,Df as so,E as Dt,Eb as J,Ee as fi,Ef as lo,F as vn,Fa as V,Fb as ne,Ff as co,Fj as Ro,Fk as $o,G as gn,Ga as Sn,Gb as P,Gj as Fo,Gk as cr,Ha as si,Hb as G,He as jn,Hj as Ct,Ib as En,Ic as rt,Ie as vi,Ii as Ht,Ij as Xt,Ja as ei,Jb as he,Jc as Mn,Je as ti,Ji as or,Kb as et,Ke as Za,Kh as go,La as L,Lb as it,Lc as Rn,Lf as pt,Lh as ir,Mb as Pe,Mc as Ga,Mf as mt,Mh as Co,Mk as ue,N as Ki,Nb as tt,Nd as B,Nh as xo,Nk as Qe,O as Mt,Ob as nt,Od as $,Oh as To,Ok as Tt,P as ce,Pd as H,Pk as Ho,Q as Rt,Qa as pe,Qi as Te,R as Je,Ra as U,Rb as Vn,Re as ae,Ri as zt,Rj as oi,Sa as Yi,Sb as c,Sd as zn,Se as q,Sj as ar,Ta as h,Tb as p,Td as Lt,Te as ee,U as fe,Ub as Fe,Uc as Fn,Ue as qn,Va as f,Vc as Un,Vd as ii,Ve as Qn,Vf as $t,W as Cn,Wa as bn,Wb as Ai,Wc as Wa,Wd as Nt,We as Ja,Wf as uo,Wi as Me,Wk as zo,Xa as ye,Xc as On,Xd as Pt,Xe as Yn,Xf as po,Xj as Uo,Xk as ur,Y as xn,Ya as z,Yc as Ka,Yd as Bt,Ye as Zn,Z as Fi,Za as X,Zb as w,Ze as Jn,Zj as Pi,_a as u,_b as Be,_e as gi,_i as Si,_j as Oo,ab as l,ad as An,af as xi,al as Ii,ba as v,bb as S,bc as di,bd as At,bk as Ce,bl as Gt,c as se,ca as g,cc as D,cd as ja,ck as Ao,cl as Q,d as M,dc as Li,dd as Ln,dj as je,dl as Re,ed as qa,ee as lt,ei as vt,f as cn,fb as Y,fd as ke,fg as er,fj as Do,ga as Le,gb as Z,gd as Nn,ge as R,gk as ai,gl as Yo,h as Xi,hb as Zi,hc as ci,hd as Pn,hf as He,hi as yo,hl as Cr,ia as be,ib as y,ic as ui,id as Bn,if as ze,ii as tr,il as ea,j as Gi,jb as In,jc as Ue,jd as $n,jf as Xe,ji as So,jl as ia,ka as ji,kd as Qa,ke as pi,kf as eo,kg as mo,ki as nr,kk as bi,l as ri,la as ve,lb as x,lc as I,ld as Hn,le as de,lh as yi,lk as qe,ll as ta,ma as Tn,mb as d,mc as ot,md as Ya,mf as io,mg as De,mk as xt,ml as Qt,na as Ee,nb as Ne,nc as wn,nd as st,nf as to,nk as Lo,o as Ae,ob as Ve,oc as kn,of as no,ok as rr,p as kt,pb as Ui,pc as Dn,pd as ge,pe as Xn,pf as K,pi as bo,qa as qi,qb as Se,qc as at,qd as xe,qe as Gn,qf as oo,qg as _o,qh as O,qi as Io,rb as me,rc as oe,re as mi,rf as ao,rg as ho,rk as No,sa as a,sb as _e,sf as Ni,sg as fo,sh as _t,si as Eo,sk as sr,t as un,tc as we,tg as vo,th as ht,u as pn,ua as ie,ub as Oi,uc as le,uk as Po,v as Wi,va as Qi,vb as Ji,ve as _i,vh as ft,vj as Mo,w as A,wb as te,we as Wn,wi as Vo,wk as lr,xb as li,xe as Kn,xf as Ti,xi as wo,y as mn,yb as k,ye as hi,yf as Ge,yh as ni,yj as gt,z as _n,za as yn,zb as Ut,ze as $e,zf as Oe}from"./chunk-5LGMGLPM.js";import"./chunk-ZOBGFIAP.js";import"./chunk-7LF7TUYR.js";import"./chunk-QSPXPEUM.js";import"./chunk-MHF6VH7J.js";import"./chunk-OC2CZ3QN.js";import"./chunk-S75KSQCC.js";import"./chunk-F3WKVTVT.js";import"./chunk-TX6COQKF.js";import"./chunk-B3JIB7CB.js";import"./chunk-AV2XMJZK.js";import"./chunk-TLNUV6LJ.js";import"./chunk-X3MDAFQV.js";import"./chunk-LE344D6P.js";import"./chunk-BSSTUKEO.js";import"./chunk-SLCVE5JY.js";import"./chunk-NWYS2Y26.js";import"./chunk-5ORQKHAE.js";import"./chunk-NNIW76YM.js";import"./chunk-GN4LVN6F.js";import"./chunk-Q3TZ5E3J.js";import"./chunk-THUL57GX.js";import"./chunk-7FN55G7Q.js";import"./chunk-JA4SO6QN.js";import"./chunk-DJJWZ6ME.js";import"./chunk-BME7YW2F.js";import"./chunk-ZHEQ3EZZ.js";import"./chunk-LIP7LW4Z.js";import"./chunk-OCJB2TQU.js";import"./chunk-UFSYSDPG.js";import"./chunk-NVYUSY5M.js";import"./chunk-DP4VB7EI.js";import"./chunk-FBLIPTM4.js";import"./chunk-3JRA4PLP.js";import"./chunk-RQKBBL3R.js";import"./chunk-ZTKCIUS4.js";import"./chunk-FEFKMD5S.js";import"./chunk-5ORJAWGA.js";import"./chunk-YTZYL6W2.js";import"./chunk-JBS3UN52.js";import{f as N}from"./chunk-3ONYU5UZ.js";function Sr(n,r){if(n&1&&(s(0,"div",2,1)(2,"div",5)(3,"span",6),C(4),l()()()),n&2){let e=d();a(4),W(e.valueIndicatorText)}}function Er(n,r){if(n&1&&S(0,"div"),n&2){let e=r.$implicit,i=r.$index,t=d(3);Ut(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),li("transform",t._calcTickMarkTransform(i))}}function Vr(n,r){if(n&1&&z(0,Er,1,4,"div",8,bn),n&2){let e=d(2);X(e._tickMarks)}}function wr(n,r){if(n&1&&(s(0,"div",6,1),h(2,Vr,2,0),l()),n&2){let e=d();a(2),f(e._cachedWidth?2:-1)}}function kr(n,r){if(n&1&&S(0,"mat-slider-visual-thumb",7),n&2){let e=d();u("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var Tr,yr,br,Ir,b,Di,Yt,aa,Dr,ra,Mr,sa,Rr,Mi,la,Zt=N(()=>{"use strict";Bn();Wa();I();I();ja();Ga();Ka();qa();$e();fe();Qa();Ya();Tr=["knob"],yr=["valueIndicatorContainer"];br=["trackActive"],Ir=["*"];b=(function(n){return n[n.START=1]="START",n[n.END=2]="END",n})(b||{}),Di=(function(n){return n[n.ACTIVE=0]="ACTIVE",n[n.INACTIVE=1]="INACTIVE",n})(Di||{}),Yt=new Fi("_MatSlider"),aa=new Fi("_MatSliderThumb"),Dr=new Fi("_MatSliderRangeThumb"),ra=new Fi("_MatSliderVisualThumb"),Mr=(()=>{class n{_cdr=_(ci);_ngZone=_(Qi);_slider=_(Yt);_renderer=_(Ft);_listenerCleanups;discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=_(Ee).nativeElement;_platform=_(rt);constructor(){}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let i=this._sliderInputEl,t=this._renderer;this._listenerCleanups=[t.listen(i,"pointermove",this._onPointerMove),t.listen(i,"pointerdown",this._onDragStart),t.listen(i,"pointerup",this._onDragEnd),t.listen(i,"pointerleave",this._onMouseLeave),t.listen(i,"focus",this._onFocus),t.listen(i,"blur",this._onBlur)]}))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e())}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let i=this._hostElement.getBoundingClientRect(),t=this._slider._isCursorOnSliderThumb(e,i);this._isHovered=t,t?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===Ot.FADING_IN||e?.state===Ot.VISIBLE}_showRipple(e,i){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===b.START?b.END:b.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!i)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let i=this._getSibling();i._isShowingAnyRipple()||(this._hideValueIndicator(),i._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===b.START?b.END:b.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=V({type:n,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(i,t){if(i&1&&(Se(At,5),Se(Tr,5),Se(yr,5)),i&2){let o;me(o=_e())&&(t._ripple=o.first),me(o=_e())&&(t._knob=o.first),me(o=_e())&&(t._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[et([{provide:ra,useExisting:n}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(i,t){i&1&&(h(0,Sr,5,1,"div",2),S(1,"div",3,0)(3,"div",4)),i&2&&(f(t.discrete?0:-1),a(3),u("matRippleDisabled",!0))},dependencies:[At],styles:[`.mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}
|
|
1
|
+
import{a as qo,b as vr}from"./chunk-A7SW22GE.js";import{A as na,B as oa,C as xr,a as Xo,b as pr,c as Go,d as mr,f as Wo,g as _r,h as Ko,i as hr,j as jo,k as fr,l as Qo,m as gr,n as Ei,o as Wt,p as yt,q as Zo,r as Vi,s as Kt,t as St,u as Jo,v as wi,w as jt,x as ki,y as qt,z as bt}from"./chunk-72L4UBH7.js";import{$a as X,$b as Ai,$c as Mn,$f as so,$i as wo,A as Ri,Ab as k,Ac as oe,Ad as Nn,Ae as lt,Ba as yn,Bb as Ut,Bk as Pi,C as hn,Cb as C,Cc as we,Cd as Pn,Ce as R,Cj as Si,Ck as Oo,D as fn,Db as W,Dc as le,Dd as Bn,Dj as ko,E as Dt,Ea as Ft,Eb as E,Ed as $n,Eg as er,El as Ii,F as vn,Fd as Qa,Ff as He,Fk as Ce,Fl as Gt,G as gn,Gd as Hn,Ge as pi,Gf as ze,Gk as Ao,Gl as Q,Ha as V,Hd as Ya,He as de,Hf as Xe,Hj as je,Hl as Re,Ia as Sn,Id as st,If as eo,Ii as vt,Ja as si,Jb as J,Jg as mo,Jj as Do,Kb as ne,Kd as ge,Kf as io,Kk as ai,Kl as Yo,La as ei,Lb as P,Ld as xe,Le as Xn,Lf as to,Lg as De,Li as yo,Ll as Cr,Mb as G,Me as Gn,Mf as no,Mi as tr,Ml as ea,Na as L,Nb as En,Ne as mi,Nf as K,Ni as So,Nl as ia,O as Ki,Ob as he,Of as oo,Oi as nr,Ok as bi,P as Mt,Pb as et,Pf as ao,Pg as _o,Ph as yi,Pk as qe,Pl as ta,Q as ce,Qb as it,Qf as Ni,Qg as ho,Qk as xt,Ql as Qt,R as Rt,Rb as Pe,Rg as fo,Rk as Lo,S as Je,Sa as pe,Sb as tt,Se as _i,Sg as vo,Sk as rr,Ta as U,Tb as nt,Te as Wn,Ti as bo,Ua as Yi,Ue as Kn,Uh as O,Ui as Io,V as fe,Va as h,Vf as Ti,Vk as No,Wb as Vn,We as hi,Wf as Ge,Wh as _t,Wi as Eo,Wk as sr,X as Cn,Xa as f,Xb as c,Xc as rt,Xe as $e,Xf as Oe,Xh as ht,Ya as bn,Yb as p,Ye as dt,Yf as We,Yk as Po,Z as xn,Za as ye,Zb as Fe,Ze as ct,Zf as Ke,Zh as ft,Zj as Mo,_ as Fi,_a as z,_e as ut,_f as ro,_i as Vo,_k as lr,aa as _,ab as u,af as fi,ag as lo,ai as ni,ak as gt,bb as s,bd as Rn,bg as co,c as se,cb as l,d as M,da as v,db as S,dc as w,dd as Ga,df as jn,dl as Bo,ea as g,ec as Be,ef as vi,el as dr,f as cn,ff as ti,gf as Za,h as Xi,hb as Y,hc as di,he as B,hg as pt,hk as Ro,hl as $o,ia as Le,ib as Z,ic as D,ie as $,ig as mt,ik as Fo,il as cr,j as Gi,jb as Zi,jc as Li,je as H,jk as Ct,ka as be,kb as y,kj as Ht,kk as Xt,l as ri,lb as In,ld as Fn,lj as or,ma as ji,md as Un,me as zn,mi as go,na as ve,nb as x,nd as Wa,ne as Lt,nf as ae,ni as ir,o as Ae,oa as Tn,ob as d,oc as ci,od as On,of as q,oi as Co,ol as ue,p as kt,pa as Ee,pb as Ne,pc as ui,pd as Ka,pe as ii,pf as ee,pi as xo,pl as Qe,qb as Ve,qc as Ue,qe as Nt,qf as qn,qi as To,ql as Tt,rb as Ui,re as Pt,rf as Qn,rl as Ho,sa as qi,sb as Se,se as Bt,sf as Ja,sg as $t,sj as Te,t as un,tb as me,tc as I,td as Ot,tf as Yn,tg as uo,tj as zt,tk as oi,u as pn,ua as a,ub as _e,ud as An,uf as Zn,ug as po,uk as ar,v as Wi,vc as ot,vd as At,vf as Jn,w as A,wa as ie,wb as Oi,wc as wn,wd as ja,wf as gi,xa as Qi,xb as Ji,xc as kn,xd as Ln,xf as Ci,y as mn,yb as te,yc as Dn,yd as qa,yf as xi,yj as Me,yl as zo,z as _n,zb as li,zc as at,zd as ke,zk as Uo,zl as ur}from"./chunk-XOLTEKM3.js";import"./chunk-ZOBGFIAP.js";import"./chunk-7LF7TUYR.js";import"./chunk-QSPXPEUM.js";import"./chunk-MHF6VH7J.js";import"./chunk-OC2CZ3QN.js";import"./chunk-S75KSQCC.js";import"./chunk-F3WKVTVT.js";import"./chunk-TX6COQKF.js";import"./chunk-B3JIB7CB.js";import"./chunk-AV2XMJZK.js";import"./chunk-TLNUV6LJ.js";import"./chunk-X3MDAFQV.js";import"./chunk-LE344D6P.js";import"./chunk-BSSTUKEO.js";import"./chunk-SLCVE5JY.js";import"./chunk-NWYS2Y26.js";import"./chunk-5ORQKHAE.js";import"./chunk-NNIW76YM.js";import"./chunk-GN4LVN6F.js";import"./chunk-Q3TZ5E3J.js";import"./chunk-THUL57GX.js";import"./chunk-7FN55G7Q.js";import"./chunk-JA4SO6QN.js";import"./chunk-DJJWZ6ME.js";import"./chunk-BME7YW2F.js";import"./chunk-ZHEQ3EZZ.js";import"./chunk-LIP7LW4Z.js";import"./chunk-OCJB2TQU.js";import"./chunk-UFSYSDPG.js";import"./chunk-NVYUSY5M.js";import"./chunk-DP4VB7EI.js";import"./chunk-FBLIPTM4.js";import"./chunk-3JRA4PLP.js";import"./chunk-RQKBBL3R.js";import"./chunk-ZTKCIUS4.js";import"./chunk-FEFKMD5S.js";import"./chunk-5ORJAWGA.js";import"./chunk-YTZYL6W2.js";import"./chunk-JBS3UN52.js";import{f as N}from"./chunk-3ONYU5UZ.js";function Sr(n,r){if(n&1&&(s(0,"div",2,1)(2,"div",5)(3,"span",6),C(4),l()()()),n&2){let e=d();a(4),W(e.valueIndicatorText)}}function Er(n,r){if(n&1&&S(0,"div"),n&2){let e=r.$implicit,i=r.$index,t=d(3);Ut(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),li("transform",t._calcTickMarkTransform(i))}}function Vr(n,r){if(n&1&&z(0,Er,1,4,"div",8,bn),n&2){let e=d(2);X(e._tickMarks)}}function wr(n,r){if(n&1&&(s(0,"div",6,1),h(2,Vr,2,0),l()),n&2){let e=d();a(2),f(e._cachedWidth?2:-1)}}function kr(n,r){if(n&1&&S(0,"mat-slider-visual-thumb",7),n&2){let e=d();u("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var Tr,yr,br,Ir,b,Di,Yt,aa,Dr,ra,Mr,sa,Rr,Mi,la,Zt=N(()=>{"use strict";Bn();Wa();I();I();ja();Ga();Ka();qa();$e();fe();Qa();Ya();Tr=["knob"],yr=["valueIndicatorContainer"];br=["trackActive"],Ir=["*"];b=(function(n){return n[n.START=1]="START",n[n.END=2]="END",n})(b||{}),Di=(function(n){return n[n.ACTIVE=0]="ACTIVE",n[n.INACTIVE=1]="INACTIVE",n})(Di||{}),Yt=new Fi("_MatSlider"),aa=new Fi("_MatSliderThumb"),Dr=new Fi("_MatSliderRangeThumb"),ra=new Fi("_MatSliderVisualThumb"),Mr=(()=>{class n{_cdr=_(ci);_ngZone=_(Qi);_slider=_(Yt);_renderer=_(Ft);_listenerCleanups;discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=_(Ee).nativeElement;_platform=_(rt);constructor(){}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let i=this._sliderInputEl,t=this._renderer;this._listenerCleanups=[t.listen(i,"pointermove",this._onPointerMove),t.listen(i,"pointerdown",this._onDragStart),t.listen(i,"pointerup",this._onDragEnd),t.listen(i,"pointerleave",this._onMouseLeave),t.listen(i,"focus",this._onFocus),t.listen(i,"blur",this._onBlur)]}))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e())}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let i=this._hostElement.getBoundingClientRect(),t=this._slider._isCursorOnSliderThumb(e,i);this._isHovered=t,t?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===Ot.FADING_IN||e?.state===Ot.VISIBLE}_showRipple(e,i){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===b.START?b.END:b.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!i)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let i=this._getSibling();i._isShowingAnyRipple()||(this._hideValueIndicator(),i._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===b.START?b.END:b.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=V({type:n,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(i,t){if(i&1&&(Se(At,5),Se(Tr,5),Se(yr,5)),i&2){let o;me(o=_e())&&(t._ripple=o.first),me(o=_e())&&(t._knob=o.first),me(o=_e())&&(t._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[et([{provide:ra,useExisting:n}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(i,t){i&1&&(h(0,Sr,5,1,"div",2),S(1,"div",3,0)(3,"div",4)),i&2&&(f(t.discrete?0:-1),a(3),u("matRippleDisabled",!0))},dependencies:[At],styles:[`.mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return n})(),sa=(()=>{class n{_ngZone=_(Qi);_cdr=_(ci);_elementRef=_(Ee);_dir=_(Nn,{optional:!0});_globalRippleOptions=_(An,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(e){this._disabled=e;let i=this._getInput(b.END),t=this._getInput(b.START);i&&(i.disabled=this._disabled),t&&(t.disabled=this._disabled)}_disabled=!1;get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}_discrete=!1;get showTickMarks(){return this._showTickMarks}set showTickMarks(e){this._showTickMarks=e,this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI())}_showTickMarks=!1;get min(){return this._min}set min(e){let i=e==null||isNaN(e)?this._min:e;this._min!==i&&this._updateMin(i)}_min=0;color;disableRipple=!1;_updateMin(e){let i=this._min;this._min=e,this._isRange?this._updateMinRange({old:i,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let i=this._getInput(b.END),t=this._getInput(b.START),o=i.value,m=t.value;t.min=e.new,i.min=Math.max(e.new,t.value),t.max=Math.min(i.max,i.value),t._updateWidthInactive(),i._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(i,t):this._onTranslateXChangeBySideEffect(t,i),o!==i.value&&this._onValueChange(i),m!==t.value&&this._onValueChange(t)}_updateMinNonRange(e){let i=this._getInput(b.END);if(i){let t=i.value;i.min=e,i._updateThumbUIByValue(),this._updateTrackUI(i),t!==i.value&&this._onValueChange(i)}}get max(){return this._max}set max(e){let i=e==null||isNaN(e)?this._max:e;this._max!==i&&this._updateMax(i)}_max=100;_updateMax(e){let i=this._max;this._max=e,this._isRange?this._updateMaxRange({old:i,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange()}_updateMaxRange(e){let i=this._getInput(b.END),t=this._getInput(b.START),o=i.value,m=t.value;i.max=e.new,t.max=Math.min(e.new,i.value),i.min=t.value,i._updateWidthInactive(),t._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(t,i):this._onTranslateXChangeBySideEffect(i,t),o!==i.value&&this._onValueChange(i),m!==t.value&&this._onValueChange(t)}_updateMaxNonRange(e){let i=this._getInput(b.END);if(i){let t=i.value;i.max=e,i._updateThumbUIByValue(),this._updateTrackUI(i),t!==i.value&&this._onValueChange(i)}}get step(){return this._step}set step(e){let i=isNaN(e)?this._step:e;this._step!==i&&this._updateStep(i)}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(b.END),i=this._getInput(b.START),t=e.value,o=i.value,m=i.value;e.min=this._min,i.max=this._max,e.step=this._step,i.step=this._step,this._platform.SAFARI&&(e.value=e.value,i.value=i.value),e.min=Math.max(this._min,i.value),i.max=Math.min(this._max,e.value),i._updateWidthInactive(),e._updateWidthInactive(),e.value<m?this._onTranslateXChangeBySideEffect(i,e):this._onTranslateXChangeBySideEffect(e,i),t!==e.value&&this._onValueChange(e),o!==i.value&&this._onValueChange(i)}_updateStepNonRange(){let e=this._getInput(b.END);if(e){let i=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),i!==e.value&&this._onValueChange(e)}}displayWith=e=>`${e}`;_tickMarks;_noopAnimations=On();_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=_(rt);constructor(){_(Rn).load(Ln),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl")}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(b.END),i=this._getInput(b.START);this._isRange=!!e&&!!i,this._cdr.detectChanges();let t=this._getThumb(b.END);this._rippleRadius=t._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,i):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,i){e.initProps(),e.initUI(),i.initProps(),i.initUI(),e._updateMinMax(),i._updateMinMax(),e._updateStaticStyles(),i._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),i._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let e=this._getInput(b.END),i=this._getInput(b.START);e._setIsLeftThumb(),i._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),i.translateX=i._calcTranslateXByValue(),e._updateStaticStyles(),i._updateStaticStyles(),e._updateWidthInactive(),i._updateWidthInactive(),e._updateThumbUIByValue(),i._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(b.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(b.START)._isActive||this._getThumb(b.END)._isActive}_getValue(e=b.END){let i=this._getInput(e);return i?i.value:this.min}_skipUpdate(){return!!(this._getInput(b.START)?._skipUIUpdate||this._getInput(b.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let i=this._trackActive.nativeElement.style;i.left=e.left,i.right=e.right,i.transformOrigin=e.transformOrigin,i.transform=e.transform}_calcTickMarkTransform(e){let i=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return`translateX(${this._isRtl?this._cachedWidth-6-i:i}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,i){this._hasViewInitialized&&(e._updateThumbUIByValue(),i._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(b.END),i=this._getInput(b.START);e._updateThumbUIByValue(),i._updateThumbUIByValue(),e._updateStaticStyles(),i._updateStaticStyles(),e._updateMinMax(),i._updateMinMax(),e._updateWidthInactive(),i._updateWidthInactive()}else{let e=this._getInput(b.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_thumbsOverlap=!1;_areThumbsOverlapping(){let e=this._getInput(b.START),i=this._getInput(b.END);return!e||!i?!1:i.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let i=e.getSibling(),t=this._getThumb(e.thumbPosition);this._getThumb(i.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),t._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let i=this._getThumb(e.thumbPosition===b.END?b.END:b.START);i._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let i=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(i):e._hostElement.setAttribute("aria-valuetext",i),this.discrete){e.thumbPosition===b.START?this.startValueIndicatorText=i:this.endValueIndicatorText=i;let t=this._getThumb(e.thumbPosition);i.length<3?t._hostElement.classList.add("mdc-slider__thumb--short-value"):t._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(b.END),i=this._getInput(b.START);e&&this._updateValueIndicatorUI(e),i&&this._updateValueIndicatorUI(i)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,t=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*t}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let i=e.getSibling();if(!i||!this._cachedWidth)return;let t=Math.abs(i.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-i.translateX}px`,transformOrigin:"right",transform:`scaleX(${t})`}):this._setTrackActiveStyles({left:`${i.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${t})`})}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e)}_updateTickMarkUINonRange(e){let i=this._getValue(),t=Math.max(Math.round((i-this.min)/e),0)+1,o=Math.max(Math.round((this.max-i)/e),0)-1;this._isRtl?t++:o++,this._tickMarks=Array(t).fill(Di.ACTIVE).concat(Array(o).fill(Di.INACTIVE))}_updateTickMarkUIRange(e){let i=this._getValue(),t=this._getValue(b.START),o=Math.max(Math.round((t-this.min)/e),0),m=Math.max(Math.round((i-t)/e)+1,0),T=Math.max(Math.round((this.max-i)/e),0);this._tickMarks=Array(o).fill(Di.INACTIVE).concat(Array(m).fill(Di.ACTIVE),Array(T).fill(Di.INACTIVE))}_getInput(e){if(e===b.END&&this._input)return this._input;if(this._inputs?.length)return e===b.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===b.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,i){let t=i.width/2,o=i.x+t,m=i.y+t,T=e.clientX-o,F=e.clientY-m;return Math.pow(T,2)+Math.pow(F,2)<Math.pow(t,2)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=V({type:n,selectors:[["mat-slider"]],contentQueries:function(i,t,o){if(i&1&&(Ui(o,aa,5),Ui(o,Dr,4)),i&2){let m;me(m=_e())&&(t._input=m.first),me(m=_e())&&(t._inputs=m)}},viewQuery:function(i,t){if(i&1&&(Se(br,5),Se(ra,5)),i&2){let o;me(o=_e())&&(t._trackActive=o.first),me(o=_e())&&(t._thumbs=o)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(i,t){i&2&&(Ut("mat-"+(t.color||"primary")),k("mdc-slider--range",t._isRange)("mdc-slider--disabled",t.disabled)("mdc-slider--discrete",t.discrete)("mdc-slider--tick-marks",t.showTickMarks)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",ui],discrete:[2,"discrete","discrete",ui],showTickMarks:[2,"showTickMarks","showTickMarks",ui],min:[2,"min","min",Ue],color:"color",disableRipple:[2,"disableRipple","disableRipple",ui],max:[2,"max","max",Ue],step:[2,"step","step",Ue],displayWith:"displayWith"},exportAs:["matSlider"],features:[et([{provide:Yt,useExisting:n}])],ngContentSelectors:Ir,decls:9,vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(i,t){i&1&&(Ne(),Ve(0),s(1,"div",2),S(2,"div",3),s(3,"div",4),S(4,"div",5,0),l(),h(6,wr,3,1,"div",6),l(),h(7,kr,1,3,"mat-slider-visual-thumb",7),S(8,"mat-slider-visual-thumb",7)),i&2&&(a(6),f(t.showTickMarks?6:-1),a(),f(t._isRange?7:-1),a(),u("discrete",t.discrete)("thumbPosition",2)("valueIndicatorText",t.endValueIndicatorText))},dependencies:[Mr],styles:[`.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mat-slider-inactive-track-height, 4px)}.mdc-slider__track--active,.mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider__track--active{overflow:hidden;border-radius:var(--mat-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mat-slider-active-track-height, 4px);top:calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-slider-active-track-height, 4px))/2)}.mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;transform-origin:left;transition:transform 80ms ease;border-color:var(--mat-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mat-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mat-slider-disabled-active-track-color, var(--mat-sys-on-surface))}[dir=rtl] .mdc-slider__track--active_fill{-webkit-transform-origin:right;transform-origin:right}.mdc-slider__track--inactive{left:0;top:0;opacity:.24;background-color:var(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mat-slider-inactive-track-height, 4px);border-radius:var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mat-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));opacity:.24}.mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg))}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider__value-indicator{display:flex;align-items:center;transform:scale(0);transform-origin:var(--mat-slider-value-indicator-transform-origin, 0 28px);transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mat-slider-label-container-color, var(--mat-sys-primary));color:var(--mat-slider-label-label-text-color, var(--mat-sys-on-primary));width:var(--mat-slider-value-indicator-width, 28px);height:var(--mat-slider-value-indicator-height, 28px);padding:var(--mat-slider-value-indicator-padding, 0);opacity:var(--mat-slider-value-indicator-opacity, 1);border-radius:var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0)}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}.mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;display:var(--mat-slider-value-indicator-caret-display, none);border-top-color:var(--mat-slider-label-container-color, var(--mat-sys-primary))}.mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider__value-indicator-text{text-align:center;width:var(--mat-slider-value-indicator-width, 28px);transform:var(--mat-slider-value-indicator-text-transform, rotate(45deg));font-family:var(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mat-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking))}.mdc-slider__thumb{-webkit-user-select:none;user-select:none;display:flex;left:-24px;outline:none;position:absolute;height:48px;width:48px;pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb{transition:transform 80ms ease}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__thumb--top{z-index:1}.mdc-slider__thumb-knob{position:absolute;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%, -50%);border-style:solid;width:var(--mat-slider-handle-width, 20px);height:var(--mat-slider-handle-height, 20px);border-width:calc(var(--mat-slider-handle-height, 20px)/2) calc(var(--mat-slider-handle-width, 20px)/2);box-shadow:var(--mat-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mat-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface))}.mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:solid 1px #fff;box-sizing:content-box;border-color:var(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mat-slider-with-overlap-handle-outline-width, 1px)}.mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider__tick-mark--active,.mdc-slider__tick-mark--inactive{width:var(--mat-slider-with-tick-marks-container-size, 2px);height:var(--mat-slider-with-tick-marks-container-size, 2px);border-radius:var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mat-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary))}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;position:absolute;top:2px;width:44px;box-sizing:content-box}.mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;cursor:pointer;height:48px;margin:0 8px;position:relative;touch-action:pan-y;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider.mdc-slider--disabled{cursor:auto;opacity:.38}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__input{cursor:auto}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color, var(--mat-sys-primary))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent))}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-focus-indicator::before{content:""}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return n})(),Rr={provide:Xn,useExisting:Cn(()=>Mi),multi:!0},Mi=(()=>{class n{_ngZone=_(Qi);_elementRef=_(Ee);_cdr=_(ci);_slider=_(Yt);_platform=_(rt);_listenerCleanups;get value(){return Ue(this._hostElement.value,0)}set value(e){e===null&&(e=this._getDefaultValue()),e=isNaN(e)?0:e;let i=e+"";if(!this._hasSetInitialValue){this._initialValue=i;return}this._isActive||this._setValue(i)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new ie;dragStart=new ie;dragEnd=new ie;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}_translateX;thumbPosition=b.END;get min(){return Ue(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return Ue(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return Ue(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return ui(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=be("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new se;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=_(Ft);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))]})}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let i=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=i,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let i=e.clientX-this._slider._cachedLeft,t=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,m=Math.floor((this._slider.max-this._slider.min)/o),T=this._slider._isRtl?1-i/t:i/t,re=Math.round(T*m)/m*(this._slider.max-this._slider.min)+this._slider.min,zi=Math.round(re/o)*o,wt=this.value;if(zi===wt){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=zi,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let i=this._tickMarkOffset,t=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,t),i)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,i){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(i)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=si({type:n,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(i,t){i&1&&x("change",function(){return t._onChange()})("input",function(){return t._onInput()})("blur",function(){return t._onBlur()})("focus",function(){return t._onFocus()}),i&2&&U("aria-valuetext",t._valuetext())},inputs:{value:[2,"value","value",Ue]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[et([Rr,{provide:aa,useExisting:n}])]})}return n})(),la=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Sn({type:n});static \u0275inj=xn({imports:[$n,Hn]})}return n})()});function Or(n,r){if(n&1&&(s(0,"div",5),C(1),l()),n&2){let e=d();a(),E(" 0% - ",e.viewValue,"% ")}}var da,en,ca=N(()=>{"use strict";le();I();Ni();xe();Xt();ee();Ke();Zt();H();de();fe();I();Zt();Ke();xe();H();ee();de();da=0,en=(()=>{class n{_destroyRef=_(Le);value=D();tooltip=D("");thresholdChange=di();menuTrigger=Li(Oe);slider=Li(Mi);hideLowerLimitLabel=!0;hideUpperLimitLabel=!1;isConfidenceSet=!1;viewValue=da;constructor(){Be(()=>{let e=this.value();e!=null&&e!==void 0&&this.setViewValue(e)})}ngAfterViewInit(){this.menuTrigger()?.menuOpened.pipe(fn(100),K(this._destroyRef)).subscribe(()=>{this.slider()?.focus(),this.toggleLimits(this.viewValue)})}formatLabel(e){return e+"%"}toggleLimits(e){this.hideLowerLimitLabel=e<15,this.hideUpperLimitLabel=e>75}sliderValueChanged(e){this.isConfidenceSet=!0,this.thresholdChange.emit(e),this.viewValue=e}setViewValue(e){e=Math.min(100,Math.max(0,e)),this.isConfidenceSet=!0,this.thresholdChange.emit(e),this.viewValue=e}resetConfidence(){this.viewValue=da,this.toggleLimits(this.viewValue),this.isConfidenceSet=!1,this.thresholdChange.emit(null),this.menuTrigger()?.closeMenu()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=V({type:n,selectors:[["ui-threshold-picker"]],viewQuery:function(i,t){i&1&&(Oi(t.menuTrigger,Oe,5),Oi(t.slider,Mi,5)),i&2&&Ji(2)},inputs:{value:[1,"value"],tooltip:[1,"tooltip"]},outputs:{thresholdChange:"thresholdChange"},decls:23,vars:14,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["ngSlider",""],["ngSliderThumb","matSliderThumb"],[1,"ui-threshold-picker-container"],["automation-id","threshold-picker-value","data-testid","threshold-picker-value",1,"ui-threshold-picker-value"],["automation-id","threshold-picker-button","data-testid","threshold-picker-button","mat-icon-button","","color","primary",1,"filter-button",3,"matMenuTriggerFor","matTooltip"],["xPosition","before",1,"ui-threshold-picker-slider-menu"],[1,"ui-threshold-picker-slider-container",3,"click"],[1,"limits-container"],[1,"limits",3,"ngClass"],[1,"slider-container"],["thumbLabel","","discrete","",3,"keydown.enter","displayWith"],["matSliderThumb","","data-testid","threshold-picker-input",3,"input","change","value"],["color","primary","mat-button","","data-testid","reset-confidence",1,"btn-small",3,"click","disabled"]],template:function(i,t){if(i&1){let o=y();s(0,"div",4),h(1,Or,2,1,"div",5),s(2,"button",6,0),c(4,"translate"),s(5,"mat-icon"),C(6,"filter_list"),l()(),s(7,"mat-menu",7,1)(9,"div",8),x("click",function(T){return v(o),g(T.stopPropagation())}),s(10,"div",9)(11,"span",10),C(12,"0%"),l(),s(13,"span",10),C(14,"100%"),l()(),s(15,"div",11)(16,"mat-slider",12,2),x("keydown.enter",function(T){return v(o),te(3).closeMenu(),g(T.preventDefault())}),s(18,"input",13,3),x("input",function(){v(o);let T=te(17),F=te(19);return g(t.toggleLimits({source:F,parent:T,value:F.value}.value))})("change",function(){v(o);let T=te(17),F=te(19);return g(t.sliderValueChanged({source:F,parent:T,value:F.value}.value))}),l()()(),s(20,"button",14),x("click",function(){return v(o),g(t.resetConfidence())}),C(21),c(22,"translate"),l()()()()}if(i&2){let o=te(8);a(),f(t.isConfidenceSet?1:-1),a(),u("matMenuTriggerFor",o)("matTooltip",t.tooltip()),U("aria-label",p(4,10,"A11Y_THRESHOLD_PICKER_FILTER_BUTTON")),a(9),u("ngClass",t.hideLowerLimitLabel?"transparent":"opaque"),a(2),u("ngClass",t.hideUpperLimitLabel?"transparent":"opaque"),a(3),u("displayWith",t.formatLabel),a(2),u("value",t.viewValue),a(2),u("disabled",!t.isConfidenceSet),a(),W(p(22,12,"THRESHOLD_PICKER_RESET_CONFIDENCE"))}},dependencies:[pi,la,sa,Mi,We,Ge,Oe,Ct,ge,st,ke,$,B,q,ae,ot,R],styles:[`.ui-threshold-picker-container{font-size:12px;display:flex}.ui-threshold-picker-container .ui-threshold-picker-value{margin:auto}.ui-threshold-picker-container .filter-button{margin-right:10px;margin-left:5px}.ui-threshold-picker-slider-menu{display:flex;flex-direction:column;justify-content:center}.ui-threshold-picker-slider-menu .ui-threshold-picker-slider-container{padding:12px 16px 5px}.ui-threshold-picker-slider-menu .ui-threshold-picker-slider-container .limits-container{display:flex;justify-content:space-between}.ui-threshold-picker-slider-menu .ui-threshold-picker-slider-container .limits-container .limits{font-family:noto-sans,Noto Sans JP,Noto Sans KR,Noto Sans SC,Noto Sans TC,Noto Sans,-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;font-weight:400;transition:opacity .2s ease-in-out}.ui-threshold-picker-slider-menu .ui-threshold-picker-slider-container .limits-container .limits.opaque{opacity:1}.ui-threshold-picker-slider-menu .ui-threshold-picker-slider-container .limits-container .limits.transparent{opacity:0}
|
|
4
4
|
`],encapsulation:2,changeDetection:0})}return n})()});var ua=N(()=>{"use strict";ca()});var $i,pa,ma=N(()=>{"use strict";I();xe();Xt();H();de();I();H();Xt();$i=(function(n){return n.Ocr="ocr",n.Extraction="extraction",n})($i||{}),pa=(()=>{class n{value=$i.Extraction;confidenceDisplayChanged=new ie;confidenceTypes=$i;setConfidenceDisplay(e){this.value!==e&&(this.value=e,this.confidenceDisplayChanged.emit(e))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=V({type:n,selectors:[["ui-confidence-switch"]],inputs:{value:"value"},outputs:{confidenceDisplayChanged:"confidenceDisplayChanged"},decls:15,vars:20,consts:[[1,"confidence-switch"],["id","confidence-switch-label"],["aria-labelledby","confidence-switch-label",3,"value"],["data-testid","confidence-toggle-ocr","automation-id","confidence-toggle-ocr",1,"left-button-toggle",3,"click","aria-label","value","matTooltip"],["data-testid","confidence-toggle-extraction","automation-id","confidence-toggle-extraction",1,"right-button-toggle",3,"click","aria-label","value","matTooltip"]],template:function(i,t){if(i&1){let o=y();s(0,"div",0)(1,"label",1),C(2),c(3,"translate"),l(),s(4,"mat-button-toggle-group",2),J(5),c(6,"translate"),J(7),c(8,"translate"),s(9,"mat-button-toggle",3),c(10,"translate"),x("click",function(){return v(o),g(t.setConfidenceDisplay(t.confidenceTypes.Ocr))}),C(11),l(),s(12,"mat-button-toggle",4),c(13,"translate"),x("click",function(){return v(o),g(t.setConfidenceDisplay(t.confidenceTypes.Extraction))}),C(14),l()()()}if(i&2){a(2),W(p(3,10,"VS_EXTRACTION_RESULTS_CONFIDENCE")),a(2),u("value",t.value);let o=p(6,12,"VS_EXTRACTION_RESULTS_OCR"),m=p(8,14,"VS_EXTRACTION_RESULTS_EXTRACTION");a(5),pe("aria-label",o),u("value",t.confidenceTypes.Ocr)("matTooltip",p(10,16,"VS_EXTRACTION_RESULTS_OCR_CONFIDENCE_SELECTION_TOOLTIP")),a(2),E("",o," "),a(),pe("aria-label",m),u("value",t.confidenceTypes.Extraction)("matTooltip",p(13,18,"VS_EXTRACTION_RESULTS_EXTRACTION_CONFIDENCE_SELECTION_TOOLTIP")),a(2),E("",m," ")}},dependencies:[ge,$,B,Ct,Ro,Fo,R],styles:[`.confidence-switch{padding:10px 15px;font-size:12px}.confidence-switch .mat-button-toggle-group{height:25px;align-items:center;margin-left:12px;overflow:initial;border-width:0px!important}.confidence-switch .mat-button-toggle-group .left-button-toggle{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.confidence-switch .mat-button-toggle-group .right-button-toggle{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.confidence-switch .mat-button-toggle-group .mat-button-toggle{border:1px solid;border-color:inherit;border-radius:5px}.confidence-switch .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{line-height:25px}.confidence-switch .mat-button-toggle-group .mat-button-toggle-checked{border:1px solid;border-radius:5px}.confidence-switch .mat-button-toggle-group .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:0px!important}
|