PageSourceSearch

https://readystrongmeals.com/chunk-G4LRP2OP.js

js readystrongmeals.com collected 2026-09-24 13:07:03 UTC 5,949 bytes, 1 lines download raw bytes

1import{a as T}from"./chunk-N64B2G2D.js";import{b as D}from"./chunk-XSZMXQRO.js";import{a as A}from"./chunk-HTYJXLLE.js";import"./chunk-BYXBJQAS.js";import{d as y,e as N,f as E,j as L,o as R,p as w,u as z,w as B}from"./chunk-UETD4DIZ.js";import{Pc as M,Qc as S,Rc as P,Tc as O}from"./chunk-QFV2VXXO.js";import"./chunk-MNOAC44J.js";import{H as q,i as v}from"./chunk-SD7HBRTT.js";import"./chunk-ZSKOB7NA.js";import{$ as _,Ab as u,Bb as p,Gb as d,Hb as r,Ib as i,Jb as c,Qb as b,Ub as C,Va as s,W as g,Wb as m,aa as h,gc as k,ib as x,ic as a,jc as f,ma as l}from"./chunk-LFZB7MMP.js";import"./chunk-IMPBB4AK.js";function G(n,t){if(n&1&&(r(0,"div",4),c(1,"i",6),r(2,"p"),a(3),i(),r(4,"a",7),a(5,"Back to home"),i()()),n&2){let e=m();s(3),f(e.resultMessage())}}function V(n,t){if(n&1&&(r(0,"p",15),a(1),i()),n&2){let e=m(2);s(),f(e.errorMessage())}}function H(n,t){n&1&&a(0," Sending\u2026 ")}function j(n,t){n&1&&a(0," Request link ")}function U(n,t){if(n&1){let e=b();r(0,"form",8),C("ngSubmit",function(){_(e);let F=m();return h(F.onSubmit())}),r(1,"div",9),c(2,"app-input",10),i(),r(3,"fieldset",11)(4,"legend",12),a(5,"Send via"),i(),c(6,"app-checkbox",13)(7,"app-checkbox",14),i(),u(8,V,2,1,"p",15),r(9,"app-button",16),u(10,H,1,0)(11,j,1,0),i()()}if(n&2){let e=m();d("formGroup",e.form),s(2),d("maxLength",64)("error",e.getOrderNumberError()),s(6),p(e.errorMessage()?8:-1),s(),k(e.ButtonStyle.Primary),d("size",e.ButtonSize.Large)("type",e.ButtonType.Submit)("disabled",e.isSubmitting())("loading",e.isSubmitting()),s(),p(e.isSubmitting()?10:11)}}var I=class n{fb=g(z);orderPayApi=g(T);ButtonStyle=S;ButtonSize=M;ButtonType=P;isSubmitting=l(!1);submitAttempted=l(!1);resultMessage=l(null);errorMessage=l(null);form=this.fb.group({orderNumber:["",[y.required,y.maxLength(64)]],email:[!0],sms:[!1]});getOrderNumberError(){let t=this.form.get("orderNumber");return!t||!t.touched&&!this.submitAttempted()||!t.invalid?"":t.hasError("required")?"Order number is required":t.hasError("maxlength")?"Order number must be 64 characters or fewer":""}onSubmit(){if(this.submitAttempted.set(!0),this.form.markAllAsTouched(),this.errorMessage.set(null),this.form.invalid)return;let t=[];if(this.form.value.email&&t.push("email"),this.form.value.sms&&t.push("sms"),t.length===0){this.errorMessage.set("Select at least one delivery method.");return}let e=(this.form.value.orderNumber||"").trim();if(!e){this.errorMessage.set("Enter your order number.");return}this.isSubmitting.set(!0),this.orderPayApi.requestPayLink({order_number:e,channels:t}).subscribe({next:o=>{this.isSubmitting.set(!1),this.resultMessage.set(o.message||"If that order is awaiting payment, we have sent a payment link to the contact details on file.")},error:o=>{if(this.isSubmitting.set(!1),o.status===422){this.errorMessage.set(o.error?.message||"Please check the order number and try again.");return}if(o.status===429){this.errorMessage.set("Too many attempts \u2014 please wait a moment and try again.");return}this.errorMessage.set(o.error?.message||"Unable to process this request right now. Please try again.")}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=x({type:n,selectors:[["app-request-pay-link"]],decls:8,vars:1,consts:[[1,"request-pay-link"],[1,"request-pay-link__container"],[1,"request-pay-link__title"],[1,"request-pay-link__intro"],["role","status",1,"request-pay-link__result"],[1,"request-pay-link__form",3,"formGroup"],["aria-hidden","true",1,"fa-solid","fa-envelope"],["routerLink","/",1,"request-pay-link__home"],[1,"request-pay-link__form",3,"ngSubmit","formGroup"],[1,"request-pay-link__field"],["label","Order number","type","text","placeholder","e.g. ORD-000000123","formControlName","orderNumber",3,"maxLength","error"],[1,"request-pay-link__channels"],[1,"request-pay-link__label"],["label","Email","formControlName","email"],["label","SMS","formControlName","sms"],["role","alert",1,"request-pay-link__error"],[3,"size","type","disabled","loading"]],template:function(e,o){e&1&&(r(0,"div",0)(1,"div",1)(2,"h1",2),a(3,"Request a payment link"),i(),r(4,"p",3),a(5," Enter the order number from your receipt. If the order is awaiting payment, we will send a payment link to the email or phone already on file for that order. "),i(),u(6,G,6,1,"div",4)(7,U,12,11,"form",5),i()()),e&2&&(s(6),p(o.resultMessage()?6:7))},dependencies:[v,B,L,N,E,w,R,q,O,D,A],styles:[".request-pay-link[_ngcontent-%COMP%]{min-height:50vh;padding:32px 16px 64px;background:var(--background, #f7f7f7)}.request-pay-link__container[_ngcontent-%COMP%]{max-width:520px;margin:0 auto;background:var(--surface, #fff);border:1px solid var(--border-color, #e5e5e5);border-radius:8px;padding:32px 24px}.request-pay-link__title[_ngcontent-%COMP%]{margin:0 0 12px;font-size:24px;font-weight:700;color:var(--text-primary, #1a1a1a)}.request-pay-link__intro[_ngcontent-%COMP%]{margin:0 0 24px;font-size:14px;line-height:1.5;color:var(--text-secondary, #666)}.request-pay-link__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.request-pay-link__field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.request-pay-link__label[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:var(--text-primary, #1a1a1a)}.request-pay-link__channels[_ngcontent-%COMP%]{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:8px}.request-pay-link__error[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--error, #c62828)}.request-pay-link__result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}.request-pay-link__result[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:36px;color:var(--text-secondary, #666)}.request-pay-link__result[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.5;color:var(--text-primary, #1a1a1a)}
1.request-pay-link__home[_ngcontent-%COMP%]{color:var(--primary, #222);font-size:14px}"],changeDetection:0})};export{I as RequestPayLinkComponent};

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.