PageSourceSearch

https://next.quickmail.com/packs/default-app_javascript_angular-en…pp-attributes_ap-301eaa.c9b1533f411f2bfa.js

js quickmail.com collected 2026-10-01 10:38:38 UTC 15,234 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkquickmail=self.webpackChunkquickmail||[]).push([["default-app_javascript_angular-engine_projects_quickmail_app_app-components_app-attributes_ap-301eaa"],{758:(P,h,o)=>{o.d(h,{x:()=>b});var t=o(21413),v=o(2615);let b=(()=>{class _{selectedAttribute=new t.B;selectedAttribute$=this.selectedAttribute.asObservable();constructor(){}setAttribute(m){this.selectedAttribute.next(m)}static \u0275fac=function(y){return new(y||_)};static \u0275prov=v.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},33274:(P,h,o)=>{o.d(h,{m:()=>C});var t=o(73664),v=o(24072),b=o(11158),_=o(88141),e=o(2615),m=o(44260),y=o(758),g=o(72200),x=o(69766),w=o(52072),A=o(12101),R=o(48578),E=o(57167),M=o(92696),S=o(47362);function I(n,d){if(1&n){const i=t.RV6();t.j41(0,"ui-icon",4),t.bIt("click",function(){const l=e.eBV(i).click;return e.Njj(l())}),t.k0s()}if(2&n){const i=t.XpG();t.AVh("attributes-button--active",i.isActive),t.Y8G("name","brackets-curly")("size","sm")("disabled",i.disabled)("tooltip","Fields")}}function O(n,d){if(1&n){const i=t.RV6();t.j41(0,"div",6)(1,"span"),t.EFF(2,"Lead fields"),t.k0s(),t.nrm(3,"ui-icon",7),t.j41(4,"div",8)(5,"ui-filter-list",9),t.bIt("onSelect",function(l){e.eBV(i);const p=t.XpG(2);return e.Njj(p.handleSelect(l))}),t.k0s()()()}if(2&n){const i=t.XpG(2);t.R7$(3),t.Y8G("name","chevron-right")("size","xs"),t.R7$(2),t.Y8G("collection",i.prospectAttributes)("icon","brackets-curly")("emptyIcon","brackets-curly")("emptyTitle","No attributes found")}}function F(n,d){if(1&n){const i=t.RV6();t.j41(0,"div",6)(1,"span"),t.EFF(2,"Custom fields"),t.k0s(),t.nrm(3,"ui-icon",7),t.j41(4,"div",8)(5,"ui-filter-list",9),t.bIt("onSelect",function(l){e.eBV(i);const p=t.XpG(2);return e.Njj(p.handleSelect(l))}),t.k0s()()()}if(2&n){const i=t.XpG(2);t.R7$(3),t.Y8G("name","chevron-right")("size","xs"),t.R7$(2),t.Y8G("collection",i.customAttributes)("icon","brackets-curly")("emptyIcon","brackets-curly")("emptyTitle","No attributes found")}}function r(n,d){if(1&n){const i=t.RV6();t.j41(0,"div",6)(1,"span"),t.EFF(2,"Company"),t.k0s(),t.nrm(3,"ui-icon",7),t.j41(4,"div",8)(5,"ui-filter-list",10),t.bIt("onSelect",function(l){e.eBV(i);const p=t.XpG(2);return e.Njj(p.handleSelect(l))}),t.k0s()()()}if(2&n){const i=t.XpG(2);t.R7$(3),t.Y8G("name","chevron-right")("size","xs"),t.R7$(2),t.Y8G("collection",i.companyAttributes)("icon","brackets-curly")("filter",!1)("emptyIcon","brackets-curly")("emptyTitle","No attributes found")}}function f(n,d){if(1&n){const i=t.RV6();t.j41(0,"div",6)(1,"span"),t.EFF(2,"Inbox"),t.k0s(),t.nrm(3,"ui-icon",7),t.j41(4,"div",8)(5,"ui-filter-list",10),t.bIt("onSelect",function(l){e.eBV(i);const p=t.XpG(2);return e.Njj(p.handleSelect(l))}),t.k0s()()()}if(2&n){const i=t.XpG(2);t.R7$(3),t.Y8G("name","chevron-right")("size","xs"),t.R7$(2),t.Y8G("collection",i.inboxAttributes)("icon","brackets-curly")("filter",!1)("emptyIcon","brackets-curly")("emptyTitle","No attributes found")}}function a(n,d){if(1&n){const i=t.RV6();t.j41(0,"div",6)(1,"span"),t.EFF(2,"Formula"),t.k0s(),t.nrm(3,"ui-icon",7),t.j41(4,"div",8)(5,"ui-filter-list",10),t.bIt("onSelect",function(l){e.eBV(i);const p=t.XpG(2);return e.Njj(p.handleSelect(l,["Unsubscribe"]))}),t.k0s()()()}if(2&n){const i=t.XpG(2);t.R7$(3),t.Y8G("name","chevron-right")("size","xs"),t.R7$(2),t.Y8G("collection",i.precomputedAttributes)("icon","brackets-curly")("filter",!1)("emptyIcon","brackets-curly")("emptyTitle","No attributes found")}}function c(n,d){if(1&n&&(t.j41(0,"div"),t.DNE(1,O,6,6,"div",5)(2,F,6,6,"div",5)(3,r,6,7,"div",5)(4,f,6,7,"div",5)(5,a,6,7,"div",5),t.k0s()),2&n){const i=t.XpG();t.R7$(),t.Y8G("ngIf",i.showLeadFields),t.R7$(),t.Y8G("ngIf",i.showCustomFields),t.R7$(),t.Y8G("ngIf",i.showCompanyFields),t.R7$(),t.Y8G("ngIf",i.showInboxFields),t.R7$(),t.Y8G("ngIf",i.showFormulaFields)}}function u(n,d){1&n&&t.nrm(0,"ui-loading")}let C=(()=>{class n{accountService;workspaceService;attributesService;id;disabled=!1;isActive=!1;showLeadFields=!0;showCustomFields=!0;showCompanyFields=!0;showInboxFields=!0;showFormulaFields=!0;onSelect=new t.bkB;workspaceId;attributes$;customAttributes;prospectAttributes;companyAttributes;inboxAttributes;precomputedAttributes;constructor(i,s,l){this.accountService=i,this.workspaceService=s,this.attributesService=l}ngOnInit(){this.workspaceId=this.workspaceService.id.getValue(),this.attributes$=this.accountService.prospectAttributes(this.workspaceId).pipe((0,_.M)(i=>{i&&(this.customAttributes=i.map(({name:s})=>({name:s,value:`lead.custom.${s}`,transformed:!1})),this.prospectAttributes=b.x.filter(s=>"Lead"===s.name)[0].attributes,this.companyAttributes=b.x.filter(s=>"Company"===s.name)[0].attributes,this.inboxAttributes=b.x.filter(s=>
1"Inbox"===s.name)[0].attributes,this.precomputedAttributes=b.x.filter(s=>"Precomputed"===s.name)[0].attributes)}))}handleSelect(i,s=[]){s.includes(i.name)?this.attributesService.setAttribute({id:this.id,value:i.value}):this.attributesService.setAttribute({id:this.id,value:`{{${i.value}}}`})}static \u0275fac=function(s){return new(s||n)(t.rXU(v.D),t.rXU(m.j),t.rXU(y.x))};static \u0275cmp=t.VBU({type:n,selectors:[["app-attributes"]],inputs:{id:"id",disabled:"disabled",isActive:"isActive",showLeadFields:"showLeadFields",showCustomFields:"showCustomFields",showCompanyFields:"showCompanyFields",showInboxFields:"showInboxFields",showFormulaFields:"showFormulaFields"},outputs:{onSelect:"onSelect"},standalone:!1,decls:6,vars:6,consts:[["loading",""],[3,"dropPosition","dropSize"],["dropdownButton",""],[4,"ngIf","ngIfElse"],[1,"attributes-button",3,"click","name","size","disabled","tooltip"],["dropdownItem","",4,"ngIf"],["dropdownItem",""],[3,"name","size"],["dropdownSubMenu",""],[3,"onSelect","collection","icon","emptyIcon","emptyTitle"],[3,"onSelect","collection","icon","filter","emptyIcon","emptyTitle"]],template:function(s,l){if(1&s&&(t.j41(0,"ui-dropdown",1),t.DNE(1,I,1,6,"ng-template",2)(2,c,6,5,"div",3),t.nI1(3,"async"),t.k0s(),t.DNE(4,u,1,0,"ng-template",null,0,t.C5r)),2&s){const p=t.sdS(5);t.Y8G("dropPosition","bottom-end")("dropSize","md"),t.R7$(2),t.Y8G("ngIf",t.bMT(3,4,l.attributes$))("ngIfElse",p)}},dependencies:[g.bT,x.P,x.x,w.M,A.c,R.R,E.d,M.g,S.K,g.Jj],styles:[".attributes-button[_ngcontent-%COMP%]{display:inline-flex;height:1.5rem;width:1.5rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.attributes-button[_ngcontent-%COMP%]:hover{background-color:hsl(var(--twc-blue-500) / .2)}.attributes-button[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}"]})}return n})()},47197:(P,h,o)=>{o.d(h,{V:()=>F});var t=o(21413),v=o(70152),b=o(23294),_=o(96697),e=o(73664),m=o(17705),y=o(51441),g=o(72200),x=o(48578),w=o(85498),R=o(15186);!function A(){w.t1.register({id:"overlapSlice",beforeDatasetsDraw(r,f,a){const{ctx:c,data:u}=r,{datasets:C}=r.data;let n=!1;for(let d=0;d<C.length;d+=1)n=n||C[d].data.length>0;if(n){const d=r.getDatasetMeta(0).data[0].outerRadius,i=r.getDatasetMeta(0).data[0].innerRadius;c.save(),u.datasets.forEach((s,l)=>{r.getDatasetMeta(l).data[0].innerRadius=i,r.getDatasetMeta(l).data[0].outerRadius=d})}}})}();let E=(()=>{class r{percentage;color;options={animation:!1,datasets:{doughnut:{borderRadius:100,rotation:180}},plugins:{tooltip:{enabled:!1},legend:{display:!1},overlapSlice:!0}};data={};constructor(){}ngOnChanges(a){const c=Math.min(100,Math.max(0,this.percentage));this.data={datasets:[{data:[100],backgroundColor:["rgb(241 245 249)"],borderWidth:0,order:2,circumference:270},{data:[c],backgroundColor:[this.color],borderWidth:0,order:1,circumference:c/100*270}]}}static \u0275fac=function(c){return new(c||r)};static \u0275cmp=e.VBU({type:r,selectors:[["ui-gauge"]],inputs:{percentage:"percentage",color:"color"},standalone:!1,features:[e.OA$],decls:6,vars:7,consts:[[1,"gauge"],["baseChart","",3,"data","options","type"],[1,"gauge__inner"]],template:function(c,u){1&c&&(e.j41(0,"div",0),e.nrm(1,"canvas",1),e.j41(2,"div",2)(3,"p"),e.EFF(4),e.nI1(5,"percent"),e.k0s()()()),2&c&&(e.R7$(),e.Y8G("data",u.data)("options",u.options)("type","doughnut"),e.R7$(3),e.JRh(e.i5U(5,4,u.percentage/100,"1.0")))},dependencies:[R.j9,g.m1],styles:[".gauge[_ngcontent-%COMP%]{position:relative}.gauge__inner[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;height:100%;width:100%;align-items:center;justify-content:center;font-size:.8125rem;font-weight:500;letter-spacing:-.025em}"]})}return r})();function M(r,f){if(1&r&&(e.j41(0,"div",8)(1,"div",9),e.nrm(2,"ui-gauge",10),e.j41(3,"div",11)(4,"div",12)(5,"h6"),e.EFF(6),e.k0s(),e.j41(7,"a",13),e.nrm(8,"ui-icon",14),e.k0s()(),e.j41(9,"div",15),e.EFF(10),e.k0s()()(),e.j41(11,"div",16)(12,"div")(13,"h6"),e.EFF(14,"Characters"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.nI1(17,"number"),e.k0s()(),e.j41(18,"div")(19,"h6"),e.EFF(20,"Words"),e.k0s(),e.j41(21,"span"),e.EFF(22),e.nI1(23,"number"),e.k0s()()()()),2&r){const a=e.XpG(2);e.R7$(2),e.Y8G("percentage",a.readabilityScore.score)("color",a.gaugeColor()),e.R7$(4),e.SpI("Readability: ",a.readabilityScore.gradeLevel),e.R7$(2),e.Aen("light"),e.Y8G("name","
1info-circle")("size","sm"),e.R7$(2),e.JRh(a.readabilityScore.helpText),e.R7$(6),e.JRh(e.bMT(17,10,a.readabilityScore.characterCount)),e.R7$(6),e.JRh(e.bMT(23,12,a.readabilityScore.wordCount))}}function S(r,f){if(1&r&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"percent"),e.k0s()),2&r){const a=e.XpG(2);e.R7$(),e.JRh(e.i5U(2,1,a.readabilityScore.score/100,"1.0"))}}function I(r,f){1&r&&(e.j41(0,"span",17),e.EFF(1,"..."),e.k0s())}function O(r,f){if(1&r&&(e.j41(0,"div",2),e.DNE(1,M,24,14,"div",3),e.j41(2,"div",4),e.nrm(3,"ui-icon",5),e.DNE(4,S,3,4,"span",6)(5,I,2,0,"span",7),e.k0s()()),2&r){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.loadingScore),e.R7$(2),e.Aen("regular"),e.Y8G("name","book-open")("ngClass",a.readabilityClass()),e.R7$(),e.Y8G("ngIf",!a.loadingScore),e.R7$(),e.Y8G("ngIf",a.loadingScore)}}let F=(()=>{class r{cdRef;utilityService;text;textChange=new t.B;readabilityScore=null;loadingScore=!1;subscription;constructor(a,c){this.cdRef=a,this.utilityService=c}ngOnInit(){this.subscription=this.textChange.pipe((0,v.B)(5e3),(0,b.F)()).subscribe(a=>this.getreadabilityScore(a))}ngOnChanges(a){var c=a.text.currentValue;"string"!=typeof c||c.length<10?(this.readabilityScore=null,this.cdRef.markForCheck()):null==this.readabilityScore?this.getreadabilityScore(c):(this.loadingScore=!0,this.textChange.next(c))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}getreadabilityScore(a){this.utilityService.getTextReadabilityScore(a).pipe((0,_.s)(1)).subscribe(c=>{this.readabilityScore=c,this.loadingScore=!1,this.cdRef.markForCheck()})}readabilityClass(){return null==this.readabilityScore?.score?null:this.readabilityScore.score>60?"text-green-500":this.readabilityScore.score<40?"text-red-500":"text-orange"}gaugeColor(){return null==this.readabilityScore?.score?null:this.readabilityScore.score>60?"#48bb78":this.readabilityScore.score<40?"#E94141":"#FF5B00"}static \u0275fac=function(c){return new(c||r)(e.rXU(m.gRc),e.rXU(y.Q))};static \u0275cmp=e.VBU({type:r,selectors:[["app-readability"]],inputs:{text:"text"},standalone:!1,features:[e.OA$],decls:2,vars:1,consts:[[1,"readability"],["class","readability__wrapper",4,"ngIf"],[1,"readability__wrapper"],["class","readability__tooltip",4,"ngIf"],[1,"readability__badge"],[3,"name","ngClass"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"readability__tooltip"],[1,"flex","items-center","justify-around","gap-3","px-4","py-3"],[1,"h-16","w-16",3,"percentage","color"],[1,"flex","flex-col","gap-1"],[1,"flex","items-center","gap-1"],["href","https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests#Flesch_reading_ease","target","_blank","rel","noopener noreferrer",1,"inline-flex"],[3,"name","size"],[1,"text-xs","text-purple-dark"],[1,"readability__tooltip-footer"],[1,"loading"]],template:function(c,u){1&c&&(e.j41(0,"div",0),e.DNE(1,O,6,7,"div",1),e.k0s()),2&c&&(e.R7$(),e.Y8G("ngIf",null!=(null==u.readabilityScore?null:u.readabilityScore.score)))},dependencies:[g.YU,g.bT,x.R,E,g.QX,g.m1],styles:[".readability[_ngcontent-%COMP%]{margin-bottom:1rem;margin-left:1rem;height:2.5rem}.readability__wrapper[_ngcontent-%COMP%]{display:inline-block;font-size:.8125rem;font-weight:500;letter-spacing:-.025em}.readability__tooltip[_ngcontent-%COMP%]{position:absolute;bottom:3.5rem;display:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));--tw-ring-opacity: .05}.readability__wrapper[_ngcontent-%COMP%]:hover   .readability__tooltip[_ngcontent-%COMP%]{display:inline-block}.readability__tooltip-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-around;border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding:.75rem;font-size:.75rem}.readability__tooltip-footer[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.readability__tooltip-footer[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-left:.375rem;padding-right:.375rem;font-weight:500;--tw-text-opacity: 1;color:rgb(105 107 143 / var(--tw-text-opacity, 1))}.readability__tooltip[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .readability__tooltip[_ngcontent-%COMP%]   small[_ngcontent-%COMP%], .readability__badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:500;--tw-text-opacity: 1;color:rgb(105 107 143 / var(--tw-text-opacity, 1))}.readability__badge[_ngcontent-%COMP%]{margin-top:.5rem;display:inline-flex;align-items:center;gap:.5rem;border-radius:.25rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-left:.375rem;padding-right:.375rem;padding-top:1px;padding-bottom:1px;line-height:1.75rem}.loading[_ngcontent-%COMP%]{clip-path:inset(0 1.5ch 0 0);animation:_ngcontent-%COMP%_l 1s steps(4) infinite}@keyframes _ngcontent-%COMP%_l{to{clip-path:inset(0 -.5ch 0 0)}}"],changeDetection:0})}return r})()}}]);

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.