@rpg-engine/long-bow 0.7.0 → 0.7.2
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/long-bow.cjs.development.js +160 -166
- 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 +161 -167
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +145 -100
- package/src/components/ChatRevamp/ChatRevamp.tsx +6 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -5,7 +5,8 @@ import { v4 } from 'uuid';
|
|
|
5
5
|
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, ItemSlotType, isMobileOrTablet, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
|
-
import {
|
|
8
|
+
import { FaTimes } from 'react-icons/fa';
|
|
9
|
+
import { RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
9
10
|
import Draggable from 'react-draggable';
|
|
10
11
|
import ReactDOM from 'react-dom';
|
|
11
12
|
import { camelCase, debounce } from 'lodash-es';
|
|
@@ -26088,38 +26089,23 @@ var Container$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
26088
26089
|
componentId: "sc-b34498-0"
|
|
26089
26090
|
})(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
|
|
26090
26091
|
|
|
26091
|
-
var Column = /*#__PURE__*/styled.div.withConfig({
|
|
26092
|
-
displayName: "Column",
|
|
26093
|
-
componentId: "sc-1pesqff-0"
|
|
26094
|
-
})(["flex:", ";display:flex;flex-wrap:", ";align-items:", ";justify-content:", ";"], function (props) {
|
|
26095
|
-
return props.flex || 'auto';
|
|
26096
|
-
}, function (props) {
|
|
26097
|
-
return props.flexWrap || 'nowrap';
|
|
26098
|
-
}, function (props) {
|
|
26099
|
-
return props.alignItems || 'flex-start';
|
|
26100
|
-
}, function (props) {
|
|
26101
|
-
return props.justifyContent || 'flex-start';
|
|
26102
|
-
});
|
|
26103
|
-
|
|
26104
26092
|
var Chat = function Chat(_ref) {
|
|
26105
26093
|
var chatMessages = _ref.chatMessages,
|
|
26106
26094
|
onSendChatMessage = _ref.onSendChatMessage,
|
|
26095
|
+
onCloseButton = _ref.onCloseButton,
|
|
26107
26096
|
onFocus = _ref.onFocus,
|
|
26108
26097
|
onBlur = _ref.onBlur,
|
|
26109
26098
|
_ref$styles = _ref.styles,
|
|
26110
26099
|
styles = _ref$styles === void 0 ? {
|
|
26111
|
-
textColor: '#
|
|
26112
|
-
buttonColor: '#
|
|
26113
|
-
buttonBackgroundColor: '
|
|
26114
|
-
width: '
|
|
26115
|
-
height: '
|
|
26100
|
+
textColor: '#ff6600',
|
|
26101
|
+
buttonColor: '#ff6600',
|
|
26102
|
+
buttonBackgroundColor: '#333',
|
|
26103
|
+
width: '100%',
|
|
26104
|
+
height: '100%'
|
|
26116
26105
|
} : _ref$styles;
|
|
26117
26106
|
var _useState = useState(''),
|
|
26118
26107
|
message = _useState[0],
|
|
26119
26108
|
setMessage = _useState[1];
|
|
26120
|
-
useEffect(function () {
|
|
26121
|
-
scrollChatToBottom();
|
|
26122
|
-
}, []);
|
|
26123
26109
|
useEffect(function () {
|
|
26124
26110
|
scrollChatToBottom();
|
|
26125
26111
|
}, [chatMessages]);
|
|
@@ -26131,98 +26117,89 @@ var Chat = function Chat(_ref) {
|
|
|
26131
26117
|
};
|
|
26132
26118
|
var handleSubmit = function handleSubmit(event) {
|
|
26133
26119
|
event.preventDefault();
|
|
26134
|
-
if (!message
|
|
26120
|
+
if (!message.trim()) return;
|
|
26135
26121
|
onSendChatMessage(message);
|
|
26136
26122
|
setMessage('');
|
|
26137
26123
|
};
|
|
26138
|
-
var
|
|
26139
|
-
|
|
26140
|
-
|
|
26141
|
-
|
|
26142
|
-
return
|
|
26124
|
+
var truncateName = function truncateName(name, maxLength) {
|
|
26125
|
+
if (maxLength === void 0) {
|
|
26126
|
+
maxLength = 10;
|
|
26127
|
+
}
|
|
26128
|
+
return name.length > maxLength ? name.slice(0, maxLength) + '...' : name;
|
|
26143
26129
|
};
|
|
26144
|
-
var
|
|
26145
|
-
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
key: chatMessage._id + "_" + index
|
|
26149
|
-
}, onRenderMessageLines(chatMessage.emitter, chatMessage.createdAt, chatMessage.message));
|
|
26150
|
-
}) : React.createElement(Message, {
|
|
26151
|
-
color: (styles == null ? void 0 : styles.textColor) || '#c65102'
|
|
26152
|
-
}, "No messages available.");
|
|
26130
|
+
var formatMessage = function formatMessage(chatMessage) {
|
|
26131
|
+
var timestamp = dayjs(chatMessage.createdAt).format('HH:mm');
|
|
26132
|
+
var truncatedName = truncateName(chatMessage.emitter.name);
|
|
26133
|
+
return timestamp + " " + truncatedName + ": " + chatMessage.message;
|
|
26153
26134
|
};
|
|
26154
26135
|
return React.createElement(ChatContainer, {
|
|
26155
|
-
width:
|
|
26156
|
-
height:
|
|
26157
|
-
}, React.createElement(
|
|
26136
|
+
width: styles.width || 'auto',
|
|
26137
|
+
height: styles.height || 'auto'
|
|
26138
|
+
}, React.createElement(CloseButton, {
|
|
26139
|
+
onClick: onCloseButton
|
|
26140
|
+
}, React.createElement(FaTimes, null)), React.createElement(ErrorBoundary$1, {
|
|
26158
26141
|
fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
|
|
26159
26142
|
}, React.createElement(MessagesContainer, {
|
|
26160
26143
|
className: "chat-body"
|
|
26161
|
-
},
|
|
26144
|
+
}, chatMessages.map(function (chatMessage, index) {
|
|
26145
|
+
return React.createElement(Message, {
|
|
26146
|
+
color: styles.textColor || uiColors.yellow,
|
|
26147
|
+
key: chatMessage._id + "_" + index
|
|
26148
|
+
}, formatMessage(chatMessage));
|
|
26149
|
+
})), React.createElement(Form, {
|
|
26162
26150
|
onSubmit: handleSubmit
|
|
26163
|
-
}, React.createElement(Column, {
|
|
26164
|
-
flex: 70
|
|
26165
26151
|
}, React.createElement(TextField, {
|
|
26166
26152
|
value: message,
|
|
26167
|
-
id: "inputMessage",
|
|
26168
26153
|
onChange: function onChange(e) {
|
|
26169
|
-
return
|
|
26154
|
+
return setMessage(e.target.value);
|
|
26170
26155
|
},
|
|
26171
|
-
height: 20,
|
|
26172
26156
|
type: "text",
|
|
26173
26157
|
autoComplete: "off",
|
|
26174
26158
|
onFocus: onFocus,
|
|
26175
26159
|
onBlur: onBlur,
|
|
26176
26160
|
onPointerDown: onFocus,
|
|
26177
|
-
autoFocus: true
|
|
26178
|
-
|
|
26179
|
-
|
|
26180
|
-
|
|
26181
|
-
|
|
26182
|
-
|
|
26183
|
-
id: "chat-send-button",
|
|
26184
|
-
style: {
|
|
26185
|
-
borderRadius: '20%'
|
|
26186
|
-
}
|
|
26187
|
-
}, React.createElement(RxPaperPlane, {
|
|
26188
|
-
size: 15
|
|
26189
|
-
}))))));
|
|
26161
|
+
autoFocus: true,
|
|
26162
|
+
placeholder: "Type your message..."
|
|
26163
|
+
}), React.createElement(SendButton, {
|
|
26164
|
+
type: "submit",
|
|
26165
|
+
disabled: !message.trim()
|
|
26166
|
+
}, "\u25B6"))));
|
|
26190
26167
|
};
|
|
26191
26168
|
var ChatContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26192
26169
|
displayName: "Chat__ChatContainer",
|
|
26193
26170
|
componentId: "sc-1bk05n6-0"
|
|
26194
|
-
})(["
|
|
26171
|
+
})(["width:", ";height:", ";background-color:#1e1e1e81;display:flex;flex-direction:column;position:relative;"], function (props) {
|
|
26172
|
+
return props.width;
|
|
26173
|
+
}, function (props) {
|
|
26195
26174
|
return props.height;
|
|
26196
26175
|
});
|
|
26197
|
-
var TextField = /*#__PURE__*/styled.input.withConfig({
|
|
26198
|
-
displayName: "Chat__TextField",
|
|
26199
|
-
componentId: "sc-1bk05n6-1"
|
|
26200
|
-
})(["width:100%;background-color:rgba(0,0,0,0.25) !important;border:none !important;max-height:28px !important;"]);
|
|
26201
26176
|
var MessagesContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26202
26177
|
displayName: "Chat__MessagesContainer",
|
|
26203
|
-
componentId: "sc-1bk05n6-
|
|
26204
|
-
})(["
|
|
26178
|
+
componentId: "sc-1bk05n6-1"
|
|
26179
|
+
})(["flex-grow:1;overflow-y:auto;padding:10px;margin-left:0.9rem;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:#333;}&::-webkit-scrollbar-thumb{background:transparent;border-radius:3px;}&::-webkit-scrollbar-thumb:hover{background:#222;}&::-webkit-scrollbar-corner{background:#333;}&::-webkit-scrollbar-button{background:#333;}&::-webkit-scrollbar-button:hover{background:#222;}"]);
|
|
26205
26180
|
var Message = /*#__PURE__*/styled.div.withConfig({
|
|
26206
26181
|
displayName: "Chat__Message",
|
|
26207
|
-
componentId: "sc-1bk05n6-
|
|
26208
|
-
})(["margin-bottom:
|
|
26182
|
+
componentId: "sc-1bk05n6-2"
|
|
26183
|
+
})(["margin-bottom:4px;color:", ";font-family:'Press Start 2P',cursive;font-size:0.7rem;white-space:pre-wrap;word-break:break-word;"], function (_ref2) {
|
|
26209
26184
|
var color = _ref2.color;
|
|
26210
26185
|
return color;
|
|
26211
26186
|
});
|
|
26212
26187
|
var Form = /*#__PURE__*/styled.form.withConfig({
|
|
26213
26188
|
displayName: "Chat__Form",
|
|
26189
|
+
componentId: "sc-1bk05n6-3"
|
|
26190
|
+
})(["display:flex;width:100%;padding:5px;"]);
|
|
26191
|
+
var TextField = /*#__PURE__*/styled.input.withConfig({
|
|
26192
|
+
displayName: "Chat__TextField",
|
|
26214
26193
|
componentId: "sc-1bk05n6-4"
|
|
26215
|
-
})(["
|
|
26216
|
-
var
|
|
26217
|
-
displayName: "
|
|
26194
|
+
})(["flex-grow:1;background-color:transparent;color:#ff6600;border:none;font-family:'Press Start 2P',cursive;font-size:0.7rem;border-radius:5px;margin-left:0.9rem;&::placeholder{color:", ";font-size:0.7rem;}&:focus{outline:none;}"], uiColors.lightGray);
|
|
26195
|
+
var SendButton = /*#__PURE__*/styled.button.withConfig({
|
|
26196
|
+
displayName: "Chat__SendButton",
|
|
26218
26197
|
componentId: "sc-1bk05n6-5"
|
|
26219
|
-
})(["color:
|
|
26220
|
-
|
|
26221
|
-
|
|
26222
|
-
|
|
26223
|
-
|
|
26224
|
-
return buttonBackgroundColor;
|
|
26225
|
-
});
|
|
26198
|
+
})(["background-color:transparent;color:#ff6600;border:none;padding:0 10px;font-size:18px;cursor:pointer;transition:color 0.3s ease;&:hover{color:#ff8533;}&:disabled{color:#666;cursor:not-allowed;}"]);
|
|
26199
|
+
var CloseButton = /*#__PURE__*/styled.button.withConfig({
|
|
26200
|
+
displayName: "Chat__CloseButton",
|
|
26201
|
+
componentId: "sc-1bk05n6-6"
|
|
26202
|
+
})(["position:absolute;top:0;right:0;background-color:transparent;border:none;color:white;font-size:16px;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center;transition:color 0.3s ease;&:hover{color:", ";}"], uiColors.darkYellow);
|
|
26226
26203
|
|
|
26227
26204
|
var _excluded$2 = ["innerRef"];
|
|
26228
26205
|
var Input = function Input(_ref) {
|
|
@@ -26263,6 +26240,19 @@ var Container$5 = /*#__PURE__*/styled.div.withConfig({
|
|
|
26263
26240
|
return width;
|
|
26264
26241
|
});
|
|
26265
26242
|
|
|
26243
|
+
var Column = /*#__PURE__*/styled.div.withConfig({
|
|
26244
|
+
displayName: "Column",
|
|
26245
|
+
componentId: "sc-1pesqff-0"
|
|
26246
|
+
})(["flex:", ";display:flex;flex-wrap:", ";align-items:", ";justify-content:", ";"], function (props) {
|
|
26247
|
+
return props.flex || 'auto';
|
|
26248
|
+
}, function (props) {
|
|
26249
|
+
return props.flexWrap || 'nowrap';
|
|
26250
|
+
}, function (props) {
|
|
26251
|
+
return props.alignItems || 'flex-start';
|
|
26252
|
+
}, function (props) {
|
|
26253
|
+
return props.justifyContent || 'flex-start';
|
|
26254
|
+
});
|
|
26255
|
+
|
|
26266
26256
|
var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
26267
26257
|
var chatMessages = _ref.chatMessages,
|
|
26268
26258
|
onSendChatMessage = _ref.onSendChatMessage,
|
|
@@ -26320,7 +26310,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
|
26320
26310
|
opacity: opacity
|
|
26321
26311
|
}, React.createElement(ErrorBoundary$1, {
|
|
26322
26312
|
fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
|
|
26323
|
-
}, onCloseButton && React.createElement(CloseButton, {
|
|
26313
|
+
}, onCloseButton && React.createElement(CloseButton$1, {
|
|
26324
26314
|
onPointerDown: onCloseButton
|
|
26325
26315
|
}, "X"), React.createElement(RPGUIContainer, {
|
|
26326
26316
|
type: RPGUIContainerTypes.FramedGrey,
|
|
@@ -26354,7 +26344,7 @@ var Container$6 = /*#__PURE__*/styled.div.withConfig({
|
|
|
26354
26344
|
displayName: "ChatDeprecated__Container",
|
|
26355
26345
|
componentId: "sc-fuuod3-0"
|
|
26356
26346
|
})(["position:relative;"]);
|
|
26357
|
-
var CloseButton = /*#__PURE__*/styled.div.withConfig({
|
|
26347
|
+
var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
|
|
26358
26348
|
displayName: "ChatDeprecated__CloseButton",
|
|
26359
26349
|
componentId: "sc-fuuod3-1"
|
|
26360
26350
|
})(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
|
|
@@ -26569,7 +26559,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26569
26559
|
}), React.createElement(Ellipsis, {
|
|
26570
26560
|
maxWidth: "140px",
|
|
26571
26561
|
maxLines: 1
|
|
26572
|
-
}, character.name)), React.createElement(CloseButton$
|
|
26562
|
+
}, character.name)), React.createElement(CloseButton$2, {
|
|
26573
26563
|
onPointerDown: function onPointerDown() {
|
|
26574
26564
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
26575
26565
|
}
|
|
@@ -26600,7 +26590,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26600
26590
|
onBlur: onBlur
|
|
26601
26591
|
});
|
|
26602
26592
|
};
|
|
26603
|
-
return React.createElement(
|
|
26593
|
+
return React.createElement(Container$7, null, renderTabs(), React.createElement(PrivateChatContainer, {
|
|
26604
26594
|
width: (styles == null ? void 0 : styles.width) || '80%',
|
|
26605
26595
|
height: (styles == null ? void 0 : styles.height) || 'auto'
|
|
26606
26596
|
}, React.createElement(RecentChatTabContainer, {
|
|
@@ -26608,13 +26598,17 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26608
26598
|
isOpen: showRecentChats
|
|
26609
26599
|
}, renderRecentChatTopBar(), renderRecentChatList()), renderChatContent()));
|
|
26610
26600
|
};
|
|
26601
|
+
var Container$7 = /*#__PURE__*/styled.div.withConfig({
|
|
26602
|
+
displayName: "ChatRevamp__Container",
|
|
26603
|
+
componentId: "sc-1sdiknw-0"
|
|
26604
|
+
})(["max-width:800px;"]);
|
|
26611
26605
|
var TabContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26612
26606
|
displayName: "ChatRevamp__TabContainer",
|
|
26613
|
-
componentId: "sc-1sdiknw-
|
|
26607
|
+
componentId: "sc-1sdiknw-1"
|
|
26614
26608
|
})(["width:100%;display:flex;gap:10px;"]);
|
|
26615
26609
|
var Tab = /*#__PURE__*/styled.button.withConfig({
|
|
26616
26610
|
displayName: "ChatRevamp__Tab",
|
|
26617
|
-
componentId: "sc-1sdiknw-
|
|
26611
|
+
componentId: "sc-1sdiknw-2"
|
|
26618
26612
|
})(["width:120px;color:white;font-size:0.8rem;all:unset;padding:0.6rem;font-size:0.8rem;border-radius:5px 5px 0 0;border-width:0.25rem 0.25rem 0 0.25rem;border-style:solid;border-color:", ";background-color:", ";color:", ";"], function (props) {
|
|
26619
26613
|
return props.active ? '#c65102' : uiColors.gray;
|
|
26620
26614
|
}, function (props) {
|
|
@@ -26624,7 +26618,7 @@ var Tab = /*#__PURE__*/styled.button.withConfig({
|
|
|
26624
26618
|
});
|
|
26625
26619
|
var PrivateChatContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26626
26620
|
displayName: "ChatRevamp__PrivateChatContainer",
|
|
26627
|
-
componentId: "sc-1sdiknw-
|
|
26621
|
+
componentId: "sc-1sdiknw-3"
|
|
26628
26622
|
})(["width:", ";min-height:", " !important;padding:10px;background-color:rgba(0,0,0,0.2);height:auto;display:flex;gap:10px;"], function (_ref2) {
|
|
26629
26623
|
var width = _ref2.width;
|
|
26630
26624
|
return width;
|
|
@@ -26634,7 +26628,7 @@ var PrivateChatContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
26634
26628
|
});
|
|
26635
26629
|
var RecentChatTabContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26636
26630
|
displayName: "ChatRevamp__RecentChatTabContainer",
|
|
26637
|
-
componentId: "sc-1sdiknw-
|
|
26631
|
+
componentId: "sc-1sdiknw-4"
|
|
26638
26632
|
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", ";max-width:200px;min-width:", ";transition:all 0.3s ease-in-out;overflow:hidden;@media (max-width:768px){width:", ";min-width:", ";}"], function (props) {
|
|
26639
26633
|
return props.isPrivate ? 'flex' : 'none';
|
|
26640
26634
|
}, uiColors.gray, function (props) {
|
|
@@ -26648,47 +26642,47 @@ var RecentChatTabContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
26648
26642
|
});
|
|
26649
26643
|
var RecentChatTopBar = /*#__PURE__*/styled.div.withConfig({
|
|
26650
26644
|
displayName: "ChatRevamp__RecentChatTopBar",
|
|
26651
|
-
componentId: "sc-1sdiknw-
|
|
26645
|
+
componentId: "sc-1sdiknw-5"
|
|
26652
26646
|
})(["display:flex;align-items:center;justify-content:space-between;height:30px;"]);
|
|
26653
26647
|
var SearchButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
26654
26648
|
displayName: "ChatRevamp__SearchButton",
|
|
26655
|
-
componentId: "sc-1sdiknw-
|
|
26649
|
+
componentId: "sc-1sdiknw-6"
|
|
26656
26650
|
})(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:4px;position:relative;"]);
|
|
26657
26651
|
var BurgerIconContainer = /*#__PURE__*/styled.button.withConfig({
|
|
26658
26652
|
displayName: "ChatRevamp__BurgerIconContainer",
|
|
26659
|
-
componentId: "sc-1sdiknw-
|
|
26653
|
+
componentId: "sc-1sdiknw-7"
|
|
26660
26654
|
})(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;padding:4px;gap:2px;position:relative;&:after{content:'';width:6px;height:6px;position:absolute;top:0;right:2px;border-radius:50%;background-color:", ";display:", ";}"], uiColors.lightGreen, function (props) {
|
|
26661
26655
|
return props.hasUnseenMessages ? 'block' : 'none';
|
|
26662
26656
|
});
|
|
26663
26657
|
var BurgerLineIcon = /*#__PURE__*/styled.span.withConfig({
|
|
26664
26658
|
displayName: "ChatRevamp__BurgerLineIcon",
|
|
26665
|
-
componentId: "sc-1sdiknw-
|
|
26659
|
+
componentId: "sc-1sdiknw-8"
|
|
26666
26660
|
})(["width:1rem;height:2px;background-color:#ffffff;"]);
|
|
26667
26661
|
var RecentChatLogContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26668
26662
|
displayName: "ChatRevamp__RecentChatLogContainer",
|
|
26669
|
-
componentId: "sc-1sdiknw-
|
|
26663
|
+
componentId: "sc-1sdiknw-9"
|
|
26670
26664
|
})(["border:none;list-style:none;display:flex;opacity:", ";flex-direction:column;gap:0.5rem;transition:opacity 0.3s ease-in-out;padding:0;margin:0;flex:1;"], function (props) {
|
|
26671
26665
|
return props.isOpen ? 1 : 0;
|
|
26672
26666
|
});
|
|
26673
26667
|
var ListElementContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26674
26668
|
displayName: "ChatRevamp__ListElementContainer",
|
|
26675
|
-
componentId: "sc-1sdiknw-
|
|
26669
|
+
componentId: "sc-1sdiknw-10"
|
|
26676
26670
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
26677
26671
|
var ListElement$1 = /*#__PURE__*/styled.button.withConfig({
|
|
26678
26672
|
displayName: "ChatRevamp__ListElement",
|
|
26679
|
-
componentId: "sc-1sdiknw-
|
|
26673
|
+
componentId: "sc-1sdiknw-11"
|
|
26680
26674
|
})(["margin:0.5rem 0 !important;font-size:", " !important;padding:2px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;&:hover{color:#ff0;}max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], uiFonts.size.small, function (props) {
|
|
26681
26675
|
return props.active ? uiColors.yellow : uiColors.white;
|
|
26682
26676
|
});
|
|
26683
26677
|
var StatusDot = /*#__PURE__*/styled.span.withConfig({
|
|
26684
26678
|
displayName: "ChatRevamp__StatusDot",
|
|
26685
|
-
componentId: "sc-1sdiknw-
|
|
26679
|
+
componentId: "sc-1sdiknw-12"
|
|
26686
26680
|
})(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
|
|
26687
26681
|
return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
|
|
26688
26682
|
});
|
|
26689
|
-
var CloseButton$
|
|
26683
|
+
var CloseButton$2 = /*#__PURE__*/styled.button.withConfig({
|
|
26690
26684
|
displayName: "ChatRevamp__CloseButton",
|
|
26691
|
-
componentId: "sc-1sdiknw-
|
|
26685
|
+
componentId: "sc-1sdiknw-13"
|
|
26692
26686
|
})(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
|
|
26693
26687
|
|
|
26694
26688
|
var CheckButton = function CheckButton(_ref) {
|
|
@@ -26898,7 +26892,7 @@ var CircularController = function CircularController(_ref) {
|
|
|
26898
26892
|
length: 12
|
|
26899
26893
|
}).map(function (_, i) {
|
|
26900
26894
|
return renderShortcut(i);
|
|
26901
|
-
})), React.createElement(Button$
|
|
26895
|
+
})), React.createElement(Button$1, {
|
|
26902
26896
|
onTouchStart: onTouchStart,
|
|
26903
26897
|
onTouchEnd: onTouchEnd.bind(null, onActionClick)
|
|
26904
26898
|
}, React.createElement("div", {
|
|
@@ -26908,11 +26902,11 @@ var CircularController = function CircularController(_ref) {
|
|
|
26908
26902
|
onTouchEnd: onTouchEnd.bind(null, onCancelClick)
|
|
26909
26903
|
}, React.createElement("span", null, "X")));
|
|
26910
26904
|
};
|
|
26911
|
-
var Button$
|
|
26905
|
+
var Button$1 = /*#__PURE__*/styled.button.withConfig({
|
|
26912
26906
|
displayName: "CircularController__Button",
|
|
26913
26907
|
componentId: "sc-1fewf3h-0"
|
|
26914
26908
|
})(["width:4.3rem;height:4.3rem;background-color:", ";border:2px solid ", ";border-radius:50%;text-transform:uppercase;font-size:0.7rem;font-weight:bold;display:flex;align-items:center;justify-content:center;position:relative;transition:all 0.1s;margin-top:-3rem;top:-144px;&.active{background-color:", ";border-color:", ";}.sword{transform:rotate(-45deg);height:2.5rem;width:1.9rem;pointer-events:none;}"], uiColors.lightGray, uiColors.darkGray, uiColors.gray, uiColors.yellow);
|
|
26915
|
-
var CancelButton = /*#__PURE__*/styled(Button$
|
|
26909
|
+
var CancelButton = /*#__PURE__*/styled(Button$1).withConfig({
|
|
26916
26910
|
displayName: "CircularController__CancelButton",
|
|
26917
26911
|
componentId: "sc-1fewf3h-1"
|
|
26918
26912
|
})(["width:3rem;height:3rem;font-size:0.8rem;position:relative;left:2.6rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
|
|
@@ -27031,7 +27025,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
27031
27025
|
},
|
|
27032
27026
|
defaultPosition: initialPosition,
|
|
27033
27027
|
scale: scale
|
|
27034
|
-
}, React.createElement(Container$
|
|
27028
|
+
}, React.createElement(Container$8, {
|
|
27035
27029
|
ref: draggableRef,
|
|
27036
27030
|
width: width,
|
|
27037
27031
|
height: height || 'auto',
|
|
@@ -27045,12 +27039,12 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
27045
27039
|
}, React.createElement(Title, null, imgSrc && React.createElement(Icon, {
|
|
27046
27040
|
src: imgSrc,
|
|
27047
27041
|
width: imgWidth
|
|
27048
|
-
}), title)), onCloseButton && React.createElement(CloseButton$
|
|
27042
|
+
}), title)), onCloseButton && React.createElement(CloseButton$3, {
|
|
27049
27043
|
className: "container-close",
|
|
27050
27044
|
onPointerDown: onCloseButton
|
|
27051
27045
|
}, "X"), children));
|
|
27052
27046
|
};
|
|
27053
|
-
var Container$
|
|
27047
|
+
var Container$8 = /*#__PURE__*/styled.div.withConfig({
|
|
27054
27048
|
displayName: "DraggableContainer__Container",
|
|
27055
27049
|
componentId: "sc-184mpyl-0"
|
|
27056
27050
|
})(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
@@ -27071,7 +27065,7 @@ var Container$7 = /*#__PURE__*/styled.div.withConfig({
|
|
|
27071
27065
|
var isFullScreen = _ref6.isFullScreen;
|
|
27072
27066
|
return isFullScreen && css(["justify-content:center;align-items:flex-start;align-content:flex-start;"]);
|
|
27073
27067
|
});
|
|
27074
|
-
var CloseButton$
|
|
27068
|
+
var CloseButton$3 = /*#__PURE__*/styled.div.withConfig({
|
|
27075
27069
|
displayName: "DraggableContainer__CloseButton",
|
|
27076
27070
|
componentId: "sc-184mpyl-1"
|
|
27077
27071
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
|
|
@@ -27134,11 +27128,11 @@ var countItemFromInventory = function countItemFromInventory(itemKey, inventory)
|
|
|
27134
27128
|
var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
|
|
27135
27129
|
var ModalPortal = function ModalPortal(_ref) {
|
|
27136
27130
|
var children = _ref.children;
|
|
27137
|
-
return ReactDOM.createPortal(React.createElement(Container$
|
|
27131
|
+
return ReactDOM.createPortal(React.createElement(Container$9, {
|
|
27138
27132
|
className: "rpgui-content"
|
|
27139
27133
|
}, children), modalRoot);
|
|
27140
27134
|
};
|
|
27141
|
-
var Container$
|
|
27135
|
+
var Container$9 = /*#__PURE__*/styled.div.withConfig({
|
|
27142
27136
|
displayName: "ModalPortal__Container",
|
|
27143
27137
|
componentId: "sc-dgmp04-0"
|
|
27144
27138
|
})(["position:static !important;"]);
|
|
@@ -27334,7 +27328,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27334
27328
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
27335
27329
|
};
|
|
27336
27330
|
}, []);
|
|
27337
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
27331
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$a, Object.assign({
|
|
27338
27332
|
fontSize: fontSize,
|
|
27339
27333
|
ref: ref
|
|
27340
27334
|
}, pos), React.createElement("ul", {
|
|
@@ -27351,7 +27345,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27351
27345
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
27352
27346
|
}))));
|
|
27353
27347
|
};
|
|
27354
|
-
var Container$
|
|
27348
|
+
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
27355
27349
|
displayName: "RelativeListMenu__Container",
|
|
27356
27350
|
componentId: "sc-7hohf-0"
|
|
27357
27351
|
})(["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) {
|
|
@@ -27381,7 +27375,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
27381
27375
|
var _ref$current;
|
|
27382
27376
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
27383
27377
|
};
|
|
27384
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
27378
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$b, {
|
|
27385
27379
|
ref: ref,
|
|
27386
27380
|
onTouchEnd: function onTouchEnd() {
|
|
27387
27381
|
handleFadeOut();
|
|
@@ -27409,7 +27403,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
27409
27403
|
}, option.text);
|
|
27410
27404
|
}))));
|
|
27411
27405
|
};
|
|
27412
|
-
var Container$
|
|
27406
|
+
var Container$b = /*#__PURE__*/styled.div.withConfig({
|
|
27413
27407
|
displayName: "MobileItemTooltip__Container",
|
|
27414
27408
|
componentId: "sc-ku4p1j-0"
|
|
27415
27409
|
})(["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:640px){flex-direction:column;}"]);
|
|
@@ -27809,7 +27803,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
27809
27803
|
setDraggingItem(item);
|
|
27810
27804
|
}
|
|
27811
27805
|
};
|
|
27812
|
-
return React.createElement(Container$
|
|
27806
|
+
return React.createElement(Container$c, {
|
|
27813
27807
|
isDraggingItem: !!draggingItem,
|
|
27814
27808
|
item: item,
|
|
27815
27809
|
className: "rpgui-icon empty-slot",
|
|
@@ -27887,7 +27881,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
27887
27881
|
setIsTooltipVisible: setTooltipVisible
|
|
27888
27882
|
}));
|
|
27889
27883
|
});
|
|
27890
|
-
var Container$
|
|
27884
|
+
var Container$c = /*#__PURE__*/styled.div.withConfig({
|
|
27891
27885
|
displayName: "ItemSlot__Container",
|
|
27892
27886
|
componentId: "sc-l2j5ef-0"
|
|
27893
27887
|
})(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
|
|
@@ -28003,7 +27997,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28003
27997
|
});
|
|
28004
27998
|
};
|
|
28005
27999
|
var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
|
|
28006
|
-
return React.createElement(Container$
|
|
28000
|
+
return React.createElement(Container$d, {
|
|
28007
28001
|
item: item
|
|
28008
28002
|
}, React.createElement(Header, null, React.createElement("div", null, React.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React.createElement(Rarity, {
|
|
28009
28003
|
item: item
|
|
@@ -28017,7 +28011,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28017
28011
|
"$isSpecial": true
|
|
28018
28012
|
}, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
|
|
28019
28013
|
};
|
|
28020
|
-
var Container$
|
|
28014
|
+
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
28021
28015
|
displayName: "ItemInfo__Container",
|
|
28022
28016
|
componentId: "sc-1xm4q8k-0"
|
|
28023
28017
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:18rem;@media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
|
|
@@ -28163,7 +28157,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
28163
28157
|
}
|
|
28164
28158
|
return;
|
|
28165
28159
|
}, []);
|
|
28166
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
28160
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$e, {
|
|
28167
28161
|
ref: ref
|
|
28168
28162
|
}, React.createElement(ItemInfoDisplay, {
|
|
28169
28163
|
item: item,
|
|
@@ -28172,7 +28166,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
28172
28166
|
equipmentSet: equipmentSet
|
|
28173
28167
|
})));
|
|
28174
28168
|
};
|
|
28175
|
-
var Container$
|
|
28169
|
+
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
28176
28170
|
displayName: "ItemTooltip__Container",
|
|
28177
28171
|
componentId: "sc-11d9r7x-0"
|
|
28178
28172
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -28531,7 +28525,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
28531
28525
|
onChange(selectedValue);
|
|
28532
28526
|
}
|
|
28533
28527
|
}, [selectedValue]);
|
|
28534
|
-
return React.createElement(Container$
|
|
28528
|
+
return React.createElement(Container$f, {
|
|
28535
28529
|
onMouseLeave: function onMouseLeave() {
|
|
28536
28530
|
return setOpened(false);
|
|
28537
28531
|
},
|
|
@@ -28559,7 +28553,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
28559
28553
|
}, option.option);
|
|
28560
28554
|
})));
|
|
28561
28555
|
};
|
|
28562
|
-
var Container$
|
|
28556
|
+
var Container$f = /*#__PURE__*/styled.div.withConfig({
|
|
28563
28557
|
displayName: "Dropdown__Container",
|
|
28564
28558
|
componentId: "sc-8arn65-0"
|
|
28565
28559
|
})(["position:relative;width:", ";"], function (props) {
|
|
@@ -28675,7 +28669,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
28675
28669
|
var centeredX = x - OFFSET;
|
|
28676
28670
|
var centeredY = y - OFFSET;
|
|
28677
28671
|
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);
|
|
28678
|
-
return React.createElement(Container$
|
|
28672
|
+
return React.createElement(Container$g, null, React.createElement(SpriteContainer, {
|
|
28679
28673
|
x: centeredX,
|
|
28680
28674
|
y: centeredY
|
|
28681
28675
|
}, React.createElement(SpriteFromAtlas, {
|
|
@@ -28693,7 +28687,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
28693
28687
|
}), stackInfo));
|
|
28694
28688
|
};
|
|
28695
28689
|
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";
|
|
28696
|
-
var Container$
|
|
28690
|
+
var Container$g = /*#__PURE__*/styled.div.withConfig({
|
|
28697
28691
|
displayName: "DraggedItem__Container",
|
|
28698
28692
|
componentId: "sc-mlzzcp-0"
|
|
28699
28693
|
})(["position:relative;"]);
|
|
@@ -28901,7 +28895,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28901
28895
|
title: "Requests (" + friendRequests.length + ")",
|
|
28902
28896
|
content: requestsTabContent
|
|
28903
28897
|
}];
|
|
28904
|
-
return React.createElement(Container$
|
|
28898
|
+
return React.createElement(Container$h, null, React.createElement(TableTab, {
|
|
28905
28899
|
tabs: tabs,
|
|
28906
28900
|
activeTextColor: "#000",
|
|
28907
28901
|
inactiveColor: "#777",
|
|
@@ -28943,7 +28937,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
28943
28937
|
}, "Reject")));
|
|
28944
28938
|
})));
|
|
28945
28939
|
};
|
|
28946
|
-
var Container$
|
|
28940
|
+
var Container$h = /*#__PURE__*/styled.div.withConfig({
|
|
28947
28941
|
displayName: "SearchFriend__Container",
|
|
28948
28942
|
componentId: "sc-1lt1ols-0"
|
|
28949
28943
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -29146,7 +29140,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29146
29140
|
var _useState2 = useState(false),
|
|
29147
29141
|
showGoNextIndicator = _useState2[0],
|
|
29148
29142
|
setShowGoNextIndicator = _useState2[1];
|
|
29149
|
-
return React.createElement(Container$
|
|
29143
|
+
return React.createElement(Container$i, null, React.createElement(DynamicText, {
|
|
29150
29144
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
29151
29145
|
onFinish: function onFinish() {
|
|
29152
29146
|
setShowGoNextIndicator(true);
|
|
@@ -29164,7 +29158,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29164
29158
|
}
|
|
29165
29159
|
}));
|
|
29166
29160
|
};
|
|
29167
|
-
var Container$
|
|
29161
|
+
var Container$i = /*#__PURE__*/styled.div.withConfig({
|
|
29168
29162
|
displayName: "NPCDialogText__Container",
|
|
29169
29163
|
componentId: "sc-1cxkdh9-0"
|
|
29170
29164
|
})([""]);
|
|
@@ -29316,7 +29310,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29316
29310
|
return null;
|
|
29317
29311
|
});
|
|
29318
29312
|
};
|
|
29319
|
-
return React.createElement(Container$
|
|
29313
|
+
return React.createElement(Container$j, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
|
|
29320
29314
|
text: currentQuestion.text,
|
|
29321
29315
|
onStart: function onStart() {
|
|
29322
29316
|
return setCanShowAnswers(false);
|
|
@@ -29326,7 +29320,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29326
29320
|
}
|
|
29327
29321
|
})), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
29328
29322
|
};
|
|
29329
|
-
var Container$
|
|
29323
|
+
var Container$j = /*#__PURE__*/styled.div.withConfig({
|
|
29330
29324
|
displayName: "QuestionDialog__Container",
|
|
29331
29325
|
componentId: "sc-bxc5u0-0"
|
|
29332
29326
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -29387,7 +29381,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29387
29381
|
}
|
|
29388
29382
|
})), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
|
|
29389
29383
|
src: imagePath || img$7
|
|
29390
|
-
}))) : React.createElement(React.Fragment, null, React.createElement(Container$
|
|
29384
|
+
}))) : React.createElement(React.Fragment, null, React.createElement(Container$k, null, React.createElement(CloseIcon, {
|
|
29391
29385
|
onPointerDown: _onClose
|
|
29392
29386
|
}, "X"), React.createElement(TextContainer$1, {
|
|
29393
29387
|
flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -29403,7 +29397,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29403
29397
|
src: imagePath || img$7
|
|
29404
29398
|
})))));
|
|
29405
29399
|
};
|
|
29406
|
-
var Container$
|
|
29400
|
+
var Container$k = /*#__PURE__*/styled.div.withConfig({
|
|
29407
29401
|
displayName: "NPCDialog__Container",
|
|
29408
29402
|
componentId: "sc-1b4aw74-0"
|
|
29409
29403
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29464,7 +29458,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29464
29458
|
type: RPGUIContainerTypes.FramedGold,
|
|
29465
29459
|
width: '50%',
|
|
29466
29460
|
height: '180px'
|
|
29467
|
-
}, React.createElement(React.Fragment, null, React.createElement(Container$
|
|
29461
|
+
}, React.createElement(React.Fragment, null, React.createElement(Container$l, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
|
|
29468
29462
|
flex: '70%'
|
|
29469
29463
|
}, React.createElement(NPCDialogText, {
|
|
29470
29464
|
onStartStep: function onStartStep() {
|
|
@@ -29506,7 +29500,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29506
29500
|
src: img$6
|
|
29507
29501
|
}))), ")"));
|
|
29508
29502
|
};
|
|
29509
|
-
var Container$
|
|
29503
|
+
var Container$l = /*#__PURE__*/styled.div.withConfig({
|
|
29510
29504
|
displayName: "NPCMultiDialog__Container",
|
|
29511
29505
|
componentId: "sc-rvu5wg-0"
|
|
29512
29506
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29655,7 +29649,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
29655
29649
|
onPointerDown: function onPointerDown() {
|
|
29656
29650
|
return goToNextImage();
|
|
29657
29651
|
}
|
|
29658
|
-
}))), onCloseButton && React.createElement(CloseButton$
|
|
29652
|
+
}))), onCloseButton && React.createElement(CloseButton$4, {
|
|
29659
29653
|
className: "container-close",
|
|
29660
29654
|
onPointerDown: onCloseButton
|
|
29661
29655
|
}, "X"));
|
|
@@ -29686,7 +29680,7 @@ var Description$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
29686
29680
|
}, function (props) {
|
|
29687
29681
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
29688
29682
|
});
|
|
29689
|
-
var CloseButton$
|
|
29683
|
+
var CloseButton$4 = /*#__PURE__*/styled.div.withConfig({
|
|
29690
29684
|
displayName: "ImageCarousel__CloseButton",
|
|
29691
29685
|
componentId: "sc-jl6f8-4"
|
|
29692
29686
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
|
|
@@ -29935,7 +29929,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29935
29929
|
}
|
|
29936
29930
|
return null;
|
|
29937
29931
|
};
|
|
29938
|
-
return React.createElement(Container$
|
|
29932
|
+
return React.createElement(Container$m, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
|
|
29939
29933
|
id: "shortcuts_list"
|
|
29940
29934
|
}, Array.from({
|
|
29941
29935
|
length: 12
|
|
@@ -29953,7 +29947,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29953
29947
|
}, getContent(i));
|
|
29954
29948
|
})));
|
|
29955
29949
|
};
|
|
29956
|
-
var Container$
|
|
29950
|
+
var Container$m = /*#__PURE__*/styled.div.withConfig({
|
|
29957
29951
|
displayName: "ShortcutsSetter__Container",
|
|
29958
29952
|
componentId: "sc-xuouuf-0"
|
|
29959
29953
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -30065,7 +30059,7 @@ var ItemQuantitySelector = function ItemQuantitySelector(_ref) {
|
|
|
30065
30059
|
return React.createElement(StyledContainer, {
|
|
30066
30060
|
type: RPGUIContainerTypes.Framed,
|
|
30067
30061
|
width: "25rem"
|
|
30068
|
-
}, React.createElement(CloseButton$
|
|
30062
|
+
}, React.createElement(CloseButton$5, {
|
|
30069
30063
|
className: "container-close",
|
|
30070
30064
|
onPointerDown: onClose
|
|
30071
30065
|
}, "X"), React.createElement("h2", null, "Select quantity to move"), React.createElement(StyledForm, {
|
|
@@ -30123,7 +30117,7 @@ var StyledInput = /*#__PURE__*/styled(Input).withConfig({
|
|
|
30123
30117
|
displayName: "ItemQuantitySelector__StyledInput",
|
|
30124
30118
|
componentId: "sc-yfdtpn-2"
|
|
30125
30119
|
})(["text-align:center;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"]);
|
|
30126
|
-
var CloseButton$
|
|
30120
|
+
var CloseButton$5 = /*#__PURE__*/styled.div.withConfig({
|
|
30127
30121
|
displayName: "ItemQuantitySelector__CloseButton",
|
|
30128
30122
|
componentId: "sc-yfdtpn-3"
|
|
30129
30123
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:0.8rem;"]);
|
|
@@ -30556,7 +30550,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30556
30550
|
onSelected = _ref.onSelected,
|
|
30557
30551
|
x = _ref.x,
|
|
30558
30552
|
y = _ref.y;
|
|
30559
|
-
return React.createElement(Container$
|
|
30553
|
+
return React.createElement(Container$n, {
|
|
30560
30554
|
x: x,
|
|
30561
30555
|
y: y
|
|
30562
30556
|
}, React.createElement("ul", {
|
|
@@ -30573,7 +30567,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30573
30567
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30574
30568
|
})));
|
|
30575
30569
|
};
|
|
30576
|
-
var Container$
|
|
30570
|
+
var Container$n = /*#__PURE__*/styled.div.withConfig({
|
|
30577
30571
|
displayName: "ListMenu__Container",
|
|
30578
30572
|
componentId: "sc-i9097t-0"
|
|
30579
30573
|
})(["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) {
|
|
@@ -30592,7 +30586,7 @@ var Pager = function Pager(_ref) {
|
|
|
30592
30586
|
itemsPerPage = _ref.itemsPerPage,
|
|
30593
30587
|
onPageChange = _ref.onPageChange;
|
|
30594
30588
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
30595
|
-
return React.createElement(Container$
|
|
30589
|
+
return React.createElement(Container$o, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
30596
30590
|
disabled: currentPage === 1,
|
|
30597
30591
|
onPointerDown: function onPointerDown() {
|
|
30598
30592
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -30606,7 +30600,7 @@ var Pager = function Pager(_ref) {
|
|
|
30606
30600
|
}
|
|
30607
30601
|
}, '>')));
|
|
30608
30602
|
};
|
|
30609
|
-
var Container$
|
|
30603
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
30610
30604
|
displayName: "Pager__Container",
|
|
30611
30605
|
componentId: "sc-1ekmf50-0"
|
|
30612
30606
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -30619,7 +30613,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30619
30613
|
var onConfirm = _ref.onConfirm,
|
|
30620
30614
|
onClose = _ref.onClose,
|
|
30621
30615
|
message = _ref.message;
|
|
30622
|
-
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$
|
|
30616
|
+
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$p, {
|
|
30623
30617
|
onPointerDown: onClose
|
|
30624
30618
|
}, React.createElement(DraggableContainer, {
|
|
30625
30619
|
width: "auto",
|
|
@@ -30642,7 +30636,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
|
|
|
30642
30636
|
displayName: "ConfirmModal__Background",
|
|
30643
30637
|
componentId: "sc-11qkyu1-0"
|
|
30644
30638
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
30645
|
-
var Container$
|
|
30639
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
30646
30640
|
displayName: "ConfirmModal__Container",
|
|
30647
30641
|
componentId: "sc-11qkyu1-1"
|
|
30648
30642
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31159,13 +31153,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
31159
31153
|
children = _ref.children,
|
|
31160
31154
|
styles = _ref.styles,
|
|
31161
31155
|
centerContent = _ref.centerContent;
|
|
31162
|
-
return React.createElement(Container$
|
|
31156
|
+
return React.createElement(Container$q, {
|
|
31163
31157
|
styles: styles,
|
|
31164
31158
|
"data-tab-id": id,
|
|
31165
31159
|
centerContent: centerContent
|
|
31166
31160
|
}, children);
|
|
31167
31161
|
};
|
|
31168
|
-
var Container$
|
|
31162
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31169
31163
|
displayName: "TabBody__Container",
|
|
31170
31164
|
componentId: "sc-196oof2-0"
|
|
31171
31165
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -31794,7 +31788,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
31794
31788
|
}
|
|
31795
31789
|
return value * 100 / max;
|
|
31796
31790
|
};
|
|
31797
|
-
return React.createElement(Container$
|
|
31791
|
+
return React.createElement(Container$r, {
|
|
31798
31792
|
className: "rpgui-progress",
|
|
31799
31793
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
31800
31794
|
"data-rpguitype": "progress",
|
|
@@ -31824,7 +31818,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
31824
31818
|
displayName: "ProgressBar__TextOverlay",
|
|
31825
31819
|
componentId: "sc-qa6fzh-1"
|
|
31826
31820
|
})(["width:100%;position:relative;"]);
|
|
31827
|
-
var Container$
|
|
31821
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
31828
31822
|
displayName: "ProgressBar__Container",
|
|
31829
31823
|
componentId: "sc-qa6fzh-2"
|
|
31830
31824
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -32116,9 +32110,9 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
32116
32110
|
|
|
32117
32111
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
32118
32112
|
var children = _ref.children;
|
|
32119
|
-
return React.createElement(Container$
|
|
32113
|
+
return React.createElement(Container$s, null, children);
|
|
32120
32114
|
};
|
|
32121
|
-
var Container$
|
|
32115
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
32122
32116
|
displayName: "RPGUIScrollbar__Container",
|
|
32123
32117
|
componentId: "sc-p3msmb-0"
|
|
32124
32118
|
})([".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;}"]);
|
|
@@ -32274,7 +32268,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32274
32268
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
32275
32269
|
// Ensure the width is at least 1% if value is greater than 0
|
|
32276
32270
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
32277
|
-
return React.createElement(Container$
|
|
32271
|
+
return React.createElement(Container$t, {
|
|
32278
32272
|
className: "simple-progress-bar"
|
|
32279
32273
|
}, React.createElement(ProgressBarContainer, {
|
|
32280
32274
|
margin: margin
|
|
@@ -32283,7 +32277,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32283
32277
|
bgColor: bgColor
|
|
32284
32278
|
}))));
|
|
32285
32279
|
};
|
|
32286
|
-
var Container$
|
|
32280
|
+
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
32287
32281
|
displayName: "SimpleProgressBar__Container",
|
|
32288
32282
|
componentId: "sc-mbeil3-0"
|
|
32289
32283
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -32506,7 +32500,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
32506
32500
|
cancelDrag: "#skillsDiv",
|
|
32507
32501
|
scale: scale,
|
|
32508
32502
|
width: "100%"
|
|
32509
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
32503
|
+
}, onCloseButton && React.createElement(CloseButton$6, {
|
|
32510
32504
|
onPointerDown: onCloseButton
|
|
32511
32505
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
32512
32506
|
id: "skillsDiv"
|
|
@@ -32541,7 +32535,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
32541
32535
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
32542
32536
|
componentId: "sc-1g0c67q-2"
|
|
32543
32537
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
32544
|
-
var CloseButton$
|
|
32538
|
+
var CloseButton$6 = /*#__PURE__*/styled.div.withConfig({
|
|
32545
32539
|
displayName: "SkillsContainer__CloseButton",
|
|
32546
32540
|
componentId: "sc-1g0c67q-3"
|
|
32547
32541
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -32563,7 +32557,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32563
32557
|
castingType = spell.castingType,
|
|
32564
32558
|
cooldown = spell.cooldown,
|
|
32565
32559
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32566
|
-
return React.createElement(Container$
|
|
32560
|
+
return React.createElement(Container$u, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$8, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
32567
32561
|
className: "label"
|
|
32568
32562
|
}, "Casting Type:"), React.createElement("div", {
|
|
32569
32563
|
className: "value"
|
|
@@ -32589,7 +32583,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32589
32583
|
className: "value"
|
|
32590
32584
|
}, requiredItem))), React.createElement(Description$2, null, description));
|
|
32591
32585
|
};
|
|
32592
|
-
var Container$
|
|
32586
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
32593
32587
|
displayName: "SpellInfo__Container",
|
|
32594
32588
|
componentId: "sc-4hbw3q-0"
|
|
32595
32589
|
})(["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);
|
|
@@ -32643,7 +32637,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32643
32637
|
var _ref$current;
|
|
32644
32638
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
32645
32639
|
};
|
|
32646
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
32640
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$v, {
|
|
32647
32641
|
ref: ref,
|
|
32648
32642
|
onTouchEnd: function onTouchEnd() {
|
|
32649
32643
|
handleFadeOut();
|
|
@@ -32668,7 +32662,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32668
32662
|
}, option.text);
|
|
32669
32663
|
}))));
|
|
32670
32664
|
};
|
|
32671
|
-
var Container$
|
|
32665
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
32672
32666
|
displayName: "MobileSpellTooltip__Container",
|
|
32673
32667
|
componentId: "sc-6p7uvr-0"
|
|
32674
32668
|
})(["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;}"]);
|
|
@@ -32709,13 +32703,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
32709
32703
|
}
|
|
32710
32704
|
return;
|
|
32711
32705
|
}, []);
|
|
32712
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
32706
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$w, {
|
|
32713
32707
|
ref: ref
|
|
32714
32708
|
}, React.createElement(SpellInfoDisplay, {
|
|
32715
32709
|
spell: spell
|
|
32716
32710
|
})));
|
|
32717
32711
|
};
|
|
32718
|
-
var Container$
|
|
32712
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
32719
32713
|
displayName: "SpellTooltip__Container",
|
|
32720
32714
|
componentId: "sc-1go0gwg-0"
|
|
32721
32715
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -32788,7 +32782,7 @@ var Spell = function Spell(_ref) {
|
|
|
32788
32782
|
var IMAGE_SCALE = 2;
|
|
32789
32783
|
return React.createElement(SpellInfoWrapper, {
|
|
32790
32784
|
spell: spell
|
|
32791
|
-
}, React.createElement(Container$
|
|
32785
|
+
}, React.createElement(Container$x, {
|
|
32792
32786
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
32793
32787
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
32794
32788
|
className: "spell"
|
|
@@ -32807,7 +32801,7 @@ var Spell = function Spell(_ref) {
|
|
|
32807
32801
|
className: "mana"
|
|
32808
32802
|
}, manaCost))));
|
|
32809
32803
|
};
|
|
32810
|
-
var Container$
|
|
32804
|
+
var Container$x = /*#__PURE__*/styled.button.withConfig({
|
|
32811
32805
|
displayName: "Spell__Container",
|
|
32812
32806
|
componentId: "sc-j96fa2-0"
|
|
32813
32807
|
})(["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) {
|
|
@@ -32886,7 +32880,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32886
32880
|
height: "inherit",
|
|
32887
32881
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32888
32882
|
scale: scale
|
|
32889
|
-
}, React.createElement(Container$
|
|
32883
|
+
}, React.createElement(Container$y, null, React.createElement(Title$a, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
32890
32884
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32891
32885
|
settingShortcutIndex: settingShortcutIndex,
|
|
32892
32886
|
shortcuts: shortcuts,
|
|
@@ -32922,7 +32916,7 @@ var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
|
32922
32916
|
displayName: "Spellbook__Title",
|
|
32923
32917
|
componentId: "sc-r02nfq-0"
|
|
32924
32918
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
32925
|
-
var Container$
|
|
32919
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
32926
32920
|
displayName: "Spellbook__Container",
|
|
32927
32921
|
componentId: "sc-r02nfq-1"
|
|
32928
32922
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -33169,7 +33163,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
33169
33163
|
scale = _ref.scale;
|
|
33170
33164
|
return React.createElement(Draggable, {
|
|
33171
33165
|
scale: scale
|
|
33172
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
33166
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$7, {
|
|
33173
33167
|
onPointerDown: onClose
|
|
33174
33168
|
}, "X"), React.createElement(DayNightContainer, null, React.createElement(DayNightPeriod, {
|
|
33175
33169
|
periodOfDay: periodOfDay
|
|
@@ -33183,7 +33177,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
33183
33177
|
displayName: "TimeWidget__Time",
|
|
33184
33178
|
componentId: "sc-1ja236h-1"
|
|
33185
33179
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
33186
|
-
var CloseButton$
|
|
33180
|
+
var CloseButton$7 = /*#__PURE__*/styled.p.withConfig({
|
|
33187
33181
|
displayName: "TimeWidget__CloseButton",
|
|
33188
33182
|
componentId: "sc-1ja236h-2"
|
|
33189
33183
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -33473,11 +33467,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
33473
33467
|
var _ref$maxLines = _ref.maxLines,
|
|
33474
33468
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
33475
33469
|
children = _ref.children;
|
|
33476
|
-
return React.createElement(Container$
|
|
33470
|
+
return React.createElement(Container$z, {
|
|
33477
33471
|
maxLines: maxLines
|
|
33478
33472
|
}, children);
|
|
33479
33473
|
};
|
|
33480
|
-
var Container$
|
|
33474
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
33481
33475
|
displayName: "Truncate__Container",
|
|
33482
33476
|
componentId: "sc-6x00qb-0"
|
|
33483
33477
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -33585,7 +33579,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
33585
33579
|
};
|
|
33586
33580
|
});
|
|
33587
33581
|
}, [lessons, imageStyle]);
|
|
33588
|
-
return React.createElement(Container$
|
|
33582
|
+
return React.createElement(Container$A, null, React.createElement(Stepper, {
|
|
33589
33583
|
steps: generateLessons,
|
|
33590
33584
|
finalCTAButton: {
|
|
33591
33585
|
label: 'Close',
|
|
@@ -33602,7 +33596,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
33602
33596
|
displayName: "TutorialStepper__LessonBody",
|
|
33603
33597
|
componentId: "sc-7tgzv2-1"
|
|
33604
33598
|
})([""]);
|
|
33605
|
-
var Container$
|
|
33599
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
33606
33600
|
displayName: "TutorialStepper__Container",
|
|
33607
33601
|
componentId: "sc-7tgzv2-2"
|
|
33608
33602
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|