@rpg-engine/long-bow 0.8.127 → 0.8.129
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/components/Store/Store.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +233 -106
- 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 +233 -107
- 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/components/Store/Store.tsx +3 -1
- package/src/index.tsx +1 -0
- package/src/stories/Features/loginStreak/LoginStreakPanel.stories.tsx +134 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -30185,6 +30185,171 @@ var TaskTitle$1 = /*#__PURE__*/styled.h2.withConfig({
|
|
|
30185
30185
|
return props.isMobile ? '4px 0' : '8px 0';
|
|
30186
30186
|
});
|
|
30187
30187
|
|
|
30188
|
+
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
30189
|
+
var value = _ref.value,
|
|
30190
|
+
_ref$bgColor = _ref.bgColor,
|
|
30191
|
+
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
30192
|
+
_ref$margin = _ref.margin,
|
|
30193
|
+
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
30194
|
+
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
30195
|
+
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
30196
|
+
return React.createElement(Container$j, {
|
|
30197
|
+
className: "simple-progress-bar"
|
|
30198
|
+
}, React.createElement(ProgressBarContainer, {
|
|
30199
|
+
margin: margin
|
|
30200
|
+
}, React.createElement(BackgroundBar, null, React.createElement(Progress, {
|
|
30201
|
+
width: width,
|
|
30202
|
+
bgColor: bgColor
|
|
30203
|
+
}))));
|
|
30204
|
+
};
|
|
30205
|
+
var Container$j = /*#__PURE__*/styled.div.withConfig({
|
|
30206
|
+
displayName: "SimpleProgressBar__Container",
|
|
30207
|
+
componentId: "sc-mbeil3-0"
|
|
30208
|
+
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
30209
|
+
var BackgroundBar = /*#__PURE__*/styled.span.withConfig({
|
|
30210
|
+
displayName: "SimpleProgressBar__BackgroundBar",
|
|
30211
|
+
componentId: "sc-mbeil3-1"
|
|
30212
|
+
})(["background-color:rgba(0,0,0,0.075);"]);
|
|
30213
|
+
var Progress = /*#__PURE__*/styled.span.withConfig({
|
|
30214
|
+
displayName: "SimpleProgressBar__Progress",
|
|
30215
|
+
componentId: "sc-mbeil3-2"
|
|
30216
|
+
})(["background-color:", ";width:", "%;transition:width 0.5s ease-in-out;"], function (props) {
|
|
30217
|
+
return props.bgColor;
|
|
30218
|
+
}, function (props) {
|
|
30219
|
+
return props.width.toFixed(2);
|
|
30220
|
+
});
|
|
30221
|
+
var ProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30222
|
+
displayName: "SimpleProgressBar__ProgressBarContainer",
|
|
30223
|
+
componentId: "sc-mbeil3-3"
|
|
30224
|
+
})(["border-radius:60px;border:1px solid #282424;overflow:hidden;width:100%;span{display:block;height:100%;}height:8px;margin-left:", "px;"], function (props) {
|
|
30225
|
+
return props.margin;
|
|
30226
|
+
});
|
|
30227
|
+
|
|
30228
|
+
var getMotivationalText = function getMotivationalText(streak, isConsecutive, milestones) {
|
|
30229
|
+
if (!isConsecutive && streak === 1) {
|
|
30230
|
+
return 'Your streak has reset. Log in daily to build it back up!';
|
|
30231
|
+
}
|
|
30232
|
+
var nextMilestone = milestones.find(function (m) {
|
|
30233
|
+
return !m.reached;
|
|
30234
|
+
});
|
|
30235
|
+
if (nextMilestone) {
|
|
30236
|
+
var daysUntil = nextMilestone.day - streak;
|
|
30237
|
+
return daysUntil + " day" + (daysUntil !== 1 ? 's' : '') + " until Day " + nextMilestone.day + " reward!";
|
|
30238
|
+
}
|
|
30239
|
+
return 'Amazing streak! Keep it going for maximum XP bonus!';
|
|
30240
|
+
};
|
|
30241
|
+
var LoginStreakPanel = function LoginStreakPanel(_ref) {
|
|
30242
|
+
var streak = _ref.streak,
|
|
30243
|
+
longestStreak = _ref.longestStreak,
|
|
30244
|
+
xpBonusPercent = _ref.xpBonusPercent,
|
|
30245
|
+
maxXpBonusPercent = _ref.maxXpBonusPercent,
|
|
30246
|
+
isConsecutive = _ref.isConsecutive,
|
|
30247
|
+
milestones = _ref.milestones,
|
|
30248
|
+
milestoneRewardGranted = _ref.milestoneRewardGranted,
|
|
30249
|
+
onClose = _ref.onClose;
|
|
30250
|
+
var isMobile = isMobileOrTablet();
|
|
30251
|
+
var isMaxBonus = xpBonusPercent >= maxXpBonusPercent;
|
|
30252
|
+
return React.createElement(DraggableContainer, {
|
|
30253
|
+
title: "Login Streak",
|
|
30254
|
+
onCloseButton: onClose,
|
|
30255
|
+
type: RPGUIContainerTypes.Framed,
|
|
30256
|
+
width: isMobile ? '90vw' : '380px'
|
|
30257
|
+
}, React.createElement(Container$k, null, React.createElement(StreakHeader, null, React.createElement(StreakDay, null, streak === 1 && !isConsecutive ? 'Day 1 — Fresh Start!' : "Day " + streak + " Streak!"), React.createElement(LongestStreak, null, "Longest: ", longestStreak, " days")), React.createElement(XPBonusSection, null, React.createElement(XPBonusLabel, null, "XP Bonus: ", React.createElement(XPBonusValue, {
|
|
30258
|
+
isMax: isMaxBonus
|
|
30259
|
+
}, "+", xpBonusPercent, "%"), isMaxBonus && React.createElement(MaxTag, null, " MAX")), React.createElement(SimpleProgressBar, {
|
|
30260
|
+
value: maxXpBonusPercent > 0 ? xpBonusPercent / maxXpBonusPercent * 100 : 0,
|
|
30261
|
+
bgColor: isMaxBonus ? uiColors.darkYellow : uiColors.lightGreen,
|
|
30262
|
+
margin: 0
|
|
30263
|
+
}), React.createElement(ProgressLabel, null, xpBonusPercent, "% / ", maxXpBonusPercent, "% max")), milestoneRewardGranted && React.createElement(RewardToast, null, React.createElement(RewardText, null, "Milestone reward: ", milestoneRewardGranted.quantity, "x ", milestoneRewardGranted.itemName, "!")), React.createElement("hr", {
|
|
30264
|
+
className: "golden"
|
|
30265
|
+
}), React.createElement(SectionLabel, null, "Milestone Rewards"), React.createElement(MilestoneList, null, milestones.map(function (milestone) {
|
|
30266
|
+
return React.createElement(MilestoneCard, {
|
|
30267
|
+
key: milestone.day,
|
|
30268
|
+
"$reached": milestone.reached
|
|
30269
|
+
}, React.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React.createElement(MilestoneRewardName, null, milestone.quantity, "x ", milestone.itemName), React.createElement(MilestoneBadge, {
|
|
30270
|
+
"$reached": milestone.reached
|
|
30271
|
+
}, milestone.reached ? '✓' : '○'));
|
|
30272
|
+
})), React.createElement(MotivationalText, null, getMotivationalText(streak, isConsecutive, milestones))));
|
|
30273
|
+
};
|
|
30274
|
+
var Container$k = /*#__PURE__*/styled.div.withConfig({
|
|
30275
|
+
displayName: "LoginStreakPanel__Container",
|
|
30276
|
+
componentId: "sc-1eiinkh-0"
|
|
30277
|
+
})(["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);
|
|
30278
|
+
var StreakHeader = /*#__PURE__*/styled.div.withConfig({
|
|
30279
|
+
displayName: "LoginStreakPanel__StreakHeader",
|
|
30280
|
+
componentId: "sc-1eiinkh-1"
|
|
30281
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
30282
|
+
var StreakDay = /*#__PURE__*/styled.h2.withConfig({
|
|
30283
|
+
displayName: "LoginStreakPanel__StreakDay",
|
|
30284
|
+
componentId: "sc-1eiinkh-2"
|
|
30285
|
+
})(["&&{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);
|
|
30286
|
+
var LongestStreak = /*#__PURE__*/styled.div.withConfig({
|
|
30287
|
+
displayName: "LoginStreakPanel__LongestStreak",
|
|
30288
|
+
componentId: "sc-1eiinkh-3"
|
|
30289
|
+
})(["font-size:", ";color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
30290
|
+
var XPBonusSection = /*#__PURE__*/styled.div.withConfig({
|
|
30291
|
+
displayName: "LoginStreakPanel__XPBonusSection",
|
|
30292
|
+
componentId: "sc-1eiinkh-4"
|
|
30293
|
+
})(["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);
|
|
30294
|
+
var XPBonusLabel = /*#__PURE__*/styled.div.withConfig({
|
|
30295
|
+
displayName: "LoginStreakPanel__XPBonusLabel",
|
|
30296
|
+
componentId: "sc-1eiinkh-5"
|
|
30297
|
+
})(["font-size:", ";"], uiFonts.size.medium);
|
|
30298
|
+
var XPBonusValue = /*#__PURE__*/styled.span.withConfig({
|
|
30299
|
+
displayName: "LoginStreakPanel__XPBonusValue",
|
|
30300
|
+
componentId: "sc-1eiinkh-6"
|
|
30301
|
+
})(["color:", ";font-weight:bold;"], function (p) {
|
|
30302
|
+
return p.isMax ? uiColors.darkYellow : uiColors.lightGreen;
|
|
30303
|
+
});
|
|
30304
|
+
var MaxTag = /*#__PURE__*/styled.span.withConfig({
|
|
30305
|
+
displayName: "LoginStreakPanel__MaxTag",
|
|
30306
|
+
componentId: "sc-1eiinkh-7"
|
|
30307
|
+
})(["color:", ";font-size:", ";font-weight:bold;letter-spacing:1px;margin-left:2px;"], uiColors.darkYellow, uiFonts.size.xsmall);
|
|
30308
|
+
var ProgressLabel = /*#__PURE__*/styled.div.withConfig({
|
|
30309
|
+
displayName: "LoginStreakPanel__ProgressLabel",
|
|
30310
|
+
componentId: "sc-1eiinkh-8"
|
|
30311
|
+
})(["font-size:", ";color:", ";text-align:right;"], uiFonts.size.xsmall, uiColors.lightGray);
|
|
30312
|
+
var RewardToast = /*#__PURE__*/styled.div.withConfig({
|
|
30313
|
+
displayName: "LoginStreakPanel__RewardToast",
|
|
30314
|
+
componentId: "sc-1eiinkh-9"
|
|
30315
|
+
})(["padding:8px 12px;background:rgba(255,200,87,0.15);border:1px solid ", ";border-radius:4px;"], uiColors.darkYellow);
|
|
30316
|
+
var RewardText = /*#__PURE__*/styled.div.withConfig({
|
|
30317
|
+
displayName: "LoginStreakPanel__RewardText",
|
|
30318
|
+
componentId: "sc-1eiinkh-10"
|
|
30319
|
+
})(["font-size:", ";color:", ";font-weight:bold;"], uiFonts.size.small, uiColors.darkYellow);
|
|
30320
|
+
var SectionLabel = /*#__PURE__*/styled.div.withConfig({
|
|
30321
|
+
displayName: "LoginStreakPanel__SectionLabel",
|
|
30322
|
+
componentId: "sc-1eiinkh-11"
|
|
30323
|
+
})(["font-size:", ";color:", ";text-transform:uppercase;letter-spacing:1px;"], uiFonts.size.xsmall, uiColors.lightGray);
|
|
30324
|
+
var MilestoneList = /*#__PURE__*/styled.div.withConfig({
|
|
30325
|
+
displayName: "LoginStreakPanel__MilestoneList",
|
|
30326
|
+
componentId: "sc-1eiinkh-12"
|
|
30327
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
30328
|
+
var MilestoneCard = /*#__PURE__*/styled.div.withConfig({
|
|
30329
|
+
displayName: "LoginStreakPanel__MilestoneCard",
|
|
30330
|
+
componentId: "sc-1eiinkh-13"
|
|
30331
|
+
})(["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) {
|
|
30332
|
+
return p.$reached ? 1 : 0.5;
|
|
30333
|
+
});
|
|
30334
|
+
var MilestoneDayLabel = /*#__PURE__*/styled.div.withConfig({
|
|
30335
|
+
displayName: "LoginStreakPanel__MilestoneDayLabel",
|
|
30336
|
+
componentId: "sc-1eiinkh-14"
|
|
30337
|
+
})(["font-size:", ";font-weight:bold;color:", ";width:44px;flex-shrink:0;"], uiFonts.size.small, uiColors.darkYellow);
|
|
30338
|
+
var MilestoneRewardName = /*#__PURE__*/styled.div.withConfig({
|
|
30339
|
+
displayName: "LoginStreakPanel__MilestoneRewardName",
|
|
30340
|
+
componentId: "sc-1eiinkh-15"
|
|
30341
|
+
})(["font-size:", ";color:", ";flex:1;"], uiFonts.size.small, uiColors.white);
|
|
30342
|
+
var MilestoneBadge = /*#__PURE__*/styled.div.withConfig({
|
|
30343
|
+
displayName: "LoginStreakPanel__MilestoneBadge",
|
|
30344
|
+
componentId: "sc-1eiinkh-16"
|
|
30345
|
+
})(["font-size:", ";color:", ";font-weight:bold;flex-shrink:0;"], uiFonts.size.medium, function (p) {
|
|
30346
|
+
return p.$reached ? uiColors.lightGreen : uiColors.lightGray;
|
|
30347
|
+
});
|
|
30348
|
+
var MotivationalText = /*#__PURE__*/styled.div.withConfig({
|
|
30349
|
+
displayName: "LoginStreakPanel__MotivationalText",
|
|
30350
|
+
componentId: "sc-1eiinkh-17"
|
|
30351
|
+
})(["font-size:", ";color:", ";text-align:center;font-style:italic;padding-top:2px;"], uiFonts.size.small, uiColors.lightGray);
|
|
30352
|
+
|
|
30188
30353
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
30189
30354
|
var DPadButton = /*#__PURE__*/memo( /*#__PURE__*/styled.div.withConfig({
|
|
30190
30355
|
displayName: "JoystickDPad__DPadButton",
|
|
@@ -30544,7 +30709,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30544
30709
|
var centeredX = x - OFFSET$1;
|
|
30545
30710
|
var centeredY = y - OFFSET$1;
|
|
30546
30711
|
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);
|
|
30547
|
-
return React.createElement(Container$
|
|
30712
|
+
return React.createElement(Container$l, null, React.createElement(SpriteContainer, {
|
|
30548
30713
|
x: centeredX,
|
|
30549
30714
|
y: centeredY
|
|
30550
30715
|
}, React.createElement(SpriteFromAtlas, {
|
|
@@ -30562,7 +30727,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30562
30727
|
}), stackInfo));
|
|
30563
30728
|
};
|
|
30564
30729
|
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";
|
|
30565
|
-
var Container$
|
|
30730
|
+
var Container$l = /*#__PURE__*/styled.div.withConfig({
|
|
30566
30731
|
displayName: "DraggedItem__Container",
|
|
30567
30732
|
componentId: "sc-mlzzcp-0"
|
|
30568
30733
|
})(["position:relative;"]);
|
|
@@ -30599,7 +30764,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30599
30764
|
document.removeEventListener('clickOutside', handleClickOutside);
|
|
30600
30765
|
};
|
|
30601
30766
|
}, [handleClickOutside]);
|
|
30602
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
30767
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$m, Object.assign({
|
|
30603
30768
|
fontSize: fontSize,
|
|
30604
30769
|
ref: ref
|
|
30605
30770
|
}, pos), React.createElement("ul", {
|
|
@@ -30616,7 +30781,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30616
30781
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30617
30782
|
}))));
|
|
30618
30783
|
};
|
|
30619
|
-
var Container$
|
|
30784
|
+
var Container$m = /*#__PURE__*/styled.div.withConfig({
|
|
30620
30785
|
displayName: "RelativeListMenu__Container",
|
|
30621
30786
|
componentId: "sc-7hohf-0"
|
|
30622
30787
|
})(["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) {
|
|
@@ -31181,7 +31346,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31181
31346
|
var _useState2 = useState(false),
|
|
31182
31347
|
showGoNextIndicator = _useState2[0],
|
|
31183
31348
|
setShowGoNextIndicator = _useState2[1];
|
|
31184
|
-
return React.createElement(Container$
|
|
31349
|
+
return React.createElement(Container$n, null, React.createElement(DynamicText, {
|
|
31185
31350
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
31186
31351
|
onFinish: function onFinish() {
|
|
31187
31352
|
setShowGoNextIndicator(true);
|
|
@@ -31199,7 +31364,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31199
31364
|
}
|
|
31200
31365
|
}));
|
|
31201
31366
|
};
|
|
31202
|
-
var Container$
|
|
31367
|
+
var Container$n = /*#__PURE__*/styled.div.withConfig({
|
|
31203
31368
|
displayName: "NPCDialogText__Container",
|
|
31204
31369
|
componentId: "sc-1cxkdh9-0"
|
|
31205
31370
|
})([""]);
|
|
@@ -31351,7 +31516,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31351
31516
|
return null;
|
|
31352
31517
|
});
|
|
31353
31518
|
};
|
|
31354
|
-
return React.createElement(Container$
|
|
31519
|
+
return React.createElement(Container$o, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
|
|
31355
31520
|
text: currentQuestion.text,
|
|
31356
31521
|
onStart: function onStart() {
|
|
31357
31522
|
return setCanShowAnswers(false);
|
|
@@ -31361,7 +31526,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31361
31526
|
}
|
|
31362
31527
|
})), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31363
31528
|
};
|
|
31364
|
-
var Container$
|
|
31529
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
31365
31530
|
displayName: "QuestionDialog__Container",
|
|
31366
31531
|
componentId: "sc-bxc5u0-0"
|
|
31367
31532
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31422,7 +31587,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31422
31587
|
}
|
|
31423
31588
|
})), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
|
|
31424
31589
|
src: imagePath || img$7
|
|
31425
|
-
}))) : React.createElement(React.Fragment, null, React.createElement(Container$
|
|
31590
|
+
}))) : React.createElement(React.Fragment, null, React.createElement(Container$p, null, React.createElement(CloseIcon, {
|
|
31426
31591
|
onPointerDown: _onClose
|
|
31427
31592
|
}, "X"), React.createElement(TextContainer$1, {
|
|
31428
31593
|
flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31438,7 +31603,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31438
31603
|
src: imagePath || img$7
|
|
31439
31604
|
})))));
|
|
31440
31605
|
};
|
|
31441
|
-
var Container$
|
|
31606
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
31442
31607
|
displayName: "NPCDialog__Container",
|
|
31443
31608
|
componentId: "sc-1b4aw74-0"
|
|
31444
31609
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31499,7 +31664,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31499
31664
|
type: RPGUIContainerTypes.FramedGold,
|
|
31500
31665
|
width: '50%',
|
|
31501
31666
|
height: '180px'
|
|
31502
|
-
}, React.createElement(React.Fragment, null, React.createElement(Container$
|
|
31667
|
+
}, React.createElement(React.Fragment, null, React.createElement(Container$q, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
|
|
31503
31668
|
flex: '70%'
|
|
31504
31669
|
}, React.createElement(NPCDialogText, {
|
|
31505
31670
|
onStartStep: function onStartStep() {
|
|
@@ -31541,7 +31706,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31541
31706
|
src: img$6
|
|
31542
31707
|
}))), ")"));
|
|
31543
31708
|
};
|
|
31544
|
-
var Container$
|
|
31709
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31545
31710
|
displayName: "NPCMultiDialog__Container",
|
|
31546
31711
|
componentId: "sc-rvu5wg-0"
|
|
31547
31712
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31908,7 +32073,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31908
32073
|
totalPages = _ref.totalPages,
|
|
31909
32074
|
onPageChange = _ref.onPageChange,
|
|
31910
32075
|
className = _ref.className;
|
|
31911
|
-
return React.createElement(Container$
|
|
32076
|
+
return React.createElement(Container$r, {
|
|
31912
32077
|
className: className
|
|
31913
32078
|
}, React.createElement(PaginationButton$1, {
|
|
31914
32079
|
onClick: function onClick() {
|
|
@@ -31926,7 +32091,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31926
32091
|
size: 12
|
|
31927
32092
|
})));
|
|
31928
32093
|
};
|
|
31929
|
-
var Container$
|
|
32094
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
31930
32095
|
displayName: "Pagination__Container",
|
|
31931
32096
|
componentId: "sc-3k4m4u-0"
|
|
31932
32097
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -32034,7 +32199,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32034
32199
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
32035
32200
|
paginatedItems = _usePagination.paginatedItems,
|
|
32036
32201
|
totalPages = _usePagination.totalPages;
|
|
32037
|
-
return React.createElement(Container$
|
|
32202
|
+
return React.createElement(Container$s, {
|
|
32038
32203
|
className: className
|
|
32039
32204
|
}, (searchOptions || filterOptions) && React.createElement(SearchHeader$1, {
|
|
32040
32205
|
searchOptions: searchOptions,
|
|
@@ -32056,7 +32221,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32056
32221
|
onPageChange: setCurrentPage
|
|
32057
32222
|
}))));
|
|
32058
32223
|
};
|
|
32059
|
-
var Container$
|
|
32224
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
32060
32225
|
displayName: "PaginatedContent__Container",
|
|
32061
32226
|
componentId: "sc-lzp9hn-0"
|
|
32062
32227
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -32178,7 +32343,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32178
32343
|
atlasIMG = _ref.atlasIMG,
|
|
32179
32344
|
onBack = _ref.onBack,
|
|
32180
32345
|
children = _ref.children;
|
|
32181
|
-
return React.createElement(Container$
|
|
32346
|
+
return React.createElement(Container$t, null, React.createElement(Overlay, {
|
|
32182
32347
|
onClick: onBack
|
|
32183
32348
|
}), React.createElement(Modal, null, React.createElement(CloseButton$5, {
|
|
32184
32349
|
onClick: onBack
|
|
@@ -32191,7 +32356,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32191
32356
|
imgScale: 1
|
|
32192
32357
|
})), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
|
|
32193
32358
|
};
|
|
32194
|
-
var Container$
|
|
32359
|
+
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
32195
32360
|
displayName: "BaseInformationDetails__Container",
|
|
32196
32361
|
componentId: "sc-1vguuz8-0"
|
|
32197
32362
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -32233,7 +32398,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32233
32398
|
var _useState = useState(defaultOpen),
|
|
32234
32399
|
isOpen = _useState[0],
|
|
32235
32400
|
setIsOpen = _useState[1];
|
|
32236
|
-
return React.createElement(Container$
|
|
32401
|
+
return React.createElement(Container$u, {
|
|
32237
32402
|
className: className
|
|
32238
32403
|
}, React.createElement(Header$3, {
|
|
32239
32404
|
onClick: function onClick() {
|
|
@@ -32241,7 +32406,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32241
32406
|
}
|
|
32242
32407
|
}, React.createElement(Title$4, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$2, null, children));
|
|
32243
32408
|
};
|
|
32244
|
-
var Container$
|
|
32409
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
32245
32410
|
displayName: "Collapsible__Container",
|
|
32246
32411
|
componentId: "sc-s4h8ey-0"
|
|
32247
32412
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -32571,7 +32736,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32571
32736
|
onClose();
|
|
32572
32737
|
}
|
|
32573
32738
|
};
|
|
32574
|
-
return React.createElement(Container$
|
|
32739
|
+
return React.createElement(Container$v, null, React.createElement(FilterButton, {
|
|
32575
32740
|
onClick: onToggle,
|
|
32576
32741
|
"$hasActiveFilters": hasActiveFilters,
|
|
32577
32742
|
ref: buttonRef
|
|
@@ -32602,7 +32767,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32602
32767
|
onClick: onClearAll
|
|
32603
32768
|
}, "Clear All Filters"))));
|
|
32604
32769
|
};
|
|
32605
|
-
var Container$
|
|
32770
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
32606
32771
|
displayName: "AdvancedFilters__Container",
|
|
32607
32772
|
componentId: "sc-1xj6ldr-0"
|
|
32608
32773
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -33696,7 +33861,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33696
33861
|
minWidth: "300px",
|
|
33697
33862
|
cancelDrag: ".PaginatedContent-content",
|
|
33698
33863
|
onCloseButton: onClose
|
|
33699
|
-
}, React.createElement(Container$
|
|
33864
|
+
}, React.createElement(Container$w, null, React.createElement(InternalTabs, {
|
|
33700
33865
|
tabs: tabs,
|
|
33701
33866
|
activeTextColor: "#000000",
|
|
33702
33867
|
activeTab: activeTab,
|
|
@@ -33707,7 +33872,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33707
33872
|
hoverColor: "#fef3c7"
|
|
33708
33873
|
})));
|
|
33709
33874
|
};
|
|
33710
|
-
var Container$
|
|
33875
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
33711
33876
|
displayName: "InformationCenter__Container",
|
|
33712
33877
|
componentId: "sc-1ttl62e-0"
|
|
33713
33878
|
})(["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;}"]);
|
|
@@ -33878,7 +34043,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33878
34043
|
}
|
|
33879
34044
|
return null;
|
|
33880
34045
|
};
|
|
33881
|
-
return React.createElement(Container$
|
|
34046
|
+
return React.createElement(Container$x, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
|
|
33882
34047
|
id: "shortcuts_list"
|
|
33883
34048
|
}, Array.from({
|
|
33884
34049
|
length: 12
|
|
@@ -33896,7 +34061,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33896
34061
|
}, getContent(i));
|
|
33897
34062
|
})));
|
|
33898
34063
|
};
|
|
33899
|
-
var Container$
|
|
34064
|
+
var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
33900
34065
|
displayName: "ShortcutsSetter__Container",
|
|
33901
34066
|
componentId: "sc-xuouuf-0"
|
|
33902
34067
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -34440,7 +34605,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34440
34605
|
cancelDrag: ".react-colorful",
|
|
34441
34606
|
width: "25rem",
|
|
34442
34607
|
onCloseButton: onClose
|
|
34443
|
-
}, React.createElement(Container$
|
|
34608
|
+
}, React.createElement(Container$y, null, React.createElement(Header$4, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
|
|
34444
34609
|
color: currentColor,
|
|
34445
34610
|
onChange: function onChange(color) {
|
|
34446
34611
|
setCurrentColor(color);
|
|
@@ -34456,7 +34621,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34456
34621
|
onClose: handleClose
|
|
34457
34622
|
}));
|
|
34458
34623
|
};
|
|
34459
|
-
var Container$
|
|
34624
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
34460
34625
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34461
34626
|
componentId: "sc-me1r4z-0"
|
|
34462
34627
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -34812,7 +34977,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34812
34977
|
onSelected = _ref.onSelected,
|
|
34813
34978
|
x = _ref.x,
|
|
34814
34979
|
y = _ref.y;
|
|
34815
|
-
return React.createElement(Container$
|
|
34980
|
+
return React.createElement(Container$z, {
|
|
34816
34981
|
x: x,
|
|
34817
34982
|
y: y
|
|
34818
34983
|
}, React.createElement("ul", {
|
|
@@ -34829,7 +34994,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34829
34994
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34830
34995
|
})));
|
|
34831
34996
|
};
|
|
34832
|
-
var Container$
|
|
34997
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
34833
34998
|
displayName: "ListMenu__Container",
|
|
34834
34999
|
componentId: "sc-i9097t-0"
|
|
34835
35000
|
})(["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) {
|
|
@@ -34848,7 +35013,7 @@ var Pager = function Pager(_ref) {
|
|
|
34848
35013
|
itemsPerPage = _ref.itemsPerPage,
|
|
34849
35014
|
onPageChange = _ref.onPageChange;
|
|
34850
35015
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34851
|
-
return React.createElement(Container$
|
|
35016
|
+
return React.createElement(Container$A, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
34852
35017
|
disabled: currentPage === 1,
|
|
34853
35018
|
onPointerDown: function onPointerDown() {
|
|
34854
35019
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34862,7 +35027,7 @@ var Pager = function Pager(_ref) {
|
|
|
34862
35027
|
}
|
|
34863
35028
|
}, '>')));
|
|
34864
35029
|
};
|
|
34865
|
-
var Container$
|
|
35030
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
34866
35031
|
displayName: "Pager__Container",
|
|
34867
35032
|
componentId: "sc-1ekmf50-0"
|
|
34868
35033
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -35383,13 +35548,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35383
35548
|
children = _ref.children,
|
|
35384
35549
|
styles = _ref.styles,
|
|
35385
35550
|
centerContent = _ref.centerContent;
|
|
35386
|
-
return React.createElement(Container$
|
|
35551
|
+
return React.createElement(Container$B, {
|
|
35387
35552
|
styles: styles,
|
|
35388
35553
|
"data-tab-id": id,
|
|
35389
35554
|
centerContent: centerContent
|
|
35390
35555
|
}, children);
|
|
35391
35556
|
};
|
|
35392
|
-
var Container$
|
|
35557
|
+
var Container$B = /*#__PURE__*/styled.div.withConfig({
|
|
35393
35558
|
displayName: "TabBody__Container",
|
|
35394
35559
|
componentId: "sc-196oof2-0"
|
|
35395
35560
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -36044,7 +36209,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36044
36209
|
// Round only for display, not for calculation
|
|
36045
36210
|
var displayValue = Math.round(value);
|
|
36046
36211
|
var displayMax = Math.round(max);
|
|
36047
|
-
return React.createElement(Container$
|
|
36212
|
+
return React.createElement(Container$C, {
|
|
36048
36213
|
className: "rpgui-progress",
|
|
36049
36214
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
36050
36215
|
"data-rpguitype": "progress",
|
|
@@ -36076,7 +36241,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
36076
36241
|
displayName: "ProgressBar__TextOverlay",
|
|
36077
36242
|
componentId: "sc-qa6fzh-1"
|
|
36078
36243
|
})(["width:100%;position:relative;"]);
|
|
36079
|
-
var Container$
|
|
36244
|
+
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
36080
36245
|
displayName: "ProgressBar__Container",
|
|
36081
36246
|
componentId: "sc-qa6fzh-2"
|
|
36082
36247
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -36317,9 +36482,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36317
36482
|
|
|
36318
36483
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36319
36484
|
var children = _ref.children;
|
|
36320
|
-
return React.createElement(Container$
|
|
36485
|
+
return React.createElement(Container$D, null, children);
|
|
36321
36486
|
};
|
|
36322
|
-
var Container$
|
|
36487
|
+
var Container$D = /*#__PURE__*/styled.div.withConfig({
|
|
36323
36488
|
displayName: "RPGUIScrollbar__Container",
|
|
36324
36489
|
componentId: "sc-p3msmb-0"
|
|
36325
36490
|
})([".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;}"]);
|
|
@@ -36468,46 +36633,6 @@ var List$1 = /*#__PURE__*/styled.p.withConfig({
|
|
|
36468
36633
|
componentId: "sc-kgtsi7-1"
|
|
36469
36634
|
})(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;scale:0.9;"]);
|
|
36470
36635
|
|
|
36471
|
-
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
36472
|
-
var value = _ref.value,
|
|
36473
|
-
_ref$bgColor = _ref.bgColor,
|
|
36474
|
-
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
36475
|
-
_ref$margin = _ref.margin,
|
|
36476
|
-
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36477
|
-
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
36478
|
-
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
36479
|
-
return React.createElement(Container$C, {
|
|
36480
|
-
className: "simple-progress-bar"
|
|
36481
|
-
}, React.createElement(ProgressBarContainer, {
|
|
36482
|
-
margin: margin
|
|
36483
|
-
}, React.createElement(BackgroundBar, null, React.createElement(Progress, {
|
|
36484
|
-
width: width,
|
|
36485
|
-
bgColor: bgColor
|
|
36486
|
-
}))));
|
|
36487
|
-
};
|
|
36488
|
-
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
36489
|
-
displayName: "SimpleProgressBar__Container",
|
|
36490
|
-
componentId: "sc-mbeil3-0"
|
|
36491
|
-
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
36492
|
-
var BackgroundBar = /*#__PURE__*/styled.span.withConfig({
|
|
36493
|
-
displayName: "SimpleProgressBar__BackgroundBar",
|
|
36494
|
-
componentId: "sc-mbeil3-1"
|
|
36495
|
-
})(["background-color:rgba(0,0,0,0.075);"]);
|
|
36496
|
-
var Progress = /*#__PURE__*/styled.span.withConfig({
|
|
36497
|
-
displayName: "SimpleProgressBar__Progress",
|
|
36498
|
-
componentId: "sc-mbeil3-2"
|
|
36499
|
-
})(["background-color:", ";width:", "%;transition:width 0.5s ease-in-out;"], function (props) {
|
|
36500
|
-
return props.bgColor;
|
|
36501
|
-
}, function (props) {
|
|
36502
|
-
return props.width.toFixed(2);
|
|
36503
|
-
});
|
|
36504
|
-
var ProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
36505
|
-
displayName: "SimpleProgressBar__ProgressBarContainer",
|
|
36506
|
-
componentId: "sc-mbeil3-3"
|
|
36507
|
-
})(["border-radius:60px;border:1px solid #282424;overflow:hidden;width:100%;span{display:block;height:100%;}height:8px;margin-left:", "px;"], function (props) {
|
|
36508
|
-
return props.margin;
|
|
36509
|
-
});
|
|
36510
|
-
|
|
36511
36636
|
var Tooltip = /*#__PURE__*/styled.div.withConfig({
|
|
36512
36637
|
displayName: "Tooltip",
|
|
36513
36638
|
componentId: "sc-m78j13-0"
|
|
@@ -36873,7 +36998,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36873
36998
|
title: "Social Channels",
|
|
36874
36999
|
width: "500px",
|
|
36875
37000
|
onCloseButton: onClose
|
|
36876
|
-
}, React.createElement(Container$
|
|
37001
|
+
}, React.createElement(Container$E, null, React.createElement(HeaderImage, {
|
|
36877
37002
|
src: img$9,
|
|
36878
37003
|
alt: ""
|
|
36879
37004
|
}), React.createElement(ButtonsContainer$3, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
|
|
@@ -36891,7 +37016,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36891
37016
|
onClick: handleWhatsAppClick
|
|
36892
37017
|
}, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
|
|
36893
37018
|
};
|
|
36894
|
-
var Container$
|
|
37019
|
+
var Container$E = /*#__PURE__*/styled.div.withConfig({
|
|
36895
37020
|
displayName: "SocialModal__Container",
|
|
36896
37021
|
componentId: "sc-tbjhp9-0"
|
|
36897
37022
|
})(["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% );}"]);
|
|
@@ -36937,7 +37062,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36937
37062
|
castingType = spell.castingType,
|
|
36938
37063
|
cooldown = spell.cooldown,
|
|
36939
37064
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36940
|
-
return React.createElement(Container$
|
|
37065
|
+
return React.createElement(Container$F, null, React.createElement(Header$6, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
36941
37066
|
className: "label"
|
|
36942
37067
|
}, "Casting Type:"), React.createElement("div", {
|
|
36943
37068
|
className: "value"
|
|
@@ -36963,7 +37088,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36963
37088
|
className: "value"
|
|
36964
37089
|
}, requiredItem))), React.createElement(Description$4, null, description));
|
|
36965
37090
|
};
|
|
36966
|
-
var Container$
|
|
37091
|
+
var Container$F = /*#__PURE__*/styled.div.withConfig({
|
|
36967
37092
|
displayName: "SpellInfo__Container",
|
|
36968
37093
|
componentId: "sc-4hbw3q-0"
|
|
36969
37094
|
})(["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);
|
|
@@ -37017,7 +37142,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37017
37142
|
var _ref$current;
|
|
37018
37143
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
37019
37144
|
};
|
|
37020
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
37145
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$G, {
|
|
37021
37146
|
ref: ref,
|
|
37022
37147
|
onTouchEnd: function onTouchEnd() {
|
|
37023
37148
|
handleFadeOut();
|
|
@@ -37042,7 +37167,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37042
37167
|
}, option.text);
|
|
37043
37168
|
}))));
|
|
37044
37169
|
};
|
|
37045
|
-
var Container$
|
|
37170
|
+
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
37046
37171
|
displayName: "MobileSpellTooltip__Container",
|
|
37047
37172
|
componentId: "sc-6p7uvr-0"
|
|
37048
37173
|
})(["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;}"]);
|
|
@@ -37083,13 +37208,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
37083
37208
|
}
|
|
37084
37209
|
return;
|
|
37085
37210
|
}, []);
|
|
37086
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
37211
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$H, {
|
|
37087
37212
|
ref: ref
|
|
37088
37213
|
}, React.createElement(SpellInfoDisplay, {
|
|
37089
37214
|
spell: spell
|
|
37090
37215
|
})));
|
|
37091
37216
|
};
|
|
37092
|
-
var Container$
|
|
37217
|
+
var Container$H = /*#__PURE__*/styled.div.withConfig({
|
|
37093
37218
|
displayName: "SpellTooltip__Container",
|
|
37094
37219
|
componentId: "sc-1go0gwg-0"
|
|
37095
37220
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -37191,7 +37316,7 @@ var Spell = function Spell(_ref) {
|
|
|
37191
37316
|
var IMAGE_SCALE = 2;
|
|
37192
37317
|
return React.createElement(SpellInfoWrapper, {
|
|
37193
37318
|
spell: spell
|
|
37194
|
-
}, React.createElement(Container$
|
|
37319
|
+
}, React.createElement(Container$I, {
|
|
37195
37320
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37196
37321
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37197
37322
|
className: "spell"
|
|
@@ -37210,7 +37335,7 @@ var Spell = function Spell(_ref) {
|
|
|
37210
37335
|
className: "mana"
|
|
37211
37336
|
}, manaCost))));
|
|
37212
37337
|
};
|
|
37213
|
-
var Container$
|
|
37338
|
+
var Container$I = /*#__PURE__*/styled.button.withConfig({
|
|
37214
37339
|
displayName: "Spell__Container",
|
|
37215
37340
|
componentId: "sc-j96fa2-0"
|
|
37216
37341
|
})(["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) {
|
|
@@ -37290,7 +37415,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37290
37415
|
height: "inherit",
|
|
37291
37416
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37292
37417
|
scale: scale
|
|
37293
|
-
}, React.createElement(Container$
|
|
37418
|
+
}, React.createElement(Container$J, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
37294
37419
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37295
37420
|
settingShortcutIndex: settingShortcutIndex,
|
|
37296
37421
|
shortcuts: shortcuts,
|
|
@@ -37327,7 +37452,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
|
37327
37452
|
displayName: "Spellbook__Title",
|
|
37328
37453
|
componentId: "sc-r02nfq-0"
|
|
37329
37454
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
37330
|
-
var Container$
|
|
37455
|
+
var Container$J = /*#__PURE__*/styled.div.withConfig({
|
|
37331
37456
|
displayName: "Spellbook__Container",
|
|
37332
37457
|
componentId: "sc-r02nfq-1"
|
|
37333
37458
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -57835,7 +57960,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57835
57960
|
return _ref3.apply(this, arguments);
|
|
57836
57961
|
};
|
|
57837
57962
|
}();
|
|
57838
|
-
return React.createElement(Container$
|
|
57963
|
+
return React.createElement(Container$K, null, React.createElement(Header$7, null, React.createElement(Title$e, null, "Shopping Cart"), React.createElement(CloseButton$9, {
|
|
57839
57964
|
onPointerDown: onClose
|
|
57840
57965
|
}, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
57841
57966
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57871,7 +57996,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57871
57996
|
disabled: cartItems.length === 0 || isLoading
|
|
57872
57997
|
})));
|
|
57873
57998
|
};
|
|
57874
|
-
var Container$
|
|
57999
|
+
var Container$K = /*#__PURE__*/styled.div.withConfig({
|
|
57875
58000
|
displayName: "CartView__Container",
|
|
57876
58001
|
componentId: "sc-ydtyl1-0"
|
|
57877
58002
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
@@ -58227,7 +58352,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58227
58352
|
if (items.length === 0) {
|
|
58228
58353
|
return React.createElement(EmptyMessage$2, null, emptyMessage);
|
|
58229
58354
|
}
|
|
58230
|
-
return React.createElement(Container$
|
|
58355
|
+
return React.createElement(Container$L, {
|
|
58231
58356
|
className: className
|
|
58232
58357
|
}, (searchOptions || filterOptions) && React.createElement(HeaderContainer$3, null, React.createElement(HeaderContent$1, null, searchOptions && React.createElement(SearchContainer$3, null, React.createElement(StyledSearchBar$2, {
|
|
58233
58358
|
value: searchOptions.value,
|
|
@@ -58248,7 +58373,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58248
58373
|
}, renderItem(item));
|
|
58249
58374
|
})));
|
|
58250
58375
|
};
|
|
58251
|
-
var Container$
|
|
58376
|
+
var Container$L = /*#__PURE__*/styled.div.withConfig({
|
|
58252
58377
|
displayName: "ScrollableContent__Container",
|
|
58253
58378
|
componentId: "sc-xhh2um-0"
|
|
58254
58379
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -58864,7 +58989,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58864
58989
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58865
58990
|
return imageUrl["default"] || imageUrl.src;
|
|
58866
58991
|
};
|
|
58867
|
-
return React.createElement(Container$
|
|
58992
|
+
return React.createElement(Container$M, null, React.createElement(Header$9, null, React.createElement(BackButton, {
|
|
58868
58993
|
onClick: onBack
|
|
58869
58994
|
}, React.createElement(FaArrowLeft, null), React.createElement("span", null, "Back"))), React.createElement(Content$5, null, React.createElement(DetailsGrid, null, React.createElement(ItemIcon, null, React.createElement("img", {
|
|
58870
58995
|
src: getImageSrc(),
|
|
@@ -58878,7 +59003,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58878
59003
|
fullWidth: true
|
|
58879
59004
|
}))));
|
|
58880
59005
|
};
|
|
58881
|
-
var Container$
|
|
59006
|
+
var Container$M = /*#__PURE__*/styled.div.withConfig({
|
|
58882
59007
|
displayName: "StoreItemDetails__Container",
|
|
58883
59008
|
componentId: "sc-k3ho5z-0"
|
|
58884
59009
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
@@ -58941,7 +59066,8 @@ var Store = function Store(_ref) {
|
|
|
58941
59066
|
tabOrder = _ref.tabOrder,
|
|
58942
59067
|
defaultActiveTab = _ref.defaultActiveTab,
|
|
58943
59068
|
_ref$textInputItemKey = _ref.textInputItemKeys,
|
|
58944
|
-
textInputItemKeys = _ref$textInputItemKey === void 0 ? [] : _ref$textInputItemKey
|
|
59069
|
+
textInputItemKeys = _ref$textInputItemKey === void 0 ? [] : _ref$textInputItemKey,
|
|
59070
|
+
customPacksContent = _ref.customPacksContent;
|
|
58945
59071
|
var _useState = useState(null),
|
|
58946
59072
|
selectedPack = _useState[0],
|
|
58947
59073
|
setSelectedPack = _useState[1];
|
|
@@ -59066,7 +59192,7 @@ var Store = function Store(_ref) {
|
|
|
59066
59192
|
packs: {
|
|
59067
59193
|
id: 'packs',
|
|
59068
59194
|
title: 'Packs',
|
|
59069
|
-
content: React.createElement(StorePacksSection, {
|
|
59195
|
+
content: customPacksContent != null ? customPacksContent : React.createElement(StorePacksSection, {
|
|
59070
59196
|
packs: packs.filter(function (pack) {
|
|
59071
59197
|
return pack.priceUSD < 9.99;
|
|
59072
59198
|
}),
|
|
@@ -59141,7 +59267,7 @@ var Store = function Store(_ref) {
|
|
|
59141
59267
|
onAddToCart: function onAddToCart() {
|
|
59142
59268
|
return handleAddPackToCart(selectedPack);
|
|
59143
59269
|
}
|
|
59144
|
-
}) : React.createElement(Container$
|
|
59270
|
+
}) : React.createElement(Container$N, null, React.createElement(TopBar$1, null, React.createElement(HistoryButton, null, onShowHistory && React.createElement(CTAButton, {
|
|
59145
59271
|
icon: React.createElement(FaHistory, null),
|
|
59146
59272
|
label: "History",
|
|
59147
59273
|
onClick: onShowHistory
|
|
@@ -59167,7 +59293,7 @@ var Store = function Store(_ref) {
|
|
|
59167
59293
|
fullWidth: true
|
|
59168
59294
|
}))));
|
|
59169
59295
|
};
|
|
59170
|
-
var Container$
|
|
59296
|
+
var Container$N = /*#__PURE__*/styled.div.withConfig({
|
|
59171
59297
|
displayName: "Store__Container",
|
|
59172
59298
|
componentId: "sc-64dj00-0"
|
|
59173
59299
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
|
|
@@ -59538,7 +59664,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59538
59664
|
width: "500px",
|
|
59539
59665
|
cancelDrag: "#TraderContainer",
|
|
59540
59666
|
scale: scale
|
|
59541
|
-
}, React.createElement(Container$
|
|
59667
|
+
}, React.createElement(Container$O, null, React.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
59542
59668
|
className: "golden"
|
|
59543
59669
|
}), React.createElement(ScrollWrapper, {
|
|
59544
59670
|
id: "TraderContainer"
|
|
@@ -59566,7 +59692,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59566
59692
|
onPointerDown: onClose
|
|
59567
59693
|
}, "Cancel"))));
|
|
59568
59694
|
};
|
|
59569
|
-
var Container$
|
|
59695
|
+
var Container$O = /*#__PURE__*/styled.div.withConfig({
|
|
59570
59696
|
displayName: "TradingMenu__Container",
|
|
59571
59697
|
componentId: "sc-1wjsz1l-0"
|
|
59572
59698
|
})(["width:100%;"]);
|
|
@@ -59600,11 +59726,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
59600
59726
|
var _ref$maxLines = _ref.maxLines,
|
|
59601
59727
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
59602
59728
|
children = _ref.children;
|
|
59603
|
-
return React.createElement(Container$
|
|
59729
|
+
return React.createElement(Container$P, {
|
|
59604
59730
|
maxLines: maxLines
|
|
59605
59731
|
}, children);
|
|
59606
59732
|
};
|
|
59607
|
-
var Container$
|
|
59733
|
+
var Container$P = /*#__PURE__*/styled.div.withConfig({
|
|
59608
59734
|
displayName: "Truncate__Container",
|
|
59609
59735
|
componentId: "sc-6x00qb-0"
|
|
59610
59736
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -59712,7 +59838,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
59712
59838
|
};
|
|
59713
59839
|
});
|
|
59714
59840
|
}, [lessons, imageStyle]);
|
|
59715
|
-
return React.createElement(Container$
|
|
59841
|
+
return React.createElement(Container$Q, null, React.createElement(Stepper, {
|
|
59716
59842
|
steps: generateLessons,
|
|
59717
59843
|
finalCTAButton: {
|
|
59718
59844
|
label: 'Close',
|
|
@@ -59729,7 +59855,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
59729
59855
|
displayName: "TutorialStepper__LessonBody",
|
|
59730
59856
|
componentId: "sc-7tgzv2-1"
|
|
59731
59857
|
})([""]);
|
|
59732
|
-
var Container$
|
|
59858
|
+
var Container$Q = /*#__PURE__*/styled.div.withConfig({
|
|
59733
59859
|
displayName: "TutorialStepper__Container",
|
|
59734
59860
|
componentId: "sc-7tgzv2-2"
|
|
59735
59861
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -59750,5 +59876,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
59750
59876
|
componentId: "sc-7tgzv2-6"
|
|
59751
59877
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
59752
59878
|
|
|
59753
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
59879
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceRows, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
59754
59880
|
//# sourceMappingURL=long-bow.esm.js.map
|