PageSourceSearch

https://app.vyrd.co/chunk-2QSIRUZ6.js

js vyrd.co collected 2026-09-26 04:06:29 UTC 7,185 bytes, 1 lines download raw bytes

1import{a as me,b as Be,c as pe,d as Ee}from"./chunk-YNDOMTK7.js";import{a as p,c as ke}from"./chunk-RP6M3FYX.js";import{a as S,b as _,d as _e}from"./chunk-5JOA6WUS.js";import"./chunk-PPIREVF2.js";import"./chunk-ZEFWU7S7.js";import{$ as Te}from"./chunk-AL7I7TOP.js";import"./chunk-SWLINWNL.js";import"./chunk-C2YUQ26V.js";import"./chunk-5C6PIBXN.js";import"./chunk-4PLPCLEK.js";import"./chunk-CTZ3ZYEA.js";import"./chunk-4C2DMAJ7.js";import"./chunk-Y54GCYNG.js";import"./chunk-S6Q3UR7I.js";import"./chunk-JC5XC36E.js";import"./chunk-IFCR6EUK.js";import"./chunk-GJ5MNJZS.js";import"./chunk-D3AD6BUX.js";import"./chunk-6SKB6QKA.js";import"./chunk-ZOZDLCWT.js";import"./chunk-MJPCYAIO.js";import"./chunk-URHUZSUY.js";import"./chunk-E6JAX54W.js";import"./chunk-4NDWK7U5.js";import{a as ie,h as xe}from"./chunk-JUR2W2JA.js";import"./chunk-BIZRJKKK.js";import"./chunk-25VNJ2MX.js";import{a as se}from"./chunk-V6TLERKB.js";import"./chunk-NC5YYDD6.js";import{Cb as Se,La as le,i as ne,j as re,k as ve,x as oe,za as ae}from"./chunk-Y6KNM6ZB.js";import"./chunk-QMSUU534.js";import{$c as ge,Aa as Q,Ca as U,Ea as D,Ja as W,Kb as Ce,Ra as X,Sa as Y,db as Z,e as K,eb as ee,hb as ye,ya as v,yb as te}from"./chunk-EPTESH3C.js";import{D as J,K as de}from"./chunk-E47SSV5D.js";import{k as z,l as H,y as fe}from"./chunk-R5IFAQPW.js";import{Ac as C,Ec as M,Ed as G,Fa as f,Fc as w,Gc as k,Hc as A,Ib as a,Mc as j,Nd as b,Oa as F,Oc as m,Pa as O,Yc as B,_b as P,ad as h,bd as E,be as x,cd as g,ec as V,md as N,pd as L,qc as d,sa as he,sc as y,ud as n,v as T,vd as r,xc as l,yc as s,yd as $,za as q,zc as c}from"./chunk-K3TCC32O.js";import{d as R}from"./chunk-XUNVPWCM.js";var I,ce=R(()=>{"use strict";x();Ce();_e();x();I=(()=>{class t{constructor(){this.store=f(te),this.payByEmailResult=this.store.selectSignal(_.selectPayByEmail),this.payByTextResult=this.store.selectSignal(_.selectPayByText),this.shareLinkTarget=this.store.selectSignal(_.selectShareLinkTarget),this.vm=G(()=>({success:this.payByEmailResult().data||this.payByTextResult().data,error:this.payByEmailResult().error||this.payByTextResult().error,target:this.shareLinkTarget()}))}payByEmail(e,i){this.store.dispatch(S.payByEmail({policyNumber:e,email:i}))}payByText(e,i){this.store.dispatch(S.payByText({policyNumber:e,phone:i}))}resetState(){this.store.dispatch(S.resetShareLinkState())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})()});function Ie(t,o){if(t&1&&(k(0,1),n(1,"translate")),t&2){let e=m(),i=B(4);l("ngTemplateOutlet",i)("ngTemplateOutletContext",L(4,be,r(1,2,"request-payment.share-link.success-title"),e.vm().target))}}function Re(t,o){if(t&1&&(k(0,1),n(1,"translate")),t&2){let e=m(),i=B(4);l("ngTemplateOutlet",i)("ngTemplateOutletContext",L(4,De,r(1,2,"request-payment.share-link.error-title"),e.vm().target))}}function qe(t,o){if(t&1&&(C(0,"ui-input",5),n(1,"translate"),n(2,"translate"),n(3,"async")),t&2){let e=m(2);l("formControl",e.form.controls.email)("label",r(1,4,"common.email"))("placeholder",r(2,6,"common.email"))("error",e.form.touched?r(3,8,e.emailErrorMessage$):void 0)}}function Fe(t,o){if(t&1&&(C(0,"ui-input",6),n(1,"translate"),n(2,"translate"),n(3,"async")),t&2){let e=m(2);l("formControl",e.form.controls.phone)("label",r(1,4,"common.phone"))("placeholder",r(2,6,"common.phone"))("error",e.form.touched?r(3,8,e.phoneErrorMessage$):void 0)}}function Oe(t,o){if(t&1){let e=A();s(0,"auth-page",3),n(1,"translate"),j("submit",function(){F(e);let u=m();return O(u.onSubmit())}),M(2,4),d(3,qe,4,10,"ui-input",5),d(4,Fe,4,10,"ui-input",6),s(5,"div",7)(6,"button",8),h(7),n(8,"translate"),c(),s(9,"button",9),h(10),n(11,"translate"),c()(),w(),c()}if(t&2){let e=m();l("title",r(1,6,e.title[e.type()]))("form",e.form),a(3),y(e.type()===e.ShareLinkType.Email?3:-1),a(),y(e.type()===e.ShareLinkType.Text?4:-1),a(3),g(" ",r(8,8,"common.continue")," "),a(3),g(" ",r(11,10,"common.back")," ")}}function Pe(t,o){if(t&1&&(s(0,"div",10),C(1,"svg-icon",11),s(2,"h1",12),h(3),c(),s(4,"span"),h(5),c(),s(6,"button",13),h(7),n(8,"translate"),c()()),t&2){let e=o.icon,i=o.title,u=o.target,ue=m();a(),l("key",e),a(2),E(i),a(2),E(u),a(),l("routerLink",ue.adminRoute),a(),g(" ",r(8,5,"payment-result.back-to-home")," ")}}var be,De,at,Ve=R(()=>{x();Y();Te();ye();Se();fe();he();ve();Be();Ee();de();xe();ge();ke();ce();x();Y();be=(t,o)=>({icon:"successful-payment",title:t,target:o}),De=(t,o)=>({icon:"failed-payment",title:t,target:o});at=(()=>{class t{constructor(){this.service=f(I),this.translateService=f(Z),this.ShareLinkType=p,this.adminRoute=["/",ie.Admin],this.vm=this.service.vm,this.type=b.required(),this.paymentDetails=b.required(),this.form=new U({email:new D(null),phone:new D(null)}),this.title={[p.Email]:"request-payment.share-link.email-title",[p.Text]:"request-payment.share-link.phone-title"},re([pe,me])}ngOnInit(){this.type()===p.Email&&(this.form.controls.email.setValidators([v.required,v.email]),this.form.controls.phone.setValidators(null),this.form.controls.email.setValue(this.paymentDetails().insured.email)),this.type()===p.Text&&(this.form.controls.email.setValidators(null),this.form.controls.phone.setValidators([v.required]),this.form.controls.phone.setValue(K(this.paymentDetails().insured.phone)))}ngOnDestroy(){this.service.resetState()}get emailErrorMessage$(){return this.form.controls.email.hasError("required")?this.translateService.stream("common.fill-out-this-field"):this.form.controls.email.hasError("email")?this.translateService.stream("common.incorrect-email-format"):T("")}get phoneErrorMessage$(){return this.form.controls.phone.hasError("required")?this.translateService.stream("common.fill-out-this-field"):this.form.controls.phone.invalid?this.translateService.stream("common.phone-error"):T("")}onSubmit(){if(!this.form.valid){this.form.markAllAsTouched();return}
1let{email:e,phone:i}=this.form.getRawValue();this.type()===p.Email&&e&&this.service.payByEmail(this.paymentDetails().policyId,e),this.type()===p.Text&&i&&this.service.payByText(this.paymentDetails().policyId,`+1${i}`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ng-component"]],inputs:{type:[1,"type"],paymentDetails:[1,"paymentDetails"]},features:[N([I])],decls:5,vars:1,consts:[["resultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","form"],[3,"submit","title","form"],["authPageForm",""],[3,"formControl","label","placeholder","error"],["type","tel",3,"formControl","label","placeholder","error"],[1,"d-flex","flex-column","gap-2"],["uiButton","","type","submit"],["uiButton","","uiGoBackOnClick","","variant","link",1,"align-self-center"],[1,"d-flex","flex-column","gap-2","align-items-center","text-center"],["fontSize","140px",3,"key"],[1,"header-h3","header-h3-desktop"],["uiButton","",1,"mt-4","align-self-center",3,"routerLink"]],template:function(i,u){i&1&&(d(0,Ie,2,7,"ng-container",1)(1,Re,2,7,"ng-container",1)(2,Oe,12,12,"auth-page",2),V(3,Pe,9,7,"ng-template",null,0,$)),i&2&&y(u.vm().success?0:u.vm().error?1:2)},dependencies:[se,oe,le,ae,X,Q,W,z,ne,J,ee,H],encapsulation:2,changeDetection:0})}}return t})()});Ve();export{at as default};

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.