1import{a as Me,b as we}from"./chunk-S6KHR3IR.js";import{f as ye,g as Se}from"./chunk-HYZF2J36.js";import{a as be}from"./chunk-AHP6CBJJ.js";import"./chunk-GS37RU6G.js";import"./chunk-OASEBQL4.js";import{b as xe}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import"./chunk-MS4AQ6UA.js";import"./chunk-N7NZ2FMU.js";import"./chunk-F2TSTV3I.js";import"./chunk-XRMXGMS4.js";import"./chunk-Q4V6AKYI.js";import"./chunk-T3PLPHIG.js";import"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import"./chunk-QNUNLKYK.js";import{r as fe}from"./chunk-RE4JJFV5.js";import{k as ae}from"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as Ce}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as he,b as ge}from"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as de,c as se,d as pe,i as ce,j as ue}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{n as re,q as le}from"./chunk-YWHNFDXQ.js";import"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import{f as J,h as X}from"./chunk-GW33KQPR.js";import{T as _e,U as me}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import{G as oe,c as Y,h as $,m as ee,o as te,y as ne,z as ie}from"./chunk-QXJM3TTT.js";import{D as G,F as Z,x as H}from"./chunk-TMOIAHHX.js";import{$a as R,Hb as U,Ib as r,Jb as b,Kb as B,Mb as N,Rb as C,Sb as f,Tb as x,Wa as m,Xa as h,Yb as Q,_a as K,aa as O,ab as g,bb as o,cb as i,db as L,ga as s,kb as y,mc as v,nc as k,o as p,oc as j,p as c,qb as _,sa as P,tb as l,za as A}from"./chunk-DJNWGYMM.js";import{H as z,ea as w,f as q,o as I,z as W}from"./chunk-VOZAGDK7.js";import{a as M,b as F}from"./chunk-E5QWB6YB.js";var Le=(a,u)=>u._key;function Be(a,u){a&1&&(o(0,"div",2),L(1,"rp-state",3),i())}function ve(a,u){if(a&1){let e=y();o(0,"div",2)(1,"rp-state",4)(2,"button",5),_("click",function(){p(e);let t=l();return c(t.load())}),r(3,"Try again"),i()()()}if(a&2){let e=l();s(),g("body",e.errorMessage)}}function Te(a,u){if(a&1&&(o(0,"a",18),r(1),i()),a&2){let e=l(4);g("href",e.bought.trackingUrl,O),s(),b(e.bought.trackingCode)}}function Oe(a,u){if(a&1&&r(0),a&2){let e=l(4);B(" ",e.bought.trackingCode," ")}}function ke(a,u){if(a&1&&(r(0," Tracking: "),m(1,Te,2,2,"a",18)(2,Oe,1,1)),a&2){let e=l(3);s(),h(e.bought.trackingUrl?1:2)}}function Ee(a,u){if(a&1&&(o(0,"a",16)(1,"mat-icon"),r(2,"print"),i(),r(3," Print label "),i()),a&2){let e=l(3);g("href",e.bought.labelUrl,O)}}function Ve(a,u){if(a&1){let e=y();o(0,"div",7)(1,"mat-icon",13),r(2,"check_circle"),i(),o(3,"h2",10),r(4,"Label purchased"),i(),o(5,"p",14)(6,"strong"),r(7),v(8,"currency"),i(),r(9," charged to your card. "),m(10,ke,3,1),i(),o(11,"div",15),m(12,Ee,4,1,"a",16),o(13,"button",17),_("click",function(){p(e);let t=l(2);return c(t.buyAnother())}),r(14,"Buy another"),i()()()}if(a&2){let e=l(2);s(7),b(k(8,3,e.bought.amounts.total)),s(3),h(e.bought.trackingCode?10:-1),s(2),h(e.bought.labelUrl?12:-1)}}function Ie(a,u){if(a&1&&(o(0,"div",20)(1,"mat-icon",44),r(2,"receipt_long"),i(),o(3,"div")(4,"div",45),r(5),i(),o(6,"div",46),r(7," The tracking will be added to that order line and the buyer will be emailed. "),i()()()),a&2){let e=l(3);s(5),N("Buying for order #",e.linkOrder==null?null:e.linkOrder.orderNo," \u2014 ",e.linkLine.name,"",e.linkLine.variantLabel?" ("+e.linkLine.variantLabel+")":"")}}function We(a,u){if(a&1){let e=y();o(0,"rp-state",43)(1,"button",42),_("click",function(){p(e);let t=l(3);return c(t.getPrices())}),r(2,"Try again"),i()()}if(a&2){let e=l(3);g("body",e.ratesError),s(),g("disabled",e.ratesLoading)}}function ze(a,u){if(a&1&&L(0,"rp-state",48),a&2){let e=l(4);g("body",e.payError)}}function Qe(a,u){if(a&1){let e=y();o(0,"div",32),r(1,"Service"),i(),o(2,"shop-rate-options",47),_("selectedChange",function(t){p(e);let d=l(3);return c(d.selectedService=t)}),i(),m(3,ze,1,1,"rp-state",48),o(4,"div",32),r(5,"Payment"),i(),o(6,"shop-stripe",49),v(7,"currency"),_("paymentCallBack",function(t){p(e);let d=l(3);return c(d.pay(t))}),i()}if(a&2){let e=l(3);s(2),g("options",e.rateOptions)("selected",e.selectedService),s(),h(e.payError?3:-1),s(3),g("btnText",Q("Buy label \u2014 ",k(7,8,e.totalCents/100)))("amount",e.totalCents)("cards",e.cards)("loading",e.charging)}}function De(a,u){if(a&1){let e=y();o(0,"div",9),r(1,"Ship through RP"),i(),o(2,"h2",10),r(3,"Buy a shipping label"),i(),o(4,"p",19),r(5," For free-shipping orders or anything else you ship \u2014 you pay the discounted carrier rate plus service fees, and print the label here. Parcels ship from your shop's ship-from address. "),i(),m(6,Ie,8,3,"div",20),o(7,"div",21),r(8,"Destination"),i(),o(9,"div",22)(10,"mat-form-field",23)(11,"mat-label"),r(12,"Recipient name"),i(),o(13,"input",24),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.name,t)||(d.shipTo.name=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(14,"mat-form-field",23)(15,"mat-label"),r(16,"Street address"),i(),o(17,"input",25),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.street1,t)||(d.shipTo.street1=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(18,"mat-form-field",23)(19,"mat-label"),r(20,"Apt, suite, etc. (optional)"),i(),o(21,"input",26),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.street2,t)||(d.shipTo.street2=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(22,"mat-form-field",27)(23,"mat-label"),r(24,"City"),i(),o(25,"input",28),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.city,t)||(d.shipTo.city=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(26,"mat-form-field",27)(27,"mat-label"),r(28,"State"),i(),o(29,"input",29),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.state,t)||(d.shipTo.state=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(30,"mat-form-field",27)(31,"mat-label"),r(32,"ZIP code"),i(),o(33,"input",30),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.zip,t)||(d.shipTo.zip=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(34,"mat-form-field",27)(35,"mat-label"),r(36,"Phone (optional)"),i(),o(37,"input",31),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.shipTo.phone,t)||(d.shipTo.phone=t),c(t)}),i()()(),o(38,"div",32),r(39,"Parcel"),i(),o(40,"div",33)(41,"mat-form-field",27)(42,"mat-label"),r(43,"Weight (oz)"),i(),o(44,"input",34),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.parcel.weightOz,t)||(d.parcel.weightOz=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(45,"mat-form-field",27)(46,"mat-label"),r(47,"Length (in)"),i(),o(48,"input",35),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.parcel.lengthIn,t)||(d.parcel.lengthIn=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(49,"mat-form-field",27)(50,"mat-label"),r(51,"Width (in)"),i(),o(52,"input",36),x("ngModelChange",function(t){p(e);let d=l(2);
1return f(d.parcel.widthIn,t)||(d.parcel.widthIn=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()(),o(53,"mat-form-field",27)(54,"mat-label"),r(55,"Height (in)"),i(),o(56,"input",37),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.parcel.heightIn,t)||(d.parcel.heightIn=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i()()(),o(57,"mat-form-field",38)(58,"mat-label"),r(59,"Insure this parcel for (optional)"),i(),o(60,"span",39),r(61,"$\xA0"),i(),o(62,"input",40),x("ngModelChange",function(t){p(e);let d=l(2);return f(d.insuredValue,t)||(d.insuredValue=t),c(t)}),_("ngModelChange",function(){p(e);let t=l(2);return c(t.clearQuote())}),i(),o(63,"mat-hint"),r(64,"$1.00 per $100 of value \u2014 leave empty for no insurance."),i()(),o(65,"div",41)(66,"button",42),_("click",function(){p(e);let t=l(2);return c(t.getPrices())}),r(67),i()(),m(68,We,3,2,"rp-state",43),m(69,Qe,8,10)}if(a&2){let e=l(2);s(6),h(e.linkLine?6:-1),s(7),C("ngModel",e.shipTo.name),s(4),C("ngModel",e.shipTo.street1),s(4),C("ngModel",e.shipTo.street2),s(4),C("ngModel",e.shipTo.city),s(4),C("ngModel",e.shipTo.state),s(4),C("ngModel",e.shipTo.zip),s(4),C("ngModel",e.shipTo.phone),s(7),C("ngModel",e.parcel.weightOz),s(4),C("ngModel",e.parcel.lengthIn),s(4),C("ngModel",e.parcel.widthIn),s(4),C("ngModel",e.parcel.heightIn),s(6),C("ngModel",e.insuredValue),s(4),g("disabled",!e.formComplete||e.ratesLoading),s(),B(" ",e.ratesLoading?"Getting prices\u2026":e.rateOptions.length?"Refresh prices":"Get prices"," "),s(),h(e.ratesError?68:-1),s(),h(e.rateOptions.length>0?69:-1)}}function Fe(a,u){a&1&&L(0,"rp-state",11)}function qe(a,u){if(a&1&&(o(0,"a",18),r(1),i()),a&2){let e=l().$implicit;g("href",e.trackingUrl,O),s(),b(e.trackingCode)}}function Ae(a,u){if(a&1&&r(0),a&2){let e=l().$implicit;B(" ",e.trackingCode||"\u2014"," ")}}function Ke(a,u){if(a&1&&(o(0,"span"),r(1),i()),a&2){let e=u;U(Q("rpui-chip rpui-chip--",e.kind)),s(),b(e.label)}}function Re(a,u){a&1&&(o(0,"span",56),r(1,"Purchased"),i())}function Ue(a,u){if(a&1){let e=y();o(0,"button",17),_("click",function(){p(e);let t=l().$implicit,d=l(3);return c(d.print(t))}),r(1,"Print"),i()}}function Ne(a,u){if(a&1){let e=y();o(0,"button",59),_("click",function(){p(e);let t=l().$implicit,d=l(3);return c(d.voidLabel(t))}),r(1),i()}if(a&2){let e=l().$implicit,n=l(3);g("disabled",n.voidBusy===e._key),s(),B(" ",n.voidBusy===e._key?"Voiding\u2026":"Void"," ")}}function je(a,u){if(a&1&&(o(0,"tr")(1,"td"),r(2),v(3,"date"),i(),o(4,"td"),r(5),i(),o(6,"td"),r(7),i(),o(8,"td",54),r(9),v(10,"currency"),i(),o(11,"td"),m(12,qe,2,2,"a",18)(13,Ae,1,1),i(),o(14,"td"),m(15,Ke,2,4,"span",55)(16,Re,2,0,"span",56),i(),o(17,"td",52),m(18,Ue,2,0,"button",57),m(19,Ne,2,2,"button",58),i()()),a&2){let e,n=u.$implicit,t=l(3);s(2),b(j(3,8,n.createdOn,"MMM d, y")),s(3),b(t.destination(n)),s(2),b(n.serviceLabel),s(2),b(k(10,11,n.amounts.total)),s(3),h(n.trackingUrl?12:13),s(3),h((e=t.refundChip(n))?15:16,e),s(3),h(n.labelUrl?18:-1),s(),h(t.canVoid(n)?19:-1)}}function He(a,u){if(a&1&&(o(0,"div",12)(1,"table",50)(2,"thead")(3,"tr")(4,"th"),r(5,"Date"),i(),o(6,"th"),r(7,"Destination"),i(),o(8,"th"),r(9,"Service"),i(),o(10,"th",51),r(11,"Total"),i(),o(12,"th"),r(13,"Tracking"),i(),o(14,"th"),r(15,"Status"),i(),o(16,"th",52)(17,"span",53),r(18,"Actions"),i()()()(),o(19,"tbody"),K(20,je,20,13,"tr",null,Le),i()()()),a&2){let e=l(2);s(20),R(e.history)}}function Ge(a,u){if(a&1&&(o(0,"div",2)(1,"section",6),m(2,Ve,15,5,"div",7)(3,De,70,17),i(),o(4,"section",8)(5,"div",9),r(6,"History"),i(),o(7,"h2",10),r(8,"Labels bought through RP"),i(),m(9,Fe,1,0,"rp-state",11)(10,He,22,0,"div",12),i()()),a&2){let e=l();s(2),h(e.bought?2:3),s(7),h(e.history.length===0?9:10)}}var xt=(()=>{class a{api;notify;route;router;loading=!0;errorMessage="";shipTo={name:"",street1:"",street2:"",city:"",state:"",zip:"",phone:""};parcel={};insuredValue;rateOptions=[];rateQuoteID="";selectedService="";ratesLoading=!1;ratesError="";cards=[];charging=!1;payError="";bought=null;history=[];voidBusy="";linkOrder=null;linkLineIndex=null;attemptKey=null;_unsubscribeAll=new q;constructor(e,n,t,d){this.api=e,this.notify=n,this.route=t,this.router=d}
1ngOnInit(){let e=this.route.snapshot.queryParamMap,n=e.get("orderKey"),t=e.get("lineIndex");n&&t!==null&&(this.router.navigate([],{relativeTo:this.route,queryParams:{},replaceUrl:!0}),this.prefillFromOrder(n,parseInt(t,10))),this.load()}get linkLine(){return this.linkOrder&&this.linkLineIndex!==null&&this.linkOrder.lines?.[this.linkLineIndex]||null}prefillFromOrder(e,n){W({data:this.api.get("Shop/admin/orders?orderKey="+encodeURIComponent(e),!0),admin:this.api.get("Shop/admin/products",!0).pipe(z(()=>I(null)))}).pipe(w(this._unsubscribeAll)).subscribe({next:({data:t,admin:d})=>{let S=t?.orders?.[0],T=S?.lines?.[n];if(!S||!T){this.notify.openToaster("That order line couldn't be found \u2014 the form starts blank.","warning");return}this.linkOrder=S,this.linkLineIndex=n,S.shipTo&&(this.shipTo=M({street2:"",phone:""},S.shipTo));let D=(d?.products||[]).find(V=>V._key===T.productID),E=T.shipParcel||D?.shipParcel;if(E){let V=D?.variants?.find(Pe=>Pe.variantID===T.variantID)?.weightOz;this.parcel=F(M({},E),{weightOz:V??E.weightOz})}this.clearQuote()},error:()=>{this.notify.openToaster("That order line couldn't be loaded \u2014 the form starts blank.","warning")}})}load(){this.loading=!0,this.errorMessage="",W({history:this.api.get("Shop/admin/labelPurchases",!0),checkoutData:this.api.get("Shop/checkoutData",!0).pipe(z(()=>I(null)))}).pipe(w(this._unsubscribeAll)).subscribe({next:({history:e,checkoutData:n})=>{this.history=e||[],this.cards=n?.cards||[],this.loading=!1},error:e=>{this.errorMessage=typeof e?.error=="string"&&e.error?e.error:"This page couldn't be loaded. Please try again.",this.loading=!1}})}get formComplete(){let e=this.shipTo,n=this.parcel;return!!(e.name?.trim()&&e.street1?.trim()&&e.city?.trim()&&e.state?.trim()&&e.zip?.trim()&&(n.weightOz??0)>0&&(n.lengthIn??0)>0&&(n.widthIn??0)>0&&(n.heightIn??0)>0)}get selectedOption(){return this.rateOptions.find(e=>e.serviceKey===this.selectedService)}get totalCents(){return this.selectedOption?Math.round(this.selectedOption.buyerShipping*100):0}getPrices(){if(!this.formComplete||this.ratesLoading)return;this.ratesLoading=!0,this.ratesError="",this.payError="";let e={shipTo:this.shipTo,parcel:this.parcel,insuredValue:this.insuredValue||void 0};this.api.post("Shop/admin/labelRates",e,!0).pipe(w(this._unsubscribeAll)).subscribe({next:n=>{this.ratesLoading=!1,this.rateQuoteID=n.rateQuoteID,this.rateOptions=n.options||[],this.shipTo=M(M({},this.shipTo),n.shipTo),this.rateOptions.some(t=>t.serviceKey===this.selectedService)||(this.selectedService=this.rateOptions[0]?.serviceKey||"")},error:n=>{this.ratesLoading=!1,this.rateOptions=[],this.rateQuoteID="",this.ratesError=typeof n?.error=="string"&&n.error?n.error:"We couldn't get shipping prices. Please try again."}})}clearQuote(){this.rateOptions=[],this.rateQuoteID="",this.selectedService=""}pay(e){this.charging||!e||!this.rateQuoteID||!this.selectedService||(this.payError="",this.attemptKey||(this.attemptKey=Se()),this.charging=!0,this.api.post("Shop/admin/buyLabel",{attemptKey:this.attemptKey,rateQuoteID:this.rateQuoteID,service:this.selectedService,cardID:e,orderKey:this.linkOrder?._key||void 0,lineIndex:this.linkOrder?this.linkLineIndex??void 0:void 0},!0).subscribe({next:n=>{this.charging=!1,this.attemptKey=null,this.bought=n,this.load()},error:n=>{this.charging=!1;let t=typeof n?.error=="string"&&n.error?n.error:"The purchase didn't go through. Please try again.";if(!(n?.status>=400&&n?.status<500)){this.payError="We lost the connection while buying the label. It's safe to try again \u2014 the same attempt can never charge twice.";return}if(t.includes("confirm the charge")||t.includes("retry finishes this purchase")){this.payError=t;return}if(this.attemptKey=null,ye(t)==="quote-stale"||t.includes("get prices again")){this.notify.openToaster("Shipping prices were updated \u2014 please get prices again.","warning"),this.clearQuote();return}this.payError=t}}))}buyAnother(){this.bought=null,this.parcel={},this.insuredValue=void 0,this.clearQuote(),this.payError="",this.linkOrder=null,this.linkLineIndex=null}print(e){e.labelUrl&&window.open(e.labelUrl,"_blank","noopener")}canVoid(e){return e.status&&e.status!=="complete"?!1:!e.refund||e.refund.status==="denied"}voidLabel(e){this.notify.openConfirmModal("Void this label? The carrier takes a few days to confirm an unused label. Once it does, the carrier cost and service fee are refunded to the card; insurance and tracking fees are not refundable.",n=>
1{n&&(this.voidBusy=e._key,this.api.post("Shop/admin/voidPurchasedLabel/"+e._key,{},!0).pipe(w(this._unsubscribeAll)).subscribe({next:()=>{this.voidBusy="",this.notify.openToaster("Void requested \u2014 the refund lands once the carrier confirms.","success"),this.load()},error:t=>{this.voidBusy="",this.notify.openErrorModal(t?.error||"The void request failed. Please try again.")}}))})}refundChip(e){if(e.status==="pending"||e.status==="charged")return{label:"Processing",kind:"warn"};if(e.status==="failed")return{label:e.refund?"Failed \u2014 refunded":"Failed",kind:"danger"};switch(e.refund?.status){case"pending":return{label:"Refund pending",kind:"warn"};case"refunded":return{label:"Refunded",kind:"ok"};case"denied":return{label:"Refund denied",kind:"danger"};default:return null}}destination(e){return(e.shipTo?.city||"")+", "+(e.shipTo?.state||"")}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||a)(P(Ce),P(fe),P(J),P(X))};static \u0275cmp=A({type:a,selectors:[["shop-buy-label"]],decls:5,vars:4,consts:[["id","ShopBuyLabelPage",1,"page-layout","simple","fullwidth"],["title","Buy a Label","matIcon","local_shipping",3,"hideBanner"],[1,"content","p-24"],["mode","loading","body","Loading"],["mode","error","title","This page couldn't be loaded",3,"body"],["mat-flat-button","","color","primary",3,"click"],[1,"rpui-card","purchase-card"],["role","status",1,"success-panel"],[1,"rpui-card","mt-24"],[1,"rpui-eyebrow"],[1,"card-title"],["mode","empty","icon","local_shipping","title","No labels yet","body","Labels you buy here show up with their tracking and a re-print link."],[1,"table-scroll"],["aria-hidden","true",1,"success-icon"],[1,"success-lede"],[1,"success-actions"],["mat-flat-button","","color","primary","target","_blank","rel","noopener",3,"href"],["mat-stroked-button","",3,"click"],["target","_blank","rel","noopener",3,"href"],[1,"rpui-hint"],["role","status",1,"rpui-state","rpui-state--inline","mb-16"],[1,"block-label"],[1,"form-grid"],["appearance","outline","subscriptSizing","dynamic",1,"span-2"],["matInput","","name","toName","required","",3,"ngModelChange","ngModel"],["matInput","","name","toStreet1","required","",3,"ngModelChange","ngModel"],["matInput","","name","toStreet2",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","name","toCity","required","",3,"ngModelChange","ngModel"],["matInput","","name","toState","required","",3,"ngModelChange","ngModel"],["matInput","","name","toZip","inputmode","numeric","required","",3,"ngModelChange","ngModel"],["matInput","","name","toPhone","inputmode","tel",3,"ngModelChange","ngModel"],[1,"block-label","mt-16"],[1,"parcel-grid"],["matInput","","type","number","min","0","step","0.1","name","pWeight","required","",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","step","0.1","name","pLength","required","",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","step","0.1","name","pWidth","required","",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","step","0.1","name","pHeight","required","",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"insure-field"],["matTextPrefix",""],["matInput","","type","number","min","0","step","1","name","insuredValue","placeholder","0",3,"ngModelChange","ngModel"],[1,"quote-actions"],["mat-flat-button","","color","primary",3,"click","disabled"],["mode","error","title","We couldn't get shipping prices",3,"body"],[1,"rpui-state__icon"],[1,"rpui-state__title"],[1,"rpui-state__body"],["radioName","labelService","ariaLabel","Shipping services",3,"selectedChange","options","selected"],["mode","error","title","The purchase didn't go through",3,"body"],[3,"paymentCallBack","amount","cards","loading","btnText"],[1,"rpui-table"],[1,"num"],[1,"actions-col"],[1,"cdk-visually-hidden"],[1,"num","rpui-num"],[3,"class"],[1,"rpui-chip","rpui-chip--ok"],["mat-stroked-button",""],["mat-stroked-button","",3,"disabled"],["mat-stroked-button","",3,"click","disabled"]],template:function(n,t){n&1&&(o(0,"div",0),L(1,"page-header",1),m(2,Be,2,0,"div",2),m(3,ve,4,1,"div",2),m(4,Ge,11,2,"div",2),i()),n&2&&(s(),g("hideBanner",!0),s(),h(t.loading?2:-1),s(),h(!t.loading&&t.errorMessage?3:-1),s(),h(!t.loading&&!t.errorMessage?4:-1))},dependencies:[Z,oe,Y,te,$,ie,ne,ee,le,re,ae,ue,ce,de,se,pe,me,_e,ge,he,xe,be,Me,we,G,H],styles:["[_ngcontent-%COMP%]:root{--rp-nav
1y-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}[_nghost-%COMP%]{display:block;width:100%}#ShopBuyLabelPage[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:100%}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #dce5ee;border-radius:8px;padding:18px}#ShopBuyLabelPage[_ngcontent-%COMP%] .purchase-card[_ngcontent-%COMP%]{max-width:720px}#ShopBuyLabelPage[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#10243f;margin:0 0 8px}#ShopBuyLabelPage[_ngcontent-%COMP%] .block-label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64798c;margin-bottom:8px}#ShopBuyLabelPage[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#ShopBuyLabelPage[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .span-2[_ngcontent-%COMP%]{grid-column:1/-1}@media(max-width:599px){#ShopBuyLabelPage[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}#ShopBuyLabelPage[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%] .span-2[_ngcontent-%COMP%]{grid-column:auto}}#ShopBuyLabelPage[_ngcontent-%COMP%] .parcel-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:12px}@media(max-width:599px){#ShopBuyLabelPage[_ngcontent-%COMP%] .parcel-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}#ShopBuyLabelPage[_ngcontent-%COMP%] .insure-field[_ngcontent-%COMP%]{margin-top:12px;max-width:280px}#ShopBuyLabelPage[_ngcontent-%COMP%] .quote-actions[_ngcontent-%COMP%]{margin-top:16px}#ShopBuyLabelPage[_ngcontent-%COMP%] shop-rate-options[_ngcontent-%COMP%]{max-width:520px}#ShopBuyLabelPage[_ngcontent-%COMP%] .success-panel[_ngcontent-%COMP%]{text-align:center;padding:18px 0}#ShopBuyLabelPage[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%]{font-size:44px;width:44px;height:44px;color:#2e7d32}#ShopBuyLabelPage[_ngcontent-%COMP%] .success-lede[_ngcontent-%COMP%]{color:#122033;margin:8px 0 18px;overflow-wrap:anywhere}#ShopBuyLabelPage[_ngcontent-%COMP%] .success-actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}#ShopBuyLabelPage[_ngcontent-%COMP%] .table-scroll[_ngcontent-%COMP%]{overflow-x:auto}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:14px}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], #ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:12px;border-bottom:1px solid #e8edf3;white-space:nowrap}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#64798c}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] .num[_ngcontent-%COMP%], #ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] .actions-col[_ngcontent-%COMP%]{text-align:right}#ShopBuyLabelPage[_ngcontent-%COMP%] .rpui-table[_ngcontent-%COMP%] .actions-col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}"]})}return a})();export{xt as ShopBuyLabelComponent};
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.