PageSourceSearch

https://vitena.care/en/chunk-JAR4EZNB.js

js vitena.care collected 2026-10-02 00:29:09 UTC 4,133 bytes, 1 lines download raw bytes

1import{a as P}from"./chunk-23KJKC6K.js";import{a as R}from"./chunk-FX3AOF3Z.js";import"./chunk-XSZTOJMI.js";import"./chunk-77NMTAFC.js";import"./chunk-BCPZPP5Y.js";import"./chunk-2SZU4ZME.js";import{b as T,d as u,e as A}from"./chunk-DAO3SMRL.js";import"./chunk-Z5DLUQQM.js";import"./chunk-TYFWTMGI.js";import"./chunk-I73U4EKQ.js";import{Db as n,Eb as i,Fb as l,Fd as O,Sb as s,Ua as m,Yb as f,Z as a,fb as M,kc as N,lc as p,oa as c,wb as S,xb as C}from"./chunk-UWUNFDSH.js";import"./chunk-HSCBD3RX.js";function I(r,t){r&1&&(n(0,"div",8),l(1,"div",9),n(2,"h1",10),s(3,0),i()());}function v(r,t){if(r&1&&(n(0,"div",8)(1,"div",11),l(2,"i",12),i(),n(3,"h1",10),s(4,1),i(),n(5,"p",13),N(6),i(),n(7,"p",14),s(8,2),i(),n(9,"a",15),s(10,3),i()()),r&2){let o=f();m(6),p(o.errorMessage());}}function x(r,t){r&1&&(n(0,"div",8)(1,"div",16),l(2,"i",17),i(),n(3,"h1",10),s(4,4),i(),n(5,"p",13),s(6,5),i()());}var h=class r{route=a(T);router=a(u);conversations=a(R);portal=a(P);loading=c(!0);errorMessage=c("");ngOnInit(){let t=this.route.snapshot.queryParamMap.get("token");if(!t){this.loading.set(!1),this.errorMessage.set("No token was found in this link.");return;}let o=document.documentElement.lang||void 0;this.conversations.confirm(t,o).subscribe({next:e=>{if(this.loading.set(!1),!e.success){this.errorMessage.set(e.message);return;}if(e.portalAuth)try{this.portal.persistSession(e.portalAuth);}catch{}e.conversationId&&this.portal.isAuthenticated()&&this.router.navigate(["/portal/messages",e.conversationId]);},error:e=>{this.loading.set(!1),this.errorMessage.set(e?.error?.message||"This link is not valid, or it has already been used.");}});}static ɵfac=function(o){return new(o||r)();};static ɵcmp=M({type:r,selectors:[["app-message-confirm"]],decls:5,vars:1,consts:()=>{let t;t="Sending your message\u2026";let o;o="This link can't be used";let e;e=" These links expire after 24 hours and work once. Write to them again from their page and we'll send a fresh one. ";let g;g="Find a professional";let d;d="Message sent";let E;return E=" We'll email you when they reply, and you'll find the whole conversation in your messages. ",[t,o,e,g,d,E,[1,"mc-page"],[1,"mc-card"],[1,"mc-block"],[1,"mc-spinner"],[1,"mc-title"],[1,"mc-icon","mc-icon--error"],[1,"bi","bi-exclamation-triangle-fill"],[1,"mc-text"],[1,"mc-hint"],["routerLink","/find",1,"mc-btn"],[1,"mc-icon","mc-icon--ok"],[1,"bi","bi-check-circle-fill"]];},template:function(o,e){o&1&&(n(0,"div",6)(1,"div",7),S(2,I,4,0,"div",8)(3,v,11,1,"div",8)(4,x,7,0,"div",8),i()()),o&2&&(m(2),C(e.loading()?2:e.errorMessage()?3:4));},dependencies:[O,A],styles:[".mc-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--color-surface);padding:20px}.mc-card[_ngcontent-%COMP%]{background:var(--color-bg);border:1px solid var(--color-gray-200);border-radius:var(--radius-lg);padding:48px 40px;max-width:460px;width:100%;text-align:center;box-shadow:var(--shadow-lg)}.mc-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:14px}.mc-spinner[_ngcontent-%COMP%]{width:48px;height:48px;border:4px solid var(--color-gray-200);border-top-color:var(--color-portal);border-radius:50%;animation:_ngcontent-%COMP%_mc-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_mc-spin{to{transform:rotate(360deg)}}.mc-icon[_ngcontent-%COMP%]{font-size:3rem;line-height:1}.mc-icon--error[_ngcontent-%COMP%]{color:var(--color-error)}.mc-icon--ok[_ngcontent-%COMP%]{color:var(--color-primary)}.mc-title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;color:var(--color-text);margin:4px 0 0}.mc-text[_ngcontent-%COMP%]{color:var(--color-text-light);margin:0}.mc-hint[_ngcontent-%COMP%]{color:var(--color-text-muted);font-size:.9rem;margin:0;max-width:340px}.mc-btn[_ngcontent-%COMP%]{margin-top:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--color-portal);color:#fff;border:none;border-radius:var(--radius);padding:12px 24px;font-weight:600;text-decoration:none}"]});};export{h as MessageConfirmComponent};/**i18n:124ccf68d2f1268c4040d7fd92ec0e6a8c443ba8f9b9e552a35ffacd4fbcb105*/

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.