@rpg-engine/long-bow 0.8.126 → 0.8.128
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/LoginStreak/LoginStreakPanel.d.ts +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +230 -104
- 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 +230 -105
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Features/loginStreak/LoginStreakPanel.stories.d.ts +1 -0
- package/package.json +2 -2
- package/src/components/LoginStreak/LoginStreakPanel.tsx +241 -0
- package/src/index.tsx +1 -0
- package/src/stories/Features/loginStreak/LoginStreakPanel.stories.tsx +134 -0
|
@@ -30192,6 +30192,171 @@ var TaskTitle$1 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
30192
30192
|
return props.isMobile ? '4px 0' : '8px 0';
|
|
30193
30193
|
});
|
|
30194
30194
|
|
|
30195
|
+
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
30196
|
+
var value = _ref.value,
|
|
30197
|
+
_ref$bgColor = _ref.bgColor,
|
|
30198
|
+
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
30199
|
+
_ref$margin = _ref.margin,
|
|
30200
|
+
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
30201
|
+
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
30202
|
+
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
30203
|
+
return React__default.createElement(Container$j, {
|
|
30204
|
+
className: "simple-progress-bar"
|
|
30205
|
+
}, React__default.createElement(ProgressBarContainer, {
|
|
30206
|
+
margin: margin
|
|
30207
|
+
}, React__default.createElement(BackgroundBar, null, React__default.createElement(Progress, {
|
|
30208
|
+
width: width,
|
|
30209
|
+
bgColor: bgColor
|
|
30210
|
+
}))));
|
|
30211
|
+
};
|
|
30212
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
30213
|
+
displayName: "SimpleProgressBar__Container",
|
|
30214
|
+
componentId: "sc-mbeil3-0"
|
|
30215
|
+
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
30216
|
+
var BackgroundBar = /*#__PURE__*/styled__default.span.withConfig({
|
|
30217
|
+
displayName: "SimpleProgressBar__BackgroundBar",
|
|
30218
|
+
componentId: "sc-mbeil3-1"
|
|
30219
|
+
})(["background-color:rgba(0,0,0,0.075);"]);
|
|
30220
|
+
var Progress = /*#__PURE__*/styled__default.span.withConfig({
|
|
30221
|
+
displayName: "SimpleProgressBar__Progress",
|
|
30222
|
+
componentId: "sc-mbeil3-2"
|
|
30223
|
+
})(["background-color:", ";width:", "%;transition:width 0.5s ease-in-out;"], function (props) {
|
|
30224
|
+
return props.bgColor;
|
|
30225
|
+
}, function (props) {
|
|
30226
|
+
return props.width.toFixed(2);
|
|
30227
|
+
});
|
|
30228
|
+
var ProgressBarContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30229
|
+
displayName: "SimpleProgressBar__ProgressBarContainer",
|
|
30230
|
+
componentId: "sc-mbeil3-3"
|
|
30231
|
+
})(["border-radius:60px;border:1px solid #282424;overflow:hidden;width:100%;span{display:block;height:100%;}height:8px;margin-left:", "px;"], function (props) {
|
|
30232
|
+
return props.margin;
|
|
30233
|
+
});
|
|
30234
|
+
|
|
30235
|
+
var getMotivationalText = function getMotivationalText(streak, isConsecutive, milestones) {
|
|
30236
|
+
if (!isConsecutive && streak === 1) {
|
|
30237
|
+
return 'Your streak has reset. Log in daily to build it back up!';
|
|
30238
|
+
}
|
|
30239
|
+
var nextMilestone = milestones.find(function (m) {
|
|
30240
|
+
return !m.reached;
|
|
30241
|
+
});
|
|
30242
|
+
if (nextMilestone) {
|
|
30243
|
+
var daysUntil = nextMilestone.day - streak;
|
|
30244
|
+
return daysUntil + " day" + (daysUntil !== 1 ? 's' : '') + " until Day " + nextMilestone.day + " reward!";
|
|
30245
|
+
}
|
|
30246
|
+
return 'Amazing streak! Keep it going for maximum XP bonus!';
|
|
30247
|
+
};
|
|
30248
|
+
var LoginStreakPanel = function LoginStreakPanel(_ref) {
|
|
30249
|
+
var streak = _ref.streak,
|
|
30250
|
+
longestStreak = _ref.longestStreak,
|
|
30251
|
+
xpBonusPercent = _ref.xpBonusPercent,
|
|
30252
|
+
maxXpBonusPercent = _ref.maxXpBonusPercent,
|
|
30253
|
+
isConsecutive = _ref.isConsecutive,
|
|
30254
|
+
milestones = _ref.milestones,
|
|
30255
|
+
milestoneRewardGranted = _ref.milestoneRewardGranted,
|
|
30256
|
+
onClose = _ref.onClose;
|
|
30257
|
+
var isMobile = shared.isMobileOrTablet();
|
|
30258
|
+
var isMaxBonus = xpBonusPercent >= maxXpBonusPercent;
|
|
30259
|
+
return React__default.createElement(DraggableContainer, {
|
|
30260
|
+
title: "Login Streak",
|
|
30261
|
+
onCloseButton: onClose,
|
|
30262
|
+
type: exports.RPGUIContainerTypes.Framed,
|
|
30263
|
+
width: isMobile ? '90vw' : '380px'
|
|
30264
|
+
}, React__default.createElement(Container$k, null, React__default.createElement(StreakHeader, null, React__default.createElement(StreakDay, null, streak === 1 && !isConsecutive ? 'Day 1 — Fresh Start!' : "Day " + streak + " Streak!"), React__default.createElement(LongestStreak, null, "Longest: ", longestStreak, " days")), React__default.createElement(XPBonusSection, null, React__default.createElement(XPBonusLabel, null, "XP Bonus: ", React__default.createElement(XPBonusValue, {
|
|
30265
|
+
isMax: isMaxBonus
|
|
30266
|
+
}, "+", xpBonusPercent, "%"), isMaxBonus && React__default.createElement(MaxTag, null, " MAX")), React__default.createElement(SimpleProgressBar, {
|
|
30267
|
+
value: maxXpBonusPercent > 0 ? xpBonusPercent / maxXpBonusPercent * 100 : 0,
|
|
30268
|
+
bgColor: isMaxBonus ? uiColors.darkYellow : uiColors.lightGreen,
|
|
30269
|
+
margin: 0
|
|
30270
|
+
}), React__default.createElement(ProgressLabel, null, xpBonusPercent, "% / ", maxXpBonusPercent, "% max")), milestoneRewardGranted && React__default.createElement(RewardToast, null, React__default.createElement(RewardText, null, "Milestone reward: ", milestoneRewardGranted.quantity, "x ", milestoneRewardGranted.itemName, "!")), React__default.createElement("hr", {
|
|
30271
|
+
className: "golden"
|
|
30272
|
+
}), React__default.createElement(SectionLabel, null, "Milestone Rewards"), React__default.createElement(MilestoneList, null, milestones.map(function (milestone) {
|
|
30273
|
+
return React__default.createElement(MilestoneCard, {
|
|
30274
|
+
key: milestone.day,
|
|
30275
|
+
"$reached": milestone.reached
|
|
30276
|
+
}, React__default.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React__default.createElement(MilestoneRewardName, null, milestone.quantity, "x ", milestone.itemName), React__default.createElement(MilestoneBadge, {
|
|
30277
|
+
"$reached": milestone.reached
|
|
30278
|
+
}, milestone.reached ? '✓' : '○'));
|
|
30279
|
+
})), React__default.createElement(MotivationalText, null, getMotivationalText(streak, isConsecutive, milestones))));
|
|
30280
|
+
};
|
|
30281
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
30282
|
+
displayName: "LoginStreakPanel__Container",
|
|
30283
|
+
componentId: "sc-1eiinkh-0"
|
|
30284
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:4px 14px 14px;color:", ";width:100%;box-sizing:border-box;hr.golden{margin:4px 0;}"], uiColors.white);
|
|
30285
|
+
var StreakHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
30286
|
+
displayName: "LoginStreakPanel__StreakHeader",
|
|
30287
|
+
componentId: "sc-1eiinkh-1"
|
|
30288
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
30289
|
+
var StreakDay = /*#__PURE__*/styled__default.h2.withConfig({
|
|
30290
|
+
displayName: "LoginStreakPanel__StreakDay",
|
|
30291
|
+
componentId: "sc-1eiinkh-2"
|
|
30292
|
+
})(["&&{margin:0;padding:0;font-size:", ";font-weight:bold;color:", ";text-shadow:1px 1px 2px rgba(0,0,0,0.7);text-align:left;}"], uiFonts.size.xLarge, uiColors.yellow);
|
|
30293
|
+
var LongestStreak = /*#__PURE__*/styled__default.div.withConfig({
|
|
30294
|
+
displayName: "LoginStreakPanel__LongestStreak",
|
|
30295
|
+
componentId: "sc-1eiinkh-3"
|
|
30296
|
+
})(["font-size:", ";color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
30297
|
+
var XPBonusSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
30298
|
+
displayName: "LoginStreakPanel__XPBonusSection",
|
|
30299
|
+
componentId: "sc-1eiinkh-4"
|
|
30300
|
+
})(["display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:rgba(0,0,0,0.4);border:1px solid ", ";border-radius:4px;"], uiColors.darkGray);
|
|
30301
|
+
var XPBonusLabel = /*#__PURE__*/styled__default.div.withConfig({
|
|
30302
|
+
displayName: "LoginStreakPanel__XPBonusLabel",
|
|
30303
|
+
componentId: "sc-1eiinkh-5"
|
|
30304
|
+
})(["font-size:", ";"], uiFonts.size.medium);
|
|
30305
|
+
var XPBonusValue = /*#__PURE__*/styled__default.span.withConfig({
|
|
30306
|
+
displayName: "LoginStreakPanel__XPBonusValue",
|
|
30307
|
+
componentId: "sc-1eiinkh-6"
|
|
30308
|
+
})(["color:", ";font-weight:bold;"], function (p) {
|
|
30309
|
+
return p.isMax ? uiColors.darkYellow : uiColors.lightGreen;
|
|
30310
|
+
});
|
|
30311
|
+
var MaxTag = /*#__PURE__*/styled__default.span.withConfig({
|
|
30312
|
+
displayName: "LoginStreakPanel__MaxTag",
|
|
30313
|
+
componentId: "sc-1eiinkh-7"
|
|
30314
|
+
})(["color:", ";font-size:", ";font-weight:bold;letter-spacing:1px;margin-left:2px;"], uiColors.darkYellow, uiFonts.size.xsmall);
|
|
30315
|
+
var ProgressLabel = /*#__PURE__*/styled__default.div.withConfig({
|
|
30316
|
+
displayName: "LoginStreakPanel__ProgressLabel",
|
|
30317
|
+
componentId: "sc-1eiinkh-8"
|
|
30318
|
+
})(["font-size:", ";color:", ";text-align:right;"], uiFonts.size.xsmall, uiColors.lightGray);
|
|
30319
|
+
var RewardToast = /*#__PURE__*/styled__default.div.withConfig({
|
|
30320
|
+
displayName: "LoginStreakPanel__RewardToast",
|
|
30321
|
+
componentId: "sc-1eiinkh-9"
|
|
30322
|
+
})(["padding:8px 12px;background:rgba(255,200,87,0.15);border:1px solid ", ";border-radius:4px;"], uiColors.darkYellow);
|
|
30323
|
+
var RewardText = /*#__PURE__*/styled__default.div.withConfig({
|
|
30324
|
+
displayName: "LoginStreakPanel__RewardText",
|
|
30325
|
+
componentId: "sc-1eiinkh-10"
|
|
30326
|
+
})(["font-size:", ";color:", ";font-weight:bold;"], uiFonts.size.small, uiColors.darkYellow);
|
|
30327
|
+
var SectionLabel = /*#__PURE__*/styled__default.div.withConfig({
|
|
30328
|
+
displayName: "LoginStreakPanel__SectionLabel",
|
|
30329
|
+
componentId: "sc-1eiinkh-11"
|
|
30330
|
+
})(["font-size:", ";color:", ";text-transform:uppercase;letter-spacing:1px;"], uiFonts.size.xsmall, uiColors.lightGray);
|
|
30331
|
+
var MilestoneList = /*#__PURE__*/styled__default.div.withConfig({
|
|
30332
|
+
displayName: "LoginStreakPanel__MilestoneList",
|
|
30333
|
+
componentId: "sc-1eiinkh-12"
|
|
30334
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
30335
|
+
var MilestoneCard = /*#__PURE__*/styled__default.div.withConfig({
|
|
30336
|
+
displayName: "LoginStreakPanel__MilestoneCard",
|
|
30337
|
+
componentId: "sc-1eiinkh-13"
|
|
30338
|
+
})(["display:flex;align-items:center;gap:10px;padding:8px 12px;background:rgba(0,0,0,0.6);border:1px solid ", ";border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,0.4);opacity:", ";transition:opacity 0.2s ease;"], uiColors.darkGray, function (p) {
|
|
30339
|
+
return p.$reached ? 1 : 0.5;
|
|
30340
|
+
});
|
|
30341
|
+
var MilestoneDayLabel = /*#__PURE__*/styled__default.div.withConfig({
|
|
30342
|
+
displayName: "LoginStreakPanel__MilestoneDayLabel",
|
|
30343
|
+
componentId: "sc-1eiinkh-14"
|
|
30344
|
+
})(["font-size:", ";font-weight:bold;color:", ";width:44px;flex-shrink:0;"], uiFonts.size.small, uiColors.darkYellow);
|
|
30345
|
+
var MilestoneRewardName = /*#__PURE__*/styled__default.div.withConfig({
|
|
30346
|
+
displayName: "LoginStreakPanel__MilestoneRewardName",
|
|
30347
|
+
componentId: "sc-1eiinkh-15"
|
|
30348
|
+
})(["font-size:", ";color:", ";flex:1;"], uiFonts.size.small, uiColors.white);
|
|
30349
|
+
var MilestoneBadge = /*#__PURE__*/styled__default.div.withConfig({
|
|
30350
|
+
displayName: "LoginStreakPanel__MilestoneBadge",
|
|
30351
|
+
componentId: "sc-1eiinkh-16"
|
|
30352
|
+
})(["font-size:", ";color:", ";font-weight:bold;flex-shrink:0;"], uiFonts.size.medium, function (p) {
|
|
30353
|
+
return p.$reached ? uiColors.lightGreen : uiColors.lightGray;
|
|
30354
|
+
});
|
|
30355
|
+
var MotivationalText = /*#__PURE__*/styled__default.div.withConfig({
|
|
30356
|
+
displayName: "LoginStreakPanel__MotivationalText",
|
|
30357
|
+
componentId: "sc-1eiinkh-17"
|
|
30358
|
+
})(["font-size:", ";color:", ";text-align:center;font-style:italic;padding-top:2px;"], uiFonts.size.small, uiColors.lightGray);
|
|
30359
|
+
|
|
30195
30360
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
30196
30361
|
var DPadButton = /*#__PURE__*/React.memo( /*#__PURE__*/styled__default.div.withConfig({
|
|
30197
30362
|
displayName: "JoystickDPad__DPadButton",
|
|
@@ -30551,7 +30716,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30551
30716
|
var centeredX = x - OFFSET$1;
|
|
30552
30717
|
var centeredY = y - OFFSET$1;
|
|
30553
30718
|
var stackInfo = onRenderStackInfo((_item$_id = item == null ? void 0 : item._id) != null ? _item$_id : '', (_item$stackQty = item == null ? void 0 : item.stackQty) != null ? _item$stackQty : 0);
|
|
30554
|
-
return React__default.createElement(Container$
|
|
30719
|
+
return React__default.createElement(Container$l, null, React__default.createElement(SpriteContainer, {
|
|
30555
30720
|
x: centeredX,
|
|
30556
30721
|
y: centeredY
|
|
30557
30722
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -30569,7 +30734,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30569
30734
|
}), stackInfo));
|
|
30570
30735
|
};
|
|
30571
30736
|
var pulse = "\n @keyframes pulse {\n 0%, 100% {\n transform: scale(1) rotate(-3deg);\n }\n 50% {\n transform: scale(0.95) rotate(-3deg);\n }\n }\n";
|
|
30572
|
-
var Container$
|
|
30737
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30573
30738
|
displayName: "DraggedItem__Container",
|
|
30574
30739
|
componentId: "sc-mlzzcp-0"
|
|
30575
30740
|
})(["position:relative;"]);
|
|
@@ -30606,7 +30771,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30606
30771
|
document.removeEventListener('clickOutside', handleClickOutside);
|
|
30607
30772
|
};
|
|
30608
30773
|
}, [handleClickOutside]);
|
|
30609
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
30774
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$m, Object.assign({
|
|
30610
30775
|
fontSize: fontSize,
|
|
30611
30776
|
ref: ref
|
|
30612
30777
|
}, pos), React__default.createElement("ul", {
|
|
@@ -30623,7 +30788,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30623
30788
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30624
30789
|
}))));
|
|
30625
30790
|
};
|
|
30626
|
-
var Container$
|
|
30791
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30627
30792
|
displayName: "RelativeListMenu__Container",
|
|
30628
30793
|
componentId: "sc-7hohf-0"
|
|
30629
30794
|
})(["position:absolute;top:", "px;left:", "px;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
|
|
@@ -31188,7 +31353,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31188
31353
|
var _useState2 = React.useState(false),
|
|
31189
31354
|
showGoNextIndicator = _useState2[0],
|
|
31190
31355
|
setShowGoNextIndicator = _useState2[1];
|
|
31191
|
-
return React__default.createElement(Container$
|
|
31356
|
+
return React__default.createElement(Container$n, null, React__default.createElement(DynamicText, {
|
|
31192
31357
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
31193
31358
|
onFinish: function onFinish() {
|
|
31194
31359
|
setShowGoNextIndicator(true);
|
|
@@ -31206,7 +31371,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31206
31371
|
}
|
|
31207
31372
|
}));
|
|
31208
31373
|
};
|
|
31209
|
-
var Container$
|
|
31374
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
31210
31375
|
displayName: "NPCDialogText__Container",
|
|
31211
31376
|
componentId: "sc-1cxkdh9-0"
|
|
31212
31377
|
})([""]);
|
|
@@ -31358,7 +31523,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31358
31523
|
return null;
|
|
31359
31524
|
});
|
|
31360
31525
|
};
|
|
31361
|
-
return React__default.createElement(Container$
|
|
31526
|
+
return React__default.createElement(Container$o, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
31362
31527
|
text: currentQuestion.text,
|
|
31363
31528
|
onStart: function onStart() {
|
|
31364
31529
|
return setCanShowAnswers(false);
|
|
@@ -31368,7 +31533,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31368
31533
|
}
|
|
31369
31534
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31370
31535
|
};
|
|
31371
|
-
var Container$
|
|
31536
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31372
31537
|
displayName: "QuestionDialog__Container",
|
|
31373
31538
|
componentId: "sc-bxc5u0-0"
|
|
31374
31539
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31428,7 +31593,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31428
31593
|
}
|
|
31429
31594
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
31430
31595
|
src: imagePath || img$7
|
|
31431
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31596
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$p, null, React__default.createElement(CloseIcon, {
|
|
31432
31597
|
onPointerDown: _onClose
|
|
31433
31598
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
31434
31599
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31444,7 +31609,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31444
31609
|
src: imagePath || img$7
|
|
31445
31610
|
})))));
|
|
31446
31611
|
};
|
|
31447
|
-
var Container$
|
|
31612
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31448
31613
|
displayName: "NPCDialog__Container",
|
|
31449
31614
|
componentId: "sc-1b4aw74-0"
|
|
31450
31615
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31504,7 +31669,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31504
31669
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
31505
31670
|
width: '50%',
|
|
31506
31671
|
height: '180px'
|
|
31507
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31672
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$q, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
31508
31673
|
flex: '70%'
|
|
31509
31674
|
}, React__default.createElement(NPCDialogText, {
|
|
31510
31675
|
onStartStep: function onStartStep() {
|
|
@@ -31546,7 +31711,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31546
31711
|
src: img$6
|
|
31547
31712
|
}))), ")"));
|
|
31548
31713
|
};
|
|
31549
|
-
var Container$
|
|
31714
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31550
31715
|
displayName: "NPCMultiDialog__Container",
|
|
31551
31716
|
componentId: "sc-rvu5wg-0"
|
|
31552
31717
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31913,7 +32078,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31913
32078
|
totalPages = _ref.totalPages,
|
|
31914
32079
|
onPageChange = _ref.onPageChange,
|
|
31915
32080
|
className = _ref.className;
|
|
31916
|
-
return React__default.createElement(Container$
|
|
32081
|
+
return React__default.createElement(Container$r, {
|
|
31917
32082
|
className: className
|
|
31918
32083
|
}, React__default.createElement(PaginationButton$1, {
|
|
31919
32084
|
onClick: function onClick() {
|
|
@@ -31931,7 +32096,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31931
32096
|
size: 12
|
|
31932
32097
|
})));
|
|
31933
32098
|
};
|
|
31934
|
-
var Container$
|
|
32099
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31935
32100
|
displayName: "Pagination__Container",
|
|
31936
32101
|
componentId: "sc-3k4m4u-0"
|
|
31937
32102
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -32039,7 +32204,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32039
32204
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
32040
32205
|
paginatedItems = _usePagination.paginatedItems,
|
|
32041
32206
|
totalPages = _usePagination.totalPages;
|
|
32042
|
-
return React__default.createElement(Container$
|
|
32207
|
+
return React__default.createElement(Container$s, {
|
|
32043
32208
|
className: className
|
|
32044
32209
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
32045
32210
|
searchOptions: searchOptions,
|
|
@@ -32061,7 +32226,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32061
32226
|
onPageChange: setCurrentPage
|
|
32062
32227
|
}))));
|
|
32063
32228
|
};
|
|
32064
|
-
var Container$
|
|
32229
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32065
32230
|
displayName: "PaginatedContent__Container",
|
|
32066
32231
|
componentId: "sc-lzp9hn-0"
|
|
32067
32232
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -32183,7 +32348,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32183
32348
|
atlasIMG = _ref.atlasIMG,
|
|
32184
32349
|
onBack = _ref.onBack,
|
|
32185
32350
|
children = _ref.children;
|
|
32186
|
-
return React__default.createElement(Container$
|
|
32351
|
+
return React__default.createElement(Container$t, null, React__default.createElement(Overlay, {
|
|
32187
32352
|
onClick: onBack
|
|
32188
32353
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
32189
32354
|
onClick: onBack
|
|
@@ -32196,7 +32361,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32196
32361
|
imgScale: 1
|
|
32197
32362
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32198
32363
|
};
|
|
32199
|
-
var Container$
|
|
32364
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32200
32365
|
displayName: "BaseInformationDetails__Container",
|
|
32201
32366
|
componentId: "sc-1vguuz8-0"
|
|
32202
32367
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -32238,7 +32403,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32238
32403
|
var _useState = React.useState(defaultOpen),
|
|
32239
32404
|
isOpen = _useState[0],
|
|
32240
32405
|
setIsOpen = _useState[1];
|
|
32241
|
-
return React__default.createElement(Container$
|
|
32406
|
+
return React__default.createElement(Container$u, {
|
|
32242
32407
|
className: className
|
|
32243
32408
|
}, React__default.createElement(Header$3, {
|
|
32244
32409
|
onClick: function onClick() {
|
|
@@ -32246,7 +32411,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32246
32411
|
}
|
|
32247
32412
|
}, React__default.createElement(Title$4, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$2, null, children));
|
|
32248
32413
|
};
|
|
32249
|
-
var Container$
|
|
32414
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32250
32415
|
displayName: "Collapsible__Container",
|
|
32251
32416
|
componentId: "sc-s4h8ey-0"
|
|
32252
32417
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -32576,7 +32741,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32576
32741
|
onClose();
|
|
32577
32742
|
}
|
|
32578
32743
|
};
|
|
32579
|
-
return React__default.createElement(Container$
|
|
32744
|
+
return React__default.createElement(Container$v, null, React__default.createElement(FilterButton, {
|
|
32580
32745
|
onClick: onToggle,
|
|
32581
32746
|
"$hasActiveFilters": hasActiveFilters,
|
|
32582
32747
|
ref: buttonRef
|
|
@@ -32607,7 +32772,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32607
32772
|
onClick: onClearAll
|
|
32608
32773
|
}, "Clear All Filters"))));
|
|
32609
32774
|
};
|
|
32610
|
-
var Container$
|
|
32775
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
32611
32776
|
displayName: "AdvancedFilters__Container",
|
|
32612
32777
|
componentId: "sc-1xj6ldr-0"
|
|
32613
32778
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -33701,7 +33866,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33701
33866
|
minWidth: "300px",
|
|
33702
33867
|
cancelDrag: ".PaginatedContent-content",
|
|
33703
33868
|
onCloseButton: onClose
|
|
33704
|
-
}, React__default.createElement(Container$
|
|
33869
|
+
}, React__default.createElement(Container$w, null, React__default.createElement(InternalTabs, {
|
|
33705
33870
|
tabs: tabs,
|
|
33706
33871
|
activeTextColor: "#000000",
|
|
33707
33872
|
activeTab: activeTab,
|
|
@@ -33712,7 +33877,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33712
33877
|
hoverColor: "#fef3c7"
|
|
33713
33878
|
})));
|
|
33714
33879
|
};
|
|
33715
|
-
var Container$
|
|
33880
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
33716
33881
|
displayName: "InformationCenter__Container",
|
|
33717
33882
|
componentId: "sc-1ttl62e-0"
|
|
33718
33883
|
})(["width:100%;max-width:100%;margin:0 auto;padding:0.125rem;overflow:hidden;box-sizing:border-box;@media (min-width:320px){padding:0.25rem;}@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.75rem;}"]);
|
|
@@ -33883,7 +34048,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33883
34048
|
}
|
|
33884
34049
|
return null;
|
|
33885
34050
|
};
|
|
33886
|
-
return React__default.createElement(Container$
|
|
34051
|
+
return React__default.createElement(Container$x, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
33887
34052
|
id: "shortcuts_list"
|
|
33888
34053
|
}, Array.from({
|
|
33889
34054
|
length: 12
|
|
@@ -33901,7 +34066,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33901
34066
|
}, getContent(i));
|
|
33902
34067
|
})));
|
|
33903
34068
|
};
|
|
33904
|
-
var Container$
|
|
34069
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
33905
34070
|
displayName: "ShortcutsSetter__Container",
|
|
33906
34071
|
componentId: "sc-xuouuf-0"
|
|
33907
34072
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -34444,7 +34609,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34444
34609
|
cancelDrag: ".react-colorful",
|
|
34445
34610
|
width: "25rem",
|
|
34446
34611
|
onCloseButton: onClose
|
|
34447
|
-
}, React__default.createElement(Container$
|
|
34612
|
+
}, React__default.createElement(Container$y, null, React__default.createElement(Header$4, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
34448
34613
|
color: currentColor,
|
|
34449
34614
|
onChange: function onChange(color) {
|
|
34450
34615
|
setCurrentColor(color);
|
|
@@ -34460,7 +34625,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34460
34625
|
onClose: handleClose
|
|
34461
34626
|
}));
|
|
34462
34627
|
};
|
|
34463
|
-
var Container$
|
|
34628
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
34464
34629
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34465
34630
|
componentId: "sc-me1r4z-0"
|
|
34466
34631
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -34816,7 +34981,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34816
34981
|
onSelected = _ref.onSelected,
|
|
34817
34982
|
x = _ref.x,
|
|
34818
34983
|
y = _ref.y;
|
|
34819
|
-
return React__default.createElement(Container$
|
|
34984
|
+
return React__default.createElement(Container$z, {
|
|
34820
34985
|
x: x,
|
|
34821
34986
|
y: y
|
|
34822
34987
|
}, React__default.createElement("ul", {
|
|
@@ -34833,7 +34998,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34833
34998
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34834
34999
|
})));
|
|
34835
35000
|
};
|
|
34836
|
-
var Container$
|
|
35001
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
34837
35002
|
displayName: "ListMenu__Container",
|
|
34838
35003
|
componentId: "sc-i9097t-0"
|
|
34839
35004
|
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
@@ -34852,7 +35017,7 @@ var Pager = function Pager(_ref) {
|
|
|
34852
35017
|
itemsPerPage = _ref.itemsPerPage,
|
|
34853
35018
|
onPageChange = _ref.onPageChange;
|
|
34854
35019
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34855
|
-
return React__default.createElement(Container$
|
|
35020
|
+
return React__default.createElement(Container$A, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
34856
35021
|
disabled: currentPage === 1,
|
|
34857
35022
|
onPointerDown: function onPointerDown() {
|
|
34858
35023
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34866,7 +35031,7 @@ var Pager = function Pager(_ref) {
|
|
|
34866
35031
|
}
|
|
34867
35032
|
}, '>')));
|
|
34868
35033
|
};
|
|
34869
|
-
var Container$
|
|
35034
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
34870
35035
|
displayName: "Pager__Container",
|
|
34871
35036
|
componentId: "sc-1ekmf50-0"
|
|
34872
35037
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -35387,13 +35552,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35387
35552
|
children = _ref.children,
|
|
35388
35553
|
styles = _ref.styles,
|
|
35389
35554
|
centerContent = _ref.centerContent;
|
|
35390
|
-
return React__default.createElement(Container$
|
|
35555
|
+
return React__default.createElement(Container$B, {
|
|
35391
35556
|
styles: styles,
|
|
35392
35557
|
"data-tab-id": id,
|
|
35393
35558
|
centerContent: centerContent
|
|
35394
35559
|
}, children);
|
|
35395
35560
|
};
|
|
35396
|
-
var Container$
|
|
35561
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
35397
35562
|
displayName: "TabBody__Container",
|
|
35398
35563
|
componentId: "sc-196oof2-0"
|
|
35399
35564
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -36047,7 +36212,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36047
36212
|
// Round only for display, not for calculation
|
|
36048
36213
|
var displayValue = Math.round(value);
|
|
36049
36214
|
var displayMax = Math.round(max);
|
|
36050
|
-
return React__default.createElement(Container$
|
|
36215
|
+
return React__default.createElement(Container$C, {
|
|
36051
36216
|
className: "rpgui-progress",
|
|
36052
36217
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
36053
36218
|
"data-rpguitype": "progress",
|
|
@@ -36079,7 +36244,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36079
36244
|
displayName: "ProgressBar__TextOverlay",
|
|
36080
36245
|
componentId: "sc-qa6fzh-1"
|
|
36081
36246
|
})(["width:100%;position:relative;"]);
|
|
36082
|
-
var Container$
|
|
36247
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
36083
36248
|
displayName: "ProgressBar__Container",
|
|
36084
36249
|
componentId: "sc-qa6fzh-2"
|
|
36085
36250
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -36320,9 +36485,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36320
36485
|
|
|
36321
36486
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36322
36487
|
var children = _ref.children;
|
|
36323
|
-
return React__default.createElement(Container$
|
|
36488
|
+
return React__default.createElement(Container$D, null, children);
|
|
36324
36489
|
};
|
|
36325
|
-
var Container$
|
|
36490
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
36326
36491
|
displayName: "RPGUIScrollbar__Container",
|
|
36327
36492
|
componentId: "sc-p3msmb-0"
|
|
36328
36493
|
})([".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;}"]);
|
|
@@ -36471,46 +36636,6 @@ var List$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
36471
36636
|
componentId: "sc-kgtsi7-1"
|
|
36472
36637
|
})(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;scale:0.9;"]);
|
|
36473
36638
|
|
|
36474
|
-
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
36475
|
-
var value = _ref.value,
|
|
36476
|
-
_ref$bgColor = _ref.bgColor,
|
|
36477
|
-
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
36478
|
-
_ref$margin = _ref.margin,
|
|
36479
|
-
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36480
|
-
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
36481
|
-
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
36482
|
-
return React__default.createElement(Container$C, {
|
|
36483
|
-
className: "simple-progress-bar"
|
|
36484
|
-
}, React__default.createElement(ProgressBarContainer, {
|
|
36485
|
-
margin: margin
|
|
36486
|
-
}, React__default.createElement(BackgroundBar, null, React__default.createElement(Progress, {
|
|
36487
|
-
width: width,
|
|
36488
|
-
bgColor: bgColor
|
|
36489
|
-
}))));
|
|
36490
|
-
};
|
|
36491
|
-
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
36492
|
-
displayName: "SimpleProgressBar__Container",
|
|
36493
|
-
componentId: "sc-mbeil3-0"
|
|
36494
|
-
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
36495
|
-
var BackgroundBar = /*#__PURE__*/styled__default.span.withConfig({
|
|
36496
|
-
displayName: "SimpleProgressBar__BackgroundBar",
|
|
36497
|
-
componentId: "sc-mbeil3-1"
|
|
36498
|
-
})(["background-color:rgba(0,0,0,0.075);"]);
|
|
36499
|
-
var Progress = /*#__PURE__*/styled__default.span.withConfig({
|
|
36500
|
-
displayName: "SimpleProgressBar__Progress",
|
|
36501
|
-
componentId: "sc-mbeil3-2"
|
|
36502
|
-
})(["background-color:", ";width:", "%;transition:width 0.5s ease-in-out;"], function (props) {
|
|
36503
|
-
return props.bgColor;
|
|
36504
|
-
}, function (props) {
|
|
36505
|
-
return props.width.toFixed(2);
|
|
36506
|
-
});
|
|
36507
|
-
var ProgressBarContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
36508
|
-
displayName: "SimpleProgressBar__ProgressBarContainer",
|
|
36509
|
-
componentId: "sc-mbeil3-3"
|
|
36510
|
-
})(["border-radius:60px;border:1px solid #282424;overflow:hidden;width:100%;span{display:block;height:100%;}height:8px;margin-left:", "px;"], function (props) {
|
|
36511
|
-
return props.margin;
|
|
36512
|
-
});
|
|
36513
|
-
|
|
36514
36639
|
var Tooltip = /*#__PURE__*/styled__default.div.withConfig({
|
|
36515
36640
|
displayName: "Tooltip",
|
|
36516
36641
|
componentId: "sc-m78j13-0"
|
|
@@ -36876,7 +37001,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36876
37001
|
title: "Social Channels",
|
|
36877
37002
|
width: "500px",
|
|
36878
37003
|
onCloseButton: onClose
|
|
36879
|
-
}, React__default.createElement(Container$
|
|
37004
|
+
}, React__default.createElement(Container$E, null, React__default.createElement(HeaderImage, {
|
|
36880
37005
|
src: img$9,
|
|
36881
37006
|
alt: ""
|
|
36882
37007
|
}), React__default.createElement(ButtonsContainer$3, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -36894,7 +37019,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36894
37019
|
onClick: handleWhatsAppClick
|
|
36895
37020
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
36896
37021
|
};
|
|
36897
|
-
var Container$
|
|
37022
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
36898
37023
|
displayName: "SocialModal__Container",
|
|
36899
37024
|
componentId: "sc-tbjhp9-0"
|
|
36900
37025
|
})(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
|
|
@@ -36940,7 +37065,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36940
37065
|
castingType = spell.castingType,
|
|
36941
37066
|
cooldown = spell.cooldown,
|
|
36942
37067
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36943
|
-
return React__default.createElement(Container$
|
|
37068
|
+
return React__default.createElement(Container$F, null, React__default.createElement(Header$6, null, React__default.createElement("div", null, React__default.createElement(Title$b, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
36944
37069
|
className: "label"
|
|
36945
37070
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
36946
37071
|
className: "value"
|
|
@@ -36966,7 +37091,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36966
37091
|
className: "value"
|
|
36967
37092
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
36968
37093
|
};
|
|
36969
|
-
var Container$
|
|
37094
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
36970
37095
|
displayName: "SpellInfo__Container",
|
|
36971
37096
|
componentId: "sc-4hbw3q-0"
|
|
36972
37097
|
})(["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);
|
|
@@ -37020,7 +37145,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37020
37145
|
var _ref$current;
|
|
37021
37146
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
37022
37147
|
};
|
|
37023
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37148
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
37024
37149
|
ref: ref,
|
|
37025
37150
|
onTouchEnd: function onTouchEnd() {
|
|
37026
37151
|
handleFadeOut();
|
|
@@ -37045,7 +37170,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37045
37170
|
}, option.text);
|
|
37046
37171
|
}))));
|
|
37047
37172
|
};
|
|
37048
|
-
var Container$
|
|
37173
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
37049
37174
|
displayName: "MobileSpellTooltip__Container",
|
|
37050
37175
|
componentId: "sc-6p7uvr-0"
|
|
37051
37176
|
})(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
|
|
@@ -37086,13 +37211,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
37086
37211
|
}
|
|
37087
37212
|
return;
|
|
37088
37213
|
}, []);
|
|
37089
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37214
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$H, {
|
|
37090
37215
|
ref: ref
|
|
37091
37216
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
37092
37217
|
spell: spell
|
|
37093
37218
|
})));
|
|
37094
37219
|
};
|
|
37095
|
-
var Container$
|
|
37220
|
+
var Container$H = /*#__PURE__*/styled__default.div.withConfig({
|
|
37096
37221
|
displayName: "SpellTooltip__Container",
|
|
37097
37222
|
componentId: "sc-1go0gwg-0"
|
|
37098
37223
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -37194,7 +37319,7 @@ var Spell = function Spell(_ref) {
|
|
|
37194
37319
|
var IMAGE_SCALE = 2;
|
|
37195
37320
|
return React__default.createElement(SpellInfoWrapper, {
|
|
37196
37321
|
spell: spell
|
|
37197
|
-
}, React__default.createElement(Container$
|
|
37322
|
+
}, React__default.createElement(Container$I, {
|
|
37198
37323
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37199
37324
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37200
37325
|
className: "spell"
|
|
@@ -37213,7 +37338,7 @@ var Spell = function Spell(_ref) {
|
|
|
37213
37338
|
className: "mana"
|
|
37214
37339
|
}, manaCost))));
|
|
37215
37340
|
};
|
|
37216
|
-
var Container$
|
|
37341
|
+
var Container$I = /*#__PURE__*/styled__default.button.withConfig({
|
|
37217
37342
|
displayName: "Spell__Container",
|
|
37218
37343
|
componentId: "sc-j96fa2-0"
|
|
37219
37344
|
})(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
|
|
@@ -37293,7 +37418,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37293
37418
|
height: "inherit",
|
|
37294
37419
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37295
37420
|
scale: scale
|
|
37296
|
-
}, React__default.createElement(Container$
|
|
37421
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37297
37422
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37298
37423
|
settingShortcutIndex: settingShortcutIndex,
|
|
37299
37424
|
shortcuts: shortcuts,
|
|
@@ -37330,7 +37455,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
37330
37455
|
displayName: "Spellbook__Title",
|
|
37331
37456
|
componentId: "sc-r02nfq-0"
|
|
37332
37457
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
37333
|
-
var Container$
|
|
37458
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
37334
37459
|
displayName: "Spellbook__Container",
|
|
37335
37460
|
componentId: "sc-r02nfq-1"
|
|
37336
37461
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -57838,7 +57963,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57838
57963
|
return _ref3.apply(this, arguments);
|
|
57839
57964
|
};
|
|
57840
57965
|
}();
|
|
57841
|
-
return React__default.createElement(Container$
|
|
57966
|
+
return React__default.createElement(Container$K, null, React__default.createElement(Header$7, null, React__default.createElement(Title$e, null, "Shopping Cart"), React__default.createElement(CloseButton$9, {
|
|
57842
57967
|
onPointerDown: onClose
|
|
57843
57968
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(CartItems, null, cartItems.length === 0 ? React__default.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
57844
57969
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57874,7 +57999,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57874
57999
|
disabled: cartItems.length === 0 || isLoading
|
|
57875
58000
|
})));
|
|
57876
58001
|
};
|
|
57877
|
-
var Container$
|
|
58002
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
57878
58003
|
displayName: "CartView__Container",
|
|
57879
58004
|
componentId: "sc-ydtyl1-0"
|
|
57880
58005
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
@@ -58230,7 +58355,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58230
58355
|
if (items.length === 0) {
|
|
58231
58356
|
return React__default.createElement(EmptyMessage$2, null, emptyMessage);
|
|
58232
58357
|
}
|
|
58233
|
-
return React__default.createElement(Container$
|
|
58358
|
+
return React__default.createElement(Container$L, {
|
|
58234
58359
|
className: className
|
|
58235
58360
|
}, (searchOptions || filterOptions) && React__default.createElement(HeaderContainer$3, null, React__default.createElement(HeaderContent$1, null, searchOptions && React__default.createElement(SearchContainer$3, null, React__default.createElement(StyledSearchBar$2, {
|
|
58236
58361
|
value: searchOptions.value,
|
|
@@ -58251,7 +58376,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58251
58376
|
}, renderItem(item));
|
|
58252
58377
|
})));
|
|
58253
58378
|
};
|
|
58254
|
-
var Container$
|
|
58379
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
58255
58380
|
displayName: "ScrollableContent__Container",
|
|
58256
58381
|
componentId: "sc-xhh2um-0"
|
|
58257
58382
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -58867,7 +58992,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58867
58992
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58868
58993
|
return imageUrl["default"] || imageUrl.src;
|
|
58869
58994
|
};
|
|
58870
|
-
return React__default.createElement(Container$
|
|
58995
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$9, null, React__default.createElement(BackButton, {
|
|
58871
58996
|
onClick: onBack
|
|
58872
58997
|
}, React__default.createElement(fa.FaArrowLeft, null), React__default.createElement("span", null, "Back"))), React__default.createElement(Content$5, null, React__default.createElement(DetailsGrid, null, React__default.createElement(ItemIcon, null, React__default.createElement("img", {
|
|
58873
58998
|
src: getImageSrc(),
|
|
@@ -58881,7 +59006,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58881
59006
|
fullWidth: true
|
|
58882
59007
|
}))));
|
|
58883
59008
|
};
|
|
58884
|
-
var Container$
|
|
59009
|
+
var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
58885
59010
|
displayName: "StoreItemDetails__Container",
|
|
58886
59011
|
componentId: "sc-k3ho5z-0"
|
|
58887
59012
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
@@ -59144,7 +59269,7 @@ var Store = function Store(_ref) {
|
|
|
59144
59269
|
onAddToCart: function onAddToCart() {
|
|
59145
59270
|
return handleAddPackToCart(selectedPack);
|
|
59146
59271
|
}
|
|
59147
|
-
}) : React__default.createElement(Container$
|
|
59272
|
+
}) : React__default.createElement(Container$N, null, React__default.createElement(TopBar$1, null, React__default.createElement(HistoryButton, null, onShowHistory && React__default.createElement(CTAButton, {
|
|
59148
59273
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59149
59274
|
label: "History",
|
|
59150
59275
|
onClick: onShowHistory
|
|
@@ -59170,7 +59295,7 @@ var Store = function Store(_ref) {
|
|
|
59170
59295
|
fullWidth: true
|
|
59171
59296
|
}))));
|
|
59172
59297
|
};
|
|
59173
|
-
var Container$
|
|
59298
|
+
var Container$N = /*#__PURE__*/styled__default.div.withConfig({
|
|
59174
59299
|
displayName: "Store__Container",
|
|
59175
59300
|
componentId: "sc-64dj00-0"
|
|
59176
59301
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
|
|
@@ -59541,7 +59666,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59541
59666
|
width: "500px",
|
|
59542
59667
|
cancelDrag: "#TraderContainer",
|
|
59543
59668
|
scale: scale
|
|
59544
|
-
}, React__default.createElement(Container$
|
|
59669
|
+
}, React__default.createElement(Container$O, null, React__default.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
59545
59670
|
className: "golden"
|
|
59546
59671
|
}), React__default.createElement(ScrollWrapper, {
|
|
59547
59672
|
id: "TraderContainer"
|
|
@@ -59569,7 +59694,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59569
59694
|
onPointerDown: onClose
|
|
59570
59695
|
}, "Cancel"))));
|
|
59571
59696
|
};
|
|
59572
|
-
var Container$
|
|
59697
|
+
var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
59573
59698
|
displayName: "TradingMenu__Container",
|
|
59574
59699
|
componentId: "sc-1wjsz1l-0"
|
|
59575
59700
|
})(["width:100%;"]);
|
|
@@ -59603,11 +59728,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
59603
59728
|
var _ref$maxLines = _ref.maxLines,
|
|
59604
59729
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
59605
59730
|
children = _ref.children;
|
|
59606
|
-
return React__default.createElement(Container$
|
|
59731
|
+
return React__default.createElement(Container$P, {
|
|
59607
59732
|
maxLines: maxLines
|
|
59608
59733
|
}, children);
|
|
59609
59734
|
};
|
|
59610
|
-
var Container$
|
|
59735
|
+
var Container$P = /*#__PURE__*/styled__default.div.withConfig({
|
|
59611
59736
|
displayName: "Truncate__Container",
|
|
59612
59737
|
componentId: "sc-6x00qb-0"
|
|
59613
59738
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -59715,7 +59840,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
59715
59840
|
};
|
|
59716
59841
|
});
|
|
59717
59842
|
}, [lessons, imageStyle]);
|
|
59718
|
-
return React__default.createElement(Container$
|
|
59843
|
+
return React__default.createElement(Container$Q, null, React__default.createElement(Stepper, {
|
|
59719
59844
|
steps: generateLessons,
|
|
59720
59845
|
finalCTAButton: {
|
|
59721
59846
|
label: 'Close',
|
|
@@ -59732,7 +59857,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59732
59857
|
displayName: "TutorialStepper__LessonBody",
|
|
59733
59858
|
componentId: "sc-7tgzv2-1"
|
|
59734
59859
|
})([""]);
|
|
59735
|
-
var Container$
|
|
59860
|
+
var Container$Q = /*#__PURE__*/styled__default.div.withConfig({
|
|
59736
59861
|
displayName: "TutorialStepper__Container",
|
|
59737
59862
|
componentId: "sc-7tgzv2-2"
|
|
59738
59863
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -59790,6 +59915,7 @@ exports.ItemSlot = ItemSlot;
|
|
|
59790
59915
|
exports.JoystickDPad = JoystickDPad;
|
|
59791
59916
|
exports.Leaderboard = Leaderboard;
|
|
59792
59917
|
exports.ListMenu = ListMenu;
|
|
59918
|
+
exports.LoginStreakPanel = LoginStreakPanel;
|
|
59793
59919
|
exports.Marketplace = Marketplace;
|
|
59794
59920
|
exports.MarketplaceRows = MarketplaceRows;
|
|
59795
59921
|
exports.MetadataCollector = MetadataCollector;
|