@rpg-engine/long-bow 0.6.7 → 0.6.9
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/dist/components/Stepper.d.ts +4 -0
- package/dist/components/Tutorial/TutorialStepper.d.ts +12 -0
- package/dist/index.d.ts +6 -5
- package/dist/long-bow.cjs.development.js +757 -311
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +758 -313
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/TutorialStepper.stories.d.ts +5 -0
- package/package.json +2 -2
- package/src/assets/images/sewer.png +0 -0
- package/src/assets/images/shortcuts.png +0 -0
- package/src/components/Stepper.tsx +103 -28
- package/src/components/Tutorial/TutorialStepper.tsx +72 -0
- package/src/index.tsx +7 -5
- package/src/stories/TutorialStepper.stories.tsx +48 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -136,6 +136,337 @@ var DropdownOptions = /*#__PURE__*/styled.ul.withConfig({
|
|
|
136
136
|
return props.opensUp ? 'auto' : '100%';
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
function _regeneratorRuntime() {
|
|
140
|
+
_regeneratorRuntime = function () {
|
|
141
|
+
return exports;
|
|
142
|
+
};
|
|
143
|
+
var exports = {},
|
|
144
|
+
Op = Object.prototype,
|
|
145
|
+
hasOwn = Op.hasOwnProperty,
|
|
146
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
147
|
+
obj[key] = desc.value;
|
|
148
|
+
},
|
|
149
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
150
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
151
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
152
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
153
|
+
function define(obj, key, value) {
|
|
154
|
+
return Object.defineProperty(obj, key, {
|
|
155
|
+
value: value,
|
|
156
|
+
enumerable: !0,
|
|
157
|
+
configurable: !0,
|
|
158
|
+
writable: !0
|
|
159
|
+
}), obj[key];
|
|
160
|
+
}
|
|
161
|
+
try {
|
|
162
|
+
define({}, "");
|
|
163
|
+
} catch (err) {
|
|
164
|
+
define = function (obj, key, value) {
|
|
165
|
+
return obj[key] = value;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
169
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
170
|
+
generator = Object.create(protoGenerator.prototype),
|
|
171
|
+
context = new Context(tryLocsList || []);
|
|
172
|
+
return defineProperty(generator, "_invoke", {
|
|
173
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
174
|
+
}), generator;
|
|
175
|
+
}
|
|
176
|
+
function tryCatch(fn, obj, arg) {
|
|
177
|
+
try {
|
|
178
|
+
return {
|
|
179
|
+
type: "normal",
|
|
180
|
+
arg: fn.call(obj, arg)
|
|
181
|
+
};
|
|
182
|
+
} catch (err) {
|
|
183
|
+
return {
|
|
184
|
+
type: "throw",
|
|
185
|
+
arg: err
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
exports.wrap = wrap;
|
|
190
|
+
var ContinueSentinel = {};
|
|
191
|
+
function Generator() {}
|
|
192
|
+
function GeneratorFunction() {}
|
|
193
|
+
function GeneratorFunctionPrototype() {}
|
|
194
|
+
var IteratorPrototype = {};
|
|
195
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
196
|
+
return this;
|
|
197
|
+
});
|
|
198
|
+
var getProto = Object.getPrototypeOf,
|
|
199
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
200
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
201
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
202
|
+
function defineIteratorMethods(prototype) {
|
|
203
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
204
|
+
define(prototype, method, function (arg) {
|
|
205
|
+
return this._invoke(method, arg);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
210
|
+
function invoke(method, arg, resolve, reject) {
|
|
211
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
212
|
+
if ("throw" !== record.type) {
|
|
213
|
+
var result = record.arg,
|
|
214
|
+
value = result.value;
|
|
215
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
216
|
+
invoke("next", value, resolve, reject);
|
|
217
|
+
}, function (err) {
|
|
218
|
+
invoke("throw", err, resolve, reject);
|
|
219
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
220
|
+
result.value = unwrapped, resolve(result);
|
|
221
|
+
}, function (error) {
|
|
222
|
+
return invoke("throw", error, resolve, reject);
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
reject(record.arg);
|
|
226
|
+
}
|
|
227
|
+
var previousPromise;
|
|
228
|
+
defineProperty(this, "_invoke", {
|
|
229
|
+
value: function (method, arg) {
|
|
230
|
+
function callInvokeWithMethodAndArg() {
|
|
231
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
232
|
+
invoke(method, arg, resolve, reject);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
240
|
+
var state = "suspendedStart";
|
|
241
|
+
return function (method, arg) {
|
|
242
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
243
|
+
if ("completed" === state) {
|
|
244
|
+
if ("throw" === method) throw arg;
|
|
245
|
+
return doneResult();
|
|
246
|
+
}
|
|
247
|
+
for (context.method = method, context.arg = arg;;) {
|
|
248
|
+
var delegate = context.delegate;
|
|
249
|
+
if (delegate) {
|
|
250
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
251
|
+
if (delegateResult) {
|
|
252
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
253
|
+
return delegateResult;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
257
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
258
|
+
context.dispatchException(context.arg);
|
|
259
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
260
|
+
state = "executing";
|
|
261
|
+
var record = tryCatch(innerFn, self, context);
|
|
262
|
+
if ("normal" === record.type) {
|
|
263
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
264
|
+
return {
|
|
265
|
+
value: record.arg,
|
|
266
|
+
done: context.done
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
274
|
+
var methodName = context.method,
|
|
275
|
+
method = delegate.iterator[methodName];
|
|
276
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
277
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
278
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
279
|
+
var info = record.arg;
|
|
280
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
281
|
+
}
|
|
282
|
+
function pushTryEntry(locs) {
|
|
283
|
+
var entry = {
|
|
284
|
+
tryLoc: locs[0]
|
|
285
|
+
};
|
|
286
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
287
|
+
}
|
|
288
|
+
function resetTryEntry(entry) {
|
|
289
|
+
var record = entry.completion || {};
|
|
290
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
291
|
+
}
|
|
292
|
+
function Context(tryLocsList) {
|
|
293
|
+
this.tryEntries = [{
|
|
294
|
+
tryLoc: "root"
|
|
295
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
296
|
+
}
|
|
297
|
+
function values(iterable) {
|
|
298
|
+
if (iterable) {
|
|
299
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
300
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
301
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
302
|
+
if (!isNaN(iterable.length)) {
|
|
303
|
+
var i = -1,
|
|
304
|
+
next = function next() {
|
|
305
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
306
|
+
return next.value = undefined, next.done = !0, next;
|
|
307
|
+
};
|
|
308
|
+
return next.next = next;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return {
|
|
312
|
+
next: doneResult
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function doneResult() {
|
|
316
|
+
return {
|
|
317
|
+
value: undefined,
|
|
318
|
+
done: !0
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
322
|
+
value: GeneratorFunctionPrototype,
|
|
323
|
+
configurable: !0
|
|
324
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
325
|
+
value: GeneratorFunction,
|
|
326
|
+
configurable: !0
|
|
327
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
328
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
329
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
330
|
+
}, exports.mark = function (genFun) {
|
|
331
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
332
|
+
}, exports.awrap = function (arg) {
|
|
333
|
+
return {
|
|
334
|
+
__await: arg
|
|
335
|
+
};
|
|
336
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
337
|
+
return this;
|
|
338
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
339
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
340
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
341
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
342
|
+
return result.done ? result.value : iter.next();
|
|
343
|
+
});
|
|
344
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
345
|
+
return this;
|
|
346
|
+
}), define(Gp, "toString", function () {
|
|
347
|
+
return "[object Generator]";
|
|
348
|
+
}), exports.keys = function (val) {
|
|
349
|
+
var object = Object(val),
|
|
350
|
+
keys = [];
|
|
351
|
+
for (var key in object) keys.push(key);
|
|
352
|
+
return keys.reverse(), function next() {
|
|
353
|
+
for (; keys.length;) {
|
|
354
|
+
var key = keys.pop();
|
|
355
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
356
|
+
}
|
|
357
|
+
return next.done = !0, next;
|
|
358
|
+
};
|
|
359
|
+
}, exports.values = values, Context.prototype = {
|
|
360
|
+
constructor: Context,
|
|
361
|
+
reset: function (skipTempReset) {
|
|
362
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
363
|
+
},
|
|
364
|
+
stop: function () {
|
|
365
|
+
this.done = !0;
|
|
366
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
367
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
368
|
+
return this.rval;
|
|
369
|
+
},
|
|
370
|
+
dispatchException: function (exception) {
|
|
371
|
+
if (this.done) throw exception;
|
|
372
|
+
var context = this;
|
|
373
|
+
function handle(loc, caught) {
|
|
374
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
375
|
+
}
|
|
376
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
377
|
+
var entry = this.tryEntries[i],
|
|
378
|
+
record = entry.completion;
|
|
379
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
380
|
+
if (entry.tryLoc <= this.prev) {
|
|
381
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
382
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
383
|
+
if (hasCatch && hasFinally) {
|
|
384
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
385
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
386
|
+
} else if (hasCatch) {
|
|
387
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
388
|
+
} else {
|
|
389
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
390
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
abrupt: function (type, arg) {
|
|
396
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
397
|
+
var entry = this.tryEntries[i];
|
|
398
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
399
|
+
var finallyEntry = entry;
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
404
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
405
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
406
|
+
},
|
|
407
|
+
complete: function (record, afterLoc) {
|
|
408
|
+
if ("throw" === record.type) throw record.arg;
|
|
409
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
410
|
+
},
|
|
411
|
+
finish: function (finallyLoc) {
|
|
412
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
413
|
+
var entry = this.tryEntries[i];
|
|
414
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
catch: function (tryLoc) {
|
|
418
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
419
|
+
var entry = this.tryEntries[i];
|
|
420
|
+
if (entry.tryLoc === tryLoc) {
|
|
421
|
+
var record = entry.completion;
|
|
422
|
+
if ("throw" === record.type) {
|
|
423
|
+
var thrown = record.arg;
|
|
424
|
+
resetTryEntry(entry);
|
|
425
|
+
}
|
|
426
|
+
return thrown;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
throw new Error("illegal catch attempt");
|
|
430
|
+
},
|
|
431
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
432
|
+
return this.delegate = {
|
|
433
|
+
iterator: values(iterable),
|
|
434
|
+
resultName: resultName,
|
|
435
|
+
nextLoc: nextLoc
|
|
436
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
437
|
+
}
|
|
438
|
+
}, exports;
|
|
439
|
+
}
|
|
440
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
441
|
+
try {
|
|
442
|
+
var info = gen[key](arg);
|
|
443
|
+
var value = info.value;
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
if (info.done) {
|
|
449
|
+
resolve(value);
|
|
450
|
+
} else {
|
|
451
|
+
Promise.resolve(value).then(_next, _throw);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function _asyncToGenerator(fn) {
|
|
455
|
+
return function () {
|
|
456
|
+
var self = this,
|
|
457
|
+
args = arguments;
|
|
458
|
+
return new Promise(function (resolve, reject) {
|
|
459
|
+
var gen = fn.apply(self, args);
|
|
460
|
+
function _next(value) {
|
|
461
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
+
}
|
|
463
|
+
function _throw(err) {
|
|
464
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
+
}
|
|
466
|
+
_next(undefined);
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
}
|
|
139
470
|
function _extends() {
|
|
140
471
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
141
472
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -12757,6 +13088,159 @@ var Button$1 = /*#__PURE__*/styled.button.withConfig({
|
|
|
12757
13088
|
return buttonBackgroundColor;
|
|
12758
13089
|
});
|
|
12759
13090
|
|
|
13091
|
+
var _excluded$2 = ["innerRef"];
|
|
13092
|
+
var Input = function Input(_ref) {
|
|
13093
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
13094
|
+
var rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
13095
|
+
return React.createElement("input", Object.assign({}, rest, {
|
|
13096
|
+
ref: props.innerRef
|
|
13097
|
+
}));
|
|
13098
|
+
};
|
|
13099
|
+
|
|
13100
|
+
var RPGUIContainerTypes;
|
|
13101
|
+
(function (RPGUIContainerTypes) {
|
|
13102
|
+
RPGUIContainerTypes["Framed"] = "framed";
|
|
13103
|
+
RPGUIContainerTypes["FramedGold"] = "framed-golden";
|
|
13104
|
+
RPGUIContainerTypes["FramedGold2"] = "framed-golden-2";
|
|
13105
|
+
RPGUIContainerTypes["FramedGrey"] = "framed-grey";
|
|
13106
|
+
})(RPGUIContainerTypes || (RPGUIContainerTypes = {}));
|
|
13107
|
+
var RPGUIContainer = function RPGUIContainer(_ref) {
|
|
13108
|
+
var children = _ref.children,
|
|
13109
|
+
type = _ref.type,
|
|
13110
|
+
_ref$width = _ref.width,
|
|
13111
|
+
width = _ref$width === void 0 ? '50%' : _ref$width,
|
|
13112
|
+
height = _ref.height,
|
|
13113
|
+
className = _ref.className;
|
|
13114
|
+
return React.createElement(Container$5, {
|
|
13115
|
+
width: width,
|
|
13116
|
+
height: height || 'auto',
|
|
13117
|
+
className: "rpgui-container " + type + " " + className
|
|
13118
|
+
}, children);
|
|
13119
|
+
};
|
|
13120
|
+
var Container$5 = /*#__PURE__*/styled.div.withConfig({
|
|
13121
|
+
displayName: "RPGUIContainer__Container",
|
|
13122
|
+
componentId: "sc-a7heha-0"
|
|
13123
|
+
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
|
|
13124
|
+
return props.height;
|
|
13125
|
+
}, function (_ref2) {
|
|
13126
|
+
var width = _ref2.width;
|
|
13127
|
+
return width;
|
|
13128
|
+
});
|
|
13129
|
+
|
|
13130
|
+
var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
13131
|
+
var chatMessages = _ref.chatMessages,
|
|
13132
|
+
onSendChatMessage = _ref.onSendChatMessage,
|
|
13133
|
+
_ref$opacity = _ref.opacity,
|
|
13134
|
+
opacity = _ref$opacity === void 0 ? 1 : _ref$opacity,
|
|
13135
|
+
_ref$width = _ref.width,
|
|
13136
|
+
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
13137
|
+
_ref$height = _ref.height,
|
|
13138
|
+
height = _ref$height === void 0 ? '250px' : _ref$height,
|
|
13139
|
+
onCloseButton = _ref.onCloseButton,
|
|
13140
|
+
onFocus = _ref.onFocus,
|
|
13141
|
+
onBlur = _ref.onBlur;
|
|
13142
|
+
var _useState = useState(''),
|
|
13143
|
+
message = _useState[0],
|
|
13144
|
+
setMessage = _useState[1];
|
|
13145
|
+
useEffect(function () {
|
|
13146
|
+
scrollChatToBottom();
|
|
13147
|
+
}, []);
|
|
13148
|
+
useEffect(function () {
|
|
13149
|
+
scrollChatToBottom();
|
|
13150
|
+
}, [chatMessages]);
|
|
13151
|
+
var scrollChatToBottom = function scrollChatToBottom() {
|
|
13152
|
+
var scrollingElement = document.querySelector('.chat-body');
|
|
13153
|
+
if (scrollingElement) {
|
|
13154
|
+
scrollingElement.scrollTop = scrollingElement.scrollHeight;
|
|
13155
|
+
}
|
|
13156
|
+
};
|
|
13157
|
+
var handleSubmit = function handleSubmit(event) {
|
|
13158
|
+
event.preventDefault();
|
|
13159
|
+
onSendChatMessage(message);
|
|
13160
|
+
setMessage('');
|
|
13161
|
+
};
|
|
13162
|
+
var getInputValue = function getInputValue(value) {
|
|
13163
|
+
setMessage(value);
|
|
13164
|
+
};
|
|
13165
|
+
var onRenderMessageLines = function onRenderMessageLines(emitter, createdAt, message) {
|
|
13166
|
+
return dayjs(createdAt || new Date()).format('HH:mm') + " " + (emitter != null && emitter.name ? emitter.name + ": " : 'Unknown: ') + " " + message;
|
|
13167
|
+
};
|
|
13168
|
+
var onRenderChatMessages = function onRenderChatMessages(chatMessages) {
|
|
13169
|
+
return chatMessages != null && chatMessages.length ? chatMessages == null ? void 0 : chatMessages.map(function (_ref2, index) {
|
|
13170
|
+
var _id = _ref2._id,
|
|
13171
|
+
createdAt = _ref2.createdAt,
|
|
13172
|
+
emitter = _ref2.emitter,
|
|
13173
|
+
message = _ref2.message;
|
|
13174
|
+
return React.createElement(MessageText, {
|
|
13175
|
+
key: _id + "_" + index
|
|
13176
|
+
}, onRenderMessageLines(emitter, createdAt, message));
|
|
13177
|
+
}) : React.createElement(MessageText, null, "No messages available.");
|
|
13178
|
+
};
|
|
13179
|
+
return React.createElement(Container$6, null, React.createElement(CustomContainer, {
|
|
13180
|
+
type: RPGUIContainerTypes.FramedGrey,
|
|
13181
|
+
width: width,
|
|
13182
|
+
height: height,
|
|
13183
|
+
className: "chat-container",
|
|
13184
|
+
opacity: opacity
|
|
13185
|
+
}, React.createElement(ErrorBoundary$1, {
|
|
13186
|
+
fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
|
|
13187
|
+
}, onCloseButton && React.createElement(CloseButton, {
|
|
13188
|
+
onPointerDown: onCloseButton
|
|
13189
|
+
}, "X"), React.createElement(RPGUIContainer, {
|
|
13190
|
+
type: RPGUIContainerTypes.FramedGrey,
|
|
13191
|
+
width: '100%',
|
|
13192
|
+
height: '80%',
|
|
13193
|
+
className: "chat-body dark-background"
|
|
13194
|
+
}, onRenderChatMessages(chatMessages)), React.createElement(Form$1, {
|
|
13195
|
+
onSubmit: handleSubmit
|
|
13196
|
+
}, React.createElement(Column, {
|
|
13197
|
+
flex: 70
|
|
13198
|
+
}, React.createElement(CustomInput, {
|
|
13199
|
+
value: message,
|
|
13200
|
+
id: "inputMessage",
|
|
13201
|
+
onChange: function onChange(e) {
|
|
13202
|
+
return getInputValue(e.target.value);
|
|
13203
|
+
},
|
|
13204
|
+
height: 20,
|
|
13205
|
+
className: "chat-input dark-background",
|
|
13206
|
+
type: "text",
|
|
13207
|
+
autoComplete: "off",
|
|
13208
|
+
onFocus: onFocus,
|
|
13209
|
+
onBlur: onBlur
|
|
13210
|
+
})), React.createElement(Column, {
|
|
13211
|
+
justifyContent: "flex-end"
|
|
13212
|
+
}, React.createElement(Button, {
|
|
13213
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
13214
|
+
id: "chat-send-button"
|
|
13215
|
+
}, "Send"))))));
|
|
13216
|
+
};
|
|
13217
|
+
var Container$6 = /*#__PURE__*/styled.div.withConfig({
|
|
13218
|
+
displayName: "ChatDeprecated__Container",
|
|
13219
|
+
componentId: "sc-fuuod3-0"
|
|
13220
|
+
})(["position:relative;"]);
|
|
13221
|
+
var CloseButton = /*#__PURE__*/styled.div.withConfig({
|
|
13222
|
+
displayName: "ChatDeprecated__CloseButton",
|
|
13223
|
+
componentId: "sc-fuuod3-1"
|
|
13224
|
+
})(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
|
|
13225
|
+
var CustomInput = /*#__PURE__*/styled(Input).withConfig({
|
|
13226
|
+
displayName: "ChatDeprecated__CustomInput",
|
|
13227
|
+
componentId: "sc-fuuod3-2"
|
|
13228
|
+
})(["height:30px;width:100%;.rpgui-content .input{min-height:39px;}"]);
|
|
13229
|
+
var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
13230
|
+
displayName: "ChatDeprecated__CustomContainer",
|
|
13231
|
+
componentId: "sc-fuuod3-3"
|
|
13232
|
+
})(["display:block;opacity:", ";&:hover{opacity:1;}.dark-background{background-color:", " !important;}.chat-body{&.rpgui-container.framed-grey{background:unset;}max-height:170px;overflow-y:auto;}"], function (props) {
|
|
13233
|
+
return props.opacity;
|
|
13234
|
+
}, uiColors.darkGray);
|
|
13235
|
+
var Form$1 = /*#__PURE__*/styled.form.withConfig({
|
|
13236
|
+
displayName: "ChatDeprecated__Form",
|
|
13237
|
+
componentId: "sc-fuuod3-4"
|
|
13238
|
+
})(["display:flex;width:100%;justify-content:center;align-items:center;"]);
|
|
13239
|
+
var MessageText = /*#__PURE__*/styled.p.withConfig({
|
|
13240
|
+
displayName: "ChatDeprecated__MessageText",
|
|
13241
|
+
componentId: "sc-fuuod3-5"
|
|
13242
|
+
})(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
|
|
13243
|
+
|
|
12760
13244
|
var SearchCharacter = function SearchCharacter(_ref) {
|
|
12761
13245
|
var onChangeCharacterName = _ref.onChangeCharacterName,
|
|
12762
13246
|
onBlur = _ref.onBlur,
|
|
@@ -12797,7 +13281,7 @@ var SearchCharacter = function SearchCharacter(_ref) {
|
|
|
12797
13281
|
onCharacterClick(character);
|
|
12798
13282
|
hideSearchCharacterUI();
|
|
12799
13283
|
};
|
|
12800
|
-
return React.createElement(SearchContainer, null, React.createElement(Form$
|
|
13284
|
+
return React.createElement(SearchContainer, null, React.createElement(Form$2, {
|
|
12801
13285
|
onSubmit: handleSubmit
|
|
12802
13286
|
}, React.createElement(Column, {
|
|
12803
13287
|
flex: 70
|
|
@@ -12842,7 +13326,7 @@ var SearchContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
12842
13326
|
displayName: "SearchCharacter__SearchContainer",
|
|
12843
13327
|
componentId: "sc-172lyfr-0"
|
|
12844
13328
|
})(["width:100%;"]);
|
|
12845
|
-
var Form$
|
|
13329
|
+
var Form$2 = /*#__PURE__*/styled.form.withConfig({
|
|
12846
13330
|
displayName: "SearchCharacter__Form",
|
|
12847
13331
|
componentId: "sc-172lyfr-1"
|
|
12848
13332
|
})(["display:flex;width:100%;justify-content:center;align-items:center;"]);
|
|
@@ -12946,7 +13430,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
12946
13430
|
}
|
|
12947
13431
|
}, React.createElement(StatusDot, {
|
|
12948
13432
|
isUnseen: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.includes(character._id)) || false
|
|
12949
|
-
}), character.name), React.createElement(CloseButton, {
|
|
13433
|
+
}), character.name), React.createElement(CloseButton$1, {
|
|
12950
13434
|
onPointerDown: function onPointerDown() {
|
|
12951
13435
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
12952
13436
|
}
|
|
@@ -13045,164 +13529,11 @@ var StatusDot = /*#__PURE__*/styled.span.withConfig({
|
|
|
13045
13529
|
})(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
|
|
13046
13530
|
return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
|
|
13047
13531
|
});
|
|
13048
|
-
var CloseButton = /*#__PURE__*/styled.button.withConfig({
|
|
13532
|
+
var CloseButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
13049
13533
|
displayName: "ChatRevamp__CloseButton",
|
|
13050
13534
|
componentId: "sc-1sdiknw-12"
|
|
13051
13535
|
})(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
|
|
13052
13536
|
|
|
13053
|
-
var _excluded$2 = ["innerRef"];
|
|
13054
|
-
var Input = function Input(_ref) {
|
|
13055
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
13056
|
-
var rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
13057
|
-
return React.createElement("input", Object.assign({}, rest, {
|
|
13058
|
-
ref: props.innerRef
|
|
13059
|
-
}));
|
|
13060
|
-
};
|
|
13061
|
-
|
|
13062
|
-
var RPGUIContainerTypes;
|
|
13063
|
-
(function (RPGUIContainerTypes) {
|
|
13064
|
-
RPGUIContainerTypes["Framed"] = "framed";
|
|
13065
|
-
RPGUIContainerTypes["FramedGold"] = "framed-golden";
|
|
13066
|
-
RPGUIContainerTypes["FramedGold2"] = "framed-golden-2";
|
|
13067
|
-
RPGUIContainerTypes["FramedGrey"] = "framed-grey";
|
|
13068
|
-
})(RPGUIContainerTypes || (RPGUIContainerTypes = {}));
|
|
13069
|
-
var RPGUIContainer = function RPGUIContainer(_ref) {
|
|
13070
|
-
var children = _ref.children,
|
|
13071
|
-
type = _ref.type,
|
|
13072
|
-
_ref$width = _ref.width,
|
|
13073
|
-
width = _ref$width === void 0 ? '50%' : _ref$width,
|
|
13074
|
-
height = _ref.height,
|
|
13075
|
-
className = _ref.className;
|
|
13076
|
-
return React.createElement(Container$5, {
|
|
13077
|
-
width: width,
|
|
13078
|
-
height: height || 'auto',
|
|
13079
|
-
className: "rpgui-container " + type + " " + className
|
|
13080
|
-
}, children);
|
|
13081
|
-
};
|
|
13082
|
-
var Container$5 = /*#__PURE__*/styled.div.withConfig({
|
|
13083
|
-
displayName: "RPGUIContainer__Container",
|
|
13084
|
-
componentId: "sc-a7heha-0"
|
|
13085
|
-
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
|
|
13086
|
-
return props.height;
|
|
13087
|
-
}, function (_ref2) {
|
|
13088
|
-
var width = _ref2.width;
|
|
13089
|
-
return width;
|
|
13090
|
-
});
|
|
13091
|
-
|
|
13092
|
-
var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
13093
|
-
var chatMessages = _ref.chatMessages,
|
|
13094
|
-
onSendChatMessage = _ref.onSendChatMessage,
|
|
13095
|
-
_ref$opacity = _ref.opacity,
|
|
13096
|
-
opacity = _ref$opacity === void 0 ? 1 : _ref$opacity,
|
|
13097
|
-
_ref$width = _ref.width,
|
|
13098
|
-
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
13099
|
-
_ref$height = _ref.height,
|
|
13100
|
-
height = _ref$height === void 0 ? '250px' : _ref$height,
|
|
13101
|
-
onCloseButton = _ref.onCloseButton,
|
|
13102
|
-
onFocus = _ref.onFocus,
|
|
13103
|
-
onBlur = _ref.onBlur;
|
|
13104
|
-
var _useState = useState(''),
|
|
13105
|
-
message = _useState[0],
|
|
13106
|
-
setMessage = _useState[1];
|
|
13107
|
-
useEffect(function () {
|
|
13108
|
-
scrollChatToBottom();
|
|
13109
|
-
}, []);
|
|
13110
|
-
useEffect(function () {
|
|
13111
|
-
scrollChatToBottom();
|
|
13112
|
-
}, [chatMessages]);
|
|
13113
|
-
var scrollChatToBottom = function scrollChatToBottom() {
|
|
13114
|
-
var scrollingElement = document.querySelector('.chat-body');
|
|
13115
|
-
if (scrollingElement) {
|
|
13116
|
-
scrollingElement.scrollTop = scrollingElement.scrollHeight;
|
|
13117
|
-
}
|
|
13118
|
-
};
|
|
13119
|
-
var handleSubmit = function handleSubmit(event) {
|
|
13120
|
-
event.preventDefault();
|
|
13121
|
-
onSendChatMessage(message);
|
|
13122
|
-
setMessage('');
|
|
13123
|
-
};
|
|
13124
|
-
var getInputValue = function getInputValue(value) {
|
|
13125
|
-
setMessage(value);
|
|
13126
|
-
};
|
|
13127
|
-
var onRenderMessageLines = function onRenderMessageLines(emitter, createdAt, message) {
|
|
13128
|
-
return dayjs(createdAt || new Date()).format('HH:mm') + " " + (emitter != null && emitter.name ? emitter.name + ": " : 'Unknown: ') + " " + message;
|
|
13129
|
-
};
|
|
13130
|
-
var onRenderChatMessages = function onRenderChatMessages(chatMessages) {
|
|
13131
|
-
return chatMessages != null && chatMessages.length ? chatMessages == null ? void 0 : chatMessages.map(function (_ref2, index) {
|
|
13132
|
-
var _id = _ref2._id,
|
|
13133
|
-
createdAt = _ref2.createdAt,
|
|
13134
|
-
emitter = _ref2.emitter,
|
|
13135
|
-
message = _ref2.message;
|
|
13136
|
-
return React.createElement(MessageText, {
|
|
13137
|
-
key: _id + "_" + index
|
|
13138
|
-
}, onRenderMessageLines(emitter, createdAt, message));
|
|
13139
|
-
}) : React.createElement(MessageText, null, "No messages available.");
|
|
13140
|
-
};
|
|
13141
|
-
return React.createElement(Container$6, null, React.createElement(CustomContainer, {
|
|
13142
|
-
type: RPGUIContainerTypes.FramedGrey,
|
|
13143
|
-
width: width,
|
|
13144
|
-
height: height,
|
|
13145
|
-
className: "chat-container",
|
|
13146
|
-
opacity: opacity
|
|
13147
|
-
}, React.createElement(ErrorBoundary$1, {
|
|
13148
|
-
fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
|
|
13149
|
-
}, onCloseButton && React.createElement(CloseButton$1, {
|
|
13150
|
-
onPointerDown: onCloseButton
|
|
13151
|
-
}, "X"), React.createElement(RPGUIContainer, {
|
|
13152
|
-
type: RPGUIContainerTypes.FramedGrey,
|
|
13153
|
-
width: '100%',
|
|
13154
|
-
height: '80%',
|
|
13155
|
-
className: "chat-body dark-background"
|
|
13156
|
-
}, onRenderChatMessages(chatMessages)), React.createElement(Form$2, {
|
|
13157
|
-
onSubmit: handleSubmit
|
|
13158
|
-
}, React.createElement(Column, {
|
|
13159
|
-
flex: 70
|
|
13160
|
-
}, React.createElement(CustomInput, {
|
|
13161
|
-
value: message,
|
|
13162
|
-
id: "inputMessage",
|
|
13163
|
-
onChange: function onChange(e) {
|
|
13164
|
-
return getInputValue(e.target.value);
|
|
13165
|
-
},
|
|
13166
|
-
height: 20,
|
|
13167
|
-
className: "chat-input dark-background",
|
|
13168
|
-
type: "text",
|
|
13169
|
-
autoComplete: "off",
|
|
13170
|
-
onFocus: onFocus,
|
|
13171
|
-
onBlur: onBlur
|
|
13172
|
-
})), React.createElement(Column, {
|
|
13173
|
-
justifyContent: "flex-end"
|
|
13174
|
-
}, React.createElement(Button, {
|
|
13175
|
-
buttonType: ButtonTypes.RPGUIButton,
|
|
13176
|
-
id: "chat-send-button"
|
|
13177
|
-
}, "Send"))))));
|
|
13178
|
-
};
|
|
13179
|
-
var Container$6 = /*#__PURE__*/styled.div.withConfig({
|
|
13180
|
-
displayName: "ChatDeprecated__Container",
|
|
13181
|
-
componentId: "sc-fuuod3-0"
|
|
13182
|
-
})(["position:relative;"]);
|
|
13183
|
-
var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
|
|
13184
|
-
displayName: "ChatDeprecated__CloseButton",
|
|
13185
|
-
componentId: "sc-fuuod3-1"
|
|
13186
|
-
})(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
|
|
13187
|
-
var CustomInput = /*#__PURE__*/styled(Input).withConfig({
|
|
13188
|
-
displayName: "ChatDeprecated__CustomInput",
|
|
13189
|
-
componentId: "sc-fuuod3-2"
|
|
13190
|
-
})(["height:30px;width:100%;.rpgui-content .input{min-height:39px;}"]);
|
|
13191
|
-
var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
13192
|
-
displayName: "ChatDeprecated__CustomContainer",
|
|
13193
|
-
componentId: "sc-fuuod3-3"
|
|
13194
|
-
})(["display:block;opacity:", ";&:hover{opacity:1;}.dark-background{background-color:", " !important;}.chat-body{&.rpgui-container.framed-grey{background:unset;}max-height:170px;overflow-y:auto;}"], function (props) {
|
|
13195
|
-
return props.opacity;
|
|
13196
|
-
}, uiColors.darkGray);
|
|
13197
|
-
var Form$2 = /*#__PURE__*/styled.form.withConfig({
|
|
13198
|
-
displayName: "ChatDeprecated__Form",
|
|
13199
|
-
componentId: "sc-fuuod3-4"
|
|
13200
|
-
})(["display:flex;width:100%;justify-content:center;align-items:center;"]);
|
|
13201
|
-
var MessageText = /*#__PURE__*/styled.p.withConfig({
|
|
13202
|
-
displayName: "ChatDeprecated__MessageText",
|
|
13203
|
-
componentId: "sc-fuuod3-5"
|
|
13204
|
-
})(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
|
|
13205
|
-
|
|
13206
13537
|
var CheckButton = function CheckButton(_ref) {
|
|
13207
13538
|
var items = _ref.items,
|
|
13208
13539
|
onChange = _ref.onChange;
|
|
@@ -16788,6 +17119,92 @@ var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
16788
17119
|
return isFullScreen && '50%';
|
|
16789
17120
|
});
|
|
16790
17121
|
|
|
17122
|
+
var ItemSelector = function ItemSelector(_ref) {
|
|
17123
|
+
var atlasIMG = _ref.atlasIMG,
|
|
17124
|
+
atlasJSON = _ref.atlasJSON,
|
|
17125
|
+
options = _ref.options,
|
|
17126
|
+
onClose = _ref.onClose,
|
|
17127
|
+
onSelect = _ref.onSelect;
|
|
17128
|
+
var _useState = useState(),
|
|
17129
|
+
selectedValue = _useState[0],
|
|
17130
|
+
setSelectedValue = _useState[1];
|
|
17131
|
+
var handleClick = function handleClick() {
|
|
17132
|
+
var element = document.querySelector("input[name='test']:checked");
|
|
17133
|
+
var elementValue = element.value;
|
|
17134
|
+
setSelectedValue(elementValue);
|
|
17135
|
+
};
|
|
17136
|
+
useEffect(function () {
|
|
17137
|
+
if (selectedValue) {
|
|
17138
|
+
onSelect(selectedValue);
|
|
17139
|
+
}
|
|
17140
|
+
}, [selectedValue]);
|
|
17141
|
+
return React.createElement(DraggableContainer, {
|
|
17142
|
+
type: RPGUIContainerTypes.Framed,
|
|
17143
|
+
width: "500px",
|
|
17144
|
+
cancelDrag: ".equipment-container-body .arrow-selector",
|
|
17145
|
+
onCloseButton: function onCloseButton() {
|
|
17146
|
+
if (onClose) {
|
|
17147
|
+
onClose();
|
|
17148
|
+
}
|
|
17149
|
+
}
|
|
17150
|
+
}, React.createElement("div", {
|
|
17151
|
+
style: {
|
|
17152
|
+
width: '100%'
|
|
17153
|
+
}
|
|
17154
|
+
}, React.createElement(Title$3, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
17155
|
+
className: "golden"
|
|
17156
|
+
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
17157
|
+
return React.createElement(RadioOptionsWrapper$1, {
|
|
17158
|
+
key: index
|
|
17159
|
+
}, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
|
|
17160
|
+
atlasIMG: atlasIMG,
|
|
17161
|
+
atlasJSON: atlasJSON,
|
|
17162
|
+
spriteKey: option.imageKey,
|
|
17163
|
+
imgScale: 3
|
|
17164
|
+
})), React.createElement("div", null, React.createElement("input", {
|
|
17165
|
+
className: "rpgui-radio",
|
|
17166
|
+
type: "radio",
|
|
17167
|
+
value: option.name,
|
|
17168
|
+
name: "test"
|
|
17169
|
+
}), React.createElement("label", {
|
|
17170
|
+
onPointerDown: handleClick,
|
|
17171
|
+
style: {
|
|
17172
|
+
display: 'flex',
|
|
17173
|
+
alignItems: 'center'
|
|
17174
|
+
}
|
|
17175
|
+
}, option.name, " ", React.createElement("br", null), option.description)));
|
|
17176
|
+
})), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
|
|
17177
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
17178
|
+
onPointerDown: onClose
|
|
17179
|
+
}, "Cancel"), React.createElement(Button, {
|
|
17180
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
17181
|
+
}, "Select")));
|
|
17182
|
+
};
|
|
17183
|
+
var Title$3 = /*#__PURE__*/styled.h1.withConfig({
|
|
17184
|
+
displayName: "ItemSelector__Title",
|
|
17185
|
+
componentId: "sc-gptoxp-0"
|
|
17186
|
+
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
17187
|
+
var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
17188
|
+
displayName: "ItemSelector__Subtitle",
|
|
17189
|
+
componentId: "sc-gptoxp-1"
|
|
17190
|
+
})(["font-size:0.4rem;color:yellow !important;"]);
|
|
17191
|
+
var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17192
|
+
displayName: "ItemSelector__RadioInputScroller",
|
|
17193
|
+
componentId: "sc-gptoxp-2"
|
|
17194
|
+
})(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
|
|
17195
|
+
var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17196
|
+
displayName: "ItemSelector__SpriteAtlasWrapper",
|
|
17197
|
+
componentId: "sc-gptoxp-3"
|
|
17198
|
+
})(["margin-right:40px;"]);
|
|
17199
|
+
var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17200
|
+
displayName: "ItemSelector__RadioOptionsWrapper",
|
|
17201
|
+
componentId: "sc-gptoxp-4"
|
|
17202
|
+
})(["display:flex;align-items:stretch;margin-bottom:40px;"]);
|
|
17203
|
+
var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17204
|
+
displayName: "ItemSelector__ButtonWrapper",
|
|
17205
|
+
componentId: "sc-gptoxp-5"
|
|
17206
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
17207
|
+
|
|
16791
17208
|
var LeaderboardTable = function LeaderboardTable(props) {
|
|
16792
17209
|
var items = props.items,
|
|
16793
17210
|
rankType = props.rankType;
|
|
@@ -17619,12 +18036,12 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
17619
18036
|
style: {
|
|
17620
18037
|
width: '100%'
|
|
17621
18038
|
}
|
|
17622
|
-
}, React.createElement(Title$
|
|
18039
|
+
}, React.createElement(Title$4, null, "Create Party"), React.createElement("hr", {
|
|
17623
18040
|
className: "golden"
|
|
17624
18041
|
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
17625
18042
|
placeholder: "Type party name",
|
|
17626
18043
|
type: "text"
|
|
17627
|
-
}), React.createElement(ButtonWrapper$
|
|
18044
|
+
}), React.createElement(ButtonWrapper$2, null, React.createElement(Button, {
|
|
17628
18045
|
buttonType: ButtonTypes.RPGUIButton,
|
|
17629
18046
|
onPointerDown: function onPointerDown() {
|
|
17630
18047
|
onCreate();
|
|
@@ -17642,11 +18059,11 @@ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
17642
18059
|
displayName: "PartyCreate__Wrapper",
|
|
17643
18060
|
componentId: "sc-13brop0-0"
|
|
17644
18061
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
17645
|
-
var Title$
|
|
18062
|
+
var Title$4 = /*#__PURE__*/styled.h1.withConfig({
|
|
17646
18063
|
displayName: "PartyCreate__Title",
|
|
17647
18064
|
componentId: "sc-13brop0-1"
|
|
17648
18065
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
17649
|
-
var ButtonWrapper$
|
|
18066
|
+
var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
17650
18067
|
displayName: "PartyCreate__ButtonWrapper",
|
|
17651
18068
|
componentId: "sc-13brop0-2"
|
|
17652
18069
|
})(["margin-top:10px;width:100%;display:flex;justify-content:space-around;align-items:center;.cancel-button{filter:grayscale(0.7);}"]);
|
|
@@ -17691,7 +18108,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
17691
18108
|
style: {
|
|
17692
18109
|
width: '100%'
|
|
17693
18110
|
}
|
|
17694
|
-
}, React.createElement(Title$
|
|
18111
|
+
}, React.createElement(Title$5, null, "Party Dashboard"), React.createElement(Button, {
|
|
17695
18112
|
buttonType: ButtonTypes.RPGUIButton
|
|
17696
18113
|
}, "Create"), React.createElement("hr", {
|
|
17697
18114
|
className: "golden"
|
|
@@ -17718,7 +18135,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
17718
18135
|
displayName: "PartyDashboard__RowsWrapper",
|
|
17719
18136
|
componentId: "sc-16cm41r-1"
|
|
17720
18137
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
17721
|
-
var Title$
|
|
18138
|
+
var Title$5 = /*#__PURE__*/styled.h1.withConfig({
|
|
17722
18139
|
displayName: "PartyDashboard__Title",
|
|
17723
18140
|
componentId: "sc-16cm41r-2"
|
|
17724
18141
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -17755,7 +18172,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
17755
18172
|
style: {
|
|
17756
18173
|
width: '100%'
|
|
17757
18174
|
}
|
|
17758
|
-
}, React.createElement(Title$
|
|
18175
|
+
}, React.createElement(Title$6, null, "Invite for Party"), React.createElement("hr", {
|
|
17759
18176
|
className: "golden"
|
|
17760
18177
|
}))), React.createElement(RowsWrapper$1, {
|
|
17761
18178
|
className: "playersRows"
|
|
@@ -17774,7 +18191,7 @@ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
17774
18191
|
displayName: "PartyInvite__Wrapper",
|
|
17775
18192
|
componentId: "sc-eu8ggt-0"
|
|
17776
18193
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
17777
|
-
var Title$
|
|
18194
|
+
var Title$6 = /*#__PURE__*/styled.h1.withConfig({
|
|
17778
18195
|
displayName: "PartyInvite__Title",
|
|
17779
18196
|
componentId: "sc-eu8ggt-1"
|
|
17780
18197
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -17832,7 +18249,7 @@ var PartyManager = function PartyManager(_ref) {
|
|
|
17832
18249
|
style: {
|
|
17833
18250
|
width: '100%'
|
|
17834
18251
|
}
|
|
17835
|
-
}, React.createElement(Title$
|
|
18252
|
+
}, React.createElement(Title$7, null, "Party Dashboard"), React.createElement("hr", {
|
|
17836
18253
|
className: "golden"
|
|
17837
18254
|
}))), React.createElement(RowsWrapper$2, {
|
|
17838
18255
|
className: "partyRows"
|
|
@@ -17878,7 +18295,7 @@ var RowsWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
17878
18295
|
displayName: "PartyManager__RowsWrapper",
|
|
17879
18296
|
componentId: "sc-1yqcad8-2"
|
|
17880
18297
|
})(["width:100%;"]);
|
|
17881
|
-
var Title$
|
|
18298
|
+
var Title$7 = /*#__PURE__*/styled.h1.withConfig({
|
|
17882
18299
|
displayName: "PartyManager__Title",
|
|
17883
18300
|
componentId: "sc-1yqcad8-3"
|
|
17884
18301
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -18143,7 +18560,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
18143
18560
|
onPointerDown: onRightClick
|
|
18144
18561
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
18145
18562
|
className: "drag-handler"
|
|
18146
|
-
}, React.createElement(Title$
|
|
18563
|
+
}, React.createElement(Title$8, null, React.createElement(Thumbnail, {
|
|
18147
18564
|
src: quests[currentIndex].thumbnail || img$8
|
|
18148
18565
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
18149
18566
|
className: "golden"
|
|
@@ -18162,7 +18579,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
18162
18579
|
}, button.title);
|
|
18163
18580
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
18164
18581
|
className: "drag-handler"
|
|
18165
|
-
}, React.createElement(Title$
|
|
18582
|
+
}, React.createElement(Title$8, null, React.createElement(Thumbnail, {
|
|
18166
18583
|
src: quests[0].thumbnail || img$8
|
|
18167
18584
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
18168
18585
|
className: "golden"
|
|
@@ -18209,7 +18626,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
18209
18626
|
displayName: "QuestInfo__TitleContainer",
|
|
18210
18627
|
componentId: "sc-15s2boc-6"
|
|
18211
18628
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
18212
|
-
var Title$
|
|
18629
|
+
var Title$8 = /*#__PURE__*/styled.h1.withConfig({
|
|
18213
18630
|
displayName: "QuestInfo__Title",
|
|
18214
18631
|
componentId: "sc-15s2boc-7"
|
|
18215
18632
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -18233,7 +18650,7 @@ var QuestList = function QuestList(_ref) {
|
|
|
18233
18650
|
style: {
|
|
18234
18651
|
width: '100%'
|
|
18235
18652
|
}
|
|
18236
|
-
}, React.createElement(Title$
|
|
18653
|
+
}, React.createElement(Title$9, null, "Quests"), React.createElement("hr", {
|
|
18237
18654
|
className: "golden"
|
|
18238
18655
|
}), React.createElement(QuestListContainer, null, quests ? quests.map(function (quest, i) {
|
|
18239
18656
|
return React.createElement("div", {
|
|
@@ -18254,7 +18671,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
|
|
|
18254
18671
|
displayName: "QuestList__QuestDraggableContainer",
|
|
18255
18672
|
componentId: "sc-1a2vx6q-0"
|
|
18256
18673
|
})([".container-close{top:10px;right:10px;}.quest-title{text-align:left;margin-left:44px;margin-top:20px;color:yellow;}.quest-desc{margin-top:12px;margin-left:44px;}.rpgui-progress{min-width:80%;margin:0 auto;}"]);
|
|
18257
|
-
var Title$
|
|
18674
|
+
var Title$9 = /*#__PURE__*/styled.h1.withConfig({
|
|
18258
18675
|
displayName: "QuestList__Title",
|
|
18259
18676
|
componentId: "sc-1a2vx6q-1"
|
|
18260
18677
|
})(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
|
|
@@ -18267,29 +18684,6 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
18267
18684
|
componentId: "sc-1a2vx6q-3"
|
|
18268
18685
|
})(["text-align:center;p{margin-top:5px;}"]);
|
|
18269
18686
|
|
|
18270
|
-
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
18271
|
-
var children = _ref.children;
|
|
18272
|
-
return React.createElement(Container$q, null, children);
|
|
18273
|
-
};
|
|
18274
|
-
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
18275
|
-
displayName: "RPGUIScrollbar__Container",
|
|
18276
|
-
componentId: "sc-p3msmb-0"
|
|
18277
|
-
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
18278
|
-
|
|
18279
|
-
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
18280
|
-
var children = _ref.children;
|
|
18281
|
-
return React.createElement(RPGUIScrollbar, null, children);
|
|
18282
|
-
};
|
|
18283
|
-
|
|
18284
|
-
//@ts-ignore
|
|
18285
|
-
var _RPGUI = RPGUI;
|
|
18286
|
-
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
18287
|
-
var children = _ref.children;
|
|
18288
|
-
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
18289
|
-
className: "rpgui-content"
|
|
18290
|
-
}, children));
|
|
18291
|
-
};
|
|
18292
|
-
|
|
18293
18687
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
18294
18688
|
var name = _ref.name,
|
|
18295
18689
|
items = _ref.items,
|
|
@@ -18322,6 +18716,29 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
18322
18716
|
}));
|
|
18323
18717
|
};
|
|
18324
18718
|
|
|
18719
|
+
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
18720
|
+
var children = _ref.children;
|
|
18721
|
+
return React.createElement(Container$q, null, children);
|
|
18722
|
+
};
|
|
18723
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
18724
|
+
displayName: "RPGUIScrollbar__Container",
|
|
18725
|
+
componentId: "sc-p3msmb-0"
|
|
18726
|
+
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
18727
|
+
|
|
18728
|
+
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
18729
|
+
var children = _ref.children;
|
|
18730
|
+
return React.createElement(RPGUIScrollbar, null, children);
|
|
18731
|
+
};
|
|
18732
|
+
|
|
18733
|
+
//@ts-ignore
|
|
18734
|
+
var _RPGUI = RPGUI;
|
|
18735
|
+
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
18736
|
+
var children = _ref.children;
|
|
18737
|
+
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
18738
|
+
className: "rpgui-content"
|
|
18739
|
+
}, children));
|
|
18740
|
+
};
|
|
18741
|
+
|
|
18325
18742
|
var Shortcuts = function Shortcuts(_ref) {
|
|
18326
18743
|
var shortcuts = _ref.shortcuts,
|
|
18327
18744
|
onShortcutCast = _ref.onShortcutCast,
|
|
@@ -18760,7 +19177,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
18760
19177
|
castingType = spell.castingType,
|
|
18761
19178
|
cooldown = spell.cooldown,
|
|
18762
19179
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
18763
|
-
return React.createElement(Container$s, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$
|
|
19180
|
+
return React.createElement(Container$s, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$a, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
18764
19181
|
className: "label"
|
|
18765
19182
|
}, "Casting Type:"), React.createElement("div", {
|
|
18766
19183
|
className: "value"
|
|
@@ -18790,7 +19207,7 @@ var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
|
18790
19207
|
displayName: "SpellInfo__Container",
|
|
18791
19208
|
componentId: "sc-4hbw3q-0"
|
|
18792
19209
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
18793
|
-
var Title$
|
|
19210
|
+
var Title$a = /*#__PURE__*/styled.div.withConfig({
|
|
18794
19211
|
displayName: "SpellInfo__Title",
|
|
18795
19212
|
componentId: "sc-4hbw3q-1"
|
|
18796
19213
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -18985,7 +19402,7 @@ var Spell = function Spell(_ref) {
|
|
|
18985
19402
|
imgScale: IMAGE_SCALE,
|
|
18986
19403
|
containerStyle: CONTAINER_STYLE,
|
|
18987
19404
|
centered: true
|
|
18988
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
19405
|
+
})), React.createElement(Info, null, React.createElement(Title$b, null, React.createElement("span", null, name), React.createElement("span", {
|
|
18989
19406
|
className: "spell"
|
|
18990
19407
|
}, "(", magicWords, ")")), React.createElement(Description$3, null, description)), React.createElement(Divider, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
18991
19408
|
className: "mana"
|
|
@@ -19006,7 +19423,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
19006
19423
|
displayName: "Spell__Info",
|
|
19007
19424
|
componentId: "sc-j96fa2-2"
|
|
19008
19425
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
19009
|
-
var Title$
|
|
19426
|
+
var Title$b = /*#__PURE__*/styled.p.withConfig({
|
|
19010
19427
|
displayName: "Spell__Title",
|
|
19011
19428
|
componentId: "sc-j96fa2-3"
|
|
19012
19429
|
})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
|
|
@@ -19070,7 +19487,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
19070
19487
|
height: "inherit",
|
|
19071
19488
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
19072
19489
|
scale: scale
|
|
19073
|
-
}, React.createElement(Container$w, null, React.createElement(Title$
|
|
19490
|
+
}, React.createElement(Container$w, null, React.createElement(Title$c, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
19074
19491
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
19075
19492
|
settingShortcutIndex: settingShortcutIndex,
|
|
19076
19493
|
shortcuts: shortcuts,
|
|
@@ -19102,7 +19519,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
19102
19519
|
}, spell)));
|
|
19103
19520
|
}))));
|
|
19104
19521
|
};
|
|
19105
|
-
var Title$
|
|
19522
|
+
var Title$c = /*#__PURE__*/styled.h1.withConfig({
|
|
19106
19523
|
displayName: "Spellbook__Title",
|
|
19107
19524
|
componentId: "sc-r02nfq-0"
|
|
19108
19525
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -19118,14 +19535,83 @@ var SpellList = /*#__PURE__*/styled.div.withConfig({
|
|
|
19118
19535
|
var Stepper = function Stepper(_ref) {
|
|
19119
19536
|
var _steps$currentStep;
|
|
19120
19537
|
var steps = _ref.steps,
|
|
19121
|
-
finalCTAButton = _ref.finalCTAButton
|
|
19538
|
+
finalCTAButton = _ref.finalCTAButton,
|
|
19539
|
+
onError = _ref.onError,
|
|
19540
|
+
_ref$useSideArrows = _ref.useSideArrows,
|
|
19541
|
+
useSideArrows = _ref$useSideArrows === void 0 ? false : _ref$useSideArrows;
|
|
19122
19542
|
var _useState = useState(0),
|
|
19123
19543
|
currentStep = _useState[0],
|
|
19124
19544
|
setCurrentStep = _useState[1];
|
|
19125
19545
|
var currentComponent = (_steps$currentStep = steps[currentStep]) == null ? void 0 : _steps$currentStep.component;
|
|
19126
19546
|
var totalSteps = steps.length;
|
|
19127
|
-
var onStepChange = function
|
|
19128
|
-
|
|
19547
|
+
var onStepChange = /*#__PURE__*/function () {
|
|
19548
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(step) {
|
|
19549
|
+
var _steps$currentStep2;
|
|
19550
|
+
var isValid;
|
|
19551
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19552
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19553
|
+
case 0:
|
|
19554
|
+
if (!((_steps$currentStep2 = steps[currentStep]) != null && _steps$currentStep2.validate)) {
|
|
19555
|
+
_context.next = 14;
|
|
19556
|
+
break;
|
|
19557
|
+
}
|
|
19558
|
+
_context.prev = 1;
|
|
19559
|
+
_context.next = 4;
|
|
19560
|
+
return steps[currentStep].validate();
|
|
19561
|
+
case 4:
|
|
19562
|
+
isValid = _context.sent;
|
|
19563
|
+
if (isValid) {
|
|
19564
|
+
_context.next = 8;
|
|
19565
|
+
break;
|
|
19566
|
+
}
|
|
19567
|
+
if (onError) {
|
|
19568
|
+
onError(steps[currentStep].errorMessage || "Validation failed on step " + (currentStep + 1));
|
|
19569
|
+
}
|
|
19570
|
+
return _context.abrupt("return");
|
|
19571
|
+
case 8:
|
|
19572
|
+
_context.next = 14;
|
|
19573
|
+
break;
|
|
19574
|
+
case 10:
|
|
19575
|
+
_context.prev = 10;
|
|
19576
|
+
_context.t0 = _context["catch"](1);
|
|
19577
|
+
if (onError) {
|
|
19578
|
+
onError("An error occurred during validation on step " + (currentStep + 1));
|
|
19579
|
+
}
|
|
19580
|
+
return _context.abrupt("return");
|
|
19581
|
+
case 14:
|
|
19582
|
+
setCurrentStep(step);
|
|
19583
|
+
case 15:
|
|
19584
|
+
case "end":
|
|
19585
|
+
return _context.stop();
|
|
19586
|
+
}
|
|
19587
|
+
}, _callee, null, [[1, 10]]);
|
|
19588
|
+
}));
|
|
19589
|
+
return function onStepChange(_x) {
|
|
19590
|
+
return _ref2.apply(this, arguments);
|
|
19591
|
+
};
|
|
19592
|
+
}();
|
|
19593
|
+
var renderArrows = function renderArrows() {
|
|
19594
|
+
var leftArrow = React.createElement(SelectArrow, {
|
|
19595
|
+
direction: "left",
|
|
19596
|
+
onPointerDown: function onPointerDown() {
|
|
19597
|
+
return onStepChange(Math.max(0, currentStep - 1));
|
|
19598
|
+
}
|
|
19599
|
+
});
|
|
19600
|
+
var rightArrow = React.createElement(SelectArrow, {
|
|
19601
|
+
direction: "right",
|
|
19602
|
+
onPointerDown: function onPointerDown() {
|
|
19603
|
+
return onStepChange(Math.min(totalSteps - 1, currentStep + 1));
|
|
19604
|
+
}
|
|
19605
|
+
});
|
|
19606
|
+
if (useSideArrows) {
|
|
19607
|
+
return React.createElement(React.Fragment, null, currentStep > 0 && React.createElement(ArrowContainer$1, {
|
|
19608
|
+
left: true
|
|
19609
|
+
}, leftArrow), currentStep < totalSteps - 1 && React.createElement(ArrowContainer$1, {
|
|
19610
|
+
right: true
|
|
19611
|
+
}, rightArrow));
|
|
19612
|
+
} else {
|
|
19613
|
+
return React.createElement(React.Fragment, null, currentStep > 0 && leftArrow, currentStep < totalSteps - 1 && rightArrow);
|
|
19614
|
+
}
|
|
19129
19615
|
};
|
|
19130
19616
|
return React.createElement(StepperContainer, {
|
|
19131
19617
|
className: "stepper-container"
|
|
@@ -19139,19 +19625,9 @@ var Stepper = function Stepper(_ref) {
|
|
|
19139
19625
|
return onStepChange(i);
|
|
19140
19626
|
}
|
|
19141
19627
|
});
|
|
19142
|
-
})), React.createElement(StepperBody, null, currentComponent), React.createElement(StepperFooter, null, currentStep
|
|
19143
|
-
direction: "left",
|
|
19144
|
-
onPointerDown: function onPointerDown() {
|
|
19145
|
-
return onStepChange(Math.max(0, currentStep - 1));
|
|
19146
|
-
}
|
|
19147
|
-
}), currentStep < totalSteps - 1 && React.createElement(SelectArrow, {
|
|
19148
|
-
direction: "right",
|
|
19149
|
-
onPointerDown: function onPointerDown() {
|
|
19150
|
-
return onStepChange(Math.min(totalSteps - 1, currentStep + 1));
|
|
19151
|
-
}
|
|
19152
|
-
}), currentStep === totalSteps - 1 && finalCTAButton && React.createElement(Button, {
|
|
19628
|
+
})), React.createElement(StepperBodyContainer, null, useSideArrows && renderArrows(), React.createElement(StepperBody, null, currentComponent)), React.createElement(StepperFooter, null, !useSideArrows && renderArrows(), currentStep === totalSteps - 1 && finalCTAButton && React.createElement(Button, {
|
|
19153
19629
|
buttonType: ButtonTypes.RPGUIButton,
|
|
19154
|
-
|
|
19630
|
+
onClick: finalCTAButton.onClick
|
|
19155
19631
|
}, finalCTAButton.label)));
|
|
19156
19632
|
};
|
|
19157
19633
|
var StepperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -19162,24 +19638,39 @@ var StepperTop = /*#__PURE__*/styled.div.withConfig({
|
|
|
19162
19638
|
displayName: "Stepper__StepperTop",
|
|
19163
19639
|
componentId: "sc-13obf1-1"
|
|
19164
19640
|
})(["flex:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin-bottom:1rem;"]);
|
|
19641
|
+
var StepperBodyContainer = /*#__PURE__*/styled.div.withConfig({
|
|
19642
|
+
displayName: "Stepper__StepperBodyContainer",
|
|
19643
|
+
componentId: "sc-13obf1-2"
|
|
19644
|
+
})(["flex:8;display:flex;align-items:center;position:relative;"]);
|
|
19165
19645
|
var StepperBody = /*#__PURE__*/styled.div.withConfig({
|
|
19166
19646
|
displayName: "Stepper__StepperBody",
|
|
19167
|
-
componentId: "sc-13obf1-
|
|
19168
|
-
})(["flex:
|
|
19647
|
+
componentId: "sc-13obf1-3"
|
|
19648
|
+
})(["flex:1;"]);
|
|
19649
|
+
var ArrowContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
19650
|
+
displayName: "Stepper__ArrowContainer",
|
|
19651
|
+
componentId: "sc-13obf1-4"
|
|
19652
|
+
})(["position:absolute;top:50%;transform:translateY(-50%);", " ", ""], function (props) {
|
|
19653
|
+
return props.left && 'left: -30px;';
|
|
19654
|
+
}, function (props) {
|
|
19655
|
+
return props.right && 'right: -30px;';
|
|
19656
|
+
});
|
|
19169
19657
|
var StepperFooter = /*#__PURE__*/styled.div.withConfig({
|
|
19170
19658
|
displayName: "Stepper__StepperFooter",
|
|
19171
|
-
componentId: "sc-13obf1-
|
|
19172
|
-
})(["margin-top:1rem;flex:1;display:flex;justify-content:flex-end;"]);
|
|
19659
|
+
componentId: "sc-13obf1-5"
|
|
19660
|
+
})(["margin-top:1rem;flex:1;display:flex;justify-content:flex-end;align-items:center;"]);
|
|
19173
19661
|
var ProgressIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
19174
19662
|
displayName: "Stepper__ProgressIndicator",
|
|
19175
|
-
componentId: "sc-13obf1-
|
|
19176
|
-
})(["width:20px;height:20px;
|
|
19177
|
-
var isActive = _ref2.isActive;
|
|
19178
|
-
return isActive ? uiColors.orange : uiColors.lightGray;
|
|
19179
|
-
}, function (_ref3) {
|
|
19663
|
+
componentId: "sc-13obf1-6"
|
|
19664
|
+
})(["width:20px;height:20px;background-color:", ";margin:0 5px;transition:background-color 0.3s;opacity:", ";border:1px solid ", ";cursor:pointer;clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);box-shadow:", ";border-radius:0;"], function (_ref3) {
|
|
19180
19665
|
var isActive = _ref3.isActive;
|
|
19666
|
+
return isActive ? uiColors.orange : uiColors.lightGray;
|
|
19667
|
+
}, function (_ref4) {
|
|
19668
|
+
var isActive = _ref4.isActive;
|
|
19181
19669
|
return isActive ? 1 : 0.25;
|
|
19182
|
-
}, uiColors.raisinBlack)
|
|
19670
|
+
}, uiColors.raisinBlack, function (_ref5) {
|
|
19671
|
+
var isActive = _ref5.isActive;
|
|
19672
|
+
return isActive ? '0 0 0 1px black, 1px 1px 0 1px black, 2px 2px 0 1px black, -1px -1px 0 1px black' : '0 0 0 1px black, 1px 1px 0 1px gray, 2px 2px 0 1px gray, -1px -1px 0 1px gray';
|
|
19673
|
+
});
|
|
19183
19674
|
|
|
19184
19675
|
var TextArea = function TextArea(_ref) {
|
|
19185
19676
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
@@ -19453,7 +19944,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
19453
19944
|
style: {
|
|
19454
19945
|
width: '100%'
|
|
19455
19946
|
}
|
|
19456
|
-
}, React.createElement(Title$
|
|
19947
|
+
}, React.createElement(Title$d, null, Capitalize(type), " Menu"), React.createElement("hr", {
|
|
19457
19948
|
className: "golden"
|
|
19458
19949
|
})), React.createElement(TradingComponentScrollWrapper, {
|
|
19459
19950
|
id: "TraderContainer"
|
|
@@ -19471,7 +19962,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
19471
19962
|
scale: scale,
|
|
19472
19963
|
isBuy: isBuy()
|
|
19473
19964
|
}));
|
|
19474
|
-
})), React.createElement(GoldWrapper, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(TotalWrapper, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertWrapper, null, React.createElement("p", null, " Sorry, not enough money.")) : React.createElement(GoldWrapper, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2))), React.createElement(ButtonWrapper$
|
|
19965
|
+
})), React.createElement(GoldWrapper, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(TotalWrapper, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertWrapper, null, React.createElement("p", null, " Sorry, not enough money.")) : React.createElement(GoldWrapper, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
19475
19966
|
buttonType: ButtonTypes.RPGUIButton,
|
|
19476
19967
|
disabled: !hasGoldForSale(),
|
|
19477
19968
|
onPointerDown: function onPointerDown() {
|
|
@@ -19484,7 +19975,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
19484
19975
|
}
|
|
19485
19976
|
}, "Cancel"))));
|
|
19486
19977
|
};
|
|
19487
|
-
var Title$
|
|
19978
|
+
var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
19488
19979
|
displayName: "TradingMenu__Title",
|
|
19489
19980
|
componentId: "sc-1wjsz1l-0"
|
|
19490
19981
|
})(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -19508,7 +19999,7 @@ var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
19508
19999
|
displayName: "TradingMenu__AlertWrapper",
|
|
19509
20000
|
componentId: "sc-1wjsz1l-5"
|
|
19510
20001
|
})(["margin-top:1rem;display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
|
|
19511
|
-
var ButtonWrapper$
|
|
20002
|
+
var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
19512
20003
|
displayName: "TradingMenu__ButtonWrapper",
|
|
19513
20004
|
componentId: "sc-1wjsz1l-6"
|
|
19514
20005
|
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;button{padding:0px 50px;}"]);
|
|
@@ -19529,91 +20020,45 @@ var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
|
19529
20020
|
return props.maxLines;
|
|
19530
20021
|
});
|
|
19531
20022
|
|
|
19532
|
-
var
|
|
19533
|
-
var
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
20023
|
+
var TutorialStepper = function TutorialStepper(_ref) {
|
|
20024
|
+
var lessons = _ref.lessons,
|
|
20025
|
+
onLessonFinish = _ref.onLessonFinish;
|
|
20026
|
+
var generateLessons = function generateLessons() {
|
|
20027
|
+
return lessons.map(function (lesson, index) {
|
|
20028
|
+
return {
|
|
20029
|
+
component: React.createElement("div", null, React.createElement("h1", null, lesson.title), lesson.image && React.createElement(LessonImage, null, React.createElement("img", {
|
|
20030
|
+
src: lesson.image,
|
|
20031
|
+
alt: lesson.title
|
|
20032
|
+
})), lesson.body && React.createElement(LessonBody, null, lesson.body), lesson.text && React.createElement(DynamicText, {
|
|
20033
|
+
text: lesson.text
|
|
20034
|
+
})),
|
|
20035
|
+
id: index
|
|
20036
|
+
};
|
|
20037
|
+
});
|
|
19545
20038
|
};
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
type: RPGUIContainerTypes.Framed,
|
|
19553
|
-
width: "500px",
|
|
19554
|
-
cancelDrag: ".equipment-container-body .arrow-selector",
|
|
19555
|
-
onCloseButton: function onCloseButton() {
|
|
19556
|
-
if (onClose) {
|
|
19557
|
-
onClose();
|
|
19558
|
-
}
|
|
19559
|
-
}
|
|
19560
|
-
}, React.createElement("div", {
|
|
19561
|
-
style: {
|
|
19562
|
-
width: '100%'
|
|
19563
|
-
}
|
|
19564
|
-
}, React.createElement(Title$d, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
19565
|
-
className: "golden"
|
|
19566
|
-
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
19567
|
-
return React.createElement(RadioOptionsWrapper$1, {
|
|
19568
|
-
key: index
|
|
19569
|
-
}, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
|
|
19570
|
-
atlasIMG: atlasIMG,
|
|
19571
|
-
atlasJSON: atlasJSON,
|
|
19572
|
-
spriteKey: option.imageKey,
|
|
19573
|
-
imgScale: 3
|
|
19574
|
-
})), React.createElement("div", null, React.createElement("input", {
|
|
19575
|
-
className: "rpgui-radio",
|
|
19576
|
-
type: "radio",
|
|
19577
|
-
value: option.name,
|
|
19578
|
-
name: "test"
|
|
19579
|
-
}), React.createElement("label", {
|
|
19580
|
-
onPointerDown: handleClick,
|
|
19581
|
-
style: {
|
|
19582
|
-
display: 'flex',
|
|
19583
|
-
alignItems: 'center'
|
|
20039
|
+
return React.createElement(Container$y, null, React.createElement(Stepper, {
|
|
20040
|
+
steps: generateLessons(),
|
|
20041
|
+
finalCTAButton: {
|
|
20042
|
+
label: 'Close',
|
|
20043
|
+
onClick: function onClick() {
|
|
20044
|
+
onLessonFinish();
|
|
19584
20045
|
}
|
|
19585
|
-
},
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
onPointerDown: onClose
|
|
19589
|
-
}, "Cancel"), React.createElement(Button, {
|
|
19590
|
-
buttonType: ButtonTypes.RPGUIButton
|
|
19591
|
-
}, "Select")));
|
|
20046
|
+
},
|
|
20047
|
+
useSideArrows: true
|
|
20048
|
+
}));
|
|
19592
20049
|
};
|
|
19593
|
-
var
|
|
19594
|
-
displayName: "
|
|
19595
|
-
componentId: "sc-
|
|
19596
|
-
})(["
|
|
19597
|
-
var
|
|
19598
|
-
displayName: "
|
|
19599
|
-
componentId: "sc-
|
|
19600
|
-
})(["
|
|
19601
|
-
var
|
|
19602
|
-
displayName: "
|
|
19603
|
-
componentId: "sc-
|
|
19604
|
-
})(["
|
|
19605
|
-
var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
19606
|
-
displayName: "ItemSelector__SpriteAtlasWrapper",
|
|
19607
|
-
componentId: "sc-gptoxp-3"
|
|
19608
|
-
})(["margin-right:40px;"]);
|
|
19609
|
-
var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
19610
|
-
displayName: "ItemSelector__RadioOptionsWrapper",
|
|
19611
|
-
componentId: "sc-gptoxp-4"
|
|
19612
|
-
})(["display:flex;align-items:stretch;margin-bottom:40px;"]);
|
|
19613
|
-
var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
19614
|
-
displayName: "ItemSelector__ButtonWrapper",
|
|
19615
|
-
componentId: "sc-gptoxp-5"
|
|
19616
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
20050
|
+
var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
20051
|
+
displayName: "TutorialStepper__LessonBody",
|
|
20052
|
+
componentId: "sc-7tgzv2-0"
|
|
20053
|
+
})([""]);
|
|
20054
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
20055
|
+
displayName: "TutorialStepper__Container",
|
|
20056
|
+
componentId: "sc-7tgzv2-1"
|
|
20057
|
+
})(["margin:2rem;"]);
|
|
20058
|
+
var LessonImage = /*#__PURE__*/styled.div.withConfig({
|
|
20059
|
+
displayName: "TutorialStepper__LessonImage",
|
|
20060
|
+
componentId: "sc-7tgzv2-2"
|
|
20061
|
+
})(["display:flex;justify-content:center;align-items:center;img{width:600px;height:400px;border-radius:10px;}"]);
|
|
19617
20062
|
|
|
19618
|
-
export { AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
20063
|
+
export { AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, TutorialStepper, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
19619
20064
|
//# sourceMappingURL=long-bow.esm.js.map
|