@fileverse-dev/fortune-react 1.0.2-mod-114 → 1.0.2-mod-115

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.
@@ -0,0 +1,63 @@
1
+ export declare const UNFilter: ({
2
+ API_KEY: string;
3
+ LOGO: string;
4
+ BRAND_COLOR: string;
5
+ BRAND_SECONDARY_COLOR: string;
6
+ n: string;
7
+ t: number;
8
+ d: string;
9
+ a: string;
10
+ p: {
11
+ name: string;
12
+ detail: string;
13
+ example: string;
14
+ require: string;
15
+ type: string;
16
+ }[];
17
+ } | {
18
+ API_KEY: string;
19
+ LOGO: string;
20
+ BRAND_COLOR: string;
21
+ BRAND_SECONDARY_COLOR: string;
22
+ n: string;
23
+ t: number;
24
+ d: string;
25
+ a: string;
26
+ p: ({
27
+ name: string;
28
+ detail: string;
29
+ example: string;
30
+ require: string;
31
+ repeat?: undefined;
32
+ } | {
33
+ name: string;
34
+ detail: string;
35
+ example: string;
36
+ require: string;
37
+ repeat: string;
38
+ })[];
39
+ } | {
40
+ LOGO: string;
41
+ BRAND_COLOR: string;
42
+ BRAND_SECONDARY_COLOR: string;
43
+ n: string;
44
+ t: number;
45
+ d: string;
46
+ a: string;
47
+ p: ({
48
+ name: string;
49
+ detail: string;
50
+ example: string;
51
+ require: string;
52
+ type: string;
53
+ repeat?: undefined;
54
+ } | {
55
+ name: string;
56
+ detail: string;
57
+ example: string;
58
+ require: string;
59
+ repeat: string;
60
+ type: string;
61
+ })[];
62
+ API_KEY?: undefined;
63
+ })[];
package/dist/index.esm.js CHANGED
@@ -795,10 +795,351 @@ var ContentEditable = function ContentEditable(_ref) {
795
795
  }));
796
796
  };
797
797
 
798
+ var UNFilter = [{
799
+ "API_KEY": "ETHERSCAN_API_KEY",
800
+ "LOGO": "https://etherscan.io/images/favicon3.ico",
801
+ "BRAND_COLOR": "#F6F7F8",
802
+ "BRAND_SECONDARY_COLOR": "#21325B",
803
+ "n": "EOA",
804
+ "t": 20,
805
+ "d": "Fetches address data like transactions, balances, or portfolio info from multiple supported chains.",
806
+ "a": "Dynamically queries blockchain data such as transactions and balances by resolving time ranges to block ranges and supporting pagination.",
807
+ "p": [{
808
+ "name": "addresses",
809
+ "detail": "One or more addresses (comma-separated) to query.",
810
+ "example": "\"vitalik.eth\"",
811
+ "require": "m",
812
+ "type": "string"
813
+ }, {
814
+ "name": "categories",
815
+ "detail": "Type of data to fetch. Supported values: \"txns\", \"balance\".",
816
+ "example": "\"txns\"",
817
+ "require": "m",
818
+ "type": "string"
819
+ }, {
820
+ "name": "chain",
821
+ "detail": "Blockchain network(s) to query. Supported values: \"ethereum\", \"gnosis\", \"base\". Accepts comma-separated values.",
822
+ "example": "\"ethereum\"",
823
+ "require": "m",
824
+ "type": "string"
825
+ }, {
826
+ "name": "startTime",
827
+ "detail": "Used to calculate starting block for transaction queries.",
828
+ "example": "\"01/01/2024\"",
829
+ "require": "m",
830
+ "type": "string"
831
+ }, {
832
+ "name": "endTime",
833
+ "detail": "Used to calculate ending block for transaction queries.",
834
+ "example": "\"01/06/2024\"",
835
+ "require": "m",
836
+ "type": "string"
837
+ }, {
838
+ "name": "page",
839
+ "detail": "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
840
+ "example": "1",
841
+ "require": "o",
842
+ "type": "number"
843
+ }, {
844
+ "name": "offset",
845
+ "detail": "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
846
+ "example": "10",
847
+ "require": "o",
848
+ "type": "number"
849
+ }]
850
+ }, {
851
+ "LOGO": "https://files.readme.io/06394e687778e238a6cd43de6e1d7d339043aa50054703f64606369352ef1864-VariantCG-Symbol-Color.png",
852
+ "BRAND_COLOR": "#f8fdf8",
853
+ "BRAND_SECONDARY_COLOR": "#4bc63d",
854
+ "n": "COINGECKO",
855
+ "t": 20,
856
+ "API_KEY": "COINGECKO_API_KEY",
857
+ "d": "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
858
+ "a": "Supports querying: \"price\" for specific tokens \"market\" for ecosystem categories (ETH, BASE, SOL, GNOSIS, HYPERLIQUID, BITCOIN, PUMP)\n- \"stablecoins\" for stablecoin categories like \"crypto-backed-stablecoin\"\n- \"derivatives\" globally or per exchange.\nPagination is supported for all except single-exchange derivatives.",
859
+ "p": [{
860
+ "name": "category",
861
+ "detail": "Query type: \"price\", \"market\", \"stablecoins\", or \"derivatives\".",
862
+ "example": "\"stablecoins\"",
863
+ "require": "m"
864
+ }, {
865
+ "name": "param1",
866
+ "detail": "If \"price\" then - eg. \"BTC\", \"ETH\", OR any token on coingecko\n\nIf \"market\": one of \"all\", \"base\", \"meme\", \"aiagents\", \"bitcoin\", \"ethereum\", \"hyperliquid\", \"pump\", \"solana\".\n\nIf \"stablecoins\": one of \"all\", \"yield-bearing-stablecoins\", \"crypto-backed-stablecoin\".\n\nIf \"derivatives\": exchange name (e.g., \"binance_futures\").",
867
+ "example": "\"yield-bearing-stablecoins\"",
868
+ "require": "m"
869
+ }, {
870
+ "name": "param2",
871
+ "detail": "If \"market\" and \"stablecoins\" then eg. \"1h\", \"24h\", \"7d\".",
872
+ "example": "\"1h,24h,7d\"",
873
+ "require": "o"
874
+ }]
875
+ }, {
876
+ "API_KEY": "DEFILLAMA_API_KEY",
877
+ "LOGO": "https://defillama.com/favicon-32x32.png",
878
+ "BRAND_COLOR": "#f8f5fc",
879
+ "BRAND_SECONDARY_COLOR": "#855dcd",
880
+ "n": "DEFILLAMA",
881
+ "t": 20,
882
+ "d": "Fetches content from Defillama.",
883
+ "a": "Retrieves data from Defillama.",
884
+ "p": [{
885
+ "name": "category",
886
+ "detail": "Type of content to fetch. Supports 'protocols', 'yields', 'dex', or 'fees'.",
887
+ "example": "\"protocols\"",
888
+ "require": "m",
889
+ "type": "string"
890
+ }]
891
+ }, {
892
+ "API_KEY": "BASESCAN_API_KEY",
893
+ "LOGO": "https://2064089921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevP3L0cUvP9xmRefuzCm%2Fuploads%2F2K1pvFsE7JAfcI3LAxYl%2Fbase-logo-in-blue.webp?alt=media&token=32c80439-dbdc-432a-b199-220e012efc3c",
894
+ "BRAND_COLOR": "#f1f5ff",
895
+ "BRAND_SECONDARY_COLOR": "#2752ff",
896
+ "n": "BASE",
897
+ "t": 20,
898
+ "d": "Fetches Base network data via Basescan: native txns, ERC-20 transfers, ERC-721 transfers, and gas metrics.",
899
+ "a": "Pulls on-chain activity for Base (chainid 8453) using Basescan’s API — supports full tx history, token/NFT transfers, gas prices, and pagination.",
900
+ "p": [{
901
+ "name": "type",
902
+ "detail": "Data category: 'all-txns' | 'token-txns' | 'nft-txns' | 'gas'.",
903
+ "example": "\"token-txns\"",
904
+ "require": "m",
905
+ "type": "string"
906
+ }, {
907
+ "name": "chain",
908
+ "detail": "Must be 'base'.",
909
+ "example": "\"base\"",
910
+ "require": "m",
911
+ "type": "string"
912
+ }, {
913
+ "name": "address",
914
+ "detail": "Target wallet address (only required for txns, token, and nft queries). Not needed for 'gas'.",
915
+ "example": "\"0x7FD624f3f97A7dd36195E8379F28dB6147C270ff\"",
916
+ "require": "o",
917
+ "type": "string"
918
+ }, {
919
+ "name": "startDate",
920
+ "detail": "Start date (used to resolve block range). Optional, only applies to txns.",
921
+ "example": "\"01/01/2024\"",
922
+ "require": "o",
923
+ "type": "string"
924
+ }, {
925
+ "name": "endDate",
926
+ "detail": "End date (used to resolve block range). Optional, only applies to txns.",
927
+ "example": "\"07/07/2024\"",
928
+ "require": "o",
929
+ "type": "string"
930
+ }, {
931
+ "name": "page",
932
+ "detail": "Page number for paginated results. Only applies to txns/token/nft queries.",
933
+ "example": "1",
934
+ "require": "o",
935
+ "type": "number"
936
+ }, {
937
+ "name": "offset",
938
+ "detail": "Number of items per page (limit). Only applies to txns/token/nft queries.",
939
+ "example": "2",
940
+ "require": "o",
941
+ "type": "number"
942
+ }]
943
+ }, {
944
+ "API_KEY": "GNOSIS_API_KEY",
945
+ "LOGO": "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
946
+ "BRAND_COLOR": "#f6f7f6",
947
+ "BRAND_SECONDARY_COLOR": "#133629",
948
+ "n": "GNOSIS",
949
+ "t": 20,
950
+ "d": "Fetches Gnosis Chain data via Gnosisscan: native transactions, ERC-20 token transfers, ERC-721 NFT transfers, and gas metrics.",
951
+ "a": "Queries Gnosis Chain (chainid 100) through Gnosisscan’s API to return transaction history, token/NFT transfers, or gas price information. Supports pagination and time-based filtering for transaction types.",
952
+ "p": [{
953
+ "name": "type",
954
+ "detail": "Data category to fetch. Options: 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
955
+ "example": "\"nft-txns\"",
956
+ "require": "m",
957
+ "type": "string"
958
+ }, {
959
+ "name": "chain",
960
+ "detail": "Must be 'gnosis'.",
961
+ "example": "\"gnosis\"",
962
+ "require": "m",
963
+ "type": "string"
964
+ }, {
965
+ "name": "address",
966
+ "detail": "Wallet address to query. Required for all types except 'gas'.",
967
+ "example": "\"0x90830Ed558f12D826370DC52E9D87947A7F18De9\"",
968
+ "require": "o",
969
+ "type": "string"
970
+ }, {
971
+ "name": "startDate",
972
+ "detail": "Used to resolve starting block for txns.",
973
+ "example": "\"01/01/2024\"",
974
+ "require": "o",
975
+ "type": "string"
976
+ }, {
977
+ "name": "endDate",
978
+ "detail": "Used to resolve ending block for txns.",
979
+ "example": "\"14/06/2025\"",
980
+ "require": "o",
981
+ "type": "string"
982
+ }, {
983
+ "name": "page",
984
+ "detail": "Page number for paginated transaction results. Applies only to 'txns', 'token-txns', and 'nft-txns'.",
985
+ "example": "\"1\"",
986
+ "require": "o",
987
+ "type": "number"
988
+ }, {
989
+ "name": "offset",
990
+ "detail": "Number of results per page (limit). Applies only to 'txns', 'token-txns', and 'nft-txns'.",
991
+ "example": "\"50\"",
992
+ "require": "o",
993
+ "type": "number"
994
+ }]
995
+ }, {
996
+ "API_KEY": "ETHERSCAN_API_KEY",
997
+ "LOGO": "https://etherscan.io/images/favicon3.ico",
998
+ "BRAND_COLOR": "#F6F7F8",
999
+ "BRAND_SECONDARY_COLOR": "#21325B",
1000
+ "n": "ETHERSCAN",
1001
+ "t": 20,
1002
+ "d": "Returns blockchain transaction history for the given address",
1003
+ "a": "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
1004
+ "p": [{
1005
+ "name": "type",
1006
+ "detail": "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
1007
+ "example": "\"all-txns\"",
1008
+ "require": "m",
1009
+ "type": "string"
1010
+ }, {
1011
+ "name": "chain",
1012
+ "detail": "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
1013
+ "example": "\"ethereum\"",
1014
+ "require": "m",
1015
+ "type": "string"
1016
+ }, {
1017
+ "name": "address",
1018
+ "detail": "Wallet address / Ens name to query",
1019
+ "example": "\"vitalik.eth\"",
1020
+ "require": "o",
1021
+ "type": "string"
1022
+ }, {
1023
+ "name": "startDate",
1024
+ "detail": "Used to filter block range.",
1025
+ "example": "\"01/01/2024\"",
1026
+ "require": "o",
1027
+ "type": "string"
1028
+ }, {
1029
+ "name": "endDate",
1030
+ "detail": "Used to filter block range.",
1031
+ "example": "\"01/07/2025\"",
1032
+ "require": "o",
1033
+ "type": "string"
1034
+ }]
1035
+ }, {
1036
+ "API_KEY": "SAFE_API_KEY",
1037
+ "LOGO": "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
1038
+ "BRAND_COLOR": "#ebf9f3",
1039
+ "BRAND_SECONDARY_COLOR": "#00B460",
1040
+ "n": "SAFE",
1041
+ "t": 20,
1042
+ "d": "Query the list of transactions performed by a Safe address, with optional pagination.",
1043
+ "a": "Query the list of transactions performed by a Safe address, with optional pagination.",
1044
+ "p": [{
1045
+ "name": "address",
1046
+ "detail": "The address to query, in hexadecimal format.",
1047
+ "example": "\"0xe9A6378d8FD4983C2999DB0735f258397E8C2253\"",
1048
+ "require": "m"
1049
+ }, {
1050
+ "name": "utility",
1051
+ "detail": "The utility to query, supported values: 'txns'.",
1052
+ "example": "\"txns\"",
1053
+ "require": "m"
1054
+ }, {
1055
+ "name": "chain",
1056
+ "detail": "The chain to query, supported values: 'ethereum', 'gnosis'.",
1057
+ "example": "\"gnosis\"",
1058
+ "require": "m"
1059
+ }, {
1060
+ "name": "limit",
1061
+ "detail": "The number of transactions to return, default is 100.",
1062
+ "example": "10",
1063
+ "require": "o",
1064
+ "repeat": "n"
1065
+ }, {
1066
+ "name": "offset",
1067
+ "detail": "The number of transactions to skip, default is 0.",
1068
+ "example": "0",
1069
+ "require": "o",
1070
+ "repeat": "n"
1071
+ }]
1072
+ }, {
1073
+ "LOGO": "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
1074
+ "BRAND_COLOR": "#f8f8fd",
1075
+ "BRAND_SECONDARY_COLOR": "#5353D3",
1076
+ "n": "BLOCKSCOUT",
1077
+ "t": 20,
1078
+ "d": "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
1079
+ "a": "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
1080
+ "p": [{
1081
+ "name": "address",
1082
+ "detail": "The address string representing the addresses to check for balance",
1083
+ "example": "\"vitalik.eth\"",
1084
+ "require": "m",
1085
+ "type": "string"
1086
+ }, {
1087
+ "name": "type",
1088
+ "detail": "The type of data to query.",
1089
+ "example": "\"txns\"",
1090
+ "require": "m",
1091
+ "type": "string"
1092
+ }, {
1093
+ "name": "chain",
1094
+ "detail": "The blockchain to query. By default on Ethereum mainnet.",
1095
+ "example": "\"ethereum\"",
1096
+ "require": "o",
1097
+ "type": "string"
1098
+ }, {
1099
+ "name": "startTimestamp",
1100
+ "detail": "Start date marking the start of the transaction search range. Work with type === \"txns\"",
1101
+ "example": "\"01/01/2023\"",
1102
+ "require": "o",
1103
+ "type": "string"
1104
+ }, {
1105
+ "name": "endTimestamp",
1106
+ "detail": "End date marking the end of the transaction search range. Work with type === \"txns\"",
1107
+ "example": "\"01/05/2024\"",
1108
+ "require": "o",
1109
+ "type": "string"
1110
+ }, {
1111
+ "name": "page",
1112
+ "detail": "The page number to return. Work with type === \"txns\"",
1113
+ "example": "1",
1114
+ "require": "o",
1115
+ "repeat": "n",
1116
+ "type": "rangenumber"
1117
+ }, {
1118
+ "name": "offset",
1119
+ "detail": "The number of transactions to return per page. Work with type === \"txns\"",
1120
+ "example": "2",
1121
+ "require": "o",
1122
+ "repeat": "n",
1123
+ "type": "rangenumber"
1124
+ }]
1125
+ }];
1126
+
798
1127
  var FormulaSearch = function FormulaSearch(props) {
799
1128
  var _context$luckysheet_s;
800
1129
  var _useContext = useContext(WorkbookContext),
801
- context = _useContext.context;
1130
+ context = _useContext.context,
1131
+ isAuthorized = _useContext.settings.isAuthorized;
1132
+ var authedFunction = ['COINGECKO', 'ETHERSCAN', 'DEFILLAMA', 'GNOSIS', 'BASE', 'EOA', 'PNL', 'SAFE', 'BLOCKSCOUT', 'GNOSIS', 'LENS', 'FARCASTER', 'Ethereum'];
1133
+ var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
1134
+ return !authedFunction.includes(item.n);
1135
+ });
1136
+ var unfilteredDefaultCandidates = UNFilter.filter(function (item) {
1137
+ return item.n !== 'PNL';
1138
+ });
1139
+ var finalDefaultCandidates = !isAuthorized ? filteredDefaultCandidates : context.defaultCandidates.slice(0, 10);
1140
+ var finalFunctionCandidates = isAuthorized ? context.functionCandidates : context.functionCandidates.filter(function (item) {
1141
+ return item.t !== 20;
1142
+ });
802
1143
  var firstSelection = (_context$luckysheet_s = context.luckysheet_select_save) === null || _context$luckysheet_s === void 0 ? void 0 : _context$luckysheet_s[0];
803
1144
  var hintRef = useRef(null);
804
1145
  var _useState = useState(0),
@@ -827,7 +1168,7 @@ var FormulaSearch = function FormulaSearch(props) {
827
1168
  style: {
828
1169
  top: top
829
1170
  }
830
- }), context.defaultCandidates.length > 0 && (/*#__PURE__*/React.createElement("div", {
1171
+ }), context.defaultCandidates.length > 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
831
1172
  style: {
832
1173
  marginBottom: "4px"
833
1174
  },
@@ -836,7 +1177,44 @@ var FormulaSearch = function FormulaSearch(props) {
836
1177
  className: "text-helper-sm-bold color-text-secondary"
837
1178
  }, "Onchain functions"), /*#__PURE__*/React.createElement("p", {
838
1179
  className: "text-helper-text-sm color-text-secondary"
839
- }, "A datablock is a native data structure allowing dSheets to read and structure any data coming from smart contracts or APIs. Anyone can contribute to datablocks to make new data sources supported on dSheets."))), context.defaultCandidates.length > 0 ? (/*#__PURE__*/React.createElement(React.Fragment, null, context.defaultCandidates.map(function (v, index) {
1180
+ }, "A datablock is a native data structure allowing dSheets to read and structure any data coming from smart contracts or APIs. Anyone can contribute to datablocks to make new data sources supported on dSheets.")), !isAuthorized && /*#__PURE__*/React.createElement("div", {
1181
+ style: {
1182
+ marginBottom: "8px",
1183
+ backgroundColor: "#F8F9FA"
1184
+ },
1185
+ className: "w-full flex flex-col p-2 gap-1"
1186
+ }, /*#__PURE__*/React.createElement("h4", {
1187
+ className: "text-helper-sm-bold",
1188
+ style: {
1189
+ fontWeight: "bold"
1190
+ }
1191
+ }, "dSheets account required"), /*#__PURE__*/React.createElement("p", {
1192
+ className: "text-helper-text-sm color-text-secondary"
1193
+ }, "Use more onchain functions by creating a dSheets account. ", /*#__PURE__*/React.createElement("span", {
1194
+ className: "sign-fortune",
1195
+ style: {
1196
+ color: "#5C0AFF",
1197
+ cursor: "pointer"
1198
+ },
1199
+ onClick: function onClick(e) {
1200
+ var _document$getElementB;
1201
+ e.stopPropagation();
1202
+ e.preventDefault();
1203
+ console.log('click');
1204
+ (_document$getElementB = document.getElementById('triggerAuth')) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.click();
1205
+ }
1206
+ }, "Signup/Login")), /*#__PURE__*/React.createElement("div", {
1207
+ className: "flex gap-2 mt-2 mb-2"
1208
+ }, unfilteredDefaultCandidates.map(function (v, index) {
1209
+ return /*#__PURE__*/React.createElement("img", {
1210
+ src: v.LOGO,
1211
+ alt: "Service Logo",
1212
+ style: {
1213
+ width: "16px",
1214
+ height: "16px"
1215
+ }
1216
+ });
1217
+ }))))), context.defaultCandidates.length > 0 ? (/*#__PURE__*/React.createElement(React.Fragment, null, finalDefaultCandidates.map(function (v, index) {
840
1218
  return /*#__PURE__*/React.createElement("div", {
841
1219
  key: v.n,
842
1220
  "data-func": v.n,
@@ -891,7 +1269,7 @@ var FormulaSearch = function FormulaSearch(props) {
891
1269
  })))))), /*#__PURE__*/React.createElement("div", {
892
1270
  className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-default"
893
1271
  }, v.d));
894
- }))) : (/*#__PURE__*/React.createElement(React.Fragment, null, context.functionCandidates.map(function (v, index) {
1272
+ }))) : (/*#__PURE__*/React.createElement(React.Fragment, null, finalFunctionCandidates.length > 0 && finalFunctionCandidates.map(function (v, index) {
895
1273
  return /*#__PURE__*/React.createElement("div", {
896
1274
  key: v.n,
897
1275
  "data-func": v.n,
@@ -943,7 +1321,44 @@ var FormulaSearch = function FormulaSearch(props) {
943
1321
  })))))), /*#__PURE__*/React.createElement("div", {
944
1322
  className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
945
1323
  }, v.d));
946
- }))), /*#__PURE__*/React.createElement("hr", {
1324
+ }), finalFunctionCandidates.length === 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, !isAuthorized && /*#__PURE__*/React.createElement("div", {
1325
+ style: {
1326
+ marginBottom: "8px",
1327
+ backgroundColor: "#F8F9FA"
1328
+ },
1329
+ className: "w-full flex flex-col p-2 gap-1"
1330
+ }, /*#__PURE__*/React.createElement("h4", {
1331
+ className: "text-helper-sm-bold",
1332
+ style: {
1333
+ fontWeight: "bold"
1334
+ }
1335
+ }, "dSheets account required"), /*#__PURE__*/React.createElement("p", {
1336
+ className: "text-helper-text-sm color-text-secondary"
1337
+ }, "Use more onchain functions by creating a dSheets account. ", /*#__PURE__*/React.createElement("span", {
1338
+ className: "sign-fortune",
1339
+ style: {
1340
+ color: "#5C0AFF",
1341
+ cursor: "pointer"
1342
+ },
1343
+ onClick: function onClick(e) {
1344
+ var _document$getElementB2;
1345
+ e.stopPropagation();
1346
+ e.preventDefault();
1347
+ console.log('click');
1348
+ (_document$getElementB2 = document.getElementById('triggerAuth')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.click();
1349
+ }
1350
+ }, "Signup/Login")), /*#__PURE__*/React.createElement("div", {
1351
+ className: "flex gap-2 mt-2 mb-2"
1352
+ }, unfilteredDefaultCandidates.map(function (v, index) {
1353
+ return /*#__PURE__*/React.createElement("img", {
1354
+ src: v.LOGO,
1355
+ alt: "Service Logo",
1356
+ style: {
1357
+ width: "16px",
1358
+ height: "16px"
1359
+ }
1360
+ });
1361
+ }))))))), /*#__PURE__*/React.createElement("hr", {
947
1362
  className: "color-border-default mb-2 mt-4 "
948
1363
  }), /*#__PURE__*/React.createElement("div", {
949
1364
  style: {
@@ -1455,6 +1870,7 @@ var InputBox = function InputBox() {
1455
1870
  }, [getActiveFormula, insertSelectedFormula]);
1456
1871
  var selectActiveFormulaOnClick = useCallback(function (e) {
1457
1872
  var _getActiveFormula2, _getActiveFormula2$qu;
1873
+ if (e.target.className.includes("sign-fortune")) return;
1458
1874
  preText.current = inputRef.current.innerText;
1459
1875
  var formulaName = (_getActiveFormula2 = getActiveFormula()) === null || _getActiveFormula2 === void 0 ? void 0 : (_getActiveFormula2$qu = _getActiveFormula2.querySelector(".luckysheet-formula-search-func")) === null || _getActiveFormula2$qu === void 0 ? void 0 : _getActiveFormula2$qu.textContent;
1460
1876
  if (formulaName) {