@rpg-engine/long-bow 0.8.9 → 0.8.11

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.
@@ -27812,6 +27812,12 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
27812
27812
  }
27813
27813
  }
27814
27814
  }
27815
+ if (item.attachedGems && item.attachedGems.length > 0) {
27816
+ contextActionMenu.push({
27817
+ id: ItemSocketEvents.DetachGem,
27818
+ text: "Detach Gems"
27819
+ });
27820
+ }
27815
27821
  return contextActionMenu;
27816
27822
  };
27817
27823
 
@@ -31177,7 +31183,7 @@ var ItemContainer$1 = /*#__PURE__*/React.memo(function (_ref) {
31177
31183
  onItemDragEnd = _ref.onItemDragEnd,
31178
31184
  onItemDragStart = _ref.onItemDragStart,
31179
31185
  onItemPlaceDrop = _ref.onItemPlaceDrop,
31180
- _onOutsideDrop = _ref.onOutsideDrop,
31186
+ onOutsideDrop = _ref.onOutsideDrop,
31181
31187
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
31182
31188
  initialPosition = _ref.initialPosition,
31183
31189
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
@@ -31242,12 +31248,49 @@ var ItemContainer$1 = /*#__PURE__*/React.memo(function (_ref) {
31242
31248
  }
31243
31249
  onDragEndScrollingEvents();
31244
31250
  }, [onItemDragEnd, onDragEndScrollingEvents]);
31245
- // Memoize handleSetShortcut to prevent unnecessary re-renders
31246
- var memoizedHandleSetShortcut = useCallback(function (item, index) {
31247
- handleSetShortcut(item, index);
31248
- }, [handleSetShortcut]);
31249
- // Memoize onRenderSlots to prevent re-creating the slots array on every render
31250
- var onRenderSlots = useMemo(function () {
31251
+ var handleItemClick = useCallback(function (itemType, containerType, item) {
31252
+ if (settingShortcutIndex !== -1) {
31253
+ setSettingShortcutIndex(-1);
31254
+ handleSetShortcut(item, settingShortcutIndex);
31255
+ } else if (onItemClick) {
31256
+ onItemClick(item, itemType, containerType);
31257
+ }
31258
+ }, [settingShortcutIndex, handleSetShortcut, onItemClick]);
31259
+ var handlePlaceDrop = useCallback(function (item, slotIndex, itemContainerType) {
31260
+ if (onItemPlaceDrop) {
31261
+ onItemPlaceDrop(item, slotIndex, itemContainerType);
31262
+ }
31263
+ onDragEndScrollingEvents();
31264
+ }, [onItemPlaceDrop, onDragEndScrollingEvents]);
31265
+ var handleOutsideDrop = useCallback(function (item, position) {
31266
+ if (onOutsideDrop) {
31267
+ onOutsideDrop(item, position);
31268
+ }
31269
+ onDragEndScrollingEvents();
31270
+ }, [onOutsideDrop, onDragEndScrollingEvents]);
31271
+ var handleQuantitySelect = useCallback(function (maxQuantity, callback) {
31272
+ setQuantitySelect({
31273
+ isOpen: true,
31274
+ maxQuantity: maxQuantity,
31275
+ callback: callback
31276
+ });
31277
+ }, []);
31278
+ // Memoize slot rendering configuration
31279
+ var slotConfig = useMemo(function () {
31280
+ return {
31281
+ type: type,
31282
+ atlasIMG: atlasIMG,
31283
+ atlasJSON: atlasJSON,
31284
+ scale: scale,
31285
+ equipmentSet: equipmentSet,
31286
+ isDepotSystem: isDepotSystem,
31287
+ isSelectingShortcut: settingShortcutIndex !== -1,
31288
+ checkIfItemCanBeMoved: checkIfItemCanBeMoved,
31289
+ checkIfItemShouldDragEnd: checkIfItemShouldDragEnd
31290
+ };
31291
+ }, [type, atlasIMG, atlasJSON, scale, equipmentSet, isDepotSystem, settingShortcutIndex, checkIfItemCanBeMoved, checkIfItemShouldDragEnd]);
31292
+ // Memoize slots rendering
31293
+ var renderSlots = useMemo(function () {
31251
31294
  var slots = [];
31252
31295
  for (var i = 0; i < itemContainer.slotQty; i++) {
31253
31296
  var _itemContainer$slots;
@@ -31256,55 +31299,27 @@ var ItemContainer$1 = /*#__PURE__*/React.memo(function (_ref) {
31256
31299
  key: i,
31257
31300
  slotIndex: i,
31258
31301
  item: currentItem,
31259
- itemContainerType: type,
31260
- onMouseOver: onMouseOver ? function (event, slotIndex, item) {
31261
- return onMouseOver(event, slotIndex, item);
31262
- } : undefined,
31263
- onMouseOut: undefined,
31264
- onPointerDown: function onPointerDown(itemType, containerType, item) {
31265
- if (settingShortcutIndex !== -1) {
31266
- setSettingShortcutIndex(-1);
31267
- memoizedHandleSetShortcut(item, settingShortcutIndex);
31268
- } else if (onItemClick) {
31269
- onItemClick(item, itemType, containerType);
31270
- }
31271
- },
31302
+ itemContainerType: slotConfig.type,
31303
+ onMouseOver: onMouseOver,
31304
+ onPointerDown: handleItemClick,
31272
31305
  onDragStart: onDragStartHandler,
31273
31306
  onDragEnd: onDragEndHandler,
31274
- dragScale: scale,
31275
- checkIfItemCanBeMoved: checkIfItemCanBeMoved,
31276
- checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
31277
- openQuantitySelector: function openQuantitySelector(maxQuantity, callback) {
31278
- setQuantitySelect({
31279
- isOpen: true,
31280
- maxQuantity: maxQuantity,
31281
- callback: callback
31282
- });
31283
- },
31284
- onPlaceDrop: function onPlaceDrop(item, slotIndex, itemContainerType) {
31285
- if (onItemPlaceDrop) {
31286
- onItemPlaceDrop(item, slotIndex, itemContainerType);
31287
- }
31288
- console.log('PLACE DROP');
31289
- onDragEndScrollingEvents();
31290
- },
31291
- onOutsideDrop: function onOutsideDrop(item, position) {
31292
- if (_onOutsideDrop) {
31293
- _onOutsideDrop(item, position);
31294
- }
31295
- console.log('OUTSIDE DROP');
31296
- onDragEndScrollingEvents();
31297
- },
31298
- atlasIMG: atlasIMG,
31299
- atlasJSON: atlasJSON,
31300
- isSelectingShortcut: settingShortcutIndex !== -1,
31301
- equipmentSet: equipmentSet,
31302
- setItemShortcut: type === ItemContainerType.Inventory ? memoizedHandleSetShortcut : undefined,
31303
- isDepotSystem: isDepotSystem
31307
+ dragScale: slotConfig.scale,
31308
+ checkIfItemCanBeMoved: slotConfig.checkIfItemCanBeMoved,
31309
+ checkIfItemShouldDragEnd: slotConfig.checkIfItemShouldDragEnd,
31310
+ openQuantitySelector: handleQuantitySelect,
31311
+ onPlaceDrop: handlePlaceDrop,
31312
+ onOutsideDrop: handleOutsideDrop,
31313
+ atlasIMG: slotConfig.atlasIMG,
31314
+ atlasJSON: slotConfig.atlasJSON,
31315
+ isSelectingShortcut: slotConfig.isSelectingShortcut,
31316
+ equipmentSet: slotConfig.equipmentSet,
31317
+ setItemShortcut: type === ItemContainerType.Inventory ? handleSetShortcut : undefined,
31318
+ isDepotSystem: slotConfig.isDepotSystem
31304
31319
  }));
31305
31320
  }
31306
31321
  return slots;
31307
- }, [itemContainer.slotQty, itemContainer.slots, type, onMouseOver, settingShortcutIndex, memoizedHandleSetShortcut, onItemClick, onDragStartHandler, onDragEndHandler, scale, checkIfItemCanBeMoved, checkIfItemShouldDragEnd, onItemPlaceDrop, _onOutsideDrop, atlasIMG, atlasJSON, equipmentSet, isDepotSystem, onDragEndScrollingEvents]);
31322
+ }, [itemContainer.slotQty, itemContainer.slots, slotConfig, onMouseOver, handleItemClick, onDragStartHandler, onDragEndHandler, handleQuantitySelect, handlePlaceDrop, handleOutsideDrop, handleSetShortcut, type]);
31308
31323
  return React.createElement(ItemSlotDraggingProvider, null, React.createElement(ItemSlotDetailsProvider, null, React.createElement(DraggedItem, {
31309
31324
  atlasIMG: atlasIMG,
31310
31325
  atlasJSON: atlasJSON,
@@ -31330,7 +31345,7 @@ var ItemContainer$1 = /*#__PURE__*/React.memo(function (_ref) {
31330
31345
  ref: containerRef,
31331
31346
  isScrollable: itemContainer.slotQty > MIN_SLOTS_FOR_SCROLL,
31332
31347
  isFullScreen: isFullScreen
31333
- }, onRenderSlots)), quantitySelect.isOpen && React.createElement(ItemQuantitySelectorModal, {
31348
+ }, renderSlots)), quantitySelect.isOpen && React.createElement(ItemQuantitySelectorModal, {
31334
31349
  quantitySelect: quantitySelect,
31335
31350
  setQuantitySelect: setQuantitySelect
31336
31351
  }), React.createElement(ItemSlotToolTips, {
@@ -31423,6 +31438,111 @@ var ItemPropertySimpleHandler = function ItemPropertySimpleHandler(_ref) {
31423
31438
  });
31424
31439
  };
31425
31440
 
31441
+ var GemSelector = function GemSelector(_ref) {
31442
+ var _item$attachedGems;
31443
+ var atlasJSON = _ref.atlasJSON,
31444
+ atlasIMG = _ref.atlasIMG,
31445
+ item = _ref.item,
31446
+ scale = _ref.scale,
31447
+ onClose = _ref.onClose,
31448
+ onSelect = _ref.onSelect;
31449
+ var _useState = useState([]),
31450
+ selectedGems = _useState[0],
31451
+ setSelectedGems = _useState[1];
31452
+ var size = useResponsiveSize(scale);
31453
+ var handleGemToggle = function handleGemToggle(gem) {
31454
+ setSelectedGems(function (prev) {
31455
+ return prev.some(function (selected) {
31456
+ return selected.key === gem.key;
31457
+ }) ? prev.filter(function (selected) {
31458
+ return selected.key !== gem.key;
31459
+ }) : [].concat(prev, [gem]);
31460
+ });
31461
+ };
31462
+ var handleConfirm = function handleConfirm() {
31463
+ onSelect(selectedGems);
31464
+ onClose();
31465
+ };
31466
+ if (!size) return null;
31467
+ return React.createElement(DraggableContainer, {
31468
+ type: RPGUIContainerTypes.Framed,
31469
+ width: "450px",
31470
+ height: size.height,
31471
+ scale: scale,
31472
+ cancelDrag: ".gem-selector-container",
31473
+ onCloseButton: onClose
31474
+ }, React.createElement(ContentWrapper$1, null, React.createElement(Header$2, null, React.createElement(Title$3, null, "GEM SELECTION"), React.createElement(Subtitle, null, "Select gems to detach")), React.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
31475
+ return React.createElement(GemItem, {
31476
+ key: gem.key + "-" + index
31477
+ }, React.createElement(CheckItemWrapper, null, React.createElement(CheckItem, {
31478
+ defaultValue: selectedGems.some(function (selected) {
31479
+ return selected.key === gem.key;
31480
+ }),
31481
+ onChange: function onChange() {
31482
+ handleGemToggle(gem);
31483
+ }
31484
+ })), React.createElement(SpriteWrapper, null, React.createElement(SpriteFromAtlas, {
31485
+ atlasIMG: atlasIMG,
31486
+ atlasJSON: atlasJSON,
31487
+ spriteKey: "gems/" + gem.key + ".png",
31488
+ imgScale: 2,
31489
+ imgClassname: "gem-sprite",
31490
+ centered: true
31491
+ })), React.createElement(GemName, null, gem.name.replace(/ of /gi, '\n').toUpperCase()));
31492
+ })), React.createElement(ButtonWrapper, null, React.createElement(Button, {
31493
+ buttonType: ButtonTypes.RPGUIButton,
31494
+ onPointerDown: function onPointerDown() {
31495
+ onClose();
31496
+ }
31497
+ }, "Cancel"), React.createElement(Button, {
31498
+ buttonType: ButtonTypes.RPGUIButton,
31499
+ onPointerDown: function onPointerDown() {
31500
+ handleConfirm();
31501
+ },
31502
+ disabled: selectedGems.length === 0
31503
+ }, "Confirm"))));
31504
+ };
31505
+ var Title$3 = /*#__PURE__*/styled.h1.withConfig({
31506
+ displayName: "GemSelector__Title",
31507
+ componentId: "sc-gbt8g4-0"
31508
+ })(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
31509
+ var Subtitle = /*#__PURE__*/styled.h2.withConfig({
31510
+ displayName: "GemSelector__Subtitle",
31511
+ componentId: "sc-gbt8g4-1"
31512
+ })(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
31513
+ var Header$2 = /*#__PURE__*/styled.div.withConfig({
31514
+ displayName: "GemSelector__Header",
31515
+ componentId: "sc-gbt8g4-2"
31516
+ })(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
31517
+ var GemGrid = /*#__PURE__*/styled.div.withConfig({
31518
+ displayName: "GemSelector__GemGrid",
31519
+ componentId: "sc-gbt8g4-3"
31520
+ })(["display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px;margin-top:10px;min-height:150px;overflow-y:auto;"]);
31521
+ var ContentWrapper$1 = /*#__PURE__*/styled.div.withConfig({
31522
+ displayName: "GemSelector__ContentWrapper",
31523
+ componentId: "sc-gbt8g4-4"
31524
+ })(["display:flex;flex-direction:column;align-items:center;margin-left:20px;justify-content:space-between;height:100%;"]);
31525
+ var GemItem = /*#__PURE__*/styled.div.withConfig({
31526
+ displayName: "GemSelector__GemItem",
31527
+ componentId: "sc-gbt8g4-5"
31528
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:space-between;background-color:", " !important;height:100px;width:90px;padding:5px;"], uiColors.darkGray);
31529
+ var GemName = /*#__PURE__*/styled.div.withConfig({
31530
+ displayName: "GemSelector__GemName",
31531
+ componentId: "sc-gbt8g4-6"
31532
+ })(["font-size:0.5rem;color:", " !important;text-align:center;text-transform:uppercase;line-height:1.2;width:100%;min-height:30px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;"], uiColors.yellow);
31533
+ var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
31534
+ displayName: "GemSelector__ButtonWrapper",
31535
+ componentId: "sc-gbt8g4-7"
31536
+ })(["display:flex;justify-content:center;align-self:center;"]);
31537
+ var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
31538
+ displayName: "GemSelector__CheckItemWrapper",
31539
+ componentId: "sc-gbt8g4-8"
31540
+ })(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
31541
+ var SpriteWrapper = /*#__PURE__*/styled.div.withConfig({
31542
+ displayName: "GemSelector__SpriteWrapper",
31543
+ componentId: "sc-gbt8g4-9"
31544
+ })(["display:flex;align-items:center;justify-content:center;width:100%;height:50px;"]);
31545
+
31426
31546
  var ItemSelector = function ItemSelector(_ref) {
31427
31547
  var atlasIMG = _ref.atlasIMG,
31428
31548
  atlasJSON = _ref.atlasJSON,
@@ -31455,7 +31575,7 @@ var ItemSelector = function ItemSelector(_ref) {
31455
31575
  style: {
31456
31576
  width: '100%'
31457
31577
  }
31458
- }, React.createElement(Title$3, null, 'Harvesting instruments'), React.createElement(Subtitle, null, 'Use the tool, you need it'), React.createElement("hr", {
31578
+ }, React.createElement(Title$4, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
31459
31579
  className: "golden"
31460
31580
  })), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
31461
31581
  return React.createElement(RadioOptionsWrapper$1, {
@@ -31477,18 +31597,18 @@ var ItemSelector = function ItemSelector(_ref) {
31477
31597
  alignItems: 'center'
31478
31598
  }
31479
31599
  }, option.name, " ", React.createElement("br", null), option.description)));
31480
- })), React.createElement(ButtonWrapper, null, React.createElement(Button, {
31600
+ })), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
31481
31601
  buttonType: ButtonTypes.RPGUIButton,
31482
31602
  onPointerDown: onClose
31483
31603
  }, "Cancel"), React.createElement(Button, {
31484
31604
  buttonType: ButtonTypes.RPGUIButton
31485
31605
  }, "Select")));
31486
31606
  };
31487
- var Title$3 = /*#__PURE__*/styled.h1.withConfig({
31607
+ var Title$4 = /*#__PURE__*/styled.h1.withConfig({
31488
31608
  displayName: "ItemSelector__Title",
31489
31609
  componentId: "sc-gptoxp-0"
31490
31610
  })(["font-size:0.6rem;color:yellow !important;"]);
31491
- var Subtitle = /*#__PURE__*/styled.h1.withConfig({
31611
+ var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
31492
31612
  displayName: "ItemSelector__Subtitle",
31493
31613
  componentId: "sc-gptoxp-1"
31494
31614
  })(["font-size:0.4rem;color:yellow !important;"]);
@@ -31504,7 +31624,7 @@ var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
31504
31624
  displayName: "ItemSelector__RadioOptionsWrapper",
31505
31625
  componentId: "sc-gptoxp-4"
31506
31626
  })(["display:flex;align-items:stretch;margin-bottom:40px;"]);
31507
- var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
31627
+ var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
31508
31628
  displayName: "ItemSelector__ButtonWrapper",
31509
31629
  componentId: "sc-gptoxp-5"
31510
31630
  })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
@@ -32395,12 +32515,12 @@ var PartyCreate = function PartyCreate(_ref) {
32395
32515
  style: {
32396
32516
  width: '100%'
32397
32517
  }
32398
- }, React.createElement(Title$4, null, "Create Party"), React.createElement("hr", {
32518
+ }, React.createElement(Title$5, null, "Create Party"), React.createElement("hr", {
32399
32519
  className: "golden"
32400
32520
  }))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
32401
32521
  placeholder: "Type party name",
32402
32522
  type: "text"
32403
- }), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
32523
+ }), React.createElement(ButtonWrapper$2, null, React.createElement(Button, {
32404
32524
  buttonType: ButtonTypes.RPGUIButton,
32405
32525
  onPointerDown: function onPointerDown() {
32406
32526
  onCreate();
@@ -32418,11 +32538,11 @@ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
32418
32538
  displayName: "PartyCreate__Wrapper",
32419
32539
  componentId: "sc-13brop0-0"
32420
32540
  })(["display:flex;flex-direction:column;width:100%;"]);
32421
- var Title$4 = /*#__PURE__*/styled.h1.withConfig({
32541
+ var Title$5 = /*#__PURE__*/styled.h1.withConfig({
32422
32542
  displayName: "PartyCreate__Title",
32423
32543
  componentId: "sc-13brop0-1"
32424
32544
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
32425
- var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
32545
+ var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
32426
32546
  displayName: "PartyCreate__ButtonWrapper",
32427
32547
  componentId: "sc-13brop0-2"
32428
32548
  })(["margin-top:10px;width:100%;display:flex;justify-content:space-around;align-items:center;.cancel-button{filter:grayscale(0.7);}"]);
@@ -32467,7 +32587,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
32467
32587
  style: {
32468
32588
  width: '100%'
32469
32589
  }
32470
- }, React.createElement(Title$5, null, "Party Dashboard"), React.createElement(Button, {
32590
+ }, React.createElement(Title$6, null, "Party Dashboard"), React.createElement(Button, {
32471
32591
  buttonType: ButtonTypes.RPGUIButton
32472
32592
  }, "Create"), React.createElement("hr", {
32473
32593
  className: "golden"
@@ -32494,7 +32614,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
32494
32614
  displayName: "PartyDashboard__RowsWrapper",
32495
32615
  componentId: "sc-16cm41r-1"
32496
32616
  })(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
32497
- var Title$5 = /*#__PURE__*/styled.h1.withConfig({
32617
+ var Title$6 = /*#__PURE__*/styled.h1.withConfig({
32498
32618
  displayName: "PartyDashboard__Title",
32499
32619
  componentId: "sc-16cm41r-2"
32500
32620
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
@@ -32531,7 +32651,7 @@ var PartyInvite = function PartyInvite(_ref) {
32531
32651
  style: {
32532
32652
  width: '100%'
32533
32653
  }
32534
- }, React.createElement(Title$6, null, "Invite for Party"), React.createElement("hr", {
32654
+ }, React.createElement(Title$7, null, "Invite for Party"), React.createElement("hr", {
32535
32655
  className: "golden"
32536
32656
  }))), React.createElement(RowsWrapper$1, {
32537
32657
  className: "playersRows"
@@ -32550,7 +32670,7 @@ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
32550
32670
  displayName: "PartyInvite__Wrapper",
32551
32671
  componentId: "sc-eu8ggt-0"
32552
32672
  })(["display:flex;flex-direction:column;width:100%;"]);
32553
- var Title$6 = /*#__PURE__*/styled.h1.withConfig({
32673
+ var Title$7 = /*#__PURE__*/styled.h1.withConfig({
32554
32674
  displayName: "PartyInvite__Title",
32555
32675
  componentId: "sc-eu8ggt-1"
32556
32676
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
@@ -32988,7 +33108,7 @@ var QuestInfo = function QuestInfo(_ref) {
32988
33108
  onPointerDown: onRightClick
32989
33109
  }), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
32990
33110
  className: "drag-handler"
32991
- }, React.createElement(Title$7, null, React.createElement(Thumbnail, {
33111
+ }, React.createElement(Title$8, null, React.createElement(Thumbnail, {
32992
33112
  src: quests[currentIndex].thumbnail || img$8
32993
33113
  }), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
32994
33114
  className: "golden"
@@ -33007,7 +33127,7 @@ var QuestInfo = function QuestInfo(_ref) {
33007
33127
  }, button.title);
33008
33128
  })))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
33009
33129
  className: "drag-handler"
33010
- }, React.createElement(Title$7, null, React.createElement(Thumbnail, {
33130
+ }, React.createElement(Title$8, null, React.createElement(Thumbnail, {
33011
33131
  src: quests[0].thumbnail || img$8
33012
33132
  }), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
33013
33133
  className: "golden"
@@ -33054,7 +33174,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
33054
33174
  displayName: "QuestInfo__TitleContainer",
33055
33175
  componentId: "sc-1wccpiy-6"
33056
33176
  })(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
33057
- var Title$7 = /*#__PURE__*/styled.h1.withConfig({
33177
+ var Title$8 = /*#__PURE__*/styled.h1.withConfig({
33058
33178
  displayName: "QuestInfo__Title",
33059
33179
  componentId: "sc-1wccpiy-7"
33060
33180
  })(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
@@ -33737,7 +33857,7 @@ var SpellInfo = function SpellInfo(_ref) {
33737
33857
  castingType = spell.castingType,
33738
33858
  cooldown = spell.cooldown,
33739
33859
  maxDistanceGrid = spell.maxDistanceGrid;
33740
- return React.createElement(Container$v, null, React.createElement(Header$2, 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", {
33860
+ return React.createElement(Container$v, null, React.createElement(Header$3, null, React.createElement("div", null, React.createElement(Title$9, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
33741
33861
  className: "label"
33742
33862
  }, "Casting Type:"), React.createElement("div", {
33743
33863
  className: "value"
@@ -33767,7 +33887,7 @@ var Container$v = /*#__PURE__*/styled.div.withConfig({
33767
33887
  displayName: "SpellInfo__Container",
33768
33888
  componentId: "sc-4hbw3q-0"
33769
33889
  })(["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);
33770
- var Title$8 = /*#__PURE__*/styled.div.withConfig({
33890
+ var Title$9 = /*#__PURE__*/styled.div.withConfig({
33771
33891
  displayName: "SpellInfo__Title",
33772
33892
  componentId: "sc-4hbw3q-1"
33773
33893
  })(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
@@ -33779,7 +33899,7 @@ var Description$2 = /*#__PURE__*/styled.div.withConfig({
33779
33899
  displayName: "SpellInfo__Description",
33780
33900
  componentId: "sc-4hbw3q-3"
33781
33901
  })(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
33782
- var Header$2 = /*#__PURE__*/styled.div.withConfig({
33902
+ var Header$3 = /*#__PURE__*/styled.div.withConfig({
33783
33903
  displayName: "SpellInfo__Header",
33784
33904
  componentId: "sc-4hbw3q-4"
33785
33905
  })(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
@@ -33975,7 +34095,7 @@ var Spell = function Spell(_ref) {
33975
34095
  imgScale: IMAGE_SCALE,
33976
34096
  containerStyle: CONTAINER_STYLE,
33977
34097
  centered: true
33978
- })), React.createElement(Info, null, React.createElement(Title$9, null, React.createElement("span", null, name), React.createElement("span", {
34098
+ })), React.createElement(Info, null, React.createElement(Title$a, null, React.createElement("span", null, name), React.createElement("span", {
33979
34099
  className: "spell"
33980
34100
  }, "(", magicWords, ")")), React.createElement(Description$3, null, description)), React.createElement(Divider$1, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
33981
34101
  className: "mana"
@@ -33996,7 +34116,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
33996
34116
  displayName: "Spell__Info",
33997
34117
  componentId: "sc-j96fa2-2"
33998
34118
  })(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
33999
- var Title$9 = /*#__PURE__*/styled.p.withConfig({
34119
+ var Title$a = /*#__PURE__*/styled.p.withConfig({
34000
34120
  displayName: "Spell__Title",
34001
34121
  componentId: "sc-j96fa2-3"
34002
34122
  })(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
@@ -34060,7 +34180,7 @@ var Spellbook = function Spellbook(_ref) {
34060
34180
  height: "inherit",
34061
34181
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
34062
34182
  scale: scale
34063
- }, React.createElement(Container$z, null, React.createElement(Title$a, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
34183
+ }, React.createElement(Container$z, null, React.createElement(Title$b, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
34064
34184
  setSettingShortcutIndex: setSettingShortcutIndex,
34065
34185
  settingShortcutIndex: settingShortcutIndex,
34066
34186
  shortcuts: shortcuts,
@@ -34092,7 +34212,7 @@ var Spellbook = function Spellbook(_ref) {
34092
34212
  }, spell)));
34093
34213
  }))));
34094
34214
  };
34095
- var Title$a = /*#__PURE__*/styled.h1.withConfig({
34215
+ var Title$b = /*#__PURE__*/styled.h1.withConfig({
34096
34216
  displayName: "Spellbook__Title",
34097
34217
  componentId: "sc-r02nfq-0"
34098
34218
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
@@ -34578,7 +34698,7 @@ var TradingMenu = function TradingMenu(_ref) {
34578
34698
  width: "500px",
34579
34699
  cancelDrag: "#TraderContainer",
34580
34700
  scale: scale
34581
- }, React.createElement(Container$A, null, React.createElement(Title$b, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
34701
+ }, React.createElement(Container$A, null, React.createElement(Title$c, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
34582
34702
  className: "golden"
34583
34703
  }), React.createElement(ScrollWrapper, {
34584
34704
  id: "TraderContainer"
@@ -34595,7 +34715,7 @@ var TradingMenu = function TradingMenu(_ref) {
34595
34715
  scale: scale,
34596
34716
  isBuy: isBuy()
34597
34717
  });
34598
- })), React.createElement(InfoSection, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$2, null, React.createElement(Button, {
34718
+ })), React.createElement(InfoSection, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
34599
34719
  buttonType: ButtonTypes.RPGUIButton,
34600
34720
  disabled: !hasGoldForSale(),
34601
34721
  onPointerDown: function onPointerDown() {
@@ -34610,7 +34730,7 @@ var Container$A = /*#__PURE__*/styled.div.withConfig({
34610
34730
  displayName: "TradingMenu__Container",
34611
34731
  componentId: "sc-1wjsz1l-0"
34612
34732
  })(["width:100%;"]);
34613
- var Title$b = /*#__PURE__*/styled.h1.withConfig({
34733
+ var Title$c = /*#__PURE__*/styled.h1.withConfig({
34614
34734
  displayName: "TradingMenu__Title",
34615
34735
  componentId: "sc-1wjsz1l-1"
34616
34736
  })(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
@@ -34630,7 +34750,7 @@ var AlertText = /*#__PURE__*/styled.p.withConfig({
34630
34750
  displayName: "TradingMenu__AlertText",
34631
34751
  componentId: "sc-1wjsz1l-5"
34632
34752
  })(["color:red !important;text-align:center;margin:0.3rem 0;font-size:0.5rem;"]);
34633
- var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
34753
+ var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
34634
34754
  displayName: "TradingMenu__ButtonWrapper",
34635
34755
  componentId: "sc-1wjsz1l-6"
34636
34756
  })(["display:flex;justify-content:space-around;width:100%;margin-top:1rem;"]);
@@ -34790,5 +34910,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
34790
34910
  componentId: "sc-7tgzv2-6"
34791
34911
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
34792
34912
 
34793
- export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
34913
+ export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
34794
34914
  //# sourceMappingURL=long-bow.esm.js.map