PageSourceSearch

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

js vitena.care collected 2026-10-02 00:29:29 UTC 5,645 bytes, 1 lines download raw bytes

1import{a as k}from"./chunk-23KJKC6K.js";import"./chunk-XSZTOJMI.js";import"./chunk-77NMTAFC.js";import"./chunk-BCPZPP5Y.js";import"./chunk-2SZU4ZME.js";import{b as y,d as $}from"./chunk-DAO3SMRL.js";import"./chunk-Z5DLUQQM.js";import"./chunk-TYFWTMGI.js";import"./chunk-I73U4EKQ.js";import{Ab as C,Bb as E,Bc as v,Fd as w,Gb as n,Gc as R,Hb as o,Ib as u,Ic as A,Ob as O,Sb as f,Ua as a,Xb as S,Yb as l,Z as p,ca as x,da as T,fb as M,gc as N,hc as b,kc as _,lc as m,mc as g,nc as I,oa as P,wb as c,xb as s,yb as D,zb as F,zd as L}from"./chunk-UWUNFDSH.js";import"./chunk-HSCBD3RX.js";var B=()=>[1,2,3,4,5],V=()=>[];function G(t,i){t&1&&(n(0,"div",4),u(1,"div",5),o());}function U(t,i){if(t&1){let e=O();n(0,"div",4),u(1,"i",6),n(2,"p",7),f(3,0),o(),n(4,"button",8),S("click",function(){x(e);let d=l();return T(d.goBack());}),f(5,1),o()();}}function X(t,i){if(t&1&&(n(0,"p",13),_(1),o()),t&2){let e=l();a(),m(e.formDescription);}}function q(t,i){if(t&1&&(n(0,"span",17),_(1),o()),t&2){let e=l();b("bg-success",e.scoreCategoryColor==="green")("bg-warning",e.scoreCategoryColor==="yellow")("bg-danger",e.scoreCategoryColor==="red"),a(),g(" ",e.scoreCategory," ");}}function z(t,i){if(t&1&&(n(0,"span"),_(1),o()),t&2){let e=l().$implicit;a(),m(e.answerText);}}function j(t,i){if(t&1&&(n(0,"p",21),_(1),o()),t&2){let e=l().$implicit;a(),m(e.answerText);}}function Y(t,i){if(t&1&&(n(0,"span"),_(1),o()),t&2){let e=l().$implicit;a(),m(e.numericValue);}}function H(t,i){if(t&1&&(n(0,"span"),_(1),R(2,"date"),o()),t&2){let e=l().$implicit;a(),m(A(2,1,e.dateValue,"mediumDate"));}}function J(t,i){if(t&1&&(n(0,"span",25),_(1),o()),t&2){let e=i.$implicit,r=l(2).$implicit;N("width",30,"px")("height",30,"px")("background",r.numericValue===e?"#03A791":"#e9ecef")("color",r.numericValue===e?"white":"#6c757d"),a(),g(" ",e," ");}}function K(t,i){t&1&&(n(0,"div",22),C(1,J,2,9,"span",24,F),o()),t&2&&(a(),E(v(0,B)));}function Q(t,i){if(t&1&&(n(0,"span",26),_(1),o()),t&2){let e=l(2).$implicit;a(),m(e.selectedOptions[0]);}}function W(t,i){if(t&1&&c(0,Q,2,1,"span",26),t&2){let e=l().$implicit;s(e.selectedOptions!=null&&e.selectedOptions.length?0:-1);}}function Z(t,i){if(t&1&&(n(0,"span",17),_(1),o()),t&2){let e=l(2).$implicit;b("bg-success",e.selectedOptions[0]==="yes")("bg-secondary",e.selectedOptions[0]==="no"),a(),g(" ",e.selectedOptions[0]==="yes"?"Yes":"No"," ");}}function ee(t,i){if(t&1&&c(0,Z,2,5,"span",27),t&2){let e=l().$implicit;s(e.selectedOptions!=null&&e.selectedOptions.length?0:-1);}}function te(t,i){if(t&1&&(n(0,"span",26),_(1),o()),t&2){let e=i.$implicit;a(),m(e);}}function ie(t,i){if(t&1&&(n(0,"div",23),C(1,te,2,1,"span",26,F),o()),t&2){let e=l().$implicit;a(),E(e.selectedOptions||v(0,V));}}function ne(t,i){t&1&&(n(0,"span",7),_(1,"\u2014"),o());}function oe(t,i){if(t&1&&(n(0,"div",16)(1,"div",18)(2,"div",19),_(3),o(),n(4,"div",20),c(5,z,2,1,"span")(6,j,2,1,"p",21)(7,Y,2,1,"span")(8,H,3,4,"span")(9,K,3,1,"div",22)(10,W,1,1)(11,ee,1,1)(12,ie,3,1,"div",23)(13,ne,2,0,"span",7),o()()()),t&2){let e,r=i.$implicit,d=i.$index;a(3),I("",d+1,". ",r.questionText),a(2),s((e=r.questionType)==="text_short"?5:e==="text_long"?6:e==="number"?7:e==="date"?8:e==="likert"?9:e==="single_choice"?10:e==="yes_no"?11:e==="multiple_choice"?12:13);}}function ae(t,i){if(t&1){let e=O();n(0,"div",9)(1,"button",10),S("click",function(){x(e);let d=l();return T(d.goBack());}),u(2,"i",11),n(3,"span"),f(4,2),o()(),n(5,"h5",12),_(6),o(),c(7,X,2,1,"p",13),n(8,"div",14)(9,"small",7),_(10),R(11,"date"),o(),c(12,q,2,7,"span",15),o()(),C(13,oe,14,3,"div",16,D);}if(t&2){let e=i;a(6),m(e.formTitle),a(),s(e.formDescription?7:-1),a(3),m(A(11,4,e.completedAt,"medium")),a(2),s(e.scoreCategory?12:-1),a(),E(e.answers);}}var h=class t{route=p(y);router=p($);portalService=p(k);detail=P(null);loading=P(!0);ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i?this.portalService.getFormResponseDetail(i).subscribe({next:e=>{this.detail.set(e),this.loading.set(!1);},error:()=>this.loading.set(!1)}):this.loading.set(!1);}goBack(){this.router.navigate(["/portal/forms"]);}static ɵfac=function(e){return new(e||t)();};static ɵcmp=M({type:t,selectors:[["app-portal-form-detail"]],decls:4,vars:3,consts:()=>{let i;i="Form not found";let e;e="Back to Forms";let r;return r="Back to Forms",[i,e,r,[2,"max-width","700px"],[1,"text-center","py-5"],["role","status",1,"spinner-border",2,"color","#03A791"],[1,"bi","bi-exclamation-circle","text-muted","d-block","mb-2",2,"font-size","2rem"],[1,"text-muted"],[1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"mb-4"],[1,"btn","btn-sm","btn-outline-secondary","mb-3",3,"click"],[1,"bi","bi-arrow-left","me-1"],[1,"mb-1"],[1,"text-muted","small","mb-2"],[1,"d-flex","align-items-center","gap-2"],[1,"badge",3,"bg-success","bg-warning","bg-danger"],[1,"card","mb-3"],[1,"badge"],[1,"card-body","py-3"],[1,"fw-semibold","mb-2"],[1,"ps-3"],[1,"mb-0",2,"white-space","pre-line"],[1,"d-flex","gap-1"],[1,"d-flex","flex-wrap","gap-1"],[1,"badge","rounded-circle","d-inline-flex","align-items-center","justify-content-center",3,"width","height","background","color"],[1,"badge","rounded-circle","d-inline-flex","align-items-center","justify-content-center"],[1,"badge","bg-light","text-dark","border"],[1,"badge",3,"bg-success","bg-secondary"]];},template:function(e,r){if(e&1&&(n(0,"div",3),c(1,G,2,0,"div",4),c(2,U,6,0,"div",4),c(3,ae,15,7),o()),e&2){let d;a(),s(r.loading()?1:-1),a(),s(!r.loading()&&!r.detail()?2:-1),a(),s((d=!r.loading()&&r.detail())?3:-1,d);}},dependencies:[w,L],encapsulation:2});};export{h as PortalFormDetailComponent};/**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.