@qratilabs/qrati-connect 2.23.8 → 2.24.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.
- package/README.md +84 -54
- package/element/2CMH9VMM.js +4 -0
- package/element/BKDqpSN62.js +3 -0
- package/element/{lrjV8c1G2.js → BM9ujORR2.js} +1 -1
- package/element/BOQzjiMV.js +9 -0
- package/element/{BYEF5Khs.js → BOqkzZ92.js} +1 -1
- package/{umd/BpVacqmD2.js → element/BP2rYgya2.js} +10 -10
- package/element/BZu3c37u.js +1 -0
- package/{umd/ls36Q8v0.js → element/Bb7nx5xF.js} +5 -5
- package/element/Bh8kXbe92.js +93 -0
- package/{umd/NwT4xmUR2.js → element/Bow6F3212.js} +29 -29
- package/{umd/BkvtmX4K.js → element/BsYbcfkG.js} +1 -1
- package/element/{C8_zGNAf.js → C12iSy3L.js} +1 -1
- package/element/{D9NypPiv.js → C3dOFk9A.js} +1 -1
- package/element/C52SUIvC2.js +35 -0
- package/element/{DIYUC8M3.js → CAETItHr.js} +1 -1
- package/element/{Cb1JRT_1.js → CATr-3VW.js} +1 -1
- package/element/{Byk0pccK.js → CFnGGYmq.js} +1 -1
- package/element/CHTzn6mh2.js +4 -0
- package/element/CL_evx_l.js +1 -0
- package/element/{e_wwJ5wx2.js → CLdpUOLk2.js} +4 -4
- package/element/{qWp4ucdT.js → CM46vluW.js} +1 -1
- package/{umd/BtN9y353.js → element/CVRTTCyF.js} +1 -1
- package/element/{9QY9BKOL2.js → CWhnvMey2.js} +8 -8
- package/{umd/B14kCOq8.js → element/CZ9iaxjO.js} +1 -1
- package/element/CaX2xgrP.js +41 -0
- package/element/{b6CwQBFC.js → ChJXhA9c.js} +5 -5
- package/element/{4VTPoA38.js → CqBk9L5O.js} +1 -1
- package/{umd/CiiNqDJq.js → element/CsfDBJh72.js} +1 -1
- package/element/{_ty2jtjs.js → D35mTuTT.js} +1 -1
- package/element/D5TKEdBd2.js +3 -0
- package/element/{CCLXmMXp.js → DF0LxcV7.js} +1 -1
- package/element/{DvTRhlvs.js → DGGc10Cy.js} +1 -1
- package/element/{ekog7y-V.js → DGbyGc8b.js} +1 -1
- package/element/DN26AtHL2.js +4 -0
- package/element/{DsvRTvCp.js → DWBbTgnB.js} +1 -1
- package/element/{BQuhYd4G2.js → DZtaQWVG2.js} +1 -1
- package/element/{D0VKfxwE.js → DdOwRfWG.js} +2 -2
- package/element/DkG0zv7_2.js +9 -0
- package/{umd/gk4TX_a62.js → element/DlRUi0u42.js} +1 -1
- package/element/{DXx41__x2.js → DlqJDAie2.js} +1 -1
- package/element/DnIueBGr2.js +1 -0
- package/element/{BglDIiFp.js → DnQ6XaLR.js} +2 -2
- package/element/DrrpB4Om.js +1 -0
- package/element/DtRwaUYF2.js +85 -0
- package/element/{CSO2IaJ1.js → LYboLIEU.js} +2 -2
- package/element/{DNG5BSHx2.js → N4HKgEC52.js} +1 -1
- package/element/Rcen6i0h.js +80 -0
- package/{umd/MpvHkxaz2.js → element/Z0-Tddye2.js} +1 -1
- package/element/dT6WSX65.js +1 -0
- package/element/h4ZjZXfe2.js +1 -0
- package/element/kiL9JENf2.js +3 -0
- package/element/{BdOzsWR32.js → lcKuIs2T2.js} +1 -1
- package/element/{CXg838Gr2.js → mIANlVHi2.js} +8 -8
- package/element/mQzpzQ_t.js +3 -0
- package/element/web.es.js +26 -108
- package/package.json +3 -15
- package/react/index.d.mts +182 -6
- package/react/index.d.ts +182 -6
- package/element/B14kCOq8.js +0 -2
- package/element/BItJQVdK.js +0 -41
- package/element/BYoa-kpQ2.js +0 -9
- package/element/Be1e_ATJ.js +0 -1
- package/element/BfkCwRAR2.js +0 -3
- package/element/BkvtmX4K.js +0 -2
- package/element/BpVacqmD2.js +0 -14
- package/element/BsT0vqml.js +0 -1
- package/element/BtN9y353.js +0 -1
- package/element/C030L_Hu2.js +0 -4
- package/element/C0MGOytI.js +0 -1
- package/element/C3tT7YRo2.js +0 -37
- package/element/C3uDEVBt.js +0 -1
- package/element/CiiNqDJq.js +0 -3
- package/element/CnoPTYOO.js +0 -1
- package/element/D4apO9G62.js +0 -4
- package/element/DB1jhaAe2.js +0 -85
- package/element/Do2aldFH.js +0 -9
- package/element/Drl8BMLL2.js +0 -93
- package/element/LJWh_4Di.js +0 -2
- package/element/MpvHkxaz2.js +0 -16
- package/element/NwT4xmUR2.js +0 -39
- package/element/gjXXuILV2.js +0 -3
- package/element/gk4TX_a62.js +0 -7
- package/element/ls36Q8v0.js +0 -9
- package/element/qNDy94Dr2.js +0 -3
- package/element/styles.css +0 -288
- package/umd/4VTPoA38.js +0 -1
- package/umd/9QY9BKOL2.js +0 -8
- package/umd/BCTYvPrD.js +0 -1
- package/umd/BItJQVdK.js +0 -41
- package/umd/BQuhYd4G2.js +0 -2
- package/umd/BYEF5Khs.js +0 -1
- package/umd/BYoa-kpQ2.js +0 -9
- package/umd/BdOzsWR32.js +0 -9
- package/umd/Be1e_ATJ.js +0 -1
- package/umd/BfkCwRAR2.js +0 -3
- package/umd/BglDIiFp.js +0 -3
- package/umd/BkIDQGIs.js +0 -1
- package/umd/Bki5T_lb.js +0 -1
- package/umd/BsT0vqml.js +0 -1
- package/umd/Byk0pccK.js +0 -1
- package/umd/C030L_Hu2.js +0 -4
- package/umd/C0MGOytI.js +0 -1
- package/umd/C3tT7YRo2.js +0 -37
- package/umd/C3uDEVBt.js +0 -1
- package/umd/C8_zGNAf.js +0 -1
- package/umd/CCLXmMXp.js +0 -3
- package/umd/CSO2IaJ1.js +0 -2
- package/umd/CXg838Gr2.js +0 -13
- package/umd/Cb1JRT_1.js +0 -1
- package/umd/CfMNBPpx2.js +0 -1
- package/umd/CgUphJWo.js +0 -1
- package/umd/Cko4QHwX.js +0 -1
- package/umd/CnoPTYOO.js +0 -1
- package/umd/D0VKfxwE.js +0 -10
- package/umd/D4apO9G62.js +0 -4
- package/umd/D9NypPiv.js +0 -7
- package/umd/DB1jhaAe2.js +0 -85
- package/umd/DIYUC8M3.js +0 -2
- package/umd/DNG5BSHx2.js +0 -2
- package/umd/DXx41__x2.js +0 -2
- package/umd/Do2aldFH.js +0 -9
- package/umd/Drl8BMLL2.js +0 -93
- package/umd/DsvRTvCp.js +0 -8
- package/umd/DvTRhlvs.js +0 -2
- package/umd/LJWh_4Di.js +0 -2
- package/umd/_ty2jtjs.js +0 -2
- package/umd/b6CwQBFC.js +0 -5
- package/umd/e_wwJ5wx2.js +0 -5
- package/umd/ekog7y-V.js +0 -1
- package/umd/gjXXuILV2.js +0 -3
- package/umd/index.d.ts +0 -14
- package/umd/lrjV8c1G2.js +0 -8
- package/umd/qNDy94Dr2.js +0 -3
- package/umd/qWp4ucdT.js +0 -1
- package/umd/rtH8O6Hc.js +0 -1
- package/umd/web.es.js +0 -125
- package/umd/web.umd.js +0 -1
package/element/styles.css
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
.pswp,
|
|
2
|
-
.pswp:focus,
|
|
3
|
-
.pswp__icn:focus {
|
|
4
|
-
outline: 0;
|
|
5
|
-
}
|
|
6
|
-
.pswp,
|
|
7
|
-
.pswp__button,
|
|
8
|
-
.pswp__icn,
|
|
9
|
-
.pswp__item,
|
|
10
|
-
.pswp__scroll-wrap {
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
}
|
|
13
|
-
.pswp {
|
|
14
|
-
--pswp-bg: #000;
|
|
15
|
-
--pswp-placeholder-bg: #222;
|
|
16
|
-
--pswp-root-z-index: 100000;
|
|
17
|
-
--pswp-preloader-color: rgba(79, 79, 79, 0.4);
|
|
18
|
-
--pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
|
|
19
|
-
--pswp-icon-color: #fff;
|
|
20
|
-
--pswp-icon-color-secondary: #4f4f4f;
|
|
21
|
-
--pswp-icon-stroke-color: #4f4f4f;
|
|
22
|
-
--pswp-icon-stroke-width: 2px;
|
|
23
|
-
--pswp-error-text-color: var(--pswp-icon-color);
|
|
24
|
-
position: fixed;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
z-index: var(--pswp-root-z-index);
|
|
30
|
-
display: none;
|
|
31
|
-
touch-action: none;
|
|
32
|
-
opacity: 0.003;
|
|
33
|
-
contain: layout style size;
|
|
34
|
-
-webkit-tap-highlight-color: transparent;
|
|
35
|
-
}
|
|
36
|
-
.pswp * {
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
}
|
|
39
|
-
.pswp img {
|
|
40
|
-
max-width: none;
|
|
41
|
-
}
|
|
42
|
-
.pswp--open {
|
|
43
|
-
display: block;
|
|
44
|
-
}
|
|
45
|
-
.pswp,
|
|
46
|
-
.pswp__bg {
|
|
47
|
-
transform: translateZ(0);
|
|
48
|
-
will-change: opacity;
|
|
49
|
-
}
|
|
50
|
-
.pswp__bg {
|
|
51
|
-
opacity: 0.005;
|
|
52
|
-
background: var(--pswp-bg);
|
|
53
|
-
z-index: -2;
|
|
54
|
-
}
|
|
55
|
-
.pswp__bg,
|
|
56
|
-
.pswp__container,
|
|
57
|
-
.pswp__content,
|
|
58
|
-
.pswp__img,
|
|
59
|
-
.pswp__item,
|
|
60
|
-
.pswp__scroll-wrap,
|
|
61
|
-
.pswp__zoom-wrap {
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: 0;
|
|
64
|
-
left: 0;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
}
|
|
68
|
-
.pswp__img,
|
|
69
|
-
.pswp__zoom-wrap {
|
|
70
|
-
width: auto;
|
|
71
|
-
height: auto;
|
|
72
|
-
}
|
|
73
|
-
.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
|
|
74
|
-
cursor: -webkit-zoom-in;
|
|
75
|
-
cursor: -moz-zoom-in;
|
|
76
|
-
cursor: zoom-in;
|
|
77
|
-
}
|
|
78
|
-
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
|
|
79
|
-
cursor: move;
|
|
80
|
-
cursor: -webkit-grab;
|
|
81
|
-
cursor: -moz-grab;
|
|
82
|
-
cursor: grab;
|
|
83
|
-
}
|
|
84
|
-
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
|
|
85
|
-
cursor: -webkit-grabbing;
|
|
86
|
-
cursor: -moz-grabbing;
|
|
87
|
-
cursor: grabbing;
|
|
88
|
-
}
|
|
89
|
-
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
|
|
90
|
-
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
|
|
91
|
-
.pswp__img {
|
|
92
|
-
cursor: -webkit-zoom-out;
|
|
93
|
-
cursor: -moz-zoom-out;
|
|
94
|
-
cursor: zoom-out;
|
|
95
|
-
}
|
|
96
|
-
.pswp__button,
|
|
97
|
-
.pswp__container,
|
|
98
|
-
.pswp__counter,
|
|
99
|
-
.pswp__img {
|
|
100
|
-
-webkit-user-select: none;
|
|
101
|
-
-moz-user-select: none;
|
|
102
|
-
-ms-user-select: none;
|
|
103
|
-
user-select: none;
|
|
104
|
-
}
|
|
105
|
-
.pswp__item {
|
|
106
|
-
z-index: 1;
|
|
107
|
-
}
|
|
108
|
-
.pswp__hidden {
|
|
109
|
-
display: none !important;
|
|
110
|
-
}
|
|
111
|
-
.pswp__content {
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
}
|
|
114
|
-
.pswp__content > * {
|
|
115
|
-
pointer-events: auto;
|
|
116
|
-
}
|
|
117
|
-
.pswp__error-msg-container {
|
|
118
|
-
display: grid;
|
|
119
|
-
}
|
|
120
|
-
.pswp__error-msg {
|
|
121
|
-
margin: auto;
|
|
122
|
-
font-size: 1em;
|
|
123
|
-
line-height: 1;
|
|
124
|
-
color: var(--pswp-error-text-color);
|
|
125
|
-
}
|
|
126
|
-
.pswp .pswp__hide-on-close {
|
|
127
|
-
opacity: 0.005;
|
|
128
|
-
will-change: opacity;
|
|
129
|
-
transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
|
|
130
|
-
z-index: 10;
|
|
131
|
-
pointer-events: none;
|
|
132
|
-
}
|
|
133
|
-
.pswp--ui-visible .pswp__hide-on-close {
|
|
134
|
-
opacity: 1;
|
|
135
|
-
pointer-events: auto;
|
|
136
|
-
}
|
|
137
|
-
.pswp__button {
|
|
138
|
-
position: relative;
|
|
139
|
-
display: block;
|
|
140
|
-
width: 50px;
|
|
141
|
-
height: 60px;
|
|
142
|
-
padding: 0;
|
|
143
|
-
margin: 0;
|
|
144
|
-
cursor: pointer;
|
|
145
|
-
background: 0 0;
|
|
146
|
-
border: 0;
|
|
147
|
-
box-shadow: none;
|
|
148
|
-
opacity: 0.85;
|
|
149
|
-
-webkit-appearance: none;
|
|
150
|
-
-webkit-touch-callout: none;
|
|
151
|
-
}
|
|
152
|
-
.pswp__button:active,
|
|
153
|
-
.pswp__button:focus,
|
|
154
|
-
.pswp__button:hover {
|
|
155
|
-
transition: none;
|
|
156
|
-
padding: 0;
|
|
157
|
-
background: 0 0;
|
|
158
|
-
border: 0;
|
|
159
|
-
box-shadow: none;
|
|
160
|
-
opacity: 1;
|
|
161
|
-
}
|
|
162
|
-
.pswp__button:disabled {
|
|
163
|
-
opacity: 0.3;
|
|
164
|
-
cursor: auto;
|
|
165
|
-
}
|
|
166
|
-
.pswp__icn {
|
|
167
|
-
fill: var(--pswp-icon-color);
|
|
168
|
-
color: var(--pswp-icon-color-secondary);
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 14px;
|
|
171
|
-
left: 9px;
|
|
172
|
-
width: 32px;
|
|
173
|
-
height: 32px;
|
|
174
|
-
pointer-events: none;
|
|
175
|
-
}
|
|
176
|
-
.pswp__icn-shadow {
|
|
177
|
-
stroke: var(--pswp-icon-stroke-color);
|
|
178
|
-
stroke-width: var(--pswp-icon-stroke-width);
|
|
179
|
-
fill: none;
|
|
180
|
-
}
|
|
181
|
-
.pswp__img--with-bg,
|
|
182
|
-
div.pswp__img--placeholder {
|
|
183
|
-
background: var(--pswp-placeholder-bg);
|
|
184
|
-
}
|
|
185
|
-
.pswp__top-bar {
|
|
186
|
-
position: absolute;
|
|
187
|
-
left: 0;
|
|
188
|
-
top: 0;
|
|
189
|
-
width: 100%;
|
|
190
|
-
height: 60px;
|
|
191
|
-
display: flex;
|
|
192
|
-
flex-direction: row;
|
|
193
|
-
justify-content: flex-end;
|
|
194
|
-
z-index: 10;
|
|
195
|
-
pointer-events: none !important;
|
|
196
|
-
}
|
|
197
|
-
.pswp--one-slide .pswp__button--arrow,
|
|
198
|
-
.pswp--zoomed-in .pswp__zoom-icn-bar-v,
|
|
199
|
-
.pswp__button--zoom {
|
|
200
|
-
display: none;
|
|
201
|
-
}
|
|
202
|
-
.pswp__top-bar > * {
|
|
203
|
-
pointer-events: auto;
|
|
204
|
-
will-change: opacity;
|
|
205
|
-
}
|
|
206
|
-
.pswp__button--close {
|
|
207
|
-
margin-right: 6px;
|
|
208
|
-
}
|
|
209
|
-
.pswp__button--arrow {
|
|
210
|
-
position: absolute;
|
|
211
|
-
width: 75px;
|
|
212
|
-
height: 100px;
|
|
213
|
-
top: 50%;
|
|
214
|
-
margin-top: -50px;
|
|
215
|
-
}
|
|
216
|
-
.pswp__button--arrow:disabled {
|
|
217
|
-
display: none;
|
|
218
|
-
cursor: default;
|
|
219
|
-
}
|
|
220
|
-
.pswp__button--arrow .pswp__icn {
|
|
221
|
-
top: 50%;
|
|
222
|
-
margin-top: -30px;
|
|
223
|
-
width: 60px;
|
|
224
|
-
height: 60px;
|
|
225
|
-
background: 0 0;
|
|
226
|
-
border-radius: 0;
|
|
227
|
-
}
|
|
228
|
-
.pswp--touch .pswp__button--arrow {
|
|
229
|
-
visibility: hidden;
|
|
230
|
-
}
|
|
231
|
-
.pswp--has_mouse .pswp__button--arrow {
|
|
232
|
-
visibility: visible;
|
|
233
|
-
}
|
|
234
|
-
.pswp__button--arrow--prev {
|
|
235
|
-
right: auto;
|
|
236
|
-
left: 0;
|
|
237
|
-
}
|
|
238
|
-
.pswp__button--arrow--next {
|
|
239
|
-
right: 0;
|
|
240
|
-
}
|
|
241
|
-
.pswp__button--arrow--next .pswp__icn {
|
|
242
|
-
left: auto;
|
|
243
|
-
right: 14px;
|
|
244
|
-
transform: scale(-1, 1);
|
|
245
|
-
}
|
|
246
|
-
.pswp--zoom-allowed .pswp__button--zoom {
|
|
247
|
-
display: block;
|
|
248
|
-
}
|
|
249
|
-
.pswp__preloader {
|
|
250
|
-
position: relative;
|
|
251
|
-
overflow: hidden;
|
|
252
|
-
width: 50px;
|
|
253
|
-
height: 60px;
|
|
254
|
-
margin-right: auto;
|
|
255
|
-
}
|
|
256
|
-
.pswp__preloader .pswp__icn {
|
|
257
|
-
opacity: 0;
|
|
258
|
-
transition: opacity 0.2s linear;
|
|
259
|
-
animation: 0.6s linear infinite pswp-clockwise;
|
|
260
|
-
}
|
|
261
|
-
.pswp__preloader--active .pswp__icn {
|
|
262
|
-
opacity: 0.85;
|
|
263
|
-
}
|
|
264
|
-
@keyframes pswp-clockwise {
|
|
265
|
-
0% {
|
|
266
|
-
transform: rotate(0);
|
|
267
|
-
}
|
|
268
|
-
100% {
|
|
269
|
-
transform: rotate(360deg);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
.pswp__counter {
|
|
273
|
-
height: 30px;
|
|
274
|
-
margin-top: 15px;
|
|
275
|
-
margin-inline-start: 20px;
|
|
276
|
-
font-size: 14px;
|
|
277
|
-
line-height: 30px;
|
|
278
|
-
color: var(--pswp-icon-color);
|
|
279
|
-
text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
|
|
280
|
-
opacity: 0.85;
|
|
281
|
-
}
|
|
282
|
-
.pswp--one-slide .pswp__counter {
|
|
283
|
-
display: none;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
#pswp-caption-container {
|
|
287
|
-
background: transparent !important;
|
|
288
|
-
}
|
package/umd/4VTPoA38.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as t,H as e,U as s}from"./BItJQVdK.js";var i=class extends e{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=s({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const a="pending"===this.state.status,o=!this.#i.canStart();try{if(a)e();else{this.#a({type:"pending",variables:t,isPaused:o}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,i);const e=await(this.options.onMutate?.(t,i));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:o})}const s=await this.#i.start();return await(this.#s.config.onSuccess?.(s,t,this.state.context,this,i)),await(this.options.onSuccess?.(s,t,this.state.context,i)),await(this.#s.config.onSettled?.(s,null,this.state.variables,this.state.context,this,i)),await(this.options.onSettled?.(s,null,t,this.state.context,i)),this.#a({type:"success",data:s}),s}catch(r){try{await(this.#s.config.onError?.(r,t,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onError?.(r,t,this.state.context,i))}catch(n){Promise.reject(n)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onSettled?.(void 0,r,t,this.state.context,i))}catch(n){Promise.reject(n)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{a as n,i as t};
|
package/umd/9QY9BKOL2.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{h as a,t as s}from"./C3uDEVBt.js";import{D as e,n as o}from"./BItJQVdK.js";import{c as r,t as l}from"./b6CwQBFC.js";import{t as i}from"./Cb1JRT_1.js";import{n as t}from"./DvTRhlvs.js";import{t as n}from"./D9NypPiv.js";import{a as d,i as m,o as c,r as p,s as w,t as g}from"./DXx41__x2.js";import{n as h,r as f,t as u}from"./gk4TX_a62.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[A,S]=a(""),[z,F]=a(null),[L,D]=a({}),[E,O]=a(!1),[R,W]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:J}=o(),T=a=>{D(s=>s[a]?{...s,[a]:void 0}:s)},V=async(a,s)=>{W(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(e){e instanceof Error?F(e.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(s=>({...s,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
-
return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(v),e=c(P),o=m(N),r=w(x),l=p(A,x);if(s||e||o||r||l)return void D({fname:s,lname:e,email:o,password:r,confirmPassword:l});D({}),O(!0),F(null);const i=await(U?.(N.toLowerCase(),x,v,P));i?.error&&F(i.error),O(!1)},className:"space-y-4",children:[
|
|
3
|
-
/* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:b("auth.firstName","First name"),name:"fname",disabled:E,type:"text",value:v,onChange:a=>{C(a.target.value),T("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:b("auth.lastName","Last name"),name:"lname",disabled:E,type:"text",value:P,onChange:a=>{y(a.target.value),T("lname")},error:L.lname})]}),
|
|
4
|
-
/* @__PURE__ */s(g,{label:b("auth.email","Email address"),name:"email",disabled:E,type:"email",value:N,onChange:a=>{j(a.target.value),T("email")},autoComplete:"email",error:L.email}),
|
|
5
|
-
/* @__PURE__ */s(g,{label:b("auth.password","Password"),name:"password",disabled:E,type:G.showPassword?"text":"password",value:x,onChange:a=>{k(a.target.value),T("password")},autoComplete:"new-password",error:L.password,actionLabel:G.showPassword?"Hide password":"Show password",actionIcon:G.showPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showPassword:!a.showPassword}))}),
|
|
6
|
-
/* @__PURE__ */s(g,{label:b("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:E,type:G.showConfirmPassword?"text":"password",value:A,onChange:a=>{S(a.target.value),T("confirmPassword")},autoComplete:"new-password",error:L.confirmPassword,actionLabel:G.showConfirmPassword?"Hide password":"Show password",actionIcon:G.showConfirmPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))}),z&&/* @__PURE__ */s(i,{align:"center",color:"error",className:"font-medium",children:z}),
|
|
7
|
-
/* @__PURE__ */s("div",{className:"flex justify-end",children:/* @__PURE__ */s(l,{to:e.FORGOT_PASSWORD,state:{from:I.pathname},children:/* @__PURE__ */s(i,{variant:"h6",className:"w-fit",children:b("button.forgotPassword","Forgot Password?")})})}),
|
|
8
|
-
/* @__PURE__ */s(n,{type:"submit",color:"primary",className:"w-full",disabled:E,loading:E,children:b("button.register","Register")})]}),/* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */s(f,{disabled:E||R.google||R.apple,loading:R.google,onClick:()=>V("google",B),provider:"google"}),/* @__PURE__ */s(f,{disabled:E||R.google||R.apple,loading:R.apple,onClick:()=>V("apple",J),provider:"apple"})]})]})};export{b as default};
|