@atproto/pds 0.5.27 → 0.5.28
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/CHANGELOG.md +21 -0
- package/dist/actor-store/blob/transactor.d.ts +1 -5
- package/dist/actor-store/blob/transactor.d.ts.map +1 -1
- package/dist/actor-store/blob/transactor.js +72 -43
- package/dist/actor-store/blob/transactor.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.d.ts +3 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.defs.d.ts +66 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.defs.js +26 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.js +6 -0
- package/dist/lexicons/app/bsky/actor/contentVisibilityDeclaration.js.map +1 -0
- package/dist/lexicons/app/bsky/actor.d.ts +1 -0
- package/dist/lexicons/app/bsky/actor.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/actor.js +1 -0
- package/dist/lexicons/app/bsky/actor.js.map +1 -1
- package/dist/lexicons/app/bsky/authCreatePosts.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/authCreatePosts.defs.js +5 -0
- package/dist/lexicons/app/bsky/authCreatePosts.defs.js.map +1 -1
- package/dist/lexicons/app/bsky/authFullApp.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/authFullApp.defs.js +5 -0
- package/dist/lexicons/app/bsky/authFullApp.defs.js.map +1 -1
- package/dist/lexicons/app/bsky/video/abortUpload.d.ts +3 -0
- package/dist/lexicons/app/bsky/video/abortUpload.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/abortUpload.defs.d.ts +53 -0
- package/dist/lexicons/app/bsky/video/abortUpload.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/abortUpload.defs.js +26 -0
- package/dist/lexicons/app/bsky/video/abortUpload.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/video/abortUpload.js +6 -0
- package/dist/lexicons/app/bsky/video/abortUpload.js.map +1 -0
- package/dist/lexicons/app/bsky/video/defs.defs.d.ts +1 -1
- package/dist/lexicons/app/bsky/video/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/video/defs.defs.js.map +1 -1
- package/dist/lexicons/app/bsky/video/finishUpload.d.ts +3 -0
- package/dist/lexicons/app/bsky/video/finishUpload.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/finishUpload.defs.d.ts +42 -0
- package/dist/lexicons/app/bsky/video/finishUpload.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/finishUpload.defs.js +30 -0
- package/dist/lexicons/app/bsky/video/finishUpload.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/video/finishUpload.js +6 -0
- package/dist/lexicons/app/bsky/video/finishUpload.js.map +1 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.d.ts +3 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.defs.d.ts +73 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.defs.js +30 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.js +6 -0
- package/dist/lexicons/app/bsky/video/getUploadStatus.js.map +1 -0
- package/dist/lexicons/app/bsky/video/startUpload.d.ts +3 -0
- package/dist/lexicons/app/bsky/video/startUpload.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/startUpload.defs.d.ts +63 -0
- package/dist/lexicons/app/bsky/video/startUpload.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/startUpload.defs.js +36 -0
- package/dist/lexicons/app/bsky/video/startUpload.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/video/startUpload.js +6 -0
- package/dist/lexicons/app/bsky/video/startUpload.js.map +1 -0
- package/dist/lexicons/app/bsky/video/uploadPart.d.ts +3 -0
- package/dist/lexicons/app/bsky/video/uploadPart.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/uploadPart.defs.d.ts +37 -0
- package/dist/lexicons/app/bsky/video/uploadPart.defs.d.ts.map +1 -0
- package/dist/lexicons/app/bsky/video/uploadPart.defs.js +31 -0
- package/dist/lexicons/app/bsky/video/uploadPart.defs.js.map +1 -0
- package/dist/lexicons/app/bsky/video/uploadPart.js +6 -0
- package/dist/lexicons/app/bsky/video/uploadPart.js.map +1 -0
- package/dist/lexicons/app/bsky/video.d.ts +5 -0
- package/dist/lexicons/app/bsky/video.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/video.js +5 -0
- package/dist/lexicons/app/bsky/video.js.map +1 -1
- package/dist/mailer/templates/confirm-email.js +44 -1198
- package/dist/mailer/templates/confirm-email.js.map +1 -7
- package/dist/mailer/templates/delete-account.js +25 -1190
- package/dist/mailer/templates/delete-account.js.map +1 -7
- package/dist/mailer/templates/plc-operation.js +25 -1190
- package/dist/mailer/templates/plc-operation.js.map +1 -7
- package/dist/mailer/templates/reset-password.js +33 -1190
- package/dist/mailer/templates/reset-password.js.map +1 -7
- package/dist/mailer/templates/update-email.js +25 -1190
- package/dist/mailer/templates/update-email.js.map +1 -7
- package/package.json +19 -19
|
@@ -1,1191 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
for
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"<": "<",
|
|
35
|
-
">": ">",
|
|
36
|
-
'"': """,
|
|
37
|
-
"'": "'",
|
|
38
|
-
"`": "`",
|
|
39
|
-
"=": "="
|
|
40
|
-
};
|
|
41
|
-
var badChars = /[&<>"'`=]/g;
|
|
42
|
-
var possible = /[&<>"'`=]/;
|
|
43
|
-
function escapeChar(chr) {
|
|
44
|
-
return escape[chr];
|
|
45
|
-
}
|
|
46
|
-
function extend(obj) {
|
|
47
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
48
|
-
for (var key in arguments[i]) {
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
|
|
50
|
-
obj[key] = arguments[i][key];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
var toString = Object.prototype.toString;
|
|
57
|
-
exports.toString = toString;
|
|
58
|
-
var isFunction = function isFunction2(value) {
|
|
59
|
-
return typeof value === "function";
|
|
60
|
-
};
|
|
61
|
-
if (isFunction(/x/)) {
|
|
62
|
-
exports.isFunction = isFunction = function(value) {
|
|
63
|
-
return typeof value === "function" && toString.call(value) === "[object Function]";
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
exports.isFunction = isFunction;
|
|
67
|
-
var isArray = Array.isArray || function(value) {
|
|
68
|
-
return value && typeof value === "object" ? toString.call(value) === "[object Array]" : false;
|
|
69
|
-
};
|
|
70
|
-
exports.isArray = isArray;
|
|
71
|
-
function indexOf(array, value) {
|
|
72
|
-
for (var i = 0, len = array.length; i < len; i++) {
|
|
73
|
-
if (array[i] === value) {
|
|
74
|
-
return i;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return -1;
|
|
78
|
-
}
|
|
79
|
-
function escapeExpression(string) {
|
|
80
|
-
if (typeof string !== "string") {
|
|
81
|
-
if (string && string.toHTML) {
|
|
82
|
-
return string.toHTML();
|
|
83
|
-
} else if (string == null) {
|
|
84
|
-
return "";
|
|
85
|
-
} else if (!string) {
|
|
86
|
-
return string + "";
|
|
87
|
-
}
|
|
88
|
-
string = "" + string;
|
|
89
|
-
}
|
|
90
|
-
if (!possible.test(string)) {
|
|
91
|
-
return string;
|
|
92
|
-
}
|
|
93
|
-
return string.replace(badChars, escapeChar);
|
|
94
|
-
}
|
|
95
|
-
function isEmpty(value) {
|
|
96
|
-
if (!value && value !== 0) {
|
|
97
|
-
return true;
|
|
98
|
-
} else if (isArray(value) && value.length === 0) {
|
|
99
|
-
return true;
|
|
100
|
-
} else {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function createFrame(object) {
|
|
105
|
-
var frame = extend({}, object);
|
|
106
|
-
frame._parent = object;
|
|
107
|
-
return frame;
|
|
108
|
-
}
|
|
109
|
-
function blockParams(params, ids) {
|
|
110
|
-
params.path = ids;
|
|
111
|
-
return params;
|
|
112
|
-
}
|
|
113
|
-
function appendContextPath(contextPath, id) {
|
|
114
|
-
return (contextPath ? contextPath + "." : "") + id;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/exception.js
|
|
120
|
-
var require_exception = __commonJS({
|
|
121
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/exception.js"(exports, module) {
|
|
122
|
-
"use strict";
|
|
123
|
-
exports.__esModule = true;
|
|
124
|
-
var errorProps = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
125
|
-
function Exception(message, node) {
|
|
126
|
-
var loc = node && node.loc, line = void 0, endLineNumber = void 0, column = void 0, endColumn = void 0;
|
|
127
|
-
if (loc) {
|
|
128
|
-
line = loc.start.line;
|
|
129
|
-
endLineNumber = loc.end.line;
|
|
130
|
-
column = loc.start.column;
|
|
131
|
-
endColumn = loc.end.column;
|
|
132
|
-
message += " - " + line + ":" + column;
|
|
133
|
-
}
|
|
134
|
-
var tmp = Error.prototype.constructor.call(this, message);
|
|
135
|
-
for (var idx = 0; idx < errorProps.length; idx++) {
|
|
136
|
-
this[errorProps[idx]] = tmp[errorProps[idx]];
|
|
137
|
-
}
|
|
138
|
-
if (Error.captureStackTrace) {
|
|
139
|
-
Error.captureStackTrace(this, Exception);
|
|
140
|
-
}
|
|
141
|
-
try {
|
|
142
|
-
if (loc) {
|
|
143
|
-
this.lineNumber = line;
|
|
144
|
-
this.endLineNumber = endLineNumber;
|
|
145
|
-
if (Object.defineProperty) {
|
|
146
|
-
Object.defineProperty(this, "column", {
|
|
147
|
-
value: column,
|
|
148
|
-
enumerable: true
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(this, "endColumn", {
|
|
151
|
-
value: endColumn,
|
|
152
|
-
enumerable: true
|
|
153
|
-
});
|
|
154
|
-
} else {
|
|
155
|
-
this.column = column;
|
|
156
|
-
this.endColumn = endColumn;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
} catch (nop) {
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
Exception.prototype = new Error();
|
|
163
|
-
exports["default"] = Exception;
|
|
164
|
-
module.exports = exports["default"];
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js
|
|
169
|
-
var require_block_helper_missing = __commonJS({
|
|
170
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js"(exports, module) {
|
|
171
|
-
"use strict";
|
|
172
|
-
exports.__esModule = true;
|
|
173
|
-
var _utils = require_utils();
|
|
174
|
-
exports["default"] = function(instance) {
|
|
175
|
-
instance.registerHelper("blockHelperMissing", function(context, options) {
|
|
176
|
-
var inverse = options.inverse, fn = options.fn;
|
|
177
|
-
if (context === true) {
|
|
178
|
-
return fn(this);
|
|
179
|
-
} else if (context === false || context == null) {
|
|
180
|
-
return inverse(this);
|
|
181
|
-
} else if (_utils.isArray(context)) {
|
|
182
|
-
if (context.length > 0) {
|
|
183
|
-
if (options.ids) {
|
|
184
|
-
options.ids = [options.name];
|
|
185
|
-
}
|
|
186
|
-
return instance.helpers.each(context, options);
|
|
187
|
-
} else {
|
|
188
|
-
return inverse(this);
|
|
189
|
-
}
|
|
190
|
-
} else {
|
|
191
|
-
if (options.data && options.ids) {
|
|
192
|
-
var data = _utils.createFrame(options.data);
|
|
193
|
-
data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);
|
|
194
|
-
options = { data };
|
|
195
|
-
}
|
|
196
|
-
return fn(context, options);
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
module.exports = exports["default"];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js
|
|
205
|
-
var require_each = __commonJS({
|
|
206
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js"(exports, module) {
|
|
207
|
-
"use strict";
|
|
208
|
-
exports.__esModule = true;
|
|
209
|
-
function _interopRequireDefault(obj) {
|
|
210
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
211
|
-
}
|
|
212
|
-
var _utils = require_utils();
|
|
213
|
-
var _exception = require_exception();
|
|
214
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
215
|
-
exports["default"] = function(instance) {
|
|
216
|
-
instance.registerHelper("each", function(context, options) {
|
|
217
|
-
if (!options) {
|
|
218
|
-
throw new _exception2["default"]("Must pass iterator to #each");
|
|
219
|
-
}
|
|
220
|
-
var fn = options.fn, inverse = options.inverse, i = 0, ret = "", data = void 0, contextPath = void 0;
|
|
221
|
-
if (options.data && options.ids) {
|
|
222
|
-
contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + ".";
|
|
223
|
-
}
|
|
224
|
-
if (_utils.isFunction(context)) {
|
|
225
|
-
context = context.call(this);
|
|
226
|
-
}
|
|
227
|
-
if (options.data) {
|
|
228
|
-
data = _utils.createFrame(options.data);
|
|
229
|
-
}
|
|
230
|
-
function execIteration(field, index, last) {
|
|
231
|
-
if (data) {
|
|
232
|
-
data.key = field;
|
|
233
|
-
data.index = index;
|
|
234
|
-
data.first = index === 0;
|
|
235
|
-
data.last = !!last;
|
|
236
|
-
if (contextPath) {
|
|
237
|
-
data.contextPath = contextPath + field;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
ret = ret + fn(context[field], {
|
|
241
|
-
data,
|
|
242
|
-
blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
if (context && typeof context === "object") {
|
|
246
|
-
if (_utils.isArray(context)) {
|
|
247
|
-
for (var j = context.length; i < j; i++) {
|
|
248
|
-
if (i in context) {
|
|
249
|
-
execIteration(i, i, i === context.length - 1);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
} else if (global.Symbol && context[global.Symbol.iterator]) {
|
|
253
|
-
var newContext = [];
|
|
254
|
-
var iterator = context[global.Symbol.iterator]();
|
|
255
|
-
for (var it = iterator.next(); !it.done; it = iterator.next()) {
|
|
256
|
-
newContext.push(it.value);
|
|
257
|
-
}
|
|
258
|
-
context = newContext;
|
|
259
|
-
for (var j = context.length; i < j; i++) {
|
|
260
|
-
execIteration(i, i, i === context.length - 1);
|
|
261
|
-
}
|
|
262
|
-
} else {
|
|
263
|
-
(function() {
|
|
264
|
-
var priorKey = void 0;
|
|
265
|
-
Object.keys(context).forEach(function(key) {
|
|
266
|
-
if (priorKey !== void 0) {
|
|
267
|
-
execIteration(priorKey, i - 1);
|
|
268
|
-
}
|
|
269
|
-
priorKey = key;
|
|
270
|
-
i++;
|
|
271
|
-
});
|
|
272
|
-
if (priorKey !== void 0) {
|
|
273
|
-
execIteration(priorKey, i - 1, true);
|
|
274
|
-
}
|
|
275
|
-
})();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (i === 0) {
|
|
279
|
-
ret = inverse(this);
|
|
280
|
-
}
|
|
281
|
-
return ret;
|
|
282
|
-
});
|
|
283
|
-
};
|
|
284
|
-
module.exports = exports["default"];
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js
|
|
289
|
-
var require_helper_missing = __commonJS({
|
|
290
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js"(exports, module) {
|
|
291
|
-
"use strict";
|
|
292
|
-
exports.__esModule = true;
|
|
293
|
-
function _interopRequireDefault(obj) {
|
|
294
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
295
|
-
}
|
|
296
|
-
var _exception = require_exception();
|
|
297
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
298
|
-
exports["default"] = function(instance) {
|
|
299
|
-
instance.registerHelper("helperMissing", function() {
|
|
300
|
-
if (arguments.length === 1) {
|
|
301
|
-
return void 0;
|
|
302
|
-
} else {
|
|
303
|
-
throw new _exception2["default"]('Missing helper: "' + arguments[arguments.length - 1].name + '"');
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
};
|
|
307
|
-
module.exports = exports["default"];
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js
|
|
312
|
-
var require_if = __commonJS({
|
|
313
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js"(exports, module) {
|
|
314
|
-
"use strict";
|
|
315
|
-
exports.__esModule = true;
|
|
316
|
-
function _interopRequireDefault(obj) {
|
|
317
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
318
|
-
}
|
|
319
|
-
var _utils = require_utils();
|
|
320
|
-
var _exception = require_exception();
|
|
321
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
322
|
-
exports["default"] = function(instance) {
|
|
323
|
-
instance.registerHelper("if", function(conditional, options) {
|
|
324
|
-
if (arguments.length != 2) {
|
|
325
|
-
throw new _exception2["default"]("#if requires exactly one argument");
|
|
326
|
-
}
|
|
327
|
-
if (_utils.isFunction(conditional)) {
|
|
328
|
-
conditional = conditional.call(this);
|
|
329
|
-
}
|
|
330
|
-
if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {
|
|
331
|
-
return options.inverse(this);
|
|
332
|
-
} else {
|
|
333
|
-
return options.fn(this);
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
instance.registerHelper("unless", function(conditional, options) {
|
|
337
|
-
if (arguments.length != 2) {
|
|
338
|
-
throw new _exception2["default"]("#unless requires exactly one argument");
|
|
339
|
-
}
|
|
340
|
-
return instance.helpers["if"].call(this, conditional, {
|
|
341
|
-
fn: options.inverse,
|
|
342
|
-
inverse: options.fn,
|
|
343
|
-
hash: options.hash
|
|
344
|
-
});
|
|
345
|
-
});
|
|
346
|
-
};
|
|
347
|
-
module.exports = exports["default"];
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js
|
|
352
|
-
var require_log = __commonJS({
|
|
353
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js"(exports, module) {
|
|
354
|
-
"use strict";
|
|
355
|
-
exports.__esModule = true;
|
|
356
|
-
exports["default"] = function(instance) {
|
|
357
|
-
instance.registerHelper("log", function() {
|
|
358
|
-
var args = [void 0], options = arguments[arguments.length - 1];
|
|
359
|
-
for (var i = 0; i < arguments.length - 1; i++) {
|
|
360
|
-
args.push(arguments[i]);
|
|
361
|
-
}
|
|
362
|
-
var level = 1;
|
|
363
|
-
if (options.hash.level != null) {
|
|
364
|
-
level = options.hash.level;
|
|
365
|
-
} else if (options.data && options.data.level != null) {
|
|
366
|
-
level = options.data.level;
|
|
367
|
-
}
|
|
368
|
-
args[0] = level;
|
|
369
|
-
instance.log.apply(instance, args);
|
|
370
|
-
});
|
|
371
|
-
};
|
|
372
|
-
module.exports = exports["default"];
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
|
|
376
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js
|
|
377
|
-
var require_lookup = __commonJS({
|
|
378
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js"(exports, module) {
|
|
379
|
-
"use strict";
|
|
380
|
-
exports.__esModule = true;
|
|
381
|
-
exports["default"] = function(instance) {
|
|
382
|
-
instance.registerHelper("lookup", function(obj, field, options) {
|
|
383
|
-
if (!obj) {
|
|
384
|
-
return obj;
|
|
385
|
-
}
|
|
386
|
-
return options.lookupProperty(obj, field);
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
module.exports = exports["default"];
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js
|
|
394
|
-
var require_with = __commonJS({
|
|
395
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js"(exports, module) {
|
|
396
|
-
"use strict";
|
|
397
|
-
exports.__esModule = true;
|
|
398
|
-
function _interopRequireDefault(obj) {
|
|
399
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
400
|
-
}
|
|
401
|
-
var _utils = require_utils();
|
|
402
|
-
var _exception = require_exception();
|
|
403
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
404
|
-
exports["default"] = function(instance) {
|
|
405
|
-
instance.registerHelper("with", function(context, options) {
|
|
406
|
-
if (arguments.length != 2) {
|
|
407
|
-
throw new _exception2["default"]("#with requires exactly one argument");
|
|
408
|
-
}
|
|
409
|
-
if (_utils.isFunction(context)) {
|
|
410
|
-
context = context.call(this);
|
|
411
|
-
}
|
|
412
|
-
var fn = options.fn;
|
|
413
|
-
if (!_utils.isEmpty(context)) {
|
|
414
|
-
var data = options.data;
|
|
415
|
-
if (options.data && options.ids) {
|
|
416
|
-
data = _utils.createFrame(options.data);
|
|
417
|
-
data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);
|
|
418
|
-
}
|
|
419
|
-
return fn(context, {
|
|
420
|
-
data,
|
|
421
|
-
blockParams: _utils.blockParams([context], [data && data.contextPath])
|
|
422
|
-
});
|
|
423
|
-
} else {
|
|
424
|
-
return options.inverse(this);
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
};
|
|
428
|
-
module.exports = exports["default"];
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers.js
|
|
433
|
-
var require_helpers = __commonJS({
|
|
434
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/helpers.js"(exports) {
|
|
435
|
-
"use strict";
|
|
436
|
-
exports.__esModule = true;
|
|
437
|
-
exports.registerDefaultHelpers = registerDefaultHelpers;
|
|
438
|
-
exports.moveHelperToHooks = moveHelperToHooks;
|
|
439
|
-
function _interopRequireDefault(obj) {
|
|
440
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
441
|
-
}
|
|
442
|
-
var _helpersBlockHelperMissing = require_block_helper_missing();
|
|
443
|
-
var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);
|
|
444
|
-
var _helpersEach = require_each();
|
|
445
|
-
var _helpersEach2 = _interopRequireDefault(_helpersEach);
|
|
446
|
-
var _helpersHelperMissing = require_helper_missing();
|
|
447
|
-
var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);
|
|
448
|
-
var _helpersIf = require_if();
|
|
449
|
-
var _helpersIf2 = _interopRequireDefault(_helpersIf);
|
|
450
|
-
var _helpersLog = require_log();
|
|
451
|
-
var _helpersLog2 = _interopRequireDefault(_helpersLog);
|
|
452
|
-
var _helpersLookup = require_lookup();
|
|
453
|
-
var _helpersLookup2 = _interopRequireDefault(_helpersLookup);
|
|
454
|
-
var _helpersWith = require_with();
|
|
455
|
-
var _helpersWith2 = _interopRequireDefault(_helpersWith);
|
|
456
|
-
function registerDefaultHelpers(instance) {
|
|
457
|
-
_helpersBlockHelperMissing2["default"](instance);
|
|
458
|
-
_helpersEach2["default"](instance);
|
|
459
|
-
_helpersHelperMissing2["default"](instance);
|
|
460
|
-
_helpersIf2["default"](instance);
|
|
461
|
-
_helpersLog2["default"](instance);
|
|
462
|
-
_helpersLookup2["default"](instance);
|
|
463
|
-
_helpersWith2["default"](instance);
|
|
464
|
-
}
|
|
465
|
-
function moveHelperToHooks(instance, helperName, keepHelper) {
|
|
466
|
-
if (instance.helpers[helperName]) {
|
|
467
|
-
instance.hooks[helperName] = instance.helpers[helperName];
|
|
468
|
-
if (!keepHelper) {
|
|
469
|
-
delete instance.helpers[helperName];
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
|
|
476
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js
|
|
477
|
-
var require_inline = __commonJS({
|
|
478
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js"(exports, module) {
|
|
479
|
-
"use strict";
|
|
480
|
-
exports.__esModule = true;
|
|
481
|
-
var _utils = require_utils();
|
|
482
|
-
exports["default"] = function(instance) {
|
|
483
|
-
instance.registerDecorator("inline", function(fn, props, container, options) {
|
|
484
|
-
var ret = fn;
|
|
485
|
-
if (!props.partials) {
|
|
486
|
-
props.partials = {};
|
|
487
|
-
ret = function(context, options2) {
|
|
488
|
-
var original = container.partials;
|
|
489
|
-
container.partials = _utils.extend({}, original, props.partials);
|
|
490
|
-
var ret2 = fn(context, options2);
|
|
491
|
-
container.partials = original;
|
|
492
|
-
return ret2;
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
props.partials[options.args[0]] = options.fn;
|
|
496
|
-
return ret;
|
|
497
|
-
});
|
|
498
|
-
};
|
|
499
|
-
module.exports = exports["default"];
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
|
|
503
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/decorators.js
|
|
504
|
-
var require_decorators = __commonJS({
|
|
505
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/decorators.js"(exports) {
|
|
506
|
-
"use strict";
|
|
507
|
-
exports.__esModule = true;
|
|
508
|
-
exports.registerDefaultDecorators = registerDefaultDecorators;
|
|
509
|
-
function _interopRequireDefault(obj) {
|
|
510
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
511
|
-
}
|
|
512
|
-
var _decoratorsInline = require_inline();
|
|
513
|
-
var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);
|
|
514
|
-
function registerDefaultDecorators(instance) {
|
|
515
|
-
_decoratorsInline2["default"](instance);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
|
|
520
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/logger.js
|
|
521
|
-
var require_logger = __commonJS({
|
|
522
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/logger.js"(exports, module) {
|
|
523
|
-
"use strict";
|
|
524
|
-
exports.__esModule = true;
|
|
525
|
-
var _utils = require_utils();
|
|
526
|
-
var logger = {
|
|
527
|
-
methodMap: ["debug", "info", "warn", "error"],
|
|
528
|
-
level: "info",
|
|
529
|
-
lookupLevel: function lookupLevel(level) {
|
|
530
|
-
if (typeof level === "string") {
|
|
531
|
-
var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());
|
|
532
|
-
if (levelMap >= 0) {
|
|
533
|
-
level = levelMap;
|
|
534
|
-
} else {
|
|
535
|
-
level = parseInt(level, 10);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
return level;
|
|
539
|
-
},
|
|
540
|
-
log: function log(level) {
|
|
541
|
-
level = logger.lookupLevel(level);
|
|
542
|
-
if (typeof console !== "undefined" && logger.lookupLevel(logger.level) <= level) {
|
|
543
|
-
var method = logger.methodMap[level];
|
|
544
|
-
if (!console[method]) {
|
|
545
|
-
method = "log";
|
|
546
|
-
}
|
|
547
|
-
for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
548
|
-
message[_key - 1] = arguments[_key];
|
|
549
|
-
}
|
|
550
|
-
console[method].apply(console, message);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
exports["default"] = logger;
|
|
555
|
-
module.exports = exports["default"];
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js
|
|
560
|
-
var require_create_new_lookup_object = __commonJS({
|
|
561
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"(exports) {
|
|
562
|
-
"use strict";
|
|
563
|
-
exports.__esModule = true;
|
|
564
|
-
exports.createNewLookupObject = createNewLookupObject;
|
|
565
|
-
var _utils = require_utils();
|
|
566
|
-
function createNewLookupObject() {
|
|
567
|
-
for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
|
|
568
|
-
sources[_key] = arguments[_key];
|
|
569
|
-
}
|
|
570
|
-
return _utils.extend.apply(void 0, [/* @__PURE__ */ Object.create(null)].concat(sources));
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
});
|
|
574
|
-
|
|
575
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js
|
|
576
|
-
var require_proto_access = __commonJS({
|
|
577
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"(exports) {
|
|
578
|
-
"use strict";
|
|
579
|
-
exports.__esModule = true;
|
|
580
|
-
exports.createProtoAccessControl = createProtoAccessControl;
|
|
581
|
-
exports.resultIsAllowed = resultIsAllowed;
|
|
582
|
-
exports.resetLoggedProperties = resetLoggedProperties;
|
|
583
|
-
function _interopRequireWildcard(obj) {
|
|
584
|
-
if (obj && obj.__esModule) {
|
|
585
|
-
return obj;
|
|
586
|
-
} else {
|
|
587
|
-
var newObj = {};
|
|
588
|
-
if (obj != null) {
|
|
589
|
-
for (var key in obj) {
|
|
590
|
-
if (Object.prototype.hasOwnProperty.call(obj, key))
|
|
591
|
-
newObj[key] = obj[key];
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
newObj["default"] = obj;
|
|
595
|
-
return newObj;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
var _createNewLookupObject = require_create_new_lookup_object();
|
|
599
|
-
var _logger = require_logger();
|
|
600
|
-
var logger = _interopRequireWildcard(_logger);
|
|
601
|
-
var loggedProperties = /* @__PURE__ */ Object.create(null);
|
|
602
|
-
function createProtoAccessControl(runtimeOptions) {
|
|
603
|
-
var defaultMethodWhiteList = /* @__PURE__ */ Object.create(null);
|
|
604
|
-
defaultMethodWhiteList["constructor"] = false;
|
|
605
|
-
defaultMethodWhiteList["__defineGetter__"] = false;
|
|
606
|
-
defaultMethodWhiteList["__defineSetter__"] = false;
|
|
607
|
-
defaultMethodWhiteList["__lookupGetter__"] = false;
|
|
608
|
-
var defaultPropertyWhiteList = /* @__PURE__ */ Object.create(null);
|
|
609
|
-
defaultPropertyWhiteList["__proto__"] = false;
|
|
610
|
-
return {
|
|
611
|
-
properties: {
|
|
612
|
-
whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
|
|
613
|
-
defaultValue: runtimeOptions.allowProtoPropertiesByDefault
|
|
614
|
-
},
|
|
615
|
-
methods: {
|
|
616
|
-
whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
|
|
617
|
-
defaultValue: runtimeOptions.allowProtoMethodsByDefault
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
function resultIsAllowed(result, protoAccessControl, propertyName) {
|
|
622
|
-
if (typeof result === "function") {
|
|
623
|
-
return checkWhiteList(protoAccessControl.methods, propertyName);
|
|
624
|
-
} else {
|
|
625
|
-
return checkWhiteList(protoAccessControl.properties, propertyName);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
function checkWhiteList(protoAccessControlForType, propertyName) {
|
|
629
|
-
if (protoAccessControlForType.whitelist[propertyName] !== void 0) {
|
|
630
|
-
return protoAccessControlForType.whitelist[propertyName] === true;
|
|
631
|
-
}
|
|
632
|
-
if (protoAccessControlForType.defaultValue !== void 0) {
|
|
633
|
-
return protoAccessControlForType.defaultValue;
|
|
634
|
-
}
|
|
635
|
-
logUnexpecedPropertyAccessOnce(propertyName);
|
|
636
|
-
return false;
|
|
637
|
-
}
|
|
638
|
-
function logUnexpecedPropertyAccessOnce(propertyName) {
|
|
639
|
-
if (loggedProperties[propertyName] !== true) {
|
|
640
|
-
loggedProperties[propertyName] = true;
|
|
641
|
-
logger.log("error", 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
function resetLoggedProperties() {
|
|
645
|
-
Object.keys(loggedProperties).forEach(function(propertyName) {
|
|
646
|
-
delete loggedProperties[propertyName];
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/base.js
|
|
653
|
-
var require_base = __commonJS({
|
|
654
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/base.js"(exports) {
|
|
655
|
-
"use strict";
|
|
656
|
-
exports.__esModule = true;
|
|
657
|
-
exports.HandlebarsEnvironment = HandlebarsEnvironment;
|
|
658
|
-
function _interopRequireDefault(obj) {
|
|
659
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
660
|
-
}
|
|
661
|
-
var _utils = require_utils();
|
|
662
|
-
var _exception = require_exception();
|
|
663
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
664
|
-
var _helpers = require_helpers();
|
|
665
|
-
var _decorators = require_decorators();
|
|
666
|
-
var _logger = require_logger();
|
|
667
|
-
var _logger2 = _interopRequireDefault(_logger);
|
|
668
|
-
var _internalProtoAccess = require_proto_access();
|
|
669
|
-
var VERSION = "4.7.7";
|
|
670
|
-
exports.VERSION = VERSION;
|
|
671
|
-
var COMPILER_REVISION = 8;
|
|
672
|
-
exports.COMPILER_REVISION = COMPILER_REVISION;
|
|
673
|
-
var LAST_COMPATIBLE_COMPILER_REVISION = 7;
|
|
674
|
-
exports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;
|
|
675
|
-
var REVISION_CHANGES = {
|
|
676
|
-
1: "<= 1.0.rc.2",
|
|
677
|
-
2: "== 1.0.0-rc.3",
|
|
678
|
-
3: "== 1.0.0-rc.4",
|
|
679
|
-
4: "== 1.x.x",
|
|
680
|
-
5: "== 2.0.0-alpha.x",
|
|
681
|
-
6: ">= 2.0.0-beta.1",
|
|
682
|
-
7: ">= 4.0.0 <4.3.0",
|
|
683
|
-
8: ">= 4.3.0"
|
|
684
|
-
};
|
|
685
|
-
exports.REVISION_CHANGES = REVISION_CHANGES;
|
|
686
|
-
var objectType = "[object Object]";
|
|
687
|
-
function HandlebarsEnvironment(helpers, partials, decorators) {
|
|
688
|
-
this.helpers = helpers || {};
|
|
689
|
-
this.partials = partials || {};
|
|
690
|
-
this.decorators = decorators || {};
|
|
691
|
-
_helpers.registerDefaultHelpers(this);
|
|
692
|
-
_decorators.registerDefaultDecorators(this);
|
|
693
|
-
}
|
|
694
|
-
HandlebarsEnvironment.prototype = {
|
|
695
|
-
constructor: HandlebarsEnvironment,
|
|
696
|
-
logger: _logger2["default"],
|
|
697
|
-
log: _logger2["default"].log,
|
|
698
|
-
registerHelper: function registerHelper2(name, fn) {
|
|
699
|
-
if (_utils.toString.call(name) === objectType) {
|
|
700
|
-
if (fn) {
|
|
701
|
-
throw new _exception2["default"]("Arg not supported with multiple helpers");
|
|
702
|
-
}
|
|
703
|
-
_utils.extend(this.helpers, name);
|
|
704
|
-
} else {
|
|
705
|
-
this.helpers[name] = fn;
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
unregisterHelper: function unregisterHelper(name) {
|
|
709
|
-
delete this.helpers[name];
|
|
710
|
-
},
|
|
711
|
-
registerPartial: function registerPartial2(name, partial) {
|
|
712
|
-
if (_utils.toString.call(name) === objectType) {
|
|
713
|
-
_utils.extend(this.partials, name);
|
|
714
|
-
} else {
|
|
715
|
-
if (typeof partial === "undefined") {
|
|
716
|
-
throw new _exception2["default"]('Attempting to register a partial called "' + name + '" as undefined');
|
|
717
|
-
}
|
|
718
|
-
this.partials[name] = partial;
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
unregisterPartial: function unregisterPartial(name) {
|
|
722
|
-
delete this.partials[name];
|
|
723
|
-
},
|
|
724
|
-
registerDecorator: function registerDecorator(name, fn) {
|
|
725
|
-
if (_utils.toString.call(name) === objectType) {
|
|
726
|
-
if (fn) {
|
|
727
|
-
throw new _exception2["default"]("Arg not supported with multiple decorators");
|
|
728
|
-
}
|
|
729
|
-
_utils.extend(this.decorators, name);
|
|
730
|
-
} else {
|
|
731
|
-
this.decorators[name] = fn;
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
unregisterDecorator: function unregisterDecorator(name) {
|
|
735
|
-
delete this.decorators[name];
|
|
736
|
-
},
|
|
737
|
-
resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {
|
|
738
|
-
_internalProtoAccess.resetLoggedProperties();
|
|
739
|
-
}
|
|
740
|
-
};
|
|
741
|
-
var log = _logger2["default"].log;
|
|
742
|
-
exports.log = log;
|
|
743
|
-
exports.createFrame = _utils.createFrame;
|
|
744
|
-
exports.logger = _logger2["default"];
|
|
745
|
-
}
|
|
746
|
-
});
|
|
747
|
-
|
|
748
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/safe-string.js
|
|
749
|
-
var require_safe_string = __commonJS({
|
|
750
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/safe-string.js"(exports, module) {
|
|
751
|
-
"use strict";
|
|
752
|
-
exports.__esModule = true;
|
|
753
|
-
function SafeString(string) {
|
|
754
|
-
this.string = string;
|
|
755
|
-
}
|
|
756
|
-
SafeString.prototype.toString = SafeString.prototype.toHTML = function() {
|
|
757
|
-
return "" + this.string;
|
|
758
|
-
};
|
|
759
|
-
exports["default"] = SafeString;
|
|
760
|
-
module.exports = exports["default"];
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
|
|
764
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js
|
|
765
|
-
var require_wrapHelper = __commonJS({
|
|
766
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js"(exports) {
|
|
767
|
-
"use strict";
|
|
768
|
-
exports.__esModule = true;
|
|
769
|
-
exports.wrapHelper = wrapHelper;
|
|
770
|
-
function wrapHelper(helper, transformOptionsFn) {
|
|
771
|
-
if (typeof helper !== "function") {
|
|
772
|
-
return helper;
|
|
773
|
-
}
|
|
774
|
-
var wrapper = function wrapper2() {
|
|
775
|
-
var options = arguments[arguments.length - 1];
|
|
776
|
-
arguments[arguments.length - 1] = transformOptionsFn(options);
|
|
777
|
-
return helper.apply(this, arguments);
|
|
778
|
-
};
|
|
779
|
-
return wrapper;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
|
|
784
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/runtime.js
|
|
785
|
-
var require_runtime = __commonJS({
|
|
786
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/runtime.js"(exports) {
|
|
787
|
-
"use strict";
|
|
788
|
-
exports.__esModule = true;
|
|
789
|
-
exports.checkRevision = checkRevision;
|
|
790
|
-
exports.template = template2;
|
|
791
|
-
exports.wrapProgram = wrapProgram;
|
|
792
|
-
exports.resolvePartial = resolvePartial;
|
|
793
|
-
exports.invokePartial = invokePartial;
|
|
794
|
-
exports.noop = noop;
|
|
795
|
-
function _interopRequireDefault(obj) {
|
|
796
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
797
|
-
}
|
|
798
|
-
function _interopRequireWildcard(obj) {
|
|
799
|
-
if (obj && obj.__esModule) {
|
|
800
|
-
return obj;
|
|
801
|
-
} else {
|
|
802
|
-
var newObj = {};
|
|
803
|
-
if (obj != null) {
|
|
804
|
-
for (var key in obj) {
|
|
805
|
-
if (Object.prototype.hasOwnProperty.call(obj, key))
|
|
806
|
-
newObj[key] = obj[key];
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
newObj["default"] = obj;
|
|
810
|
-
return newObj;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
var _utils = require_utils();
|
|
814
|
-
var Utils = _interopRequireWildcard(_utils);
|
|
815
|
-
var _exception = require_exception();
|
|
816
|
-
var _exception2 = _interopRequireDefault(_exception);
|
|
817
|
-
var _base = require_base();
|
|
818
|
-
var _helpers = require_helpers();
|
|
819
|
-
var _internalWrapHelper = require_wrapHelper();
|
|
820
|
-
var _internalProtoAccess = require_proto_access();
|
|
821
|
-
function checkRevision(compilerInfo) {
|
|
822
|
-
var compilerRevision = compilerInfo && compilerInfo[0] || 1, currentRevision = _base.COMPILER_REVISION;
|
|
823
|
-
if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {
|
|
824
|
-
return;
|
|
825
|
-
}
|
|
826
|
-
if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
827
|
-
var runtimeVersions = _base.REVISION_CHANGES[currentRevision], compilerVersions = _base.REVISION_CHANGES[compilerRevision];
|
|
828
|
-
throw new _exception2["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + runtimeVersions + ") or downgrade your runtime to an older version (" + compilerVersions + ").");
|
|
829
|
-
} else {
|
|
830
|
-
throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
function template2(templateSpec, env) {
|
|
834
|
-
if (!env) {
|
|
835
|
-
throw new _exception2["default"]("No environment passed to template");
|
|
836
|
-
}
|
|
837
|
-
if (!templateSpec || !templateSpec.main) {
|
|
838
|
-
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
839
|
-
}
|
|
840
|
-
templateSpec.main.decorator = templateSpec.main_d;
|
|
841
|
-
env.VM.checkRevision(templateSpec.compiler);
|
|
842
|
-
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
843
|
-
function invokePartialWrapper(partial, context, options) {
|
|
844
|
-
if (options.hash) {
|
|
845
|
-
context = Utils.extend({}, context, options.hash);
|
|
846
|
-
if (options.ids) {
|
|
847
|
-
options.ids[0] = true;
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
partial = env.VM.resolvePartial.call(this, partial, context, options);
|
|
851
|
-
var extendedOptions = Utils.extend({}, options, {
|
|
852
|
-
hooks: this.hooks,
|
|
853
|
-
protoAccessControl: this.protoAccessControl
|
|
854
|
-
});
|
|
855
|
-
var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
|
|
856
|
-
if (result == null && env.compile) {
|
|
857
|
-
options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
|
|
858
|
-
result = options.partials[options.name](context, extendedOptions);
|
|
859
|
-
}
|
|
860
|
-
if (result != null) {
|
|
861
|
-
if (options.indent) {
|
|
862
|
-
var lines = result.split("\n");
|
|
863
|
-
for (var i = 0, l = lines.length; i < l; i++) {
|
|
864
|
-
if (!lines[i] && i + 1 === l) {
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
lines[i] = options.indent + lines[i];
|
|
868
|
-
}
|
|
869
|
-
result = lines.join("\n");
|
|
870
|
-
}
|
|
871
|
-
return result;
|
|
872
|
-
} else {
|
|
873
|
-
throw new _exception2["default"]("The partial " + options.name + " could not be compiled when running in runtime-only mode");
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
var container = {
|
|
877
|
-
strict: function strict(obj, name, loc) {
|
|
878
|
-
if (!obj || !(name in obj)) {
|
|
879
|
-
throw new _exception2["default"]('"' + name + '" not defined in ' + obj, {
|
|
880
|
-
loc
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
return container.lookupProperty(obj, name);
|
|
884
|
-
},
|
|
885
|
-
lookupProperty: function lookupProperty(parent, propertyName) {
|
|
886
|
-
var result = parent[propertyName];
|
|
887
|
-
if (result == null) {
|
|
888
|
-
return result;
|
|
889
|
-
}
|
|
890
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
891
|
-
return result;
|
|
892
|
-
}
|
|
893
|
-
if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {
|
|
894
|
-
return result;
|
|
895
|
-
}
|
|
896
|
-
return void 0;
|
|
897
|
-
},
|
|
898
|
-
lookup: function lookup(depths, name) {
|
|
899
|
-
var len = depths.length;
|
|
900
|
-
for (var i = 0; i < len; i++) {
|
|
901
|
-
var result = depths[i] && container.lookupProperty(depths[i], name);
|
|
902
|
-
if (result != null) {
|
|
903
|
-
return depths[i][name];
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
lambda: function lambda(current, context) {
|
|
908
|
-
return typeof current === "function" ? current.call(context) : current;
|
|
909
|
-
},
|
|
910
|
-
escapeExpression: Utils.escapeExpression,
|
|
911
|
-
invokePartial: invokePartialWrapper,
|
|
912
|
-
fn: function fn(i) {
|
|
913
|
-
var ret2 = templateSpec[i];
|
|
914
|
-
ret2.decorator = templateSpec[i + "_d"];
|
|
915
|
-
return ret2;
|
|
916
|
-
},
|
|
917
|
-
programs: [],
|
|
918
|
-
program: function program(i, data, declaredBlockParams, blockParams, depths) {
|
|
919
|
-
var programWrapper = this.programs[i], fn = this.fn(i);
|
|
920
|
-
if (data || depths || blockParams || declaredBlockParams) {
|
|
921
|
-
programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);
|
|
922
|
-
} else if (!programWrapper) {
|
|
923
|
-
programWrapper = this.programs[i] = wrapProgram(this, i, fn);
|
|
924
|
-
}
|
|
925
|
-
return programWrapper;
|
|
926
|
-
},
|
|
927
|
-
data: function data(value, depth) {
|
|
928
|
-
while (value && depth--) {
|
|
929
|
-
value = value._parent;
|
|
930
|
-
}
|
|
931
|
-
return value;
|
|
932
|
-
},
|
|
933
|
-
mergeIfNeeded: function mergeIfNeeded(param, common) {
|
|
934
|
-
var obj = param || common;
|
|
935
|
-
if (param && common && param !== common) {
|
|
936
|
-
obj = Utils.extend({}, common, param);
|
|
937
|
-
}
|
|
938
|
-
return obj;
|
|
939
|
-
},
|
|
940
|
-
nullContext: Object.seal({}),
|
|
941
|
-
noop: env.VM.noop,
|
|
942
|
-
compilerInfo: templateSpec.compiler
|
|
943
|
-
};
|
|
944
|
-
function ret(context) {
|
|
945
|
-
var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
|
|
946
|
-
var data = options.data;
|
|
947
|
-
ret._setup(options);
|
|
948
|
-
if (!options.partial && templateSpec.useData) {
|
|
949
|
-
data = initData(context, data);
|
|
950
|
-
}
|
|
951
|
-
var depths = void 0, blockParams = templateSpec.useBlockParams ? [] : void 0;
|
|
952
|
-
if (templateSpec.useDepths) {
|
|
953
|
-
if (options.depths) {
|
|
954
|
-
depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;
|
|
955
|
-
} else {
|
|
956
|
-
depths = [context];
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
function main(context2) {
|
|
960
|
-
return "" + templateSpec.main(container, context2, container.helpers, container.partials, data, blockParams, depths);
|
|
961
|
-
}
|
|
962
|
-
main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
|
|
963
|
-
return main(context, options);
|
|
964
|
-
}
|
|
965
|
-
ret.isTop = true;
|
|
966
|
-
ret._setup = function(options) {
|
|
967
|
-
if (!options.partial) {
|
|
968
|
-
var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
|
|
969
|
-
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
|
970
|
-
container.helpers = mergedHelpers;
|
|
971
|
-
if (templateSpec.usePartial) {
|
|
972
|
-
container.partials = container.mergeIfNeeded(options.partials, env.partials);
|
|
973
|
-
}
|
|
974
|
-
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
975
|
-
container.decorators = Utils.extend({}, env.decorators, options.decorators);
|
|
976
|
-
}
|
|
977
|
-
container.hooks = {};
|
|
978
|
-
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
979
|
-
var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;
|
|
980
|
-
_helpers.moveHelperToHooks(container, "helperMissing", keepHelperInHelpers);
|
|
981
|
-
_helpers.moveHelperToHooks(container, "blockHelperMissing", keepHelperInHelpers);
|
|
982
|
-
} else {
|
|
983
|
-
container.protoAccessControl = options.protoAccessControl;
|
|
984
|
-
container.helpers = options.helpers;
|
|
985
|
-
container.partials = options.partials;
|
|
986
|
-
container.decorators = options.decorators;
|
|
987
|
-
container.hooks = options.hooks;
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
ret._child = function(i, data, blockParams, depths) {
|
|
991
|
-
if (templateSpec.useBlockParams && !blockParams) {
|
|
992
|
-
throw new _exception2["default"]("must pass block params");
|
|
993
|
-
}
|
|
994
|
-
if (templateSpec.useDepths && !depths) {
|
|
995
|
-
throw new _exception2["default"]("must pass parent depths");
|
|
996
|
-
}
|
|
997
|
-
return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);
|
|
998
|
-
};
|
|
999
|
-
return ret;
|
|
1000
|
-
}
|
|
1001
|
-
function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {
|
|
1002
|
-
function prog(context) {
|
|
1003
|
-
var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
|
|
1004
|
-
var currentDepths = depths;
|
|
1005
|
-
if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {
|
|
1006
|
-
currentDepths = [context].concat(depths);
|
|
1007
|
-
}
|
|
1008
|
-
return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);
|
|
1009
|
-
}
|
|
1010
|
-
prog = executeDecorators(fn, prog, container, depths, data, blockParams);
|
|
1011
|
-
prog.program = i;
|
|
1012
|
-
prog.depth = depths ? depths.length : 0;
|
|
1013
|
-
prog.blockParams = declaredBlockParams || 0;
|
|
1014
|
-
return prog;
|
|
1015
|
-
}
|
|
1016
|
-
function resolvePartial(partial, context, options) {
|
|
1017
|
-
if (!partial) {
|
|
1018
|
-
if (options.name === "@partial-block") {
|
|
1019
|
-
partial = options.data["partial-block"];
|
|
1020
|
-
} else {
|
|
1021
|
-
partial = options.partials[options.name];
|
|
1022
|
-
}
|
|
1023
|
-
} else if (!partial.call && !options.name) {
|
|
1024
|
-
options.name = partial;
|
|
1025
|
-
partial = options.partials[partial];
|
|
1026
|
-
}
|
|
1027
|
-
return partial;
|
|
1028
|
-
}
|
|
1029
|
-
function invokePartial(partial, context, options) {
|
|
1030
|
-
var currentPartialBlock = options.data && options.data["partial-block"];
|
|
1031
|
-
options.partial = true;
|
|
1032
|
-
if (options.ids) {
|
|
1033
|
-
options.data.contextPath = options.ids[0] || options.data.contextPath;
|
|
1034
|
-
}
|
|
1035
|
-
var partialBlock = void 0;
|
|
1036
|
-
if (options.fn && options.fn !== noop) {
|
|
1037
|
-
(function() {
|
|
1038
|
-
options.data = _base.createFrame(options.data);
|
|
1039
|
-
var fn = options.fn;
|
|
1040
|
-
partialBlock = options.data["partial-block"] = function partialBlockWrapper(context2) {
|
|
1041
|
-
var options2 = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
|
|
1042
|
-
options2.data = _base.createFrame(options2.data);
|
|
1043
|
-
options2.data["partial-block"] = currentPartialBlock;
|
|
1044
|
-
return fn(context2, options2);
|
|
1045
|
-
};
|
|
1046
|
-
if (fn.partials) {
|
|
1047
|
-
options.partials = Utils.extend({}, options.partials, fn.partials);
|
|
1048
|
-
}
|
|
1049
|
-
})();
|
|
1050
|
-
}
|
|
1051
|
-
if (partial === void 0 && partialBlock) {
|
|
1052
|
-
partial = partialBlock;
|
|
1053
|
-
}
|
|
1054
|
-
if (partial === void 0) {
|
|
1055
|
-
throw new _exception2["default"]("The partial " + options.name + " could not be found");
|
|
1056
|
-
} else if (partial instanceof Function) {
|
|
1057
|
-
return partial(context, options);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
function noop() {
|
|
1061
|
-
return "";
|
|
1062
|
-
}
|
|
1063
|
-
function initData(context, data) {
|
|
1064
|
-
if (!data || !("root" in data)) {
|
|
1065
|
-
data = data ? _base.createFrame(data) : {};
|
|
1066
|
-
data.root = context;
|
|
1067
|
-
}
|
|
1068
|
-
return data;
|
|
1069
|
-
}
|
|
1070
|
-
function executeDecorators(fn, prog, container, depths, data, blockParams) {
|
|
1071
|
-
if (fn.decorator) {
|
|
1072
|
-
var props = {};
|
|
1073
|
-
prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);
|
|
1074
|
-
Utils.extend(prog, props);
|
|
1075
|
-
}
|
|
1076
|
-
return prog;
|
|
1077
|
-
}
|
|
1078
|
-
function wrapHelpersToPassLookupProperty(mergedHelpers, container) {
|
|
1079
|
-
Object.keys(mergedHelpers).forEach(function(helperName) {
|
|
1080
|
-
var helper = mergedHelpers[helperName];
|
|
1081
|
-
mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
function passLookupPropertyOption(helper, container) {
|
|
1085
|
-
var lookupProperty = container.lookupProperty;
|
|
1086
|
-
return _internalWrapHelper.wrapHelper(helper, function(options) {
|
|
1087
|
-
return Utils.extend({ lookupProperty }, options);
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
});
|
|
1092
|
-
|
|
1093
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js
|
|
1094
|
-
var require_no_conflict = __commonJS({
|
|
1095
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js"(exports, module) {
|
|
1096
|
-
"use strict";
|
|
1097
|
-
exports.__esModule = true;
|
|
1098
|
-
exports["default"] = function(Handlebars2) {
|
|
1099
|
-
var root = typeof global !== "undefined" ? global : window, $Handlebars = root.Handlebars;
|
|
1100
|
-
Handlebars2.noConflict = function() {
|
|
1101
|
-
if (root.Handlebars === Handlebars2) {
|
|
1102
|
-
root.Handlebars = $Handlebars;
|
|
1103
|
-
}
|
|
1104
|
-
return Handlebars2;
|
|
1105
|
-
};
|
|
1106
|
-
};
|
|
1107
|
-
module.exports = exports["default"];
|
|
1108
|
-
}
|
|
1109
|
-
});
|
|
1110
|
-
|
|
1111
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars.runtime.js
|
|
1112
|
-
var require_handlebars_runtime = __commonJS({
|
|
1113
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/dist/cjs/handlebars.runtime.js"(exports, module) {
|
|
1114
|
-
"use strict";
|
|
1115
|
-
exports.__esModule = true;
|
|
1116
|
-
function _interopRequireDefault(obj) {
|
|
1117
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
1118
|
-
}
|
|
1119
|
-
function _interopRequireWildcard(obj) {
|
|
1120
|
-
if (obj && obj.__esModule) {
|
|
1121
|
-
return obj;
|
|
1122
|
-
} else {
|
|
1123
|
-
var newObj = {};
|
|
1124
|
-
if (obj != null) {
|
|
1125
|
-
for (var key in obj) {
|
|
1126
|
-
if (Object.prototype.hasOwnProperty.call(obj, key))
|
|
1127
|
-
newObj[key] = obj[key];
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
newObj["default"] = obj;
|
|
1131
|
-
return newObj;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
var _handlebarsBase = require_base();
|
|
1135
|
-
var base = _interopRequireWildcard(_handlebarsBase);
|
|
1136
|
-
var _handlebarsSafeString = require_safe_string();
|
|
1137
|
-
var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
|
|
1138
|
-
var _handlebarsException = require_exception();
|
|
1139
|
-
var _handlebarsException2 = _interopRequireDefault(_handlebarsException);
|
|
1140
|
-
var _handlebarsUtils = require_utils();
|
|
1141
|
-
var Utils = _interopRequireWildcard(_handlebarsUtils);
|
|
1142
|
-
var _handlebarsRuntime = require_runtime();
|
|
1143
|
-
var runtime = _interopRequireWildcard(_handlebarsRuntime);
|
|
1144
|
-
var _handlebarsNoConflict = require_no_conflict();
|
|
1145
|
-
var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
|
|
1146
|
-
function create() {
|
|
1147
|
-
var hb = new base.HandlebarsEnvironment();
|
|
1148
|
-
Utils.extend(hb, base);
|
|
1149
|
-
hb.SafeString = _handlebarsSafeString2["default"];
|
|
1150
|
-
hb.Exception = _handlebarsException2["default"];
|
|
1151
|
-
hb.Utils = Utils;
|
|
1152
|
-
hb.escapeExpression = Utils.escapeExpression;
|
|
1153
|
-
hb.VM = runtime;
|
|
1154
|
-
hb.template = function(spec) {
|
|
1155
|
-
return runtime.template(spec, hb);
|
|
1156
|
-
};
|
|
1157
|
-
return hb;
|
|
1158
|
-
}
|
|
1159
|
-
var inst = create();
|
|
1160
|
-
inst.create = create;
|
|
1161
|
-
_handlebarsNoConflict2["default"](inst);
|
|
1162
|
-
inst["default"] = inst;
|
|
1163
|
-
exports["default"] = inst;
|
|
1164
|
-
module.exports = exports["default"];
|
|
1165
|
-
}
|
|
1166
|
-
});
|
|
1167
|
-
|
|
1168
|
-
// ../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/runtime.js
|
|
1169
|
-
var require_runtime2 = __commonJS({
|
|
1170
|
-
"../../node_modules/.pnpm/handlebars@4.7.7/node_modules/handlebars/runtime.js"(exports, module) {
|
|
1171
|
-
module.exports = require_handlebars_runtime()["default"];
|
|
1172
|
-
}
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
|
-
// src/mailer/templates/reset-password.hbs
|
|
1176
|
-
var Handlebars = __toESM(require_runtime2(), 1);
|
|
1177
|
-
Handlebars.registerHelper({});
|
|
1178
|
-
Handlebars.registerPartial({});
|
|
1179
|
-
var reset_password_default = Handlebars.template({ "compiler": [8, ">= 4.3.0"], "main": function(container, depth0, helpers, partials, data) {
|
|
1180
|
-
var stack1, alias1 = container.lambda, alias2 = container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
1181
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
1182
|
-
return parent[propertyName];
|
|
1183
|
-
}
|
|
1184
|
-
return void 0;
|
|
1185
|
-
};
|
|
1186
|
-
return "<html dir='ltr' lang='en'>\n\n <head>\n <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />\n <meta name='x-apple-disable-message-reformatting' />\n <title>Reset password</title>\n <meta\n name='description'\n content='We received a request to reset the password for the account @" + alias2(alias1(depth0 != null ? lookupProperty(depth0, "handle") : depth0, depth0)) + ".'\n />\n </head>\n <div\n style='display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0'\n >We received a request to reset the password for the account @" + alias2(alias1(depth0 != null ? lookupProperty(depth0, "handle") : depth0, depth0)) + ".<div\n >\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF\xA0\u200C\u200B\u200D\u200E\u200F\uFEFF</div>\n </div>\n\n <body\n style='padding:12px;padding-bottom:40px;background-color:hsl(211, 20%, 95.3%)'\n >\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='max-width:37.5em'\n >\n <tbody>\n <tr style='width:100%'>\n <td>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:24px;padding-bottom:24px'\n >\n <tbody>\n <tr>\n <td><img\n alt='" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "serviceName") : stack1, depth0)) + "'\n src='" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "logoUrl") : stack1, depth0)) + "'\n style='display:block;outline:none;border:none;text-decoration:none;width:110px;margin:0 auto'\n /></td>\n </tr>\n </tbody>\n </table>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding:24px;padding-bottom:16px;border-radius:12px;background-color:#FFFFFF'\n >\n <tbody>\n <tr>\n <td>\n <h1\n style='font-size:26px;letter-spacing:0.25px;color:#000000;font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;margin:0px 0px;line-height:1.0'\n >Reset password</h1>\n <p\n style='font-size:16px;line-height:1.4;margin:0px 0px;letter-spacing:0.25px;color:hsl(211, 24%, 34.2%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;padding-top:12px;padding-bottom:12px'\n >We received a request to reset the password for the account<!-- -->\n <span\n style='color:" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "primaryColor") : stack1, depth0)) + "'\n >@<!-- -->" + alias2(alias1(depth0 != null ? lookupProperty(depth0, "handle") : depth0, depth0)) + "<!-- -->.</span></p><code\n style='display:block;padding:16px;border-radius:8px;border-width:1px;border-style:solid;background-color:hsl(211, 20%, 95.3%);border-color:hsl(211, 20%, 85.89999999999999%);font-size:14px;letter-spacing:0.25px;font-family:monospace;text-transform:uppercase'\n >" + alias2(alias1(depth0 != null ? lookupProperty(depth0, "token") : depth0, depth0)) + "</code>\n <p\n style='font-size:14px;line-height:1.4;margin:0px 0px;letter-spacing:0.25px;color:hsl(211, 20%, 53%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;padding-top:12px'\n >To choose a new password, please enter the code above in\n the app along with your new password.</p>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:24px'\n >\n <tbody>\n <tr>\n <td>\n <hr\n style='width:100%;border:none;border-top:1px solid #eaeaea;margin:0'\n />\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:16px;vertical-align:middle'\n >\n <tbody style='width:100%'>\n <tr style='width:100%'>\n <td data-id='__react-email-column'>\n <p\n style='font-size:14px;line-height:1.4;margin:0px 0px;color:hsl(211, 20%, 53%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;letter-spacing:0.25px'\n ><a\n href='" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "homeUrl") : stack1, depth0)) + "'\n style='color:hsl(211, 20%, 53%);text-decoration:none;text-decoration-line:underline;font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;margin:0px 0px;line-height:1.0;font-size:14px;letter-spacing:0.25px'\n target='_blank'\n >" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "serviceName") : stack1, depth0)) + "</a></p>\n </td>\n <td\n data-id='__react-email-column'\n style='width:24px'\n ><img\n alt='" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "serviceName") : stack1, depth0)) + "'\n src='" + alias2(alias1((stack1 = depth0 != null ? lookupProperty(depth0, "config") : depth0) != null ? lookupProperty(stack1, "markUrl") : stack1, depth0)) + "'\n style='display:block;outline:none;border:none;text-decoration:none;width:24px'\n /></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='height:500px'\n >\n <tbody>\n <tr>\n <td></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </body>\n\n</html>";
|
|
1187
|
-
}, "useData": true });
|
|
1188
|
-
export {
|
|
1189
|
-
reset_password_default as default
|
|
1190
|
-
};
|
|
1
|
+
import Handlebars from 'handlebars'
|
|
2
|
+
export default Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return "<html dir='ltr' lang='en'>\n\n <head>\n <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />\n <meta name='x-apple-disable-message-reformatting' />\n <title>Reset password</title>\n <meta\n name='description'\n content='We received a request to reset the password for the account @"
|
|
11
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"handle") || (depth0 != null ? lookupProperty(depth0,"handle") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"handle","hash":{},"data":data,"loc":{"source":"reset-password.hbs","start":{"line":9,"column":76},"end":{"line":9,"column":86}}}) : helper)))
|
|
12
|
+
+ ".'\n />\n </head>\n <div\n style='display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0'\n >We received a request to reset the password for the account @"
|
|
13
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"handle") || (depth0 != null ? lookupProperty(depth0,"handle") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"handle","hash":{},"data":data,"loc":{"source":"reset-password.hbs","start":{"line":14,"column":64},"end":{"line":14,"column":74}}}) : helper)))
|
|
14
|
+
+ ".<div\n > </div>\n </div>\n\n <body\n style='padding:12px;padding-bottom:40px;background-color:hsl(211, 20%, 95.3%)'\n >\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='max-width:37.5em'\n >\n <tbody>\n <tr style='width:100%'>\n <td>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:24px;padding-bottom:24px'\n >\n <tbody>\n <tr>\n <td><img\n alt='"
|
|
15
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"serviceName") : stack1), depth0))
|
|
16
|
+
+ "'\n src='"
|
|
17
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"logoUrl") : stack1), depth0))
|
|
18
|
+
+ "'\n style='display:block;outline:none;border:none;text-decoration:none;width:110px;margin:0 auto'\n /></td>\n </tr>\n </tbody>\n </table>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding:24px;padding-bottom:16px;border-radius:12px;background-color:#FFFFFF'\n >\n <tbody>\n <tr>\n <td>\n <h1\n style='font-size:26px;letter-spacing:0.25px;color:#000000;font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;margin:0px 0px;line-height:1.0'\n >Reset password</h1>\n <p\n style='font-size:16px;line-height:1.4;margin:0px 0px;letter-spacing:0.25px;color:hsl(211, 24%, 34.2%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;padding-top:12px;padding-bottom:12px'\n >We received a request to reset the password for the account<!-- -->\n <span\n style='color:"
|
|
19
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"primaryColor") : stack1), depth0))
|
|
20
|
+
+ "'\n >@<!-- -->"
|
|
21
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"handle") || (depth0 != null ? lookupProperty(depth0,"handle") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"handle","hash":{},"data":data,"loc":{"source":"reset-password.hbs","start":{"line":72,"column":32},"end":{"line":72,"column":42}}}) : helper)))
|
|
22
|
+
+ "<!-- -->.</span></p><code\n style='display:block;padding:16px;border-radius:8px;border-width:1px;border-style:solid;background-color:hsl(211, 20%, 95.3%);border-color:hsl(211, 20%, 85.89999999999999%);font-size:14px;letter-spacing:0.25px;font-family:monospace;text-transform:uppercase'\n >"
|
|
23
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"token") || (depth0 != null ? lookupProperty(depth0,"token") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"token","hash":{},"data":data,"loc":{"source":"reset-password.hbs","start":{"line":74,"column":21},"end":{"line":74,"column":30}}}) : helper)))
|
|
24
|
+
+ "</code>\n <p\n style='font-size:14px;line-height:1.4;margin:0px 0px;letter-spacing:0.25px;color:hsl(211, 20%, 53%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;padding-top:12px'\n >To choose a new password, please enter the code above in\n the app along with your new password.</p>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:24px'\n >\n <tbody>\n <tr>\n <td>\n <hr\n style='width:100%;border:none;border-top:1px solid #eaeaea;margin:0'\n />\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='padding-top:16px;vertical-align:middle'\n >\n <tbody style='width:100%'>\n <tr style='width:100%'>\n <td data-id='__react-email-column'>\n <p\n style='font-size:14px;line-height:1.4;margin:0px 0px;color:hsl(211, 20%, 53%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;letter-spacing:0.25px'\n ><a\n href='"
|
|
25
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"homeUrl") : stack1), depth0))
|
|
26
|
+
+ "'\n style='color:hsl(211, 20%, 53%);text-decoration:none;text-decoration-line:underline;font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;margin:0px 0px;line-height:1.0;font-size:14px;letter-spacing:0.25px'\n target='_blank'\n >"
|
|
27
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"serviceName") : stack1), depth0))
|
|
28
|
+
+ "</a></p>\n </td>\n <td\n data-id='__react-email-column'\n style='width:24px'\n ><img\n alt='"
|
|
29
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"serviceName") : stack1), depth0))
|
|
30
|
+
+ "'\n src='"
|
|
31
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"markUrl") : stack1), depth0))
|
|
32
|
+
+ "'\n style='display:block;outline:none;border:none;text-decoration:none;width:24px'\n /></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <table\n align='center'\n width='100%'\n border='0'\n cellPadding='0'\n cellSpacing='0'\n role='presentation'\n style='height:500px'\n >\n <tbody>\n <tr>\n <td></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </body>\n\n</html>";
|
|
33
|
+
},"useData":true})
|
|
1191
34
|
//# sourceMappingURL=reset-password.js.map
|