1import{b as In}from"./chunk-VTOBMVP3.js";import"./chunk-I5TOR7VV.js";import"./chunk-56HDRBEP.js";import{a as gn}from"./chunk-OECFPRUW.js";import"./chunk-V7FR4F5A.js";import"./chunk-ZCBRHQOD.js";import"./chunk-H7LTWX3M.js";import"./chunk-JDOSZSKS.js";import"./chunk-MHIBWGKF.js";import"./chunk-QTANVVD2.js";import"./chunk-CJ5ZJZYN.js";import{a as fn}from"./chunk-LIXRJOGO.js";import"./chunk-5LUH6GO2.js";import{a as vn}from"./chunk-C4KGZS3Z.js";import"./chunk-VVHIYQ7K.js";import"./chunk-BAU5ZLDS.js";import"./chunk-4IUNS4QH.js";import"./chunk-4LF2VYII.js";import"./chunk-IWC72GED.js";import"./chunk-BNKYTUBH.js";import"./chunk-U3E5VNW5.js";import"./chunk-4NHQTIKC.js";import"./chunk-KXSJB5MB.js";import"./chunk-MDUIKFG7.js";import"./chunk-ZGQR5PGQ.js";import"./chunk-KFXCDM77.js";import"./chunk-PKYWPTUK.js";import"./chunk-VFQFWHWZ.js";import"./chunk-DNSEV4C6.js";import{M as sn,N as _n,d as tn,f as F,i as on,j as an,k as ln,n as cn,q as rn,y as pn,z as dn}from"./chunk-DZKEM7WU.js";import{a as un}from"./chunk-WEAAX2TA.js";import{a as mn}from"./chunk-JG2LI2RU.js";import"./chunk-67JGERB2.js";import"./chunk-EKL76X72.js";import{u as en}from"./chunk-ICLHAEQS.js";import{i as W,s as Q,u as X,x as nn}from"./chunk-BO2XYCVP.js";import{$c as b,Ad as q,Bb as j,Bd as I,Cb as o,Cc as O,Dc as w,De as Y,Fc as S,Fd as k,Fe as Z,Hc as h,Ja as y,Jc as r,Je as K,Ka as M,Nb as x,Tb as D,Tc as E,Ub as N,Vc as T,Xc as A,Yc as l,Zb as f,Zc as v,_c as p,ad as R,bd as z,kd as L,oc as _,qc as m,qd as V,qe as H,rd as U,re as G,se as J,vc as s,wc as a,xc as c,ya as B,yc as C,zd as g}from"./chunk-XQMX55VC.js";var hn=(e,i)=>({paid:e,payment_status:i}),bn=e=>({invalid_input:e});function yn(e,i){e&1&&C(0,"img",30)}function Mn(e,i){e&1&&C(0,"i",31)}function Pn(e,i){if(e&1){let n=S();a(0,"a",28),h("click",function(){y(n);let d=r();return M(d.recalculateTax())}),f(1,yn,1,0,"img",5)(2,Mn,1,0,"i",29),l(3," Recalculate Tax "),c()}if(e&2){let n=r();o(),s("ngIf",n.recalculateTaxSpinner),o(),s("ngIf",!n.recalculateTaxSpinner)}}function On(e,i){e&1&&C(0,"img",30)}function wn(e,i){e&1&&C(0,"i",32)}function Sn(e,i){if(e&1&&(a(0,"p")(1,"span",33),l(2),c()()),e&2){let n=r();o(2),b("Contract Term: ",n.invoiceInfo==null?null:n.invoiceInfo.subscription_contract_term_count," ",n.invoiceInfo==null?null:n.invoiceInfo.subscription_contract_term_type)}}function En(e,i){if(e&1&&(a(0,"p")(1,"span"),l(2),c()()),e&2){let n=r();o(2),b("Billing Cycle: ",n.invoiceInfo==null?null:n.invoiceInfo.start_date_formatted," - ",n.invoiceInfo==null?null:n.invoiceInfo.end_date_formatted)}}function Tn(e,i){if(e&1&&(a(0,"p")(1,"span"),l(2),c()()),e&2){let n=r();o(2),p("Purchase Order: ",n.invoiceInfo!=null&&n.invoiceInfo.corporate_purchase_order?n.invoiceInfo==null?null:n.invoiceInfo.corporate_purchase_order:"-")}}function zn(e,i){if(e&1&&l(0),e&2){let n=r(2);p(" ",n.business_name," ")}}function kn(e,i){if(e&1&&l(0),e&2){let n=r(3);p(" ",n.invoiceInfo==null?null:n.invoiceInfo.corporate_name," ")}}function Fn(e,i){if(e&1&&_(0,zn,1,1)(1,kn,1,1),e&2){let n=r();m(n.business_name?0:1)}}function Bn(e,i){if(e&1&&l(0),e&2){let n=r(2);p(" ",n.invoiceInfo==null?null:n.invoiceInfo.corporate_name," ")}}function jn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r();o(2),v(n.business_name)}}function Dn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r();o(2),v(n.address)}}function Nn(e,i){if(e&1&&l(0),e&2){let n=r(2);p(" ",n.city,",")}}function An(e,i){if(e&1&&l(0),e&2){let n=r(2);p(" ",n.state,",")}}function Rn(e,i){if(e&1&&(a(0,"p")(1,"span",11),_(2,Nn,1,1),_(3,An,1,1),l(4),c()()),e&2){let n=r();o(2),m(n.city?2:-1),o(),m(n.state?3:-1),o(),p(" ",n.billing_zip)}}function $n(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r();o(2),p("ATTN: ",n.attn)}}function Ln(e,i){if(e&1&&(a(0,"p")(1,"span",11),_(2,Fn,2,1)(3,Bn,1,1),c()(),_(4,jn,3,1,"p"),_(5,Dn,3,1,"p"),_(6,Rn,5,3,"p"),_(7,$n,3,1,"p")),e&2){let n=i;o(2),m(n.gateway_id==2?2:3),o(2),m(n.gateway_id!=2&&n.business_name?4:-1),o(),m(n.address&&n.address!="null"?5:-1),o(),m(n.city||n.state?6:-1),o(),m(n.attn?7:-1)}}function Vn(e,i){if(e&1&&l(0),e&2){let n=r(3);p(" ",n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.name," ")}}function Un(e,i){if(e&1&&l(0),e&2){let n=r(3);p(" ",n.invoiceInfo==null?null:n.invoiceInfo.corporate_name," ")}}function qn(e,i){if(e&1&&_(0,Vn,1,1)(1,Un,1,1),e&2){let n=r(2);m(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.name?0:1)}}function Hn(e,i){if(e&1&&l(0),e&2){let n=r(2);p(" ",n.invoiceInfo==null?null:n.invoiceInfo.corporate_name," ")}}function Gn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(2);o(2),v(n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.name)}}function Jn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(2);o(2),v(n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.address)}}function Yn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(2);o(2),R("",n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.city,", ",n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.state,", ",n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.billing_zip)}}function Zn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(2);o(2),p("ATTN: ",n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.attn)}}function Kn(e,i){if(e&1&&(a(0,"p")(1,"span",11),_(2,qn,2,1)(3,Hn,1,1),c()(),_(4,Gn,3,1,"p"),_(5,Jn,3,1,"p"),_(6,Yn,3,3,"p"),_(7,Zn,3,1,"p")),e&2){let n=r();o(2),m((n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.gateway_id)==2?2:3),o(2),m((n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.gateway_id)!=2&&(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.name)?4:-1),o(),m(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.address&&(n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.address)!="null"?5:-1),o(),m(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.city?6:-1),o(),m(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.attn?7:-1)}}function Wn(e,i){if(e&1&&(O(0),a(1,"p")(2,"span",11),l(3),c()(),w()),e&2){let n=r();o(3),v(n.invoiceInfo==null?null:n.invoiceInfo.corporate_name)}}function Qn(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(2);o(2),v(n.invoiceInfo==null?null:n.invoiceInfo.shipping_first_name)}}function Xn(e,i){if(e&1&&(a(0,"div"),_(1,Qn,3,1,"p"),a(2,"p")(3,"span",11),l(4),c()(),a(5,"p")(6,"span",11),l(7),c()()()),e&2){let n=r();o(),m(n.invoiceInfo!=null&&n.invoiceInfo.shipping_first_name?1:-1),o(3),b("",n.invoiceInfo==null?null:n.invoiceInfo.shipping_address,"",n.invoiceInfo!=null&&n.invoiceInfo.shipping_building?", "+(n.invoiceInfo==null?null:n.invoiceInfo.shipping_building):""),o(3),z("",n.invoiceInfo==null?null:n.invoiceInfo.shipping_city,", ",n.invoiceInfo==null?null:n.invoiceInfo.shipping_state," ",n.invoiceInfo==null?null:n.invoiceInfo.shipping_zip,"",n.invoiceInfo.shipping_country?", "+n.invoiceInfo.shipping_country:"")}}function ne(e,i){if(e&1&&(a(0,"p")(1,"span",11),l(2),c()()),e&2){let n=r(3);o(2),v(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.first_name)}}function ee(e,i){if(e&1&&(a(0,"div"),_(1,ne,3,1,"p"),a(2,"p")(3,"span",11),l(4),c()(),a(5,"p")(6,"span",11),l(7),c()()()),e&2){let n=r(2);o(),m(!(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null)&&n.invoiceInfo.corporate_shipping_address.first_name?1:-1),o(3),b("",n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.address,"",!(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null)&&n.invoiceInfo.corporate_shipping_address.building?", "+(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.building):""),o(3),z("",n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.city,", ",n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.state," ",n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.zip,"",!(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null)&&n.invoiceInfo.corporate_shipping_address.country?", "+(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null?null:n.invoiceInfo.corporate_shipping_address.country):""," ")}}function te(e,i){if(e&1&&_(0,ee,8,7,"div"),e&2){let n=r();m(!(n.invoiceInfo==null||n.invoiceInfo.corporate_shipping_address==null)&&n.invoiceInfo.corporate_shipping_address.address?0:-1)}}function ie(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),v(n.invoiceInfo==null?null:n.invoiceInfo.payments[0].gateway_name)}}function oe(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),p(" ",n.invoiceInfo!=null&&n.invoiceInfo.authorization&&(!(n.invoiceInfo==null||n.invoiceInfo.authorization==null)&&n.invoiceInfo.authorization.gateway_name)?n.invoiceInfo==null||n.invoiceInfo.authorization==null?null:n.invoiceInfo.authorization.gateway_name:"-"," ")}}function ae(e,i){if(e&1&&(a(0,"p")(1,"span"),l(2),c()()),e&2){let n=r();o(2),p("Payment Terms: ",n.invoiceInfo!=null&&n.invoiceInfo.subscription_payment_term_days?(n.invoiceInfo==null?null:n.invoiceInfo.subscription_payment_term_days)+" Day(s) ":"-")}
1}function le(e,i){if(e&1&&(a(0,"p")(1,"span"),l(2),c()()),e&2){let n=r();o(2),p("Last 4 Digits: ",n.invoiceInfo==null?null:n.invoiceInfo.payments[0].card_number)}}function ce(e,i){if(e&1&&(a(0,"p")(1,"span"),l(2),c()()),e&2){let n=r(2);o(2),p("Last 4 Digits: ",n.invoiceInfo==null?null:n.invoiceInfo.authorization.card_number)}}function re(e,i){if(e&1&&f(0,ce,3,1,"p",15),e&2){let n=r();s("ngIf",(n.invoiceInfo==null?null:n.invoiceInfo.authorization)&&(n.invoiceInfo==null?null:n.invoiceInfo.authorization.card_number)&&(n.invoiceInfo==null?null:n.invoiceInfo.authorization.card_number)!==null)}}function pe(e,i){if(e&1&&(a(0,"tr")(1,"td"),l(2),c(),a(3,"td",24),l(4),c(),a(5,"td",24),l(6),g(7,"number"),c(),a(8,"td",24),l(9),g(10,"number"),c()()),e&2){let n=i.$implicit;o(2),v(n.name),o(2),v(n.quantity),o(2),p("$",I(7,4,n.items[0].price,"0.2-5")),o(3),p("$",I(10,7,n.total_price,"1.2-2"))}}function de(e,i){if(e&1&&f(0,pe,11,10,"tr",34),e&2){let n=r();s("ngForOf",n.invoiceInfo==null?null:n.invoiceInfo.services)}}function se(e,i){e&1&&(O(0),a(1,"span",35),l(2,"Search Voided"),c(),w())}function _e(e,i){if(e&1&&(l(0),g(1,"number")),e&2){let n=r().$implicit;p(" $",I(1,1,n.total_price,"1.2-2")," ")}}function me(e,i){if(e&1&&(a(0,"tr")(1,"td"),l(2),c(),a(3,"td",24),l(4),c(),a(5,"td",24),l(6),g(7,"number"),c(),a(8,"td",24),f(9,se,3,0,"ng-container",22)(10,_e,2,4,"ng-template",null,1,k),c()()),e&2){let n=i.$implicit,t=E(11);o(2),v(n.description),o(2),v(n.quantity),o(2),p("$",I(7,5,n.price,"1.2-2")),o(3),s("ngIf",n.status_id==4)("ngIfElse",t)}}function ue(e,i){if(e&1&&f(0,me,12,8,"tr",34),e&2){let n=r();s("ngForOf",n.invoiceInfo==null?null:n.invoiceInfo.items)}}function fe(e,i){e&1&&(a(0,"tr")(1,"td",36),l(2," No Data "),c()())}function ve(e,i){if(e&1&&(a(0,"p"),l(1,"Discount: "),a(2,"span"),l(3),g(4,"number"),c()()),e&2){let n=r();o(3),p(" ",n.invoiceInfo!=null&&n.invoiceInfo.coupon_discount_percent?I(4,1,n.invoiceInfo.coupon_discount_percent,"0.0-5"):"0","%")}}function ge(e,i){if(e&1&&(a(0,"span",38),l(1),c()),e&2){let n=r(2);o(),p("(",n.invoiceInfo.adjustment_reason,")")}}function Ie(e,i){e&1&&(a(0,"small"),l(1,"-"),c())}function Ce(e,i){if(e&1&&(a(0,"p"),l(1,"Adjustment "),f(2,ge,2,1,"span",37),l(3,": "),a(4,"span"),f(5,Ie,2,0,"small",15),l(6),g(7,"number"),c()()),e&2){let n=r();o(2),s("ngIf",n.invoiceInfo==null?null:n.invoiceInfo.adjustment_reason),o(3),s("ngIf",(n.invoiceInfo==null?null:n.invoiceInfo.adjustment_type)==2),o(),v(n.invoiceInfo!=null&&n.invoiceInfo.adjustment_amount?"$"+I(7,3,n.invoiceInfo.adjustment_amount,"0.2-5"):"0.00")}}function xe(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),p(" ",n.invoiceInfo==null?null:n.invoiceInfo.tax_status_text)}}function he(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),p(" ",n.invoiceInfo==null?null:n.invoiceInfo.tax_percent,"%")}}function be(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),p(" ",n.invoiceInfo==null?null:n.invoiceInfo.tax_status_text," ")}}function ye(e,i){if(e&1&&(a(0,"span"),l(1),g(2,"number"),c()),e&2){let n=r();o(),p("$",n.invoiceInfo!=null&&n.invoiceInfo.tax_amount?I(2,1,n.invoiceInfo.tax_amount,"0.2-5"):"0.00")}}function Me(e,i){if(e&1&&(a(0,"span"),l(1),c()),e&2){let n=r();o(),p(" ",n.invoiceInfo==null?null:n.invoiceInfo.tax_status_text," ")}}function Pe(e,i){if(e&1&&(a(0,"span"),l(1),g(2,"number"),c()),e&2){let n=r();o(),p("$",n.invoiceInfo!=null&&n.invoiceInfo.net_total?I(2,1,n.invoiceInfo.net_total,"1.2-2"):"0.00")}}function Oe(e,i){if(e&1&&(a(0,"p"),l(1,"Refund amount: "),a(2,"span"),l(3),g(4,"number"),c()()),e&2){let n=r();o(3),p("$",n.invoiceInfo!=null&&n.invoiceInfo.refunded_amount?I(4,1,n.invoiceInfo.refunded_amount,"0.2-5"):"0.00")}}function we(e,i){e&1&&(a(0,"div",51),l(1," Email is in valid. "),c())}function Se(e,i){e&1&&C(0,"img",52)}function Ee(e,i){if(e&1){let n=S();a(0,"div",39)(1,"span",40),h("click",function(){y(n);let d=r();return M(d.closeModel())}),a(2,"span",41),l(3,"x"),c()(),a(4,"form",42)(5,"div",43)(6,"div",44)(7,"label",45),l(8,"Email invoice to"),c(),C(9,"input",46),f(10,we,2,0,"div",47),c(),a(11,"div",48)(12,"button",49),h("click",function(){y(n);let d=r();return M(d.sendMail())}),f(13,Se,1,0,"img",50),l(14," Submit "),c()()()()()}if(e&2){let n,t,d=r();o(4),s("formGroup",d.invoiceForm),o(5),s("ngClass",V(5,bn,((n=d.invoiceForm.get("email").errors)==null?null:n.pattern)&&d.invoiceForm.get("email").dirty)),o(),s("ngIf",((t=d.invoiceForm.get("email").errors)==null?null:t.pattern)&&d.invoiceForm.get("email").dirty),o(2),s("disabled",d.invoiceForm.invali
1d),o(),s("ngIf",d.loadMail)}}var P=class e{constructor(i,n,t,d,u,ze,ke){this.router=i;this.http=n;this.configService=t;this.route=d;this.accountService=u;this.userSettingsSer=ze;this.commonService=ke}router;http;configService;route;accountService;userSettingsSer;commonService;zoomVal=1;promoSub;showSpinner=!1;invoiceAuthData;addonInvoices;analystRepoerts;corporate;invoice;isReseller;reseller;userAuth;user;paymentMethod;corporateDepartment;paymentMethod2;receipt_data;addonPrice=0;extra_payment;defaultAuth;showInvoiceNo;baseUrl;footerdata={};bodydata;is_end_of_cycle;secondViewData=[];disclaimer;bodydataKeys;siteName;authorization;refund;main_service_id;file;email;role_id;purchase_order;invoice_value;id;receipt;type;corporateInv;total=0;backendUrl="";loadMail;invoiceInfo={};group_invoice_items=0;showEmail=!1;invoiceForm;recalculateTaxSpinner=!1;canShowRecalculate=!1;onclick(i){$(i.target).closest(".send_mail,#download_features, #download_features *, .sendInvoice, .sendInvoice i").length<1&&this.closeModel()}ngOnInit(){this.invoiceForm=new ln({email:new cn(null,[F.required,F.pattern("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$")])}),this.route.params.subscribe(u=>{this.id=u.id?u.id:!1});let i=localStorage.getItem("group_invoice_items");i!=null&&(this.group_invoice_items=+i),this.route.data.subscribe(u=>{this.backendUrl=u.url?u.url:!1});let n=this.route.snapshot.data;this.type=n.type,this.route.data.subscribe(u=>{this.invoiceInfo=u.results}),JSON.parse(localStorage.getItem("setting_form")).authorization.role&&(this.role_id=+JSON.parse(localStorage.getItem("setting_form")).authorization.role.id);let t=[];if(localStorage.getItem("overide_all_data")){let u=JSON.parse(localStorage.getItem("overide_all_data"));u&&u?.version.toLowerCase()=="s"?t=[1,19097,35424,22422]:u&&u?.version.toLowerCase()=="p"?t=[42330,3271,14613,4639,42521]:u&&u?.version.toLowerCase()=="d"||u&&u?.version.toLowerCase()=="l"?t=[42286,15084,3271,41264,14613,4639,42413]:u&&u?.version.toLowerCase()=="a"&&(t=[42286,15084,3271,41264,14613,4639])}let d=+JSON.parse(localStorage.getItem("setting_form")).authorization.user_id;t.includes(d)&&(this.canShowRecalculate=!0)}perpareDataOfInvoice(){let i=0;for(let n in this.bodydata){i++;let t={qty:0,invoiceTotal:0};for(let d in this.bodydata[n])this.bodydata[n].keys=Object.keys(this.bodydata[n]),!this.bodydata[n][d].is_void&&(t.description=this.bodydata[n][d].service_name,parseInt(n)!=999?(t.paymentDue=this.bodydata[n][d].paymentDue,t.qty=t.qty+parseInt(this.bodydata[n][d].searches),t.invoiceTotal=t.invoiceTotal+parseInt(this.bodydata[n][d].invoiceTotal)):t.invoiceTotal=t.invoiceTotal+parseInt(this.bodydata[n][d].Price_Adjustment));t.qty&&(t.unitcost=t.invoiceTotal/t.qty),t.id=n,this.secondViewData.push(t)}}download(){let i="";this.type=="invoice"?i="account/invoices/pdf/"+this.id:i="account/searches/receipt/download/"+this.id,this.userSettingsSer.getUserSettings(i).subscribe(n=>{this.downloadFile(n)},n=>{this.commonService.notifyMsg("error",n.error.error)})}exportPdf(){let i={ids:this.invoiceInfo.id};this.showSpinner=!0,this.promoSub=this.accountService.updateItemByApi_alt_url("account/new/invoices/export/pdf",i).subscribe(n=>{this.showSpinner=!1,n.error?this.commonService.notifyMsg("error",n.error):this.commonService.notifyMsg("success",n.msg),n.file&&window.open(n.file,"location=yes,height=570,width=520,scrollbars=yes,status=yes"),n.link&&window.open(n.link,"location=yes,height=570,width=520,scrollbars=yes,status=yes"),n.url&&window.open(n.url,"location=yes,height=570,width=520,scrollbars=yes,status=yes")},n=>{this.showSpinner=!1,this.commonService.notifyMsg("error",n.error.error)})}downloadFile(i){var n=document.createElement("a");n.href=i.url;let t=i.url.split("/").pop();n.download=t,n.setAttribute("download",t),document.body.appendChild(n);let d=document.createAttribute("target");d.value="_blank",n.setAttributeNode(d),n.click(),window.URL.revokeObjectURL(i.file),n.remove()}sendMail(){this.loadMail=!0;let i={invoice_id:this.invoiceInfo.id,email:this.invoiceForm.value.email};this.accountService.sendEmailInvoice(i).subscribe(n=>
1{this.commonService.notifyMsg("success","The selected invoice was emailed successfully."),this.loadMail=!1,this.email="",this.invoiceForm.reset(),setTimeout(()=>{this.closeModel()},10)},n=>{this.commonService.notifyMsg("error","There was an error in sending the invoice."),this.loadMail=!1,setTimeout(()=>{this.closeModel()},10)})}showMail(i){this.showEmail=!0,setTimeout(()=>{let n=$(i.target).offset().left-60,t=$(i.target).offset().top,d=$("#download_features").width()-140;$("#download_features").css({left:n-d})},10)}closeModel(){this.showEmail=!1}removeLastChar(i){let n=i;return n.charAt(n.length-1).toLowerCase()=="s"&&(n=n.substring(0,n.length-1)),n}recalculateTax(){this.recalculateTaxSpinner=!0,this.accountService.recalculateTax(this.id).subscribe({next:i=>{this.recalculateTaxSpinner=!1,i?.status_code==400?this.commonService.notifyMsg("error",i?.message):i?.id&&window.location.reload()},error:()=>{this.recalculateTaxSpinner=!1}})}static \u0275fac=function(n){return new(n||e)(x(X),x(W),x(en),x(Q),x(un),x(mn),x(fn))};static \u0275cmp=D({type:e,selectors:[["pmo-inovice"]],hostBindings:function(n,t){n&1&&h("click",function(u){return t.invoiceForm(u)},j)},standalone:!1,decls:128,vars:47,consts:[["default_gateway_name",""],["priceInvoice",""],[1,"actions","noprint"],[1,"me-0","send_mail"],["download","",1,"me-0",3,"click"],["width","19","src","/assets/images/loaderSvg.svg","alt","",4,"ngIf"],["class","icon-download_icon iconSize",4,"ngIf"],[1,"inovice-header"],["src","./assets/images/logosv.svg",1,"logoStyle"],[1,"invoice_data"],[1,"left-content"],[1,"inovice_titlte"],["href","mailto:[email protected]",1,"fs12"],[1,"inovice_titlte","text-lowercase"],[1,"right-content"],[4,"ngIf"],[3,"ngClass"],[1,"clearfix"],[1,"bills","d-flex","custom-gap"],[1,"bill"],[1,"d-flex","justify-content-between"],[1,"d-flex","gap-4","ship_to"],[4,"ngIf","ngIfElse"],[1,"table","w-100","table-bordered"],[1,"text-right"],[3,"ngIf"],[1,"inovice-content"],["id","download_features","class","sendInvoiceEmailPopup arrowUp row",4,"ngIf"],[1,"me-0","send_mail",3,"click"],["class","icon-refund_old iconSize",4,"ngIf"],["width","19","src","/assets/images/loaderSvg.svg","alt",""],[1,"icon-refund_old","iconSize"],[1,"icon-download_icon","iconSize"],[1,"text-capitalize"],[4,"ngFor","ngForOf"],[1,"search_label"],["colspan","5",1,"text-center"],["class","adjustment_label",4,"ngIf"],[1,"adjustment_label"],["id","download_features",1,"sendInvoiceEmailPopup","arrowUp","row"],[1,"light","closerescane",3,"click"],[1,"close_content"],[3,"formGroup"],[1,"leftBlock","col-lg-12","col-md-12","col-sm-12","col-xs-12"],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12","email_content"],["for","row_pdf1"],["type","text","formControlName","email",1,"form-control","invoice_email",3,"ngClass"],["class","error_msg",4,"ngIf"],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12","email_submit"],["type","button",1,"btn","btn-success","mt-2","w-100","modalBtn","send_mail_btn","position-relative",3,"click","disabled"],["class","loader_email","src","/assets/images/loaderWhite.svg",4,"ngIf"],[1,"error_msg"],["src","/assets/images/loaderWhite.svg",1,"loader_email"]],template:function(n,t){if(n&1&&(a(0,"div")(1,"div",2),_(2,Pn,4,2,"a",3),a(3,"a",4),h("click",function(){return t.exportPdf()}),f(4,On,1,0,"img",5)(5,wn,1,0,"i",6),l(6," Download "),c()(),a(7,"div",7),C(8,"img",8),a(9,"h6"),l(10,"INVOICE"),c()(),a(11,"div",9)(12,"div")(13,"div",10)(14,"p")(15,"span",11),l(16,"Skopen
1ow, Inc."),c()(),a(17,"p")(18,"span",11),l(19,"12 East 49th Street"),c()(),a(20,"p")(21,"span",11),l(22,"Floor 11"),c()(),a(23,"p")(24,"span",11),l(25,"New York, NY 10017"),c()(),a(26,"p")(27,"span",11),l(28,"(800) 252-1437"),c()(),a(29,"p")(30,"a",12)(31,"span",13),l(32,"[email protected]"),c()()(),a(33,"p")(34,"span",11),l(35,"Tax ID: 81-2816963"),c()()(),a(36,"div",14)(37,"p")(38,"span"),l(39),c()(),a(40,"p")(41,"span"),l(42),c()(),f(43,Sn,3,2,"p",15)(44,En,3,2,"p",15),a(45,"p")(46,"span"),l(47),c()(),a(48,"p")(49,"span"),l(50,"Payment Status: "),a(51,"span",16),l(52),c()()(),f(53,Tn,3,1,"p",15),c(),C(54,"div",17),c(),a(55,"div",18)(56,"div",19)(57,"p"),l(58,"BILL TO"),c()(),a(59,"div",19)(60,"p"),l(61,"SHIP TO"),c()()()(),a(62,"div",9)(63,"div",20)(64,"div",21)(65,"div",10),_(66,Ln,8,5)(67,Kn,8,5),f(68,Wn,4,1,"ng-container",15),g(69,"json"),c(),a(70,"div",10),_(71,Xn,8,7,"div")(72,te,1,1),c()(),a(73,"div",14)(74,"p")(75,"span"),l(76,"Payment Method: "),f(77,ie,2,1,"span",22)(78,oe,2,1,"ng-template",null,0,k),c()(),f(80,ae,3,1,"p",15),a(81,"p")(82,"span"),l(83),c()(),_(84,le,3,1,"p")(85,re,1,1,"p"),c(),C(86,"div",17),c(),a(87,"div",19)(88,"p"),l(89,"INVOICE DETAILS"),c()()(),a(90,"div",9)(91,"table",23)(92,"thead")(93,"tr")(94,"th"),l(95,"Service (Description)"),c(),a(96,"th",24),l(97,"Qty"),c(),a(98,"th",24),l(99,"Unit Cost"),c(),a(100,"th",24),l(101,"Total"),c()()(),a(102,"tbody"),f(103,de,1,1,"ng-template",25)(104,ue,1,1,"ng-template",25)(105,fe,3,0,"tr",15),c()(),a(106,"div",26)(107,"p"),l(108,"Subtotal: "),a(109,"span"),l(110),g(111,"number"),c()(),f(112,ve,5,4,"p",15)(113,Ce,8,6,"p",15),a(114,"p"),l(115,"Tax Rate: "),_(116,xe,2,1,"span")(117,he,2,1,"span"),c(),a(118,"p"),l(119,"Tax: "),_(120,be,2,1,"span")(121,ye,3,4,"span"),c(),a(122,"p"),l(123,"Total: "),_(124,Me,2,1,"span")(125,Pe,3,4,"span"),c(),f(126,Oe,5,4,"p",15),c()()(),f(127,Ee,15,7,"div",27)),n&2){let d,u=E(79);A(L("inovice-container container scale_",t.zoomVal)),T("non_upgraded",t.commonService.show_retrun_to_admin_msg==="1"),o(2),m(t.canShowRecalculate?2:-1),o(2),s("ngIf",t.showSpinner),o(),s("ngIf",!t.showSpinner),o(34),p("Invoice #: ",t.invoiceInfo!=null&&t.invoiceInfo.code?t.invoiceInfo==null?null:t.invoiceInfo.code:"-"),o(3),p("Invoice Date: ",t.invoiceInfo!=null&&t.invoiceInfo.issue_date?t.invoiceInfo.issue_date:"-"),o(),s("ngIf",t.invoiceInfo==null?null:t.invoiceInfo.subscription_contract_term_count),o(),s("ngIf",(t.invoiceInfo==null?null:t.invoiceInfo.start_date_formatted)&&(t.invoiceInfo==null?null:t.invoiceInfo.end_date_formatted)),o(3),p("Order Number: ",t.invoiceInfo!=null&&t.invoiceInfo.order_number?t.invoiceInfo==null?null:t.invoiceInfo.order_number:"-"),o(4),T("blue_invoice",(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text)=="Paid"||(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text)=="paid")("red_invoice",(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text)=="Unpaid"||(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text)=="unpaid"),s("ngClass",U(44,hn,(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text.toLowerCase())=="paid",(t.role_id==1||t.role_id==10)&&((t.invoiceInfo==null?null:t.invoiceInfo.payment_status_id)==1&&(t.invoiceInfo==null?null:t.invoiceInfo.status_id)==2&&(t.invoiceInfo==null?null:t.invoiceInfo.due_amount)>0||(t.invoiceInfo==null?null:t.invoiceInfo.payment_status_id)==3))),o(),p(" ",t.invoiceInfo==null?null:t.invoiceInfo.payment_status_text," "),o(),s("ngIf",t.invoiceInfo==null?null:t.invoiceInfo.corporate_purchase_order),o(13),m((d=t.invoiceInfo==null||t.invoiceInfo.payments==null?null:t.invoiceInfo.payments[0])?66:67,d),o(2),s("ngIf",!(t.invoiceInfo!=null&&t.invoiceInfo.payments)&&!(t.invoiceInfo!=null&&t.invoiceInfo.payments.length)&&q(69,39,t.invoiceInfo==null?null:t.invoiceInfo.authorization)=="{}"),o(3),m(t.invoiceInfo!=null&&t.invoiceInfo.shipping_address?71:72),o(6),s("ngIf",t.invoiceInfo==null||t.invoiceInfo.payments==null?null:t.invoiceInfo.payments.length)("ngIfElse",u),o(3),s("ngIf",t.invoiceInfo==null?null:t.invoiceInfo.subscription_payment_term_days),o(3),p("Due Date: ",t.invoiceInfo==null?null:t.invoiceInfo.due_date_formatted),o(),m(t.invoiceInfo!=null&&t.invoiceInfo.payments&&(t.invoiceInfo!=null&&t.invoiceInfo.payments.length)&&(t.invoiceInfo==null?null:t.invoiceInfo.payments[0].gateway_id)!=1&&(t.invoiceInfo==null?null:t.invoiceInfo.payments[0].card_number)!==null?84:85),o(19),s("ngIf",(t.group_invoice_items==1||t.invoiceInfo.product_id==3)&&(t.invoiceInfo==null?null:t.invoiceInfo.services)),o(),s("ngIf",t.group_invoice_items==0&&t.invoiceInfo.product_id!==3&&(t.invoiceInfo==null?null:t.invoiceInfo.items)),o(),s("ngIf",!(t.invoiceInfo==null?null:t.invoiceInfo.services).length),o(5),p("$",t.invoiceInfo!=null&&t.invoiceInfo.sub_total?I(111,41,t.invoiceInfo.sub_total,"0.2-5"):"0.00"),o(2),s("ngIf",(t.invoiceInfo==null?null:t.invoiceInfo.coupon_discount_percent)&&(t.invoiceInfo==null?null:t.invoiceInfo.coupon_discount_percent)!=="0.00"&&(t.invoiceInfo==null?null:t.invoiceInfo.coupon_discount_percent)!=="0"),o(),s("ngIf",(t.invoiceInfo==null?null:t.invoiceInfo.adjustment_amount)>0),o(3),m(t.invoiceInfo.tax_status_id==1||t.invoiceInfo.tax_status_id==3?116:117),o(4),m(t.invoiceInfo.tax_status_id==1||t.invoiceInfo.tax_status_id==3?120:121),o(4),m(t.invoiceInfo.tax_status_id==1||t.invoiceInfo.tax_status_id==3?124:125),o(2),s("ngIf",(t.invoiceInfo==null?null:t.invoiceInfo.refunded_amount)&&(t.invoiceInfo==null?null:t.invoiceInfo.refunded_amount)!=="0.00"&&(t.invoiceInfo==null?null:t.invoiceInfo.refunded_amount)!=="0"),o(),s("ngIf",t.showEmail)}},dependencies:[H,G,J,rn,tn,on,an,dn,pn,Y,Z],styles:['.inovice-container[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 9px #ddd;padding-top:20px!important;margin:20px auto 30px;padding:20px;min-height:calc(100vh - 40px);font-family:arial}.inovice-container.non_upgraded[_ngcontent-%COMP%]{margin-top:70px;min-height:calc(100vh - 90px)}.inovice-container[_ngcontent-%COMP%] .inovice-header[_ngcontent-%COMP%]{border-bottom:1px solid #626e7a}.inovice-container[_ngcontent-%COMP%] .inovice-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:33px;letter-spacing:1px}.inovice-container[_ngcontent-%COMP%] .inovice-header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:12px}.inovice-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#2c88e6}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%]{padding:13px 0 8px;border-bottom:1px solid #626e7a;font-family:arial}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%]:last-of-type{border-bottom:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px;justify-content:space-between;font-size:12px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] p[_ngcontent-%COMP%] .inovice_titlte[_ng
1content-%COMP%]{text-transform:capitalize}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .bill[_ngcontent-%COMP%]{margin-top:20px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{border-right:0px;width:60%}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-of-type{border-left:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(2), .inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(3), .inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(4){border-left:0px;border-right:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #626e7a;font-size:12px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{border-right:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{border-left:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-of-type(2), .inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-of-type(3), .inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-of-type(4){border-left:0px;border-right:0px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ebebeb;border:1px solid #626e7a}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .inovice-content[_ngcontent-%COMP%]{text-align:right;margin-right:10px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .inovice-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100px;display:inline-block;position:relative;top:-1px}.inovice-container[_ngcontent-%COMP%] .payment_content[_ngcontent-%COMP%]{margin-top:4px}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .credit_card[_ngcontent-%COMP%]{font-weight:700}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] .credit_card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.inovice-container[_ngcontent-%COMP%] .invoice_data[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-bottom:10px;font-size:16px;font-weight:700}.actions[_ngcontent-%COMP%]{float:right;background:#f3f3f3;border:1px solid #CFCFCF;padding:10px;margin:3px 0 6px 10px;border-radius:3px;display:flex;flex-direction:row;height:42px}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#4c4c4c;margin-right:27px;font-size:14px;display:flex;flex-direction:row;justify-content:center;align-items:center;font-family:Prox}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px;font-size:11px;color:#4c4c4c;font-weight:700}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i.icon-download_icon[_ngcontent-%COMP%]{font-size:13px}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i.icon-envelope[_ngcontent-%COMP%]{opacity:.8;font-size:18px;font-weight:400}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i.icon-print[_ngcontent-%COMP%]{font-size:13px}.actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{color:#2c88e6}.actions[_ngcontent-%COMP%] .send_mail[_ngcontent-%COMP%]{margin-right:17px!important}.text-right[_ngcontent-%COMP%]{text-align:right}.logoStyle[_ngcontent-%COMP%]{width:170px;display:inline-block;margin-bottom:12px;margin-left:-4px}.left-content[_ngcontent-%COMP%]{float:left;width:25%}.right-content[_ngcontent-%COMP%]{text-align:right;margin-left:auto}.search_label[_ngcontent-%COMP%]{color:red}.duration_label[_ngcontent-%COMP%]{text-transform:capitalize}.red_invoice[_ngcontent-%COMP%]{color:#f42626}.blue_invoice[_ngcontent-%COMP%]{color:#2c88e6}.adjustment_label[_ngcontent-%COMP%]{width:auto!important;margin-left:3px}.duration[_ngcontent-%COMP%]{text-transform:capitalize}#download_features[_ngcontent-%COMP%]{z-index:1000!important;position:absolute;background:#fff;color:#63748e;border:1px solid rgba(118,134,255,.64);z-index:100;width:400px;top:0;-webkit-transition:all .4s ease;-moz-transition:all .4s ease;-ms-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease;padding:15px;top:109px!important;opacity:1!important;display:block!important}#download_features[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#63748e;font-size:13px;margin-bottom:13px}#download_features[_ngcontent-%COMP%] .col-lg-12[_ngcontent-%COMP%]{padding:0!important}#download_features[_ngcontent-%COMP%]:after, #download_features[_ngcontent-%COMP%]:before{top:100%;right:43px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}#download_features.report_pdf[_ngcontent-%COMP%]:before{right:10px}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%]:after{border-color:#88b7d500;border-top-color:#f3f3f3;border-width:30px;margin-left:0}#download_features[_ngcontent-%COMP%]:before{border-top-color:#fff;border-width:18px;margin-left:-36px;z-index:999}#download_features[_ngcontent-%COMP%]:after{border-top-color:#7686ffa3;border-width:18px;margin-left:-36px;transform:rotate(180deg);top:-38px}#download_features.arrowUp[_ngcontent-%COMP%]:before{bottom:100%;top:auto;transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg)}#download_features[_ngcontent-%COMP%] .closerescane[_ngcontent-%COMP%]{right:58px;top:-16px;position:absolute;color:#666;cursor:pointer;z-index:9999}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%]{padding:7px 15px 15px}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{overflow:hidden}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:170px;background-color:#e4e4e4;padding:10px;text-align:center;margin-right:25px;vertical-align:middle;font-weight:700;display:inline-block}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .left.selected[_ngcontent-%COMP%]{background-color:#444;color:#fff}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:#7b7b7b}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .left.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#444;color:#fff}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%]{background-color:#f3f3f3;height:166px;padding:10px}#download_features[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:700;overflow:hidden}#download_features[_ngcontent-%COMP%] p.block[_ngcontent-%COMP%]{display:inline-block;margin-top:10px;font-size:14px;font-weight:700;padding:5px;background-color:#e4e4e4;width:170px;text-align:center}#download_features[_ngcontent-%COMP%] .optionsLeft[_ngcontent-%COMP%]{float:left;width:50%}#download_features[_ngcontent-%COMP%] .optionsRight[_ngcontent-%COMP%]{float:right;width:50%}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;position:relative;padding-left:25px;margin-right:5px;font-size:13px}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;margin-right:10px;position:absolute;
1left:0;bottom:1px;background-color:#fff;border:1px solid grey;top:0}#download_features[_ngcontent-%COMP%] .rightBlock[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label.checks[_ngcontent-%COMP%]:before{content:"x";font-size:15px;color:#000;text-align:center;line-height:15px;background-color:#4a81f5}#download_features[_ngcontent-%COMP%] .optionsLeft[_ngcontent-%COMP%] div[_ngcontent-%COMP%], #download_features[_ngcontent-%COMP%] .optionsRight[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:20px;font-weight:700}#download_features[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin-top:25px;background-color:#2a84ff;border-radius:0;border:0px}#download_features[_ngcontent-%COMP%] input.btn_submit[_ngcontent-%COMP%]{margin-left:0;background:#406dbc;width:100%;border:1px solid #406dbc;color:#fff;font-weight:400;font-size:16px;padding:6px 0;margin-top:10px}#download_features[_ngcontent-%COMP%] input.btn_submit[_ngcontent-%COMP%]:hover{opacity:.6}#download_features[_ngcontent-%COMP%] .activescan[_ngcontent-%COMP%]{color:#fff;background-color:green}#download_features[_ngcontent-%COMP%] .scanOption[_ngcontent-%COMP%]{cursor:pointer}#download_features[_ngcontent-%COMP%] .leftBlock[_ngcontent-%COMP%] .left.scan-text[_ngcontent-%COMP%]{line-height:40px}.email_submit[_ngcontent-%COMP%]{position:relative}.email_submit[_ngcontent-%COMP%] .loader_email[_ngcontent-%COMP%]{bottom:11px;position:absolute;left:14px}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_submit[_ngcontent-%COMP%]{position:relative}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_submit[_ngcontent-%COMP%] .loader_email[_ngcontent-%COMP%]{bottom:11px;position:absolute;top:7px;width:20px}.sendInvoiceEmailPopup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:0;background-color:#406dbc!important;width:100%;border:1px solid #406dbc!important;color:#fff;font-weight:400;font-size:16px;padding:6px 0;margin-top:10px}.sendInvoiceEmailPopup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_content[_ngcontent-%COMP%]{position:relative}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_content[_ngcontent-%COMP%] .invali
1d_input[_ngcontent-%COMP%]{border:1px solid #D9534F}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_content[_ngcontent-%COMP%] .error_msg[_ngcontent-%COMP%]{position:absolute;top:1px!important;right:0;background:#d9534f;padding:5px 10px;max-width:250px;color:#fff;font-size:12px;min-width:234px;line-height:17px;border-radius:5px;bottom:56px;height:27px}.sendInvoiceEmailPopup[_ngcontent-%COMP%] .email_content[_ngcontent-%COMP%] .error_msg[_ngcontent-%COMP%]:before{content:"\\a";border-style:solid;border-width:5px 7px 5px 0;border-color:transparent #D9534F transparent transparent;position:absolute;right:1px;top:100%;transform:translateY(-50%) rotate(150deg)}.custom-gap[_ngcontent-%COMP%]{gap:172px}.ship_to[_ngcontent-%COMP%]{max-width:60%;width:80%}']})};var Te=[{path:"",component:P}],Cn=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=N({type:e});static \u0275inj=B({imports:[K,vn,In,gn,sn,_n,nn.forChild(Te)]})};export{Cn as InoviceNewModule};
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.