@veltdev/sdk
Version:
Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.
2 lines (1 loc) • 45.7 kB
JavaScript
import{a as lt}from"./chunk-7V6EXNCB.js";import{b as et,c as Nt,d as Lt}from"./chunk-BDHZZGJO.js";import{t as Wt}from"./chunk-BACKCNIG.js";import"./chunk-JFNRCHYR.js";import{b as K,c as Z,d as J,e as Y,g as Q,h as X,j as $,k as tt,l as Ut}from"./chunk-U4YN7DB7.js";import"./chunk-3HGEDPEP.js";import"./chunk-JDLRIKAZ.js";import"./chunk-3J52NZMN.js";import"./chunk-4ACOV475.js";import{b as H}from"./chunk-WTYACTR5.js";import{a as Rt}from"./chunk-UJRDSNTY.js";import{I as Bt,W as it,Y as Vt,ba as At,da as qt,ea as Ht,ga as zt}from"./chunk-KU45CEXD.js";import{$ as W,Ab as Pt,Bb as It,Ee as Ct,Fa as l,Gc as q,Hc as Et,Ib as B,Ic as Tt,Ii as mt,Kb as G,Nb as b,Ob as ut,Pa as c,Pb as x,Pc as Ft,Sb as R,Ta as wt,Tb as U,Td as jt,Ua as V,Ub as j,Va as Dt,Ya as Ot,_a as T,aa as xt,bi as rt,ca as p,ci as M,db as A,di as C,ei as at,ha as S,ia as _,ja as O,jg as nt,ka as P,kc as u,lb as f,lc as h,mb as a,mi as k,nb as m,ob as I,qa as L,ti as st,vb as F,vh as E,wa as kt,xb as w,yh as ot,yi as ct,zb as D}from"./chunk-GR3NESUB.js";var Qt=(()=>{let i=class i{constructor(t,e,n,r,g,s,y,d){this.analyticsService=t,this.authService=e,this.configService=n,this.docService=r,this.databaseService=g,this.loggingService=s,this.commonDbService=y,this.serviceBook=d,this.notificationService=null,this.serviceBook.observe(ot).subscribe(N=>{this.notificationService=N})}sendContactUsData(t){try{let e=this.authService.getUser(),n=this.docService.getDocumentPaths();if(e&&n&&this.databaseService.getDbValue()){t.from=e?.isAnonymous?null:e,t.lastUpdated=this.serverTimestamp,t.apiKey=this.configService.getApiKey(),t.metadata=this.docService.getDocumentMetadata(),t.pageInfo=nt(),t.id=this.commonDbService.generateDocumentId();let r=JSON.parse(JSON.stringify(t));this.commonDbService.setData({feature:"userContactUs",properties:{documentId:n?.documentId??"",organizationId:n?.organizationId??"",skipFirestore:!0},data:r}),this.updateNotificationsDatabase(r)}}catch(e){this.loggingService.catch("Error in UserContactUsService sendContactUsData: ",e)}}updateNotificationsDatabase(t){try{let e={notificationSource:"userContactUs",userContactUs:t};this.notificationService?.updateNotificationDatabase(e)}catch(e){this.loggingService.catch("Error in UserContactUsService updateNotificationsDatabase: ",e)}}get serverTimestamp(){return this.commonDbService.getServerTimestamp()}};i.\u0275fac=function(e){return new(e||i)(p(M),p(k),p(at),p(ct),p(st),p(C),p(mt),p(rt))},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();function re(o,i){if(o&1){let v=F();a(0,"input",14),u(1,"translate"),j("ngModelChange",function(e){S(v);let n=D();return U(n.contactUsForm.emailId,e)||(n.contactUsForm.emailId=e),_(e)}),m()}if(o&2){let v=D();f("placeholder",h(1,2,"Your email address")),R("ngModel",v.contactUsForm.emailId)}}var ht=(()=>{let i=class i{constructor(t,e,n,r,g,s,y){this.analyticsService=t,this.authService=e,this.loggingService=n,this.toastService=r,this.userContactUsService=g,this.matDialogRef=s,this.matBottomSheetRef=y,this.user=L(void 0),this.subscriptions=[],this.contactUsForm={},this.veltElement=!0;try{this.subscriptions.push(this.authService.getUser$().subscribe(d=>{d?.email&&!d?.isAnonymous?this.user.set(d):this.user.set(null)}))}catch(d){this.loggingService.catch("Error in ContactUsDialogComponent constructor: ",d)}}ngOnInit(){try{this.matDialogRef&&this.matDialogRef?.addPanelClass("snippyly-contact-us-dialog")}catch(t){this.loggingService.catch("Error in ContactUsDialogComponent ngOnInit: ",t)}}submitForm(){try{let t=this.user();t&&(this.contactUsForm.emailId=t.email),this.contactUsForm.emailId&&this.contactUsForm.message&&(this.userContactUsService.sendContactUsData({emailId:this.contactUsForm.emailId,message:this.contactUsForm.message}),this.analyticsService.trackEvent(E.Events.ContactUs.CONTACT_SUBMITTED),this.toastService.setToast({message:"Thank you! We will get back to you soon.",type:"success",duration:2e3}),this.closeDialog())}catch(t){this.loggingService.catch("Error in ContactUsDialogComponent submitForm: ",t)}}closeDialog(){try{this.matBottomSheetRef&&this.matBottomSheetRef?.dismiss(),this.matDialogRef&&this.matDialogRef?.close()}catch(t){this.loggingService.catch("Error in ContactUsDialogComponent closeDialog: ",t)}}ngOnDestroy(){try{this.subscriptions.forEach(t=>{t.unsubscribe()})}catch(t){this.loggingService.catch("Error in ContactUsDialogComponent ngOnDestroy: ",t)}}};i.\u0275fac=function(e){return new(e||i)(c(M),c(k),c(C),c(lt),c(Qt),c(it,8),c(et,8))},i.\u0275cmp=V({type:i,selectors:[["app-contact-us-dialog"]],hostVars:1,hostBindings:function(e,n){e&2&&A("data-velt-element",n.veltElement)},standalone:!1,decls:22,vars:16,consts:[["contactUsFormRef","ngForm"],[1,"s-contact-us-modal"],[1,"s-contact-us-header"],[1,"s-contact-us-header-title"],[1,"s-contact-us-header-description"],[1,"s-contact-us-modal-close",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.41009 4.41107C4.73553 4.08563 5.26317 4.08563 5.5886 4.41107L9.99935 8.82181L14.4101 4.41107C14.7355 4.08563 15.2632 4.08563 15.5886 4.41107C15.914 4.73651 15.914 5.26414 15.5886 5.58958L11.1779 10.0003L15.5886 14.4111C15.914 14.7365 15.914 15.2641 15.5886 15.5896C15.2632 15.915 14.7355 15.915 14.4101 15.5896L9.99935 11.1788L5.5886 15.5896C5.26317 15.915 4.73553 15.915 4.41009 15.5896C4.08466 15.2641 4.08466 14.7365 4.41009 14.4111L8.82084 10.0003L4.41009 5.58958C4.08466 5.26414 4.08466 4.73651 4.41009 4.41107Z","fill","#80808A"],[1,"s-contact-us-body"],[1,"s-contact-us-form"],["class","s-contact-us-input","name","emailId","required","","email","",3,"placeholder","ngModel","ngModelChange",4,"ngIf"],["rows","5","name","message","required","",1,"s-contact-us-input",3,"ngModelChange","placeholder","ngModel"],[1,"s-contact-us-footer"],[1,"s-button","s-primary",3,"click"],["name","emailId","required","","email","",1,"s-contact-us-input",3,"ngModelChange","placeholder","ngModel"]],template:function(e,n){if(e&1){let r=F();a(0,"div",1)(1,"div",2)(2,"div")(3,"div",3),b(4),u(5,"translate"),m(),a(6,"div",4),b(7),u(8,"translate"),m()(),a(9,"div",5),w("click",function(){return S(r),_(n.closeDialog())}),O(),a(10,"svg",6),I(11,"path",7),m()()(),P(),a(12,"div",8)(13,"form",9,0),T(15,re,2,4,"input",10),a(16,"textarea",11),u(17,"translate"),j("ngModelChange",function(s){return S(r),U(n.contactUsForm.message,s)||(n.contactUsForm.message=s),_(s)}),m()()(),a(18,"div",12)(19,"div",13),w("click",function(){S(r);let s=B(14);return _(s!=null&&s.valid?n.submitForm():null)}),b(20),u(21,"translate"),m()()()}if(e&2){let r=B(14);l(4),x(" ",h(5,8,"Contact us")," "),l(3),x(" ",h(8,10,"Let us know how can we help you!")," "),l(8),f("ngIf",!n.user()),l(),f("placeholder",h(17,12,"How can we help?")),R("ngModel",n.contactUsForm.message),l(3),G("s-disabled",!(r!=null&&r.valid)),l(),x(" ",h(21,14,"Send")," ")}},dependencies:[q,X,K,Z,J,$,tt,Q,Y,H],styles:["html[_ngcontent-%COMP%]{--velt-base-rem-unit: 1}*[data-snippyly-element=true][_ngcontent-%COMP%], *[data-velt-element=true][_ngcontent-%COMP%]{font-family:var(--velt-default-font-family)}velt-wireframe[_ngcontent-%COMP%]{display:none!important}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}*[_ngcontent-%COMP%]{box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)!important;outline:none!important;margin:0!important;padding:0!important;line-height:1.5!important;color:#000!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))}*[_ngcontent-%COMP%]:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){height:unset;width:unset}*[_ngcontent-%COMP%]:empty:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){display:revert!important}.s-contact-us-modal[_ngcontent-%COMP%]{width:500px!important;background:#141416!important;padding:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;display:flex;flex-direction:column;border-radius:20px!important;box-shadow:0 calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((-3rem + 0px) * var(--velt-base-rem-unit)) #1f2f461f}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-header[_ngcontent-%COMP%]{display:flex!important;justify-content:space-between!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-header[_ngcontent-%COMP%] .s-contact-us-header-title[_ngcontent-%COMP%]{font-size:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:600!important;line-height:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;color:#f4f5f6!important;margin-bottom:calc((1rem + 0px) * var(--velt-base-rem-unit))!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-header[_ngcontent-%COMP%] .s-contact-us-header-description[_ngcontent-%COMP%]{font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:400!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#80808a!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-header[_ngcontent-%COMP%] .s-contact-us-modal-close[_ngcontent-%COMP%]{cursor:pointer!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-body[_ngcontent-%COMP%], .s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-body[_ngcontent-%COMP%] .s-contact-us-form[_ngcontent-%COMP%]{display:flex!important;flex-direction:column!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-body[_ngcontent-%COMP%] .s-contact-us-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-body[_ngcontent-%COMP%] .s-contact-us-input[_ngcontent-%COMP%]{border-radius:calc((.75rem + 0px) * var(--velt-base-rem-unit))!important;border:2px solid #303034;background:transparent;font-family:inherit;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important}.s-contact-us-modal[_ngcontent-%COMP%] .s-contact-us-footer[_ngcontent-%COMP%]{display:flex!important;justify-content:flex-end!important}.s-button[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;justify-content:center!important;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:calc((4rem + 0px) * var(--velt-base-rem-unit))!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;transition:.1s ease!important;cursor:pointer!important}.s-primary[_ngcontent-%COMP%]{background:#625df5!important;color:#fff!important}.s-primary[_ngcontent-%COMP%]:not(.s-disabled):hover{background:#4f4bbf!important}.s-disabled[_ngcontent-%COMP%]{background:#939393!important;cursor:not-allowed!important} .velt-mat-dialog-container.snippyly-contact-us-dialog mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface{background-color:transparent!important;padding:0!important;margin:0!important;border-radius:20px!important} .velt-mat-bottom-sheet-container.snippyly-contact-us-bottom-sheet .mat-bottom-sheet-container{background-color:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important} .velt-mat-bottom-sheet-container.snippyly-contact-us-bottom-sheet .mat-bottom-sheet-container .s-contact-us-modal{width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important} .velt-mat-bottom-sheet-container.snippyly-contact-us-bottom-sheet .mat-bottom-sheet-container .s-contact-us-modal .s-button{flex-grow:1!important}@media screen and (max-width:425px){ .snippyly-contact-us-dialog{width:100vw!important;max-width:100vw!important;height:100vh!important} .snippyly-contact-us-dialog .s-contact-us-modal{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important} .snippyly-contact-us-dialog .s-contact-us-modal .s-contact-us-body{flex-grow:1!important} .snippyly-contact-us-dialog .s-contact-us-modal .s-button{flex-grow:1!important}}"],changeDetection:0});let o=i;return o})();var te=(()=>{let i=class i{constructor(t,e,n,r,g,s,y,d){this.analyticsService=t,this.authService=e,this.configService=n,this.docService=r,this.databaseService=g,this.loggingService=s,this.commonDbService=y,this.serviceBook=d,this.notificationService=null,this.serviceBook.observe(ot).subscribe(N=>{this.notificationService=N})}sendFeedback(t){try{let e=this.authService.getUser(),n=this.docService.getDocumentPaths();if(e&&n&&this.databaseService.getDbValue()){t.from=e?.isAnonymous?null:e,t.lastUpdated=this.serverTimestamp,t.apiKey=this.configService.getApiKey(),t.metadata=this.docService.getDocumentMetadata(),t.pageInfo=nt(),t.id=this.commonDbService.generateDocumentId();let r=JSON.parse(JSON.stringify(t));this.commonDbService.setData({feature:"userFeedback",properties:{documentId:n?.documentId??"",organizationId:n?.organizationId??"",skipFirestore:!0},data:r}),this.updateNotificationsDatabase(r)}}catch(e){this.loggingService.catch("Error in UserFeedbackService sendFeedback: ",e)}}updateNotificationsDatabase(t){try{let e={notificationSource:"userFeedback",userFeedback:t};this.notificationService?.updateNotificationDatabase(e)}catch(e){this.loggingService.catch("Error in UserFeedbackService updateNotificationsDatabase: ",e)}}get serverTimestamp(){return this.commonDbService.getServerTimestamp()}};i.\u0275fac=function(e){return new(e||i)(p(M),p(k),p(at),p(ct),p(st),p(C),p(mt),p(rt))},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();function se(o,i){if(o&1){let v=F();a(0,"input",14),u(1,"translate"),j("ngModelChange",function(e){S(v);let n=D();return U(n.feedbackForm.emailId,e)||(n.feedbackForm.emailId=e),_(e)}),m()}if(o&2){let v=D();f("placeholder",h(1,2,"Your email address")),R("ngModel",v.feedbackForm.emailId)}}var ft=(()=>{let i=class i{constructor(t,e,n,r,g,s,y){this.analyticsService=t,this.authService=e,this.loggingService=n,this.toastService=r,this.userFeedbackService=g,this.matDialogRef=s,this.matBottomSheetRef=y,this.user=L(void 0),this.subscriptions=[],this.feedbackForm={},this.veltElement=!0;try{this.subscriptions.push(this.authService.getUser$().subscribe(d=>{d?.email&&!d?.isAnonymous?this.user.set(d):this.user.set(null)}))}catch(d){this.loggingService.catch("Error in FeedbackDialogComponent constructor: ",d)}}ngOnInit(){try{this.matDialogRef&&this.matDialogRef?.addPanelClass("snippyly-feedback-dialog")}catch(t){this.loggingService.catch("Error in FeedbackDialogComponent ngOnInit: ",t)}}submitFeedback(){try{let t=this.user();t&&(this.feedbackForm.emailId=t.email),this.feedbackForm.emailId&&this.feedbackForm.message&&(this.userFeedbackService.sendFeedback({emailId:this.feedbackForm.emailId,message:this.feedbackForm.message}),this.analyticsService.trackEvent(E.Events.Feedback.FEEDBACK_SUBMITTED),this.toastService.setToast({message:"Thank you for your feedback!",type:"success",duration:2e3}),this.closeDialog())}catch(t){this.loggingService.catch("Error in FeedbackDialogComponent submitFeedback: ",t)}}closeDialog(){try{this.matBottomSheetRef&&this.matBottomSheetRef?.dismiss(),this.matDialogRef&&this.matDialogRef?.close()}catch(t){this.loggingService.catch("Error in FeedbackDialogComponent closeDialog: ",t)}}ngOnDestroy(){try{this.subscriptions.forEach(t=>{t.unsubscribe()})}catch(t){this.loggingService.catch("Error in FeedbackDialogComponent ngOnDestroy: ",t)}}};i.\u0275fac=function(e){return new(e||i)(c(M),c(k),c(C),c(lt),c(te),c(it,8),c(et,8))},i.\u0275cmp=V({type:i,selectors:[["app-feedback-dialog"]],hostVars:1,hostBindings:function(e,n){e&2&&A("data-velt-element",n.veltElement)},standalone:!1,decls:22,vars:16,consts:[["feedbackFormRef","ngForm"],[1,"s-feedback-modal"],[1,"s-feedback-header"],[1,"s-feedback-header-title"],[1,"s-feedback-header-description"],[1,"s-feedback-modal-close",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.41009 4.41107C4.73553 4.08563 5.26317 4.08563 5.5886 4.41107L9.99935 8.82181L14.4101 4.41107C14.7355 4.08563 15.2632 4.08563 15.5886 4.41107C15.914 4.73651 15.914 5.26414 15.5886 5.58958L11.1779 10.0003L15.5886 14.4111C15.914 14.7365 15.914 15.2641 15.5886 15.5896C15.2632 15.915 14.7355 15.915 14.4101 15.5896L9.99935 11.1788L5.5886 15.5896C5.26317 15.915 4.73553 15.915 4.41009 15.5896C4.08466 15.2641 4.08466 14.7365 4.41009 14.4111L8.82084 10.0003L4.41009 5.58958C4.08466 5.26414 4.08466 4.73651 4.41009 4.41107Z","fill","#80808A"],[1,"s-feedback-body"],[1,"s-feedback-form"],["class","s-feedback-input","name","emailId","required","","email","",3,"placeholder","ngModel","ngModelChange",4,"ngIf"],["rows","5","name","message","required","",1,"s-feedback-input",3,"ngModelChange","placeholder","ngModel"],[1,"s-feedback-footer"],[1,"s-button","s-primary",3,"click"],["name","emailId","required","","email","",1,"s-feedback-input",3,"ngModelChange","placeholder","ngModel"]],template:function(e,n){if(e&1){let r=F();a(0,"div",1)(1,"div",2)(2,"div")(3,"div",3),b(4),u(5,"translate"),m(),a(6,"div",4),b(7),u(8,"translate"),m()(),a(9,"div",5),w("click",function(){return S(r),_(n.closeDialog())}),O(),a(10,"svg",6),I(11,"path",7),m()()(),P(),a(12,"div",8)(13,"form",9,0),T(15,se,2,4,"input",10),a(16,"textarea",11),u(17,"translate"),j("ngModelChange",function(s){return S(r),U(n.feedbackForm.message,s)||(n.feedbackForm.message=s),_(s)}),m()()(),a(18,"div",12)(19,"div",13),w("click",function(){S(r);let s=B(14);return _(s!=null&&s.valid?n.submitFeedback():null)}),b(20),u(21,"translate"),m()()()}if(e&2){let r=B(14);l(4),x(" ",h(5,8,"Feedback")," "),l(3),x(" ",h(8,10,"Provide feedback on your Superflow experience.")," "),l(8),f("ngIf",!n.user()),l(),f("placeholder",h(17,12,"Tell us the details...")),R("ngModel",n.feedbackForm.message),l(3),G("s-disabled",!(r!=null&&r.valid)),l(),x(" ",h(21,14,"Send")," ")}},dependencies:[q,X,K,Z,J,$,tt,Q,Y,H],styles:["html[_ngcontent-%COMP%]{--velt-base-rem-unit: 1}*[data-snippyly-element=true][_ngcontent-%COMP%], *[data-velt-element=true][_ngcontent-%COMP%]{font-family:var(--velt-default-font-family)}velt-wireframe[_ngcontent-%COMP%]{display:none!important}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}*[_ngcontent-%COMP%]{box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)!important;outline:none!important;margin:0!important;padding:0!important;line-height:1.5!important;color:#000!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))}*[_ngcontent-%COMP%]:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){height:unset;width:unset}*[_ngcontent-%COMP%]:empty:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){display:revert!important}.s-feedback-modal[_ngcontent-%COMP%]{width:500px!important;background:#141416!important;padding:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;display:flex;flex-direction:column;border-radius:20px!important;box-shadow:0 calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((-3rem + 0px) * var(--velt-base-rem-unit)) #1f2f461f}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-header[_ngcontent-%COMP%]{display:flex!important;justify-content:space-between!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-header[_ngcontent-%COMP%] .s-feedback-header-title[_ngcontent-%COMP%]{font-size:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:600!important;line-height:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;color:#f4f5f6!important;margin-bottom:calc((1rem + 0px) * var(--velt-base-rem-unit))!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-header[_ngcontent-%COMP%] .s-feedback-header-description[_ngcontent-%COMP%]{font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:400!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#80808a!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-header[_ngcontent-%COMP%] .s-feedback-modal-close[_ngcontent-%COMP%]{cursor:pointer!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-body[_ngcontent-%COMP%], .s-feedback-modal[_ngcontent-%COMP%] .s-feedback-body[_ngcontent-%COMP%] .s-feedback-form[_ngcontent-%COMP%]{display:flex!important;flex-direction:column!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-body[_ngcontent-%COMP%] .s-feedback-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-body[_ngcontent-%COMP%] .s-feedback-input[_ngcontent-%COMP%]{border-radius:calc((.75rem + 0px) * var(--velt-base-rem-unit))!important;border:2px solid #303034;background:transparent;font-family:inherit;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important}.s-feedback-modal[_ngcontent-%COMP%] .s-feedback-footer[_ngcontent-%COMP%]{display:flex!important;justify-content:flex-end!important}.s-button[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;justify-content:center!important;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:calc((4rem + 0px) * var(--velt-base-rem-unit))!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;transition:.1s ease!important;cursor:pointer!important}.s-primary[_ngcontent-%COMP%]{background:#625df5!important;color:#fff!important}.s-primary[_ngcontent-%COMP%]:not(.s-disabled):hover{background:#4f4bbf!important}.s-disabled[_ngcontent-%COMP%]{background:#939393!important;cursor:not-allowed!important} .velt-mat-dialog-container.snippyly-feedback-dialog mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface{background-color:transparent!important;padding:0!important;margin:0!important;border-radius:20px!important} .velt-mat-bottom-sheet-container.snippyly-feedback-bottom-sheet .mat-bottom-sheet-container{background-color:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important} .velt-mat-bottom-sheet-container.snippyly-feedback-bottom-sheet .mat-bottom-sheet-container .s-feedback-modal{width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important} .velt-mat-bottom-sheet-container.snippyly-feedback-bottom-sheet .mat-bottom-sheet-container .s-feedback-modal .s-button{flex-grow:1!important}@media screen and (max-width:425px){ .snippyly-feedback-dialog{width:100vw!important;max-width:100vw!important;height:100vh!important} .snippyly-feedback-dialog .s-feedback-modal{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important} .snippyly-feedback-dialog .s-feedback-modal .s-feedback-body{flex-grow:1!important} .snippyly-feedback-dialog .s-feedback-modal .s-button{flex-grow:1!important}}"],changeDetection:0});let o=i;return o})();var ee=(()=>{let i=class i{constructor(t,e,n,r,g,s,y,d){this.analyticsService=t,this.authService=e,this.configService=n,this.docService=r,this.databaseService=g,this.loggingService=s,this.commonDbService=y,this.serviceBook=d,this.notificationService=null,this.serviceBook.observe(ot).subscribe(N=>{this.notificationService=N})}submitIssue(t){try{let e=this.authService.getUser(),n=this.docService.getDocumentPaths();if(e&&n&&this.databaseService.getDbValue()){t.from=e?.isAnonymous?null:e,t.lastUpdated=this.serverTimestamp,t.apiKey=this.configService.getApiKey(),t.metadata=this.docService.getDocumentMetadata(),t.pageInfo=nt(),t.id=this.commonDbService.generateDocumentId();let r=JSON.parse(JSON.stringify(t));this.commonDbService.setData({feature:"userReportBug",properties:{documentId:n?.documentId??"",organizationId:n?.organizationId??"",skipFirestore:!0},data:r}),this.updateNotificationsDatabase(r)}}catch(e){this.loggingService.catch("Error in UserReportBugService submitIssue: ",e)}}updateNotificationsDatabase(t){try{let e={notificationSource:"userReportBug",userReportBug:t};this.notificationService?.updateNotificationDatabase(e)}catch(e){this.loggingService.catch("Error in UserReportBugService updateNotificationsDatabase: ",e)}}get serverTimestamp(){return this.commonDbService.getServerTimestamp()}};i.\u0275fac=function(e){return new(e||i)(p(M),p(k),p(at),p(ct),p(st),p(C),p(mt),p(rt))},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();function me(o,i){if(o&1){let v=F();a(0,"input",14),u(1,"translate"),j("ngModelChange",function(e){S(v);let n=D();return U(n.issueForm.emailId,e)||(n.issueForm.emailId=e),_(e)}),m()}if(o&2){let v=D();f("placeholder",h(1,2,"Your email address")),R("ngModel",v.issueForm.emailId)}}var vt=(()=>{let i=class i{constructor(t,e,n,r,g,s,y){this.analyticsService=t,this.authService=e,this.loggingService=n,this.toastService=r,this.userReportBugService=g,this.matDialogRef=s,this.matBottomSheetRef=y,this.user=L(void 0),this.subscriptions=[],this.issueForm={},this.veltElement=!0;try{this.subscriptions.push(this.authService.getUser$().subscribe(d=>{d?.email&&!d?.isAnonymous?this.user.set(d):this.user.set(null)}))}catch(d){this.loggingService.catch("Error in ReportBugDialogComponent constructor: ",d)}}ngOnInit(){try{this.matDialogRef&&this.matDialogRef?.addPanelClass("snippyly-feedback-dialog")}catch(t){this.loggingService.catch("Error in ReportBugDialogComponent ngOnInit: ",t)}}submitIssue(){try{let t=this.user();t&&(this.issueForm.emailId=t.email),this.issueForm.emailId&&this.issueForm.message&&(this.userReportBugService.submitIssue({emailId:this.issueForm.emailId,message:this.issueForm.message}),this.analyticsService.trackEvent(E.Events.Bug.BUG_SUBMITTED),this.toastService.setToast({message:"Thanks for reporting the bug. We will get back to you soon.",type:"success",duration:2e3}),this.closeDialog())}catch(t){this.loggingService.catch("Error in ReportBugDialogComponent submitFeedback: ",t)}}closeDialog(){this.matBottomSheetRef&&this.matBottomSheetRef.dismiss(),this.matDialogRef&&this.matDialogRef.close()}ngOnDestroy(){try{this.subscriptions.forEach(t=>{t.unsubscribe()})}catch(t){this.loggingService.catch("Error in ReportBugDialogComponent ngOnDestroy: ",t)}}};i.\u0275fac=function(e){return new(e||i)(c(M),c(k),c(C),c(lt),c(ee),c(it,8),c(et,8))},i.\u0275cmp=V({type:i,selectors:[["snippyly-report-bug-dialog"]],hostVars:1,hostBindings:function(e,n){e&2&&A("data-velt-element",n.veltElement)},standalone:!1,decls:22,vars:16,consts:[["issueFormRef","ngForm"],[1,"s-report-bug-modal"],[1,"s-report-bug-header"],[1,"s-report-bug-header-title"],[1,"s-report-bug-header-description"],[1,"s-report-bug-modal-close",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.41009 4.41107C4.73553 4.08563 5.26317 4.08563 5.5886 4.41107L9.99935 8.82181L14.4101 4.41107C14.7355 4.08563 15.2632 4.08563 15.5886 4.41107C15.914 4.73651 15.914 5.26414 15.5886 5.58958L11.1779 10.0003L15.5886 14.4111C15.914 14.7365 15.914 15.2641 15.5886 15.5896C15.2632 15.915 14.7355 15.915 14.4101 15.5896L9.99935 11.1788L5.5886 15.5896C5.26317 15.915 4.73553 15.915 4.41009 15.5896C4.08466 15.2641 4.08466 14.7365 4.41009 14.4111L8.82084 10.0003L4.41009 5.58958C4.08466 5.26414 4.08466 4.73651 4.41009 4.41107Z","fill","#80808A"],[1,"s-report-bug-body"],[1,"s-report-bug-form"],["class","s-report-bug-input","name","emailId","required","","email","",3,"placeholder","ngModel","ngModelChange",4,"ngIf"],["rows","5","name","message","required","",1,"s-report-bug-input",3,"ngModelChange","placeholder","ngModel"],[1,"s-report-bug-footer"],[1,"s-button","s-primary",3,"click"],["name","emailId","required","","email","",1,"s-report-bug-input",3,"ngModelChange","placeholder","ngModel"]],template:function(e,n){if(e&1){let r=F();a(0,"div",1)(1,"div",2)(2,"div")(3,"div",3),b(4),u(5,"translate"),m(),a(6,"div",4),b(7),u(8,"translate"),m()(),a(9,"div",5),w("click",function(){return S(r),_(n.closeDialog())}),O(),a(10,"svg",6),I(11,"path",7),m()()(),P(),a(12,"div",8)(13,"form",9,0),T(15,me,2,4,"input",10),a(16,"textarea",11),u(17,"translate"),j("ngModelChange",function(s){return S(r),U(n.issueForm.message,s)||(n.issueForm.message=s),_(s)}),m()()(),a(18,"div",12)(19,"div",13),w("click",function(){S(r);let s=B(14);return _(s!=null&&s.valid?n.submitIssue():null)}),b(20),u(21,"translate"),m()()()}if(e&2){let r=B(14);l(4),x(" ",h(5,8,"Report bugs")," "),l(3),x(" ",h(8,10,"Let us know about any bugs so we can fix them ASAP!")," "),l(8),f("ngIf",!n.user()),l(),f("placeholder",h(17,12,"Tell us the details...")),R("ngModel",n.issueForm.message),l(3),G("s-disabled",!(r!=null&&r.valid)),l(),x(" ",h(21,14,"Send")," ")}},dependencies:[q,X,K,Z,J,$,tt,Q,Y,H],styles:["html[_ngcontent-%COMP%]{--velt-base-rem-unit: 1}*[data-snippyly-element=true][_ngcontent-%COMP%], *[data-velt-element=true][_ngcontent-%COMP%]{font-family:var(--velt-default-font-family)}velt-wireframe[_ngcontent-%COMP%]{display:none!important}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}*[_ngcontent-%COMP%]{box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)!important;outline:none!important;margin:0!important;padding:0!important;line-height:1.5!important;color:#000!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))}*[_ngcontent-%COMP%]:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){height:unset;width:unset}*[_ngcontent-%COMP%]:empty:not(svg,rect,circle,ellipse,line,polyline,polygon,path,text,g,use,image,defs,hr){display:revert!important}.s-report-bug-modal[_ngcontent-%COMP%]{width:500px!important;background:#141416!important;padding:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;display:flex;flex-direction:column;border-radius:20px!important;box-shadow:0 calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((4rem + 0px) * var(--velt-base-rem-unit)) calc((-3rem + 0px) * var(--velt-base-rem-unit)) #1f2f461f}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-header[_ngcontent-%COMP%]{display:flex!important;justify-content:space-between!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-header[_ngcontent-%COMP%] .s-report-bug-header-title[_ngcontent-%COMP%]{font-size:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:600!important;line-height:calc((2rem + 0px) * var(--velt-base-rem-unit))!important;color:#f4f5f6!important;margin-bottom:calc((1rem + 0px) * var(--velt-base-rem-unit))!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-header[_ngcontent-%COMP%] .s-report-bug-header-description[_ngcontent-%COMP%]{font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;font-weight:400!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#80808a!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-header[_ngcontent-%COMP%] .s-report-bug-modal-close[_ngcontent-%COMP%]{cursor:pointer!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-body[_ngcontent-%COMP%], .s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-body[_ngcontent-%COMP%] .s-report-bug-form[_ngcontent-%COMP%]{display:flex!important;flex-direction:column!important;gap:calc((2rem + 0px) * var(--velt-base-rem-unit))!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-body[_ngcontent-%COMP%] .s-report-bug-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-body[_ngcontent-%COMP%] .s-report-bug-input[_ngcontent-%COMP%]{border-radius:calc((.75rem + 0px) * var(--velt-base-rem-unit))!important;border:2px solid #303034;background:transparent;font-family:inherit;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important}.s-report-bug-modal[_ngcontent-%COMP%] .s-report-bug-footer[_ngcontent-%COMP%]{display:flex!important;justify-content:flex-end!important}.s-button[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;justify-content:center!important;padding:calc((.75rem + 0px) * var(--velt-base-rem-unit)) calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:calc((4rem + 0px) * var(--velt-base-rem-unit))!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;transition:.1s ease!important;cursor:pointer!important}.s-primary[_ngcontent-%COMP%]{background:#625df5!important;color:#fff!important}.s-primary[_ngcontent-%COMP%]:not(.s-disabled):hover{background:#4f4bbf!important}.s-disabled[_ngcontent-%COMP%]{background:#939393!important;cursor:not-allowed!important} .velt-mat-dialog-container.snippyly-report-bug-dialog mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface{background-color:transparent!important;padding:0!important;margin:0!important;border-radius:20px!important} .velt-mat-bottom-sheet-container.snippyly-report-bug-bottom-sheet .mat-bottom-sheet-container{background-color:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important} .velt-mat-bottom-sheet-container.snippyly-report-bug-bottom-sheet .mat-bottom-sheet-container .s-report-bug-modal{width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important} .velt-mat-bottom-sheet-container.snippyly-report-bug-bottom-sheet .mat-bottom-sheet-container .s-report-bug-modal .s-button{flex-grow:1!important}@media screen and (max-width:425px){ .snippyly-report-bug-dialog{width:100vw!important;max-width:100vw!important;height:100vh!important} .snippyly-report-bug-dialog .s-report-bug-modal{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important} .snippyly-report-bug-dialog .s-report-bug-modal .s-report-bug-body{flex-grow:1!important} .snippyly-report-bug-dialog .s-report-bug-modal .s-button{flex-grow:1!important}}"],changeDetection:0});let o=i;return o})();var le=["*"];function pe(o,i){o&1&&(a(0,"div",5),O(),a(1,"svg",6),I(2,"path",7),m(),P(),a(3,"span",8),b(4),u(5,"translate"),m()()),o&2&&(l(4),ut(h(5,1,"Give feedback")))}function de(o,i){o&1&&(a(0,"div",5),O(),a(1,"svg",9),I(2,"path",10),m(),P(),a(3,"span",8),b(4),u(5,"translate"),m()()),o&2&&(l(4),ut(h(5,1,"Report bugs")))}function ge(o,i){o&1&&(a(0,"div",5),O(),a(1,"svg",11),I(2,"path",12)(3,"path",13),m(),P(),a(4,"span",8),b(5),u(6,"translate"),m()()),o&2&&(l(5),ut(h(6,1,"Contact us")))}function ue(o,i){if(o&1&&(a(0,"div",3),T(1,pe,6,3,"div",4)(2,de,6,3,"div",4)(3,ge,7,3,"div",4),m()),o&2){let v=D();f("ngSwitch",v.type),l(),f("ngSwitchCase","feedback"),l(),f("ngSwitchCase","reportBug"),l(),f("ngSwitchCase","contactUs")}}function he(o,i){o&1&&(a(0,"div",14),It(1),m())}var bt=(()=>{let i=class i extends zt{constructor(t,e,n,r,g,s,y,d){super(y,n,void 0,void 0,void 0,d,e),this.analyticsService=t,this.loggingService=e,this.themeService=n,this.dialog=r,this.bottomSheet=g,this.breakpointObserver=s,this.elementRef=y,this.dynamicDataService=d,this.type="feedback",this.showDefaultBtn=L(!0),this.veltElement=!0;try{(y?.nativeElement?.children?.length??0)>0&&this.showDefaultBtn.set(!1)}catch(N){this.loggingService?.catch?.("Error in UserRequestToolComponent constructor child-detect: ",N)}}ngOnDestroy(){try{super.ngOnDestroy()}catch{}}openDialog(){try{switch(this.type){case"feedback":this.openFeedbackDialog();break;case"reportBug":this.openReportBugDialog();break;case"contactUs":this.openContactUsDialog();break;default:break}}catch(t){this.loggingService.catch("Error in UserRequestToolComponent openDialog: ",t)}}openFeedbackDialog(){try{this.analyticsService.trackEvent(E.Events.Feedback.FEEDBACK_BUTTON_CLICKED),this.isMobile()?this.bottomSheet.open(ft,{panelClass:["snippyly-feedback-bottom-sheet","velt-mat-bottom-sheet-container"],backdropClass:"s-background-blur-1"}):this.dialog.open(ft,{panelClass:["snippyly-feedback-dialog","velt-mat-dialog-container"],backdropClass:"s-background-blur-1"})}catch(t){this.loggingService.catch("Error in UserRequestToolComponent openFeedbackDialog: ",t)}}openReportBugDialog(){try{this.analyticsService.trackEvent(E.Events.Bug.BUG_BUTTON_CLICKED),this.isMobile()?this.bottomSheet.open(vt,{panelClass:["snippyly-report-bug-bottom-sheet","velt-mat-bottom-sheet-container"],backdropClass:"s-background-blur-1"}):this.dialog.open(vt,{panelClass:["snippyly-report-bug-dialog","velt-mat-dialog-container"],backdropClass:"s-background-blur-1"})}catch(t){this.loggingService.catch("Error in UserRequestToolComponent openReportBugDialog: ",t)}}openContactUsDialog(){try{this.analyticsService.trackEvent(E.Events.ContactUs.CONTACT_BUTTON_CLICKED),this.isMobile()?this.bottomSheet.open(ht,{panelClass:["snippyly-contact-us-bottom-sheet","velt-mat-bottom-sheet-container"],backdropClass:"s-background-blur-1"}):this.dialog.open(ht,{panelClass:["snippyly-contact-us-dialog","velt-mat-dialog-container"],backdropClass:"s-background-blur-1"})}catch(t){this.loggingService.catch("Error in UserRequestToolComponent openContactUsDialog: ",t)}}isMobile(){return this.breakpointObserver.isMatched("(max-width: 599px)")}};i.\u0275fac=function(e){return new(e||i)(c(M),c(C),c(Ht),c(Vt),c(Nt),c(jt),c(kt),c(qt))},i.\u0275cmp=V({type:i,selectors:[["snippyly-user-request-tool"]],hostVars:1,hostBindings:function(e,n){e&2&&A("data-velt-element",n.veltElement)},inputs:{type:"type"},standalone:!1,features:[Ot],ngContentSelectors:le,decls:3,vars:2,consts:[[1,"user-request-tool-container",3,"click"],[3,"ngSwitch",4,"ngIf"],["class","snippyly-custom-button-container",4,"ngIf"],[3,"ngSwitch"],["class","s-user-request-tool-button",4,"ngSwitchCase"],[1,"s-user-request-tool-button"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg",1,"s-user-request-tool-button-icon"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.5757 5.76422C10.2533 6.07365 9.74414 6.07365 9.4217 5.76422L8.8447 5.2105C8.16934 4.56239 7.25698 4.16667 6.2487 4.16667C4.17763 4.16667 2.4987 5.8456 2.4987 7.91667C2.4987 9.90219 3.57352 11.5417 5.12516 12.8888C6.67813 14.237 8.53486 15.1312 9.64424 15.5876C9.87619 15.683 10.1212 15.683 10.3532 15.5876C11.4625 15.1312 13.3193 14.237 14.8722 12.8888C16.4239 11.5417 17.4987 9.90218 17.4987 7.91667C17.4987 5.8456 15.8198 4.16667 13.7487 4.16667C12.7404 4.16667 11.8281 4.56239 11.1527 5.2105L10.5757 5.76422ZM9.9987 4.00798C9.02545 3.074 7.70411 2.5 6.2487 2.5C3.25716 2.5 0.832031 4.92512 0.832031 7.91667C0.832031 13.2235 6.64065 16.1542 9.01019 17.1289C9.64834 17.3914 10.3491 17.3914 10.9872 17.1289C13.3567 16.1542 19.1654 13.2235 19.1654 7.91667C19.1654 4.92512 16.7402 2.5 13.7487 2.5C12.2933 2.5 10.9719 3.074 9.9987 4.00798Z","fill","#4C5366"],[1,"s-user-request-tool-button-text"],["width","16","height","20","viewBox","0 0 16 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8 17.9996C6.91667 17.9996 5.91267 17.733 4.988 17.1996C4.06267 16.6663 3.33333 15.933 2.8 14.9996H0.975C0.691667 14.9996 0.458333 14.9036 0.275 14.7116C0.0916668 14.5203 0 14.283 0 13.9996C0 13.7163 0.0956668 13.479 0.287 13.2876C0.479 13.0956 0.716667 12.9996 1 12.9996H2.1C2.05 12.6663 2.021 12.333 2.013 11.9996C2.00433 11.6663 2 11.333 2 10.9996H0.975C0.691667 10.9996 0.458333 10.9036 0.275 10.7116C0.0916668 10.5203 0 10.283 0 9.99963C0 9.7163 0.0956668 9.47863 0.287 9.28663C0.479 9.0953 0.716667 8.99963 1 8.99963H2C2 8.6663 2.00433 8.33297 2.013 7.99963C2.021 7.6663 2.05 7.33297 2.1 6.99963H0.975C0.691667 6.99963 0.458333 6.90363 0.275 6.71163C0.0916668 6.5203 0 6.28297 0 5.99963C0 5.7163 0.0956668 5.47863 0.287 5.28663C0.479 5.0953 0.716667 4.99963 1 4.99963H2.8C3.03333 4.6163 3.296 4.25797 3.588 3.92463C3.87933 3.5913 4.21667 3.29963 4.6 3.04963L3.675 2.09963C3.49167 1.89963 3.40433 1.66197 3.413 1.38663C3.421 1.11197 3.51667 0.882968 3.7 0.699635C3.88333 0.516301 4.11667 0.424635 4.4 0.424635C4.68333 0.424635 4.91667 0.516301 5.1 0.699635L6.55 2.14963C7.01667 1.99963 7.49167 1.92463 7.975 1.92463C8.45833 1.92463 8.93333 1.99963 9.4 2.14963L10.9 0.674635C11.1 0.491301 11.3377 0.403635 11.613 0.411635C11.8877 0.420301 12.1167 0.516301 12.3 0.699635C12.4833 0.882968 12.575 1.1163 12.575 1.39963C12.575 1.68297 12.4833 1.9163 12.3 2.09963L11.35 3.04963C11.7333 3.29963 12.0793 3.58697 12.388 3.91163C12.696 4.23697 12.9667 4.59963 13.2 4.99963H15.025C15.3083 4.99963 15.5417 5.0953 15.725 5.28663C15.9083 5.47863 16 5.7163 16 5.99963C16 6.28297 15.904 6.5203 15.712 6.71163C15.5207 6.90363 15.2833 6.99963 15 6.99963H13.9C13.95 7.33297 13.9793 7.6663 13.988 7.99963C13.996 8.33297 14 8.6663 14 8.99963H15.025C15.3083 8.99963 15.5417 9.0953 15.725 9.28663C15.9083 9.47863 16 9.7163 16 9.99963C16 10.283 15.904 10.5203 15.712 10.7116C15.5207 10.9036 15.2833 10.9996 15 10.9996H14C14 11.333 13.996 11.6663 13.988 11.9996C13.9793 12.333 13.95 12.6663 13.9 12.9996H15.025C15.3083 12.9996 15.5417 13.0956 15.725 13.2876C15.9083 13.479 16 13.7163 16 13.9996C16 14.283 15.904 14.5203 15.712 14.7116C15.5207 14.9036 15.2833 14.9996 15 14.9996H13.2C12.6667 15.933 11.9377 16.6663 11.013 17.1996C10.0877 17.733 9.08333 17.9996 8 17.9996ZM8 15.9996C9.1 15.9996 10.0417 15.608 10.825 14.8246C11.6083 14.0413 12 13.0996 12 11.9996V7.99963C12 6.89963 11.6083 5.95797 10.825 5.17463C10.0417 4.3913 9.1 3.99963 8 3.99963C6.9 3.99963 5.95833 4.3913 5.175 5.17463C4.39167 5.95797 4 6.89963 4 7.99963V11.9996C4 13.0996 4.39167 14.0413 5.175 14.8246C5.95833 15.608 6.9 15.9996 8 15.9996ZM7 12.9996H9.025C9.30833 12.9996 9.54167 12.9036 9.725 12.7116C9.90833 12.5203 10 12.283 10 11.9996C10 11.7163 9.90433 11.4786 9.713 11.2866C9.521 11.0953 9.28333 10.9996 9 10.9996H6.975C6.69167 10.9996 6.45833 11.0953 6.275 11.2866C6.09167 11.4786 6 11.7163 6 11.9996C6 12.283 6.096 12.5203 6.288 12.7116C6.47933 12.9036 6.71667 12.9996 7 12.9996ZM7 8.99963H9.025C9.30833 8.99963 9.54167 8.90364 9.725 8.71163C9.90833 8.5203 10 8.28297 10 7.99963C10 7.7163 9.90433 7.47863 9.713 7.28663C9.521 7.0953 9.28333 6.99963 9 6.99963H6.975C6.69167 6.99963 6.45833 7.0953 6.275 7.28663C6.09167 7.47863 6 7.7163 6 7.99963C6 8.28297 6.096 8.5203 6.288 8.71163C6.47933 8.90364 6.71667 8.99963 7 8.99963Z","fill","#4C5366"],["width","20","height","20","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M20 5H4C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V6C21 5.44772 20.5523 5 20 5ZM4 3C2.34315 3 1 4.34315 1 6V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V6C23 4.34315 21.6569 3 20 3H4Z","fill","#777E91"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.2318 7.35984C5.58537 6.93556 6.21593 6.87824 6.64021 7.2318L11.3598 11.1648C11.7307 11.4739 12.2694 11.4739 12.6402 11.1648L17.3598 7.2318C17.7841 6.87824 18.4147 6.93556 18.7682 7.35984C19.1218 7.78412 19.0645 8.41468 18.6402 8.76825L13.9206 12.7013C12.808 13.6284 11.192 13.6284 10.0795 12.7013L5.35984 8.76825C4.93556 8.41468 4.87824 7.78412 5.2318 7.35984Z","fill","#777E91"],[1,"snippyly-custom-button-container"]],template:function(e,n){e&1&&(Pt(),a(0,"div",0),w("click",function(){return n.openDialog()}),T(1,ue,4,4,"div",1)(2,he,2,0,"div",2),m()),e&2&&(l(),f("ngIf",n.showDefaultBtn()),l(),f("ngIf",!n.showDefaultBtn()))},dependencies:[q,Et,Tt,H],styles:["html[_ngcontent-%COMP%]{--velt-base-rem-unit: 1}*[data-snippyly-element=true][_ngcontent-%COMP%], *[data-velt-element=true][_ngcontent-%COMP%]{font-family:var(--velt-default-font-family)}velt-wireframe[_ngcontent-%COMP%]{display:none!important}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}.user-request-tool-container[_ngcontent-%COMP%]{display:inline-block!important;cursor:pointer!important}.user-request-tool-container[_ngcontent-%COMP%] .s-user-request-tool-button[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;gap:calc((.5rem + 0px) * var(--velt-base-rem-unit))!important;padding:calc((.5rem + 0px) * var(--velt-base-rem-unit)) calc((1rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:100px!important}.user-request-tool-container[_ngcontent-%COMP%] .s-user-request-tool-button[_ngcontent-%COMP%]:hover{background:#ededed!important}.user-request-tool-container[_ngcontent-%COMP%] .s-user-request-tool-button[_ngcontent-%COMP%] .s-user-request-tool-button-text[_ngcontent-%COMP%]{font-size:14px!important;color:#4c5366!important;font-weight:400!important}"],changeDetection:0});let o=i;return o})();var ie=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=xt({imports:[Ft,Ut,Bt,At,Lt,Wt]});let o=i;return o})();function fe(o){o.get(C).log("%c[WB] Loading user-request feature chunk","color: blue;");let t=wt(ie,o).injector;ne(t,Ct.TAGS.VELT_USER_REQUEST_TOOL,bt),ne(t,Ct.TAGS.SNIPPYLY_USER_REQUEST_TOOL,bt)}function ne(o,i,v){if(customElements.get(i))return;let t=Rt(v,{injector:o});customElements.define(i,t)}export{fe as default};