1import{a as rt,b as Ce,c as ye,d as ot,e as st,f as lt}from"./chunk-HUP6LTEK.js";import{a as X,c as at,d as Q}from"./chunk-S2CAOJUH.js";import{a as _e,b as tt,c as nt,d as it}from"./chunk-YGRVA6DM.js";import{A as k,Aa as x,B as T,Ba as S,C as M,Ca as Ze,D as z,Da as ae,E as ue,G as Se,Ga as qe,Gb as et,Ha as Ke,Ia as _,Ja as C,Jb as ve,K as Ae,Ka as W,Ma as Ye,N as re,Na as Ie,P as oe,Pa as Xe,Q as l,Qa as Z,R as p,Ra as A,S as Re,T as pe,V as I,Va as q,W as f,Wa as Je,Y as d,Za as N,_ as O,_a as fe,a as y,b as R,fa as a,g as w,ga as s,h as P,ha as u,i as Be,ia as ge,ja as he,l as E,la as $,lb as K,m as Ge,ma as ze,mb as U,na as h,nb as Y,o as ne,oa as b,p as ie,q as L,r as B,ra as $e,rb as J,s as F,u as de,ub as me,v as V,w as G,x as D,ya as We,z as He,za as m,zb as Qe}from"./chunk-T34AHL7J.js";var _t=(()=>{let e=class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(i){return new(i||e)(p(oe),p(re))},e.\u0275dir=D({type:e});let n=e;return n})(),Ne=(()=>{let e=class e extends _t{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ue(e)))(r||e)}})(),e.\u0275dir=D({type:e,features:[I]});let n=e;return n})(),Oe=new B("NgValueAccessor");var Wt={provide:Oe,useExisting:ne(()=>vt),multi:!0};function Zt(){let n=Ie()?Ie().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var qt=new B("CompositionEventMode"),vt=(()=>{let e=class e extends _t{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Zt())}writeValue(t){let i=t??"";this.setProperty("value",i)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(i){return new(i||e)(p(oe),p(re),p(qt,8))},e.\u0275dir=D({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&h("input",function(g){return r._handleInput(g.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(g){return r._compositionEnd(g.target.value)})},features:[ae([Wt]),I]});let n=e;return n})();var Kt=new B("NgValidators"),Yt=new B("NgAsyncValidators");function Ct(n){return n!=null}function yt(n){return ze(n)?w(n):n}function Mt(n){let e={};return n.forEach(o=>{e=o!=null?y(y({},e),o):e}),Object.keys(e).length===0?null:e}function bt(n,e){return e.map(o=>o(n))}function Xt(n){return!n.validate}function Pt(n){return n.map(e=>Xt(e)?e:o=>e.validate(o))}function Jt(n){if(!n)return null;let e=n.filter(Ct);return e.length==0?null:function(o){return Mt(bt(o,e))}}function Ot(n){return n!=null?Jt(Pt(n)):null}function Qt(n){if(!n)return null;let e=n.filter(Ct);return e.length==0?null:function(o){let t=bt(o,e).map(yt);return Be(t).pipe(P(Mt))}}function xt(n){return n!=null?Qt(Pt(n)):null}function ct(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function en(n){return n._rawValidators}function tn(n){return n._rawAsyncValidators}function Ee(n){return n?Array.isArray(n)?n:[n]:[]}function be(n,e){return Array.isArray(n)?n.includes(e):n===e}function dt(n,e){let o=Ee(e);return Ee(n).forEach(i=>{be(o,i)||o.push(i)}),o}function ut(n,e){return Ee(e).filter(o=>!be(n,o))}var Pe=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ot(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}
1_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,o){return this.control?this.control.hasError(e,o):!1}getError(e,o){return this.control?this.control.getError(e,o):null}},Fe=class extends Pe{get formDirective(){return null}get path(){return null}},ce=class extends Pe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ke=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},nn={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Bi=R(y({},nn),{"[class.ng-submitted]":"isSubmitted"}),wt=(()=>{let e=class e extends ke{constructor(t){super(t)}};e.\u0275fac=function(i){return new(i||e)(p(ce,2))},e.\u0275dir=D({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&O("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[I]});let n=e;return n})();var se="VALID",Me="INVALID",ee="PENDING",le="DISABLED";function rn(n){return(xe(n)?n.validators:n)||null}function on(n){return Array.isArray(n)?Ot(n):n||null}function an(n,e){return(xe(e)?e.asyncValidators:n)||null}function sn(n){return Array.isArray(n)?xt(n):n||null}function xe(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}var Te=class{constructor(e,o){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(o)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===se}get invalid(){return this.status===Me}get pending(){return this.status==ee}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(dt(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(dt(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ut(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ut(e,this._rawAsyncValidators))}hasValidator(e){return be(this._rawValidators,e)}hasAsyncValidator(e){return be(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
1markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(o=>{o.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=ee,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let o=this._parentMarkedDirty(e.onlySelf);this.status=le,this.errors=null,this._forEachChild(t=>{t.disable(R(y({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(R(y({},e),{skipPristineCheck:o})),this._onDisabledChange.forEach(t=>t(!0))}enable(e={}){let o=this._parentMarkedDirty(e.onlySelf);this.status=se,this._forEachChild(t=>{t.enable(R(y({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(R(y({},e),{skipPristineCheck:o})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===se||this.status===ee)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(o=>o._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:se}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=ee,this._hasOwnPendingAsyncValidator=!0;let o=yt(this.asyncValidator(this));this._asyncValidationSubscription=o.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,o={}){this.errors=e,this._updateControlsErrors(o.emitEvent!==!1)}get(e){let o=e;return o==null||(Array.isArray(o)||(o=o.split(".")),o.length===0)?null:o.reduce((t,i)=>t&&t._find(i),this)}getError(e,o){let t=o?this.get(o):this;return t&&t.errors?t.errors[e]:null}hasError(e,o){return!!this.getError(e,o)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?Me:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ee)?ee:this._anyControlsHaveStatus(Me)?Me:se}_anyControlsHaveStatus(e){return this._anyControls(o=>o.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xe(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let o=this._parent&&this._parent.dirty;return!e&&!!o&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=on(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=sn(this._rawAsyncValidators)}};var Ue=new B("CallSetDisabledState",{providedIn:"root",factory:()=>we}),we="always";function ln(n,e){return[...e.path,n]}function cn(n,e,o=we){un(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||o==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),pn(n,e),hn(n,e),gn(n,e),dn(n,e)}
1function pt(n,e){n.forEach(o=>{o.registerOnValidatorChange&&o.registerOnValidatorChange(e)})}function dn(n,e){if(e.valueAccessor.setDisabledState){let o=t=>{e.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(o),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(o)})}}function un(n,e){let o=en(n);e.validator!==null?n.setValidators(ct(o,e.validator)):typeof o=="function"&&n.setValidators([o]);let t=tn(n);e.asyncValidator!==null?n.setAsyncValidators(ct(t,e.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let i=()=>n.updateValueAndValidity();pt(e._rawValidators,i),pt(e._rawAsyncValidators,i)}function pn(n,e){e.valueAccessor.registerOnChange(o=>{n._pendingValue=o,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Vt(n,e)})}function gn(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Vt(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function Vt(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function hn(n,e){let o=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};n.registerOnChange(o),e._registerOnDestroy(()=>{n._unregisterOnChange(o)})}function fn(n,e){if(!n.hasOwnProperty("model"))return!1;let o=n.model;return o.isFirstChange()?!0:!Object.is(e,o.currentValue)}function mn(n){return Object.getPrototypeOf(n.constructor)===Ne}function _n(n,e){if(!e)return null;Array.isArray(e);let o,t,i;return e.forEach(r=>{r.constructor===vt?o=r:mn(r)?t=r:i=r}),i||t||o||null}function gt(n,e){let o=n.indexOf(e);o>-1&&n.splice(o,1)}function ht(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var vn=class extends Te{constructor(e=null,o,t){super(rn(o),an(t,o)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(o),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xe(o)&&(o.nonNullable||o.initialValueIsDefault)&&(ht(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,o={}){this.value=this._pendingValue=e,this._onChange.length&&o.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,o.emitViewToModelChange!==!1)),this.updateValueAndValidity(o)}patchValue(e,o={}){this.setValue(e,o)}reset(e=this.defaultValue,o={}){this._applyFormState(e),this.markAsPristine(o),this.markAsUntouched(o),this.setValue(this.value,o),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){gt(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){gt(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ht(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Cn={provide:ce,useExisting:ne(()=>je)},ft=Promise.resolve(),je=(()=>{let e=class e extends ce{constructor(t,i,r,c,g,v){super(),this._changeDetectorRef=g,this.callSetDisabledState=v,this.control=new vn,this._registered=!1,this.name="",this.update=new pe,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=_n(this,c)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),fn(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){cn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){ft.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let i=t.isDisabled.currentValue,r=i!==0&&Ye(i);ft.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ln(t,this._parent):[t]}};e.\u0275fac=function(i){return new(i||e)(p(Fe,9),p(Kt,10),p(Yt,10),p(Oe,10),p(Re,8),p(Ue,8))},e.\u0275dir=D({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[de.None,"disabled","isDisabled"],model:[de.None,"ngModel","model"],options:[de.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ae([Cn]),I,He]});let n=e;return n})();var yn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var Mn=new B("NgModelWithFormControlWarning");var bn={provide:Oe,useExisting:ne(()=>Ve),multi:!0};function Dt(n,e){return n==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${n}: ${e}`.slice(0,50))}function Pn(n){return n.split(":")[0]}var Ve=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let i=this._getOptionId(t),r=Dt(i,t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){let i=Pn(t);return this._optionMap.has(i)?this._optionMap.get(i):t}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ue(e)))(r||e)}})(),e.\u0275dir=D({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){i&1&&h("change",function(g){return r.onChange(g.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ae([bn]),I]});let n=e;return n})(),St=(()=>{let e=class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Dt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(p(re),p(oe),p(Ve,9))},e.\u0275dir=D({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let n=e;return n})(),On={provide:Oe,useExisting:ne(()=>At),multi:!0};function mt(n,e){return n==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${n}: ${e}`.slice(0,50))}function xn(n){return n.split(":")[0]}var At=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let i;if(Array.isArray(t)){let r=t.map(c=>this._getOptionId(c));i=(c,g)=>{c._setSelected(r.indexOf(g.toString())>-1)}}else i=(r,c)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{let r=[],c=i.selectedOptions;if(c!==void 0){let g=c;for(let v=0;v<g.length;v++){let H=g[v],te=this._getOptionValue(H.value);r.push(te)}}else{let g=i.options;for(let v=0;v<g.length;v++){let H=g[v];if(H.selected){let te=this._getOptionValue(H.value);r.push(te)}}}this.value=r,t(r)}}_registerOption(t){let i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){let i=xn(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ue(e)))(r||e)}})(),e.\u0275dir=D({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){i&1&&h("change",function(g){return r.onChange(g.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ae([On]),I]});let n=e;return n})(),It=(()=>{let e=class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(mt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(mt(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(p(re),p(oe),p(At,9))},e.\u0275dir=D({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let n=e;return n})();var Et=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({imports:[yn]});let n=e;return n})();var Ft=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ue,useValue:t.callSetDisabledState??we}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({imports:[Et]});let n=e;return n})(),kt=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Mn,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ue,useValue:t.callSetDisabledState??we}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({imports:[Et]});let n=e;return n})();function Vn(n,e){n&1&&(a(0,"div",38),M(),a(1,"svg",39),u(2,"path",40)(3,"path",41),s()())}function Dn(n,e){if(n&1&&u(0,"img",42),n&2){let o=b();d("src",o.selectedAvatarPreview||(o.user==null?null:o.user.avatar_url),Ae)}}function Sn(n,e){n&1&&(a(0,"div",43)(1,"div",44)(2,"span",45),m(3,"Loading..."),s()()())}function An(n,e){if(n&1&&(a(0,"option",46),m(1),s()),n&2){let o=e.$implicit,t=b();d("value",o.code)("selected",t.selectedChatLang===o.code),l(),S(" ",o.label," ")}}function In(n,e){n&1&&(a(0,"div",47),u(1,"div",44),s())}function En(n,e){n&1&&(a(0,"tr"),u(1,"td",48),s())}function Fn(n,e){if(n&1&&(a(0,"div"),m(1),s()),n&2){let o=e.$implicit;l(),x(o.description)}}function kn(n,e){if(n&1&&u(0,"a",50),n&2){let o=b().$implicit;d("href",o.invoice_pdf,Ae)}}function Tn(n,e){if(n&1&&(a(0,"tr")(1,"td"),m(2),_(3,"date"),s(),a(4,"td"),f(5,Fn,2,1,"div",37),s(),a(6,"td"),m(7),_(8,"translate"),s(),a(9,"td"),f(10,kn,1,1,"a",49),s()()),n&2){let o=e.$implicit;l(2),S(" ",W(3,4,o.created*1e3,"yyyy-MM-dd HH:mm")," "),l(3),d("ngForOf",o.lines),l(2),S(" ",C(8,7,"app.page.billing_history.status."+o.status)," "),l(3),d("ngIf",o.invoice_pdf)}
1}var Ut=(()=>{let e=class e{constructor(t,i,r,c){this.userService=t,this.alertService=i,this.translateService=r,this.languageService=c,this.appCodes=J,this.selectedAvatarPreview=null,this.isUploadingAvatar=!1,this.isUpdatingUiLanguage=!1,this.isUpdatingChatLanguage=!1,this.maxFileSize=5*1024*1024,this.selectedChatLang="en",this.pendingUiApplyLang=null,this.pendingUiApplyLabel="",this.selectedUiLang=this.languageService.getCurrentLangFromUrl()||"en"}ngOnInit(){let t=this.userService.user;t&&(t.ui_language&&(this.selectedUiLang=t.ui_language),t.chat_language&&(this.selectedChatLang=t.chat_language)),this.userService.user$?.subscribe(i=>{i&&(i.ui_language&&(this.selectedUiLang=i.ui_language),i.chat_language&&(this.selectedChatLang=i.chat_language))})}get user(){return this.userService.user}get invoices(){return this.userService.invoices}get availableLanguages(){return Object.entries(et).map(([t,i])=>({code:t,label:i}))}get uiLanguageValue(){return this.selectedUiLang}get chatLanguageValue(){return this.selectedChatLang}focusPlans(){document.getElementById("plans").scrollIntoView()}logout(){this.userService.logout()}onAvatarSelected(t){let r=t.target.files?.[0];if(!r)return;if(!r.type.startsWith("image/")){this.alertService.show({type:"danger",message:this.translateService.instant("app.page.profile.avatar.invalid_type")});return}if(r.size>this.maxFileSize){this.alertService.show({type:"danger",message:this.translateService.instant("app.page.profile.avatar.file_too_large")});return}let c=new FileReader;c.onload=g=>{this.selectedAvatarPreview=g.target?.result,this.uploadAvatar(r)},c.readAsDataURL(r)}uploadAvatar(t){this.isUploadingAvatar=!0;let i=new FileReader;i.onload=r=>{let c=r.target?.result;this.userService.updateUser({avatar_url:c}).subscribe({next:()=>{this.selectedAvatarPreview=null,this.isUploadingAvatar=!1,this.alertService.show({type:"primary",message:this.translateService.instant("app.page.profile.avatar.upload_success")})},error:g=>{this.selectedAvatarPreview=null,this.isUploadingAvatar=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.profile.avatar.upload_failed")}),console.error("Avatar upload failed:",g)}})},i.readAsDataURL(t)}onUiLanguageChange(t){let r=t.target.value;!r||r===this.user?.ui_language||this.updateUiLanguage(r)}onUiLanguageModelChange(t){!t||t===this.user?.ui_language||this.updateUiLanguage(t)}onChatLanguageChange(t){let r=t.target.value;!r||r===this.user?.chat_language||this.updateChatLanguage(r)}onChatLanguageModelChange(t){!t||t===this.user?.chat_language||this.updateChatLanguage(t)}updateUiLanguage(t){this.isUpdatingUiLanguage=!0,this.userService.updateUser({ui_language:t}).subscribe({next:()=>{this.isUpdatingUiLanguage=!1,this.pendingUiApplyLang=t,this.translateService.getTranslation(t).subscribe(i=>{let r=i?.profile?.language_settings?.apply_now;this.pendingUiApplyLabel=r||"Apply now"}),this.alertService.show({type:"primary",message:this.translateService.instant("app.page.profile.language_settings.ui_language_updated")})},error:i=>{this.isUpdatingUiLanguage=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.profile.language_settings.update_failed")}),console.error("UI language update failed:",i)}})}updateChatLanguage(t){this.isUpdatingChatLanguage=!0,this.userService.updateUser({chat_language:t}).subscribe({next:()=>{this.isUpdatingChatLanguage=!1,this.alertService.show({type:"primary",message:this.translateService.instant("app.page.profile.language_settings.chat_language_updated")})},error:i=>{this.isUpdatingChatLanguage=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.profile.language_settings.update_failed")}),console.error("Chat language update failed:",i)}})}applyPendingUiLanguage(){if(!this.pendingUiApplyLang)return;let t=this.pendingUiApplyLang;this.pendingUiApplyLang=null,this.languageService.switchTo(t,{reload:!0})}};e.\u0275fac=function(i){return new(i||e)(p(Q),p(X),p(K),p(at))},e.\u0275cmp=V({type:e,selectors:[["dashboard-profile-tab"]],decls:45,vars:17,consts:[[1,"profile-header"],[1,"avatar-section"],[1,"avatar-container"],["class","avatar-placeholder",4,"ngIf"],["alt","User Avatar","class","avatar-image",3,"src",4,"ngIf"],["class","avatar-loading",4,"ngIf"],["type","file","accept","image/*",2,"display","none",3,"change"],["avatarInput",""],[1,"avatar-edit-btn",3,"title","disabled","click"],["width","16","height","16","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z","fill","currentColor"],[1,"user-details-section"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"subscription-info"],[1,"plan-info"],["translate","app.page.subscription.plan",1,"plan-label"],[1,"plan-value"],["translate","app.page.subscription.change_plan",1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"action-section"],["translate","app.page.profile.logout",1,"btn","btn-outline-danger","btn-sm",3,"click"],[1,"card"],["translate","app.page.profile.language_settings.title",1,"card-title"],[1,"language-settings"],[1,"language-setting-item"],["translate","app.page.profile.language_settings.chat_language",1,"language-label"],[1,"select-wrapper"],["name","chatLang",1,"form-select",3,"ngModel","disabled","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["class","select-spinner",4,"ngIf"],["translate","app.page.billing_history.title",1,"card-title"],["translate","app.page.billing_history.th_created"],["translate","app.page.billing_history.th_plan"],["translate","app.page.billing_history.th_status"],["translate","app.page.billing_history.th_invoice"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"avatar-placeholder"],["width","40","height","40","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z","fill","#9CA3AF"],["d","M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z","fill","#9CA3AF"],["alt","User Avatar",1,"avatar-image",3,"src"],[1,"avatar-loading"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"],[3,"value","selected"],[1,"select-spinner"],["colspan","4","translate","app.page.billing_history.no_data",1,"no-data"],["class","link","translate","app.page.billing_history.download",3,"href",4,"ngIf"],["translate","app.page.billing_history.download",1,"link",3,"href"]],template:function(i,r){if(i&1){let c=$();a(0,"div",0)(1,"div",1)(2,"div",2),f(3,Vn,4,0,"div",3)(4,Dn,1,1,"img",4)(5,Sn,4,0,"div",5),a(6,"input",6,7),h("change",function(v){return r.onAvatarSelected(v)}),s(),a(8,"button",8),h("click",function(){k(c);let v=We(7);return T(v.click())}),_(9,"translate"),M(),a(10,"svg",9),u(11,"path",10),s()()()(),z(),a(12,"div",11)(13,"div",12)(14,"div",13),m(15),s(),a(16,"div",14),m(17),s()(),a(18,"div",15)(19,"div",16),u(20,"span",17),a(21,"span",18),m(22),s()(),a(23,"button",19),h("click",function(){return r.focu
1sPlans()}),s()()(),a(24,"div",20)(25,"button",21),h("click",function(){return r.logout()}),s()()(),a(26,"div",22),u(27,"div",23),a(28,"div",24)(29,"div",25),u(30,"label",26),a(31,"div",27)(32,"select",28),h("ngModelChange",function(v){return r.selectedChatLang=v})("ngModelChange",function(v){return r.onChatLanguageModelChange(v)}),f(33,An,2,3,"option",29),s(),f(34,In,2,0,"div",30),s()()()(),a(35,"div",22),u(36,"div",31),a(37,"table")(38,"tr"),u(39,"th",32)(40,"th",33)(41,"th",34)(42,"th",35),s(),f(43,En,2,0,"tr",36)(44,Tn,11,9,"tr",37),s()()}i&2&&(l(3),d("ngIf",!(r.user!=null&&r.user.avatar_url)&&!r.selectedAvatarPreview),l(),d("ngIf",r.selectedAvatarPreview||(r.user==null?null:r.user.avatar_url)),l(),d("ngIf",r.isUploadingAvatar),l(3),d("title",C(9,15,"app.page.profile.change_avatar"))("disabled",r.isUploadingAvatar),l(7),Ze(" ",r.user==null?null:r.user.firstname," ",r.user==null?null:r.user.lastname," "),l(2),S(" ",r.user==null?null:r.user.email," "),l(5),x(r.user==null||r.user.plan==null?null:r.user.plan.name),l(10),d("ngModel",r.selectedChatLang)("disabled",r.isUpdatingChatLanguage),l(),d("ngForOf",r.availableLanguages),l(),d("ngIf",r.isUpdatingChatLanguage),l(9),d("ngIf",!(r.invoices!=null&&r.invoices.length)),l(),d("ngForOf",r.invoices))},dependencies:[Z,A,St,It,Ve,wt,je,U,q,Y],styles:[`@keyframes _ngcontent-%COMP%_fade-anim{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse-anim{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.profile-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:20px;padding:32px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;color:#fff;margin-bottom:36px}@media (max-width: 991.98px){.profile-header[_ngcontent-%COMP%]{flex-direction:column;text-align:center;padding:24px;gap:16px}}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%]{flex-shrink:0}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%]{width:80px;height:80px;background-color:#fff3;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid rgba(255,255,255,.3);transition:all .2s ease}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%]:hover{border-color:#fff9;background-color:#ffffff4d}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:40px;height:40px}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fffc}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-image[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.3);transition:all .2s ease}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-image[_ngcontent-%COMP%]:hover{border-color:#fff9}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:80px;height:80px;background-color:#00000080;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:1}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-loading[_ngcontent-%COMP%] .spinner-border-sm[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;border-width:.15em;color:#fff}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;width:28px;height:28px;background-color:#ffffffe6;border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#667eea;transition:all .2s ease;padding:0}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#fff;transform:scale(1.1)}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed;background-color:#ffffff80;color:#667eea80}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]:disabled:hover{transform:none}.profile-header[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;
1height:14px}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:16px}@media (max-width: 991.98px){.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%]{align-items:center}}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-family:Poppins;font-weight:600;font-size:24px;color:#fff;margin-bottom:4px;line-height:1.2}@media (max-width: 991.98px){.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:20px}}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:16px;color:#fffc;font-weight:400}@media (max-width: 991.98px){.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:14px}}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}@media (max-width: 991.98px){.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%]{flex-direction:column;gap:8px}}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%] .plan-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%] .plan-info[_ngcontent-%COMP%] .plan-label[_ngcontent-%COMP%]{font-size:14px;color:#ffffffb3;font-weight:500}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%] .plan-info[_ngcontent-%COMP%] .plan-value[_ngcontent-%COMP%]{font-size:14px;color:#fff;font-weight:600;background-color:#fff3;padding:4px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.3)}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{background-color:#ffffff1a;border-color:#ffffff4d;color:#fff;padding:6px 16px;font-size:13px;font-weight:500}.profile-header[_ngcontent-%COMP%] .user-details-section[_ngcontent-%COMP%] .subscription-info[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]:hover{background-color:#fff3;border-color:#ffffff80;color:#fff}.profile-header[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%]{flex-shrink:0}.profile-header[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{background-color:#dc262633;border-color:#dc262666;color:#fecaca;padding:8px 20px;font-size:13px;font-weight:500}.profile-header[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]:hover{background-color:#dc26264d;border-color:#dc262699;color:#fff}.card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:#fff;box-shadow:#959da533 0 8px 24px;border-radius:16px;padding:24px;margin-bottom:36px}@media (max-width: 991.98px){.card[_ngcontent-%COMP%]{padding:16px;margin-bottom:24px}}.card-title[_ngcontent-%COMP%]{font-family:Poppins;font-weight:700;font-size:20px;line-height:1;color:#545d67}.card[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:8px 12px;text-align:left;vertical-align:middle;border-top:1px solid #F3F4F6}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#6b7280;white-space:nowrap;border-top:none}.card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#374151}.card[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{display:inline-block;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:132px}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;border:none;background:transparent;color:#6b7280;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#111827}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:active{background:#e5e7eb}.card[_ngcontent-%COMP%] .icon-btn[disabled][_ngcontent-%COMP%]{opacity:.6;cursor:default}.card[_ngcontent-%COMP%] .icon-btn.danger[_ngcontent-%COMP%]{color:#dc2626}.language-settings[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}@media (max-width: 991.98px){.language-settings[_ngcontent-%COMP%]{gap:16px}}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}@media (max-width: 991.98px){.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .language-label[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#374151;flex-shrink:0;min-width:140px}@media (max-width: 991.98px){.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .language-label[_ngcontent-%COMP%]{font-size:14px;min-width:unset}}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;gap:8px;flex:1;max-width:380px}@media (max-width: 991.98px){.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%]{width:100%;max-width:unset}}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .form-select[_ngcontent-%COMP%]{width:100%;padding:8px 36px 8px 12px;border:1px solid #d1d5db;border-radius:8px;background-color:#fff;font-size:14px;color:#374151;transition:all .2s ease;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right 8px center;background-repeat:no-repeat;background-size:16px}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .form-select[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .form-select[_ngcontent-%COMP%]:disabled{background-color:#f9fafb;color:#9ca3af;cursor:not-allowed;opacity:.7}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .form-select[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#9ca3af}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .select-spinner[_ngcontent-%COMP%]{position:absolute;right:32px;top:50%;transform:translateY(-50%);z-index:10;pointer-events:none}.language-settings[_ngcontent-%COMP%] .language-setting-item[_ngcontent-%COMP%] .select-wrapper[_ngcontent-%COMP%] .select-spinner[_ngcontent-%COMP%] .spinner-border-sm[_ngcontent-%COMP%]{width:16px;height:16px;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;
1animation:_ngcontent-%COMP%_spin .75s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`]});let n=e;return n})();var jt=(()=>{let e=class e{constructor(t,i,r){this.http=t,this.config=i,this.authService=r,this._conversations=[],this._conversationsLoaded=!1,this._conversationsLoading=!1}get conversations(){return this._conversations}get conversationsLoaded(){return this._conversationsLoaded}get conversationsLoading(){return this._conversationsLoading}list(){this._conversationsLoaded||this._conversationsLoading||(this._conversationsLoading=!0,w(this.authService.getAuthToken()).pipe(P(t=>({headers:new N(y({Authorization:`Bearer ${t.token}`},t.clientId?{"x-client-id":t.clientId}:{}))})),E(t=>this.http.get(`${this.config.apiUrl}/conversations`,t))).subscribe({next:t=>{this._conversations=t,this._conversationsLoaded=!0,this._conversationsLoading=!1},error:()=>{this._conversationsLoading=!1}}))}delete(t){return w(this.authService.getAuthToken()).pipe(P(i=>({headers:new N(y({Authorization:`Bearer ${i.token}`},i.clientId?{"x-client-id":i.clientId}:{}))})),E(i=>this.http.delete(`${this.config.apiUrl}/conversations/${t}`,i)),Ge(()=>{this._conversations=this._conversations.filter(i=>i.conversationId!==t)}))}download(t){return w(this.authService.getAuthToken()).pipe(P(i=>({headers:new N(y({Authorization:`Bearer ${i.token}`},i.clientId?{"x-client-id":i.clientId}:{}))})),E(({headers:i})=>this.http.get(`${this.config.apiUrl}/conversations/${t}/zip`,{headers:i,responseType:"blob"})))}};e.\u0275fac=function(i){return new(i||e)(F(fe),F(me),F(ve))},e.\u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zn(n,e){n&1&&(a(0,"div",9),u(1,"div",10)(2,"p",11),s())}function $n(n,e){n&1&&(a(0,"tr"),u(1,"td",16),s())}function Wn(n,e){n&1&&u(0,"span",26)}function Zn(n,e){n&1&&(M(),a(0,"svg",20),u(1,"path",27),s())}function qn(n,e){n&1&&u(0,"span",26)}function Kn(n,e){n&1&&(M(),a(0,"svg",20),u(1,"path",28),s())}var Yn=(n,e)=>({view_link:n,chat_id:e});function Xn(n,e){if(n&1){let o=$();a(0,"tr")(1,"td"),m(2),_(3,"date"),s(),a(4,"td")(5,"span",17),m(6),s()(),a(7,"td",18)(8,"a",19),_(9,"translate"),M(),a(10,"svg",20),u(11,"path",21),s()(),z(),a(12,"button",22),h("click",function(){let r=k(o).$implicit,c=b(2);return T(c.downloadConversation(r))}),_(13,"translate"),f(14,Wn,1,0,"span",23)(15,Zn,2,0,"svg",24),s(),a(16,"button",25),h("click",function(){let r=k(o).$implicit,c=b(2);return T(c.openDeleteConfirm(r))}),_(17,"translate"),f(18,qn,1,0,"span",23)(19,Kn,2,0,"svg",24),s()()()}if(n&2){let o=e.$implicit,t=b(2);l(2),S(" ",W(3,14,o.timestamp*1e3,"yyyy-MM-dd HH:mm")," "),l(3),d("title",o.title),l(),x(t.truncate(o.title,32)),l(2),$e("title",C(9,17,"app.page.chat_history.actions.open_in_chat")),d("appCode",t.appCodes.Products)("queryParams",Ke(23,Yn,o.document,o.conversationId)),l(4),d("disabled",t.downloading[o.conversationId])("title",C(13,19,t.downloading[o.conversationId]?"app.page.chat_history.actions.downloading":"app.page.chat_history.actions.download")),l(2),d("ngIf",t.downloading[o.conversationId]),l(),d("ngIf",!t.downloading[o.conversationId]),l(),d("disabled",t.deleting[o.conversationId])("title",C(17,21,t.deleting[o.conversationId]?"app.page.chat_history.actions.deleting":"app.page.chat_history.actions.delete")),l(2),d("ngIf",t.deleting[o.conversationId]),l(),d("ngIf",!t.deleting[o.conversationId])}}function Jn(n,e){if(n&1&&(a(0,"table")(1,"tr"),u(2,"th",12)(3,"th",13)(4,"th",14),s(),f(5,$n,2,0,"tr",3)(6,Xn,20,26,"tr",15),s()),n&2){let o=b();l(5),d("ngIf",o.conversationsLoaded&&!(o.conversations!=null&&o.conversations.length)),l(),d("ngForOf",o.conversations)}}var Lt=(()=>{let e=class e{constructor(t,i,r,c){this.conversationsService=t,this.alertService=i,this.translateService=r,this.modalService=c,this.appCodes=J,this.downloading={},this.deleting={},this.convToDelete=null}ngOnInit(){this.conversationsService.list()}get conversations(){return this.conversationsService.conversations}get conversationsLoading(){return this.conversationsService.conversationsLoading}get conversationsLoaded(){return this.conversationsService.conversationsLoaded}downloadConversation(t){let i=t?.conversationId;i&&(this.downloading[i]=!0,this.conversationsService.download(i).subscribe({next:r=>{let c=(t.title||i).toString().replace(/\s+/g,"_");this.saveBlob(r,`${c}.zip`),this.downloading[i]=!1},error:()=>{this.downloading[i]=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.chat_history.alerts.download_failed")})}}))}openDeleteConfirm(t){this.convToDelete=t,this.modalService.open("confirm-delete-conversation")}cancelDeleteConversation(){this.convToDelete=null,this.modalService.close()}confirmDeleteConversation(){if(!this.convToDelete?.conversationId){this.modalService.close();return}let t=this.convToDelete;this.convToDelete=null,this.modalService.close(),this.deleteConversation(t)}deleteConversation(t){let i=t?.conversationId;i&&(this.deleting[i]=!0,this.conversationsService.delete(i).subscribe({next:()=>{this.deleting[i]=!1,this.alertService.show({type:"primary",message:this.translateService.instant("app.page.chat_history.alerts.delete_success")})},error:()=>{this.deleting[i]=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.chat_history.alerts.delete_failed")})}}))}truncate(t,i=32){return t?t.length>i?t.slice(0,i)+"\u2026":t:""}saveBlob(t,i){let r=window.URL.createObjectURL(t),c=document.createElement("a");c.href=r,c.download=i,document.body.appendChild(c),c.click(),c.remove(),window.URL.revokeObjectURL(r)}};e.\u0275fac=function(i){return new(i||e)(p(jt),p(X),p(K),p(Ce))},e.\u0275cmp=V({type:e,selectors:[["dashboard-chat-history-tab"]],decls:14,vars:14,consts:[[1,"card"],["translate","app.page.chat_history.title",1,"card-title"],["class","loading-state",4,"ngIf"],[4,"ngIf"],["id","confirm-delete-conversation",3,"backdrop","title"],["translate","app.page.chat_history.delete_confirm",1,"modal-message"],["modalActions",""],[1,"btn","btn-sm",3,"click"],[1,"btn","btn-sm","btn-danger",3,"click"],[1,"loading-state"],[1,"loading-spinner"],["translate","app.page.chat_history.loading"],["translate","app.page.chat_history.th_created"],["translate","app.page.chat_history.th_title"],["translate","app.page.chat_history.th_actions"],[4,"ngFor","ngForOf"],["colspan","3","translate","app.page.chat_history.no_data",1,"no-data"],[1,"filename",3,"title"],[1,"actions"],["link","/chat-room","target","_blank",1,"icon-btn",3,"title","appCode","queryParams"],["viewBox","0 0 24 24","width","18","height","18","fill","currentColor","aria-hidden","true"],["d","M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z"],[1,"icon-btn",3,"disabled","title","click"],["class","loading-spinner small",4,"ngIf"],["viewBox","0 0 24 24","width","18","height","18","fill","currentColor","aria-hidden","true",4,"ngIf"],[1,"icon-btn","danger",3,"disabled","title","click"],[1,"loading-spinner","small"],["d","M11 3h2v10.17l3.59-3.58L18 11l-6 6-6-6 1.41-1.41L11 13.17V3Zm-6 16h14v2H5v-2Z"],["d","M7 6h10l-1 14H8L7 6Zm3-3h4l1 2h4v2H5V5h4l1-2Z"]],template:function(i,r){i&1&&(a(0,"div",0),u(1,"div",1),f(2,zn,3,0,"div",2)(3,Jn,7,2,"table",3),s(),a(4,"shared-modal",4),_(5,"translate"),u(6,"div",5),ge(7,6),a(8,"button",7),h("click",function(){return r.cancelDeleteConversation()}),m(9),_(10,"translate"),s(),a(11,"button",8),h("click",function(){return r.confirmDeleteConversation()}),m(12),_(13,"translate"),s(),he(),s()),i&2&&(O("loading",r.conversationsLoading),l(2),d("ngIf",r.conversationsLoading),l(
1),d("ngIf",!r.conversationsLoading),l(),d("backdrop",!1)("title",C(5,8,"app.page.chat_history.delete_title")),l(5),x(C(10,10,"app.page.chat_history.actions.cancel")),l(3),x(C(13,12,"app.page.chat_history.actions.delete")))},dependencies:[Z,A,U,_e,ye,q,Y],styles:["@keyframes _ngcontent-%COMP%_fade-anim{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse-anim{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:#fff;box-shadow:#959da533 0 8px 24px;border-radius:16px;padding:24px}@media (max-width: 991.98px){.card[_ngcontent-%COMP%]{padding:16px}}.card.loading[_ngcontent-%COMP%]{pointer-events:none}.card.loading[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{animation:1s _ngcontent-%COMP%_pulse-anim linear infinite}.card-title[_ngcontent-%COMP%]{font-family:Poppins;font-weight:700;font-size:20px;line-height:1;color:#545d67}.card[_ngcontent-%COMP%] .loading-spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid #f3f3f3;border-top:3px solid #7C6CF8;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.card[_ngcontent-%COMP%] .loading-spinner.small[_ngcontent-%COMP%]{width:16px;height:16px;border-width:2px;margin:0}.card[_ngcontent-%COMP%] .loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center}.card[_ngcontent-%COMP%] .loading-state[_ngcontent-%COMP%] .loading-spinner[_ngcontent-%COMP%]{margin-bottom:16px}.card[_ngcontent-%COMP%] .loading-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;margin:0;font-weight:500}.card[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:8px 12px;text-align:left;vertical-align:middle;border-top:1px solid #F3F4F6}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#6b7280;white-space:nowrap;border-top:none}.card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#374151}.card[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{display:inline-block;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:132px}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;border:none;background:transparent;color:#6b7280;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#111827}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:active{background:#e5e7eb}.card[_ngcontent-%COMP%] .icon-btn[disabled][_ngcontent-%COMP%]{opacity:.6;cursor:default}.card[_ngcontent-%COMP%] .icon-btn.danger[_ngcontent-%COMP%]{color:#dc2626}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let n=e;return n})();var Bt=(()=>{let e=class e{constructor(t,i,r){this.http=t,this.config=i,this.authService=r}list(){return w(this.authService.getAuthToken()).pipe(P(t=>({headers:new N(y({Authorization:`Bearer ${t.token}`},t.clientId?{"x-client-id":t.clientId}:{}))})),E(t=>this.http.get(`${this.config.apiUrl}/files`,t)),P(t=>(Array.isArray(t)?t:t?.results||[]).map(r=>{let c=r?.document_id??r?.documentId??r,g=r?.file_name??r?.fileName??String(c),v=r?.file_size??r?.fileSize??0,H=r?.file_type??r?.fileType??"",te=r?.created_at??r?.createdAt??"",zt=r?.ingestion_status??r?.ingestionStatus??"",$t=r?.ingestion_error??r?.ingestionError??null;return{documentId:c,fileName:g,fileSize:v,fileType:H,createdAt:te,ingestionStatus:zt,ingestionError:$t}})))}delete(t){return w(this.authService.getAuthToken()).pipe(P(i=>({headers:new N(y({Authorization:`Bearer ${i.token}`},i.clientId?{"x-client-id":i.clientId}:{}))})),E(i=>this.http.delete(`${this.config.apiUrl}/files/${t}`,i)))}downloadZip(t){return w(this.authService.getAuthToken()).pipe(P(i=>({headers:new N(y({Authorization:`Bearer ${i.token}`},i.clientId?{"x-client-id":i.clientId}:{}))})),E(({headers:i})=>this.http.get(`${this.config.apiUrl}/files/${t}/zip`,{headers:i,responseType:"blob"})))}};e.\u0275fac=function(i){return new(i||e)(F(fe),F(me),F(ve))},e.\u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ti(n,e){n&1&&(a(0,"div",9),u(1,"div",10)(2,"p",11),s())}function ni(n,e){n&1&&(a(0,"tr"),u(1,"td",18),s())}function ii(n,e){n&1&&(M(),a(0,"svg",31),u(1,"path",32),s())}function ri(n,e){n&1&&(M(),a(0,"svg",31),u(1,"path",33),s())}function oi(n,e){n&1&&(M(),a(0,"svg",31),u(1,"path",34),s())}function ai(n,e){n&1&&(M(),a(0,"svg",31),u(1,"path",35),s())}function si(n,e){n&1&&u(0,"span",36)}function li(n,e){n&1&&(M(),a(0,"svg",25),u(1,"path",37),s())}function ci(n,e){n&1&&u(0,"span",36)}function di(n,e){n&1&&(M(),a(0,"svg",25),u(1,"path",38),s())}var ui=n=>({view_link:n});function pi(n,e){if(n&1){let o=$();a(0,"tr")(1,"td"),m(2),_(3,"date"),s(),a(4,"td")(5,"span",19),m(6),s()(),a(7,"td"),m(8),s(),a(9,"td",20)(10,"span",21),f(11,ii,2,0,"svg",22)(12,ri,2,0,"svg",22)(13,oi,2,0,"svg",22)(14,ai,2,0,"svg",22),s()(),a(15,"td",23)(16,"a",24),_(17,"translate"),M(),a(18,"svg",25),u(19,"path",26),s()(),z(),a(20,"button",27),h("click",function(){let r=k(o).$implicit,c=b(2);return T(c.downloadZip(r))}),_(21,"translate"),f(22,si,1,0,"span",28)(23,li,2,0,"svg",29),s(),a(24,"button",30),h("click",function(){let r=k(o).$implicit,c=b(2);return T(c.openDeleteConfirm(r))}),_(25,"translate"),f(26,ci,1,0,"span",28)(27,di,2,0,"svg",29),s()()()}if(n&2){let o=e.$implicit,t=b(2);l(2),S(" ",W(3,21,o.createdAt,"yyyy-MM-dd HH:mm")," "),l(3),d("title",o.fileName),l(),x(t.truncate(o.fileName,32)),l(2),S(" ",t.formatSize(o.fileSize)," "),l(2),d("ngClass",t.statusKind(o))("title",t.statusTitle(o)),l(),d("ngIf",t.statusKind(o)==="success"),l(),d("ngIf",t.statusKind(o)==="error"),l(),d("ngIf",t.statusKind(o)==="processing"),l(),d("ngIf",t.statusKind(o)==="unknown"),l(2),d("title",C(17,24,"app.page.uploaded_files.actions.open_in_chat"))("appCode",t.appCodes.Products)("queryParams",qe(30,ui,o.documentId)),l(4),d("disabled",t.downloading[o.documentId])("title",C(21,26,t.downloading[o.documentId]?"app.page.uploaded_files.actions.downloading":"app.page.uploaded_files.actions.download")),l(2),d("ngIf",t.downloading[o.documentId]),l(),d("ngIf",!t.downloading[o.documentId]),l(),d("disabled",t.deleting[o.documentId])("title",C(25,28,t.deleting[o.documentId]?"app.page.uploaded_files.actions.deleting":"app.page.uploaded_files.actions.delete")),l(2),d("ngIf",t.deleting[o.documentId]),l(),d("ngIf",!t.deleting[o.documentId])}}function gi(n,e){if(n&1&&(a(0,"table")(1,"tr"),u(2,"th",12)(3,"th",13)(4,"th",14)(5,"th",15)(6,"th",16),s(),f(7,ni,2,0,"tr",3)(8,pi,28,32,"tr",17),s()),n&2){let o=b();l(7),d("ngIf",!(o.files!=null&&o.files.length)),l(),d("ngForOf",o.files)}}var Gt=(()=>{let e=class e{constructor(t,i,r,c){this.filesService=t,this.alertService=i,this.translateService=r,this.modalService=c,this.appCodes=J,this.files=[],this.loading=!1,this.downloading={},this.deleting={},this.fileToDelete=null}ngOnInit(){this.loadFiles()}loadFiles(){this.loading=!0,this.filesService.list().subscribe({next:t=>{this.files=t||[],this.loading=!1},error:()=>{this.loading=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.uploaded_files.alerts.load_failed")})}})}downloadZip(t){if(!t?.documentId)return;let i=t.documentId;this.downloading[i]=!0,this.filesService.downloadZip(i).subscribe({next:r=>{let c=(t.fileName||t.documentId).toString().replace(/\s+/g,"_");this.saveBlob(r,`${c}.zip`),this.downloading[i]=!1},error:()=>{this.downloading[i]=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.uploaded_files.alerts.download_failed")})}})}openDeleteConfirm(t){this.fileToDelete=t,this.modalService.open("confirm-delete-file")}cancelDeleteFile(){this.fileToDelete=null,this.modalService.close()}confirmDeleteFile(){if(!this.fileToDelete?.documentId){this.modalService.close();return}let t=this.fileToDelete;this.fileToDelete=null,this.modalService.close(),this.deleteFile(t)}deleteFile(t){if(!t?.documentId)return;let i=t.documentId;this.deleting[i]=!0,this.filesService.delete(i).subscribe({next:()=>{this.files=this.files.filter(r=>r.documentId!==i),this.deleting[i]=!1,this.alertService.show({type:"primary",message:this.translateService.instant("app.page.uploaded_files.alerts.delete_success")})},error:()=>{this.deleting[i]=!1,this.alertService.show({type:"danger",message:this.translateService.instant("app.page.uploaded_files.alerts.delete_failed")})}})}saveBlob(t,i){let r=window.URL.createObjectURL(t),c=document.createElement("a");c.href=r,c.download=i,document.body.appendChild(c),c.click(),c.remove(),window.URL.revokeObjectURL(r)}formatSize(t){if(!t&&t!==0)return"";let i=t/1024;if(i<1024)return`${i.toFixed(1)} KB`;let r=i/1024;return r<1024?`${r.toFixed(2)} MB`:`${(r/1024).toFixed(2)} GB`}truncate(t,i=32){return t?t.length>i?t.slice(0,i)+"\u2026":t:""}statusKind(t){let i=(t?.ingestionStatus||"").toLowerCase();return i.includes("success")?"success":i.includes("fail")||i.includes("error")?"error":i.includes("process")||i.includes("pending")||i.includes("ingest")?"processing":"unknown"}statusTitle(t){if(t?.ingestionError)return t.ingestionError;let r=`app.page.uploaded_files.status.${this.statusKind(t)}`;return this.translateService.instant(r,{status:t?.ingestionStatus||""})}};e.\u0275fac=function(i){return new(i||e)(p(Bt),p(X),p(K),p(Ce))},e.\u0275cmp=V({type:e,selectors:[["dashboard-uploaded-files-tab"]],decls:14,vars:14,consts:[[1,"card"],["translate","app.page.uploaded_files.title",1,"card-title"],["class","loading-state",4,"ngIf"],[4,"ngIf"],["id","confirm-delete-file",3,"backdrop","title"],["translate","app.page.uploaded_files.delete_confirm",1,"modal-message"],["modalActions",""],[1,"btn","btn-sm",3,"click"],[1,"btn","btn-sm","btn-danger",3,"click"],[1,"loading-state"],[1,"loading-spinner"],["translate","app.page.uploaded_files.loading"],["translate","app.page.uploaded_files.th_created"],["translate","app.page.uploaded_files.th_file"],["translate","app.page.uploaded_files.th_size"],["translate","app.page.uploaded_files.th_status"],["translate","app.page.uploaded_files.th_actions"],[4,"ngFor","ngForOf"],["colspan","5","translate","app.page.uploaded_files.no_data",1,"no-data"],[1,"filename",3,"title"],[1,"status-cell"],[1,"status-icon",3,"ngClass","title"],["viewBox","0 0 24 24","width","16","height","16","fill","currentColor","aria-hidden","true",4,"ngIf"],[1,"actions"],["link","/chat-room","target","_blank",1,"icon-btn",3,"title","appCode","queryParams"],["viewBox","0 0 24 24","width","18","height","18","fill","currentColor","aria-hidden","true"],["d","M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z"],[1,"icon-btn",3,"disabled","title","click"],["class","loading-spinner small",4,"ngIf"],["viewBox","0 0 24 24","width","18","height","18","fill","currentColor","aria-hidden","true",4,"ngIf"],[1,"icon-btn","danger",3,"disabled","title","click"],["viewBox","0 0 24 24","width","16","height","16","fill","currentColor","aria-hidden","true"],["d","M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 14-4-4 1.4-1.4L11 12.2l4.6-4.6L17 9l-6 7z"],["d","M11 7h2v6h-2V7Zm0 8h2v2h-2v-2Zm1-13a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z"],["d","M12 2a10 10 0 1 0 10 10h-2A8 8 0 1 1 12 4V2Zm-1 5h2v6h-4v-2h2V7Z"],["d","M11 17h2v2h-2v-2Zm1-15a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a4 4 0 0 1 4 4c0 2-2 3-3 3v2h-2v-3c0-1 1-1 2-2 1-1 1-2 0-3a2 2 0 0 0-3 1H8a4 4 0 0 1 4-2Z"],[1,"loading-spinner","small"],["d","M11 3h2v10.17l3.59-3.58L18 11l-6 6-6-6 1.41-1.41L11 13.17V3Zm-6 16h14v2H5v-2Z"],["d","M7 6h10l-1 14H8L7 6Zm3-3h4l1 2h4v2H5V5h4l1-2Z"]],template:function(i,r){i&1&&(a(0,"div",0),u(1,"div",1),f(2,ti,3,0,"div",2)(3,gi,9,2,"table",3),s(),a(4,"shared-modal",4),_(5,"translate"),u(6,"div",5),ge(7,6),a(8,"button",7),h("click",function(){return r.cancelDeleteFile()}),m(9),_(10,"translate"),s(),a(11,"button",8),h("click",function(){return r.confirmDeleteFile()}),m(12),_(13,"translate"),s(),he(),s()),i&2&&(O("loading",r.loading),l(2),d("ngIf",r.loading),l(
1),d("ngIf",!r.loading),l(),d("backdrop",!1)("title",C(5,8,"app.page.uploaded_files.delete_title")),l(5),x(C(10,10,"app.page.uploaded_files.actions.cancel")),l(3),x(C(13,12,"app.page.uploaded_files.actions.delete")))},dependencies:[Xe,Z,A,U,_e,ye,q,Y],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:#fff;box-shadow:#959da533 0 8px 24px;border-radius:16px;padding:24px}@media (max-width: 991.98px){.card[_ngcontent-%COMP%]{padding:16px}}.card-title[_ngcontent-%COMP%]{font-family:Poppins;font-weight:700;font-size:20px;line-height:1;color:#545d67}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%]{text-align:center;padding:40px 20px}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-icon[_ngcontent-%COMP%]{margin-bottom:24px;color:#9ca3af}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:48px;height:48px}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:Poppins;font-weight:600;font-size:20px;color:#374151;margin-bottom:12px}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;line-height:1.5;margin-bottom:32px;max-width:400px;margin-left:auto;margin-right:auto}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-features[_ngcontent-%COMP%]{display:flex;gap:24px;justify-content:center;flex-wrap:wrap}@media (max-width: 991.98px){.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-features[_ngcontent-%COMP%]{flex-direction:column;gap:16px}}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-features[_ngcontent-%COMP%] .feature-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;background-color:#f9fafb;border-radius:12px;min-width:120px}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-features[_ngcontent-%COMP%] .feature-item[_ngcontent-%COMP%] .feature-icon[_ngcontent-%COMP%]{font-size:24px}.card[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] .placeholder-features[_ngcontent-%COMP%] .feature-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{font-size:13px;font-weight:500;color:#6b7280}.card[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:8px 12px;text-align:left;vertical-align:middle;border-top:1px solid #F3F4F6}.card[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#6b7280;white-space:nowrap;border-top:none}.card[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#374151}.card[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{display:inline-block;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:132px}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;border:none;background:transparent;color:#6b7280;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#111827}.card[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:active{background:#e5e7eb}.card[_ngcontent-%COMP%] .icon-btn[disabled][_ngcontent-%COMP%]{opacity:.6;cursor:default}.card[_ngcontent-%COMP%] .icon-btn.danger[_ngcontent-%COMP%]{color:#dc2626}.card[_ngcontent-%COMP%] .status-cell[_ngcontent-%COMP%]{width:56px}.card[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;color:#6b7280;background:#f3f4f6}.card[_ngcontent-%COMP%] .status-icon.success[_ngcontent-%COMP%]{color:#16a34a;background:#ecfdf5}.card[_ngcontent-%COMP%] .status-icon.error[_ngcontent-%COMP%]{color:#dc2626;background:#fef2f2}.card[_ngcontent-%COMP%] .status-icon.processing[_ngcontent-%COMP%]{color:#2563eb;background:#eff6ff}.card[_ngcontent-%COMP%] .status-icon.unknown[_ngcontent-%COMP%]{color:#6b7280;background:#f3f4f6}"]});let n=e;return n})();function fi(n,e){n&1&&(a(0,"div",9),u(1,"dashboard-profile-tab"),s())}function mi(n,e){n&1&&(a(0,"div",9),u(1,"dashboard-chat-history-tab"),s())}function _i(n,e){n&1&&(a(0,"div",9),u(1,"dashboard-uploaded-files-tab"),s())}var Ht=(()=>{let e=class e{constructor(t){this.userService=t,this.activeTab="profile"}get user(){return this.userService.user}switchTab(t){this.activeTab=t}};e.\u0275fac=function(i){return new(i||e)(p(Q))},e.\u0275cmp=V({type:e,selectors:[["dashboard-user-info"]],decls:11,vars:11,consts:[[1,"wrapper"],[1,"container"],[1,"left-panel"],[1,"tab-navigation"],["translate","app.page.profile.title",1,"tab-button",3,"click"],["translate","app.page.chat_history.title",1,"tab-button",3,"click"],["translate","app.page.uploaded_files.title",1,"tab-button",3,"click"],[1,"right-panel"],["class","tab-content",4,"ngIf"],[1,"tab-content"]],template:function(i,r){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4),h("click",function(){return r.switchTab("profile")}),s(),a(5,"button",5),h("click",function(){return r.switchTab("chat-history")}),s(),a(6,"button",6),h("click",function(){return r.switchTab("uploaded-files")}),s()()(),a(7,"div",7),f(8,fi,2,0,"div",8)(9,mi,2,0,"div",8)(10,_i,2,0,"div",8),s()()()),i&2&&(O("loading",!r.user),l(4),O("active",r.activeTab==="profile"),l(),O("active",r.activeTab==="chat-history"),l(),O("active",r.activeTab==="uploaded-files"),l(2),d("ngIf",r.activeTab==="profile"),l(),d("ngIf",r.activeTab==="chat-history"),l(),d("ngIf",r.activeTab==="uploaded-files"))},dependencies:[A,U,Ut,Lt,Gt],styles:["@keyframes _ngcontent-%COMP%_fade-anim{0%{opacity:0}
1to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse-anim{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wrapper[_ngcontent-%COMP%]{flex:1;background-color:#faf9fc;padding:48px 0}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%]{padding:36px 0}}.wrapper.loading[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{pointer-events:none;-webkit-user-select:none;user-select:none;animation:1s _ngcontent-%COMP%_pulse-anim linear infinite}.wrapper.loading[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{border-color:transparent!important;background-color:#fafaff;border-radius:8px;color:transparent!important}.wrapper.loading[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:0}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{display:flex;gap:36px}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{flex-wrap:wrap}}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%]{flex:0 0 200px}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%]{flex-basis:100%;flex:none}}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .tab-navigation[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;border-radius:16px;padding:8px;box-shadow:#959da533 0 8px 24px;gap:4px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .tab-navigation[_ngcontent-%COMP%] .tab-button[_ngcontent-%COMP%]{background:none;border:none;padding:16px 20px;font-family:Poppins;font-weight:500;font-size:14px;color:#545d67;border-radius:12px;cursor:pointer;transition:all .2s ease;text-align:left;white-space:nowrap}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .tab-navigation[_ngcontent-%COMP%] .tab-button[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .tab-navigation[_ngcontent-%COMP%] .tab-button.active[_ngcontent-%COMP%]{background-color:#7c6cf8;color:#fff;font-weight:600}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .tab-navigation[_ngcontent-%COMP%] .tab-button[_ngcontent-%COMP%]{font-size:12px;padding:12px 16px}}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%]{flex:1}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%]{flex-basis:100%}}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:36px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%]{text-align:center;color:#5f6d7e;padding:24px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-style:italic}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:#fff;box-shadow:#959da533 0 8px 24px;border-radius:16px;padding:24px}@media (max-width: 991.98px){.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{padding:16px}}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{font-family:Poppins;font-weight:700;font-size:20px;line-height:1;color:#545d67}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%]{width:80px;height:80px;background-color:#f3f4f6;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid #e5e7eb;transition:all .2s ease}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%]:hover{border-color:#7c6cf8;background-color:#f9fafb}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-placeholder[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:40px;height:40px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;width:28px;height:28px;background-color:#7c6cf8;border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .2s ease;padding:0}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%]:hover{background-color:#513bf6;transform:scale(1.1)}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .avatar-section[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%] .avatar-edit-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;
1height:14px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .user-info-section[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-family:Poppins;font-weight:600;font-size:20px;color:#1f2937;margin-bottom:4px;line-height:1.2}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .user-info-section[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;font-weight:400}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .logout-section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-top:8px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card.profile-card[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .logout-section[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{padding:8px 20px;font-size:13px;min-width:100px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:100%;border:1px solid #DAE0E6;border-radius:5px;font-size:14px;height:40px;padding:10px 16px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:1px solid #7C6CF8}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#5f6d7e}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .logout-btn[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .logout-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:100px}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{display:flex}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.wrapper[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{font-weight:700;border-top-left-radius:0;border-bottom-left-radius:0}"]});let n=e;return n})();function Ci(n,e){n&1&&(a(0,"chatize-page")(1,"div",1),u(2,"dashboard-user-info")(3,"shared-plans"),s()())}var Rt=(()=>{let e=class e extends it{constructor(t,i){super(t),this.userService=i,this.isBrowser&&(this.userService.getUser(),this.userService.listInvoices(),this.userService.listPlans().subscribe())}};e.\u0275fac=function(i){return new(i||e)(p(Se),p(Q))},e.\u0275cmp=V({type:e,selectors:[["ng-component"]],features:[I],decls:1,vars:1,consts:[[4,"ngIf"],[1,"wrapper"]],template:function(i,r){i&1&&f(0,Ci,4,0,"chatize-page",0),i&2&&d("ngIf",r.isBrowser)},dependencies:[A,tt,st,Ht],styles:[".wrapper[_ngcontent-%COMP%]{flex:1}"]});let n=e;return n})();var yr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({imports:[Je,rt.forRoot(),Ft,kt,Qe.forChild([{path:"",component:Rt}]),nt,ot,lt]});let n=e;return n})();export{yr as DashboardModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.