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