PageSourceSearch

https://app.fylehq.com/app/chunk-74AKRU67.js

js fylehq.com collected 2026-09-24 09:17:52 UTC 45,921 bytes, 8 lines download raw bytes

1import{a as lt,b as ct}from"./chunk-SAH2U4UU.js";import{b as st}from"./chunk-QP2ZQDKH.js";import{a as j}from"./chunk-WKZMUNB6.js";import{a as at}from"./chunk-C6NQCHSD.js";import{a as rt}from"./chunk-ZZGTE2HR.js";import"./chunk-LOLEDFTI.js";import"./chunk-36AOFBP3.js";import{a as Ae}from"./chunk-HZ6OFQFZ.js";import{a as Pe}from"./chunk-RQUDP6MO.js";import"./chunk-UVTPWGAU.js";import"./chunk-KDX2CJI5.js";import{a as nt}from"./chunk-3RL577BW.js";import"./chunk-QACI4GAG.js";import"./chunk-OGTIZ5XW.js";import"./chunk-MCTJ2GLA.js";import{a as Z}from"./chunk-6PWIY4MT.js";import"./chunk-Y5JZEXHH.js";import{a as be}from"./chunk-PBQAI6PT.js";import"./chunk-IC4QIEG6.js";import"./chunk-KNXSWGR2.js";import{b as et,c as tt,e as it}from"./chunk-BMBH2266.js";import{a as Me}from"./chunk-Q4BB4ZY2.js";import"./chunk-R3FQUAW3.js";import"./chunk-RQJM5YXQ.js";import{a as $}from"./chunk-2FJVMB6B.js";import{a as ot}from"./chunk-CXDRHDQS.js";import"./chunk-3QFKLBJH.js";import"./chunk-TIBQBFJA.js";import"./chunk-WGY5R6UM.js";import{a as De}from"./chunk-KEPK3WJZ.js";import"./chunk-AU6BFOYX.js";import"./chunk-3M75U6ED.js";import"./chunk-J4NKYDUO.js";import"./chunk-7CG6YTEJ.js";import"./chunk-5TJOF536.js";import{a as R}from"./chunk-K5JPTH2W.js";import"./chunk-KRM6RWLK.js";import{b as Xe}from"./chunk-VOFNQY3P.js";import{e as U}from"./chunk-ODENK2RA.js";import{b as we,c as xe,d as Ee,e as Te,h as ee}from"./chunk-MID3ZZXO.js";import"./chunk-PJAAIMNK.js";import"./chunk-6UILVNEF.js";import"./chunk-J2737D6V.js";import{a as X}from"./chunk-JJ7S5BBI.js";import"./chunk-FYFF4OYG.js";import{Ae as Ze,B as me,Bd as Se,Cc as C,Dc as ue,Ec as Ke,Fe as Je,Id as We,Ke as _e,Nd as he,Ne as J,V as A,ae as P,be as T,ce as M,ee as Qe,ja as Ye,l as pe,ld as Ge,ma as ge,nd as Q,qd as ye,wd as Ce,yc as ve,zc as fe}from"./chunk-U3FRP2OH.js";import"./chunk-MT6FXMKE.js";import{$b as S,Aa as k,Ab as x,Ba as z,Ec as Be,F as re,Fc as Le,Gc as Ne,Hb as E,Ia as Fe,K as ae,Lc as v,Ma as y,Mc as u,Nb as se,Nc as oe,O as I,S as ze,Y as H,Yc as Ve,Zc as Ue,bc as h,bd as $e,cc as le,cd as ce,dc as Re,dd as je,ec as q,f as N,fa as V,fc as Y,ga as b,gc as c,hc as a,ia as L,ic as r,j as D,jc as m,kd as s,ld as l,md as He,pa as Oe,pd as de,qc as F,rb as n,s as ne,ua as p,uc as _,ud as O,wc as f,yd as ke,z as B,zd as qe}from"./chunk-5VQKZTJF.js";import{a as G,b as W}from"./chunk-OKNOHCUX.js";function Ct(t,g){t&1&&(a(0,"div",8),v(1),s(2,"transloco"),r()),t&2&&(n(),u(l(2,1,"editTimezoneDialog.errorRequiredTimezone")))}var dt=(()=>{class t{dialogRef;dialogConfig;employeeSettingsService;timezoneService;utilityService;translocoService;timezoneOptions;modalSize=ue;timezoneControl;primaryAction=y(null);secondaryAction=y(null);constructor(e,i,o,d,w,ie){this.dialogRef=e,this.dialogConfig=i,this.employeeSettingsService=o,this.timezoneService=d,this.utilityService=w,this.translocoService=ie}close(e,i){this.dialogRef.close({type:e,payload:i})}save(){return this.timezoneControl.invalid?D:this.updateTimezone().pipe(B(()=>{this.close(C.SUCCESS,!0)}),I(e=>(this.close(C.ERROR,e),D)))}getAvailableTimezones(){this.timezoneOptions=this.timezoneService.getTimezones().map(e=>W(G({},e),{timezone:this.utilityService.convertSnakeCaseToSpaceCase(e.timezone)}))}updateTimezone(){let e=this.timezoneControl.value,i=W(G({},this.dialogConfig.data.employeeSettings),{locale:W(G({},e),{timezone:this.utilityService.convertSpaceCaseToSnakeCase(e.timezone)})});return this.employeeSettingsService.post(i)}ngOnInit(){this.getAvailableTimezones(),this.timezoneControl=new Ce(this.dialogConfig.data.employeeSettings.locale,[Q.required]),this.primaryAction.set({label:this.translocoService.translate("editTimezoneDialog.saveButtonLabel"),type:A.PRIMARY,loadingText:this.translocoService.translate("editTimezoneDialog.savingButtonLabel"),callbackMethod:()=>this.save()}),this.secondaryAction.set({label:this.translocoService.translate("editTimezoneDialog.cancelButtonLabel"),type:A.OUTLINE_SECONDARY,callbackMethod:()=>this.close(C.CANCEL)})}static \u0275fac=function(i){return new(i||t)(x(fe),x(ve),x(Z),x(nt),x(_e),x(P))};static \u0275cmp=E({type:t,selectors:[["feature-edit-timezone-dialog"]],decls:14,vars:20,consts:[[3,"size"],[3,"closeModal","title"],[1,"dialog-content"],[1,"input-section"],[1,"label-container"],[3,"label","isMandatory"],[3,"size","showSearch","placeholder","formControl","options","optionLabel","searchByKeys"],[1,"error-container"],[1,"error"],[3,"primaryAction","secondaryAction"]],template:function(i,o){i&1&&(a(0,"ui-modal",0)(1,"ui-modal-header",1),s(2,"transloco"),_("closeModal",function(){return o.close()}),r(),a(3,"div",2)(4,"ui-modal-content")(5,"div",3)(6,"div",4),m(7,"ui-input-label",5),s(8,"transloco"),r(),m(9,"ui-select",6),s(10,"transloco"),a(11,"div",7),S(12,Ct,3,3,"div",8),r()()()(),m(13,"ui-modal-actions",9),r()),i&2&&(c("size",o.modalSize.SMALL),n(),c("title",l(2,14,"editTimezoneDialog.title")),n(6),c("label",l(8,16,"editTimezoneDialog.timezoneLabel"))("isMandatory",!0),n(2),c("size","large")("showSearch",!0)("placeholder",l(10,18,"editTimezoneDialog.timezonePlaceholder"))("formControl",o.timezoneControl)("options",o.timezoneOptions)("optionLabel","timezone")("searchByKeys","timezone"),n(3),h(o.timezoneControl.touched&&(o.timezoneControl.errors!=null&&o.timezoneControl.errors.required)?12:-1),n(),c("primaryAction",o.primaryAction())("secondaryAction",o.secondaryAction()))},dependencies:[he,ye,Se,Ee,ot,we,Te,Ae,xe,M,T],styles:[`@layer properties;.dialog-content[_ngcontent-%COMP%]{max-height:408px;overflow:auto;padding-inline:var(--tw-padding-spacing-24, var(--size-24));padding-block:var(--tw-padding-spacing-16, var(--size-16))}.label-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;--tw-leading: var(--tw-leading-1\\.3, 1.3);line-height:var(--tw-leading-1\\.3, 1.3);color:var(--tw-color-text-label, var(--text-label))}@property --tw-leading{syntax: "*"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ng
1content-%COMP%]::backdrop{--tw-leading: initial}}}
2`]})}return t})();var St=()=>[1,2,3];function ht(t,g){if(t&1){let e=F();a(0,"ui-feature-toggle-card",4),_("toggleClicked",function(o){k(e);let d=f().$implicit,w=f(2);return z(w.savePreferences(d.key,o,d.trackingName))}),r()}if(t&2){let e=f().$implicit;c("title",e.title)("description",e.description)("toggleState",e.enabled())("redirectUrl",e.redirectUrl)}}function _t(t,g){if(t&1&&S(0,ht,1,4,"ui-feature-toggle-card",3),t&2){let e=g.$implicit;h(e.allowed()?0:-1)}}function bt(t,g){if(t&1&&(m(0,"ui-section-card",1),s(1,"transloco"),a(2,"div",2),q(3,_t,1,1,null,null,le),r()),t&2){let e=f();c("cardTitle",l(1,1,"section.cardTitleFeatures")),n(3),Y(e.featuresConfig)}}function wt(t,g){t&1&&(a(0,"div",5)(1,"div",6),m(2,"ui-shimmers",7)(3,"ui-shimmers",8),r(),m(4,"ui-shimmers",9),r()),t&2&&(n(2),c("height",18)("width",150),n(),c("height",18),n(),c("height",18)("width",40))}function xt(t,g){t&1&&(a(0,"div",0),q(1,wt,5,5,"div",5,Re),r()),t&2&&(n(),Y($e(0,St)))}var pt=(()=>{class t{employeeSettingsService;orgSettingsService;targetConfigService;toastMessageService;trackingService;translocoService;orgSettings=y(null);employeeSettings=y(null);targetConfig;isExpenseFormsAutofillsAllowed=O(()=>this.orgSettings()?.org_expense_form_autofills.allowed&&this.orgSettings()?.org_expense_form_autofills.enabled&&this.employeeSettings()?.expense_form_autofills?.allowed);featuresConfig;componentDestroyed$=new N;constructor(e,i,o,d,w,ie){this.employeeSettingsService=e,this.orgSettingsService=i,this.targetConfigService=o,this.toastMessageService=d,this.trackingService=w,this.translocoService=ie}savePreferences(e,i,o){let d=this.employeeSettings();switch(e){case"insta_fyle_settings":d.insta_fyle_settings.enabled=i;break;case"expense_form_autofills":d.expense_form_autofills.enabled=i;break;case"data_extractor_settings":d.data_extractor_settings.enabled=i;break;default:break}this.employeeSettingsService.post(d).pipe(L(w=>{this.trackingService.eventTrack("User Preferences",{Action_Performed:`${o} settings set to ${i}`}),this.toastMessageService.showSuccessToast(this.translocoService.translate("section.toastSuccessChangesSaved")),this.employeeSettings.set(w)}),I(w=>(this.toastMessageService.showErrorToast(this.translocoService.translate("section.toastErrorGeneric")),D))).subscribe()}ngOnInit(){this.targetConfig=this.targetConfigService.getTargetConfig(),this.featuresConfig=[{key:"insta_fyle_settings",trackingName:"InstaFyle",title:this.translocoService.translate("section.featureInstaFyleCardTitle"),description:this.translocoService.translate("section.featureInstaFyleCardDescription",{brandName:this.targetConfig.BRAND_NAME}),redirectUrl:`${this.targetConfig.HELP_ARTICLES_DOMAIN}/en/articles/1245853-scan-paper-receipts-on-your-smartphone`,enabled:O(()=>!!this.employeeSettings()?.insta_fyle_settings.enabled),allowed:O(()=>!!this.employeeSettings()?.insta_fyle_settings.allowed)},{key:"data_extractor_settings",trackingName:"WebImageExtraction",title:this.translocoService.translate("section.featureWebExtractionCardTitle"),description:this.translocoService.translate("section.featureWebExtractionCardDescription"),enabled:O(()=>!!this.employeeSettings()?.data_extractor_settings.enabled),allowed:O(()=>!!this.employeeSettings()?.data_extractor_settings.allowed)},{key:"expense_form_autofills",trackingName:"AutoFill",title:this.translocoService.translate("section.featureAutoFillCardTitle"),description:this.translocoService.translate("section.featureAutoFillCardDescription"),enabled:O(()=>!!this.employeeSettings()?.expense_form_autofills?.enabled),allowed:O(()=>!!this.isExpenseFormsAutofillsAllowed())}],re([this.orgSettingsService.get(),this.employeeSettingsService.get()]).pipe(b(this.componentDestroyed$)).subscribe(([e,i])=>{this.orgSettings.set(e),this.employeeSettings.set(i)})}static \u0275fac=function(i){return new(i||t)(x(Z),x(be),x(R),x($),x(U),x(P))};static \u0275cmp=E({type:t,selectors:[["feature-section"]],decls:2,vars:1,consts:[[1,"tw:flex","tw:flex-col","tw:p-spacing-20"],[3,"cardTitle"],[1,"feature-items"],[3,"title","description","toggleState","redirectUrl"],[3,"toggleClicked","title","description","toggleState","redirectUrl"],[1,"tw:flex","tw:mb-spacing-16"],[1,"tw:w-full","tw:mr-spacing-6"],[3,"height","width"],[3,"height"],[1,"tw:ml-spacing-16",3,"height","width"]],template:function(i,o){i&1&&S(0,bt,5,3)(1,xt,3,1,"div",0),i&2&&h(o.orgSettings()&&o.employeeSettings()?0:1)},dependencies:[j,st,De,M,T],styles:[`@layer properties;.feature-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--tw-color-border-tertiary, var(--border-tertiary));padding:var(--tw-padding-spacing-24, var(--size-24))}.feature-items[_ngcontent-%COMP%] > ui-feature-toggle-card[_ngcontent-%COMP%]:not(:last-child):after{margin-block:var(--tw-margin-spacing-20, var(--size-20));
2display:block;border-top-style:var(--tw-border-style);border-top-width:var(--tw-border-width-border-1, 1px);--tw-border-style: solid;border-style:solid;border-color:transparent;border-top-color:var(--tw-color-border-disable, var(--border-disable));content:""}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]::backdrop{--tw-border-style: solid}}}
3`]})}return t})();var Tt=(t,g)=>({"tw:bg-bg-success":t,"tw:bg-bg-danger":g}),Mt=t=>({brandName:t});function Dt(t,g){if(t&1&&(a(0,"div",8)(1,"span"),v(2),s(3,"transloco"),r()()),t&2){let e,i=f();n(2),u(He(3,1,"emailVerificationStatusCard.checkInboxMessage",ce(4,Mt,(e=i.targetConfig())==null?null:e.BRAND_NAME)))}}var mt=(()=>{class t{email;isVerified;deleteEmail=new Fe;targetConfig=y({});targetAppConfigService=p(R);ngOnInit(){this.targetConfig.set(this.targetAppConfigService.getTargetConfig())}onDeleteEmail(){this.deleteEmail.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ui-email-verification-status-card"]],inputs:{email:"email",isVerified:"isVerified"},outputs:{deleteEmail:"deleteEmail"},decls:20,vars:23,consts:[[1,"tw:flex","tw:flex-row","tw:items-center","tw:w-full"],[1,"content-column","email-column"],[1,"card-title"],[1,"card-description",3,"text","trimLength"],[1,"content-column",3,"ngClass"],[1,"tw:flex","tw:flex-row","tw:w-full"],[1,"verification-status-marker",3,"ngClass"],[1,"card-description"],[1,"verification-msg"],[1,"icon-container",3,"click","fdlTooltip","tooltipDirection"],[1,"icon",3,"containerClasses","icon"]],template:function(i,o){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),v(3),s(4,"transloco"),r(),m(5,"ui-text-truncate",3),r(),a(6,"div",4)(7,"div",2),v(8),s(9,"transloco"),r(),a(10,"div",5),m(11,"div",6),a(12,"div")(13,"div",7),v(14),s(15,"transloco"),r(),S(16,Dt,4,6,"div",8),r()()(),a(17,"div",9),s(18,"transloco"),_("click",function(){return o.onDeleteEmail()}),m(19,"ui-svg-sprite",10),r()()),i&2&&(n(3),u(l(4,12,"emailVerificationStatusCard.emailLabel")),n(2),c("text",o.email)("trimLength",25),n(),c("ngClass","tw:w-full"),n(2),u(l(9,14,"emailVerificationStatusCard.statusLabel")),n(3),c("ngClass",je(20,Tt,o.isVerified,!o.isVerified)),n(3),u(l(15,16,o.isVerified?"emailVerificationStatusCard.verifiedStatus":"emailVerificationStatusCard.notVerifiedStatus")),n(2),h(o.isVerified?-1:16),n(),c("fdlTooltip",l(18,18,"emailVerificationStatusCard.removeEmailTooltip"))("tooltipDirection","top"),n(2),c("containerClasses","tw:w-20-px tw:h-20-px")("icon","bin"))},dependencies:[me,pe,Pe,X,J,M,T],styles:[`.card-title[_ngcontent-%COMP%]{margin-top:calc(var(--tw-spacing, .25rem) * 0);margin-bottom:var(--tw-margin-spacing-4, var(--size-4));font-size:var(--tw-text-size-14, var(--size-14));color:var(--tw-color-text-label, var(--text-label))}.card-description[_ngcontent-%COMP%]{margin-top:calc(var(--tw-spacing, .25rem) * 0);font-size:var(--tw-text-size-14, var(--size-14));color:var(--tw-color-text-secondary, var(--text-secondary))}.verification-status-marker[_ngcontent-%COMP%]{margin-top:var(--tw-margin-spacing-4, var(--size-4));margin-right:var(--tw-margin-spacing-6, var(--size-6));height:var(--tw-height-8-px, var(--size-8));width:var(--tw-width-8-px, var(--size-8));border-radius:var(--tw-radius-border-radius-full, 50%);padding-top:var(--tw-padding-spacing-2, var(--size-2));padding-right:var(--tw-padding-spacing-6, var(--size-6))}.icon-container[_ngcontent-%COMP%]{margin-left:var(--tw-margin-spacing-20, var(--size-20));cursor:pointer;border-radius:var(--tw-radius-border-radius-2xs, .25rem);padding:var(--tw-padding-spacing-6, var(--size-6))}.icon-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{fill:var(--tw-color-icon-tertiary, var(--icon-tertiary))}.icon-container[_ngcontent-%COMP%]:hover{background-color:var(--tw-color-bg-danger-light, var(--bg-danger-light))}.icon-container[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{fill:var
3(--tw-color-icon-danger, var(--icon-danger))}.content-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.email-column[_ngcontent-%COMP%]{margin-right:var(--tw-margin-spacing-64, 4rem);min-width:232px;place-self:start}.verification-msg[_ngcontent-%COMP%]{font-size:var(--tw-text-size-12, var(--size-12));color:var(--tw-color-text-label, var(--text-label))}
4`]})}return t})();var Ie=(()=>{class t{platformApiService=p(Qe);getAll(){return this.platformApiService.get("/spender/secondary_emails").pipe(B(e=>e.data))}check(e){let i={data:{email:e}};return this.platformApiService.post("/spender/secondary_emails/check",i)}post(e){let i={data:{email:e}};return this.platformApiService.post("/spender/secondary_emails",i).pipe(B(o=>o.data))}delete(e){return this.platformApiService.post("/spender/secondary_emails/delete",{data:{id:e}})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Oe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function At(t,g){t&1&&(a(0,"div",8),v(1),s(2,"transloco"),r()),t&2&&(n(),u(l(2,1,"addSecondaryEmailDialog.errorRequiredEmail")))}function Pt(t,g){t&1&&(a(0,"div",8),v(1),s(2,"transloco"),r()),t&2&&(n(),u(l(2,1,"addSecondaryEmailDialog.errorInvalidEmail")))}function It(t,g){t&1&&(a(0,"div",8),v(1),s(2,"transloco"),r()),t&2&&(n(),u(l(2,1,"addSecondaryEmailDialog.errorDuplicateEmail")))}function kt(t,g){t&1&&(a(0,"div",8),v(1),s(2,"transloco"),r()),t&2&&(n(),u(l(2,1,"addSecondaryEmailDialog.errorFyleAccountExists")))}var gt=(()=>{class t{existingEmails;buttonType=A;modalSize=ue;isLoading=y(!1);emailControl;primaryAction;secondaryAction;dialogRef=p(fe);dialogConfig=p(ve);secondaryEmailService=p(Ie);translocoService=p(P);checkDuplicateEmail(){this.existingEmails.find(i=>i.email===this.emailControl.value)&&this.emailControl.setErrors({duplicate:!0})}checkEmail(){this.emailControl.invalid||(this.isLoading.set(!0),this.secondaryEmailService.check(this.emailControl.value).pipe(H(()=>this.isLoading.set(!1))).subscribe({error:e=>{e.status===409&&this.emailControl.setErrors({emailExists:!0})}}))}close(e,i){this.dialogRef.close({type:e,payload:i})}save(){this.emailControl.invalid||(this.isLoading.set(!0),this.postEmail().pipe(H(()=>this.isLoading.set(!1))).subscribe({next:()=>{this.close(C.SUCCESS,!0)},error:e=>{this.close(C.ERROR,e)}}))}postEmail(){return this.secondaryEmailService.post(this.emailControl.value)}ngOnInit(){this.primaryAction={label:this.translocoService.translate("addSecondaryEmailDialog.saveButtonLabel"),type:A.PRIMARY,callbackMethod:()=>this.save(),loading:this.isLoading(),loadingText:this.translocoService.translate("addSecondaryEmailDialog.savingButtonLabel")},this.secondaryAction={label:this.translocoService.translate("addSecondaryEmailDialog.cancelButtonLabel"),type:A.OUTLINE_SECONDARY,callbackMethod:()=>this.close(C.CANCEL),disabled:this.isLoading()},this.emailControl=new Ce,this.emailControl.setValidators([Q.required,Q.email,Q.pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$")]),this.existingEmails=this.dialogConfig.data.existingEmails,this.emailControl.valueChanges.pipe(ze(300)).subscribe(()=>{this.checkDuplicateEmail(),!this.emailControl.invalid&&this.checkEmail()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["feature-add-secondary-email-dialog"]],decls:16,vars:16,consts:[[3,"size"],[3,"closeModal","title"],[1,"tw:grow"],[1,"input-section"],[1,"label-container"],[3,"label","isMandatory"],["type","text","required","",1,"input-text",3,"placeholder","formControl"],[1,"error-container"],[1,"error"],[3,"primaryAction","secondaryAction"]],template:function(i,o){i&1&&(a(0,"ui-modal",0)(1,"ui-modal-header",1),s(2,"transloco"),_("closeModal",function(){return o.close()}),r(),a(3,"ui-modal-content",2)(4,"div",3)(5,"div",4),m(6,"ui-input-label",5),s(7,"transloco"),r(),m(8,"input",6),s(9,"transloco"),a(10,"div",7),S(11,At,3,3,"div",8)(12,Pt,3,3,"div",8)(13,It,3,3,"div",8)(14,kt,3,3,"div",8),r()()(),m(15,"ui-modal-actions",9),r()),i&2&&(c("size",o.modalSize.SMALL),n(),c("title",l(2,10,"addSecondaryEmailDialog.title")),n(5),c("label",l(7,12,"addSecondaryEmailDialog.emailLabel"))("isMandatory",!0),n(2),c("placeholder",Ve(l(9,14,"addSecondaryEmailDialog.emailPlaceholder")))("formControl",o.emailControl),n(3),h(o.emailControl.touched&&(o.emailControl.errors!=null&&o.emailControl.errors.required)?11:o.emailControl.touched&&(!(o.emailControl==null||o.emailControl.errors==null)&&o.emailControl.errors.email||!(o.emailControl==null||o.emailControl.errors==null)&&o.emailControl.errors.pattern)?12:o.emailControl.touched&&(!(o.emailControl==null||o.emailControl.errors==null)&&o.emailControl.errors.duplicate)?13:o.emailControl.touched&&(!(o.emailControl==null||o.emailControl.errors==null)&&o.emailControl.errors.emailExists)?14:-1),n(4),c("primaryAction",o.primaryAction)("secondaryAction",o.secondaryAction))},dependencies:[he,Ge,ye,We,Se,Ee,we,Te,Ae,xe,M,T],styles:[`@layer properties;.dialog-content[_ngcontent-%COMP%]{max-height:408px;overflow:auto;padding-inline:var(--tw-padding-spacing-24, var(--size-24))}.input-text[_ngcontent-%COMP%]{width:100%;padding-block:var(--tw-padding-spacing-10, var(--size-10));padding-left:var(--tw-padding-spacing-14, var(--size-14));color:var(--tw-color-text-primary, var(--text-primary))}.label-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;--tw-leading: var(--tw-leading-1\\.3, 1.3);line-height:var(--tw-leading-1\\.3, 1.3);color:var(--tw-color-text-label, var(--text-label))}@property --tw-leading{syntax: "*"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ng
4content-%COMP%]::backdrop{--tw-leading: initial}}}
5`]})}return t})();var zt=["deleteSecondaryEmailAlertContent"];function Ot(t,g){if(t&1&&(m(0,"ui-alert",5),s(1,"transloco")),t&2){let e=f(3);c("type",e.alertTypes.ERROR)("message",l(1,2,"secondaryInboxes.alertMessageMaxEmailsReached"))}}function Ft(t,g){t&1&&m(0,"div",7)}function Rt(t,g){if(t&1){let e=F();a(0,"ui-email-verification-status-card",6),_("deleteEmail",function(){let o=k(e).$implicit,d=f(3);return z(d.openDeleteSecondaryEmailDialog(o))}),r(),S(1,Ft,1,0,"div",7)}if(t&2){let e=g.$implicit,i=g.$index,o=f(3);c("email",e.email)("isVerified",e.is_verified),n(),h(i!==o.secondaryEmails().length-1?1:-1)}}function Bt(t,g){if(t&1&&(a(0,"div",4),S(1,Ot,2,4,"ui-alert",5),q(2,Rt,2,3,null,null,le),r()),t&2){let e=f(2);n(),h(e.secondaryEmails().length===10?1:-1),n(),Y(e.secondaryEmails())}}function Lt(t,g){if(t&1){let e=F();a(0,"ui-section-card",3),s(1,"transloco"),s(2,"transloco"),s(3,"transloco"),_("btnClicked",function(){k(e);let o=f();return z(o.openAddSecondaryEmailDialog())}),r(),S(4,Bt,4,1,"div",4)}if(t&2){let e=f();c("cardTitle",l(1,7,"secondaryInboxes.cardTitle"))("descriptionHtml",e.descriptionHtml)("redirectUrl",e.redirectUrl)("btnText",l(2,9,"secondaryInboxes.buttonTextAddEmail"))("btnIconName","plus-square")("btnDisabledMessage",e.secondaryEmails().length===10&&l(3,11,"secondaryInboxes.disabledMessageCannotAddMoreEmails")),n(4),h(e.secondaryEmails().length>0?4:-1)}}function Nt(t,g){t&1&&(a(0,"div",2)(1,"div",8),m(2,"ui-shimmers",9)(3,"ui-shimmers",10),r(),a(4,"div",11),m(5,"ui-shimmers",9),r()()),t&2&&(n(2),c("height",18)("width",100),n(),c("height",18),n(2),c("height",36)("width",100))}function Vt(t,g){if(t&1&&(a(0,"div",12)(1,"div",13),v(2),s(3,"transloco"),a(4,"span",14),v(5),r(),v(6),s(7,"transloco"),r(),a(8,"div",15),v(9),s(10,"transloco"),r()()),t&2){let e,i=f();n(2),oe(" ",l(3,4,"secondaryInboxes.deleteConfirmationTextPrefix")," "),n(3),u((e=i.secondaryEmailToDelete())==null?null:e.email),n(),oe(" ",l(7,6,"secondaryInboxes.deleteConfirmationTextSuffix")," "),n(3),u(l(10,8,"secondaryInboxes.deleteConfirmationPrompt"))}}var vt=(()=>{class t{deleteSecondaryEmailAlertContent=qe("deleteSecondaryEmailAlertContent");redirectUrl;descriptionHtml;targetConfig;secondaryEmails=y([]);secondaryEmailToDelete=y(null);isLoaded=y(!1);alertTypes=ge;translocoService=p(P);componentDestroyed$=new N;secondaryEmailService=p(Ie);toastMessageService=p($);targetConfigService=p(R);dialogService=p(ee);trackingService=p(U);openAddSecondaryEmailDialog(){this.dialogService.open(gt,{data:{existingEmails:this.secondaryEmails()}}).onClose.pipe(b(this.componentDestroyed$),ae(i=>i),B(({type:i})=>{if(i===C.SUCCESS){let o=this.translocoService.translate("secondaryInboxes.emailAddedSuccessMessage");this.toastMessageService.showSuccessToast(o),this.trackingService.eventTrack("User Preferences",{Action_Performed:o})}else i===C.ERROR&&this.toastMessageService.showErrorToast(this.translocoService.translate("secondaryInboxes.genericErrorMessage"));return this.secondaryEmailService.getAll()}),V(i=>i.pipe(b(this.componentDestroyed$),L(o=>{this.secondaryEmails.set(o)}))),I(i=>(this.toastMessageService.showErrorToast(this.translocoService.translate("secondaryInboxes.genericErrorMessage")),D))).subscribe()}deleteSecondaryEmail(e,i){return this.secondaryEmailService.delete(e).pipe(B(()=>{let o=this.translocoService.translate("secondaryInboxes.emailDeletedSuccessMessage");return this.toastMessageService.showSuccessToast(o),this.trackingService.eventTrack("User Preferences",{Action_Performed:o}),this.secondaryEmailService.getAll()}),V(o=>o.pipe(B(d=>{this.secondaryEmails.set(d)}))),I(o=>(this.toastMessageService.showErrorToast(this.translocoService.translate("secondaryInboxes.genericErrorMessage")),D)),H(()=>i.close()))}openDeleteSecondaryEmailDialog(e){this.trackingService.eventTrack("User Preferences",{Action_Performed:"Delete Secondary Email Dialog Opened"}),this.secondaryEmailToDelete.set(e);let i=this.dialogService.openConfirmationModal({header:{title:this.translocoService.translate("secondaryInboxes.dialogTitleRemoveSecondaryEmail"),type:Ke.DANGER},content:this.deleteSecondaryEmailAlertContent(),actions:{primaryAction:{label:this.translocoService.translate("secondaryInboxes.dialogButtonRemove"),type:A.PRIMARY,loadingText:this.translocoService.translate("secondaryInboxes.dialogButtonRemoving"),callbackMethod:()=>this.deleteSecondaryEmail(e.id,i)},secondaryAction:{label:this.translocoService.translate("secondaryInboxes.dialogButtonCancel"),type:A.OUTLINE_SECONDARY,callbackMethod:()=>i.close()}}});i.onClose.pipe(b(this.componentDestroyed$)).subscribe(()=>this.secondaryEmailToDelete.set(null))}ngOnInit(){this.targetConfig=this.targetConfigService.getTargetConfig(),this.secondaryEmailService.getAll().pipe(b(this.componentDestroyed$)).subscribe(e=>{this.isLoaded.set(!0),this.secondaryEmails.set(e)}),this.descriptionHtml=this.translocoService.translate("secondaryInboxes.sectionDescriptionHtml"),this.redirectUrl=`${this.targetConfig?.HELP_ARTICLES_DOMAIN}/fyle-for-spenders/fyle-your-expenses/forward-your-e-receipts-from-secondary-personal-email-ids`}ngOnDestroy(){this.componentDestroyed$.next(),this.componentDestroyed$.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["feature-secondary-inboxes"]],viewQuery:function(i,o){i&1&&Be(o.deleteSecondaryEmailAlertContent,zt,5),i&2&&Le()},decls:5,vars:1,consts:[["deleteSecondaryEmailAlertContent",""],["data-testid","secondary-inboxes-section"],[1,"tw:flex","tw:p-spacing-20","tw:items-center"],[3,"btnClicked","cardTitle","descriptionHtml","redirectUrl","btnText","btnIconName","btnDisabledMessage"],[1,"secondary-email-items"],[3,"type","message"],["data-testid","email-verification-status-card",3,"deleteEmail","email","isVerified"],[1,"divi
5der"],[1,"tw:flex","tw:flex-col","tw:w-full"],[3,"height","width"],[3,"height"],[1,"tw:ml-spacing-16"],[1,"content"],[1,"tw:mb-spacing-16"],[1,"tw:font-500","tw:inline-block"],[1,"confirmation-text"]],template:function(i,o){i&1&&(a(0,"div",1),S(1,Lt,5,13)(2,Nt,6,5,"div",2),se(3,Vt,11,10,"ng-template",null,0,de),r()),i&2&&(n(),h(o.isLoaded()?1:2))},dependencies:[mt,j,De,Me,M,T],styles:[`@layer properties;.secondary-email-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--tw-gap-spacing-20, var(--size-20));border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--tw-color-border-tertiary, var(--border-tertiary));padding:var(--tw-padding-spacing-24, var(--size-24))}.divider[_ngcontent-%COMP%]{border-top-style:var(--tw-border-style);border-top-width:var(--tw-border-width-border-1, 1px);--tw-border-style: solid;border-style:solid;border-color:var(--tw-color-border-disable, var(--border-disable))}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--tw-color-text-primary, var(--text-primary))}.content[_ngcontent-%COMP%]   .confirmation-text[_ngcontent-%COMP%]{color:var(--tw-color-text-secondary, var(--text-secondary))}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]::backdrop{--tw-border-style: solid}}}
6`]})}return t})();var Ut=t=>({"card-body":t}),$t=(t,g)=>g.user_id;function jt(t,g){if(t&1){let e=F();a(0,"div",2)(1,"ui-alert",4),_("dismiss",function(){k(e);let o=f(2);return z(o.dismissAlert())}),r()()}if(t&2){let e=f(2);n(),c("type",e.alertTypes.INFORMATION)("dismissible",!0)("message",e.alertMessage)}}function Ht(t,g){if(t&1){let e=F();a(0,"div",3)(1,"div",5)(2,"div",6)(3,"div",7)(4,"span",8),v(5),s(6,"transloco"),r(),m(7,"ui-text-truncate",9),r(),a(8,"div",10)(9,"span",8),v(10),s(11,"transloco"),r(),a(12,"span",11),v(13),r()(),a(14,"div",12)(15,"span",8),v(16),s(17,"transloco"),r(),a(18,"span",13),v(19),s(20,"transloco"),r()(),a(21,"div",14)(22,"span",8),v(23),s(24,"transloco"),r(),a(25,"span",13),v(26),s(27,"transloco"),s(28,"transloco"),r()()(),a(29,"div",15)(30,"div",16),s(31,"transloco"),_("click",function(){let o=k(e).$implicit,d=f(2);return z(d.openAddEditDelegateeDialog(o))}),m(32,"ui-svg-sprite",17),r(),a(33,"div",18),s(34,"transloco"),_("click",function(){let o=k(e).$implicit,d=f(2);return z(d.openDeleteDelegateeDialog(o))}),m(35,"ui-svg-sprite",19),r()()()()}if(t&2){let e=g.$implicit,i=g.$index;c("ngClass",ce(37,Ut,i)),n(5),u(l(6,19,"accessDelegation.delegateeNameLabel")),n(2),c("text",e.full_name)("trimLength",20)("styleClass","tw:text-errie-black"),n(3),u(l(11,21,"accessDelegation.emailLabel")),n(3),u(e.email),n(3),u(l(17,23,"accessDelegation.accessTypeLabel")),n(3),u(l(20,25,e.accessTypeTranslationKey)),n(4),u(l(24,27,"accessDelegation.periodLabel")),n(3),u(e.end_at?l(27,29,"accessDelegation.temporaryAccessTypeLabel"):l(28,31,"accessDelegation.permanentAccessTypeLabel")),n(4),c("fdlTooltip",l(31,33,"accessDelegation.tooltipEdit"))("tooltipDirection","top"),n(2),c("containerClasses","tw:w-20-px tw:h-20-px")("icon","edit"),n(),c("fdlTooltip",l(34,35,"accessDelegation.tooltipDelete"))("tooltipDirection","top"),n(2),c("containerClasses","tw:w-20-px tw:h-20-px")("icon","bin")}}function qt(t,g){if(t&1&&(a(0,"div",1),S(1,jt,2,3,"div",2),q(2,Ht,36,39,"div",3,$t),r()),t&2){let e=f();n(),h(e.showAlert()?1:-1),n(),Y(e.delegatees())}}var ft=(()=>{class t{currentEou=ke.required();employeeSettings=ke.required();buttonType=A;alertTypes=ge;description;buttonLabel;redirectUrl;isAdvancedAccessDelegationEnabled=!0;delegatees=y([]);isLoading=y(!1);alertShown=y(!1);showAlert=O(()=>!this.alertShown()&&this.delegatees()?.length>0&&this.delegatees()?.length<4);alertMessage;btnDisabledMessage=O(()=>(this.delegatees()?.length||0)>=5?this.translocoService.translate("accessDelegation.tooltipMaxDelegateesReached"):"");targetAppConfigService=p(R);dialogService=p(ee);featureConfigService=p(Xe);employeesService=p(Ze);trackingService=p(U);toastMessageService=p($);translocoService=p(P);destroy$=new N;utilityService=p(_e);saveFeatureConfig(){let e={feature:"SPENDER_PREFERENCES",key:"DELEGATION_NOTIFICATION_ALERT",value:{shown:!0}};return this.featureConfigService.saveFeatureConfig("/spender/feature_configs/bulk",e)}openAddEditDelegateeDialog(e){let i=[...this.delegatees().map(d=>
6d.user_id)||[],this.currentEou().us.id];this.dialogService.open(lt,{data:{delegatee:e,userRole:"spender",userRoles:this.currentEou().ou.roles,isAdvancedAccessDelegationEnabled:this.isAdvancedAccessDelegationEnabled,localeOffset:this.employeeSettings()?.locale?.offset,usersToExclude:i,isApprovalScopeSelectionAllowed:this.currentEou().ou.is_primary}}).onClose.pipe(b(this.destroy$),V(d=>{if(d?.type===C.SUCCESS){let w=d?.payload?.isEdit?this.translocoService.translate("accessDelegation.successMessageDelegateeUpdated"):this.translocoService.translate("accessDelegation.successMessageDelegateeAdded");return this.toastMessageService.showSuccessToast(w),this.trackingService.eventTrack("User Preferences",{Action_Performed:w,Delegation_Scopes:d?.payload?.scopes?.join(",")}),this.getDelegatees(),this.alertShown()?D:this.saveFeatureConfig()}else d?.type===C.ERROR&&this.toastMessageService.showErrorToast(this.translocoService.translate("accessDelegation.errorMessageGeneric"));return ne(null)}),I(d=>(this.toastMessageService.showErrorToast(this.translocoService.translate("accessDelegation.errorMessageGeneric")),ne(null)))).pipe(b(this.destroy$)).subscribe()}openDeleteDelegateeDialog(e){this.dialogService.open(ct,{data:{delegatee:e,role:"spender",accessTypeKey:e.accessTypeTranslationKey??this.utilityService.getDelegateeAccessTypeKey(e)}}).onClose.pipe(b(this.destroy$)).subscribe(o=>{if(o?.type===C.SUCCESS){let d=this.translocoService.translate("accessDelegation.successMessageDelegateeDeleted");this.toastMessageService.showSuccessToast(d),this.trackingService.eventTrack("User Preferences",{Action_Performed:d,Delegation_Scopes:e.scopes?.join(",")}),this.getDelegatees()}else o?.type===C.ERROR&&this.toastMessageService.showErrorToast(this.translocoService.translate("accessDelegation.errorMessageGeneric"))})}getDelegatees(){this.isLoading.set(!0);let e={user_id:`eq.${this.currentEou().us.id}`};this.employeesService.getAllByParams("spender",e).pipe(b(this.destroy$),H(()=>{this.isLoading.set(!1)})).subscribe(i=>{let o=i[0]?.delegatees;o?.length?this.delegatees.set(o.map(d=>W(G({},d),{accessTypeTranslationKey:this.utilityService.getDelegateeAccessTypeKey(d)}))):this.delegatees.set([])})}setShowAlert(){let e={feature:"SPENDER_PREFERENCES",key:"DELEGATION_NOTIFICATION_ALERT"};this.featureConfigService.getByFeatureAndKey(e.feature,e.key,Ye.SPENDER).pipe(L(i=>{this.alertShown.set(!!i?.value?.shown)}),V(()=>!this.alertShown()&&this.delegatees()?.length>0?this.saveFeatureConfig():ne(null)),b(this.destroy$)).subscribe()}dismissAlert(){this.alertShown.set(!1)}ngOnInit(){let e=this.targetAppConfigService.getTargetConfig();this.redirectUrl=`${e.HELP_ARTICLES_DOMAIN}/en/articles/3808267-access-delegation`,this.description=this.translocoService.translate("accessDelegation.description"),this.alertMessage=this.translocoService.translate("accessDelegation.alertMessageNotificationPreferences"),this.getDelegatees(),this.setShowAlert()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["feature-access-delegation"]],inputs:{currentEou:[1,"currentEou"],employeeSettings:[1,"employeeSettings"]},decls:4,vars:11,consts:[[3,"btnClicked","cardTitle","btnText","descriptionHtml","redirectUrl","btnIconName","btnDisabledMessage"],[1,"card-body"],[1,"tw:mt-spacing-16","tw:mx-spacing-24"],[1,"tw:p-spacing-24",3,"ngClass"],[3,"dismiss","type","dismissible","message"],[1,"delegatee-info"],[1,"tw:flex","tw:min-w-0","tw:flex-1"],[1,"flex-div","tw:mr-spacing-64","tw:min-w-0","tw:w-[114px]"],[1,"col-title"],[3,"text","trimLength","styleClass"],[1,"flex-div","tw:mr-spacing-64","tw:min-w-0","tw:w-[152px]"],[1,"tw:break-words","tw:text-errie-black"],[1,"flex-div","tw:mr-spacing-64","tw:min-w-0","tw:w-[140px]"],[1,"tw:text-errie-black"],[1,"flex-div","tw:min-w-0"],[1,"tw:flex","tw:shrink-0","tw:items-center"],[1,"edit-icon","svg-div",3,"click","fdlTooltip","tooltipDirection"],["data-testid","edit-delegatee-btn",1,"icon",3,"containerClasses","icon"],[1,"delete-icon","svg-div",3,"click","fdlTooltip","tooltipDirection"],["data-testid","delete-delegatee-btn",1,"icon",3,"containerClasses","icon"]],template:function(i,o){i&1&&(a(0,"ui-section-card",0),s(1,"transloco"),s(2,"transloco"),_("btnClicked",function(){return o.openAddEditDelegateeDialog()}),r(),S(3,qt,4,1,"div",1)),i&2&&(c("cardTitle",l(1,7,"accessDelegation.sectionTitle"))("btnText",l(2,9,"accessDelegation.buttonAddDelegatee"))("descriptionHtml",o.description)("redirectUrl",o.redirectUrl)("bt
6nIconName","plus-square")("btnDisabledMessage",o.btnDisabledMessage()),n(3),h(o.delegatees().length>0?3:-1))},dependencies:[me,pe,j,Me,J,Pe,X,M,T],styles:[`@layer properties;.card-body[_ngcontent-%COMP%]{border-top-style:var(--tw-border-style);border-top-width:1px;border-right-style:var(--tw-border-style);border-right-width:0px;border-bottom-style:var(--tw-border-style);border-bottom-width:0px;border-left-style:var(--tw-border-style);border-left-width:0px;--tw-border-style: solid;border-style:solid;border-color:var(--tw-color-border-tertiary, var(--border-tertiary))}.delegatee-info[_ngcontent-%COMP%]{display:flex;min-width:calc(var(--tw-spacing, .25rem) * 0);justify-content:space-between;gap:var(--tw-gap-spacing-16, var(--size-16))}.svg-div[_ngcontent-%COMP%]{margin-left:var(--tw-margin-spacing-20, var(--size-20));display:flex;height:30px;width:30px;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--tw-radius-border-radius-2xs, .25rem)}.flex-div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.col-title[_ngcontent-%COMP%]{margin-bottom:var(--tw-margin-spacing-6, var(--size-6));color:var(--tw-color-dark-neutral-grey, var(--dark-neutral-grey))}.delete-icon[_ngcontent-%COMP%]:hover{background-color:var(--tw-color-bg-danger-light, var(--bg-danger-light))}.delete-icon[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{fill:var(--tw-color-icon-danger, var(--icon-danger))}.edit-icon[_ngcontent-%COMP%]:hover{background-color:var(--tw-color-bg-tertiary, var(--bg-tertiary))}.edit-icon[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{fill:var(--tw-color-icon-tertiary, var(--icon-tertiary))}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]::backdrop{--tw-border-style: solid}}}
7`]})}return t})();function Yt(t,g){if(t&1&&(a(0,"div",8)(1,"p"),v(2),r(),m(3,"ui-copy-text",9),r()),t&2){let e=f();n(2),oe(" ",e.currentEou().ou.special_email," "),n(),c("containerClasses","tw:cursor-pointer")("iconSize",e.copyIconSize.LARGE)("iconFill",e.copyIconFill.META_TEXT_HOVER_ACTIVE)("source","Settings: Fyle Mail Card")("text",e.currentEou().ou.special_email)}}function Kt(t,g){if(t&1&&(a(0,"div",4),m(1,"feature-access-delegation",10),r()),t&2){let e=f();n(),c("currentEou",e.currentEou())("employeeSettings",e.employeeSettings())}}function Gt(t,g){if(t&1){let e=F();a(0,"div",7)(1,"div",11)(2,"div",12),v(3),s(4,"transloco"),r(),a(5,"div",13),v(6),s(7,"snakeCaseToSpaceCase"),r()(),a(8,"div",14),s(9,"transloco"),_("click",function(){k(e);let o=f();return z(o.openEditTimezoneDialog())}),m(10,"ui-svg-sprite",15),r()()}if(t&2){let e,i=f();n(3),u(l(4,6,"preferencesView.yourTimezoneLabel")),n(3),u(l(7,8,(e=i.employeeSettings())==null?null:e.locale.timezone)),n(2),c("fdlTooltip",l(9,10,"preferencesView.tooltipEditTimezone"))("tooltipDirection","top"),n(2),c("containerClasses","tw:w-20-px tw:h-20-px")("icon","edit")}}var xn=(()=>{class t{targetConfig;employeeSettings=y(null);orgSettings=y(null);currentEou=y(null);copyIconSize=et;copyIconFill=tt;componentDestroyed$=new N;employeeSettingsService=p(Z);orgSettingsService=p(be);dialogService=p(ee);toastMessageService=p($);targetConfigService=p(R);authService=p(Je);trackingService=p(U);translocoService=p(P);setupInitialData(){this.targetConfig=this.targetConfigService.getTargetConfig(),this.currentEou.set(this.authService.getEou()),re([this.employeeSettingsService.get(),this.orgSettingsService.getProcessed()]).pipe(b(this.componentDestroyed$)).subscribe(([e,i])=>{this.employeeSettings.set(e),this.orgSettings.set(i)})}handleModalClose(e,i){e===C.SUCCESS?this.toastMessageService.showSuccessToast(i):e===C.ERROR&&this.toastMessageService.showErrorToast(this.translocoService.translate("preferencesView.errorSomethingWentWrong"))}openEditTimezoneDialog(){this.dialogService.open(dt,{data:{employeeSettings:this.employeeSettings()}}).onClose.pipe(b(this.componentDestroyed$),ae(i=>!!i),L(({type:i})=>{let o=this.translocoService.translate("preferencesView.toastTimezoneUpdateSuccess");this.handleModalClose(i,o),i===C.SUCCESS&&this.trackingService.eventTrack("User Preferences",{Action_Performed:o})}),V(({type:i})=>i===C.SUCCESS?this.employeeSettingsService.get().pipe(L(o=>this.employeeSettings.set(o))):D),I(()=>(this.toastMessageService.showErrorToast(this.translocoService.translate("preferencesView.errorSomethingWentWrong")),D))).subscribe()}ngOnInit(){this.setupInitialData()}ngOnDestroy(){this.componentDestroyed$.next(),this.componentDestroyed$.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["feature-preferences-view"]],decls:20,vars:27,consts:[["content",""],[3,"title","description"],[1,"preferences-view"],["data-testid","features-section"],[1,"section"],["data-testid","fyle-mail-section",3,"cardTitle","descriptionHtml","redirectUrl","valueTemplate","addBetaTagToTitle","betaTagLabel"],["data-testid","timezone-section",3,"cardTitle","descriptionHtml"],["data-testid","timezone-section-content",1,"content"],[1,"fyle-mail"],["data-testid","copy-fyle-mail",3,"containerClasses","iconSize","iconFill","source","text"],[3,"currentEou","employeeSettings"],[1,"tw:mr-spacing-64","tw:w-full"],[1,"tw:text-text-label"],[1,"tw:text-text-secondary"],["data-testid","edit-timezone-button",1,"icon-container",3,"click","fdlTooltip","tooltipDirection"],[1,"icon",3,"containerClasses","icon"]],template:function(i,o){if(i&1&&(m(0,"ui-page-header",1),s(1,"transloco"),s(2,"transloco"),a(3,"div",2),m(4,"feature-section",3),a(5,"div",4),m(6,"ui-section-card",5),s(7,"transloco"),s(8,"transloco"),s(9,"transloco"),se(10,Yt,4,6,"ng-template",null,0,de),r(),a(12,"div",4),m(13,"feature-secondary-inboxes"),r(),S(14,Kt,2,2,"div",4),a(15,"div",4),m(16,"ui-section-card",6),s(17,"transloco"),s(18,"transloco"),S(19,Gt,11,12,"div",7),r()()),i&2){let d,w,ie=Ne(11);c("title",l(1,13,"preferencesView.pageHeaderTitle"))("description",l(2,15,"preferencesView.pageHeaderDescription")),n(6),c("redirectUrl",Ue("",o.targetConfig.HELP_ARTICLES_DOMAIN,"/en/articles/2317008-fyle-mails"))("cardTitle",l(7,17,"preferencesView.fyleMailCardTitle"))("descriptionHtml",l(8,19,"preferencesView.fyleMailCardDescription"))("valueTemplate",ie)("addBetaTagToTitle",!0)("betaTagLabel",l(9,21,"preferencesView.fyleMailBetaTagLabel")),n(8),h(o.currentEou()&&o.employeeSettings()&&(!((d=o.orgSettings())==null||d.access_delegation==null)&&d.access_delegation.allowed)&&(!((d=o.orgSettings())==null||d.access_delegation==null)&&d.access_delegation.enabled)?14:-1),n(2),c("cardTitle",l(17,23,"preferencesView.timezoneCardTitle"))("descriptionHtml",l(18,25,"preferencesView.timezoneCardDescription")),n(3),h((w=o.employeeSettings())!=null&&w.locale?19:-1)}},dependencies:[at,j,it,J,X,pt,vt,ft,M,rt,T],styles:[`@layer properties;.preferences-view[_ngcontent-%COMP%]{margin-inline:var(--tw-margin-spacing-26, 1.625rem);display:flex;flex-direction:column;gap:var(--tw-gap-spacing-24, var(--size-24));padding-bottom:var(--tw-padding-spacing-24, var(--size-24))}@media (width >= 960px){.preferences-view[_ngcontent-%COMP%]{margin-inline:var(--tw-margin-spacing-64, 4rem)}}@media (width >= 1280px){.preferences-view[_ngcontent-%COMP%]{margin-inline:var(--tw-margin-spacing-120, 7.5rem)}}.preferences-view[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]{border-radius:var(--tw-radius-border-radius-lg, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--tw-color-border-tertiary, var(--border-tertiary));background-color:var(--tw-color-bg-white, var(--bg-white))}.preferences-view[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:var(--tw-gap-spacing-4, var(--size-4));border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--tw-color-border-tertiary, var(--border-tertiary));padding:var(--tw-padding-spacing-24, var(--size-24))}.preferences-view[_ngcontent-%COMP%]   feature-section[_ngcontent-%COMP%]{border-radius:var(--tw-radius-border-radius-lg, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--tw-color-border-tertiary, var(--border-tertiary));background-color:var(--tw-color-bg-white, var(--bg-white))}.preferences-view[_ngcontent-%COMP%]   .fyle-mail[_ngcontent-%COMP%]{margin-left:var(--tw-margin-spacing-20, var(--size-20));
7display:flex;height:36px;flex-direction:row;align-items:center;justify-content:center;gap:var(--tw-gap-spacing-8, var(--size-8));padding-inline:var(--tw-padding-spacing-2, var(--size-2));padding-block:var(--tw-padding-spacing-8, var(--size-8));white-space:nowrap;color:var(--tw-color-text-secondary, var(--text-secondary))}.icon-container[_ngcontent-%COMP%]{margin-left:var(--tw-margin-spacing-20, var(--size-20));cursor:pointer;place-self:center;border-radius:var(--tw-radius-border-radius-2xs, .25rem);padding:var(--tw-padding-spacing-6, var(--size-6))}@media (hover: hover){.icon-container[_ngcontent-%COMP%]:hover{background-color:var(--tw-color-bg-tertiary, var(--bg-tertiary))}}.icon-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{fill:var(--tw-color-icon-tertiary, var(--icon-tertiary))}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]::backdrop{--tw-border-style: solid}}}
8`]})}return t})();export{xn as PreferencesViewComponent};

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.