@baravak/risloo-profile-cli 4.16.1 → 4.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,307 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <clipPath id="barx">
4
+ {{bar 28 384 (object tl=4 bl=0 tr=4 br=0) (toRad 0)}}
5
+ </clipPath>
6
+ <linearGradient id="line-bar" x1="0%" y1="0%" x2="0%" y2="100%">
7
+ <stop offset="0%" style="stop-color:{{severity.color}};stop-opacity:1" />
8
+ <stop offset="100%" style="stop-color:{{severity.secondary}};stop-opacity:1" />
9
+ </linearGradient>
10
+ <filter id="lineBase" x="0" y="0" width="226" height="7" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
11
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
12
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
13
+ <feOffset dy="-1"/>
14
+ <feGaussianBlur stdDeviation="1.5"/>
15
+ <feComposite in2="hardAlpha" operator="out"/>
16
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
17
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2493_93356"/>
18
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2493_93356" result="shape"/>
19
+ </filter>
20
+ </defs>
21
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
22
+ <g transform="translate(383, 0)">
23
+ <g>
24
+ <rect x="0" y="0" rx="8" width="340" height="172" stroke="#E2E8F0" fill="none"/>
25
+ <g transform="translate(236, 12)">
26
+ <rect x="0" y="0" rx="4" width="92" height="148" fill="#F1F5F9"/>
27
+ <text y="55" text-anchor="middle" font-size="13" font-weight="500" fill="#475569">
28
+ <tspan x="46" dy="1em">
29
+ شدت
30
+ </tspan>
31
+ <tspan x="46" dy="1.45em">
32
+ وسواس
33
+ </tspan>
34
+ </text>
35
+ </g>
36
+ <g transform="translate(12, 12)">
37
+ {{#forLoop 0 5 1}}
38
+ {{setVar "question" (lookup ../questions i)}}
39
+ <g transform="translate(0, {{math 30 '*' i}})">
40
+ <rect x="0" y="0" rx="4" width="180" height="28" fill="#F8FAFC"/>
41
+ <text x="172" y="14" text-anchor="start" dy="0.23em" font-size="13" font-weight="400" fill="#475569">{{lookup ../questionTitles i}}</text>
42
+ <rect x="4" y="3.5" rx="7" width="20" height="20" fill="{{question.color}}"/>
43
+ <text x="14" y="7.5" text-anchor="middle" dy="0.79em" font-size="13" font-weight="500" fill="#FFFFFF">{{question.user_answered}}</text>
44
+ <g transform="translate(184, 0)">
45
+ <text x="14" y="14" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
46
+ {{math i '+' 1}}
47
+ </text>
48
+ </g>
49
+ </g>
50
+ {{/forLoop}}
51
+ </g>
52
+ {{#if (boolean (boolean alert '!==' 2) '&&' (boolean alert '!==' 0))}}
53
+ <rect x="0" y="0" rx="8" width="340" height="172" fill="black" opacity="0.1"/>
54
+ <g transform="translate(348, 0)">
55
+ <rect x="0" y="0" rx="8" width="132" height="172" stroke="#991B1B" fill="#FEF2F2" stroke-dasharray="6 6"/>
56
+ <g transform="translate(56, 32)">
57
+ <path d="M11 7.50019H11.01M9.99999 10.5002H11V14.5002H12M9.36299 2.09119L1.25699 15.6252C1.08988 15.9146 1.00145 16.2427 1.0005 16.5768C0.999539 16.911 1.08609 17.2396 1.25153 17.5299C1.41698 17.8203 1.65555 18.0622 1.94353 18.2317C2.2315 18.4013 2.55884 18.4924 2.89299 18.4962H19.107C19.441 18.4923 19.7682 18.4011 20.056 18.2317C20.3438 18.0622 20.5823 17.8204 20.7477 17.5302C20.9131 17.24 20.9997 16.9116 20.9989 16.5776C20.9981 16.2435 20.9098 15.9155 20.743 15.6262L12.637 2.09019C12.4664 1.80869 12.2262 1.57593 11.9394 1.41439C11.6527 1.25284 11.3291 1.16797 11 1.16797C10.6709 1.16797 10.3473 1.25284 10.0605 1.41439C9.77378 1.57593 9.53353 1.80869 9.36299 2.09019V2.09119Z" stroke="#991B1B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
58
+ </g>
59
+ <g transform="translate(0, 61.5)">
60
+ <text x="66" text-anchor="middle" font-size="11" font-weight="400" fill="#44403C">
61
+ <tspan y="1em">
62
+ با توجه به پاسخ فرد به
63
+ </tspan>
64
+ <tspan x="66" y="2.5em">
65
+ سؤال ۱ که صفر است،
66
+ </tspan>
67
+ <tspan x="66" y="4em">
68
+ سؤال‌های ۲ تا ۵ در نمره
69
+ </tspan>
70
+ <tspan x="66" y="5.5em">
71
+ شدت وسواس - بی‌اختیاری
72
+ </tspan>
73
+ <tspan x="66" y="7em">
74
+ اثری ندارد.
75
+ </tspan>
76
+ </text>
77
+ </g>
78
+ </g>
79
+ {{/if}}
80
+ </g>
81
+ <g transform="translate(0, 184)">
82
+ <rect x="0" y="0" rx="8" width="340" height="172" stroke="#E2E8F0" fill="none"/>
83
+ <g transform="translate(236, 12)">
84
+ <rect x="0" y="0" rx="4" width="92" height="148" fill="#F1F5F9"/>
85
+ <text y="55" text-anchor="middle" font-size="13" font-weight="500" fill="#475569">
86
+ <tspan x="46" dy="1em">
87
+ شدت
88
+ </tspan>
89
+ <tspan x="46" dy="1.45em">
90
+ بی‌اختیاری
91
+ </tspan>
92
+ </text>
93
+ </g>
94
+ <g transform="translate(12, 12)">
95
+ {{#forLoop 0 5 1}}
96
+ {{setVar "question" (lookup ../questions (math i '+' 5))}}
97
+ <g transform="translate(0, {{math 30 '*' i}})">
98
+ <rect x="0" y="0" rx="4" width="180" height="28" fill="#F8FAFC"/>
99
+ <text x="172" y="14" text-anchor="start" dy="0.23em" font-size="13" font-weight="400" fill="#475569">{{lookup ../questionTitles (math i '+' 5)}}</text>
100
+ <rect x="4" y="3.5" rx="7" width="20" height="20" fill="{{question.color}}"/>
101
+ <text x="14" y="7.5" text-anchor="middle" dy="0.79em" font-size="13" font-weight="500" fill="#FFFFFF">{{question.user_answered}}</text>
102
+ <g transform="translate(184, 0)">
103
+ <text x="14" y="14" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
104
+ {{math i '+' 6}}
105
+ </text>
106
+ </g>
107
+ </g>
108
+ {{/forLoop}}
109
+ </g>
110
+ {{#if (boolean (boolean alert '!==' 1) '&&' (boolean alert '!==' 0))}}
111
+ <rect x="0" y="0" rx="8" width="340" height="172" fill="black" opacity="0.1"/>
112
+ <g transform="translate(348, 0)">
113
+ <rect x="0" y="0" rx="8" width="132" height="172" stroke="#991B1B" fill="#FEF2F2" stroke-dasharray="6 6"/>
114
+ <g transform="translate(56, 32)">
115
+ <path d="M11 7.50019H11.01M9.99999 10.5002H11V14.5002H12M9.36299 2.09119L1.25699 15.6252C1.08988 15.9146 1.00145 16.2427 1.0005 16.5768C0.999539 16.911 1.08609 17.2396 1.25153 17.5299C1.41698 17.8203 1.65555 18.0622 1.94353 18.2317C2.2315 18.4013 2.55884 18.4924 2.89299 18.4962H19.107C19.441 18.4923 19.7682 18.4011 20.056 18.2317C20.3438 18.0622 20.5823 17.8204 20.7477 17.5302C20.9131 17.24 20.9997 16.9116 20.9989 16.5776C20.9981 16.2435 20.9098 15.9155 20.743 15.6262L12.637 2.09019C12.4664 1.80869 12.2262 1.57593 11.9394 1.41439C11.6527 1.25284 11.3291 1.16797 11 1.16797C10.6709 1.16797 10.3473 1.25284 10.0605 1.41439C9.77378 1.57593 9.53353 1.80869 9.36299 2.09019V2.09119Z" stroke="#991B1B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
116
+ </g>
117
+ <g transform="translate(0, 61.5)">
118
+ <text x="66" text-anchor="middle" font-size="11" font-weight="400" fill="#44403C">
119
+ <tspan y="1em">
120
+ با توجه به پاسخ فرد به
121
+ </tspan>
122
+ <tspan x="66" y="2.5em">
123
+ سؤال ۶ که صفر است،
124
+ </tspan>
125
+ <tspan x="66" y="4em">
126
+ سؤال‌های ۷ تا ۱۰ در نمره
127
+ </tspan>
128
+ <tspan x="66" y="5.5em">
129
+ شدت وسواس - بی‌اختیاری
130
+ </tspan>
131
+ <tspan x="66" y="7em">
132
+ اثری ندارد.
133
+ </tspan>
134
+ </text>
135
+ </g>
136
+ </g>
137
+ {{/if}}
138
+ </g>
139
+ <g transform="translate(0, 368)">
140
+ <rect x="0" y="0" rx="8" width="340" height="52" stroke="#E2E8F0" fill="none"/>
141
+ <g transform="translate(236, 12)">
142
+ <rect x="0" y="0" rx="4" width="92" height="28" fill="#F1F5F9"/>
143
+ <text x="46" y="4.5" dy="0.9em" text-anchor="middle" font-size="13" font-weight="500" fill="#475569">
144
+ نیرومندی باور
145
+ </text>
146
+ </g>
147
+ <g transform="translate(12, 12)">
148
+ <g>
149
+ <rect x="0" y="0" rx="4" width="180" height="28" fill="#F8FAFC"/>
150
+ <text x="172" y="14" text-anchor="start" dy="0.23em" font-size="13" font-weight="400" fill="#475569">{{questionTitles.[10]}}</text>
151
+ <rect x="4" y="3.5" rx="7" width="20" height="20" fill="{{questions.[10].color}}"/>
152
+ <text x="14" y="7.5" text-anchor="middle" dy="0.79em" font-size="13" font-weight="500" fill="#FFFFFF">{{questions.[10].user_answered}}</text>
153
+ <g transform="translate(184, 0)">
154
+ <rect x="0" y="0" rx="4" width="28" height="28" fill="none" stroke="#94A3B8" stroke-width="1"/>
155
+ <text x="14" y="14" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
156
+ 11
157
+ </text>
158
+ </g>
159
+ </g>
160
+ </g>
161
+ </g>
162
+ <g transform="translate(0, 432)">
163
+ <rect x="0" y="0" rx="8" width="340" height="52" stroke="#E2E8F0" fill="none"/>
164
+ <g transform="translate(236, 12)">
165
+ <rect x="0" y="0" rx="4" width="92" height="28" fill="#F1F5F9"/>
166
+ <text x="46" y="4.5" dy="0.9em" text-anchor="middle" font-size="13" font-weight="500" fill="#475569">
167
+ اجتناب
168
+ </text>
169
+ </g>
170
+ <g transform="translate(12, 12)">
171
+ <g>
172
+ <rect x="0" y="0" rx="4" width="180" height="28" fill="#F8FAFC"/>
173
+ <text x="172" y="14" text-anchor="start" dy="0.23em" font-size="13" font-weight="400" fill="#475569">{{questionTitles.[11]}}</text>
174
+ <rect x="4" y="3.5" rx="7" width="20" height="20" fill="{{questions.[11].color}}"/>
175
+ <text x="14" y="7.5" text-anchor="middle" dy="0.79em" font-size="13" font-weight="500" fill="#FFFFFF">{{questions.[11].user_answered}}</text>
176
+ <g transform="translate(184, 0)">
177
+ <text x="14" y="14" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
178
+ 12
179
+ </text>
180
+ </g>
181
+ </g>
182
+ </g>
183
+ </g>
184
+ <g transform="translate(0, 496)">
185
+ <rect x="0" y="0" rx="8" width="340" height="92" stroke="#E2E8F0" fill="none"/>
186
+ <g transform="translate(236, 12)">
187
+ <rect x="0" y="0" rx="4" width="92" height="68" fill="#F1F5F9"/>
188
+ <text y="15" text-anchor="middle" font-size="13" font-weight="500" fill="#475569">
189
+ <tspan x="46" dy="1em">
190
+ ارزیابی
191
+ </tspan>
192
+ <tspan x="46" dy="1.45em">
193
+ افسردگی
194
+ </tspan>
195
+ </text>
196
+ </g>
197
+ <g transform="translate(12, 12)">
198
+ {{#forLoop 0 2 1}}
199
+ {{setVar "question" (lookup ../questions (math i '+' 12))}}
200
+ <g transform="translate(0, {{math 30 '*' i}})">
201
+ <rect x="0" y="0" rx="4" width="180" height="28" fill="#F8FAFC"/>
202
+ <text x="172" y="14" text-anchor="start" dy="0.23em" font-size="13" font-weight="400" fill="#475569">{{lookup ../questionTitles (math i '+' 12)}}</text>
203
+ <rect x="4" y="3.5" rx="7" width="20" height="20" fill="{{question.color}}"/>
204
+ <text x="14" y="7.5" text-anchor="middle" dy="0.79em" font-size="13" font-weight="500" fill="#FFFFFF">{{question.user_answered}}</text>
205
+ <g transform="translate(184, 0)">
206
+ {{#if (boolean i '===' 1)}}
207
+ <rect x="0" y="0" rx="4" width="28" height="28" fill="none" stroke="#94A3B8" stroke-width="1"/>
208
+ {{/if}}
209
+ <text x="14" y="14" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
210
+ {{math i '+' 13}}
211
+ </text>
212
+ </g>
213
+ </g>
214
+ {{/forLoop}}
215
+ </g>
216
+ </g>
217
+ </g>
218
+ <g transform="translate(345, 612)">
219
+ <g transform="translate(395, 0)">
220
+ <rect rx="7" width="20" height="20" fill="{{questionAnswers.[0]}}"/>
221
+ <text x="10" text-anchor="middle" dy="1.07em" font-size="13" font-weight="500" fill="#FFFFFF">0</text>
222
+ <text x="-8" text-anchor="start" dy="1.1em" font-size="12" font-weight="400" fill="#64748B">صدق نمی‌کند</text>
223
+ </g>
224
+ <g transform="translate(280, 0)">
225
+ <rect rx="7" width="20" height="20" fill="{{questionAnswers.[1]}}"/>
226
+ <text x="10" text-anchor="middle" dy="1.07em" font-size="13" font-weight="500" fill="#FFFFFF">1</text>
227
+ <text x="-8" text-anchor="start" dy="1.1em" font-size="12" font-weight="400" fill="#64748B">خیلی کم</text>
228
+ </g>
229
+ <g transform="translate(188, 0)">
230
+ <rect rx="7" width="20" height="20" fill="{{questionAnswers.[2]}}"/>
231
+ <text x="10" text-anchor="middle" dy="1.07em" font-size="13" font-weight="500" fill="#FFFFFF">2</text>
232
+ <text x="-8" text-anchor="start" dy="1.1em" font-size="12" font-weight="400" fill="#64748B">کم</text>
233
+ </g>
234
+ <g transform="translate(123, 0)">
235
+ <rect rx="7" width="20" height="20" fill="{{questionAnswers.[3]}}"/>
236
+ <text x="10" text-anchor="middle" dy="1.07em" font-size="13" font-weight="500" fill="#FFFFFF">3</text>
237
+ <text x="-8" text-anchor="start" dy="1.1em" font-size="12" font-weight="400" fill="#64748B">زیاد</text>
238
+ </g>
239
+ <g transform="translate(53, 0)">
240
+ <rect rx="7" width="20" height="20" fill="{{questionAnswers.[4]}}"/>
241
+ <text x="10" text-anchor="middle" dy="1.07em" font-size="13" font-weight="500" fill="#FFFFFF">4</text>
242
+ <text x="-8" text-anchor="start" dy="1.1em" font-size="12" font-weight="400" fill="#64748B">خیلی زیاد</text>
243
+ </g>
244
+ </g>
245
+ <g transform="translate(359, 648)">
246
+ <g transform="translate(364, 0)">
247
+ <rect rx="4" width="24" height="24" fill="none" stroke="#94A3B8" stroke-width="1"/>
248
+ <text x="12" y="12" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
249
+ 11
250
+ </text>
251
+ </g>
252
+ <g transform="translate(336, 0)">
253
+ <rect rx="4" width="24" height="24" fill="none" stroke="#94A3B8" stroke-width="1"/>
254
+ <text x="12" y="12" text-anchor="middle" dy="0.25em" font-size="11" font-weight="400" fill="#475569">
255
+ 14
256
+ </text>
257
+ </g>
258
+ <text x="328" y="3.5" text-anchor="start" dy="0.93em" font-size="12" font-weight="400" fill="#64748B">
259
+ پاسخ مراجع به این دو سوال جهت تحلیل، نیازمند توجه بیشتری است.
260
+ </text>
261
+ </g>
262
+ <g transform="translate(88, 83)">
263
+ {{!-- <rect x="0" y="0" rx="8" width="220" height="422" fill="black" opacity="0.1"/> --}}
264
+ <g transform="translate(96, 5)">
265
+ {{bar 28 384 (object tl=4 bl=0 tr=4 br=0) (toRad 0) fill="#F9FAFB"}}
266
+ </g>
267
+ <g transform="translate(0, 5)">
268
+ <line x1="42" y1="0" x2="210" y2="0" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6 6"/>
269
+ <text x="32" text-anchor="start" dy="0.25em" font-size="12" font-weight="400" fill="#9CA3AF">48</text>
270
+ <text x="140" y="68" text-anchor="end" dy="0.25em" font-size="12" font-weight="400" fill="#9F1239">خیلی شدید</text>
271
+ </g>
272
+ <g transform="translate(0, 141)">
273
+ <line x1="42" y1="0" x2="210" y2="0" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6 6"/>
274
+ <text x="32" text-anchor="start" dy="0.25em" font-size="12" font-weight="400" fill="#9CA3AF">31</text>
275
+ <text x="140" y="32" text-anchor="end" dy="0.25em" font-size="12" font-weight="400" fill="#E11D48">شدید</text>
276
+ </g>
277
+ <g transform="translate(0, 205)">
278
+ <line x1="42" y1="0" x2="210" y2="0" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6 6"/>
279
+ <text x="32" text-anchor="start" dy="0.25em" font-size="12" font-weight="400" fill="#9CA3AF">23</text>
280
+ <text x="140" y="32" text-anchor="end" dy="0.25em" font-size="12" font-weight="400" fill="#F97316">متوسط</text>
281
+ </g>
282
+ <g transform="translate(0, 269)">
283
+ <line x1="42" y1="0" x2="210" y2="0" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6 6"/>
284
+ <text x="32" text-anchor="start" dy="0.25em" font-size="12" font-weight="400" fill="#9CA3AF">15</text>
285
+ <text x="140" y="32" text-anchor="end" dy="0.25em" font-size="12" font-weight="400" fill="#EAB308">خفیف</text>
286
+ </g>
287
+ <g transform="translate(0, 333)">
288
+ <line x1="42" y1="0" x2="210" y2="0" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6 6"/>
289
+ <text x="32" text-anchor="start" dy="0.25em" font-size="12" font-weight="400" fill="#9CA3AF">7</text>
290
+ <text x="140" y="28" text-anchor="end" dy="0.25em" font-size="12" font-weight="400" fill="#64748B">غیربالینی</text>
291
+ </g>
292
+ <g transform="translate(96, {{math 389 '-' (math severity.mark '*' 8)}})">
293
+ {{bar 28 (math severity.mark '*' 8) (object tl=4 bl=0 tr=4 br=0) (toRad 0) fill="url(#line-bar)" clip-path="url(#barx)"}}
294
+ {{#if (boolean severity.mark '>=' 7)}}
295
+ <text x="14" y="8" text-anchor="middle" dy="0.73em" font-size="16" font-weight="600" fill="#FFFFFF">{{severity.mark}}</text>
296
+ {{else}}
297
+ <text x="14" y="-18" text-anchor="middle" dy="0.73em" font-size="16" font-weight="600" fill="#64748B">{{severity.mark}}</text>
298
+ {{/if}}
299
+ </g>
300
+ <g transform="translate(-3.5, 386)" opacity="0.5" filter="url(#lineBase)">
301
+ <line x1="3.5" y1="4.5" x2="222.5" y2="4.5" stroke="white" stroke-linecap="round"/>
302
+ </g>
303
+ <text x="110" y="406" text-anchor="middle" dy="0.73em" font-size="13" font-weight="500" fill="#4B5563">شدت وسواس - بی‌اختیاری</text>
304
+ </g>
305
+ </g>
306
+
307
+ {{/layout}}