1import{a as w,b as Ne}from"./chunk-RP7ERVQH.js";import{b as V}from"./chunk-XDV7SW37.js";import{a as ve}from"./chunk-V5XNX5CB.js";import{a as U}from"./chunk-OJGMQSUL.js";import{a as Ve}from"./chunk-O5HCWBCF.js";import{a as X,b as T}from"./chunk-WDDGA74L.js";import"./chunk-SSQ5HSWI.js";import{a as he,d as je}from"./chunk-KNA2SUUJ.js";import"./chunk-OZY77U3I.js";import{a as K}from"./chunk-YOWSFPMA.js";import"./chunk-JLE74NMM.js";import{Ac as O,Bd as He,Ec as ze,Ga as e,Gc as Me,Ha as x,Hc as fe,Ia as _,Ic as qe,J as ge,Ja as te,Ka as we,La as R,Ma as L,N as f,Na as D,O as h,Pa as re,Qa as W,Sa as B,Sb as Re,Ta as ie,Tb as Le,Ua as Pe,Va as z,Z as r,aa as g,ab as Te,ba as S,bb as M,ca as xe,cb as C,cd as Ue,e as be,ec as P,fa as m,gc as le,hc as I,ia as s,jc as ye,lb as oe,mc as De,n as Ee,na as i,nb as Z,oa as n,pa as v,pb as ke,q as J,qa as b,qe as We,ra as y,rc as se,rd as Fe,s as Ae,sa as H,sc as ce,t as ue,ta as k,tc as j,ua as d,xa as Be,ya as u,yc as q,za as Oe,zc as E}from"./chunk-ZB7A6YNV.js";var ot=(a,c)=>({"past-due":a,"pending-payment":c});function lt(a,c){a&1&&(i(0,"span",17),v(1,"i",18),e(2," Past Due"),n())}function st(a,c){a&1&&(i(0,"span",19),v(1,"i",20),e(2," Pending Payment"),n())}function ct(a,c){if(a&1&&(b(0),e(1,` 2 `),i(2,"tr",9),e(3,` 3 `),i(4,"td",10),e(5),n(),e(6,` 4 `),i(7,"td",11),e(8,` 5 `),i(9,"a",12),e(10),n(),e(11,` 6 `),n(),e(12,` 7 `),i(13,"td",13),e(14),B(15,"date"),m(16,lt,3,0,"span",14),e(17,` 8 `),m(18,st,3,0,"span",15),e(19,` 9 `),n(),e(20,` 10 `),i(21,"td",16),e(22),B(23,"currency"),n(),e(24,` 11 `),n(),e(25,` 12 `),y()),a&2){let t=c.$implicit,o=c.index;r(2),u("id","unpaid-invoice-",o,""),s("ngClass",W(27,ot,t.pastDue,t.pendingPayment)),r(2),u("id","invoice-orgid-",o,""),r(),_(` 13 `,t.orgHandle,` 14 `),r(2),u("id","invoice-number-",o,""),r(2),u("id","view-invoice-",t.invoiceNumber,""),u("routerLink","/secure/billing/invoice/",t.invoiceNumber,""),r(),_(` 15 `,t.invoiceNumber,` 16 `),r(3),u("id","date-",o,""),r(),_(` 17 `,ie(15,21,t.dueDate),` 18 `),r(2),s("ngIf",t.pastDue),r(2),s("ngIf",t.pendingPayment),r(3),u("id","amount-unpaid-",o,""),r(),_(` 19 `,z(23,23,t.amount,"USD","symbol"),` 20 `)}}function mt(a,c){if(a&1&&(i(0,"table",3),e(1,` 21 `),i(2,"thead"),e(3,` 22 `),i(4,"tr"),e(5,` 23 `),i(6,"th",4),e(7,` 24 Org ID 25 `),n(),e(8,` 26 `),i(9,"th",5),e(10,` 27 Invoice Number 28 `),n(),e(11,` 29 `),i(12,"th",6),e(13,` 30 Due Date 31 `),n(),e(14,` 32 `),i(15,"th",7),e(16,` 33 Amount 34 `),n(),e(17,` 35 `),n(),e(18,` 36 `),n(),e(19,` 37 38 `),i(20,"tbody"),e(21,` 39 `),m(22,ct,26,30,"ng-container",8),e(23,` 40 `),n(),e(24,` 41 `),n()),a&2){let t=d(2);r(22),s("ngForOf",t.unpaidInvoices)}}function dt(a,c){if(a&1&&(i(0,"ap-section-container",1),e(1,` 42 `),i(2,"p"),e(3,` 43 `),e(4,` 44 Select the Invoice Number to access and pay an invoice.`),n(),e(5,` 45 `),m(6,mt,25,1,"table",2),e(7,` 46`),n()),a&2){let t=d();s("isTable",!0)("sectionType","danger"),r(6),s("ngIf",(t.unpaidInvoices==null?null:t.unpaidInvoices.length)>0)}}var _e=(()=>{class a{constructor(){this.unpaidInvoices=[],this.date=new Date}static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275cmp=S({type:a,selectors:[["ap-unpaid-invoices"]],inputs:{unpaidInvoices:"unpaidInvoices"},standalone:!1,decls:2,vars:1,consts:[["id","unpaidInvoicesSection","header","Unpaid Invoices",3,"isTable","sectionType",4,"ngIf"],["id","unpaidInvoicesSection","header","Unpaid Invoices",3,"isTable","sectionType"],["id","unpaid-invoice-table","class","table data-responsive","aria-describedby","unpaidInvoicesSection-header",4,"ngIf"],["id","unpaid-invoice-table","aria-describedby","unpaidInvoicesSection-header",1,"table","data-responsive"],["id","unpaid-invoice-orgid","scope","col",1,"w-16"],["id","unpaid-invoice-header","scope","col"],["id","unpaid-invoice-duedate","scope","col",1,"w-33"],["id","unpaid-invoice-amount","scope","col",1,"w-33"],[4,"ngFor","ngForOf"],[3,"id","ngClass"],["data-label","Org ID",1,"text-nowrap",3,"id"],["data-label","Invoice #",1,"text-nowrap",3,"id"],["tooltip","View/Pay Invoice",3,"id","routerLink"],["data-label","Due",3,"id"],["class","text-danger",4,"ngIf"],["class","text-success",4,"ngIf"],["data-label","Amount",1,"text-end",3,"id"],[1,"text-danger"],["aria-hidden","true",1,"fa","fa-fw","fa-warning"],[1,"text-success"],["aria-hidden","true",1,"fa","fa-fw","fa-check-circle"]],template:function(o,l){o&1&&(m(0,dt,8,3,"ap-section-container",0),e(1,` 47`)),o&2&&s("ngIf",(l.unpaidInvoices==null?null:l.unpaidInvoices.length)>0)},dependencies:[Te,M,C,I,E,Re,Z,oe],styles:["tr.past-due[_ngcontent-%COMP%] a[_ngcontent-%COMP%], tr.pending-payment[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#00566b}tr.pending-payment[_ngcontent-%COMP%]{background-color:#d6e7d7}tr.pending-payment[_ngcontent-%COMP%] span.text-success[_ngcontent-%COMP%]{color:#1
47a461c!important}tr.past-due[_ngcontent-%COMP%], .past-due[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr.pending-payment[_ngcontent-%COMP%], .pending-payment[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-color:#c2c9d1!important}th#unpaid-invoice-amount[_ngcontent-%COMP%]{text-align:right}@media (max-width: 767px){td[data-label=Amount][_ngcontent-%COMP%]{text-align:left!important}}"]})}}return a})();function pt(a,c){a&1&&(i(0,"span"),v(1,"i",13),e(2," "),i(3,"span",14),e(4,"(Billing Authorization"),n(),e(5," request is pending)"),n())}function ut(a,c){if(a&1&&(i(0,"tr",8),e(1,` 48 `),i(2,"td",9),e(3,` 49 `),i(4,"a",10),e(5),n(),e(6,` 50 `),n(),e(7,` 51 `),i(8,"td",11),e(9),m(10,pt,6,0,"span",12),e(11,` 52 `),n(),e(12,` 53 `),n()),a&2){let t=c.$implicit,o=c.index;u("id","org-billing-table-",o,""),r(4),u("id","org-billing-table-",o,"-handle"),u("routerLink","/secure/billing/contact/",t.handle,""),r(),_(` 54 `,t.handle,""),r(3),u("id","org-billing-table-",o,"-name"),r(),_(` 55 `,t.name,` 56 `),r(),s("ngIf",t.extra.pendingAuthorization)}}function gt(a,c){if(a&1){let t=H();i(0,"div",15),e(1,` 57 `),i(2,"ap-pagination",16),k("changedOffset",function(l){f(t);let p=d(2);return h(p.pageChanged(l))}),e(3,` 58 `),n(),e(4,` 59 `),n()}if(a&2){let t=d(2);r(2),s("limit",t.limit)("pagination",t.billingOrgs)}}function xt(a,c){if(a&1&&(i(0,"ap-section-container",1),e(1,` 60 `),i(2,"p",2),e(3,` 61 Select an Org ID (Organization Identifier) to access the available billing information. 62 `),n(),e(4,` 63 64 `),i(5,"table",3),e(6,` 65 `),i(7,"thead"),e(8,` 66 `),i(9,"tr"),e(10,` 67 `),i(11,"th",4),e(12,` 68 Org ID 69 `),n(),e(13,` 70 `),i(14,"th",5),e(15,` 71 Org Name 72 `),n(),e(16,` 73 `),n(),e(17,` 74 `),n(),e(18,` 75 `),i(19,"tbody"),e(20,` 76 `),m(21,ut,13,11,"tr",6),e(22,` 77 `),n(),e(23,` 78 `),n(),e(24,` 79 80 `),m(25,gt,5,2,"div",7),e(26,` 81`),n()),a&2){let t=d();s("isTable",!0),r(21),s("ngForOf",t.billingOrgs==null?null:t.billingOrgs.objects),r(4),s("ngIf",(t.billingOrgs==null?null:t.billingOrgs.total)>t.limit)}}var Qe=(()=>{class a{constructor(t,o,l){this.orgService=t,this.route=o,this.router=l,this.billingOrgs=null,this.limit=10}ngOnInit(){this.route.queryParams.subscribe(t=>{let o=t.page||1;this.offset=this.limit*(o-1),this.getBillingOrgs(this.offset)})}getBillingOrgs(t){return this.orgsSub&&this.orgsSub.unsubscribe(),this.orgsSub=this.orgService.getBillingOrgs(t,this.limit).subscribe(o=>{this.billingOrgs=o}),this.orgsSub}pageChanged(t){this.offset=t,this.router.navigate([this.router.url.split(/[?#]/)[0].substring(1)],{queryParams:{page:Math.floor(t/this.limit)+1}})}static{this.\u0275fac=function(o){return new(o||a)(g(K),g(P),g(le))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-billing-orgs"]],inputs:{orgsSub:"orgsSub"},standalone:!1,decls:2,vars:1,consts:[["id","billingOrgIdsSection","header","Org IDs",3,"isTable",4,"ngIf"],["id","billingOrgIdsSection","header","Org IDs",3,"isTable"],[1,"instructions"],["id","org-billing-table","aria-describedby","billingOrgIdsSection-header",1,"table","table-striped","data-responsive"],["id","org-billing-table-handle-header","scope","col"],["id","org-billing-table-name-header","scope","col"],[3,"id",4,"ngFor","ngForOf"],["class","panel-body text-center",4,"ngIf"],[3,"id"],["data-label","Org ID"],[3,"id","routerLink"],["data-label","Org Name",3,"id"],[4,"ngIf"],["aria-hidden","true",1,"fa","fa-fw","fa-flag","text-warning"],[1,"text-nowrap"],[1,"panel-body","text-center"],["id","org-index-pagination",3,"changedOffset","limit","pagination"]],template:function(o,l){o&1&&(m(0,xt,27,3,"ap-section-container",0),e(1,` 82`)),o&2&&s("ngIf",l.billingOrgs&&l.billingOrgs.total>0)},dependencies:[M,C,I,Ue,E],encapsulation:2})}}return a})();function ft(a,c){if(a&1&&(b(0),e(1,` 83 `),i(2,"div",3),e(3,` 84 `),i(4,"p"),e(5,` 85 `),v(6,"i",4),e(7,` Your user account is not authorized to manage the billing information for any organization. 86 `),n(),e(8,` 87 `),n(),e(9,` 88 89 `),i(10,"p"),e(11,` 90 `),i(12,"strong"),e(13,"If you have an invoice"),n(),e(14,` for any organization, you can 91 `),i(15,"a",5),e(16,"Pay Now"),n(),e(17,` by providing the Invoice Number and exact invoice amount. 92 `),n(),e(18,` 93 94 `),i(19,"ap-section-container",6),e(20,` 95 `),i(21,"p"),e(22,"Billing Authorization allows you to access the billing information and to request to modify the Billing Contact record on file with ARIN's Financial Services Department. All billing-related communications from ARIN are sent to the Billing Contact."),n(),e(23,` 96 `),i(24,"p")(25,"strong"),e(26,"To manage or access the billing information for an Organization Identifier (Org ID) that has Internet number resources issued directly from ARIN:"),n()(),e(27,` 97 `),i(28,"ul"),e(29,` 98 `),i(30,"li"),e(31,` 99 `),i(32,"p"),e(33,"If your only responsibility is to "),i(34,"strong"),e(35,"manage the billing information"),n(),e(36,` for that Org ID, you can 100 `),i(37,"a",7),e(38,` 101 Request Billing Authorization 102 `),n(),e(39,` 103 for the Org ID.`),n(),e(40,` 104 `),i(41,"p"),e(42,"OR:"),n(),e(43,` 105 `),n(),e(44,` 106 107 `),i(45,"li"),e(46,` 108 `),i(47,"p"),e(48,"If you are listed as the Admin or Tech Point of Contact (POC) for an Org ID in "),i(49,"a",8),e(50,"ARIN's public Whois"),n(),e(51,", you can request to link your user account to that POC via "),i(52,"a",9),e(53,"Link POC"),n(),e(54,". Users linked to Admin or Tech POCs for the Org ID have the same privileges as users who have received Billing Authorization."),n(),e(55,` 109 `),n(),e(56,` 110 `),n(),e(57,` 111 `),n(),e(58,` 112 `),y()),a&2){let t=d(2);r(49),u("apRdapSearch","?query=",t.handle,"")}}function ht(a,c){a&1&&(i(0,"div"),e(1,` 113 `),i(2,"div",10),e(3,` 114 `),i(4,"div",11),e(5,` 115 `),i(6,"p"),e(7,` 116 Organizations listed are associated with your user account either through your linked Points of Contact (POCs) or by having confirmed Billing Authorization for the Organization Identifier (Org ID). 117 `),n(),e(8,` 118 `),n(),e(9,` 119 `),i(10,"div",12),e(11,` 120 `),i(12,"div",13),e(13,` 121 `),i(14,"div",14),e(15,` 122 `),i(16,"a",15),e(17,` 123 Request Billing Authorization`),n(),e(18,` 124 `),i(19,"small"),e(20,"Manage additional Org IDs"),n(),e(21,` 125 `),n(),e(22,` 126 127 `),i(23,"div",14),e(24,` 128 `),i(25,"a",16),e(26,` 129 Pay Invoice by Invoice Number 130 `),n(),e(27,` 131 `),n(),e(28,` 132 133 `),n(),e(29,` 134 `),n(),e(30,` 135 `),n(),e(31,` 136 `),n())}function _t(a,c){if(a&1&&(i(0,"div"),e(1,` 137 `),m(2,ft,59,2,"ng-container",1),e(3,` 138 139 `),m(4,ht,32,0,"div",1),e(5,` 140 141 `),i(6,"div"),e(7,`
142 `),v(8,"ap-unpaid-invoices",2),e(9,` 143 `),v(10,"ap-billing-orgs"),e(11,` 144 `),n(),e(12,` 145 `),n()),a&2){let t=d();r(2),s("ngIf",!t.hasBillingOrgs),r(2),s("ngIf",t.hasBillingOrgs),r(4),s("unpaidInvoices",t.unpaidInvoices)}}function St(a,c){a&1&&(i(0,"div"),e(1,` 146 `),i(2,"alert",17),e(3,` 147 `),i(4,"span"),v(5,"i",18),n(),e(6,` 148 `),i(7,"span"),e(8,` 149 Our billing system is currently unavailable. Please try again later. 150 `),n(),e(9,` 151 `),n(),e(10,` 152 `),n())}var Ye=(()=>{class a{constructor(t,o,l,p){this.orgService=t,this.invoiceService=o,this.billingSystemAvailabilityService=l,this.paymentSystemAvailabilityService=p,this.unpaidInvoices=[],this.hasBillingOrgs=!0,this.isBillingSystemAvailable=!0}ngOnInit(){this.getHasBillingOrgs(),this.getUnpaidInvoices()}getHasBillingOrgs(){this.orgService.hasBillingOrgs().subscribe(t=>this.hasBillingOrgs=t)}getUnpaidInvoices(){return this.unpaidSub&&this.unpaidSub.unsubscribe(),ue([this.paymentSystemAvailabilityService.getAvailability(),this.billingSystemAvailabilityService.getAvailability()]).pipe(J(([t,o])=>{this.isBillingSystemAvailable=o.value&&t.value,this.isBillingSystemAvailable?this.unpaidSub=this.invoiceService.getUnpaidAndPendingInvoicesByUser().subscribe(l=>this.unpaidInvoices=l):this.unpaidSub&&this.unpaidSub.unsubscribe()})).subscribe(),this.unpaidSub}static{this.\u0275fac=function(o){return new(o||a)(g(K),g(X),g(T),g(Ve))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-billing-index"]],standalone:!1,decls:8,vars:3,consts:[[3,"subscriptions"],[4,"ngIf"],[3,"unpaidInvoices"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-flag"],["routerLink","/payment","id","payment-link-no-orgs"],["header","What's Next?","sectionType","info"],["id","request-billing","routerLink","/secure/billing/request","title","Request permission to manage billing information."],[3,"apRdapSearch"],["routerLink","/secure/poc/link","title","Link to Existing Point of Contact Record","id","link-poc"],[1,"row"],[1,"col-md-8"],["id","poc-actions",1,"col-md-4"],[1,"list-group"],[1,"list-group-item"],["id","billing-authorizaton","routerLink","/secure/billing/request"],["id","pay-unrelated-invoice","title","Pay any invoice by Invoice Number","routerLink","/payment"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(e(0," "),i(1,"ap-busy",0),e(2,` 153 `),m(3,_t,13,3,"div",1),e(4,` 154 155 `),m(5,St,11,0,"div",1),e(6,` 156 `),n(),e(7,` 157 158 159`)),o&2&&(r(),s("subscriptions",l.unpaidSub),r(2),s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[C,I,O,E,He,w,_e,Qe],styles:[".list-group-item[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block}"]})}}return a})();var bt=a=>[a];function yt(a,c){if(a&1&&(b(0),e(1,` 160 `),i(2,"li",25),e(3,` 161 `),i(4,"span",26),e(5,"Billing Information"),n(),e(6,` 162 `),n(),e(7,` 163 `),i(8,"li",27),e(9,` 164 `),i(10,"span")(11,"a",28),e(12,"Fee Estimate"),n()(),e(13,` 165 `),n(),e(14,` 166 `),i(15,"li",27),e(16,` 167 `),i(17,"span")(18,"a",29),e(19,"Invoice and Payment History"),n()(),e(20,` 168 `),n(),e(21,` 169 `),y()),a&2){let t=d(3);r(11),u("routerLink","/secure/billing/fee/",t.customer.clientId,""),r(7),u("routerLink","/secure/billing/history/",t.customer.clientId,"")}}function Ct(a,c){a&1&&(i(0,"p"),e(1,` 170 `),v(2,"i",32),e(3," "),i(4,"span",33),e(5,"Warning"),n(),e(6,` 171 Initial fees for new resource requests require payment before the resource can be issued. Past due invoices related to 172 annual fees also require payment before the new resource can be issued. Non-payment of past due invoice(s) can delay the issue 173 of any new resources or impact the organization's rights to manipulate and manage the resources already issued 174 by ARIN. Please refer to the ARIN Registration Service Agreement. 175 `),n())}function It(a,c){a&1&&(i(0,"p"),e(1,` 176 `),v(2,"i",32),e(3," "),i(4,"span",33),e(5,"Warning"),n(),e(6,` 177 The annual fee to renew the ARIN issued resource(s) is past due. Non-payment of annual 178 fees can impact the organization's rights to manipulate and manage the resources issued by ARIN. Please refer to the 179 ARIN Registration Service Agreement. 180 `),n())}function Et(a,c){if(a&1&&(i(0,"div",31),e(1,` 181
182 `),m(2,Ct,7,0,"p",1),e(3,` 183 184 `),m(4,It,7,0,"p",1),e(5,` 185 186 `),n()),a&2){let t=d(4);r(2),s("ngIf",t.customer.pastDueInitialExperimentalNtlOrStlfac),r(2),s("ngIf",!t.customer.pastDueInitialExperimentalNtlOrStlfac)}}function At(a,c){a&1&&(i(0,"p"),e(1,` 187 `),v(2,"i",32),e(3," "),i(4,"span",33),e(5,"Warning"),n(),e(6,` 188 `),i(7,"strong")(8,"a",34),e(9,"ARIN membership benefits (including voting privileges)"),n(),e(10,` 189 have been suspended`),n(),e(11,` because the Org ID has an overdue invoice. 190 Please contact ARIN Financial Services at 191 `),i(12,"a",35),e(13,"[email protected]"),n(),e(14,` 192 or at 703.277.9886 for more information. 193 `),n())}function Bt(a,c){if(a&1&&(b(0),e(1,` 194 `),m(2,Et,6,2,"div",30),e(3,` 195 196 `),i(4,"div",31),e(5,` 197 `),m(6,At,15,0,"p",1),e(7,` 198 `),n(),e(8,` 199 `),y()),a&2){let t=d(3);r(2),s("ngIf",t.customer.pastDueConsolidatRenewalMtclOrMaint),r(4),s("ngIf",!t.customer.inGoodStanding)}}function Ot(a,c){a&1&&(i(0,"span",36),e(1,"None Provided"),n())}function wt(a,c){if(a&1&&(i(0,"div",37),e(1,` 200 `),i(2,"a",38),e(3,` 201 Modify Billing Contact 202 `),n(),e(4,` 203 `),n()),a&2){let t=d(3);r(2),u("routerLink","/secure/billing/edit/",t.customer.clientId,"")}}function Pt(a,c){if(a&1&&(i(0,"div"),e(1,` 204 `),e(2,` 205 `),i(3,"nav",4),e(4,` 206 `),i(5,"ul",5),e(6,` 207 `),i(7,"li",6),e(8,"Org ID: "),i(9,"strong",7),e(10),n()(),e(11,` 208 `),m(12,yt,22,4,"ng-container",1),e(13,` 209 `),n(),e(14,` 210 `),n(),e(15,` 211 `),m(16,Bt,9,2,"ng-container",1),e(17,` 212 213 `),e(18,` 214 `),i(19,"p"),e(20,"Invoice-related communications are sent to the Billing Contact."),n(),e(21,` 215 `),i(22,"ap-section-container",8),e(23,` 216 `),i(24,"dl",9),e(25,` 217 `),i(26,"dt",10),e(27,"Bill-to Name"),n(),e(28,` 218 `),i(29,"dd",11),e(30),n(),e(31,` 219 `),i(32,"dd",12),e(33),n(),e(34,` 220 `),n(),e(35,` 221 `),i(36,"dl",13),e(37,` 222 `),i(38,"dt",10),e(39,"Name"),n(),e(40,` 223 `),i(41,"dd",14),e(42),n(),e(43,` 224 225 `),i(44,"dt",10),e(45,"Address"),n(),e(46,` 226 `),i(47,"dd",15),e(48),n(),e(49,` 227 `),i(50,"dd",16),e(51),n(),e(52,` 228 `),i(53,"dd",17),e(54),n(),e(55,` 229 `),i(56,"dd",18),e(57),n(),e(58,` 230 231 `),i(59,"dt",10),e(60,"Email"),n(),e(61,` 232 `),i(62,"dd",19),e(63),n(),e(64,` 233 234 `),i(65,"dt",10),e(66,"Phone"),n(),e(67,` 235 `),i(68,"dd",20),e(69),n(),e(70,` 236 237 `),i(71,"dt",10),e(72,"Fax"),n(),e(73,` 238 `),i(74,"dd",21),e(75),m(76,Ot,2,0,"span",22),n(),e(77,` 239 `),n(),e(78,` 240 `),m(79,wt,5,2,"div",23),e(80,` 241 `),n(),e(81,` 242 `),i(82,"ap-section-container",24),e(83,` 243 `),i(84,"p"),e(85,`The Billing Contact is a record created for the Org ID (Organization Identifier) solely for ARIN's billing system. 244 The record specifies the person or group that ARIN works with on invoicing and payments.`),n(),e(86,` 245 `),i(87,"ul"),e(88,` 246 `),i(89,"li"),e(90,"Users linked to the Admin or Tech Points of Contact (POCs) can access other billing information (such as invoices) and request to modify the Billing Contact."),n(),e(91,` 247 `),i(92,"li"),e(93,"Users linked only to the Abuse, NOC, Routing, or DNS POCs can only view the Billing Contact."),n(),e(94,` 248 `),i(95,"li"),e(96,"Users that are not linked to the Admin or Tech POCs, but need to access and manage the Billing Contact and other billing information for an Org ID can request Billing Authorization."),n(),e(97,` 249 `),i(98,"li"),e(99,"The Billing Contact is not published in ARIN's Whois."),n(),e(100,` 250 `),n(),e(101,` 251 `),n(),e(102,` 252 `),n()),a&2){let t=d(2);r(10),x(t.customer.clientId),r(2),s("ngIf",t.canEditBillingInformation),r(4),s("ngIf",t.customer.pastDue),r(14),x(t.customer.clientName),r(3),x(t.customer.clientName2),r(9),x(t.customer.contact),r(6),x(t.customer.street),r(3),x(t.customer.street2),r(3),we("",t.customer.city,", ",t.customer.stateProvince," ",t.customer.postalCode,""),r(3),x(t.customer.countryName),r(6),x(t.customer.email),r(6),x(t.customer.phone),r(6),x(t.customer.fax),r(),s("ngIf",!t.customer.fax),r(3),s("ngIf",t.canEditBillingInformation)}}function Tt(a,c){if(a&1&&(i(0,"ap-section-container",40),e(1,` 253 `),i(2,"p"),e(3),i(4,"a",41),e(5,"Ask ARIN"),n(),e(6,`. 254 `),n(),e(7,` 255 `),n()),a&2){let t=d(3);r(3),_(` 256 The billing account for Org ID `,t.org==null?null:t.org.handle,` is closed. For assistance, please use 257 `)}}function kt(a,c){if(a&1&&(i(0,"div"),e(1,` 258 `),i(2,"ul",5),e(3,` 259 `),i(4,"li",27),e(5,` 260 Org ID: `),i(6,"strong"),e(7),n(),e(8,` 261 `),n(),e(9,` 262 `),n(),e(10,` 263 `),i(11,"p"),e(12,` 264 This Org ID does not exist in ARIN's billing system. 265 `),n(),e(13,` 266 `),i(14,"p"),e(15,`
267 Only organizations that have been assessed a service fee or transaction fee will have a billing account. Submit a ticket via `),i(16,"a",41),e(17,"Ask ARIN"),n(),e(18,` if you have any questions or concerns. 268 `),n(),e(19,` 269 `),n()),a&2){let t=d(3);r(7),x(t.org==null?null:t.org.handle)}}function Nt(a,c){if(a&1&&(i(0,"div"),e(1,` 270 `),m(2,Tt,8,1,"ap-section-container",39),e(3,` 271 272 `),m(4,kt,20,1,"div",1),e(5,` 273 `),n()),a&2){let t=d(2);r(2),s("ngIf",t.customer==null?null:t.customer.accountClosed),r(2),s("ngIf",!t.customer.accountClosed)}}function Rt(a,c){if(a&1&&(i(0,"ap-section-container",42),e(1,` 274 `),i(2,"p"),e(3),i(4,"a",41),e(5,"Ask ARIN"),n(),e(6,`. 275 `),n(),e(7,` 276 `),n()),a&2){let t=d(2);r(3),_("You have previously requested authorization to manage billing information for Org ID ",t.org.handle,`. This pending request needs your confirmation before authorization will be granted. 277 For assistance, please use `)}}function Lt(a,c){if(a&1&&(i(0,"li",49),e(1,` 278 `),i(2,"div",50),e(3),n(),e(4,` 279 `),i(5,"div",37),e(6,` 280 `),i(7,"a",51),e(8,` 281 `),v(9,"i",52),e(10,`Unlink User 282 `),n()(),e(11,` 283 `),v(12,"div",53),e(13,` 284 `),n()),a&2){let t=c.$implicit,o=c.index;u("id","org-linked-users-",o,""),r(3),_("",t.name,"\xA0"),r(4),u("id","org-linked-users-",o,"-remove"),Oe("routerLink","/secure/billing/",t.orgHandle,"/unlink/",t.userName,"")}}function Dt(a,c){if(a&1&&(i(0,"ap-section-container",45),e(1,` 285 `),i(2,"p"),e(3,"To unlink a person from having Billing Authorization for this organization, use "),i(4,"span",46),e(5,"Unlink User"),n(),e(6,"."),n(),e(7,` 286 `),i(8,"ul",47),e(9,` 287 `),m(10,Lt,14,8,"li",48),e(11,` 288 `),n(),e(12,` 289 `),n()),a&2){let t=d(3);r(10),s("ngForOf",t.users)}}function zt(a,c){if(a&1&&(i(0,"ap-section-container",54),e(1,` 290 `),i(2,"p"),e(3,"There are no user accounts with Billing Authorization for the Org ID "),i(4,"strong"),e(5),n(),e(6,"."),n(),e(7,` 291 `),n()),a&2){let t=d(3);r(5),x(t.handle)}}function Mt(a,c){if(a&1&&(i(0,"div"),e(1,` 292 `),m(2,Dt,13,1,"ap-section-container",43),e(3,` 293 294 `),m(4,zt,8,1,"ap-section-container",44),e(5,` 295 `),n()),a&2){let t=d(2);r(2),s("ngIf",t.users.length>0),r(2),s("ngIf",t.users.length==0&&t.customer.accountFound)}}function qt(a,c){if(a&1&&(b(0),e(1,` 296 `),i(2,"ap-busy",2),e(3,` 297 298 `),m(4,Pt,103,17,"div",1),e(5,` 299 300 `),m(6,Nt,6,2,"div",1),e(7,` 301 302 `),m(8,Rt,8,1,"ap-section-container",3),e(9,` 303 304 `),n(),e(10,` 305 `),m(11,Mt,6,2,"div",1),e(12,` 306`),y()),a&2){let t=d();r(2),s("subscriptions",re(5,bt,t.pageDataSubscription)),r(2),s("ngIf",t.customer==null?null:t.customer.accountFound),r(2),s("ngIf",t.customer&&!t.customer.pendingAuthorization&&!t.customer.accountFound&&!t.hasErrors),r(2),s("ngIf",t.customer==null?null:t.customer.pendingAuthorization),r(3),s("ngIf",!(t.customer!=null&&t.customer.accountClosed)&&t.canEditBillingInformation)}}function Ut(a,c){a&1&&(i(0,"div"),e(1,` 307 `),i(2,"alert",55),e(3,` 308 `),i(4,"span"),v(5,"i",56),n(),e(6,` 309 `),i(7,"span"),e(8,` 310 Our billing system is currently unavailable. Please try again later. 311 `),n(),e(9,` 312 `),n(),e(10,` 313`),n())}var Ze=(()=>{class a{constructor(t,o,l,p,A){this.orgService=t,this.billingService=o,this.activatedRoute=l,this.billingSystemAvailabilityService=p,this.utilService=A,this.messages=[],this.isBillingSystemAvailable=!0}ngOnInit(){this.activatedRoute.params.subscribe(t=>this.loadPageData(t.orgHandle)),this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isBillingSystemAvailable=t.value,this.isBillingSystemAvailable&&(this.pageDataSubscription=this.loadPageData(this.handle).subscribe())})}loadPageData(t){if(this.handle=t,!!this.handle)return ue(this.orgService.getByHandle(this.handle),this.billingService.getBillingContact(this.handle),this.billingService.getLinkedWebAccounts(this.handle),this.billingService.canEditBillingInformation(this.handle)).pipe(J(([o,l,p,A])=>{if(this.org=o,this.customer=l,this.utilService.objectHasErrors(l)){this.hasErrors=!0,this.utilService.displayErrorMessage(this.messages,l);return}this.users=p,this.canEditBillingInformation=A}))}static{this.\u0275fac=function(o){return new(o||a)(g(K),g(U),g(P),g(T),g(q))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-billing-info"]],standalone:!1,decls:6,vars:3,consts:[[3,"messages"],[4,"ngIf"],[3,"subscriptions"],["header","Confirmation Needed",4,"ngIf"],["aria-label","Billing Options"],[1,"list-inline"],["id","org-handle",1,"list-inline-item","data-label"],[1,"org-handle"],["header","Billing Contact"],[1,"dl-horizontal","stored-values"],[1,"data-label"],["id","org-name"],["id","org-name2"],[1,"dl-horizontal","secondary","stored-values"],["id","customer-name"],["id","address"],["id","address2"],["id","state"],["id","country"],["id","email"],["id","phone"],["id","fax"],["class","font-italic",4,"ngIf"],["class","text-end",4,"ngIf"],["id","billing-info-box","header","What is a Billing Contact?"],[1,"list-inline-item","active"],["id","billing-information"],[1,"list-inline-item"],["id","fee-estimate",3,"routerLink"],["id","invoice-history",3,"routerLink"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"],["aria-hidden","true",1,"fa","fa-fw","fa-warning"],[1,"visually-hidden"],["apStaticLink","/participate/oversight/membership/faq/"],["href","mailto:[email protected]"],[1,"font-italic"],[1,"text-end"],["id","modify-action",1,"btn","btn-primary",3,"routerLink"],["header","Billing Account Closed",4,"ngIf"],["header","Billing Account Closed"],["routerLink","/communication/message/begin-question"],["header","Confirmation Needed"],["
313id","linked-users","header","User Accounts with Billing Authorization",4,"ngIf"],["id","no-linked-users","header","User Accounts with Billing Authorization",4,"ngIf"],["id","linked-users","header","User Accounts with Billing Authorization"],[1,"reference-to-button"],[1,"list-group",2,"max-width","400px"],["class","list-group-item",3,"id",4,"ngFor","ngForOf"],[1,"list-group-item",3,"id"],[1,"float-start","pt-1"],[1,"btn","btn-light","btn-sm",3,"id","routerLink"],["aria-hidden","true",1,"fa","fa-fw","fa-chain-broken"],[1,"clearfix"],["id","no-linked-users","header","User Accounts with Billing Authorization"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(v(0,"ap-messages",0),e(1,` 314`),m(2,qt,13,7,"ng-container",1),e(3,` 315`),m(4,Ut,11,0,"div",1),e(5,` 316`)),o&2&&(s("messages",l.messages),r(2),s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[M,C,I,j,O,E,se,w],styles:["#organization-info.dl-horizontal[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{text-align:left;width:8em}"]})}}return a})();var Ft=a=>[a];function Ht(a,c){if(a&1&&(i(0,"tr",26),e(1,` 317 `),i(2,"td",27),e(3),n(),e(4,` 318 `),i(5,"td",28),e(6),n(),e(7,` 319 `),i(8,"td",29),e(9),B(10,"currency"),n(),e(11,` 320 `),i(12,"td",30),e(13),B(14,"currency"),n(),e(15,` 321 `),n()),a&2){let t=c.$implicit,o=c.index;u("id","invoice-line-",o,""),r(2),u("id","invoice-line-desc-",o,""),r(),x(t.description),r(2),u("id","invoice-line-quantity-",o,""),r(),x(t.quantity),r(2),u("id","invoice-line-price-",o,""),r(),x(z(10,14,t.price,"USD","symbol")),r(3),u("id","invoice-line-amount-",o,""),r(),x(z(14,18,t.amount,"USD","symbol"))}}function Wt(a,c){if(a&1&&(i(0,"ap-section-container",14),e(1,` 322 `),i(2,"p",15),e(3,` 323 The following represents the `),i(4,"em"),e(5,"estimated"),n(),e(6," line-item costs for "),i(7,"strong"),e(8),n(),e(9,` as of today. Please note that 324 fees are subject to change, and you should refer to the current 325 `),i(10,"a",16),e(11,` 326 ARIN Fee Schedule`),n(),e(12,` 327 for the most accurate pricing information. 328 `),n(),e(13,` 329 `),i(14,"table",17),e(15,` 330 `),i(16,"thead"),e(17,` 331 `),i(18,"tr"),e(19,` 332 `),i(20,"th",18),e(21,"Line Description"),n(),e(22,` 333 `),i(23,"th",19),e(24,"Quantity"),n(),e(25,` 334 `),i(26,"th",20),e(27,"Unit Price"),n(),e(28,` 335 `),i(29,"th",21),e(30,"Amount"),n(),e(31,` 336 `),n(),e(32,` 337 `),n(),e(33,` 338 `),i(34,"tbody"),e(35,` 339 `),m(36,Ht,16,22,"tr",22),e(37,` 340 `),i(38,"tr"),e(39,` 341 `),v(40,"td",23),e(41,` 342 `),i(42,"td",24),e(43,"Total"),n(),e(44,` 343 `),i(45,"td",25),e(46),B(47,"currency"),n(),e(48,` 344 `),n(),e(49,` 345 `),n(),e(50,` 346 `),n(),e(51,` 347 `),n()),a&2){let t=d(2);s("isTable",!0),r(8),te("",t.orgName," (",t.orgHandle,")"),r(28),s("ngForOf",t.invoiceLines),r(10),x(z(47,5,t.theBigOldGrandTotal,"USD","symbol"))}}function jt(a,c){if(a&1&&(i(0,"p"),e(1,` 348 `),i(2,"em"),e(3,"If this cap was not in place"),n(),e(4,`, under the 349 `),i(5,"a",34),e(6,` 350 ARIN Fee Schedule`),n(),e(7,` 351 the Service Category size that would apply to the resources held by `),i(8,"strong"),e(9),n(),e(10),B(11,"currency"),n()),a&2){let t=d(3);r(9),te("",t.orgName," (",t.orgHandle,")"),r(),te(" would be ",t.getIfRspSizeCode(),`, which 352 has an annual renewal fee of `,z(11,4,t.invoiceLines[0].ifRspAmount,"USD","symbol"),`. 353 `)}}function Vt(a,c){if(a&1&&(i(0,"p"),e(1,` 354 `),i(2,"em"),e(3,"If this cap was not in place"),n(),e(4,`, under the 355 `),i(5,"a",35),e(6,` 356 ARIN Fee Schedule`),n(),e(7,` 357 the annual fee that would apply to the resources held by `),i(8,"strong"),e(9),n(),e(10),B(11,"currency"),n()),a&2){let t=d(3);r(9),te("",t.orgName," (",t.orgHandle,")"),r(),te(" would be ",t.getIfRspDescription(),`, which 358 has an annual renewal fee of `,z(11,4,t.invoiceLines[0].ifRspAmount,"USD","symbol"),`. 359 `)}}function Gt(a,c){if(a&1&&(b(0),e(1,` 360 361 `),i(2,"ap-section-container",31),e(3,` 362 `),i(4,"p",32),e(5,` 363 As a current LRSA resource holder, `),i(6,"strong"),e(7),n(),e(8,` is subject to the 364 `),i(9,"a",33),e(10,"LRSA fee cap"),n(),e(11,`. 365 `),n(),e(12,` 366 `),m(13,jt,12,8,"p",1),e(14,` 367 `),m(15,Vt,12,8,"p",1),e(16,` 368 `),n(),e(17,` 369 370 `),y()),a&2){let t=d(2);r(7),te("",t.orgName," (",t.orgHandle,")"),r(6),s("ngIf",t.getIfRspSizeCode()),r(2),s("ngIf",!t.getIfRspSizeCode())}}function Qt(a,c){if(a&1&&(b(0),e(1,` 371 `),i(2,"ap-busy",2),e(3,` 372 `),e(4,` 373 `),i(5,"nav",3),e(6,` 374 `),i(7,"ul",4),e(8,` 375 `),i(9,"li",5)(10,"span"),e(11,"Org ID: "),i(12,"strong",6),e(13),n()()(),e(14,` 376 `),i(15,"li",7),e(16,` 377 `),i(17,"span")(18,"a",8),e(19,` 378 Billing Information`),n()(),e(20,` 379 `),n(),e(21,` 380 `),i(22,"li",9),e(23,` 381 `),i(24,"span",10),e(25,"Fee Estimate"),n(),e(26,` 382 `),n(),e(27,` 383 `),i(28,"li",7),e(29,` 384 `),i(30,"span")(31,"a",11),e(32,` 385 Invoice and Payment History`),n()(),e(33,` 386 `),n(),e(34,` 387 `),n(),e(35,` 388 `),n(),e(36,` 389 `),e(37,` 390 `),m(38,Wt,52,9,"ap-section-container",12),e(39,` 391 392 `),m(40,Gt,18,4,"ng-container",1),e(41,` 393 394 395 `),i(42,"div",13),e(43,` 396 `),i(44,"strong"),e(45,"Important Notice: "),v(46,"br")(47,"br"),n(),e(48,` 397 `),i(49,"p"),e(50,`This fee estimator is for informational purposes only. Actual fees will be based on your organization's anniversary billing month, 398 and ARIN bills in advance of the due date. Any potential changes in fees will be reflected in the invoice associated with your billing cycle. 399 `),n(),e(51,` 400 `),i(52,"p"),e(53,`ARIN does not guarantee the accuracy of this estimate. By using this estimator, you acknowledge that the results do not constitute an official 401 billing statement. 402 `),n(),e(54,` 403 `),n(),e(55,` 404 405 `),n(),e(56,` 406`),y()),a&2){let t=d();r(2),s("subscriptions",re(8,Ft,t.invoiceLineSub)),r(11),x(t.orgHandle),r(5),u("routerLink","/secure/billing/contact/",t.orgHandle,""),r(13),u("routerLink","/secure/billing/history/",t.orgHandle,""),r(7),s("ngIf",t.invoiceLines&&t.invoiceLines.length>0),r(2),s("ngIf",t.legacyOrg)}}function Yt(a,c){a&1&&(i(0,"div"),e(1,` 407 `),i(2,"alert",36),e(3,` 408 `),i(4,"span"),v(5,"i",37),n(),e(6,` 409 `),i(7,"span"),e(8,` 410 Our billing system is currently unavailable. Please try again later. 411 `),n(),e(9,` 412 `),n(),e(10,` 413`),n())}var Ke=(()=>{class a{constructor(t,o,l,p,A){this.route=t,this.orgService=o,this.utilService=l,this.billingSystemAvailabilityService=p,this.invoiceSerivce=A,this.orgHandle=null,this.orgName=null,this.isBillingSystemAvailable=!0,this.messages=[],this.theBigOldGrandTotal=0,this.legacyOrg=!1}ngOnInit(){this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isBillingSystemAvailable=t.value,this.isBillingSystemAvailable&&this.route.params.subscribe(o=>this.loadPageData(o.orgHandle))})}loadPageData(t){this.orgHandle=t,this.orgHandle&&(this.orgService.getByHandle(this.orgHandle).subscribe(o=>this.orgName=o.name),this.invoiceLineSub=this.invoiceSerivce.generateInvoiceLines(this.orgHandle).subscribe(o=>{if(this.utilService.objectHasErrors(o)){this.utilService.displayErrorMessage(this.messages,o);return}this.invoiceLines=o.value;for(let l of this.invoiceLines)this.theBigOldGrandTotal+=l.amount,!this.legacyOrg&&l.legacy&&(this.legacyOrg=l.legacy)}))}getIfRspSizeCode(){return this.invoiceLines[0].ifRspSize}getIfRspDescription(){return this.invoiceLines[0].ifRspDescription}static{this.\u0275fac=function(o){return new(o||a)(g(P),g(K),g(q),g(T),g(X))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-fee"]],standalone:!1,decls:6,vars:3,consts:[[3,"messages"],[4,"ngIf"],[3,"subscriptions"],["aria-label","Billing Options"],[1,"list-inline"],[1,"list-inline-item","data-label"],[1,"org-handle"],[1,"list-inline-item"],["id","billing-information",3,"routerLink"],[1,"list-inline-item","active"],["id","fee-estimate"],["id","invoice-history",3,"routerLink"],["header","Fee Estimate for Number Resources",3,"isTable",4,"ngIf"],[1,"tiny-lawyer-text"],["header","Fee Estimate for Number Resources",3,"isTable"],["id","descr-estimated-fee-for-org"],["id","static-site-fees","apStaticLink","/resources/fees/fee_schedule/"],["aria-describedby","descr-estimated-fee-for-org",1,"table","table-striped","data-responsive"],["id","fee-line-desc","scope","col"],["id","fee-quantity","scope","col"],["id","fee-unit-price","scope","col"],["id","fee-amount","scope","col"],[3,"id",4,"ngFor","ngForOf"],["colspan","2",1,"d-none","d-md-table-cell"],["id","grand-total-label",1,"fee-total","d-none","d-md-table-cell"],["data-label","Total","id","grand-total",1,"fee-total"],[3,"id"],["data-label","Description",3,"id"],["data-label","Quantity",1,"text-center",3,"id"],["data-label","Unit Price",3,"id"],["data-label","Amount",3,"id"],["header","Fee Harmonization Comparison"],["id","descr-estimated-fee-for-legacy"],["
413id","static-site-fee-cap","apStaticLink","/resources/fees/fee_schedule/"],["id","static-site-fees-legacy","apStaticLink","/resources/fees/fee_schedule/"],["id","static-site-fees-legacy-asnonly","apStaticLink","/resources/fees/fee_schedule/"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(v(0,"ap-messages",0),e(1,` 414`),m(2,Qt,57,10,"ng-container",1),e(3,` 415`),m(4,Yt,11,0,"div",1),e(5,` 416`)),o&2&&(s("messages",l.messages),r(2),s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[M,C,I,j,O,E,se,w,Z],styles:[".fee-total[_ngcontent-%COMP%]{background-color:#dbf5fd!important;font-weight:700}.tiny-lawyer-text[_ngcontent-%COMP%]{font-size:12px;color:#696969;padding-bottom:1rem}@media (max-width: 767px){td.text-center[data-label=Quantity][_ngcontent-%COMP%]{text-align:left!important}nav[_ngcontent-%COMP%] ul.list-inline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block}}"]})}}return a})();var Zt=a=>[a];function Kt(a,c){a&1&&v(0,"br")}function Xt(a,c){if(a&1){let t=H();i(0,"div"),e(1,` 417 `),i(2,"nav",3),e(3,` 418 `),i(4,"ul",4),e(5,` 419 `),i(6,"li",5)(7,"span"),e(8,"Org ID: "),i(9,"strong",6),e(10),n()()(),e(11,` 420 `),i(12,"li",7),e(13,` 421 `),i(14,"span")(15,"a",8),e(16,"Billing Information"),n()(),e(17,` 422 `),n(),e(18,` 423 `),i(19,"li",9),e(20,` 424 `),i(21,"span")(22,"a",10),e(23,"Fee Estimate"),n()(),e(24,` 425 `),n(),e(25,` 426 `),i(26,"li",9),e(27,` 427 `),i(28,"span")(29,"a",11),e(30,` 428 Invoice and Payment History`),n()(),e(31,` 429 `),n(),e(32,` 430 `),n(),e(33,` 431 `),n(),e(34,` 432 `),i(35,"div",12),e(36,` 433 `),i(37,"p")(38,"strong"),e(39,"Is this the right form for your situation?"),n()(),e(40,` 434 `),i(41,"ul"),e(42,` 435 `),i(43,"li"),e(44,` 436 If your Org ID's Bill-To name has changed due to a `),i(45,"strong"),e(46,`merger, acquisition, reorganization, 437 or other asset transfer`),n(),e(47,`, the Admin or Tech POC can begin this process with a 438 `),i(48,"a",13),e(49,"Transfer Request"),n(),e(50,` instead. 439 `),n(),e(51,` 440 `),i(52,"li"),e(53,` 441 If your Org ID's Bill-To has changed as a result of `),i(54,"strong"),e(55,`a name change filed with your 442 state, province, or local government, or due to a change in your bylaws or charter,`),n(),e(56,` 443 the Admin or Tech POC can do so with the 444 `),i(57,"a",14),e(58,"Request Name Change"),n(),e(59,` process instead. 445 `),n(),e(60,` 446 `),i(61,"li"),e(62,` 447 If you need to change the Billing Contact for any other reason, use this form. 448 `),n(),e(63,` 449 `),n(),e(64,` 450 451 `),i(65,"p")(66,"strong"),e(67,"Note:"),n(),e(68," All Billing Contact change requests are reviewed by ARIN staff."),n(),e(69,` 452 `),i(70,"p"),e(71,"Billing Contact information is not published in ARIN's Whois."),n(),e(72,` 453 `),e(73,` 454 `),n(),e(74,` 455 456 `),i(75,"ap-section-container",15),e(76,` 457 `),i(77,"form",16),e(78,` 458 `),v(79,"ap-helper-required-note",17),e(80,` 459 460 `),i(81,"div",18),e(82,` 461 `),i(83,"div",19),e(84,"Bill-to Name"),n(),e(85,` 462 `),i(86,"div",20),e(87,` 463 `),i(88,"div",21),e(89),m(90,Kt,1,0,"br",1),e(91),n(),e(92,` 464 `),n(),e(93,` 465 `),n(),e(94,` 466 467 `),i(95,"ap-form-control-base",22),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.contact,l)||(p.billingCustomer.contact=l),h(l)}),n(),e(96,` 468 469 `),i(97,"ap-form-control-base",23),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.street,l)||(p.billingCustomer.street=l),h(l)}),n(),e(98,` 470 471 `),i(99,"ap-form-control-base",24),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.street2,l)||(p.billingCustomer.street2=l),h(l)}),n(),e(100,` 472 473 `),i(101,"ap-form-control-base",25),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.city,l)||(p.billingCustomer.city=l),h(l)}),n(),e(102,` 474 475 `),i(103,"ap-form-control-base",26),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.stateProvince,l)||(p.billingCustomer.stateProvince=l),h(l)}),e(104,` 476 Required for the US and Canada. 477 `),n(),e(105,` 478 479 `),i(106,"ap-form-control-options",27),k("valueChange",function(l){f(t);let p=d(2);return h(p.billingCustomer.countryCode=l)}),e(107,` 480 `),n(),e(108,` 481 482 `),i(109,"ap-form-control-base",28),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.postalCode,l)||(p.billingCustomer.postalCode=l),h(l)}),e(110,` 483 Required for AS, CA, FM, GU, MH, MP, PR, PW, US, and VI`),v(111,"br"),e(112,` 484 Canadian postal code must follow format of A9A 9A9`),v(113,"br"),e(114,` 485 All others listed above must follow format of 12345 or 12345-6789 486 `),n(),e(115,` 487 488 `),i(116,"ap-form-control-base",29),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.email,l)||(p.billingCustomer.email=l),h(l)}),n(),e(117,` 489 490 `),i(118,"ap-form-control-base",30),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.phone,l)||(p.billingCustomer.phone=l),h(l)}),e(119,` 491 `),i(120,"p"),e(121,"For a phone extension, use a space between your number and the extension."),v(122,"br"),e(123,` 492 Example: +1 (123) 456-7890 123 493 `),n(),e(124,` 494 `),n(),e(125,` 495 496 `),i(126,"ap-form-control-base",31),D("valueChange",function(l){f(t);let p=d(2);return L(p.billingCustomer.fax,l)||(p.billingCustomer.fax=l),h(l)}),e(127,` 497 `),i(128,"p"),e(129,"For a phone extension, use a space between the main number and the extension."),v(130,"br"),e(131,` 498 Example: +1 (123) 456-7890 123 499 `),n(),e(132,` 500 `),n(),e(133,` 501 502 `),n(),e(134,` 503 504 `),i(135,"div",32),e(136,` 505 `),i(137,"button",33),k("arinActivate",function(){f(t);let l=d(2);return h(l.cancel())}),e(138,"Cancel"),n(),e(139,` 506 `),i(140,"button",34),k("arinActivate",function(){f(t);let l=d(2);return h(l.submit())}),e(141,"Submit"),n(),e(142,` 507 `),n(),e(143,` 508 509 `),n(),e(144,` 510 `),n()}if(a&2){let t=d(2);r(10),x(t.billingCustomer.clientId),r(5),u("routerLink","/secure/billing/contact/",t.billingCustomer.clientId,""),r(7),u("routerLink","/secure/billing/fee/",t.billingCustomer.clientId,""),r(7),u("routerLink","/secure/billing/history/",t.billingCustomer.clientId,""),r(19),s("autoFocus",!0),r(9),u("routerLink","/secure/org/edit/",t.billingCustomer.clientId,"/name"),s("autoFocus",!0),r(22),s("hasHeight",!0),r(10),x(t.billingCustomer.clientName),r(),s("ngIf",t.billingCustomer.clientName2),r(),_("",t.billingCustomer.clientName2,` 511 `),r(4),s("required",!0),R("value",t.billingCustomer.contact),s("errors",t.errors==null?null:t.errors.contactName),r(2),s("required",!0),R("value",t.billingCustomer.street),s("errors",t.errors==null?null:t.errors.address),r(2),R("value",t.billingCustomer.street2),s("errors",t.errors==null?null:t.errors.address2),r(2),s("required",!0),R("value",t.billingCustomer.city),s("errors",t.errors==null?null:t.errors.city),r(2),s("required",!1),R("value",t.billingCustomer.stateProvince),s("errors",t.errors==null?null:t.errors.stateOrProvince),r(3),s("required",!0)("value",t.billingCustomer.countryCode)("errors",t.errors==null?null:t.errors.countryCode)("options",t.countryArray),r(3),R("value",t.billingCustomer.postalCode),s("errors",t.errors==null?null:t.errors.postalCode),r(7),s("required",!0),R("value",t.billingCustomer.email),s("errors",t.errors==null?null:t.errors.email),r(2),s("required",!0),R("value",t.billingCustomer.phone),s("errors",t.errors==null?null:t.errors.phoneNumber),r(8),R("value",t.billingCustomer.fax),s("errors",t.errors==null?null:t.errors.faxNumber)}}function $t(a,c){if(a&1&&(b(0),e(1,` 512 `),i(2,"ap-busy",2),e(3,` 513 `),m(4,Xt,145,43,"div",1),e(5,` 514 `),n(),e(6,` 515`),y()),a&2){let t=d();r(2),s("subscriptions",re(2,Zt,t.retrieveCustomerSub)),r(2),s("ngIf",(t.billingCustomer==null?null:t.billingCustomer.accountFound)&&!t.hasErrors)}}function ei(a,c){a&1&&(i(0,"div"),e(1,` 516 `),i(2,"alert",35),e(3,` 517 `),i(4,"span"),v(5,"i",36),n(),e(6,` 518 `),i(7,"span"),e(8,` 519 Our billing system is currently unavailable. Please try again later. 520 `),n(),e(9,` 521 `),n(),e(10,` 522`),n())}var $e=(()=>{class a{constructor(t,o,l,p,A,N,ee){this.route=t,this.ticketSerice=o,this.billingService=l,this.lovService=p,this.utilService=A,this.billingSystemAvailabilityService=N,this.router=ee,this.billingCustomer={},this.countryArray=[],this.stateProvArray=[],this.messages=[],this.hasErrors=!1,this.isBillingSystemAvailable=!0,this.canEditBillingInformation=!1}ngOnInit(){this.route.params.subscribe(t=>this.loadPageData(t.orgHandle)),this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isBillingSystemAvailable=t.value,this.isBillingSystemAvailable&&(this.editBillingPermissionSub=this.billingService.canEditBillingInformation(this.orgHandle).subscribe(o=>{this.canEditBillingInformation=o,this.canEditBillingInformation?this.retrieveCustomerSub=this.billingService.getBillingContact(this.orgHandle).subscribe(l=>{if(this.billingCustomer=l,this.utilService.objectHasErrors(this.billingCustomer)){this.hasErrors=!0,this.utilService.displayErrorMessage(this.messages,this.billingCustomer);return}this.loadCountries(),this.loadStateProv()}):(this.hasErrors=!0,this.messages.push({cssClass:"alert-danger",icon:"fa-exclamation-triangle",text:"You are not authorized to modify this Billing Contact."}))}))})}loadPageData(t){this.orgHandle=t,this.orgHandle}cancel(){this.utilService.goBack()}loadCountries(){this.lovService.getLov("Country").subscribe(t=>{this.countryArray=this.utilService.objectToArray(t,"countryName")})}loadStateProv(){this.lovService.getLov("StateProv").subscribe(t=>{this.stateProvArray=this.utilService.objectToArray(t)})}
522submit(){this.editBillingContactSub&&!this.editBillingContactSub.closed||(this.errors=null,this.createBillingContactRequestFromCust(this.billingCustomer),this.editBillingContactSub=this.ticketSerice.createTicket(he.EDIT_BILLING_CONTACT_INFO,this.billingContactRequest,[]).subscribe({next:t=>{this.validateExtraneousErrorsThatWeCantDoWithJavaAnnotationsBetweenFieldsWithoutHavingThemAsClassAnnotationsWhichIsNotWhatWeWant(!0)&&this.router.navigate(["communication/ticket/submitted"],{queryParams:{ticketNumber:t.value,ticketType:he[he.EDIT_BILLING_CONTACT_INFO]}})},error:t=>{this.errors=t.error.errors,this.validateExtraneousErrorsThatWeCantDoWithJavaAnnotationsBetweenFieldsWithoutHavingThemAsClassAnnotationsWhichIsNotWhatWeWant(!1)}}))}validateExtraneousErrorsThatWeCantDoWithJavaAnnotationsBetweenFieldsWithoutHavingThemAsClassAnnotationsWhichIsNotWhatWeWant(t){let o=!0,l=this.stateProvinceErrors();l&&(t&&(this.resetErrorTemplate(),t=!1),this.errors.stateOrProvince=[l],o=!1);let p=this.postalCodeErrors();return p&&(t&&this.resetErrorTemplate(),this.errors.postalCode=[p],o=!1),o}stateProvinceErrors(){let t=this.billingCustomer.countryCode,o=this.billingCustomer.stateProvince;if(!o&&t&&(t==="US"||t==="CA"))return"Value is required if the country selected is US or Canada.";if(t&&t==="US"||t==="CA"){let l=!1;for(let p of this.stateProvArray){let A=p.value,N=p.key;if(A.stateProvName.toUpperCase()===o.toUpperCase()||N.toUpperCase()===o.toUpperCase())if(A.countryId===t)l=!0,this.billingCustomer.stateProvince=N;else return"The state/province is invalid for the country selected."}if(!l)return"The state/province is invalid for the country selected."}}postalCodeErrors(){let t=this.billingCustomer.postalCode,o=this.billingCustomer.countryCode,l=this.billingCustomer.stateProvince,p=["AS","FM","GU","MH","MP","PW","PR","VI","AMERICA SAMOA","FEDERATED STATES OF MICRONESIA","GUAM","MARSHALL ISLANDS","NORTHERN MARIANA ISLANDS","PALAU","PUERTO RICO","VIRGIN ISLANDS"];if(!o||!l)return null;if(o==="US"||o==="CA"||p.some(A=>A===l.toUpperCase())){if(!t)return"Postal code is required for country selected.";if(!/[a-zA-Z0-9\\s\-].*/.test(t))return"Only the following are valid for this field: a-z A-Z 0-9 - and space.";if(o==="CA"&&!/^[A-Za-z]\d[A-Za-z][\s\-]\d[A-Za-z]\d$/.test(t)||(o==="US"||p.some(N=>N===l.toUpperCase()))&&!/^\d{5}(?:[-]\d{4})??$/.test(t))return"Postal code not in the correct format for country selected."}return null}resetErrorTemplate(){this.errors={contactName:[],address:[],address2:[],city:[],stateOrProvince:[],postalCode:[],countryCode:[],phoneNumber:[],faxNumber:[],email:[]}}
522createBillingContactRequestFromCust(t){this.billingContactRequest={orgId:t.clientId,orgName:t.clientName,orgName2:t.clientName2,contactName:t.contact,address:t.street,address2:t.street2,city:t.city,stateOrProvince:t.stateProvince,countryCode:t.countryCode,postalCode:t.postalCode,email:t.email,phoneNumber:t.phone,faxNumber:t.fax}}static{this.\u0275fac=function(o){return new(o||a)(g(P),g(je),g(U),g(ze),g(q),g(T),g(le))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-edit-billing-contact"]],standalone:!1,decls:6,vars:3,consts:[[3,"messages"],[4,"ngIf"],[3,"subscriptions"],["aria-label","Billing Options"],[1,"list-inline"],[1,"list-inline-item","data-label"],[1,"org-handle"],[1,"list-inline-item","active"],["id","billing-information",3,"routerLink"],[1,"list-inline-item"],["id","fee-estimate",3,"routerLink"],["id","invoice-history",3,"routerLink"],["id","modifybilling-theboringpartthatnobodyreads"],["id","transfer-request","routerLink","/secure/transfer/transfer-resources","apFocusElementOnInit","",3,"autoFocus"],["id","name-change-request","apFocusElementOnInit","",3,"routerLink","autoFocus"],["header","Request Billing Contact Modification"],[1,"form-horizontal"],[3,"hasHeight"],[1,"form-group"],[1,"control-label"],[1,"input-container"],["id","bill-to-field",1,"form-control-static"],["id","edit-billing-contact-name","label","Name",3,"valueChange","required","value","errors"],["id","edit-billing-address","label","Address",3,"valueChange","required","value","errors"],["id","edit-billing-contact-address-2","label","Address 2",3,"valueChange","value","errors"],["id","edit-billing-contact-city","label","City",3,"valueChange","required","value","errors"],["id","edit-billing-contact-state","label","State/Province",3,"valueChange","required","value","errors"],["id","edit-billing-contact-country","label","Country","defaultOption","Please select a country",3,"valueChange","required","value","errors","options"],["id","edit-billing-contact-zip","label","Postal Code",3,"valueChange","value","errors"],["id","edit-billing-contact-email","label","Email Address",3,"valueChange","required","value","errors"],["id","edit-billing-contact-phone","label","Phone",3,"valueChange","required","value","errors"],["id","edit-billing-contact-fax","label","Fax",3,"valueChange","value","errors"],[1,"text-end"],["id","edit-billing-contact-cancel-button","type","submit",1,"btn","btn-light",3,"arinActivate"],["id","edit-billing-contact-submit-button","type","submit",1,"btn","btn-primary","ms-2",3,"arinActivate"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(v(0,"ap-messages",0),e(1,` 523`),m(2,$t,7,4,"ng-container",1),e(3,` 524`),m(4,ei,11,0,"div",1),e(5,` 525`)),o&2&&(s("messages",l.messages),r(2),s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[C,I,ce,qe,fe,Fe,j,O,E,Me,w],styles:["@media (max-width: 767px){nav[_ngcontent-%COMP%] ul.list-inline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block}}"]})}}return a})();var ii=(a,c)=>[a,c];function ni(a,c){if(a&1){let t=H();b(0),e(1,` 526 `),i(2,"ap-section-container",10),e(3,` 527 `),i(4,"p",11),e(5,` 528 You are requesting to remove `),i(6,"strong"),e(7),n(),e(8," from accessing billing-related data for "),i(9,"strong"),e(10),n(),e(11,`. Are you sure you want to proceed? 529 `),n(),e(12,` 530 `),n(),e(13,` 531 `),i(14,"div",12),e(15,` 532 `),i(16,"a",13),e(17,"Cancel"),n(),e(18,` 533 `),i(19,"a",14),k("arinActivate",function(){f(t);let l=d(3);return h(l.unlinkUser())}),e(20,"Unlink User"),n(),e(21,` 534 `),n(),e(22,` 535 536 `),y()}if(a&2){let t=d(3);r(7),x(t.userOrgLink.name),r(3),x(t.userOrgLink.orgHandle),r(6),u("routerLink","/secure/billing/contact/",t.userOrgLink.orgHandle,"")}}function ai(a,c){if(a&1&&(i(0,"ap-section-container",15),e(1,` 537 `),i(2,"p",11)(3,"strong"),e(4),n(),e(5,` no longer has access to billing-related data for 538 `),i(6,"strong"),e(7),n(),e(8," through Billing Authorization."),n(),e(9,` 539 `),n()),a&2){let t=d(3);r(4),x(t.userOrgLink.name),r(3),x(t.userOrgLink.orgHandle)}}function ri(a,c){if(a&1&&(i(0,"div"),e(1,` 540 `),e(2,` 541 `),i(3,"nav",2),e(4,` 542 `),i(5,"ul",3),e(6,` 543 `),i(7,"li",4),e(8,"Org ID: "),i(9,"strong"),e(10),n()(),e(11,` 544 `),i(12,"li",5),e(13,` 545 `),i(14,"span")(15,"a",6),e(16,"Billing Information"),n()(),e(17,` 546 `),n(),e(18,` 547 `),i(19,"li",4),e(20,` 548 `),i(21,"span")(22,"a",7),e(23,"Fee Estimate"),n()(),e(24,` 549 `),n(),e(25,` 550 `),i(26,"li",4),e(27,`
551 `),i(28,"span")(29,"a",8),e(30,"Invoice and Payment History"),n()(),e(31,` 552 `),n(),e(32,` 553 `),n(),e(33,` 554 `),n(),e(34,` 555 `),m(35,ni,23,4,"ng-container",0),e(36,` 556 557 `),m(37,ai,10,2,"ap-section-container",9),e(38,` 558 `),n()),a&2){let t=d(2);r(10),x(t.userOrgLink.orgHandle),r(5),u("routerLink","/secure/billing/contact/",t.userOrgLink.orgHandle,""),r(7),u("routerLink","/secure/billing/fee/",t.userOrgLink.orgHandle,""),r(7),u("routerLink","/secure/billing/history/",t.userOrgLink.orgHandle,""),r(6),s("ngIf",!t.unlinkRequestProcessed),r(2),s("ngIf",t.unlinkRequestProcessed)}}function oi(a,c){if(a&1&&(b(0),e(1,` 559 `),i(2,"ap-busy",1),e(3,` 560 `),m(4,ri,39,9,"div",0),e(5,` 561 `),n(),e(6,` 562`),y()),a&2){let t=d();r(2),s("subscriptions",W(2,ii,t.getlinkedAccountsSubscription,t.deleteUserOrgLinkSubscription)),r(2),s("ngIf",t.userOrgLink)}}function li(a,c){a&1&&(i(0,"div"),e(1,` 563 `),i(2,"alert",16),e(3,` 564 `),i(4,"span"),v(5,"i",17),n(),e(6,` 565 `),i(7,"span"),e(8,` 566 Our billing system is currently unavailable. Please try again later. 567 `),n(),e(9,` 568 `),n(),e(10,` 569`),n())}var et=(()=>{class a{constructor(t,o,l,p,A){this.pageTitleService=t,this.userAuthorizationService=o,this.billingService=l,this.billingSystemAvailabilityService=p,this.activatedRoute=A,this.unlinkRequestProcessed=!1,this.isbillingSystemAvailable=!0}ngOnInit(){this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isbillingSystemAvailable=t.value,this.isbillingSystemAvailable&&(this.handle=this.activatedRoute.snapshot.params.orgHandle,this.username=this.activatedRoute.snapshot.params.userName,this.getlinkedAccountsSubscription=this.loadLinkedWebAccount().subscribe())})}loadLinkedWebAccount(){return this.billingService.getLinkedWebAccount(this.handle,this.username).pipe(J(t=>this.userOrgLink=t))}unlinkUser(){this.deleteUserOrgLinkSubscription=this.billingService.unlinkWebAccount(this.userOrgLink.orgHandle,this.userOrgLink.userName).subscribe(t=>{this.pageTitleService.setPageTitle("Unlink User"),this.unlinkRequestProcessed=!0,this.userAuthorizationService.refreshUserAuthorization()})}static{this.\u0275fac=function(o){return new(o||a)(g(De),g(ve),g(U),g(T),g(P))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-unlink-wuser"]],standalone:!1,decls:4,vars:2,consts:[[4,"ngIf"],[3,"subscriptions"],["aria-label","Billing Options"],[1,"list-inline"],[1,"list-inline-item"],[1,"list-inline-item","active"],["id","billing-information",3,"routerLink"],["id","fee-estimate",3,"routerLink"],["id","invoice-history",3,"routerLink"],["header","Billing Authorization Removed",4,"ngIf"],["header","Remove Billing Authorization"],[1,"instructions"],[1,"right-button-container"],["id","no-button",1,"btn","btn-light",3,"routerLink"],["id","yes-button",1,"btn","btn-primary","ms-2",3,"arinActivate"],["header","Billing Authorization Removed"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(m(0,oi,7,5,"ng-container",0),e(1,` 570`),m(2,li,11,0,"div",0),e(3,` 571`)),o&2&&(s("ngIf",l.isbillingSystemAvailable),r(2),s("ngIf",!l.isbillingSystemAvailable))},dependencies:[C,I,ce,O,E,w],styles:["@media (max-width: 767px){nav[_ngcontent-%COMP%] ul.list-inline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block}}"]})}}return a})();var si=(a,c)=>[a,c];function ci(a,c){if(a&1){let t=H();i(0,"div"),e(1,` 572 `),i(2,"p"),e(3,` 573 Billing Authorization allows you to access and manage the Billing Contact and other billing information (such as invoices) for an Org ID (Organization Identifier). 574 `),n(),e(4,` 575 `),i(5,"strong"),e(6,"Please Note:"),n(),e(7,` 576 `),i(8,"ul"),e(9,` 577 `),i(10,"li")(11,"p"),e(12,"Use this form if your only responsibility for an Org ID is to manage its billing information."),n()(),e(13,` 578 `),i(14,"li")(15,"p"),e(16,`Admin and Tech POCs have access to billing information. 579 If your ARIN Online user account is not linked to one of these POCs, you can request to 580 `),i(17,"a",2),e(18,"link to an existing Admin or Tech POC"),n(),e(19,`. 581 `),n()(),e(20,` 582 `),n(),e(21,` 583 `),i(22,"p"),e(23,` 584 Your authorization request will be emailed to the Billing Contact on file with ARIN. 585 `),n(),e(24,` 586 587 `),i(25,"form",3),e(26,` 588 `),i(27,"ap-section-container",4),e(28,` 589 `),i(29,"ap-form-control-base",5),D("valueChange",function(l){f(t);let p=d(2);return L(p.handle,l)||(p.handle=l),h(l)}),n(),e(30,` 590 `),n(),e(31,` 591 592 `),i(32,"div",6),e(33,` 593 `),i(34,"input",7),k("arinActivate",function(){f(t);let l=d(2);return h(l.cancel())}),n(),e(35,` 594 `),i(36,"input",8),k("arinActivate",function(){f(t);let l=d(2);return h(l.requestAuthorization())}),n(),e(37,` 595 `),n(),e(38,` 596 `),n(),e(39,` 597 `),n()}if(a&2){let t=d(2);r(29),s("required",!1),R("value",t.handle),s("errors",t.authorizeRequestProcessed==null?null:t.authorizeRequestProcessed.errors.orgHandle)}}function mi(a,c){if(a&1){let t=H();i(0,"alert",12),e(1,` 598 `),i(2,"span"),v(3,"i",13),n(),e(4,` 599 `),i(5,"span"),e(6),v(7,"br"),e(8,` 600 `),i(9,"a",14),k("arinActivate",function(){f(t);let l=d(3);return h(l.requestAuthorizationForSuggestedHandle())}),e(10),n(),e(11,`. 601 `),n(),e(12,` 602 `),n()}if(a&2){let t=d(3);r(6),_(` 603 The Org ID is related to another organization, `,t.suggestedHandle,". "),r(4),_("Request authorization to manage the billing information for ",t.suggestedHandle,"")}}function di(a,c){if(a&1&&(i(0,"div"),e(1,` 604 605 `),m(2,mi,13,2,"alert",9),e(3,`
606 607 `),i(4,"ap-section-container",10),e(5,` 608 `),i(6,"p"),e(7,` 609 Thank you for submitting your request to manage billing information for the Org ID `),i(8,"strong"),e(9),n(),e(10,`. 610 `),n(),e(11,` 611 `),i(12,"p"),e(13,` 612 An authorization email has been sent to the organization's Billing Contact on file with ARIN\u2019s Financial Services. 613 `),n(),e(14,` 614 `),n(),e(15,` 615 616 `),i(16,"ap-section-container",11),e(17,` 617 618 `),i(18,"ul"),e(19,` 619 `),i(20,"li"),e(21,"The authorization email sent to the Billing Contact contains an authorization URL."),n(),e(22,` 620 `),i(23,"li"),e(24,"Use the authorization URL in a browser while logged in to your user account."),n(),e(25,` 621 `),i(26,"li"),e(27,"Be sure to respond to the email as soon as possible, as the URL will expire."),n(),e(28,` 622 `),n(),e(29,` 623 `),i(30,"p"),e(31,` 624 The Billing Authorization process protects your organization by ensuring you can access the email sent to the Billing Contact on file with ARIN. 625 `),n(),e(32,` 626 627 `),n(),e(33,` 628 `),n()),a&2){let t=d(2);r(2),s("ngIf",t.suggestedHandle),r(7),x(t.handle),r(7),s("sectionType","info")}}function pi(a,c){if(a&1&&(i(0,"div"),e(1,` 629 `),i(2,"ap-busy",1),e(3,` 630 631 `),m(4,ci,40,3,"div",0),e(5,` 632 633 634 `),m(6,di,34,3,"div",0),e(7,` 635 636 637 `),n(),e(8,` 638`),n()),a&2){let t=d();r(2),s("subscriptions",W(3,si,t.requestAuthorizationSubscription,t.suggestionSubscription)),r(2),s("ngIf",!t.authorizeRequestProcessed||(t.authorizeRequestProcessed==null?null:t.authorizeRequestProcessed.value)==!1),r(2),s("ngIf",t.authorizeRequestProcessed==null?null:t.authorizeRequestProcessed.value)}}function ui(a,c){a&1&&(i(0,"div"),e(1,` 639 `),i(2,"alert",15),e(3,` 640 `),i(4,"span"),v(5,"i",16),n(),e(6,` 641 `),i(7,"span"),e(8,` 642 Our billing system is currently unavailable. Please try again later. 643 `),n(),e(9,` 644 `),n(),e(10,` 645`),n())}var tt=(()=>{class a{constructor(t,o,l){this.billingService=t,this.utilService=o,this.billingSystemAvailabilityService=l,this.isBillingSystemAvailable=!0}ngOnInit(){this.billingSystemAvailabilityService.getAvailability().subscribe(t=>this.isBillingSystemAvailable=t.value)}requestAuthorization(){if(this.handle===void 0){this.authorizeRequestProcessed={value:!1,errors:{orgHandle:["Value is required."]}};return}this.handle=this.handle.trim().toUpperCase(),this.requestAuthorizationSubscription=this.billingService.requestAuthorization(this.handle).subscribe(t=>{this.authorizeRequestProcessed=t,this.authorizeRequestProcessed.value&&(this.suggestionSubscription=this.billingService.billingOrgSuggestions(this.handle).subscribe(o=>{this.suggestedHandle=o}))})}cancel(){this.utilService.goBack()}clear(){this.authorizeRequestProcessed=null,this.suggestedHandle=null,this.handle=null}requestAuthorizationForSuggestedHandle(){this.authorizeRequestProcessed=null,this.handle=this.suggestedHandle,this.suggestedHandle=null}static{this.\u0275fac=function(o){return new(o||a)(g(U),g(q),g(T))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-request-authorization"]],standalone:!1,decls:4,vars:2,consts:[[4,"ngIf"],[3,"subscriptions"],["id","pocLink","routerLink","/secure/poc/link",1,"reference-to-navigation"],[1,"form-horizontal"],["header","Request Access to Billing Information"],["id","org-handle","label","Org ID",3,"valueChange","required","value","errors"],[1,"text-end"],["type","button","value","Cancel",1,"btn","btn-light",3,"arinActivate"],["type","button","value","Submit","id","submit-request-auth",1,"btn","btn-primary","ms-2",3,"arinActivate"],["id","suggested-handle","class","alert-info","type","info","role","alert",4,"ngIf"],["header","Billing Authorization Request Submitted"],["header","What's Next?",3,"sectionType"],["id","suggested-handle","type","info","role","alert",1,"alert-info"],["aria-hidden","true",1,"fa","fa-fw","fa-info-circle"],["id","request-suggested",1,"alert-link",3,"arinActivate"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(m(0,pi,9,6,"div",0),e(1,` 646`),m(2,ui,11,0,"div",0),e(3,` 647`)),o&2&&(s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[C,I,ce,fe,O,E,w],encapsulation:2})}}return a})();function gi(a,c){if(a&1&&(i(0,"div"),e(1,` 648 `),i(2,"ap-section-container",2),e(3,` 649 650 `),i(4,"p"),e(5,` 651 You are now authorized to manage the billing information for Org ID `),i(6,"a",3),e(7),n(),e(8,`. 652 `),n(),e(9,` 653 `),n(),e(10,` 654 `),n()),a&2){let t=d();r(6),u("routerLink","/secure/billing/contact/",t.result.value,""),r(),x(t.result.value)}}function xi(a,c){if(a&1&&(i(0,"div"),e(1,` 655 `),i(2,"ap-section-container",4),e(3,` 656 `),i(4,"p"),e(5),n(),e(6,` 657 658 `),n(),e(7,` 659 `),n()),a&2){let t=d();r(2),Be("header",t.result==null?null:t.result.errors.title),r(3),_(` 660 `,t.result==null?null:t.result.errors.authorizationCode,`
661 `)}}var it=(()=>{class a{constructor(t,o,l){this.route=t,this.router=o,this.billingService=l}ngOnInit(){this.route.queryParams.pipe(J(t=>t.authorizationCode)).subscribe(t=>{if(t)this.accountAuthorizationSubscription=this.billingService.confirmAuthorization(t).subscribe(o=>{this.result=o,this.authorized=!!o.value});else{this.authorized=!1,this.result={value:"",errors:{orgHandle:["Authorization Code not specified."]}};return}})}static{this.\u0275fac=function(o){return new(o||a)(g(P),g(le),g(U))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-confirm-authorization"]],standalone:!1,decls:10,vars:3,consts:[[3,"subscriptions"],[4,"ngIf"],["header","Billing Authorization Confirmed"],[3,"routerLink"],[3,"header"]],template:function(o,l){o&1&&(i(0,"div"),e(1,` 662 `),i(2,"ap-busy",0),e(3,` 663 664 `),m(4,gi,11,3,"div",1),e(5,` 665 666 `),m(6,xi,8,2,"div",1),e(7,` 667 668 `),n(),e(8,` 669`),n(),e(9,` 670`)),o&2&&(r(2),s("subscriptions",l.accountAuthorizationSubscription),r(2),s("ngIf",l.authorized),r(2),s("ngIf",!l.authorized))},dependencies:[C,I,O,E],encapsulation:2})}}return a})();var vi=(a,c)=>[a,c];function fi(a,c){a&1&&(i(0,"div"),e(1,` 671 `),i(2,"p"),e(3,`No data is available. If you need assistance, 672 `),e(4,` 673 please contact Financial Services via 674 `),i(5,"a",13),e(6,"Ask ARIN"),n(),e(7,"."),n(),e(8,` 675 `),n())}function hi(a,c){if(a&1&&(i(0,"a",30),e(1),n()),a&2){let t=d(),o=t.$implicit,l=t.index;u("id","invoice-link-",l,""),u("routerLink","/secure/billing/invoice/",o.documentNo,""),r(),x(o.documentNo)}}function _i(a,c){if(a&1&&(i(0,"span"),e(1),n()),a&2){let t=d().$implicit;r(),x(t.documentNo)}}function Si(a,c){if(a&1&&(i(0,"div"),e(1),n()),a&2){let t=d().$implicit;r(),_("Applied to: ",t.appliesToInvoiceNo,"")}}function bi(a,c){if(a&1&&(b(0),e(1,` 676 `),i(2,"tr"),e(3,` 677 `),i(4,"td",23),e(5),B(6,"date"),n(),e(7,` 678 `),i(8,"td",24),e(9),B(10,"date"),n(),e(11,` 679 `),i(12,"td",25),e(13),n(),e(14,` 680 `),i(15,"td",26),e(16,` 681 `),m(17,hi,2,5,"a",27),e(18,` 682 `),m(19,_i,2,1,"span",1),e(20,` 683 `),m(21,Si,2,1,"div",1),e(22,` 684 `),n(),e(23,` 685 `),i(24,"td",28),e(25),n(),e(26,` 686 `),i(27,"td",29),e(28),B(29,"currency"),i(30,"span",14),e(31),n(),e(32,` 687 `),n(),e(33,` 688 `),n(),e(34,` 689 `),y()),a&2){let t=c.$implicit,o=c.index;r(4),u("id","posting-date-",o,""),r(),x(ie(6,21,t.postingDate)),r(3),u("id","due-date-",o,""),r(),x(ie(10,23,t.dueDate)),r(3),u("id","doc-type-",o,""),r(),x(t.entryTypeDesc),r(2),u("id","doc-no-",o,""),r(2),s("ngIf",t.entryTypeDesc=="Invoice"),r(2),s("ngIf",t.entryTypeDesc!="Invoice"),r(2),s("ngIf",t.appliesToInvoiceNo),r(3),u("id","ref-no-",o,""),r(),x(t.referenceNo),r(2),u("id","amount-",o,""),r(),_("",Pe(29,25,t.amount,"USD"),` 690 `),r(3),_("(",t.entryTypeDesc,")")}}function yi(a,c){if(a&1&&(i(0,"div"),e(1,` 691 `),i(2,"p",14),e(3,"Additional transaction detail is available to larger screens."),n(),e(4,` 692 `),i(5,"p"),e(6,`If you have questions about your billing history, 693 `),e(7,` 694 please contact Financial Services via `),i(8,"a",13),e(9,"Ask ARIN"),n(),e(10,"."),n(),e(11,` 695 `),i(12,"table",15),e(13,` 696 `),i(14,"thead"),e(15,` 697 `),i(16,"tr"),e(17,` 698 `),i(18,"th",16),e(19,"Posting Date"),n(),e(20,` 699 `),i(21,"th",17),e(22,"Due Date"),n(),e(23,` 700 `),i(24,"th",18),e(25,"Doc Type"),n(),e(26,` 701 `),i(27,"th",19),e(28,"Doc No"),n(),e(29,` 702 `),i(30,"th",20),e(31,"Check/Ref No"),n(),e(32,` 703 `),i(33,"th",21),e(34,"Amount"),n(),e(35,` 704 `),n(),e(36,` 705 `),n(),e(37,` 706 `),i(38,"tbody"),e(39,` 707 `),m(40,bi,35,28,"ng-container",22),e(41,` 708 `),n(),e(42,` 709 `),n(),e(43,` 710 `),n()),a&2){let t=d(3);r(40),s("ngForOf",t.ledgerItems)}}
710function Ci(a,c){if(a&1&&(i(0,"div"),e(1,` 711 `),i(2,"ap-section-container",12),e(3,` 712 `),m(4,fi,9,0,"div",1),e(5,` 713 `),m(6,yi,44,1,"div",1),e(7,` 714 `),n(),e(8,` 715 `),n()),a&2){let t=d(2);r(2),s("isTable",(t.ledgerItems==null?null:t.ledgerItems.length)>0),r(2),s("ngIf",!t.ledgerItems||t.ledgerItems.length==0),r(2),s("ngIf",(t.ledgerItems==null?null:t.ledgerItems.length)>0)}}function Ii(a,c){if(a&1&&(b(0),e(1,` 716 `),i(2,"ap-busy",2),e(3,` 717 `),e(4,` 718 `),i(5,"nav",3),e(6,` 719 `),i(7,"ul",4),e(8,` 720 `),i(9,"li",5)(10,"span"),e(11,"Org ID: "),i(12,"strong",6),e(13),n()()(),e(14,` 721 `),i(15,"li",7),e(16,` 722 `),i(17,"a",8),e(18,` 723 Billing Information`),n()(),e(19,` 724 `),i(20,"li",7),e(21,` 725 `),i(22,"a",9),e(23,"Fee Estimate"),n(),e(24,` 726 `),n(),e(25,` 727 `),i(26,"li",10),e(27,` 728 `),i(28,"span"),e(29,"Invoice and Payment History"),n(),e(30,` 729 `),n(),e(31,` 730 `),n(),e(32,` 731 `),n(),e(33,` 732 `),v(34,"ap-unpaid-invoices",11),e(35,` 733 734 `),m(36,Ci,9,3,"div",1),e(37,` 735 `),n(),e(38,` 736`),y()),a&2){let t=d();r(2),s("subscriptions",W(8,vi,t.unpaidSub,t.historySub)),r(11),x(t.orgHandle),r(4),u("routerLink","/secure/billing/contact/",t.orgHandle,""),r(5),u("routerLink","/secure/billing/fee/",t.orgHandle,""),r(12),s("unpaidInvoices",t.unpaidInvoices),r(2),s("ngIf",!t.hasErrors)}}function Ei(a,c){a&1&&(i(0,"div"),e(1,` 737 `),i(2,"alert",31),e(3,` 738 `),i(4,"span"),v(5,"i",32),n(),e(6,` 739 `),i(7,"span"),e(8,` 740 Our billing system is currently unavailable. Please try again later. 741 `),n(),e(9,` 742 `),n(),e(10,` 743`),n())}var nt=(()=>{class a{constructor(t,o,l,p){this.invoiceService=t,this.route=o,this.billingSystemAvailabilityService=l,this.utilService=p,this.messages=[],this.unpaidInvoices=[],this.ledgerItems=[],this.hasErrors=!1,this.isBillingSystemAvailable=!0}ngOnInit(){this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isBillingSystemAvailable=t.value,this.isBillingSystemAvailable&&this.route.params.subscribe(o=>{this.orgHandle=o.orgHandle,this.loadUnpaidInvoices(),this.loadPaymentHistory()})})}loadUnpaidInvoices(){this.unpaidSub=this.invoiceService.getUnpaidInvoicesByOrg(this.orgHandle).subscribe(t=>this.unpaidInvoices=t.value)}loadPaymentHistory(){this.historySub=this.invoiceService.getPaymentHistoryByOrg(this.orgHandle).subscribe(t=>{if(this.ledgerItems=t.value,this.paymentHistory=t,this.utilService.objectHasErrors(t)){this.utilService.displayErrorMessage(this.messages,t),this.hasErrors=!0;return}this.hasErrors=!1})}static{this.\u0275fac=function(o){return new(o||a)(g(X),g(P),g(T),g(q))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-billing-history"]],standalone:!1,decls:6,vars:3,consts:[[3,"messages"],[4,"ngIf"],[3,"subscriptions"],["aria-label","Billing Options"],[1,"list-inline"],[1,"list-inline-item","data-label"],[1,"org-handle"],[1,"list-inline-item"],["id","new-one-for-contact",3,"routerLink"],[3,"routerLink"],[1,"list-inline-item","active"],[3,"unpaidInvoices"],["id","paymentHistorySection","header","Payment History",3,"isTable"],["routerLink","/communication/message/begin-question"],[1,"d-md-none"],["id","paymentHistory","aria-describedby","paymentHistorySection-header",1,"data-responsive","table","table-striped"],["scope","col","id","history-posting-date"],["scope","col","id","history-due-date"],["scope","col","id","history-doc-type"],["scope","col","id","history-doc-no"],["scope","col","id","history-ref-no"],["scope","col","id","history-amount",1,"text-end"],[4,"ngFor","ngForOf"],["data-label","Posting Date",3,"id"],["data-label","Due Date",1,"d-none","d-md-table-cell",3,"id"],["data-label","Doc Type",1,"d-none","d-md-table-cell",3,"id"],["data-label","Doc No",3,"id"],[3,"id","routerLink",4,"ngIf"],["data-label","Ref No",1,"d-none","d-md-table-cell",3,"id"],["data-label","Amount",1,"text-end",3,"id"],[3,"id","routerLink"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(v(0,"ap-messages",0),e(1,` 744`),m(2,Ii,39,11,"ng-container",1),e(3,` 745`),m(4,Ei,11,0,"div",1),e(5,` 746`)),o&2&&(s("messages",l.messages),r(2),s("ngIf",l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[M,C,I,j,O,E,w,_e,Z,oe],styles:["@media (max-width: 767px){td[data-label=Amount][_ngcontent-%COMP%]{text-align:left!important}nav[_ngcontent-%COMP%] ul.list-inline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block}}"]})}}return a})();
746var Ai=(a,c)=>[a,c];function Bi(a,c){if(a&1&&(b(0),e(1,` 747 `),i(2,"li",36),e(3,` 748 `),i(4,"span")(5,"a",37),e(6,"Billing Information"),n()(),e(7,` 749 `),n(),e(8,` 750 `),i(9,"li",36),e(10,` 751 `),i(11,"span")(12,"a",38),e(13,"Fee Estimate"),n()(),e(14,` 752 `),n(),e(15,` 753 `),i(16,"li",39),e(17,` 754 `),i(18,"span")(19,"a",40),e(20,"Invoice and Payment History"),n()(),e(21,` 755 `),n(),e(22,` 756 `),y()),a&2){let t=d(2);r(5),u("routerLink","/secure/billing/contact/",t.invoice==null?null:t.invoice.orgHandle,""),r(7),u("routerLink","/secure/billing/fee/",t.invoice.orgHandle,""),r(7),u("routerLink","/secure/billing/history/",t.invoice.orgHandle,"")}}function Oi(a,c){a&1&&v(0,"br")}function wi(a,c){if(a&1&&(i(0,"tr"),e(1,` 757 `),i(2,"td",41),e(3),n(),e(4,` 758 `),i(5,"td",42),e(6),n(),e(7,` 759 `),i(8,"td",43),e(9),B(10,"currency"),n(),e(11,` 760 `),i(12,"td",44),e(13),B(14,"currency"),n(),e(15,` 761 `),n()),a&2){let t=d().$implicit;r(3),x(t.description),r(3),x(t.quantity),r(3),x(z(10,4,t.amount/t.quantity,"USD","symbol")),r(4),x(z(14,8,t.amount,"USD","symbol"))}}function Pi(a,c){if(a&1&&(b(0),e(1,` 762 `),m(2,wi,16,12,"tr",1),e(3,` 763 `),y()),a&2){let t=c.$implicit;r(2),s("ngIf",t==null?null:t.description)}}function Ti(a,c){if(a&1&&(i(0,"p",45),e(1,` 764 `),i(2,"button",46),e(3,` 765 Pay Now 766 `),n(),e(4,` 767 `),n()),a&2){let t=d(2);r(2),u("routerLink","/payment/pay/",t.invoiceNo,"")}}function ki(a,c){if(a&1){let t=H();i(0,"div"),e(1,` 768 `),i(2,"ap-busy",2),e(3,` 769 `),i(4,"nav",3),e(5,` 770 `),i(6,"ul",4),e(7,` 771 `),i(8,"li",5)(9,"span"),e(10,"Org ID: "),i(11,"strong",6),e(12),n()()(),e(13,` 772 `),m(14,Bi,23,6,"ng-container",1),e(15,` 773 `),n(),e(16,` 774 `),n(),e(17,` 775 776 `),i(18,"div",7),e(19,` 777 `),i(20,"button",8),k("click",function(){f(t);let l=d();return h(l.downloadInvoice())}),e(21,` 778 Download Invoice `),v(22,"i",9),e(23,` 779 `),n(),e(24,` 780 `),n(),e(25,` 781 `),i(26,"ap-section-container",10),e(27,` 782 `),i(28,"div",11),e(29,` 783 `),i(30,"dl",12),e(31,` 784 `),i(32,"dt"),e(33,"Org ID:"),n(),i(34,"dd",13),e(35),n(),e(36,` 785 `),i(37,"dt"),e(38,"Bill-to Name:"),n(),i(39,"dd",14),e(40),m(41,Oi,1,0,"br",1),e(42),n(),e(43,` 786 `),i(44,"dt"),e(45,"Invoice No:"),n(),i(46,"dd",15),e(47),n(),e(48,` 787 `),i(49,"dt"),e(50,"Ticket No:"),n(),i(51,"dd",16),e(52),n(),e(53,` 788 `),i(54,"dt"),e(55,"Due Date:"),n(),i(56,"dd",17),e(57),B(58,"date"),n(),e(59,` 789 `),i(60,"dt"),e(61,"Status:"),n(),i(62,"dd",18)(63,"strong",19),e(64),n()(),e(65,` 790 `),n(),e(66,` 791 `),i(67,"p",20),e(68,"This table includes the line items and grand total from the invoice."),n(),e(69,` 792 `),i(70,"table",21),e(71,` 793 `),i(72,"thead"),e(73,` 794 `),i(74,"tr"),e(75,` 795 `),i(76,"th",22),e(77,"Description"),n(),e(78,` 796 `),i(79,"th",23),e(80,"Quantity"),n(),e(81,` 797 `),i(82,"th",24),e(83,"Unit Price"),n(),e(84,` 798 `),i(85,"th",25),e(86,"Amount"),n(),e(87,` 799 `),n(),e(88,` 800 `),n(),e(89,` 801 `),i(90,"tbody"),e(91,` 802 803 `),m(92,Pi,4,1,"ng-container",26),e(93,` 804 `),i(94,"tr"),e(95,` 805 `),v(96,"td",27),e(97,` 806 `),i(98,"td",28),e(99,"Total"),n(),e(100,` 807 `),i(101,"td",29),e(102),B(103,"currency"),n(),e(104,` 808 `),n(),e(105,` 809 `),n(),e(106,` 810 `),n(),e(107,` 811 `),n(),e(108,` 812 813 `),m(109,Ti,5,2,"p",30),e(110,` 814 `),n(),e(111,` 815 `),i(112,"div",31),e(113,` 816 `),i(114,"p",32),e(115,` 817 ARIN accepts credit card and bank transfer payments online. ARIN also accepts `),i(116,"a",33),e(117,"Wire Transfer & ACH Payments"),n(),e(118,` as well 818 as payments by `),i(119,"a",34),e(120,"check"),n(),e(121,`. 819 `),n(),e(122,` 820 821 `),i(123,"p",32),e(124,` 822 Payments for services are payable in US Dollars for the amount indicated on the invoice; amounts cannot be prorated and are not transferable. In accordance with ARIN's Registration Services Agreement (RSA) or Legacy Registration Services Agreement (LRSA), all fees paid to ARIN are non-refundable. More information is available at `),i(125,"a",35),e(126,"Make a Payment"),n(),e(127,`. 823 `),n(),e(128,` 824 `),n(),e(129,` 825 `),n(),e(130,` 826`),n()}if(a&2){let t=d();r(2),s("subscriptions",W(21,Ai,t.herbyFullyLoadedSub,t.downloadInvoiceSubscription)),r(10),x(t.invoice==null?null:t.invoice.orgHandle),r(2),s("ngIf",t.canViewTabMenus),r(12),s("isTable",!0),r(9),x(t.invoice==null?null:t.invoice.orgHandle),r(5),x(t.invoice==null?null:t.invoice.orgName),r(),s("ngIf",t.invoice==null?null:t.invoice.orgName2),r(),x(t.invoice==null?null:t.invoice.orgName2),r(5),x(t.invoice==null?null:t.invoice.invoiceNumber),r(5),x(t.invoice==null?null:t.invoice.ticketNo),r(5),x(ie(58,15,t.invoice==null?null:t.invoice.dueDate)),r(7),x(t.status),r(28),s("ngForOf",t.invoice==null?null:t.invoice.lineItems),r(10),x(z(103,17,t.invoice.amount,"USD","symbol")),r(7),s("ngIf",!t.invoice.paid&&!t.invoice.pendingPayment)}}function Ni(a,c){a&1&&(i(0,"div"),e(1,` 827 `),i(2,"alert",47),e(3,` 828 `),i(4,"span"),v(5,"i",48),n(),e(6,` 829 `),i(7,"span"),e(8,` 830 Our billing system is currently unavailable. Please try again later. 831 `),n(),e(9,` 832 `),n(),e(10,` 833`),n())}var at=(()=>{class a{constructor(t,o,l,p,A,N){this.route=t,this.invoiceService=o,this.billingService=l,this.userAuthorizationService=p,this.billingSystemAvailabilityService=A,this.utilService=N,this.invoice={},this.isBillingSystemAvailable=!0,this.messages=[]}ngOnInit(){this.billingSystemAvailabilityService.getAvailability().subscribe(t=>{this.isBillingSystemAvailable=t.value,this.isBillingSystemAvailable&&this.route.params.subscribe(o=>this.loadPageData(o.invoiceNo))})}loadPageData(t){this.invoiceNo=t.trim(),this.invoiceNo&&(this.herbyFullyLoadedSub=this.invoiceService.findByInvoiceNo(this.invoiceNo).subscribe(o=>{if(this.utilService.objectHasErrors(o)){this.utilService.displayErrorMessage(this.messages,o);return}this.invoice=o,this.nicelyFormattedBillToAddress=a.getNicelyFormattedAddress(this.invoice),this.status=a.createStatusMessage(this.invoice),this.checkCanViewTabMenus(o.orgHandle)}))}checkCanViewTabMenus(t){return this.userAuthorizationService.getUserAuthorization().pipe(Ae(o=>o.validateUnresponsivePocsRequired?Ee(!1):this.billingService.canEditBillingInformation(t))).subscribe(o=>this.canViewTabMenus=o)}downloadInvoice(){this.downloadInvoiceSubscription=this.invoiceService.downloadInvoice(this.invoiceNo).subscribe({next:t=>be(this,null,function*(){let o=t.body;if(t.headers.get("content-type")!=="application/pdf"){let pe=yield o.text();console.error("Expected PDF but got:",pe);return}let p=`${this.invoiceNo} Invoice Summary.pdf`,A=t.headers.get("content-disposition");if(A){let pe=/filename="?(.+?)"?$/.exec(A);pe&&(p=pe[1])}let N=window.URL.createObjectURL(o),ee=document.createElement("a");ee.href=N,ee.download=p,document.body.appendChild(ee),ee.click(),ee.remove(),window.URL.revokeObjectURL(N)}),error:t=>be(this,null,function*(){if(t.error instanceof Blob){let o=yield t.error.text();console.error("Server error:",o)}else console.error("Download failed",t)})})}static createStatusMessage(t){return t.paid?"Paid":t.pendingPayment?"Pending Payment":"Unpaid"}static getNicelyFormattedAddress(t){let o=`${t.orgName}`;return t.orgName2&&(o+=`# ${t.orgName2}`),o}static{this.\u0275fac=function(o){return new(o||a)(g(P),g(X),g(U),g(ve),g(T),g(q))}}static{this.\u0275cmp=S({type:a,selectors:[["ap-invoice"]],standalone:!1,decls:6,vars:3,consts:[[3,"messages"],[4,"ngIf"],[3,"subscriptions"],["aria-label","Billing Options"],[1,"list-inline"],[1,"list-inline-item","data-label"],[1,"org-handle"],[1,"text-end","mb-3"],["id","generate-pdf",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-fw","fa-file-pdf-o"],["header","Summary",3,"isTable"],["id","invoice-summary"],[1,"dl-horizontal"],["id","org-id"],["id","bill-to-name"],["id","invoice-number"],["id","ticket-number"],["id","due-date"],["id","payment-status"],[1,"badge","bg-dark"],["id","descr-table",1,"visually-hidden"],["id","invoice-summary-table","aria-describedby","descr-table",1,"table","table-striped","data-responsive"],["id","invoice-line-desc","scope","col"],["id","invoice-quantity","scope","col",1,"text-center"],["id","invoice-unit-price","scope","col",1,"text-align-right"],["id","invoice-amount","scope","col",1,"text-align-right-padding"],[4,"ngFor","ngForOf"],["colspan","2",1,"d-none","d-md-table-cell"],["id","grand-total-label",1,"invoice-total","d-none","d-md-table-cell","text-center"],["data-label","Total","id","grand-total","aria-describedby","grand-total-label",1,"invoice-total","text-align-right"],["class","text-end pb-2",4,"ngIf"],["id","payment-info-text"],[1,"tiny-lawyer-text"],["apStaticLink","/resources/fees/payment/#wire-transfer-ach-payments"],["apStaticLink","/resources/fees/payment/#check"],["apStaticLink","/resources/fees/payment/"],[1,"list-inline-item"],["id","billing-information",3,"routerLink"],["id","fee-estimate",3,"routerLink"],[1,"list-inline-item","active"],["id","invoice-history",3,"routerLink"],["data-label","Description"],["data-label","Quantity",1,"text-center"],["data-label","Unit Price",1,"text-align-right"],["data-label","Amount",1,"text-align-right"],[1,"text-end","pb-2"],["id","pay-invoice",1,"btn","btn-success","btn-payment",3,"routerLink"],["id","navisionUnavailableAlert","type","warning",1,"alert-warning"],["aria-hidden","true",1,"fa","fa-fw","fa-flag"]],template:function(o,l){o&1&&(v(0,"ap-messages",0),e(1,` 834`),m(2,ki,131,24,"div",1),e(3,` 835`),m(4,Ni,11,0,"div",1),e(5,` 836`)),o&2&&(s("messages",l.messages),r(2),s("ngIf",(l.messages==null?null:l.messages.length)==0&&l.isBillingSystemAvailable),r(2),s("ngIf",!l.isBillingSystemAvailable))},dependencies:[M,C,I,j,O,E,se,w,Z,oe],styles:[".invoice-total[_ngcontent-%COMP%]{background-color:#dbf5fd;font-weight:700}.tiny-lawyer-text[_ngcontent-%COMP%]{font-size:12px}.org-data-td[_ngcontent-%COMP%]{padding-left:60px}.make-newlines-work-via-magic[_ngcontent-%COMP%]{white-space:pre-wrap}@media (max-width: 767px){td.text-center[data-label=Quantity][_ngcontent-%COMP%]{text-align:left!important}nav[_ngcontent-%COMP%] ul.list-inline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block}}.text-align-right[_ngcontent-%COMP%]{text-align:right}.text-align-right-padding[_ngcontent-%COMP%]{text-align:right;padding-right:15px}"]})}}return a})();var Ri=[{path:"",canActivate:[V],component:Ye,data:{title:"Payments & Billing"}},{path:"contact/:orgHandle",canActivate:[V],component:Ze,data:{title:"Billing Information"}},{path:"fee/:orgHandle",canActivate:[V],component:Ke,data:{title:"Fee Estimate"}},{path:"edit/:orgHandle",canActivate:[V],component:$e,data:{title:"Modify Billing Contact"}},{path:":orgHandle/unlink/:userName",canActivate:[V],component:et,data:{title:"Unlink User"}},{path:"request",canActivate:[V],component:tt,data:{title:"Request Billing Authorization"}},{path:"authorize",canActivate:[V],component:it,data:{title:"Payments & Billing"}},{path:"history/:orgHandle",canActivate:[V],component:nt,data:{title:"Invoice and Payment History"}},{path:"invoice/:invoiceNo",canActivate:[V],component:at,data:{title:"Invoice Summary"}},{path:"**",redirectTo:""}],rt=(()=>{class a{static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275mod=xe({type:a})}static{this.\u0275inj=ge({imports:[ye.forChild(Ri),ye]})}}return a})();var Zn=(()=>{class a{static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275mod=xe({type:a})}static{this.\u0275inj=ge({imports:[ke,rt,We,Ne.forRoot(),Le.forRoot()]})}}return a})();export{Zn as BillingModule};
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.