@rpg-engine/long-bow 0.7.0 → 0.7.1
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
|
@@ -13,6 +13,7 @@ var uuid = require('uuid');
|
|
|
13
13
|
var shared = require('@rpg-engine/shared');
|
|
14
14
|
var dayjs = _interopDefault(require('dayjs'));
|
|
15
15
|
var reactErrorBoundary = require('react-error-boundary');
|
|
16
|
+
var fa = require('react-icons/fa');
|
|
16
17
|
var rx = require('react-icons/rx');
|
|
17
18
|
var Draggable = _interopDefault(require('react-draggable'));
|
|
18
19
|
var ReactDOM = _interopDefault(require('react-dom'));
|
|
@@ -26095,38 +26096,23 @@ var Container$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26095
26096
|
componentId: "sc-b34498-0"
|
|
26096
26097
|
})(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
|
|
26097
26098
|
|
|
26098
|
-
var Column = /*#__PURE__*/styled__default.div.withConfig({
|
|
26099
|
-
displayName: "Column",
|
|
26100
|
-
componentId: "sc-1pesqff-0"
|
|
26101
|
-
})(["flex:", ";display:flex;flex-wrap:", ";align-items:", ";justify-content:", ";"], function (props) {
|
|
26102
|
-
return props.flex || 'auto';
|
|
26103
|
-
}, function (props) {
|
|
26104
|
-
return props.flexWrap || 'nowrap';
|
|
26105
|
-
}, function (props) {
|
|
26106
|
-
return props.alignItems || 'flex-start';
|
|
26107
|
-
}, function (props) {
|
|
26108
|
-
return props.justifyContent || 'flex-start';
|
|
26109
|
-
});
|
|
26110
|
-
|
|
26111
26099
|
var Chat = function Chat(_ref) {
|
|
26112
26100
|
var chatMessages = _ref.chatMessages,
|
|
26113
26101
|
onSendChatMessage = _ref.onSendChatMessage,
|
|
26102
|
+
onCloseButton = _ref.onCloseButton,
|
|
26114
26103
|
onFocus = _ref.onFocus,
|
|
26115
26104
|
onBlur = _ref.onBlur,
|
|
26116
26105
|
_ref$styles = _ref.styles,
|
|
26117
26106
|
styles = _ref$styles === void 0 ? {
|
|
26118
|
-
textColor: '#
|
|
26119
|
-
buttonColor: '#
|
|
26120
|
-
buttonBackgroundColor: '
|
|
26121
|
-
width: '
|
|
26122
|
-
height: '
|
|
26107
|
+
textColor: '#ff6600',
|
|
26108
|
+
buttonColor: '#ff6600',
|
|
26109
|
+
buttonBackgroundColor: '#333',
|
|
26110
|
+
width: '100%',
|
|
26111
|
+
height: '100%'
|
|
26123
26112
|
} : _ref$styles;
|
|
26124
26113
|
var _useState = React.useState(''),
|
|
26125
26114
|
message = _useState[0],
|
|
26126
26115
|
setMessage = _useState[1];
|
|
26127
|
-
React.useEffect(function () {
|
|
26128
|
-
scrollChatToBottom();
|
|
26129
|
-
}, []);
|
|
26130
26116
|
React.useEffect(function () {
|
|
26131
26117
|
scrollChatToBottom();
|
|
26132
26118
|
}, [chatMessages]);
|
|
@@ -26138,98 +26124,89 @@ var Chat = function Chat(_ref) {
|
|
|
26138
26124
|
};
|
|
26139
26125
|
var handleSubmit = function handleSubmit(event) {
|
|
26140
26126
|
event.preventDefault();
|
|
26141
|
-
if (!message
|
|
26127
|
+
if (!message.trim()) return;
|
|
26142
26128
|
onSendChatMessage(message);
|
|
26143
26129
|
setMessage('');
|
|
26144
26130
|
};
|
|
26145
|
-
var
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
|
|
26149
|
-
return
|
|
26131
|
+
var truncateName = function truncateName(name, maxLength) {
|
|
26132
|
+
if (maxLength === void 0) {
|
|
26133
|
+
maxLength = 10;
|
|
26134
|
+
}
|
|
26135
|
+
return name.length > maxLength ? name.slice(0, maxLength) + '...' : name;
|
|
26150
26136
|
};
|
|
26151
|
-
var
|
|
26152
|
-
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
key: chatMessage._id + "_" + index
|
|
26156
|
-
}, onRenderMessageLines(chatMessage.emitter, chatMessage.createdAt, chatMessage.message));
|
|
26157
|
-
}) : React__default.createElement(Message, {
|
|
26158
|
-
color: (styles == null ? void 0 : styles.textColor) || '#c65102'
|
|
26159
|
-
}, "No messages available.");
|
|
26137
|
+
var formatMessage = function formatMessage(chatMessage) {
|
|
26138
|
+
var timestamp = dayjs(chatMessage.createdAt).format('HH:mm');
|
|
26139
|
+
var truncatedName = truncateName(chatMessage.emitter.name);
|
|
26140
|
+
return timestamp + " " + truncatedName + ": " + chatMessage.message;
|
|
26160
26141
|
};
|
|
26161
26142
|
return React__default.createElement(ChatContainer, {
|
|
26162
|
-
width:
|
|
26163
|
-
height:
|
|
26164
|
-
}, React__default.createElement(
|
|
26143
|
+
width: styles.width || 'auto',
|
|
26144
|
+
height: styles.height || 'auto'
|
|
26145
|
+
}, React__default.createElement(CloseButton, {
|
|
26146
|
+
onClick: onCloseButton
|
|
26147
|
+
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(reactErrorBoundary.ErrorBoundary, {
|
|
26165
26148
|
fallback: React__default.createElement("p", null, "Oops! Your chat has crashed.")
|
|
26166
26149
|
}, React__default.createElement(MessagesContainer, {
|
|
26167
26150
|
className: "chat-body"
|
|
26168
|
-
},
|
|
26151
|
+
}, chatMessages.map(function (chatMessage, index) {
|
|
26152
|
+
return React__default.createElement(Message, {
|
|
26153
|
+
color: styles.textColor || uiColors.yellow,
|
|
26154
|
+
key: chatMessage._id + "_" + index
|
|
26155
|
+
}, formatMessage(chatMessage));
|
|
26156
|
+
})), React__default.createElement(Form, {
|
|
26169
26157
|
onSubmit: handleSubmit
|
|
26170
|
-
}, React__default.createElement(Column, {
|
|
26171
|
-
flex: 70
|
|
26172
26158
|
}, React__default.createElement(TextField, {
|
|
26173
26159
|
value: message,
|
|
26174
|
-
id: "inputMessage",
|
|
26175
26160
|
onChange: function onChange(e) {
|
|
26176
|
-
return
|
|
26161
|
+
return setMessage(e.target.value);
|
|
26177
26162
|
},
|
|
26178
|
-
height: 20,
|
|
26179
26163
|
type: "text",
|
|
26180
26164
|
autoComplete: "off",
|
|
26181
26165
|
onFocus: onFocus,
|
|
26182
26166
|
onBlur: onBlur,
|
|
26183
26167
|
onPointerDown: onFocus,
|
|
26184
|
-
autoFocus: true
|
|
26185
|
-
|
|
26186
|
-
|
|
26187
|
-
|
|
26188
|
-
|
|
26189
|
-
|
|
26190
|
-
id: "chat-send-button",
|
|
26191
|
-
style: {
|
|
26192
|
-
borderRadius: '20%'
|
|
26193
|
-
}
|
|
26194
|
-
}, React__default.createElement(rx.RxPaperPlane, {
|
|
26195
|
-
size: 15
|
|
26196
|
-
}))))));
|
|
26168
|
+
autoFocus: true,
|
|
26169
|
+
placeholder: "Type your message..."
|
|
26170
|
+
}), React__default.createElement(SendButton, {
|
|
26171
|
+
type: "submit",
|
|
26172
|
+
disabled: !message.trim()
|
|
26173
|
+
}, "\u25B6"))));
|
|
26197
26174
|
};
|
|
26198
26175
|
var ChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26199
26176
|
displayName: "Chat__ChatContainer",
|
|
26200
26177
|
componentId: "sc-1bk05n6-0"
|
|
26201
|
-
})(["
|
|
26178
|
+
})(["width:", ";height:", ";background-color:#1e1e1e81;display:flex;flex-direction:column;position:relative;"], function (props) {
|
|
26179
|
+
return props.width;
|
|
26180
|
+
}, function (props) {
|
|
26202
26181
|
return props.height;
|
|
26203
26182
|
});
|
|
26204
|
-
var TextField = /*#__PURE__*/styled__default.input.withConfig({
|
|
26205
|
-
displayName: "Chat__TextField",
|
|
26206
|
-
componentId: "sc-1bk05n6-1"
|
|
26207
|
-
})(["width:100%;background-color:rgba(0,0,0,0.25) !important;border:none !important;max-height:28px !important;"]);
|
|
26208
26183
|
var MessagesContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26209
26184
|
displayName: "Chat__MessagesContainer",
|
|
26210
|
-
componentId: "sc-1bk05n6-
|
|
26211
|
-
})(["
|
|
26185
|
+
componentId: "sc-1bk05n6-1"
|
|
26186
|
+
})(["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;}"]);
|
|
26212
26187
|
var Message = /*#__PURE__*/styled__default.div.withConfig({
|
|
26213
26188
|
displayName: "Chat__Message",
|
|
26214
|
-
componentId: "sc-1bk05n6-
|
|
26215
|
-
})(["margin-bottom:
|
|
26189
|
+
componentId: "sc-1bk05n6-2"
|
|
26190
|
+
})(["margin-bottom:4px;color:", ";font-family:'Press Start 2P',cursive;font-size:0.7rem;white-space:pre-wrap;word-break:break-word;"], function (_ref2) {
|
|
26216
26191
|
var color = _ref2.color;
|
|
26217
26192
|
return color;
|
|
26218
26193
|
});
|
|
26219
26194
|
var Form = /*#__PURE__*/styled__default.form.withConfig({
|
|
26220
26195
|
displayName: "Chat__Form",
|
|
26196
|
+
componentId: "sc-1bk05n6-3"
|
|
26197
|
+
})(["display:flex;width:100%;padding:5px;"]);
|
|
26198
|
+
var TextField = /*#__PURE__*/styled__default.input.withConfig({
|
|
26199
|
+
displayName: "Chat__TextField",
|
|
26221
26200
|
componentId: "sc-1bk05n6-4"
|
|
26222
|
-
})(["
|
|
26223
|
-
var
|
|
26224
|
-
displayName: "
|
|
26201
|
+
})(["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);
|
|
26202
|
+
var SendButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
26203
|
+
displayName: "Chat__SendButton",
|
|
26225
26204
|
componentId: "sc-1bk05n6-5"
|
|
26226
|
-
})(["color:
|
|
26227
|
-
|
|
26228
|
-
|
|
26229
|
-
|
|
26230
|
-
|
|
26231
|
-
return buttonBackgroundColor;
|
|
26232
|
-
});
|
|
26205
|
+
})(["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;}"]);
|
|
26206
|
+
var CloseButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
26207
|
+
displayName: "Chat__CloseButton",
|
|
26208
|
+
componentId: "sc-1bk05n6-6"
|
|
26209
|
+
})(["position:absolute;top:-10px;right:-10px;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);
|
|
26233
26210
|
|
|
26234
26211
|
var _excluded$2 = ["innerRef"];
|
|
26235
26212
|
var Input = function Input(_ref) {
|
|
@@ -26269,6 +26246,19 @@ var Container$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26269
26246
|
return width;
|
|
26270
26247
|
});
|
|
26271
26248
|
|
|
26249
|
+
var Column = /*#__PURE__*/styled__default.div.withConfig({
|
|
26250
|
+
displayName: "Column",
|
|
26251
|
+
componentId: "sc-1pesqff-0"
|
|
26252
|
+
})(["flex:", ";display:flex;flex-wrap:", ";align-items:", ";justify-content:", ";"], function (props) {
|
|
26253
|
+
return props.flex || 'auto';
|
|
26254
|
+
}, function (props) {
|
|
26255
|
+
return props.flexWrap || 'nowrap';
|
|
26256
|
+
}, function (props) {
|
|
26257
|
+
return props.alignItems || 'flex-start';
|
|
26258
|
+
}, function (props) {
|
|
26259
|
+
return props.justifyContent || 'flex-start';
|
|
26260
|
+
});
|
|
26261
|
+
|
|
26272
26262
|
var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
26273
26263
|
var chatMessages = _ref.chatMessages,
|
|
26274
26264
|
onSendChatMessage = _ref.onSendChatMessage,
|
|
@@ -26326,7 +26316,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
|
26326
26316
|
opacity: opacity
|
|
26327
26317
|
}, React__default.createElement(reactErrorBoundary.ErrorBoundary, {
|
|
26328
26318
|
fallback: React__default.createElement("p", null, "Oops! Your chat has crashed.")
|
|
26329
|
-
}, onCloseButton && React__default.createElement(CloseButton, {
|
|
26319
|
+
}, onCloseButton && React__default.createElement(CloseButton$1, {
|
|
26330
26320
|
onPointerDown: onCloseButton
|
|
26331
26321
|
}, "X"), React__default.createElement(RPGUIContainer, {
|
|
26332
26322
|
type: exports.RPGUIContainerTypes.FramedGrey,
|
|
@@ -26360,7 +26350,7 @@ var Container$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26360
26350
|
displayName: "ChatDeprecated__Container",
|
|
26361
26351
|
componentId: "sc-fuuod3-0"
|
|
26362
26352
|
})(["position:relative;"]);
|
|
26363
|
-
var CloseButton = /*#__PURE__*/styled__default.div.withConfig({
|
|
26353
|
+
var CloseButton$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
26364
26354
|
displayName: "ChatDeprecated__CloseButton",
|
|
26365
26355
|
componentId: "sc-fuuod3-1"
|
|
26366
26356
|
})(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
|
|
@@ -26575,7 +26565,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26575
26565
|
}), React__default.createElement(Ellipsis, {
|
|
26576
26566
|
maxWidth: "140px",
|
|
26577
26567
|
maxLines: 1
|
|
26578
|
-
}, character.name)), React__default.createElement(CloseButton$
|
|
26568
|
+
}, character.name)), React__default.createElement(CloseButton$2, {
|
|
26579
26569
|
onPointerDown: function onPointerDown() {
|
|
26580
26570
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
26581
26571
|
}
|
|
@@ -26606,7 +26596,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26606
26596
|
onBlur: onBlur
|
|
26607
26597
|
});
|
|
26608
26598
|
};
|
|
26609
|
-
return React__default.createElement(
|
|
26599
|
+
return React__default.createElement(Container$7, null, renderTabs(), React__default.createElement(PrivateChatContainer, {
|
|
26610
26600
|
width: (styles == null ? void 0 : styles.width) || '80%',
|
|
26611
26601
|
height: (styles == null ? void 0 : styles.height) || 'auto'
|
|
26612
26602
|
}, React__default.createElement(RecentChatTabContainer, {
|
|
@@ -26614,13 +26604,17 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26614
26604
|
isOpen: showRecentChats
|
|
26615
26605
|
}, renderRecentChatTopBar(), renderRecentChatList()), renderChatContent()));
|
|
26616
26606
|
};
|
|
26607
|
+
var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
26608
|
+
displayName: "ChatRevamp__Container",
|
|
26609
|
+
componentId: "sc-1sdiknw-0"
|
|
26610
|
+
})(["max-width:800px;"]);
|
|
26617
26611
|
var TabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26618
26612
|
displayName: "ChatRevamp__TabContainer",
|
|
26619
|
-
componentId: "sc-1sdiknw-
|
|
26613
|
+
componentId: "sc-1sdiknw-1"
|
|
26620
26614
|
})(["width:100%;display:flex;gap:10px;"]);
|
|
26621
26615
|
var Tab = /*#__PURE__*/styled__default.button.withConfig({
|
|
26622
26616
|
displayName: "ChatRevamp__Tab",
|
|
26623
|
-
componentId: "sc-1sdiknw-
|
|
26617
|
+
componentId: "sc-1sdiknw-2"
|
|
26624
26618
|
})(["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) {
|
|
26625
26619
|
return props.active ? '#c65102' : uiColors.gray;
|
|
26626
26620
|
}, function (props) {
|
|
@@ -26630,7 +26624,7 @@ var Tab = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
26630
26624
|
});
|
|
26631
26625
|
var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26632
26626
|
displayName: "ChatRevamp__PrivateChatContainer",
|
|
26633
|
-
componentId: "sc-1sdiknw-
|
|
26627
|
+
componentId: "sc-1sdiknw-3"
|
|
26634
26628
|
})(["width:", ";min-height:", " !important;padding:10px;background-color:rgba(0,0,0,0.2);height:auto;display:flex;gap:10px;"], function (_ref2) {
|
|
26635
26629
|
var width = _ref2.width;
|
|
26636
26630
|
return width;
|
|
@@ -26640,7 +26634,7 @@ var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26640
26634
|
});
|
|
26641
26635
|
var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26642
26636
|
displayName: "ChatRevamp__RecentChatTabContainer",
|
|
26643
|
-
componentId: "sc-1sdiknw-
|
|
26637
|
+
componentId: "sc-1sdiknw-4"
|
|
26644
26638
|
})(["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) {
|
|
26645
26639
|
return props.isPrivate ? 'flex' : 'none';
|
|
26646
26640
|
}, uiColors.gray, function (props) {
|
|
@@ -26654,47 +26648,47 @@ var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26654
26648
|
});
|
|
26655
26649
|
var RecentChatTopBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
26656
26650
|
displayName: "ChatRevamp__RecentChatTopBar",
|
|
26657
|
-
componentId: "sc-1sdiknw-
|
|
26651
|
+
componentId: "sc-1sdiknw-5"
|
|
26658
26652
|
})(["display:flex;align-items:center;justify-content:space-between;height:30px;"]);
|
|
26659
26653
|
var SearchButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26660
26654
|
displayName: "ChatRevamp__SearchButton",
|
|
26661
|
-
componentId: "sc-1sdiknw-
|
|
26655
|
+
componentId: "sc-1sdiknw-6"
|
|
26662
26656
|
})(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:4px;position:relative;"]);
|
|
26663
26657
|
var BurgerIconContainer = /*#__PURE__*/styled__default.button.withConfig({
|
|
26664
26658
|
displayName: "ChatRevamp__BurgerIconContainer",
|
|
26665
|
-
componentId: "sc-1sdiknw-
|
|
26659
|
+
componentId: "sc-1sdiknw-7"
|
|
26666
26660
|
})(["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) {
|
|
26667
26661
|
return props.hasUnseenMessages ? 'block' : 'none';
|
|
26668
26662
|
});
|
|
26669
26663
|
var BurgerLineIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
26670
26664
|
displayName: "ChatRevamp__BurgerLineIcon",
|
|
26671
|
-
componentId: "sc-1sdiknw-
|
|
26665
|
+
componentId: "sc-1sdiknw-8"
|
|
26672
26666
|
})(["width:1rem;height:2px;background-color:#ffffff;"]);
|
|
26673
26667
|
var RecentChatLogContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26674
26668
|
displayName: "ChatRevamp__RecentChatLogContainer",
|
|
26675
|
-
componentId: "sc-1sdiknw-
|
|
26669
|
+
componentId: "sc-1sdiknw-9"
|
|
26676
26670
|
})(["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) {
|
|
26677
26671
|
return props.isOpen ? 1 : 0;
|
|
26678
26672
|
});
|
|
26679
26673
|
var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26680
26674
|
displayName: "ChatRevamp__ListElementContainer",
|
|
26681
|
-
componentId: "sc-1sdiknw-
|
|
26675
|
+
componentId: "sc-1sdiknw-10"
|
|
26682
26676
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
26683
26677
|
var ListElement$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26684
26678
|
displayName: "ChatRevamp__ListElement",
|
|
26685
|
-
componentId: "sc-1sdiknw-
|
|
26679
|
+
componentId: "sc-1sdiknw-11"
|
|
26686
26680
|
})(["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) {
|
|
26687
26681
|
return props.active ? uiColors.yellow : uiColors.white;
|
|
26688
26682
|
});
|
|
26689
26683
|
var StatusDot = /*#__PURE__*/styled__default.span.withConfig({
|
|
26690
26684
|
displayName: "ChatRevamp__StatusDot",
|
|
26691
|
-
componentId: "sc-1sdiknw-
|
|
26685
|
+
componentId: "sc-1sdiknw-12"
|
|
26692
26686
|
})(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
|
|
26693
26687
|
return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
|
|
26694
26688
|
});
|
|
26695
|
-
var CloseButton$
|
|
26689
|
+
var CloseButton$2 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26696
26690
|
displayName: "ChatRevamp__CloseButton",
|
|
26697
|
-
componentId: "sc-1sdiknw-
|
|
26691
|
+
componentId: "sc-1sdiknw-13"
|
|
26698
26692
|
})(["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);
|
|
26699
26693
|
|
|
26700
26694
|
var CheckButton = function CheckButton(_ref) {
|
|
@@ -26904,7 +26898,7 @@ var CircularController = function CircularController(_ref) {
|
|
|
26904
26898
|
length: 12
|
|
26905
26899
|
}).map(function (_, i) {
|
|
26906
26900
|
return renderShortcut(i);
|
|
26907
|
-
})), React__default.createElement(Button$
|
|
26901
|
+
})), React__default.createElement(Button$1, {
|
|
26908
26902
|
onTouchStart: onTouchStart,
|
|
26909
26903
|
onTouchEnd: onTouchEnd.bind(null, onActionClick)
|
|
26910
26904
|
}, React__default.createElement("div", {
|
|
@@ -26914,11 +26908,11 @@ var CircularController = function CircularController(_ref) {
|
|
|
26914
26908
|
onTouchEnd: onTouchEnd.bind(null, onCancelClick)
|
|
26915
26909
|
}, React__default.createElement("span", null, "X")));
|
|
26916
26910
|
};
|
|
26917
|
-
var Button$
|
|
26911
|
+
var Button$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26918
26912
|
displayName: "CircularController__Button",
|
|
26919
26913
|
componentId: "sc-1fewf3h-0"
|
|
26920
26914
|
})(["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);
|
|
26921
|
-
var CancelButton = /*#__PURE__*/styled__default(Button$
|
|
26915
|
+
var CancelButton = /*#__PURE__*/styled__default(Button$1).withConfig({
|
|
26922
26916
|
displayName: "CircularController__CancelButton",
|
|
26923
26917
|
componentId: "sc-1fewf3h-1"
|
|
26924
26918
|
})(["width:3rem;height:3rem;font-size:0.8rem;position:relative;left:2.6rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
|
|
@@ -27037,7 +27031,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
27037
27031
|
},
|
|
27038
27032
|
defaultPosition: initialPosition,
|
|
27039
27033
|
scale: scale
|
|
27040
|
-
}, React__default.createElement(Container$
|
|
27034
|
+
}, React__default.createElement(Container$8, {
|
|
27041
27035
|
ref: draggableRef,
|
|
27042
27036
|
width: width,
|
|
27043
27037
|
height: height || 'auto',
|
|
@@ -27051,12 +27045,12 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
27051
27045
|
}, React__default.createElement(Title, null, imgSrc && React__default.createElement(Icon, {
|
|
27052
27046
|
src: imgSrc,
|
|
27053
27047
|
width: imgWidth
|
|
27054
|
-
}), title)), onCloseButton && React__default.createElement(CloseButton$
|
|
27048
|
+
}), title)), onCloseButton && React__default.createElement(CloseButton$3, {
|
|
27055
27049
|
className: "container-close",
|
|
27056
27050
|
onPointerDown: onCloseButton
|
|
27057
27051
|
}, "X"), children));
|
|
27058
27052
|
};
|
|
27059
|
-
var Container$
|
|
27053
|
+
var Container$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
27060
27054
|
displayName: "DraggableContainer__Container",
|
|
27061
27055
|
componentId: "sc-184mpyl-0"
|
|
27062
27056
|
})(["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) {
|
|
@@ -27077,7 +27071,7 @@ var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
27077
27071
|
var isFullScreen = _ref6.isFullScreen;
|
|
27078
27072
|
return isFullScreen && styled.css(["justify-content:center;align-items:flex-start;align-content:flex-start;"]);
|
|
27079
27073
|
});
|
|
27080
|
-
var CloseButton$
|
|
27074
|
+
var CloseButton$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
27081
27075
|
displayName: "DraggableContainer__CloseButton",
|
|
27082
27076
|
componentId: "sc-184mpyl-1"
|
|
27083
27077
|
})(["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;}"]);
|
|
@@ -27140,11 +27134,11 @@ var countItemFromInventory = function countItemFromInventory(itemKey, inventory)
|
|
|
27140
27134
|
var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
|
|
27141
27135
|
var ModalPortal = function ModalPortal(_ref) {
|
|
27142
27136
|
var children = _ref.children;
|
|
27143
|
-
return ReactDOM.createPortal(React__default.createElement(Container$
|
|
27137
|
+
return ReactDOM.createPortal(React__default.createElement(Container$9, {
|
|
27144
27138
|
className: "rpgui-content"
|
|
27145
27139
|
}, children), modalRoot);
|
|
27146
27140
|
};
|
|
27147
|
-
var Container$
|
|
27141
|
+
var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
27148
27142
|
displayName: "ModalPortal__Container",
|
|
27149
27143
|
componentId: "sc-dgmp04-0"
|
|
27150
27144
|
})(["position:static !important;"]);
|
|
@@ -27340,7 +27334,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27340
27334
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
27341
27335
|
};
|
|
27342
27336
|
}, []);
|
|
27343
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
27337
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$a, Object.assign({
|
|
27344
27338
|
fontSize: fontSize,
|
|
27345
27339
|
ref: ref
|
|
27346
27340
|
}, pos), React__default.createElement("ul", {
|
|
@@ -27357,7 +27351,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27357
27351
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
27358
27352
|
}))));
|
|
27359
27353
|
};
|
|
27360
|
-
var Container$
|
|
27354
|
+
var Container$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
27361
27355
|
displayName: "RelativeListMenu__Container",
|
|
27362
27356
|
componentId: "sc-7hohf-0"
|
|
27363
27357
|
})(["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) {
|
|
@@ -27387,7 +27381,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
27387
27381
|
var _ref$current;
|
|
27388
27382
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
27389
27383
|
};
|
|
27390
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
27384
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$b, {
|
|
27391
27385
|
ref: ref,
|
|
27392
27386
|
onTouchEnd: function onTouchEnd() {
|
|
27393
27387
|
handleFadeOut();
|
|
@@ -27415,7 +27409,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
27415
27409
|
}, option.text);
|
|
27416
27410
|
}))));
|
|
27417
27411
|
};
|
|
27418
|
-
var Container$
|
|
27412
|
+
var Container$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
27419
27413
|
displayName: "MobileItemTooltip__Container",
|
|
27420
27414
|
componentId: "sc-ku4p1j-0"
|
|
27421
27415
|
})(["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;}"]);
|
|
@@ -27815,7 +27809,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
27815
27809
|
setDraggingItem(item);
|
|
27816
27810
|
}
|
|
27817
27811
|
};
|
|
27818
|
-
return React__default.createElement(Container$
|
|
27812
|
+
return React__default.createElement(Container$c, {
|
|
27819
27813
|
isDraggingItem: !!draggingItem,
|
|
27820
27814
|
item: item,
|
|
27821
27815
|
className: "rpgui-icon empty-slot",
|
|
@@ -27893,7 +27887,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
27893
27887
|
setIsTooltipVisible: setTooltipVisible
|
|
27894
27888
|
}));
|
|
27895
27889
|
});
|
|
27896
|
-
var Container$
|
|
27890
|
+
var Container$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
27897
27891
|
displayName: "ItemSlot__Container",
|
|
27898
27892
|
componentId: "sc-l2j5ef-0"
|
|
27899
27893
|
})(["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) {
|
|
@@ -28009,7 +28003,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28009
28003
|
});
|
|
28010
28004
|
};
|
|
28011
28005
|
var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
|
|
28012
|
-
return React__default.createElement(Container$
|
|
28006
|
+
return React__default.createElement(Container$d, {
|
|
28013
28007
|
item: item
|
|
28014
28008
|
}, React__default.createElement(Header, null, React__default.createElement("div", null, React__default.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React__default.createElement(Rarity, {
|
|
28015
28009
|
item: item
|
|
@@ -28023,7 +28017,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28023
28017
|
"$isSpecial": true
|
|
28024
28018
|
}, "Two handed"), React__default.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React__default.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React__default.createElement(MissingStatistics, null, React__default.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
|
|
28025
28019
|
};
|
|
28026
|
-
var Container$
|
|
28020
|
+
var Container$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
28027
28021
|
displayName: "ItemInfo__Container",
|
|
28028
28022
|
componentId: "sc-1xm4q8k-0"
|
|
28029
28023
|
})(["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) {
|
|
@@ -28169,7 +28163,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
28169
28163
|
}
|
|
28170
28164
|
return;
|
|
28171
28165
|
}, []);
|
|
28172
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
28166
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$e, {
|
|
28173
28167
|
ref: ref
|
|
28174
28168
|
}, React__default.createElement(ItemInfoDisplay, {
|
|
28175
28169
|
item: item,
|
|
@@ -28178,7 +28172,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
28178
28172
|
equipmentSet: equipmentSet
|
|
28179
28173
|
})));
|
|
28180
28174
|
};
|
|
28181
|
-
var Container$
|
|
28175
|
+
var Container$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
28182
28176
|
displayName: "ItemTooltip__Container",
|
|
28183
28177
|
componentId: "sc-11d9r7x-0"
|
|
28184
28178
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -28537,7 +28531,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
28537
28531
|
onChange(selectedValue);
|
|
28538
28532
|
}
|
|
28539
28533
|
}, [selectedValue]);
|
|
28540
|
-
return React__default.createElement(Container$
|
|
28534
|
+
return React__default.createElement(Container$f, {
|
|
28541
28535
|
onMouseLeave: function onMouseLeave() {
|
|
28542
28536
|
return setOpened(false);
|
|
28543
28537
|
},
|
|
@@ -28565,7 +28559,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
28565
28559
|
}, option.option);
|
|
28566
28560
|
})));
|
|
28567
28561
|
};
|
|
28568
|
-
var Container$
|
|
28562
|
+
var Container$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
28569
28563
|
displayName: "Dropdown__Container",
|
|
28570
28564
|
componentId: "sc-8arn65-0"
|
|
28571
28565
|
})(["position:relative;width:", ";"], function (props) {
|
|
@@ -28681,7 +28675,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
28681
28675
|
var centeredX = x - OFFSET;
|
|
28682
28676
|
var centeredY = y - OFFSET;
|
|
28683
28677
|
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);
|
|
28684
|
-
return React__default.createElement(Container$
|
|
28678
|
+
return React__default.createElement(Container$g, null, React__default.createElement(SpriteContainer, {
|
|
28685
28679
|
x: centeredX,
|
|
28686
28680
|
y: centeredY
|
|
28687
28681
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -28699,7 +28693,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
28699
28693
|
}), stackInfo));
|
|
28700
28694
|
};
|
|
28701
28695
|
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";
|
|
28702
|
-
var Container$
|
|
28696
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
28703
28697
|
displayName: "DraggedItem__Container",
|
|
28704
28698
|
componentId: "sc-mlzzcp-0"
|
|
28705
28699
|
})(["position:relative;"]);
|
|
@@ -28907,7 +28901,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28907
28901
|
title: "Requests (" + friendRequests.length + ")",
|
|
28908
28902
|
content: requestsTabContent
|
|
28909
28903
|
}];
|
|
28910
|
-
return React__default.createElement(Container$
|
|
28904
|
+
return React__default.createElement(Container$h, null, React__default.createElement(TableTab, {
|
|
28911
28905
|
tabs: tabs,
|
|
28912
28906
|
activeTextColor: "#000",
|
|
28913
28907
|
inactiveColor: "#777",
|
|
@@ -28949,7 +28943,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
28949
28943
|
}, "Reject")));
|
|
28950
28944
|
})));
|
|
28951
28945
|
};
|
|
28952
|
-
var Container$
|
|
28946
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
28953
28947
|
displayName: "SearchFriend__Container",
|
|
28954
28948
|
componentId: "sc-1lt1ols-0"
|
|
28955
28949
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -29152,7 +29146,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29152
29146
|
var _useState2 = React.useState(false),
|
|
29153
29147
|
showGoNextIndicator = _useState2[0],
|
|
29154
29148
|
setShowGoNextIndicator = _useState2[1];
|
|
29155
|
-
return React__default.createElement(Container$
|
|
29149
|
+
return React__default.createElement(Container$i, null, React__default.createElement(DynamicText, {
|
|
29156
29150
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
29157
29151
|
onFinish: function onFinish() {
|
|
29158
29152
|
setShowGoNextIndicator(true);
|
|
@@ -29170,7 +29164,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29170
29164
|
}
|
|
29171
29165
|
}));
|
|
29172
29166
|
};
|
|
29173
|
-
var Container$
|
|
29167
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29174
29168
|
displayName: "NPCDialogText__Container",
|
|
29175
29169
|
componentId: "sc-1cxkdh9-0"
|
|
29176
29170
|
})([""]);
|
|
@@ -29322,7 +29316,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29322
29316
|
return null;
|
|
29323
29317
|
});
|
|
29324
29318
|
};
|
|
29325
|
-
return React__default.createElement(Container$
|
|
29319
|
+
return React__default.createElement(Container$j, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
29326
29320
|
text: currentQuestion.text,
|
|
29327
29321
|
onStart: function onStart() {
|
|
29328
29322
|
return setCanShowAnswers(false);
|
|
@@ -29332,7 +29326,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29332
29326
|
}
|
|
29333
29327
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
29334
29328
|
};
|
|
29335
|
-
var Container$
|
|
29329
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
29336
29330
|
displayName: "QuestionDialog__Container",
|
|
29337
29331
|
componentId: "sc-bxc5u0-0"
|
|
29338
29332
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -29392,7 +29386,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29392
29386
|
}
|
|
29393
29387
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
29394
29388
|
src: imagePath || img$7
|
|
29395
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
29389
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$k, null, React__default.createElement(CloseIcon, {
|
|
29396
29390
|
onPointerDown: _onClose
|
|
29397
29391
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
29398
29392
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -29408,7 +29402,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29408
29402
|
src: imagePath || img$7
|
|
29409
29403
|
})))));
|
|
29410
29404
|
};
|
|
29411
|
-
var Container$
|
|
29405
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
29412
29406
|
displayName: "NPCDialog__Container",
|
|
29413
29407
|
componentId: "sc-1b4aw74-0"
|
|
29414
29408
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29468,7 +29462,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29468
29462
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
29469
29463
|
width: '50%',
|
|
29470
29464
|
height: '180px'
|
|
29471
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
29465
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$l, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
29472
29466
|
flex: '70%'
|
|
29473
29467
|
}, React__default.createElement(NPCDialogText, {
|
|
29474
29468
|
onStartStep: function onStartStep() {
|
|
@@ -29510,7 +29504,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29510
29504
|
src: img$6
|
|
29511
29505
|
}))), ")"));
|
|
29512
29506
|
};
|
|
29513
|
-
var Container$
|
|
29507
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
29514
29508
|
displayName: "NPCMultiDialog__Container",
|
|
29515
29509
|
componentId: "sc-rvu5wg-0"
|
|
29516
29510
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29659,7 +29653,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
29659
29653
|
onPointerDown: function onPointerDown() {
|
|
29660
29654
|
return goToNextImage();
|
|
29661
29655
|
}
|
|
29662
|
-
}))), onCloseButton && React__default.createElement(CloseButton$
|
|
29656
|
+
}))), onCloseButton && React__default.createElement(CloseButton$4, {
|
|
29663
29657
|
className: "container-close",
|
|
29664
29658
|
onPointerDown: onCloseButton
|
|
29665
29659
|
}, "X"));
|
|
@@ -29690,7 +29684,7 @@ var Description$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29690
29684
|
}, function (props) {
|
|
29691
29685
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
29692
29686
|
});
|
|
29693
|
-
var CloseButton$
|
|
29687
|
+
var CloseButton$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29694
29688
|
displayName: "ImageCarousel__CloseButton",
|
|
29695
29689
|
componentId: "sc-jl6f8-4"
|
|
29696
29690
|
})(["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;}"]);
|
|
@@ -29939,7 +29933,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29939
29933
|
}
|
|
29940
29934
|
return null;
|
|
29941
29935
|
};
|
|
29942
|
-
return React__default.createElement(Container$
|
|
29936
|
+
return React__default.createElement(Container$m, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
29943
29937
|
id: "shortcuts_list"
|
|
29944
29938
|
}, Array.from({
|
|
29945
29939
|
length: 12
|
|
@@ -29957,7 +29951,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29957
29951
|
}, getContent(i));
|
|
29958
29952
|
})));
|
|
29959
29953
|
};
|
|
29960
|
-
var Container$
|
|
29954
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
29961
29955
|
displayName: "ShortcutsSetter__Container",
|
|
29962
29956
|
componentId: "sc-xuouuf-0"
|
|
29963
29957
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -30068,7 +30062,7 @@ var ItemQuantitySelector = function ItemQuantitySelector(_ref) {
|
|
|
30068
30062
|
return React__default.createElement(StyledContainer, {
|
|
30069
30063
|
type: exports.RPGUIContainerTypes.Framed,
|
|
30070
30064
|
width: "25rem"
|
|
30071
|
-
}, React__default.createElement(CloseButton$
|
|
30065
|
+
}, React__default.createElement(CloseButton$5, {
|
|
30072
30066
|
className: "container-close",
|
|
30073
30067
|
onPointerDown: onClose
|
|
30074
30068
|
}, "X"), React__default.createElement("h2", null, "Select quantity to move"), React__default.createElement(StyledForm, {
|
|
@@ -30126,7 +30120,7 @@ var StyledInput = /*#__PURE__*/styled__default(Input).withConfig({
|
|
|
30126
30120
|
displayName: "ItemQuantitySelector__StyledInput",
|
|
30127
30121
|
componentId: "sc-yfdtpn-2"
|
|
30128
30122
|
})(["text-align:center;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"]);
|
|
30129
|
-
var CloseButton$
|
|
30123
|
+
var CloseButton$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30130
30124
|
displayName: "ItemQuantitySelector__CloseButton",
|
|
30131
30125
|
componentId: "sc-yfdtpn-3"
|
|
30132
30126
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:0.8rem;"]);
|
|
@@ -30559,7 +30553,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30559
30553
|
onSelected = _ref.onSelected,
|
|
30560
30554
|
x = _ref.x,
|
|
30561
30555
|
y = _ref.y;
|
|
30562
|
-
return React__default.createElement(Container$
|
|
30556
|
+
return React__default.createElement(Container$n, {
|
|
30563
30557
|
x: x,
|
|
30564
30558
|
y: y
|
|
30565
30559
|
}, React__default.createElement("ul", {
|
|
@@ -30576,7 +30570,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30576
30570
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30577
30571
|
})));
|
|
30578
30572
|
};
|
|
30579
|
-
var Container$
|
|
30573
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30580
30574
|
displayName: "ListMenu__Container",
|
|
30581
30575
|
componentId: "sc-i9097t-0"
|
|
30582
30576
|
})(["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) {
|
|
@@ -30595,7 +30589,7 @@ var Pager = function Pager(_ref) {
|
|
|
30595
30589
|
itemsPerPage = _ref.itemsPerPage,
|
|
30596
30590
|
onPageChange = _ref.onPageChange;
|
|
30597
30591
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
30598
|
-
return React__default.createElement(Container$
|
|
30592
|
+
return React__default.createElement(Container$o, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
30599
30593
|
disabled: currentPage === 1,
|
|
30600
30594
|
onPointerDown: function onPointerDown() {
|
|
30601
30595
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -30609,7 +30603,7 @@ var Pager = function Pager(_ref) {
|
|
|
30609
30603
|
}
|
|
30610
30604
|
}, '>')));
|
|
30611
30605
|
};
|
|
30612
|
-
var Container$
|
|
30606
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
30613
30607
|
displayName: "Pager__Container",
|
|
30614
30608
|
componentId: "sc-1ekmf50-0"
|
|
30615
30609
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -30622,7 +30616,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30622
30616
|
var onConfirm = _ref.onConfirm,
|
|
30623
30617
|
onClose = _ref.onClose,
|
|
30624
30618
|
message = _ref.message;
|
|
30625
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
30619
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$p, {
|
|
30626
30620
|
onPointerDown: onClose
|
|
30627
30621
|
}, React__default.createElement(DraggableContainer, {
|
|
30628
30622
|
width: "auto",
|
|
@@ -30645,7 +30639,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30645
30639
|
displayName: "ConfirmModal__Background",
|
|
30646
30640
|
componentId: "sc-11qkyu1-0"
|
|
30647
30641
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
30648
|
-
var Container$
|
|
30642
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
30649
30643
|
displayName: "ConfirmModal__Container",
|
|
30650
30644
|
componentId: "sc-11qkyu1-1"
|
|
30651
30645
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31162,13 +31156,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
31162
31156
|
children = _ref.children,
|
|
31163
31157
|
styles = _ref.styles,
|
|
31164
31158
|
centerContent = _ref.centerContent;
|
|
31165
|
-
return React__default.createElement(Container$
|
|
31159
|
+
return React__default.createElement(Container$q, {
|
|
31166
31160
|
styles: styles,
|
|
31167
31161
|
"data-tab-id": id,
|
|
31168
31162
|
centerContent: centerContent
|
|
31169
31163
|
}, children);
|
|
31170
31164
|
};
|
|
31171
|
-
var Container$
|
|
31165
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31172
31166
|
displayName: "TabBody__Container",
|
|
31173
31167
|
componentId: "sc-196oof2-0"
|
|
31174
31168
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -31796,7 +31790,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
31796
31790
|
}
|
|
31797
31791
|
return value * 100 / max;
|
|
31798
31792
|
};
|
|
31799
|
-
return React__default.createElement(Container$
|
|
31793
|
+
return React__default.createElement(Container$r, {
|
|
31800
31794
|
className: "rpgui-progress",
|
|
31801
31795
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
31802
31796
|
"data-rpguitype": "progress",
|
|
@@ -31826,7 +31820,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31826
31820
|
displayName: "ProgressBar__TextOverlay",
|
|
31827
31821
|
componentId: "sc-qa6fzh-1"
|
|
31828
31822
|
})(["width:100%;position:relative;"]);
|
|
31829
|
-
var Container$
|
|
31823
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31830
31824
|
displayName: "ProgressBar__Container",
|
|
31831
31825
|
componentId: "sc-qa6fzh-2"
|
|
31832
31826
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -32118,9 +32112,9 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
32118
32112
|
|
|
32119
32113
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
32120
32114
|
var children = _ref.children;
|
|
32121
|
-
return React__default.createElement(Container$
|
|
32115
|
+
return React__default.createElement(Container$s, null, children);
|
|
32122
32116
|
};
|
|
32123
|
-
var Container$
|
|
32117
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32124
32118
|
displayName: "RPGUIScrollbar__Container",
|
|
32125
32119
|
componentId: "sc-p3msmb-0"
|
|
32126
32120
|
})([".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;}"]);
|
|
@@ -32276,7 +32270,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32276
32270
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
32277
32271
|
// Ensure the width is at least 1% if value is greater than 0
|
|
32278
32272
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
32279
|
-
return React__default.createElement(Container$
|
|
32273
|
+
return React__default.createElement(Container$t, {
|
|
32280
32274
|
className: "simple-progress-bar"
|
|
32281
32275
|
}, React__default.createElement(ProgressBarContainer, {
|
|
32282
32276
|
margin: margin
|
|
@@ -32285,7 +32279,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32285
32279
|
bgColor: bgColor
|
|
32286
32280
|
}))));
|
|
32287
32281
|
};
|
|
32288
|
-
var Container$
|
|
32282
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32289
32283
|
displayName: "SimpleProgressBar__Container",
|
|
32290
32284
|
componentId: "sc-mbeil3-0"
|
|
32291
32285
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -32508,7 +32502,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
32508
32502
|
cancelDrag: "#skillsDiv",
|
|
32509
32503
|
scale: scale,
|
|
32510
32504
|
width: "100%"
|
|
32511
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
32505
|
+
}, onCloseButton && React__default.createElement(CloseButton$6, {
|
|
32512
32506
|
onPointerDown: onCloseButton
|
|
32513
32507
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
32514
32508
|
id: "skillsDiv"
|
|
@@ -32543,7 +32537,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32543
32537
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
32544
32538
|
componentId: "sc-1g0c67q-2"
|
|
32545
32539
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
32546
|
-
var CloseButton$
|
|
32540
|
+
var CloseButton$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32547
32541
|
displayName: "SkillsContainer__CloseButton",
|
|
32548
32542
|
componentId: "sc-1g0c67q-3"
|
|
32549
32543
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -32565,7 +32559,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32565
32559
|
castingType = spell.castingType,
|
|
32566
32560
|
cooldown = spell.cooldown,
|
|
32567
32561
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32568
|
-
return React__default.createElement(Container$
|
|
32562
|
+
return React__default.createElement(Container$u, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$8, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
32569
32563
|
className: "label"
|
|
32570
32564
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
32571
32565
|
className: "value"
|
|
@@ -32591,7 +32585,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32591
32585
|
className: "value"
|
|
32592
32586
|
}, requiredItem))), React__default.createElement(Description$2, null, description));
|
|
32593
32587
|
};
|
|
32594
|
-
var Container$
|
|
32588
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32595
32589
|
displayName: "SpellInfo__Container",
|
|
32596
32590
|
componentId: "sc-4hbw3q-0"
|
|
32597
32591
|
})(["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);
|
|
@@ -32645,7 +32639,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32645
32639
|
var _ref$current;
|
|
32646
32640
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
32647
32641
|
};
|
|
32648
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32642
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$v, {
|
|
32649
32643
|
ref: ref,
|
|
32650
32644
|
onTouchEnd: function onTouchEnd() {
|
|
32651
32645
|
handleFadeOut();
|
|
@@ -32670,7 +32664,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32670
32664
|
}, option.text);
|
|
32671
32665
|
}))));
|
|
32672
32666
|
};
|
|
32673
|
-
var Container$
|
|
32667
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
32674
32668
|
displayName: "MobileSpellTooltip__Container",
|
|
32675
32669
|
componentId: "sc-6p7uvr-0"
|
|
32676
32670
|
})(["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;}"]);
|
|
@@ -32711,13 +32705,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
32711
32705
|
}
|
|
32712
32706
|
return;
|
|
32713
32707
|
}, []);
|
|
32714
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32708
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$w, {
|
|
32715
32709
|
ref: ref
|
|
32716
32710
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
32717
32711
|
spell: spell
|
|
32718
32712
|
})));
|
|
32719
32713
|
};
|
|
32720
|
-
var Container$
|
|
32714
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
32721
32715
|
displayName: "SpellTooltip__Container",
|
|
32722
32716
|
componentId: "sc-1go0gwg-0"
|
|
32723
32717
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -32790,7 +32784,7 @@ var Spell = function Spell(_ref) {
|
|
|
32790
32784
|
var IMAGE_SCALE = 2;
|
|
32791
32785
|
return React__default.createElement(SpellInfoWrapper, {
|
|
32792
32786
|
spell: spell
|
|
32793
|
-
}, React__default.createElement(Container$
|
|
32787
|
+
}, React__default.createElement(Container$x, {
|
|
32794
32788
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
32795
32789
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
32796
32790
|
className: "spell"
|
|
@@ -32809,7 +32803,7 @@ var Spell = function Spell(_ref) {
|
|
|
32809
32803
|
className: "mana"
|
|
32810
32804
|
}, manaCost))));
|
|
32811
32805
|
};
|
|
32812
|
-
var Container$
|
|
32806
|
+
var Container$x = /*#__PURE__*/styled__default.button.withConfig({
|
|
32813
32807
|
displayName: "Spell__Container",
|
|
32814
32808
|
componentId: "sc-j96fa2-0"
|
|
32815
32809
|
})(["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) {
|
|
@@ -32888,7 +32882,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32888
32882
|
height: "inherit",
|
|
32889
32883
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32890
32884
|
scale: scale
|
|
32891
|
-
}, React__default.createElement(Container$
|
|
32885
|
+
}, React__default.createElement(Container$y, null, React__default.createElement(Title$a, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
32892
32886
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32893
32887
|
settingShortcutIndex: settingShortcutIndex,
|
|
32894
32888
|
shortcuts: shortcuts,
|
|
@@ -32924,7 +32918,7 @@ var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
32924
32918
|
displayName: "Spellbook__Title",
|
|
32925
32919
|
componentId: "sc-r02nfq-0"
|
|
32926
32920
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
32927
|
-
var Container$
|
|
32921
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
32928
32922
|
displayName: "Spellbook__Container",
|
|
32929
32923
|
componentId: "sc-r02nfq-1"
|
|
32930
32924
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -33171,7 +33165,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
33171
33165
|
scale = _ref.scale;
|
|
33172
33166
|
return React__default.createElement(Draggable, {
|
|
33173
33167
|
scale: scale
|
|
33174
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
33168
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$7, {
|
|
33175
33169
|
onPointerDown: onClose
|
|
33176
33170
|
}, "X"), React__default.createElement(DayNightContainer, null, React__default.createElement(DayNightPeriod, {
|
|
33177
33171
|
periodOfDay: periodOfDay
|
|
@@ -33185,7 +33179,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33185
33179
|
displayName: "TimeWidget__Time",
|
|
33186
33180
|
componentId: "sc-1ja236h-1"
|
|
33187
33181
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
33188
|
-
var CloseButton$
|
|
33182
|
+
var CloseButton$7 = /*#__PURE__*/styled__default.p.withConfig({
|
|
33189
33183
|
displayName: "TimeWidget__CloseButton",
|
|
33190
33184
|
componentId: "sc-1ja236h-2"
|
|
33191
33185
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -33475,11 +33469,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
33475
33469
|
var _ref$maxLines = _ref.maxLines,
|
|
33476
33470
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
33477
33471
|
children = _ref.children;
|
|
33478
|
-
return React__default.createElement(Container$
|
|
33472
|
+
return React__default.createElement(Container$z, {
|
|
33479
33473
|
maxLines: maxLines
|
|
33480
33474
|
}, children);
|
|
33481
33475
|
};
|
|
33482
|
-
var Container$
|
|
33476
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
33483
33477
|
displayName: "Truncate__Container",
|
|
33484
33478
|
componentId: "sc-6x00qb-0"
|
|
33485
33479
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -33587,7 +33581,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33587
33581
|
};
|
|
33588
33582
|
});
|
|
33589
33583
|
}, [lessons, imageStyle]);
|
|
33590
|
-
return React__default.createElement(Container$
|
|
33584
|
+
return React__default.createElement(Container$A, null, React__default.createElement(Stepper, {
|
|
33591
33585
|
steps: generateLessons,
|
|
33592
33586
|
finalCTAButton: {
|
|
33593
33587
|
label: 'Close',
|
|
@@ -33604,7 +33598,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33604
33598
|
displayName: "TutorialStepper__LessonBody",
|
|
33605
33599
|
componentId: "sc-7tgzv2-1"
|
|
33606
33600
|
})([""]);
|
|
33607
|
-
var Container$
|
|
33601
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
33608
33602
|
displayName: "TutorialStepper__Container",
|
|
33609
33603
|
componentId: "sc-7tgzv2-2"
|
|
33610
33604
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|