six-degrees 0.4.7 → 0.4.9

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.
Files changed (280) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/standalone/.next/build-manifest.json +3 -3
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/routes-manifest.json +6 -0
  6. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.rsc +2 -2
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  11. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.rsc +13 -13
  16. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
  17. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
  18. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/api/admin-delete/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/admin-update/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/bridges/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/bulk-import/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js +2 -1
  24. package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/company-scores/route.js +2 -1
  26. package/.next/standalone/.next/server/app/api/company-scores/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/connections/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/data/export/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/data/import/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/data/restart/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/data/reveal/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/delete-cluster/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/ingest/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/network/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/notifications/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/outreach/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/scraper/route.js +2 -2
  40. package/.next/standalone/.next/server/app/api/scraper/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/settings/route.js +3 -2
  42. package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js +2 -1
  44. package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/api/settings/sector-suggestions/route.js +2 -1
  46. package/.next/standalone/.next/server/app/api/settings/sector-suggestions/route.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/api/setup-profile/route.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/api/social/messages/route/app-paths-manifest.json +3 -0
  49. package/.next/standalone/.next/server/app/api/social/messages/route/build-manifest.json +12 -0
  50. package/.next/standalone/.next/server/app/api/social/messages/route/server-reference-manifest.json +4 -0
  51. package/.next/standalone/.next/server/app/api/social/messages/route.js +9 -0
  52. package/.next/standalone/.next/server/app/api/social/messages/route.js.map +5 -0
  53. package/.next/standalone/.next/server/app/api/social/messages/route.js.nft.json +1 -0
  54. package/.next/standalone/.next/server/app/api/social/messages/route_client-reference-manifest.js +3 -0
  55. package/.next/standalone/.next/server/app/api/social/route.js +4 -2
  56. package/.next/standalone/.next/server/app/api/social/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/unlock/route.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/api/update/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/update-images/route.js.nft.json +1 -1
  60. package/.next/standalone/.next/server/app/api/users/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/avatars/[file]/route.js.nft.json +1 -1
  62. package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/favicon.ico.body +0 -0
  64. package/.next/standalone/.next/server/app/import/page.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/import/page_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/app/import.html +1 -1
  67. package/.next/standalone/.next/server/app/import.rsc +15 -15
  68. package/.next/standalone/.next/server/app/import.segments/_full.segment.rsc +15 -15
  69. package/.next/standalone/.next/server/app/import.segments/_tree.segment.rsc +1 -1
  70. package/.next/standalone/.next/server/app/import.segments/import/__PAGE__.segment.rsc +13 -13
  71. package/.next/standalone/.next/server/app/index.html +1 -1
  72. package/.next/standalone/.next/server/app/index.rsc +15 -15
  73. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
  74. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -15
  75. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  76. package/.next/standalone/.next/server/app/launch/page.js.nft.json +1 -1
  77. package/.next/standalone/.next/server/app/launch/page_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/launch.html +2 -2
  79. package/.next/standalone/.next/server/app/launch.rsc +15 -15
  80. package/.next/standalone/.next/server/app/launch.segments/_full.segment.rsc +15 -15
  81. package/.next/standalone/.next/server/app/launch.segments/_tree.segment.rsc +1 -1
  82. package/.next/standalone/.next/server/app/launch.segments/launch/__PAGE__.segment.rsc +13 -13
  83. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  84. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  85. package/.next/standalone/.next/server/app/paths/page.js.nft.json +1 -1
  86. package/.next/standalone/.next/server/app/paths/page_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/paths.html +1 -1
  88. package/.next/standalone/.next/server/app/paths.rsc +15 -15
  89. package/.next/standalone/.next/server/app/paths.segments/_full.segment.rsc +15 -15
  90. package/.next/standalone/.next/server/app/paths.segments/_tree.segment.rsc +1 -1
  91. package/.next/standalone/.next/server/app/paths.segments/paths/__PAGE__.segment.rsc +13 -13
  92. package/.next/standalone/.next/server/app/profile/page.js.nft.json +1 -1
  93. package/.next/standalone/.next/server/app/profile/page_client-reference-manifest.js +1 -1
  94. package/.next/standalone/.next/server/app/profile.html +1 -1
  95. package/.next/standalone/.next/server/app/profile.rsc +15 -15
  96. package/.next/standalone/.next/server/app/profile.segments/_full.segment.rsc +15 -15
  97. package/.next/standalone/.next/server/app/profile.segments/_tree.segment.rsc +1 -1
  98. package/.next/standalone/.next/server/app/profile.segments/profile/__PAGE__.segment.rsc +13 -13
  99. package/.next/standalone/.next/server/app/queue/page.js.nft.json +1 -1
  100. package/.next/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
  101. package/.next/standalone/.next/server/app/queue.html +1 -1
  102. package/.next/standalone/.next/server/app/queue.rsc +15 -15
  103. package/.next/standalone/.next/server/app/queue.segments/_full.segment.rsc +15 -15
  104. package/.next/standalone/.next/server/app/queue.segments/_tree.segment.rsc +1 -1
  105. package/.next/standalone/.next/server/app/queue.segments/queue/__PAGE__.segment.rsc +13 -13
  106. package/.next/standalone/.next/server/app/scores/page.js.nft.json +1 -1
  107. package/.next/standalone/.next/server/app/scores/page_client-reference-manifest.js +1 -1
  108. package/.next/standalone/.next/server/app/scores.html +1 -1
  109. package/.next/standalone/.next/server/app/scores.rsc +15 -15
  110. package/.next/standalone/.next/server/app/scores.segments/_full.segment.rsc +15 -15
  111. package/.next/standalone/.next/server/app/scores.segments/_tree.segment.rsc +1 -1
  112. package/.next/standalone/.next/server/app/scores.segments/scores/__PAGE__.segment.rsc +13 -13
  113. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  114. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  115. package/.next/standalone/.next/server/app/settings.html +1 -1
  116. package/.next/standalone/.next/server/app/settings.rsc +15 -15
  117. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +15 -15
  118. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  119. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +13 -13
  120. package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  121. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  122. package/.next/standalone/.next/server/app/setup.html +1 -1
  123. package/.next/standalone/.next/server/app/setup.rsc +15 -15
  124. package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +15 -15
  125. package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  126. package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +13 -13
  127. package/.next/standalone/.next/server/app/social/page.js.nft.json +1 -1
  128. package/.next/standalone/.next/server/app/social/page_client-reference-manifest.js +1 -1
  129. package/.next/standalone/.next/server/app/social.html +1 -1
  130. package/.next/standalone/.next/server/app/social.rsc +15 -15
  131. package/.next/standalone/.next/server/app/social.segments/_full.segment.rsc +15 -15
  132. package/.next/standalone/.next/server/app/social.segments/_tree.segment.rsc +1 -1
  133. package/.next/standalone/.next/server/app/social.segments/social/__PAGE__.segment.rsc +13 -13
  134. package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
  135. package/.next/standalone/.next/server/chunks/[root-of-the-server]__06mi9k2._.js +3 -0
  136. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f5awg._.js +8 -0
  137. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bat8nx._.js +1 -1
  138. package/.next/standalone/.next/server/chunks/[root-of-the-server]__17hjtzl._.js +8 -0
  139. package/.next/standalone/.next/server/chunks/[root-of-the-server]__20tmem7._.js +1 -1
  140. package/.next/standalone/.next/server/chunks/_0ea9qwy._.js +3 -0
  141. package/.next/standalone/.next/server/chunks/_1_fynia._.js +6 -6
  142. package/.next/standalone/.next/server/chunks/_1itd1o_._.js +1 -1
  143. package/.next/standalone/.next/server/chunks/_1mxn_lb._.js +1 -1
  144. package/.next/standalone/.next/server/chunks/_1xh07bp._.js +1 -1
  145. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_social_messages_route_actions_0skh09r.js +3 -0
  146. package/.next/standalone/.next/server/chunks/lib_18cr1gi._.js +8 -0
  147. package/.next/standalone/.next/server/chunks/lib_db-client_15le7cw.js +1 -1
  148. package/.next/standalone/.next/server/chunks/lib_rpc_03i8xef.js +1 -1
  149. package/.next/standalone/.next/server/chunks/lib_rpc_08fc3rp.js +1 -1
  150. package/.next/standalone/.next/server/chunks/lib_rpc_08r2t_q.js +1 -1
  151. package/.next/standalone/.next/server/chunks/lib_rpc_0btpv1t.js +1 -1
  152. package/.next/standalone/.next/server/chunks/lib_rpc_0c9d9ti.js +5 -5
  153. package/.next/standalone/.next/server/chunks/lib_rpc_0cm2ev3.js +1 -1
  154. package/.next/standalone/.next/server/chunks/lib_rpc_0iovswz.js +1 -1
  155. package/.next/standalone/.next/server/chunks/lib_rpc_0is8flp.js +1 -1
  156. package/.next/standalone/.next/server/chunks/lib_rpc_0v8ajtd.js +1 -1
  157. package/.next/standalone/.next/server/chunks/lib_rpc_0xgmvvt.js +1 -1
  158. package/.next/standalone/.next/server/chunks/lib_rpc_144mzbf.js +1 -1
  159. package/.next/standalone/.next/server/chunks/lib_rpc_1bggi0n.js +1 -1
  160. package/.next/standalone/.next/server/chunks/lib_rpc_1dkcu9f.js +1 -1
  161. package/.next/standalone/.next/server/chunks/lib_rpc_1o0jb6w.js +1 -1
  162. package/.next/standalone/.next/server/chunks/lib_scoring_1-e4ur0.js +3 -0
  163. package/.next/standalone/.next/server/chunks/node_modules_next_1zc5q0a._.js +1 -1
  164. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__00d8snt._.js +1 -1
  165. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__00g61b8._.js +1 -1
  166. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08lf3gy._.js +1 -1
  167. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
  168. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ho-u0w._.js +1 -1
  169. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1feicqq._.js → [root-of-the-server]__0qdeuyo._.js} +1 -1
  170. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ze473p._.js +1 -1
  171. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1194jps._.js +1 -1
  172. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1cnxxc9._.js +1 -1
  173. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1jeztd-._.js +1 -1
  174. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ll97ry._.js +1 -1
  175. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1m0255u._.js +1 -1
  176. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1w9z0zv._.js +1 -1
  177. package/.next/standalone/.next/server/chunks/ssr/_0c_y09g._.js +3 -0
  178. package/.next/standalone/.next/server/chunks/ssr/_0ezj4e0._.js +1 -1
  179. package/.next/standalone/.next/server/chunks/ssr/{_1mj739k._.js → _0l8cxmo._.js} +2 -2
  180. package/.next/standalone/.next/server/chunks/ssr/_1errbuf._.js +3 -0
  181. package/.next/standalone/.next/server/chunks/ssr/{_0wxbq78._.js → app_components_19c2d9c._.js} +2 -2
  182. package/.next/standalone/.next/server/chunks/ssr/app_components_ui_0pdmz2z.js +3 -0
  183. package/.next/standalone/.next/server/chunks/ssr/app_paths_page_1ol90m7.js +1 -1
  184. package/.next/standalone/.next/server/chunks/ssr/app_profile_page_0u3-l5y.js +1 -1
  185. package/.next/standalone/.next/server/chunks/ssr/app_queue_page_0c6znd6.js +1 -1
  186. package/.next/standalone/.next/server/chunks/ssr/app_scores_page_09wepvv.js +1 -1
  187. package/.next/standalone/.next/server/chunks/ssr/app_settings_page_1f8mjj_.js +1 -1
  188. package/.next/standalone/.next/server/chunks/ssr/app_setup_page_1-282zx.js +1 -1
  189. package/.next/standalone/.next/server/chunks/ssr/app_social_page_0h7zxda.js +3 -0
  190. package/.next/standalone/.next/server/chunks/ssr/lib_0i8v-s3._.js +1 -1
  191. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1wax83z._.js → node_modules_0h91jdk._.js} +2 -2
  192. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1nkgb45._.js → node_modules_1f8t_rp._.js} +1 -1
  193. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  194. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  195. package/.next/standalone/.next/server/pages/404.html +1 -1
  196. package/.next/standalone/.next/server/pages/500.html +1 -1
  197. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  198. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  199. package/.next/standalone/.next/static/chunks/{2_zu7rmb8flzl.js → 04bbi55urkrd6.js} +1 -1
  200. package/.next/{static/chunks/3q3pmt5vv-4pi.js → standalone/.next/static/chunks/054zdthcnyd2h.js} +1 -1
  201. package/.next/{static/chunks/236f0jtp68j_h.js → standalone/.next/static/chunks/1_mohm2643nxp.js} +1 -1
  202. package/.next/{static/chunks/3zw8bv7-mc4n6.js → standalone/.next/static/chunks/1z_rt4jteewqp.js} +1 -1
  203. package/.next/standalone/.next/static/chunks/24tvdun1cb3g1.js +1 -0
  204. package/.next/standalone/.next/static/chunks/2bftn9gubwf0w.js +1 -0
  205. package/.next/{static/chunks/0g_p4p7oci18u.js → standalone/.next/static/chunks/2kfhc58df2xyo.js} +1 -1
  206. package/.next/standalone/.next/static/chunks/2pw6_osz1n_te.js +1 -0
  207. package/.next/standalone/.next/static/chunks/39csdcx7yv227.js +1 -0
  208. package/.next/standalone/.next/static/chunks/3yzlf70j5t0-o.js +1 -0
  209. package/.next/standalone/.next/static/chunks/{2_wcobfqry2uj.js → 3z-swu5pet507.js} +1 -1
  210. package/.next/standalone/.next/static/media/favicon.23vm2o6v3er2z.ico +0 -0
  211. package/.next/standalone/CHANGELOG.md +72 -0
  212. package/.next/standalone/CONTRIBUTING.md +5 -0
  213. package/.next/standalone/README.md +168 -56
  214. package/.next/standalone/app/api/social/messages/route.js +130 -0
  215. package/.next/standalone/app/api/social/route.js +89 -47
  216. package/.next/standalone/app/components/ScanStatusBar.js +40 -3
  217. package/.next/standalone/app/components/settings/DataSection.js +2 -1
  218. package/.next/standalone/app/favicon.ico +0 -0
  219. package/.next/standalone/app/paths/page.js +27 -18
  220. package/.next/standalone/app/profile/page.js +2 -0
  221. package/.next/standalone/app/queue/page.js +2 -0
  222. package/.next/standalone/app/scores/page.js +2 -0
  223. package/.next/standalone/app/settings/page.js +2 -0
  224. package/.next/standalone/app/setup/page.js +6 -3
  225. package/.next/standalone/app/social/Conversations.js +246 -0
  226. package/.next/standalone/app/social/page.js +90 -9
  227. package/.next/standalone/lib/galaxy-lab.js +6 -1
  228. package/.next/standalone/lib/linkedin-export.js +175 -5
  229. package/.next/standalone/lib/scoring.js +42 -1
  230. package/.next/standalone/lib/social-store.js +73 -0
  231. package/.next/standalone/package-lock.json +2 -2
  232. package/.next/standalone/package.json +1 -1
  233. package/.next/standalone/scripts/build-site.mjs +537 -0
  234. package/.next/standalone/scripts/scrape.py +156 -23
  235. package/.next/standalone/scripts/site-markdown.mjs +188 -0
  236. package/.next/standalone/scripts/site-news.mjs +311 -0
  237. package/.next/static/chunks/{2_zu7rmb8flzl.js → 04bbi55urkrd6.js} +1 -1
  238. package/.next/{standalone/.next/static/chunks/3q3pmt5vv-4pi.js → static/chunks/054zdthcnyd2h.js} +1 -1
  239. package/.next/{standalone/.next/static/chunks/236f0jtp68j_h.js → static/chunks/1_mohm2643nxp.js} +1 -1
  240. package/.next/{standalone/.next/static/chunks/3zw8bv7-mc4n6.js → static/chunks/1z_rt4jteewqp.js} +1 -1
  241. package/.next/static/chunks/24tvdun1cb3g1.js +1 -0
  242. package/.next/static/chunks/2bftn9gubwf0w.js +1 -0
  243. package/.next/{standalone/.next/static/chunks/0g_p4p7oci18u.js → static/chunks/2kfhc58df2xyo.js} +1 -1
  244. package/.next/static/chunks/2pw6_osz1n_te.js +1 -0
  245. package/.next/static/chunks/39csdcx7yv227.js +1 -0
  246. package/.next/static/chunks/3yzlf70j5t0-o.js +1 -0
  247. package/.next/static/chunks/{2_wcobfqry2uj.js → 3z-swu5pet507.js} +1 -1
  248. package/.next/static/media/favicon.23vm2o6v3er2z.ico +0 -0
  249. package/CHANGELOG.md +72 -0
  250. package/README.md +168 -56
  251. package/lib/galaxy-lab.js +6 -1
  252. package/lib/linkedin-export.js +175 -5
  253. package/lib/scoring.js +42 -1
  254. package/lib/social-store.js +73 -0
  255. package/package.json +1 -1
  256. package/scripts/scrape.py +156 -23
  257. package/.next/standalone/.next/server/chunks/[root-of-the-server]__17kn1mk._.js +0 -8
  258. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1dmc7-t._.js +0 -8
  259. package/.next/standalone/.next/server/chunks/ssr/_005q9n1._.js +0 -3
  260. package/.next/standalone/.next/server/chunks/ssr/_217nddo._.js +0 -3
  261. package/.next/standalone/.next/server/chunks/ssr/app_0i3fw_m._.js +0 -3
  262. package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js +0 -3
  263. package/.next/standalone/.next/static/chunks/0a5iadnmt9u9k.js +0 -1
  264. package/.next/standalone/.next/static/chunks/0y1yms5kez2f3.js +0 -1
  265. package/.next/standalone/.next/static/chunks/14m1zu-8warte.js +0 -1
  266. package/.next/standalone/.next/static/chunks/15qbli9udo0vh.js +0 -1
  267. package/.next/standalone/.next/static/chunks/3p_pwu5gx2i9h.js +0 -1
  268. package/.next/standalone/.next/static/media/favicon.0zdzw5kurn8m-.ico +0 -0
  269. package/.next/static/chunks/0a5iadnmt9u9k.js +0 -1
  270. package/.next/static/chunks/0y1yms5kez2f3.js +0 -1
  271. package/.next/static/chunks/14m1zu-8warte.js +0 -1
  272. package/.next/static/chunks/15qbli9udo0vh.js +0 -1
  273. package/.next/static/chunks/3p_pwu5gx2i9h.js +0 -1
  274. package/.next/static/media/favicon.0zdzw5kurn8m-.ico +0 -0
  275. /package/.next/standalone/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_buildManifest.js +0 -0
  276. /package/.next/standalone/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_clientMiddlewareManifest.js +0 -0
  277. /package/.next/standalone/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_ssgManifest.js +0 -0
  278. /package/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_buildManifest.js +0 -0
  279. /package/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_clientMiddlewareManifest.js +0 -0
  280. /package/.next/static/{YNRcnda8lvMnnrOKL1L5l → yPlsfKhdS8MMtyXF7twSZ}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[54209,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(36839),g=a.i(16874);function h(){let[a,d]=(0,c.useState)(null);return((0,c.useEffect)(()=>{fetch("/api/update").then(a=>a.json()).then(d).catch(()=>{})},[]),a)?a.installed?(0,b.jsx)(l,{local:a}):(0,b.jsx)(j,{local:a}):null}async function i(a){let b=await fetch("/api/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json().catch(()=>({}));return{ok:b.ok,d:c}}function j({local:a}){let[d,e]=(0,c.useState)(null),[f,h]=(0,c.useState)(null),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(null);async function o(a){h(a),l(null);try{let{ok:b,d:c}=await i({action:a});if(!b){l(c.error||"Something went wrong."),c.dirty&&e({dirty:c.dirty});return}"check"===a?e(c):(n(c),e(null))}catch(a){l(a.message)}finally{h(null)}}return(0,c.useEffect)(()=>{"updates"===new URLSearchParams(window.location.search).get("check")&&(document.getElementById("updates")?.scrollIntoView({block:"center"}),o("check"),window.history.replaceState(null,"",window.location.pathname))},[]),(0,b.jsxs)(g.Section,{id:"updates",title:"Updates",children:[m?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["Updated to ",(0,b.jsx)(g.Mono,{children:m.sha})," — “",m.subject,"”."]}),(0,b.jsx)(g.Body,{style:{color:m.needsRestart?"#FFD700":void 0},children:m.needsRestart?"Stop the app in your terminal and start it again — this update changed how it starts.":"The page will pick up most changes on its own. Restart the app if anything looks odd."})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["You are on ",(0,b.jsx)(g.Mono,{children:a.sha})," — “",a.subject,"”."]}),d&&0===d.behind&&(0,b.jsx)(g.Status,{tone:"ok",children:"You’re up to date."}),d&&d.behind>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{style:{color:"#00ff88"},children:[d.behind," update",1===d.behind?"":"s"," available."]}),(0,b.jsx)("pre",{style:r,children:d.commits.join("\n")})]}),d?.dirty?.length>0&&(0,b.jsxs)(g.Body,{children:["Changed files here:"," ",(0,b.jsx)(g.Mono,{children:d.dirty.join(", ")}),". Commit or discard them first — this will not throw away your work."]}),(0,b.jsxs)(q,{children:[(0,b.jsx)(g.Btn,{onClick:()=>o("check"),disabled:!!f,children:"check"===f?"Checking…":"Check for updates"}),d?.behind>0&&(0,b.jsx)(g.Btn,{onClick:()=>o("pull"),disabled:!!f,primary:!0,children:"pull"===f?"Updating…":`Install ${d.behind} update${1===d.behind?"":"s"}`})]})]}),k&&(0,b.jsx)(g.Body,{style:{color:"#ff7676"},children:k}),(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#667",marginTop:12},children:["Nothing is checked automatically and nothing about you is sent — this runs the same ",(0,b.jsx)(g.Mono,{children:"git fetch"})," and ",(0,b.jsx)(g.Mono,{children:"git pull"})," you would type yourself."]})]})}let k=["checking","downloading","verifying","preparing","restarting"];function l({local:a}){let d="mac-app"===a.kind,[e,f]=(0,c.useState)(!1),[h,j]=(0,c.useState)(null),[s,t]=(0,c.useState)(null),[u,v]=(0,c.useState)(!1),[w,x]=(0,c.useState)(null),[y,z]=(0,c.useState)(a.job||null),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(null),[E,F]=(0,c.useState)(null),[G,H]=(0,c.useState)(void 0),[I,J]=(0,c.useState)(0),[K,L]=(0,c.useState)(!1),M=!!(y&&k.includes(y.phase)),N=M&&("restarting"===y.phase||I>0);async function O(){f(!0),j(null),t(null),D(null),F(null),H(void 0),z(a=>a&&k.includes(a.phase)?a:null);try{let{ok:a,d:b}=await i({action:"check-release"});a?(j(b),x(new Date)):t(b.error||"Could not check.")}catch(a){t(a.message)}finally{f(!1)}}async function P(){B(!0),D(null),F(null),H(void 0),J(0),L(!1);try{let{ok:a,d:b}=await i({action:"install-release"});b.job&&z(b.job),!a&&(D(b.error||"The update could not start."),F(b.refusal||null),"fallback"in b&&H(b.fallback))}catch(a){D(a.message)}finally{B(!1)}}async function Q(){try{let{d:a}=await i({action:"cancel-install"});a.job&&z(a.job)}catch{}}async function R(){try{await navigator.clipboard.writeText(a.command),v(!0),setTimeout(()=>v(!1),1600)}catch{t("Could not copy — select the line and copy it by hand.")}}(0,c.useEffect)(()=>{"#updates"===window.location.hash&&document.getElementById("updates")?.scrollIntoView({block:"start"}),"updates"!==new URLSearchParams(window.location.search).get("check")||(window.history.replaceState(null,"",window.location.pathname),a.job&&k.includes(a.job.phase)||(document.getElementById("updates")?.scrollIntoView({block:"center"}),O().then(()=>document.getElementById("updates")?.scrollIntoView({block:"end",behavior:"smooth"}))))},[a.job]),(0,c.useEffect)(()=>{if(!M)return;let a=!0,b=setTimeout(async()=>{try{if(N){let b=await fetch("/api/update",{cache:"no-store"}),c=await b.json();if(!a)return;if(!c.job||c.job.id!==y.id)return void window.location.reload();J(0),z(c.job)}else{let{ok:b,d:c}=await i({action:"update-status"});a&&b&&c.job&&z(c.job)}}catch{a&&J(a=>a+1)}},N?1500:600);return()=>{a=!1,clearTimeout(b)}},[y,I,M,N]),(0,c.useEffect)(()=>{if(!N)return;let a=setTimeout(()=>L(!0),6e4);return()=>clearTimeout(a)},[N]);let S=y?.phase==="failed",T=d&&h?.install?.possible,U=S&&"stale-check"===y.code||"not-checked"===E,V=void 0!==G?G:h?.fallback,W=h?.newer&&(!d||V)&&(!T||S||C||a.lastUpdate?.tone==="bad"),X=function({mac:a,kind:b,canInstall:c,fallback:d}){if(!a)return"source"===b?"A copy built from the source code updates by fetching the code and building it again, which it can't do while it runs. Stop it (Ctrl-C), then run this in the six-degrees folder. Your network stays where it is.":"This copy runs inside the terminal that started it, so it can't replace itself while it runs. Stop it first (Ctrl-C), then run this to start the newest version. Your network stays where it is.";if(!d)return null;let e=d.dataDir?` It opens the new version on the usual data folder, not on ${d.dataDir}: to use that one, quit it and open it again with --data-dir, as you opened this one.`:"";return"replace"===d.mode?`${c?"Or paste this into Terminal.":"Paste this into Terminal instead."} It closes this app, puts the new version in its place and opens it. Your network stays where it is.${e}`:`${c?"Or copy":"Copy"} this line, quit Six Degrees, then paste it into Terminal. It installs the new version at ${d.installsTo}, not where this copy is, and opens it: use that one from then on. Your network stays where it is.${e}`}({mac:d,kind:a.kind,canInstall:T,fallback:V});return(0,b.jsxs)(g.Section,{id:"updates",title:"Updates",children:[a.lastUpdate&&!M&&(0,b.jsx)(o,{report:a.lastUpdate}),(0,b.jsxs)(g.Body,{children:["You have version ",(0,b.jsx)(g.Mono,{children:a.version}),"."]}),M?(0,b.jsx)(n,{job:y,restarting:N,slow:K,onCancel:Q}):(0,b.jsxs)(b.Fragment,{children:[S&&(0,b.jsxs)(g.Status,{tone:"bad",children:[(0,b.jsx)("strong",{children:"The update didn’t finish."})," ",y.error," Nothing was changed."]}),y?.phase==="cancelled"&&(0,b.jsx)(g.Status,{children:"Cancelled. Nothing was changed."}),C&&(0,b.jsx)(g.Status,{tone:"bad",children:C}),h&&!h.latest&&(0,b.jsx)(g.Status,{children:"No release has been published yet."}),h?.latest&&!h.newer&&(0,b.jsxs)(g.Status,{tone:"ok",children:["You’re up to date: ",h.latest.version," is the newest version.",w&&(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:[" Checked at ",w.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),"."]})]}),h?.newer&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{style:{color:"#00ff88"},children:["Version ",h.latest.version," is available."]}),T&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["It downloads ",h.install.size?`about ${m(h.install.size)} MB`:"the new version"," from GitHub, checks it, then closes, replaces itself and reopens. Your network isn’t touched, and a backup of it is made first."]}),(0,b.jsxs)(q,{children:[U?(0,b.jsx)(g.Btn,{onClick:O,disabled:e,primary:!0,children:e?"Checking…":"Check again"}):(0,b.jsx)(g.Btn,{onClick:P,disabled:A,primary:!0,children:A?"Starting…":S||C?"Try again":"Install and restart"}),(0,b.jsx)(p,{url:h.latest.url})]})]}),d&&!T&&h.install?.reason&&(0,b.jsx)(g.Body,{children:h.install.reason}),W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Body,{children:X}),a.testReleases?(0,b.jsx)("pre",{style:r,children:"Not shown in test mode: it would install the real release from GitHub into Applications."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("pre",{style:r,children:a.command}),(0,b.jsxs)(q,{children:[(0,b.jsx)(g.Btn,{onClick:R,primary:!T,children:u?"Copied":"Copy"}),!T&&(0,b.jsx)(p,{url:h.latest.url})]})]})]}),!T&&!W&&(0,b.jsx)(q,{children:(0,b.jsx)(p,{url:h.latest.url})})]}),!h?.newer&&(0,b.jsx)(q,{children:(0,b.jsx)(g.Btn,{onClick:O,disabled:e,children:e?"Checking…":h?"Check again":"Check for updates"})})]}),s&&(0,b.jsx)(g.Body,{style:{color:"#ff7676"},children:s}),(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#667",marginTop:12},children:["Nothing is checked automatically. The button asks GitHub for the newest version number, and nothing about you is sent.",d&&" Only a second click, Install and restart, downloads the new version."]}),a.testReleases&&(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#FFD700",marginTop:6},children:["Test mode: releases are read from ",(0,b.jsx)(g.Mono,{children:a.testReleases})," on this computer, not from GitHub."]})]})}let m=a=>Math.max(1,Math.round(a/1e6));function n({job:a,restarting:c,slow:d,onCancel:e}){let f=a.total?Math.min(100,Math.round(a.received/a.total*100)):null,h=c?"Restarting… Six Degrees closes and opens again in a moment.":"checking"===a.phase?"Asking GitHub for the newest version…":"downloading"===a.phase?`Downloading ${a.version}…${null!==f?` ${f}% (${m(a.received)} of ${m(a.total)} MB)`:""}`:"verifying"===a.phase?"Checking the download…":"Preparing the new version…";return(0,b.jsxs)("div",{role:"status","aria-live":"polite",style:{marginTop:12},children:[(0,b.jsx)(g.Body,{style:{color:"#e8e8ee"},children:h}),"downloading"===a.phase&&null!==f&&(0,b.jsx)("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f,"aria-label":"Download",style:{height:6,borderRadius:3,background:"rgba(255,255,255,0.08)",marginTop:10,overflow:"hidden",maxWidth:420},children:(0,b.jsx)("div",{style:{width:`${f}%`,height:"100%",background:"linear-gradient(90deg, #9B59B6, #3498DB)",transition:"width 0.4s ease"}})}),d&&(0,b.jsx)(g.Body,{children:"This is taking longer than it should. If Six Degrees doesn’t open again by itself, open it from your Applications folder."}),!c&&(0,b.jsx)(q,{children:(0,b.jsx)(g.Btn,{onClick:e,children:"Cancel"})})]})}function o({report:a}){let c=new Date(a.at).toLocaleString([],{dateStyle:"medium",timeStyle:"short"});return(0,b.jsxs)(g.Status,{tone:"ok"===a.tone?"ok":"bad",children:[a.text," ",(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:["(",c,")"]}),"ok"===a.tone&&a.previous&&(0,b.jsxs)("span",{style:{display:"block",fontSize:12.5,color:"#8b9a9a",marginTop:4},children:["A copy of the version you had is kept in ",(0,b.jsx)(g.Mono,{children:a.previous})," until the next update. To go back to it, open that file and drag the app it gives you into your Applications folder."]})]})}function p({url:a}){return a?(0,b.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",style:{color:"#3498DB",fontSize:13.5},children:"What changed →"}):null}function q({children:a}){return(0,b.jsx)("div",{style:{display:"flex",gap:10,marginTop:12,flexWrap:"wrap",alignItems:"center"},children:a})}let r={background:"rgba(0,0,0,0.45)",border:g.LINE,borderRadius:8,padding:12,margin:"8px 0 0",fontSize:12,lineHeight:1.7,color:"#b9c6c6",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",whiteSpace:"pre-wrap",maxHeight:180,overflow:"auto"};function s(a){if(!a)return"0 KB";if(a<1048576)return`${Math.max(1,Math.round(a/1024))} KB`;let b=a/1048576;return`${b<10?b.toFixed(1):Math.round(b)} MB`}let t=a=>Number(a||0).toLocaleString("en-US"),u=(a,b,c=`${b}s`)=>`${t(a)} ${1===Number(a)?b:c}`;function v(a,b=!0){if(!a)return null;let c=new Date(a);return Number.isNaN(c.getTime())?null:c.toLocaleString(void 0,b?{dateStyle:"medium",timeStyle:"short"}:{dateStyle:"medium"})}let w={auto:"before a new version",import:"before an import",manual:"made by hand"};async function x(a,b){let c=await a.json().catch(()=>({}));if(!a.ok)throw Object.assign(Error(c.error||b),{data:c});return c}let y={display:"flex",gap:10,marginTop:12,flexWrap:"wrap",alignItems:"center"},z={fontSize:12,color:"#667",marginTop:10},A={fontSize:14,fontWeight:650,margin:"26px 0 4px",color:"#e8e8ee"},B={display:"flex",gap:8,alignItems:"flex-start",marginTop:12,fontSize:13,color:"#c8d0d0",lineHeight:1.5,cursor:"pointer"};function C({label:a,children:c}){return(0,b.jsxs)("div",{style:{display:"flex",gap:12,justifyContent:"space-between",padding:"7px 0",borderTop:g.LINE,fontSize:13.5},children:[(0,b.jsx)("span",{style:{color:"#8b9a9a"},children:a}),(0,b.jsx)("span",{style:{color:"#e8e8ee",textAlign:"right"},children:c})]})}function D(){return(0,b.jsx)("a",{href:"https://github.com/blakeb056/six-degrees#undo-an-import",target:"_blank",rel:"noreferrer",style:{color:"inherit",textDecoration:"underline"},children:"Undo an import"})}function E(){let[a,d]=(0,c.useState)(null),[e,f]=(0,c.useState)(null),[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(null),[p,q]=(0,c.useState)(!0),[r,E]=(0,c.useState)(null),[F,G]=(0,c.useState)(!1),[H,I]=(0,c.useState)(!1),J=(0,c.useRef)(null),K=(0,c.useRef)(!1),L=(0,c.useCallback)(()=>fetch("/api/data",{cache:"no-store"}).then(a=>x(a,"The data folder could not be read.")).then(a=>{let b=Date.parse(a.lastImport?.appliedAt||"");d({...a,importIsRecent:Number.isFinite(b)&&Date.now()-b<864e5}),f(null)}).catch(a=>f(a.message)),[]);async function M(){k(null);try{await navigator.clipboard.writeText(a.dataDir),k({tone:"ok",text:"Copied the folder’s path."})}catch{k({tone:"bad",text:"This window can’t copy. Select the path above and copy it instead."})}}async function N(){i("reveal"),k(null);try{await x(await fetch("/api/data/reveal",{method:"POST"}),"The folder could not be opened."),k({tone:"ok",text:"darwin"===a.platform?"Opened in Finder.":"Opened in your file browser."})}catch(a){k({tone:"bad",text:a.message})}finally{i(null)}}async function O(){i("export"),m(null);try{let a,b=await fetch("/api/data/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({photos:p})});b.ok||await x(b,"The copy could not be made.");let c=await b.blob(),d=/filename="([^"]+)"/.exec(b.headers.get("content-disposition")||"")?.[1]||"Six Degrees backup.sixdegrees",e=URL.createObjectURL(c),f=document.createElement("a");f.href=e,f.download=d,f.style.position="fixed",f.style.left="-9999px",document.body.appendChild(f),f.click(),f.remove(),setTimeout(()=>URL.revokeObjectURL(e),6e4);let g=[(a=Number(b.headers.get("x-six-degrees-people")),u(a,"person","people"))];g.push(p?u(Number(b.headers.get("x-six-degrees-photos")),"photo"):"no photos"),m({tone:"ok",text:`Made “${d}” (${s(c.size)}: ${g.join(", ")}). Look for it in your Downloads folder, or wherever you chose to save it.`})}catch(a){m({tone:"bad",text:a.message})}finally{i(null)}}async function P(){if(r){i("import"),o(null);try{let b={"Content-Type":"application/octet-stream","X-Six-Degrees-Size":String(r.size)};a.people>0&&(b["X-Six-Degrees-Replace"]=String(a.people)),await x(await fetch("/api/data/import",{method:"POST",headers:b,body:r}),"The file could not be imported."),E(null),G(!1),J.current&&(J.current.value=""),await L()}catch(a){a.data?.needsConfirm&&(G(!1),await L()),o({tone:"bad",text:a.message})}finally{i(null)}}}async function Q(){i("cancel"),o(null);try{await x(await fetch("/api/data/import",{method:"DELETE"}),"The import could not be cancelled."),await L(),o({tone:"ok",text:"Cancelled. The network here stays as it is."})}catch(a){o({tone:"bad",text:a.message})}finally{i(null)}}async function R(){i("restart"),o(null);try{await x(await fetch("/api/data/restart",{method:"POST"}),"Six Degrees could not restart."),I(!0);let a=a=>new Promise(b=>setTimeout(b,a)),b=Date.now()+9e4;for(await a(2500);Date.now()<b;){try{if((await fetch("/api/data",{cache:"no-store"})).ok)return void window.location.reload()}catch{}await a(1e3)}I(!1),o({tone:"bad",text:"Six Degrees didn’t come back. Quit it and open it again: the import finishes as it starts."})}catch(a){o({tone:"bad",text:a.message})}finally{i(null)}}if((0,c.useEffect)(()=>{L()},[L]),(0,c.useEffect)(()=>{a&&!K.current&&(K.current=!0,"#data"===window.location.hash&&document.getElementById("data")?.scrollIntoView({block:"start"}))},[a]),!a)return(0,b.jsx)(g.Section,{id:"data",title:"Your data",children:e?(0,b.jsx)(g.Status,{tone:"bad",children:e}):(0,b.jsx)(g.Body,{children:"Loading…"})});let S=a.pending,T=a.photosInCopy||a.photos,U=a.backups||[],V=U.reduce((a,b)=>a+(b.bytes||0),0),W=!!(r&&r.size>a.maxImportBytes),X=a.people>0,Y=a.lastImport;return(0,b.jsxs)(g.Section,{id:"data",title:"Your data",intro:"Everything Six Degrees knows about your network is in one folder on this computer.",children:[(0,b.jsx)(g.Body,{children:(0,b.jsx)(g.Mono,{children:a.dataDir})}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{onClick:M,children:"Copy the path"}),(0,b.jsx)(g.Btn,{onClick:N,disabled:"reveal"===h,children:"reveal"===h?"Opening…":"darwin"===a.platform?"Show in Finder":"Open the folder"})]}),j&&(0,b.jsx)(g.Status,{tone:j.tone,children:j.text}),(0,b.jsxs)("div",{style:{marginTop:16,borderBottom:g.LINE},children:[(0,b.jsxs)(C,{label:"Your network",children:[u(a.people,"person","people")," · ",s(a.databaseBytes)]}),(0,b.jsx)(C,{label:"Profile photos",children:a.photos.count?`${t(a.photos.count)} \xb7 ${s(a.photos.bytes)}`:"none saved yet"}),(0,b.jsx)(C,{label:"Backups",children:U.length?`${u(U.length,"copy","copies")} \xb7 ${s(V)}`:"none yet"}),(0,b.jsx)(C,{label:"LinkedIn sign-in for scanning",children:a.linkedinSignIn?"kept here, never put in a copy":"not signed in on this computer"})]}),U.length>0&&(0,b.jsxs)("details",{style:{marginTop:10,fontSize:13,color:"#8b9a9a"},children:[(0,b.jsx)("summary",{style:{cursor:"pointer"},children:"The backups"}),(0,b.jsx)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto auto",gap:"6px 14px",marginTop:8},children:U.map(a=>(0,b.jsxs)("div",{style:{display:"contents"},children:[(0,b.jsxs)("span",{style:{wordBreak:"break-all",color:"#c8d0d0"},children:[a.name,a.folder?"/":"",(0,b.jsxs)("span",{style:{color:"#667"},children:[" · ",a.folder?"its photos and files":w[a.kind]||a.kind]})]}),(0,b.jsx)("span",{children:v(a.modifiedAt)}),(0,b.jsx)("span",{style:{textAlign:"right"},children:s(a.bytes)})]},a.name))})]}),(0,b.jsx)(g.Body,{style:z,children:"Backups are copies of your network from before a new version or an import. The newest five from new versions are kept; copies from before an import stay until you delete them."}),(0,b.jsx)(g.Body,{style:z,children:"The folder can’t be moved from here. A database that a sync service (iCloud Drive, Dropbox) copies while it’s open can be damaged, and this folder also holds your LinkedIn sign-in, which should never be synced. To use your network on another computer, save a copy below and import it there."}),(0,b.jsx)("h3",{style:A,children:"Move your network to another computer"}),(0,b.jsx)(g.Body,{children:"Save a copy here, then on the new computer install Six Degrees, open Settings → Your data and import the copy. Sign in to LinkedIn again there before you scan: your sign-in never goes into a copy."}),(0,b.jsxs)("label",{style:B,children:[(0,b.jsx)("input",{type:"checkbox",checked:p,onChange:a=>q(a.target.checked),style:{marginTop:3}}),(0,b.jsxs)("span",{children:["Include profile photos",T.count?` (${t(T.count)}, ${s(T.bytes)})`:"",". They can’t be downloaded again without a new scan."]})]}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{primary:!0,onClick:O,disabled:!!h||H||0===a.people,children:"export"===h?"Saving…":"Save a copy of my network"}),0===a.people&&(0,b.jsx)("span",{style:{fontSize:13,color:"#8b9a9a"},children:"There’s no network here to save yet."})]}),l&&(0,b.jsx)(g.Status,{tone:l.tone,children:l.text}),(0,b.jsx)(g.Body,{style:z,children:"The copy holds the names, headlines and photos of the people in your network. Keep it private: don’t post it or share it, and delete it once it has been imported. A network opened from a LinkedIn CSV lives only in its browser tab, so it isn’t in the copy; import the CSV again on the new computer."}),(0,b.jsx)("h3",{style:A,children:"Bring in a network from another computer"}),S?(0,b.jsxs)(g.Status,{children:[(0,b.jsx)("div",{style:{fontWeight:650},children:"An import is waiting to finish."}),(0,b.jsxs)("div",{children:["The network in the copy",S.exportedAt?` saved ${v(S.exportedAt,!1)}`:""," ","(",u(S.people,"person","people"),S.photos?`, ${u(S.photos,"photo")}`:"",S.fromVersion?`, from Six Degrees ${S.fromVersion}`:"",")",S.replacedPeople>0?` replaces the ${u(S.replacedPeople,"person","people")} here the next time Six Degrees starts. A copy of what’s here now is kept in backups first, so the import can be undone.`:" becomes the network here the next time Six Degrees starts."," ","Your LinkedIn search budget and any pause on scanning are kept."]}),S.error&&(0,b.jsxs)("div",{style:{color:"#ff7676",marginTop:6},children:["The last try stopped: ",S.error.replace(/\.$/,""),". It tries again the next time Six Degrees starts."]}),H?(0,b.jsx)("div",{style:{marginTop:8},children:"Restarting… this page comes back in a few seconds."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:{marginTop:8},children:a.restart.how}),a.restart.command&&(0,b.jsx)("div",{style:{marginTop:6},children:(0,b.jsx)(g.Mono,{children:a.restart.command})}),(0,b.jsxs)("div",{style:y,children:[a.restart.canRestart&&(0,b.jsx)(g.Btn,{primary:!0,onClick:R,disabled:!!h,children:"restart"===h?"Restarting…":"Restart now"}),!S.started&&(0,b.jsx)(g.Btn,{onClick:Q,disabled:!!h,children:"cancel"===h?"Cancelling…":"Cancel the import"})]})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Body,{children:"Pick the copy you saved on the other computer (a .sixdegrees file). It replaces the network here; the two networks are never merged. Your LinkedIn search budget and any pause on scanning are kept, with the other computer’s searches added."}),(0,b.jsx)("input",{ref:J,type:"file",accept:".sixdegrees",onChange:function(a){o(null),G(!1),E(a.target.files?.[0]||null)},style:{display:"none"}}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{onClick:()=>J.current?.click(),disabled:!!h,children:"Choose a file…"}),r&&(0,b.jsxs)("span",{style:{fontSize:13,color:"#c8d0d0",wordBreak:"break-all"},children:[r.name," · ",s(r.size)]})]}),W&&(0,b.jsxs)(g.Status,{tone:"bad",children:["That file is ",s(r.size),". This copy can import files up to ",s(a.maxImportBytes),"."]}),r&&X&&!W&&(0,b.jsxs)("label",{style:B,children:[(0,b.jsx)("input",{type:"checkbox",checked:F,onChange:a=>G(a.target.checked),style:{marginTop:3}}),(0,b.jsxs)("span",{children:["Replace the ",u(a.people,"person","people")," in this copy’s network with the network in this file. A copy of what’s here is kept in backups first. Your search budget and any pause on scanning are kept too."]})]}),(0,b.jsx)("div",{style:y,children:(0,b.jsx)(g.Btn,{primary:!0,onClick:P,disabled:!r||W||X&&!F||!!h,children:"import"===h?"Checking the file…":"Import"})})]}),n&&(0,b.jsx)(g.Status,{tone:n.tone,children:n.text}),Y&&!S&&(a.importIsRecent?(0,b.jsxs)(g.Status,{tone:"ok",children:["Imported ",v(Y.appliedAt),": ",u(Y.people,"person","people"),Y.exportedAt?` from the copy saved ${v(Y.exportedAt,!1)}`:"",".",Y.keptDatabase&&(0,b.jsxs)(b.Fragment,{children:[" ","What was here before is kept in ",(0,b.jsx)(g.Mono,{children:Y.keptDatabase}),Y.keptFiles?", with its photos and files beside it":"",".",Y.keptAsIs&&" It couldn’t be read, so it was kept exactly as it was."," ","To go back to it, see ",(0,b.jsx)(D,{}),"."]})]}):(0,b.jsxs)(g.Body,{style:z,children:["Last import: ",v(Y.appliedAt)," (",u(Y.people,"person","people"),").",Y.keptDatabase&&(0,b.jsxs)(b.Fragment,{children:[" What was here before is kept in ",(0,b.jsx)(g.Mono,{children:Y.keptDatabase})," (",(0,b.jsx)(D,{}),")."]})]}))]})}var F=a.i(58834);let G={"mac-app":"the Mac app",npm:"the npm package (npx six-degrees)",source:"a copy built from the source code",git:"a git checkout of the source code"};function H(){let[a,f]=(0,c.useState)(null),[i,j]=(0,c.useState)(null),k=(0,e.useRouter)();if((0,c.useEffect)(()=>{let a=window.location.hash;("#sector"===a||"#tiers"===a)&&k.replace(`/scores${a}`)},[k]),(0,c.useEffect)(()=>{fetch("/api/settings").then(a=>a.json().then(b=>a.ok?b:Promise.reject(Error(b.error||"Could not load settings.")))).then(f).catch(a=>j(a.message))},[]),F.IS_DEMO)return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"rgba(255,255,255,0.7)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,textAlign:"center",padding:24,fontFamily:g.FONT},children:[(0,b.jsx)("h2",{style:{margin:0,fontSize:20,fontWeight:700,color:"#fff"},children:"Not part of the demo"}),(0,b.jsx)("p",{style:{margin:0,fontSize:13},children:"The public demo includes the Network Circle and Degrees views only."}),(0,b.jsx)(d.default,{href:"/",style:{fontSize:12,color:"rgba(255,255,255,0.5)",textDecoration:"none"},children:"← Back to the network"})]});let l=a?.about;return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#fff",fontFamily:g.FONT},children:[(0,b.jsxs)("header",{style:{padding:"16px 24px",borderBottom:g.LINE,display:"flex",alignItems:"center",gap:16},children:[(0,b.jsx)(d.default,{href:"/",style:{display:"flex",alignItems:"center",gap:6,color:"#888",textDecoration:"none",fontSize:13,fontWeight:600,padding:"6px 14px",borderRadius:6,background:"rgba(255,255,255,0.06)",border:g.LINE},children:"← Back to Map"}),(0,b.jsx)("h1",{style:{fontSize:22,fontWeight:700,margin:0,background:"linear-gradient(135deg, #FFD700, #9B59B6, #3498DB)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"Settings"})]}),(0,b.jsxs)("main",{style:{maxWidth:720,margin:"0 auto",padding:"8px 24px 64px"},children:[i&&(0,b.jsx)(g.Body,{style:{color:"#ff7676",marginTop:16},children:i}),(0,b.jsx)(h,{}),(0,b.jsx)(g.Section,{id:"scoring",title:"Your field and tiers",children:(0,b.jsxs)(g.Body,{children:["They’re on the ",(0,b.jsx)(d.default,{href:"/scores",style:{color:"#3498DB"},children:"Scores"})," tab now, beside every company’s score: ",(0,b.jsx)(d.default,{href:"/scores#sector",style:{color:"#3498DB"},children:"your field"})," and"," ",(0,b.jsx)(d.default,{href:"/scores#tiers",style:{color:"#3498DB"},children:"how tiers are graded"}),"."]})}),(0,b.jsx)(E,{}),(0,b.jsx)(g.Section,{id:"about",title:"About this copy",children:l?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["Version ",(0,b.jsx)(g.Mono,{children:l.version}),", running as ",G[l.kind]||l.kind,"."]}),(0,b.jsxs)(g.Body,{children:["Your network is kept in ",(0,b.jsx)(g.Mono,{children:l.dataDir}),l.customDataDir?" (a folder you chose).":".","mac-app"===l.kind&&" Help → Show the Data Folder opens it."]}),(0,b.jsx)(g.Body,{style:{fontSize:12,color:"#667",marginTop:10},children:"Settings are saved with your network, on this computer. Nothing here is sent anywhere."})]}):!i&&(0,b.jsx)(g.Body,{children:"Loading…"})})]})]})}a.s(["default",0,function(){return(0,b.jsx)(f.default,{children:(0,b.jsx)(H,{})})}],54209)}];
1
+ module.exports=[54209,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(36839),g=a.i(16874);function h(){let[a,d]=(0,c.useState)(null);return((0,c.useEffect)(()=>{fetch("/api/update").then(a=>a.json()).then(d).catch(()=>{})},[]),a)?a.installed?(0,b.jsx)(l,{local:a}):(0,b.jsx)(j,{local:a}):null}async function i(a){let b=await fetch("/api/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json().catch(()=>({}));return{ok:b.ok,d:c}}function j({local:a}){let[d,e]=(0,c.useState)(null),[f,h]=(0,c.useState)(null),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(null);async function o(a){h(a),l(null);try{let{ok:b,d:c}=await i({action:a});if(!b){l(c.error||"Something went wrong."),c.dirty&&e({dirty:c.dirty});return}"check"===a?e(c):(n(c),e(null))}catch(a){l(a.message)}finally{h(null)}}return(0,c.useEffect)(()=>{"updates"===new URLSearchParams(window.location.search).get("check")&&(document.getElementById("updates")?.scrollIntoView({block:"center"}),o("check"),window.history.replaceState(null,"",window.location.pathname))},[]),(0,b.jsxs)(g.Section,{id:"updates",title:"Updates",children:[m?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["Updated to ",(0,b.jsx)(g.Mono,{children:m.sha})," — “",m.subject,"”."]}),(0,b.jsx)(g.Body,{style:{color:m.needsRestart?"#FFD700":void 0},children:m.needsRestart?"Stop the app in your terminal and start it again — this update changed how it starts.":"The page will pick up most changes on its own. Restart the app if anything looks odd."})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["You are on ",(0,b.jsx)(g.Mono,{children:a.sha})," — “",a.subject,"”."]}),d&&0===d.behind&&(0,b.jsx)(g.Status,{tone:"ok",children:"You’re up to date."}),d&&d.behind>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{style:{color:"#00ff88"},children:[d.behind," update",1===d.behind?"":"s"," available."]}),(0,b.jsx)("pre",{style:r,children:d.commits.join("\n")})]}),d?.dirty?.length>0&&(0,b.jsxs)(g.Body,{children:["Changed files here:"," ",(0,b.jsx)(g.Mono,{children:d.dirty.join(", ")}),". Commit or discard them first — this will not throw away your work."]}),(0,b.jsxs)(q,{children:[(0,b.jsx)(g.Btn,{onClick:()=>o("check"),disabled:!!f,children:"check"===f?"Checking…":"Check for updates"}),d?.behind>0&&(0,b.jsx)(g.Btn,{onClick:()=>o("pull"),disabled:!!f,primary:!0,children:"pull"===f?"Updating…":`Install ${d.behind} update${1===d.behind?"":"s"}`})]})]}),k&&(0,b.jsx)(g.Body,{style:{color:"#ff7676"},children:k}),(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#667",marginTop:12},children:["Nothing is checked automatically and nothing about you is sent — this runs the same ",(0,b.jsx)(g.Mono,{children:"git fetch"})," and ",(0,b.jsx)(g.Mono,{children:"git pull"})," you would type yourself."]})]})}let k=["checking","downloading","verifying","preparing","restarting"];function l({local:a}){let d="mac-app"===a.kind,[e,f]=(0,c.useState)(!1),[h,j]=(0,c.useState)(null),[s,t]=(0,c.useState)(null),[u,v]=(0,c.useState)(!1),[w,x]=(0,c.useState)(null),[y,z]=(0,c.useState)(a.job||null),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(null),[E,F]=(0,c.useState)(null),[G,H]=(0,c.useState)(void 0),[I,J]=(0,c.useState)(0),[K,L]=(0,c.useState)(!1),M=!!(y&&k.includes(y.phase)),N=M&&("restarting"===y.phase||I>0);async function O(){f(!0),j(null),t(null),D(null),F(null),H(void 0),z(a=>a&&k.includes(a.phase)?a:null);try{let{ok:a,d:b}=await i({action:"check-release"});a?(j(b),x(new Date)):t(b.error||"Could not check.")}catch(a){t(a.message)}finally{f(!1)}}async function P(){B(!0),D(null),F(null),H(void 0),J(0),L(!1);try{let{ok:a,d:b}=await i({action:"install-release"});b.job&&z(b.job),!a&&(D(b.error||"The update could not start."),F(b.refusal||null),"fallback"in b&&H(b.fallback))}catch(a){D(a.message)}finally{B(!1)}}async function Q(){try{let{d:a}=await i({action:"cancel-install"});a.job&&z(a.job)}catch{}}async function R(){try{await navigator.clipboard.writeText(a.command),v(!0),setTimeout(()=>v(!1),1600)}catch{t("Could not copy — select the line and copy it by hand.")}}(0,c.useEffect)(()=>{"#updates"===window.location.hash&&document.getElementById("updates")?.scrollIntoView({block:"start"}),"updates"!==new URLSearchParams(window.location.search).get("check")||(window.history.replaceState(null,"",window.location.pathname),a.job&&k.includes(a.job.phase)||(document.getElementById("updates")?.scrollIntoView({block:"center"}),O().then(()=>document.getElementById("updates")?.scrollIntoView({block:"end",behavior:"smooth"}))))},[a.job]),(0,c.useEffect)(()=>{if(!M)return;let a=!0,b=setTimeout(async()=>{try{if(N){let b=await fetch("/api/update",{cache:"no-store"}),c=await b.json();if(!a)return;if(!c.job||c.job.id!==y.id)return void window.location.reload();J(0),z(c.job)}else{let{ok:b,d:c}=await i({action:"update-status"});a&&b&&c.job&&z(c.job)}}catch{a&&J(a=>a+1)}},N?1500:600);return()=>{a=!1,clearTimeout(b)}},[y,I,M,N]),(0,c.useEffect)(()=>{if(!N)return;let a=setTimeout(()=>L(!0),6e4);return()=>clearTimeout(a)},[N]);let S=y?.phase==="failed",T=d&&h?.install?.possible,U=S&&"stale-check"===y.code||"not-checked"===E,V=void 0!==G?G:h?.fallback,W=h?.newer&&(!d||V)&&(!T||S||C||a.lastUpdate?.tone==="bad"),X=function({mac:a,kind:b,canInstall:c,fallback:d}){if(!a)return"source"===b?"A copy built from the source code updates by fetching the code and building it again, which it can't do while it runs. Stop it (Ctrl-C), then run this in the six-degrees folder. Your network stays where it is.":"This copy runs inside the terminal that started it, so it can't replace itself while it runs. Stop it first (Ctrl-C), then run this to start the newest version. Your network stays where it is.";if(!d)return null;let e=d.dataDir?` It opens the new version on the usual data folder, not on ${d.dataDir}: to use that one, quit it and open it again with --data-dir, as you opened this one.`:"";return"replace"===d.mode?`${c?"Or paste this into Terminal.":"Paste this into Terminal instead."} It closes this app, puts the new version in its place and opens it. Your network stays where it is.${e}`:`${c?"Or copy":"Copy"} this line, quit Six Degrees, then paste it into Terminal. It installs the new version at ${d.installsTo}, not where this copy is, and opens it: use that one from then on. Your network stays where it is.${e}`}({mac:d,kind:a.kind,canInstall:T,fallback:V});return(0,b.jsxs)(g.Section,{id:"updates",title:"Updates",children:[a.lastUpdate&&!M&&(0,b.jsx)(o,{report:a.lastUpdate}),(0,b.jsxs)(g.Body,{children:["You have version ",(0,b.jsx)(g.Mono,{children:a.version}),"."]}),M?(0,b.jsx)(n,{job:y,restarting:N,slow:K,onCancel:Q}):(0,b.jsxs)(b.Fragment,{children:[S&&(0,b.jsxs)(g.Status,{tone:"bad",children:[(0,b.jsx)("strong",{children:"The update didn’t finish."})," ",y.error," Nothing was changed."]}),y?.phase==="cancelled"&&(0,b.jsx)(g.Status,{children:"Cancelled. Nothing was changed."}),C&&(0,b.jsx)(g.Status,{tone:"bad",children:C}),h&&!h.latest&&(0,b.jsx)(g.Status,{children:"No release has been published yet."}),h?.latest&&!h.newer&&(0,b.jsxs)(g.Status,{tone:"ok",children:["You’re up to date: ",h.latest.version," is the newest version.",w&&(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:[" Checked at ",w.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),"."]})]}),h?.newer&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{style:{color:"#00ff88"},children:["Version ",h.latest.version," is available."]}),T&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["It downloads ",h.install.size?`about ${m(h.install.size)} MB`:"the new version"," from GitHub, checks it, then closes, replaces itself and reopens. Your network isn’t touched, and a backup of it is made first."]}),(0,b.jsxs)(q,{children:[U?(0,b.jsx)(g.Btn,{onClick:O,disabled:e,primary:!0,children:e?"Checking…":"Check again"}):(0,b.jsx)(g.Btn,{onClick:P,disabled:A,primary:!0,children:A?"Starting…":S||C?"Try again":"Install and restart"}),(0,b.jsx)(p,{url:h.latest.url})]})]}),d&&!T&&h.install?.reason&&(0,b.jsx)(g.Body,{children:h.install.reason}),W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Body,{children:X}),a.testReleases?(0,b.jsx)("pre",{style:r,children:"Not shown in test mode: it would install the real release from GitHub into Applications."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("pre",{style:r,children:a.command}),(0,b.jsxs)(q,{children:[(0,b.jsx)(g.Btn,{onClick:R,primary:!T,children:u?"Copied":"Copy"}),!T&&(0,b.jsx)(p,{url:h.latest.url})]})]})]}),!T&&!W&&(0,b.jsx)(q,{children:(0,b.jsx)(p,{url:h.latest.url})})]}),!h?.newer&&(0,b.jsx)(q,{children:(0,b.jsx)(g.Btn,{onClick:O,disabled:e,children:e?"Checking…":h?"Check again":"Check for updates"})})]}),s&&(0,b.jsx)(g.Body,{style:{color:"#ff7676"},children:s}),(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#667",marginTop:12},children:["Nothing is checked automatically. The button asks GitHub for the newest version number, and nothing about you is sent.",d&&" Only a second click, Install and restart, downloads the new version."]}),a.testReleases&&(0,b.jsxs)(g.Body,{style:{fontSize:12,color:"#FFD700",marginTop:6},children:["Test mode: releases are read from ",(0,b.jsx)(g.Mono,{children:a.testReleases})," on this computer, not from GitHub."]})]})}let m=a=>Math.max(1,Math.round(a/1e6));function n({job:a,restarting:c,slow:d,onCancel:e}){let f=a.total?Math.min(100,Math.round(a.received/a.total*100)):null,h=c?"Restarting… Six Degrees closes and opens again in a moment.":"checking"===a.phase?"Asking GitHub for the newest version…":"downloading"===a.phase?`Downloading ${a.version}…${null!==f?` ${f}% (${m(a.received)} of ${m(a.total)} MB)`:""}`:"verifying"===a.phase?"Checking the download…":"Preparing the new version…";return(0,b.jsxs)("div",{role:"status","aria-live":"polite",style:{marginTop:12},children:[(0,b.jsx)(g.Body,{style:{color:"#e8e8ee"},children:h}),"downloading"===a.phase&&null!==f&&(0,b.jsx)("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f,"aria-label":"Download",style:{height:6,borderRadius:3,background:"rgba(255,255,255,0.08)",marginTop:10,overflow:"hidden",maxWidth:420},children:(0,b.jsx)("div",{style:{width:`${f}%`,height:"100%",background:"linear-gradient(90deg, #9B59B6, #3498DB)",transition:"width 0.4s ease"}})}),d&&(0,b.jsx)(g.Body,{children:"This is taking longer than it should. If Six Degrees doesn’t open again by itself, open it from your Applications folder."}),!c&&(0,b.jsx)(q,{children:(0,b.jsx)(g.Btn,{onClick:e,children:"Cancel"})})]})}function o({report:a}){let c=new Date(a.at).toLocaleString([],{dateStyle:"medium",timeStyle:"short"});return(0,b.jsxs)(g.Status,{tone:"ok"===a.tone?"ok":"bad",children:[a.text," ",(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:["(",c,")"]}),"ok"===a.tone&&a.previous&&(0,b.jsxs)("span",{style:{display:"block",fontSize:12.5,color:"#8b9a9a",marginTop:4},children:["A copy of the version you had is kept in ",(0,b.jsx)(g.Mono,{children:a.previous})," until the next update. To go back to it, open that file and drag the app it gives you into your Applications folder."]})]})}function p({url:a}){return a?(0,b.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",style:{color:"#3498DB",fontSize:13.5},children:"What changed →"}):null}function q({children:a}){return(0,b.jsx)("div",{style:{display:"flex",gap:10,marginTop:12,flexWrap:"wrap",alignItems:"center"},children:a})}let r={background:"rgba(0,0,0,0.45)",border:g.LINE,borderRadius:8,padding:12,margin:"8px 0 0",fontSize:12,lineHeight:1.7,color:"#b9c6c6",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",whiteSpace:"pre-wrap",maxHeight:180,overflow:"auto"};function s(a){if(!a)return"0 KB";if(a<1048576)return`${Math.max(1,Math.round(a/1024))} KB`;let b=a/1048576;return`${b<10?b.toFixed(1):Math.round(b)} MB`}let t=a=>Number(a||0).toLocaleString("en-US"),u=(a,b,c=`${b}s`)=>`${t(a)} ${1===Number(a)?b:c}`;function v(a,b=!0){if(!a)return null;let c=new Date(a);return Number.isNaN(c.getTime())?null:c.toLocaleString(void 0,b?{dateStyle:"medium",timeStyle:"short"}:{dateStyle:"medium"})}let w={auto:"before a new version",import:"before an import",manual:"made by hand"};async function x(a,b){let c=await a.json().catch(()=>({}));if(!a.ok)throw Object.assign(Error(c.error||b),{data:c});return c}let y={display:"flex",gap:10,marginTop:12,flexWrap:"wrap",alignItems:"center"},z={fontSize:12,color:"#667",marginTop:10},A={fontSize:14,fontWeight:650,margin:"26px 0 4px",color:"#e8e8ee"},B={display:"flex",gap:8,alignItems:"flex-start",marginTop:12,fontSize:13,color:"#c8d0d0",lineHeight:1.5,cursor:"pointer"};function C({label:a,children:c}){return(0,b.jsxs)("div",{style:{display:"flex",gap:12,justifyContent:"space-between",padding:"7px 0",borderTop:g.LINE,fontSize:13.5},children:[(0,b.jsx)("span",{style:{color:"#8b9a9a"},children:a}),(0,b.jsx)("span",{style:{color:"#e8e8ee",textAlign:"right"},children:c})]})}function D(){return(0,b.jsx)("a",{href:"https://github.com/blakeb056/six-degrees#undo-an-import",target:"_blank",rel:"noreferrer",style:{color:"inherit",textDecoration:"underline"},children:"Undo an import"})}function E(){let[a,d]=(0,c.useState)(null),[e,f]=(0,c.useState)(null),[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(null),[p,q]=(0,c.useState)(!0),[r,E]=(0,c.useState)(null),[F,G]=(0,c.useState)(!1),[H,I]=(0,c.useState)(!1),J=(0,c.useRef)(null),K=(0,c.useRef)(!1),L=(0,c.useCallback)(()=>fetch("/api/data",{cache:"no-store"}).then(a=>x(a,"The data folder could not be read.")).then(a=>{let b=Date.parse(a.lastImport?.appliedAt||"");d({...a,importIsRecent:Number.isFinite(b)&&Date.now()-b<864e5}),f(null)}).catch(a=>f(a.message)),[]);async function M(){k(null);try{await navigator.clipboard.writeText(a.dataDir),k({tone:"ok",text:"Copied the folder’s path."})}catch{k({tone:"bad",text:"This window can’t copy. Select the path above and copy it instead."})}}async function N(){i("reveal"),k(null);try{await x(await fetch("/api/data/reveal",{method:"POST"}),"The folder could not be opened."),k({tone:"ok",text:"darwin"===a.platform?"Opened in Finder.":"Opened in your file browser."})}catch(a){k({tone:"bad",text:a.message})}finally{i(null)}}async function O(){i("export"),m(null);try{let a,b=await fetch("/api/data/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({photos:p})});b.ok||await x(b,"The copy could not be made.");let c=await b.blob(),d=/filename="([^"]+)"/.exec(b.headers.get("content-disposition")||"")?.[1]||"Six Degrees backup.sixdegrees",e=URL.createObjectURL(c),f=document.createElement("a");f.href=e,f.download=d,f.style.position="fixed",f.style.left="-9999px",document.body.appendChild(f),f.click(),f.remove(),setTimeout(()=>URL.revokeObjectURL(e),6e4);let g=[(a=Number(b.headers.get("x-six-degrees-people")),u(a,"person","people"))];g.push(p?u(Number(b.headers.get("x-six-degrees-photos")),"photo"):"no photos"),m({tone:"ok",text:`Made “${d}” (${s(c.size)}: ${g.join(", ")}). Look for it in your Downloads folder, or wherever you chose to save it.`})}catch(a){m({tone:"bad",text:a.message})}finally{i(null)}}async function P(){if(r){i("import"),o(null);try{let b={"Content-Type":"application/octet-stream","X-Six-Degrees-Size":String(r.size)};a.people>0&&(b["X-Six-Degrees-Replace"]=String(a.people)),await x(await fetch("/api/data/import",{method:"POST",headers:b,body:r}),"The file could not be imported."),E(null),G(!1),J.current&&(J.current.value=""),await L()}catch(a){a.data?.needsConfirm&&(G(!1),await L()),o({tone:"bad",text:a.message})}finally{i(null)}}}async function Q(){i("cancel"),o(null);try{await x(await fetch("/api/data/import",{method:"DELETE"}),"The import could not be cancelled."),await L(),o({tone:"ok",text:"Cancelled. The network here stays as it is."})}catch(a){o({tone:"bad",text:a.message})}finally{i(null)}}async function R(){i("restart"),o(null);try{await x(await fetch("/api/data/restart",{method:"POST"}),"Six Degrees could not restart."),I(!0);let a=a=>new Promise(b=>setTimeout(b,a)),b=Date.now()+9e4;for(await a(2500);Date.now()<b;){try{if((await fetch("/api/data",{cache:"no-store"})).ok)return void window.location.reload()}catch{}await a(1e3)}I(!1),o({tone:"bad",text:"Six Degrees didn’t come back. Quit it and open it again: the import finishes as it starts."})}catch(a){o({tone:"bad",text:a.message})}finally{i(null)}}if((0,c.useEffect)(()=>{L()},[L]),(0,c.useEffect)(()=>{a&&!K.current&&(K.current=!0,"#data"===window.location.hash&&document.getElementById("data")?.scrollIntoView({block:"start"}))},[a]),!a)return(0,b.jsx)(g.Section,{id:"data",title:"Your data",children:e?(0,b.jsx)(g.Status,{tone:"bad",children:e}):(0,b.jsx)(g.Body,{children:"Loading…"})});let S=a.pending,T=a.photosInCopy||a.photos,U=a.backups||[],V=U.reduce((a,b)=>a+(b.bytes||0),0),W=!!(r&&r.size>a.maxImportBytes),X=a.people>0,Y=a.lastImport;return(0,b.jsxs)(g.Section,{id:"data",title:"Your data",intro:"Everything Six Degrees knows about your network is in one folder on this computer.",children:[(0,b.jsx)(g.Body,{children:(0,b.jsx)(g.Mono,{children:a.dataDir})}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{onClick:M,children:"Copy the path"}),(0,b.jsx)(g.Btn,{onClick:N,disabled:"reveal"===h,children:"reveal"===h?"Opening…":"darwin"===a.platform?"Show in Finder":"Open the folder"})]}),j&&(0,b.jsx)(g.Status,{tone:j.tone,children:j.text}),(0,b.jsxs)("div",{style:{marginTop:16,borderBottom:g.LINE},children:[(0,b.jsxs)(C,{label:"Your network",children:[u(a.people,"person","people")," · ",s(a.databaseBytes)]}),(0,b.jsx)(C,{label:"Profile photos",children:a.photos.count?`${t(a.photos.count)} \xb7 ${s(a.photos.bytes)}`:"none saved yet"}),(0,b.jsx)(C,{label:"Backups",children:U.length?`${u(U.length,"copy","copies")} \xb7 ${s(V)}`:"none yet"}),(0,b.jsx)(C,{label:"LinkedIn sign-in for scanning",children:a.linkedinSignIn?"kept here, never put in a copy":"not signed in on this computer"})]}),U.length>0&&(0,b.jsxs)("details",{style:{marginTop:10,fontSize:13,color:"#8b9a9a"},children:[(0,b.jsx)("summary",{style:{cursor:"pointer"},children:"The backups"}),(0,b.jsx)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto auto",gap:"6px 14px",marginTop:8},children:U.map(a=>(0,b.jsxs)("div",{style:{display:"contents"},children:[(0,b.jsxs)("span",{style:{wordBreak:"break-all",color:"#c8d0d0"},children:[a.name,a.folder?"/":"",(0,b.jsxs)("span",{style:{color:"#667"},children:[" · ",a.folder?"its photos and files":w[a.kind]||a.kind]})]}),(0,b.jsx)("span",{children:v(a.modifiedAt)}),(0,b.jsx)("span",{style:{textAlign:"right"},children:s(a.bytes)})]},a.name))})]}),(0,b.jsx)(g.Body,{style:z,children:"Backups are copies of your network from before a new version or an import. The newest five from new versions are kept; copies from before an import stay until you delete them."}),(0,b.jsx)(g.Body,{style:z,children:"The folder can’t be moved from here. A database that a sync service (iCloud Drive, Dropbox) copies while it’s open can be damaged, and this folder also holds your LinkedIn sign-in, which should never be synced. To use your network on another computer, save a copy below and import it there."}),(0,b.jsx)("h3",{style:A,children:"Move your network to another computer"}),(0,b.jsx)(g.Body,{children:"Save a copy here, then on the new computer install Six Degrees, open Settings → Your data and import the copy. Sign in to LinkedIn again there before you scan: your sign-in never goes into a copy."}),(0,b.jsxs)("label",{style:B,children:[(0,b.jsx)("input",{type:"checkbox",checked:p,onChange:a=>q(a.target.checked),style:{marginTop:3}}),(0,b.jsxs)("span",{children:["Include profile photos",T.count?` (${t(T.count)}, ${s(T.bytes)})`:"",". They can’t be downloaded again without a new scan."]})]}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{primary:!0,onClick:O,disabled:!!h||H||0===a.people,children:"export"===h?"Saving…":"Save a copy of my network"}),0===a.people&&(0,b.jsx)("span",{style:{fontSize:13,color:"#8b9a9a"},children:"There’s no network here to save yet."})]}),l&&(0,b.jsx)(g.Status,{tone:l.tone,children:l.text}),(0,b.jsx)(g.Body,{style:z,children:"The copy holds the names, headlines and photos of the people in your network. Keep it private: don’t post it or share it, and delete it once it has been imported. A network opened from a LinkedIn CSV lives only in its browser tab, so it isn’t in the copy; import the CSV again on the new computer. The Social tab’s findings, and any messages you keep there, stay on this computer and aren’t in the copy either."}),(0,b.jsx)("h3",{style:A,children:"Bring in a network from another computer"}),S?(0,b.jsxs)(g.Status,{children:[(0,b.jsx)("div",{style:{fontWeight:650},children:"An import is waiting to finish."}),(0,b.jsxs)("div",{children:["The network in the copy",S.exportedAt?` saved ${v(S.exportedAt,!1)}`:""," ","(",u(S.people,"person","people"),S.photos?`, ${u(S.photos,"photo")}`:"",S.fromVersion?`, from Six Degrees ${S.fromVersion}`:"",")",S.replacedPeople>0?` replaces the ${u(S.replacedPeople,"person","people")} here the next time Six Degrees starts. A copy of what’s here now is kept in backups first, so the import can be undone.`:" becomes the network here the next time Six Degrees starts."," ","Your LinkedIn search budget and any pause on scanning are kept."]}),S.error&&(0,b.jsxs)("div",{style:{color:"#ff7676",marginTop:6},children:["The last try stopped: ",S.error.replace(/\.$/,""),". It tries again the next time Six Degrees starts."]}),H?(0,b.jsx)("div",{style:{marginTop:8},children:"Restarting… this page comes back in a few seconds."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:{marginTop:8},children:a.restart.how}),a.restart.command&&(0,b.jsx)("div",{style:{marginTop:6},children:(0,b.jsx)(g.Mono,{children:a.restart.command})}),(0,b.jsxs)("div",{style:y,children:[a.restart.canRestart&&(0,b.jsx)(g.Btn,{primary:!0,onClick:R,disabled:!!h,children:"restart"===h?"Restarting…":"Restart now"}),!S.started&&(0,b.jsx)(g.Btn,{onClick:Q,disabled:!!h,children:"cancel"===h?"Cancelling…":"Cancel the import"})]})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Body,{children:"Pick the copy you saved on the other computer (a .sixdegrees file). It replaces the network here; the two networks are never merged. Your LinkedIn search budget and any pause on scanning are kept, with the other computer’s searches added."}),(0,b.jsx)("input",{ref:J,type:"file",accept:".sixdegrees",onChange:function(a){o(null),G(!1),E(a.target.files?.[0]||null)},style:{display:"none"}}),(0,b.jsxs)("div",{style:y,children:[(0,b.jsx)(g.Btn,{onClick:()=>J.current?.click(),disabled:!!h,children:"Choose a file…"}),r&&(0,b.jsxs)("span",{style:{fontSize:13,color:"#c8d0d0",wordBreak:"break-all"},children:[r.name," · ",s(r.size)]})]}),W&&(0,b.jsxs)(g.Status,{tone:"bad",children:["That file is ",s(r.size),". This copy can import files up to ",s(a.maxImportBytes),"."]}),r&&X&&!W&&(0,b.jsxs)("label",{style:B,children:[(0,b.jsx)("input",{type:"checkbox",checked:F,onChange:a=>G(a.target.checked),style:{marginTop:3}}),(0,b.jsxs)("span",{children:["Replace the ",u(a.people,"person","people")," in this copy’s network with the network in this file. A copy of what’s here is kept in backups first. Your search budget and any pause on scanning are kept too."]})]}),(0,b.jsx)("div",{style:y,children:(0,b.jsx)(g.Btn,{primary:!0,onClick:P,disabled:!r||W||X&&!F||!!h,children:"import"===h?"Checking the file…":"Import"})})]}),n&&(0,b.jsx)(g.Status,{tone:n.tone,children:n.text}),Y&&!S&&(a.importIsRecent?(0,b.jsxs)(g.Status,{tone:"ok",children:["Imported ",v(Y.appliedAt),": ",u(Y.people,"person","people"),Y.exportedAt?` from the copy saved ${v(Y.exportedAt,!1)}`:"",".",Y.keptDatabase&&(0,b.jsxs)(b.Fragment,{children:[" ","What was here before is kept in ",(0,b.jsx)(g.Mono,{children:Y.keptDatabase}),Y.keptFiles?", with its photos and files beside it":"",".",Y.keptAsIs&&" It couldn’t be read, so it was kept exactly as it was."," ","To go back to it, see ",(0,b.jsx)(D,{}),"."]})]}):(0,b.jsxs)(g.Body,{style:z,children:["Last import: ",v(Y.appliedAt)," (",u(Y.people,"person","people"),").",Y.keptDatabase&&(0,b.jsxs)(b.Fragment,{children:[" What was here before is kept in ",(0,b.jsx)(g.Mono,{children:Y.keptDatabase})," (",(0,b.jsx)(D,{}),")."]})]}))]})}var F=a.i(58834);let G={"mac-app":"the Mac app",npm:"the npm package (npx six-degrees)",source:"a copy built from the source code",git:"a git checkout of the source code"};function H(){let[a,f]=(0,c.useState)(null),[i,j]=(0,c.useState)(null),k=(0,e.useRouter)();if((0,c.useEffect)(()=>{let a=window.location.hash;("#sector"===a||"#tiers"===a)&&k.replace(`/scores${a}`)},[k]),(0,c.useEffect)(()=>{fetch("/api/settings").then(a=>a.json().then(b=>a.ok?b:Promise.reject(Error(b.error||"Could not load settings.")))).then(f).catch(a=>j(a.message))},[]),F.IS_DEMO)return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"rgba(255,255,255,0.7)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,textAlign:"center",padding:24,fontFamily:g.FONT},children:[(0,b.jsx)("h2",{style:{margin:0,fontSize:20,fontWeight:700,color:"#fff"},children:"Not part of the demo"}),(0,b.jsx)("p",{style:{margin:0,fontSize:13},children:"The public demo includes the Network Circle and Degrees views only."}),(0,b.jsx)(d.default,{href:"/",style:{fontSize:12,color:"rgba(255,255,255,0.5)",textDecoration:"none"},children:"← Back to the network"})]});let l=a?.about;return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#fff",fontFamily:g.FONT},children:[(0,b.jsxs)("header",{style:{padding:"16px 24px",borderBottom:g.LINE,display:"flex",alignItems:"center",gap:16},children:[(0,b.jsx)(d.default,{href:"/",style:{display:"flex",alignItems:"center",gap:6,color:"#888",textDecoration:"none",fontSize:13,fontWeight:600,padding:"6px 14px",borderRadius:6,background:"rgba(255,255,255,0.06)",border:g.LINE},children:"← Back to Map"}),(0,b.jsx)("h1",{style:{fontSize:22,fontWeight:700,margin:0,background:"linear-gradient(135deg, #FFD700, #9B59B6, #3498DB)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"Settings"})]}),(0,b.jsx)("div",{id:"scan-bar-slot"}),(0,b.jsxs)("main",{style:{maxWidth:720,margin:"0 auto",padding:"8px 24px 64px"},children:[i&&(0,b.jsx)(g.Body,{style:{color:"#ff7676",marginTop:16},children:i}),(0,b.jsx)(h,{}),(0,b.jsx)(g.Section,{id:"scoring",title:"Your field and tiers",children:(0,b.jsxs)(g.Body,{children:["They’re on the ",(0,b.jsx)(d.default,{href:"/scores",style:{color:"#3498DB"},children:"Scores"})," tab now, beside every company’s score: ",(0,b.jsx)(d.default,{href:"/scores#sector",style:{color:"#3498DB"},children:"your field"})," and"," ",(0,b.jsx)(d.default,{href:"/scores#tiers",style:{color:"#3498DB"},children:"how tiers are graded"}),"."]})}),(0,b.jsx)(E,{}),(0,b.jsx)(g.Section,{id:"about",title:"About this copy",children:l?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g.Body,{children:["Version ",(0,b.jsx)(g.Mono,{children:l.version}),", running as ",G[l.kind]||l.kind,"."]}),(0,b.jsxs)(g.Body,{children:["Your network is kept in ",(0,b.jsx)(g.Mono,{children:l.dataDir}),l.customDataDir?" (a folder you chose).":".","mac-app"===l.kind&&" Help → Show the Data Folder opens it."]}),(0,b.jsx)(g.Body,{style:{fontSize:12,color:"#667",marginTop:10},children:"Settings are saved with your network, on this computer. Nothing here is sent anywhere."})]}):!i&&(0,b.jsx)(g.Body,{children:"Loading…"})})]})]})}a.s(["default",0,function(){return(0,b.jsx)(f.default,{children:(0,b.jsx)(H,{})})}],54209)}];
2
2
 
3
3
  //# sourceMappingURL=app_settings_page_1f8mjj_.js.map
@@ -2,7 +2,7 @@ module.exports=[65375,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944
2
2
 
3
3
  Set ${b.daily} a day anyway?`:0===b.monthly&&0!==a.monthly?`With no monthly cap, only the daily budget stops a scan. A real account was restricted after 373 searches in 24 hours with no monthly cap set.
4
4
 
5
- Turn the monthly cap off anyway?`:null}(e,{...e,...a});(!b||window.confirm(b))&&h(a)},j=function({daily:a,monthly:b}={}){if(!(({daily:a,monthly:b}={})=>Number(a)>100||0===b)({daily:a,monthly:b}))return null;let c=["A real account was restricted after 373 searches in 24 hours."];return Number(a)>100&&c.push(`${a} a day can use up a free account's month in a day or two.`),0===b&&c.push("With no monthly cap, nothing but the daily budget stops a long run."),c.join(" ")}(e);return(0,b.jsxs)("div",{style:{padding:"12px 14px",borderRadius:8,border:l,background:"rgba(255,255,255,0.03)",fontSize:12.5,color:"#b8c4c4"},children:[(0,b.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(210px, 1fr))",gap:14},children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:f})," of ",e.daily||"no limit"," searches in the last 24 hours"]}),(0,b.jsx)(s,{used:a.searchesToday||0,cap:e.daily})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:a.searchesMonth})," of ",e.monthly||"no limit"," this month · resets ",q(a.monthResets)]}),(0,b.jsx)(s,{used:a.searchesMonth,cap:e.monthly})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:g})," of ",e.profiles," profile views today"]}),(0,b.jsx)(s,{used:a.unreadable?e.profiles:a.profilesToday,cap:e.profiles})]})]}),(0,b.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:10},children:[(0,b.jsx)("span",{children:"Budget:"}),(0,b.jsx)("select",{value:e.daily,disabled:d,onChange:a=>i({daily:Number(a.target.value)}),style:x,children:n.map(a=>(0,b.jsxs)("option",{value:a,children:[a," a day"]},a))}),(0,b.jsx)("select",{value:e.monthly,disabled:d,onChange:a=>i({monthly:Number(a.target.value)}),style:x,children:o.map(a=>(0,b.jsx)("option",{value:a,children:a?`${a} a month`:"no monthly cap (Premium)"},a))}),(0,b.jsx)("select",{value:e.profiles,disabled:d,onChange:a=>h({profiles:Number(a.target.value)}),style:x,children:p.map(a=>(0,b.jsxs)("option",{value:a,children:[a," profile views a day"]},a))})]}),(0,b.jsx)("div",{style:{marginTop:8,color:"#778",lineHeight:1.6},children:"Every page of someone’s connections is one search. LinkedIn limits a free account’s people searches by the month (it doesn’t say how many; reports put it around 250–350), resetting on the 1st. When a budget is used, a scan saves what it read and stops; the next one carries on from the same page."}),j&&(0,b.jsxs)("div",{style:{marginTop:8,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",color:"#FFD700",lineHeight:1.6},children:[(0,b.jsx)("b",{style:{flex:1,minWidth:200},children:j}),(0,b.jsxs)("button",{onClick:()=>h(k),disabled:d,style:{...x,cursor:d?"not-allowed":"pointer",color:"#FFD700",borderColor:"rgba(255,215,0,0.4)"},children:["Back to ",k.daily," a day, ",k.monthly," a month"]})]}),(0,b.jsx)("div",{style:{marginTop:6,color:"#778",lineHeight:1.6},children:"Each circle scan opens the person’s profile once, which is one profile view. Profile views are what LinkedIn restricted an account for, after about 20 in an hour. The scanner opens at most one a minute, and once today’s are used, a scan stops before the next profile and tries that person next time."})]})}function u({paused:a=[],onResume:d,onResumeAll:e,disabled:f}){let[g,h]=(0,c.useState)(!1);if(!a.length)return null;let i=a.filter(a=>a.legacy).length,j=g?a:a.slice(0,8);return(0,b.jsxs)("div",{style:{borderRadius:8,border:l,background:"rgba(255,255,255,0.03)"},children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 14px",borderBottom:l,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{style:{fontSize:13.5},children:["Paused — ",a.length," ",1===a.length?"list":"lists"," with more to read"]}),(0,b.jsxs)("div",{style:{fontSize:12,color:"#8b9a9a",marginTop:2},children:["Each carries on from the page it stopped at",i?`; ${i} were read to page 10 before whole lists were read`:"","."]})]}),(0,b.jsx)("button",{onClick:e,disabled:f,style:{...v,opacity:f?.4:1,cursor:f?"not-allowed":"pointer",background:f?"rgba(255,255,255,0.06)":"linear-gradient(135deg, #3498DB, #9B59B6)"},children:"Resume all"})]}),(0,b.jsx)("div",{children:j.map(a=>(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 14px",borderBottom:"1px solid rgba(255,255,255,0.04)"},children:[(0,b.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:m[a.tier]||"#667",flexShrink:0}}),(0,b.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,b.jsx)("div",{style:{fontSize:13,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.name}),(0,b.jsxs)("div",{style:{fontSize:11.5,color:"#8b9a9a"},children:["Read to page ",a.pagesRead," · carries on at ",a.nextPage,a.at?` \xb7 ${q(a.at)}`:"",a.unclear>=2?" · came back unclear twice, so it waits at the back of Resume all":""]})]}),(0,b.jsx)("button",{onClick:()=>d(a),disabled:f,style:{...v,padding:"6px 12px",fontSize:12,opacity:f?.4:1,cursor:f?"not-allowed":"pointer"},children:"Resume"})]},a.id))}),a.length>8&&(0,b.jsx)("button",{onClick:()=>h(!g),style:{...w,padding:"10px 14px"},children:g?"Show fewer":`Show all ${a.length}`})]})}let v={padding:"8px 14px",borderRadius:7,fontSize:13,fontWeight:700,cursor:"pointer",border:l,background:"rgba(255,255,255,0.08)",color:"#fff"},w={background:"none",border:"none",color:"#8fb8d6",cursor:"pointer",fontSize:12.5,fontWeight:600,padding:0},x={padding:"6px 8px",borderRadius:6,fontSize:12.5,fontWeight:600,background:"rgba(255,255,255,0.08)",color:"#fff",border:l};var y=a.i(16874),z=a.i(803);a.i(59534);var A=a.i(54919),B=a.i(31483);let C={color:"#3498DB"};function D({onDone:a}){let[d,e]=(0,c.useState)([]),[f,g]=(0,c.useState)(null),[h,i]=(0,c.useState)(null);async function j(){g("pick"),i(null);let b=await (0,B.saveSettings)({sectorFocus:{sectors:d,strength:"lean"},fieldAsked:!0});b.settings?a(b.settings.sectorFocus.sectors):(i(b.error),g(null))}async function k(){g("skip"),i(null),await (0,B.saveSettings)({fieldAsked:!0}),a([])}return(0,b.jsxs)("section",{"aria-labelledby":"field-question","data-field-question":!0,style:{margin:"8px 0 0",padding:"20px 22px 0",borderRadius:12,border:y.LINE,background:"rgba(255,255,255,0.03)"},children:[(0,b.jsx)("div",{style:{fontSize:12,color:"#788",textTransform:"uppercase",letterSpacing:.6},children:"Before you scan · optional"}),(0,b.jsx)("h2",{id:"field-question",style:{fontSize:18,fontWeight:700,margin:"6px 0 4px"},children:"What field are you in?"}),(0,b.jsx)(y.Body,{style:{marginTop:0,marginBottom:14},children:"Pick up to three. Companies in your field count for more when your network is scored, so the people there rank higher. You can change it anytime on the Scores tab."}),(0,b.jsx)(z.default,{sectors:d,onChange:e,disabled:!!f}),(0,b.jsxs)("div",{style:{position:"sticky",bottom:0,margin:"16px -22px 0",padding:"12px 22px 16px",borderTop:y.LINE,borderRadius:"0 0 11px 11px",background:"#111121"},children:[(0,b.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,b.jsx)(y.Btn,{primary:!0,onClick:j,disabled:!d.length||!!f,children:"pick"===f?"Saving…":"Continue"}),(0,b.jsx)(y.Btn,{onClick:k,disabled:!!f,children:"Skip for now"})]}),h&&(0,b.jsx)(y.Status,{tone:"bad",children:h})]})]})}function E({sectors:a}){return a.length?(0,b.jsxs)(y.Status,{tone:"ok",children:["Your field: ",a.map(a=>(0,A.sectorByKey)(a).label).join(" · "),". Your first scan is scored with it. Change it anytime on ",(0,b.jsx)(f.default,{href:"/scores#sector",style:C,children:"Scores"}),"."]}):(0,b.jsxs)(y.Status,{children:["No field for now. You can pick one anytime on ",(0,b.jsx)(f.default,{href:"/scores#sector",style:C,children:"Scores"}),"."]})}let F="1px solid rgba(255,255,255,0.1)",G={photos:"Saving profile photos to this computer",install:"Installing the scanner",setup:"Setting up the scanner",login:"Waiting for you to sign in",full:"Scanning your whole network",refresh:"Checking for new connections","auto-bridge":"Mapping 2nd-degree connections","auto-bridge-retry":"Mapping 2nd degree, hidden ones included",resume:"Carrying on with one paused list","resume-all":"Carrying on with every paused list"};function H(){let a;(0,c.useEffect)(()=>{"updates"===new URLSearchParams(window.location.search).get("check")&&window.location.replace("/settings?check=updates")},[]);let[e,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)(10),[p,q]=(0,c.useState)(["S","A"]),[s,v]=K("six-degrees-bridge-order","newest"),[w,x]=K("six-degrees-bridge-pages-v2",100),[y,z]=K("six-degrees-bridge-finish",!0),[A,B]=K("six-degrees-experimental-auto",!1),[C,H]=K("six-degrees-hide-chrome",!1),[J,S]=(0,c.useState)(null),T=(0,c.useRef)(null),[U,V]=(0,c.useState)(void 0),[W,X]=(0,c.useState)(null),Y=(0,d.useSearchParams)().get("scan"),[Z,$]=(0,c.useState)(null);(0,c.useEffect)(()=>{if(!Y)return;let a=!0;return(0,g.pickedPerson)(Y).then(b=>{a&&$(b?.person?b:null)},()=>{}),()=>{a=!1}},[Y]);let _=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/scraper");k(await a.json())}catch{k(a=>a||{ready:!1,checks:{},log:[]})}},[]);async function aa(){S(null),await (0,g.stopScrape)().catch(a=>S(a.message)),_()}async function ab(a,b={}){S(null),m(!0);try{let c=await fetch("/api/scraper",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a,...b})}),d=await c.json();c.ok||S(d.error||"Could not start.")}catch(a){S(a.message)}finally{m(!1),_()}}(0,c.useEffect)(()=>{_();let a=setInterval(_,1500);return()=>clearInterval(a)},[_]),(0,c.useEffect)(()=>{if(i.IS_DEMO)return;let a=!1;return fetch("/api/settings").then(a=>a.ok?a.json():null).then(b=>{a||V(b?.settings||null)}).catch(()=>{a||V(null)}),()=>{a=!0}},[]),(0,c.useEffect)(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},[e?.log?.length]);let ac=e?.checks||{},ad=e?.running,ae={...a=function(a){let b=a?.checks||{},c=(b,c,d)=>a?.running&&a.action===b?d:c;if(b.dependencies)return"bundled"===b.pythonSource?{done:!0,text:"Ready. The scanner and its Python come with the app, so there is nothing to install.",button:null}:"custom"===b.pythonSource?{done:!0,text:`Ready, on the Python named in SIX_DEGREES_PYTHON (${b.pythonPath}).`,button:null}:{done:!0,text:"Installed.",button:null};let d=b.ownPython&&"bundled"!==b.ownPython.source?`The Python named in SIX_DEGREES_PYTHON didn't work (${b.ownPython.problem}), so the scanner needs setting up another way. `:"";if(b.installFrom)return{done:!1,text:d+("downloaded"===b.installFrom.source?"Its own Python is already here. One more step, about a minute: it installs the browser-automation packages into it.":"One-time, about a minute. Downloads the browser-automation packages."),button:{action:"install",label:c("install","Install","Installing…")}};if(b.download){let a=Math.round(b.download.size/1048576);return{done:!1,text:`${d}${function(a){if(!a?.version)return"This computer has no Python the scanner can use.";let[b,c]=String(a.version).split(".").map(Number);return 3===b&&c>=10&&c<=14&&!1===a.venv?`This computer's Python ${a.version} can't make the scanner's own environment (on Ubuntu or Debian, python3-venv isn't installed).`:`This computer has Python ${a.version}, and the scanner needs 3.10 to 3.14.`}(b.systemPython)} Set up the scanner downloads its own Python ${b.download.version} (${a} MB, from GitHub) and the scanner's packages (from PyPI) into your data folder. Nothing else on this computer changes. About two minutes.`,button:{action:"setup",label:c("setup","Set up the scanner","Setting up…")}}}return{done:!1,text:`${d}No Python 3.10 to 3.14 was found on this machine. Install one from python.org, then reload.`,button:null}}(e),note:function(a,{done:b,button:c}){if(a?.source!=="bundled")return null;let d=/SIGKILL|code signature|not valid for use in process|quarantine|not permitted/i.test(a.problem||""),e=[`The Python that comes with the app didn't work (${a.problem}).`];return d&&e.push("macOS may have blocked it."),!1===a.retry&&e.push("Six Degrees won't try it again until you restart it."),b?e.push("The scanner uses another Python on this computer instead."):c?e.push(`To scan now, use ${h[c.action]} below: it gives the scanner a Python of its own in your data folder.`):e.push("To scan now, install Python 3.10 to 3.14 from python.org, then reload."),e.join(" ")}(e?.checks?.ownPython,a)};e&&ac.dependencies;let af=e&&!ac.chrome,ag=e&&!ac.scriptsFound,ah=e?.ready&&!ad,ai=e?.linkedin,aj=!!ai?.cooldown,ak=ah&&!aj,al=e?.network||{first:0,second:0,third:0},am=al.first,an=!i.IS_DEMO&&!W&&function(a,b){if(!a)return null;let c=a.network;return!!c&&!c.first&&!c.second&&!c.third&&!a.running&&(void 0===b?null:!!(b&&!b.fieldAsked&&!b.sectorFocus?.sectors?.length))}(e,U),ao=e&&!ad&&null!=e.exitCode&&0!==e.exitCode,ap=ao?e.failure?.length?e.failure.join("\n"):[...e.log||[]].reverse().find(a=>!/^Stopped \(exit/.test(a)&&!/Warning|warnings\.warn/.test(a)):null;return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:[(0,b.jsxs)("header",{style:{padding:"16px 24px",borderBottom:F,display:"flex",alignItems:"center",gap:16},children:[(0,b.jsx)(f.default,{href:"/",style:{display:"flex",alignItems:"center",gap:6,color:"#888",textDecoration:"none",fontSize:13,fontWeight:600,padding:"6px 14px",borderRadius:6,background:"rgba(255,255,255,0.06)",border:F},children:"← Back to Map"}),(0,b.jsx)("h1",{style:{fontSize:22,fontWeight:700,margin:0,background:"linear-gradient(135deg, #FFD700, #9B59B6, #3498DB)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"Scan your network"})]}),(0,b.jsxs)("div",{style:{maxWidth:720,margin:"0 auto",padding:"32px 24px 64px"},children:[(0,b.jsxs)("p",{style:{color:"#9aa",fontSize:15,lineHeight:1.6,marginTop:0},children:["This reads your own LinkedIn connections in a real Chrome window on this machine and saves them here. Nothing leaves your computer, and you will never be asked for your password — you sign in yourself, once.",!am&&(an?" One optional question, then three steps and your galaxy appears.":" Three steps and your galaxy appears; each one ticks itself off.")]}),null===an&&(0,b.jsx)("p",{style:{color:"#778",fontSize:13},children:"Checking your setup…"}),an&&(0,b.jsx)(D,{onDone:function(a){X({sectors:a}),window.scrollTo(0,0)}}),W&&(0,b.jsx)(E,{sectors:W.sectors}),!1===an&&(0,b.jsxs)(b.Fragment,{children:[Z?.person.id===Y&&(0,b.jsx)(I,{pick:Z,pages:w,setPages:x,li:ai,running:ad,s:e,canSearch:ak,busy:l,onUnpick:function(){$(null);try{window.history.replaceState(null,"",window.location.pathname)}catch{}},onStart:()=>ab("bridge",{id:Z.person.id,maxPages:w})}),am>0&&!ad&&(0,b.jsx)(P,{children:(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{children:[am.toLocaleString()," connections"]}),al.second>0&&(0,b.jsxs)(b.Fragment,{children:[", plus ",al.second.toLocaleString()," people in their circles"]}),al.third>0&&(0,b.jsxs)(b.Fragment,{children:[" and ",al.third.toLocaleString()," from company scans"]}),"."," ",(0,b.jsx)("span",{style:{color:"#9aa"},children:"Your galaxy is ready."})]}),(0,b.jsx)(f.default,{href:"/",style:{padding:"9px 18px",borderRadius:7,fontSize:13.5,fontWeight:700,color:"#0a0a1a",textDecoration:"none",background:"linear-gradient(135deg, #FFD700, #FF6B35)"},children:"See your network →"})]})}),e?.photosWaiting>0&&!ad&&(0,b.jsx)(P,{children:(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{children:[e.photosWaiting.toLocaleString()," ",1===e.photosWaiting?"photo isn’t":"photos aren’t"," saved on this computer yet."]})," ",(0,b.jsx)("span",{style:{color:"#9aa"},children:"An older version kept them as links to LinkedIn. The app doesn’t load photos from LinkedIn while you browse, so those people show initials until the photos are saved here: now, or at the end of your next scan. An expired link can’t be saved; that person’s photo comes back when they’re next scanned."}),e&&!ac.dependencies&&(0,b.jsx)("div",{style:{color:"#8b9a9a",fontSize:12.5,marginTop:6},children:"Set up the scanner first (step 1 below): it saves them."})]}),(0,b.jsx)(O,{onClick:()=>ab("photos"),disabled:l||!ac.dependencies,children:"Save photos"})]})}),ao&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"The last run stopped before it finished."}),ap&&(0,b.jsx)("div",{style:{marginTop:6,color:"#e8c4c4",whiteSpace:"pre-wrap",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:12.5},children:ap}),(0,b.jsx)("div",{style:{color:"#9aa",marginTop:6},children:"The full log is below."})]}),ag&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"Can’t find the scanner files."}),(0,b.jsx)("br",{}),(0,b.jsxs)("span",{style:{color:"#9aa"},children:["Expected ",(0,b.jsx)("code",{style:L,children:"scripts/scrape.py"})," next to the app. If you downloaded a zip, run the app from inside the project folder."]})]}),af&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"Google Chrome isn’t installed."}),(0,b.jsx)("br",{}),(0,b.jsxs)("span",{style:{color:"#9aa"},children:["The scanner drives your real Chrome. Install it from"," ",(0,b.jsx)("a",{href:"https://www.google.com/chrome/",target:"_blank",rel:"noreferrer",style:{color:"#3498DB"},children:"google.com/chrome"}),", then reload this page."]})]}),e&&ae.note&&(0,b.jsx)(P,{tone:ae.done?void 0:"bad",children:ae.note}),(0,b.jsx)(N,{n:1,done:ae.done,title:"Set up the scanner",body:e?ae.text:"",action:e&&ae.button&&(0,b.jsx)(O,{onClick:()=>ab(ae.button.action),disabled:l||ad,children:ae.button.label})}),(0,b.jsx)(N,{n:2,done:!!ac.signedIn,title:"Sign into LinkedIn",body:ac.signedIn?"Signed in on this machine. If LinkedIn ever asks for a security check, or a scan says you were signed out, open LinkedIn here and finish it by hand.":"Opens a Chrome window. Sign in with your email and password — “Continue with Google” cannot work here, because Google blocks its sign-in inside automated browsers.",action:ac.dependencies&&(0,b.jsx)(O,{onClick:()=>ab("login"),disabled:l||ad,children:ad&&"login"===e.action?"Waiting for you…":"Open LinkedIn"})}),(0,b.jsx)(N,{n:3,done:am>0,title:"1st degree — the people you know",body:"The first scan walks your whole connections list, about a minute and a half for 750 people. After that, Check for new only looks at what has been added since.",action:(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:[(0,b.jsx)(O,{onClick:()=>ab("full"),disabled:!ak,primary:!0,children:ad&&"full"===e.action?"Scanning…":"Scan my whole network"}),(0,b.jsx)(O,{onClick:()=>ab("refresh"),disabled:!ak,children:ad&&"refresh"===e.action?"Checking…":"Check for new"})]})}),(0,b.jsx)(N,{n:4,done:!1,title:"2nd degree — the people they know",body:(0,b.jsxs)(b.Fragment,{children:["This is what fills ",(0,b.jsx)("b",{children:"Degrees"})," and ",(0,b.jsx)("b",{children:"Outlink"}),": it opens each of your connections in turn and reads who ",(0,b.jsx)("i",{children:"they"})," know. Most people hide their connections — those are noted and never tried again.",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),"It is slow on purpose, about two minutes between each person, because this is the part LinkedIn notices. During development a real account was temporarily restricted after roughly ",(0,b.jsx)("b",{children:"19 people in one sitting"}),". Run a batch, leave it for a day, run another — and stop the moment LinkedIn mentions unusual activity. It always picks up where it left off: anyone still without a mapped circle, in the order you choose below — your newest connections first, or highest tier first. Each person’s list is read to the end, saving every 10 pages, and a read that is stopped carries on from the same page next time."]}),action:(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,b.jsx)(r,{cooldown:ai?.cooldown,disabled:l,onLift:()=>ab("lift-cooldown")}),(0,b.jsx)(t,{li:ai,disabled:l,onSetLimits:a=>ab("set-limits",a)}),"score"===s&&(0,b.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Work through"}),["S","A","B","C","D"].map(a=>{let c=p.includes(a);return(0,b.jsx)("button",{onClick:()=>q(b=>b.includes(a)?b.filter(b=>b!==a):[...b,a]),disabled:ad,style:{width:30,height:28,borderRadius:7,fontSize:12,fontWeight:700,cursor:ad?"not-allowed":"pointer",border:F,background:c?"rgba(52,152,219,0.22)":"rgba(255,255,255,0.05)",color:c?"#cfe6f7":"#667"},children:a},a)}),(0,b.jsx)("span",{style:{fontSize:11.5,color:"#667"},children:p.length?"":"pick at least one"})]}),"newest"===s&&(0,b.jsxs)("div",{style:{fontSize:12,color:"#8b9a9a",lineHeight:1.6},children:["Goes by the date you connected, newest first, across every tier. Run"," ",(0,b.jsx)("b",{children:"Check for new"})," first so your latest connections are in the list."]}),(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Start with"}),(0,b.jsxs)("select",{value:s,onChange:a=>v(a.target.value),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:"newest",children:"Newest connections first"}),(0,b.jsx)("option",{value:"score",children:"Highest tier first"})]}),(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Read up to"}),(0,b.jsxs)("select",{value:w,onChange:a=>x(Number(a.target.value)),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:100,children:"every page, to the end of their list"}),(0,b.jsx)("option",{value:50,children:"50 pages each"}),(0,b.jsx)("option",{value:25,children:"25 pages each"}),(0,b.jsx)("option",{value:10,children:"10 pages (~100 people) each"})]})]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"center",fontSize:12.5,color:"#cfd8d8",cursor:ad?"not-allowed":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:y,onChange:a=>z(a.target.checked),disabled:ad}),"Also finish people already mapped, from the page each one stopped at"]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:12.5,color:"#b8c4c4",cursor:ad?"default":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:A,disabled:ad,style:{marginTop:3},onChange:a=>{B(a.target.checked),window.dispatchEvent(new Event("six-degrees:experimental"))}}),(0,b.jsxs)("span",{children:[(0,b.jsx)("b",{style:{color:"#FFD700"},children:"Experimental:"})," all-day pacing. Up to 10 pages in a sitting, then a 45-minute rest; searches only from 9:00 to 19:00; at the daily budget it waits for it to free up instead of stopping; and it saves every page. It also reads LinkedIn’s own data beside the page text, to fill gaps and measure how the two compare. It keeps running while the app is open."]})]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:12.5,color:"#b8c4c4",cursor:ad?"default":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:C,disabled:ad,style:{marginTop:3},onChange:a=>H(a.target.checked)}),(0,b.jsxs)("span",{children:[(0,b.jsx)("b",{style:{color:"#FFD700"},children:"Hide the Chrome window while scanning."})," Every scan runs with no window popping up; the status bar still shows what it’s doing, and Stop still works. Signing in always opens the window.",(0,b.jsx)("span",{style:{display:"block",marginTop:4,color:"#e0a080"},children:"The risks: a hidden Chrome is easier for LinkedIn to tell apart from a person, so it may make a warning or restriction more likely. If LinkedIn asks you to check it’s you (a code, a puzzle, signing in again) you won’t see it, and the scan will stop instead of waiting for you. Untick this and scan again to see what LinkedIn wants. It changes nothing about pacing or your daily budget."})]})]}),(0,b.jsxs)("div",{style:{fontSize:12,color:"#FFD700",lineHeight:1.6},children:["Every page is a LinkedIn search, so it rests 20 seconds before each one and a minute after every 10, and a long list can take"," ","about ",(0,j.circleScanCost)(w).minutes," minutes a person. LinkedIn shows 100 pages of anyone’s connections at most. Free accounts have a monthly search limit: if LinkedIn says it has been reached, the scan saves what it read and stops, and carries on from that page next time. Keep batches small."]}),(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,b.jsx)(O,{onClick:()=>ab("auto-bridge",{maxBridges:n,tiers:"score"===s?p:[],order:s,maxPages:w,deeper:y,experimental:A}),disabled:!ak||"score"===s&&!p.length,primary:!0,children:ad&&"auto-bridge"===e.action?"Mapping…":"Map 2nd degree"}),(0,b.jsxs)("select",{value:n,onChange:a=>o(Number(a.target.value)),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:5,children:"5 people"}),(0,b.jsx)("option",{value:10,children:"10 people"}),(0,b.jsx)("option",{value:25,children:"25 people"}),(0,b.jsx)("option",{value:0,children:"everyone — not advised"})]}),(0,b.jsx)(O,{onClick:()=>ab("auto-bridge-retry",{maxBridges:n,tiers:"score"===s?p:[],order:s,maxPages:w,deeper:y}),disabled:!ak||"score"===s&&!p.length,children:"Retry hidden ones"})]}),(0,b.jsx)(u,{paused:e?.paused||[],disabled:!ak,onResume:a=>ab("resume",{id:a.id}),onResumeAll:()=>ab("resume-all",{maxBridges:n})})]})}),ad&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:20,padding:"14px 16px",borderRadius:8,background:"rgba(255,255,255,0.05)",border:F},children:[(0,b.jsx)(R,{}),(0,b.jsxs)("div",{style:{flex:1,fontSize:13.5},children:[(0,b.jsx)("b",{children:G[e.action]||"Working"}),e.progress&&(0,b.jsx)(Q,{p:e.progress,action:e.action}),(0,b.jsx)("div",{style:{color:"#8b9a9a",fontSize:12.5,marginTop:2},children:"Stopping closes the browser cleanly and keeps everything found so far."})]}),(0,b.jsx)(O,{onClick:aa,tone:"bad",children:"Stop"})]}),J&&(0,b.jsx)(P,{tone:"bad",children:J}),e?.log?.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"28px 0 8px",fontSize:12,color:"#788",textTransform:"uppercase",letterSpacing:.6},children:[ad&&(0,b.jsx)(R,{}),ad?"Working":"Last run"]}),(0,b.jsx)("pre",{ref:T,style:{background:"rgba(0,0,0,0.45)",border:F,borderRadius:8,padding:14,maxHeight:280,overflow:"auto",margin:0,fontSize:12.5,lineHeight:1.7,color:"#b9c6c6",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.log.join("\n")})]})]}),(0,b.jsxs)("div",{style:{marginTop:32,paddingTop:20,borderTop:F,fontSize:13.5,color:"#8b9a9a"},children:["Checking for updates has moved to"," ",(0,b.jsx)(f.default,{href:"/settings#updates",style:{color:"#3498DB"},children:"Settings →"})]}),(0,b.jsxs)("p",{style:{color:"#667",fontSize:12.5,lineHeight:1.7,marginTop:32},children:["Automating LinkedIn may go against its User Agreement, and accounts have been restricted for it. This runs locally against your own account, at your own risk. LinkedIn’s own CSV export is the supported route and needs none of this —"," ",(0,b.jsx)(f.default,{href:"/import",style:{color:"#3498DB"},children:"import a CSV instead"}),"."]})]}),(0,b.jsx)("style",{children:`@keyframes spin { to { transform: rotate(360deg) } }
5
+ Turn the monthly cap off anyway?`:null}(e,{...e,...a});(!b||window.confirm(b))&&h(a)},j=function({daily:a,monthly:b}={}){if(!(({daily:a,monthly:b}={})=>Number(a)>100||0===b)({daily:a,monthly:b}))return null;let c=["A real account was restricted after 373 searches in 24 hours."];return Number(a)>100&&c.push(`${a} a day can use up a free account's month in a day or two.`),0===b&&c.push("With no monthly cap, nothing but the daily budget stops a long run."),c.join(" ")}(e);return(0,b.jsxs)("div",{style:{padding:"12px 14px",borderRadius:8,border:l,background:"rgba(255,255,255,0.03)",fontSize:12.5,color:"#b8c4c4"},children:[(0,b.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(210px, 1fr))",gap:14},children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:f})," of ",e.daily||"no limit"," searches in the last 24 hours"]}),(0,b.jsx)(s,{used:a.searchesToday||0,cap:e.daily})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:a.searchesMonth})," of ",e.monthly||"no limit"," this month · resets ",q(a.monthResets)]}),(0,b.jsx)(s,{used:a.searchesMonth,cap:e.monthly})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{style:{color:"#fff"},children:g})," of ",e.profiles," profile views today"]}),(0,b.jsx)(s,{used:a.unreadable?e.profiles:a.profilesToday,cap:e.profiles})]})]}),(0,b.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:10},children:[(0,b.jsx)("span",{children:"Budget:"}),(0,b.jsx)("select",{value:e.daily,disabled:d,onChange:a=>i({daily:Number(a.target.value)}),style:x,children:n.map(a=>(0,b.jsxs)("option",{value:a,children:[a," a day"]},a))}),(0,b.jsx)("select",{value:e.monthly,disabled:d,onChange:a=>i({monthly:Number(a.target.value)}),style:x,children:o.map(a=>(0,b.jsx)("option",{value:a,children:a?`${a} a month`:"no monthly cap (Premium)"},a))}),(0,b.jsx)("select",{value:e.profiles,disabled:d,onChange:a=>h({profiles:Number(a.target.value)}),style:x,children:p.map(a=>(0,b.jsxs)("option",{value:a,children:[a," profile views a day"]},a))})]}),(0,b.jsx)("div",{style:{marginTop:8,color:"#778",lineHeight:1.6},children:"Every page of someone’s connections is one search. LinkedIn limits a free account’s people searches by the month (it doesn’t say how many; reports put it around 250–350), resetting on the 1st. When a budget is used, a scan saves what it read and stops; the next one carries on from the same page."}),j&&(0,b.jsxs)("div",{style:{marginTop:8,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",color:"#FFD700",lineHeight:1.6},children:[(0,b.jsx)("b",{style:{flex:1,minWidth:200},children:j}),(0,b.jsxs)("button",{onClick:()=>h(k),disabled:d,style:{...x,cursor:d?"not-allowed":"pointer",color:"#FFD700",borderColor:"rgba(255,215,0,0.4)"},children:["Back to ",k.daily," a day, ",k.monthly," a month"]})]}),(0,b.jsx)("div",{style:{marginTop:6,color:"#778",lineHeight:1.6},children:"Each circle scan opens the person’s profile once, which is one profile view. Profile views are what LinkedIn restricted an account for, after about 20 in an hour. The scanner opens at most one a minute, and once today’s are used, a scan stops before the next profile and tries that person next time."})]})}function u({paused:a=[],onResume:d,onResumeAll:e,disabled:f}){let[g,h]=(0,c.useState)(!1);if(!a.length)return null;let i=a.filter(a=>a.legacy).length,j=g?a:a.slice(0,8);return(0,b.jsxs)("div",{style:{borderRadius:8,border:l,background:"rgba(255,255,255,0.03)"},children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 14px",borderBottom:l,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{style:{fontSize:13.5},children:["Paused — ",a.length," ",1===a.length?"list":"lists"," with more to read"]}),(0,b.jsxs)("div",{style:{fontSize:12,color:"#8b9a9a",marginTop:2},children:["Each carries on from the page it stopped at",i?`; ${i} were read to page 10 before whole lists were read`:"","."]})]}),(0,b.jsx)("button",{onClick:e,disabled:f,style:{...v,opacity:f?.4:1,cursor:f?"not-allowed":"pointer",background:f?"rgba(255,255,255,0.06)":"linear-gradient(135deg, #3498DB, #9B59B6)"},children:"Resume all"})]}),(0,b.jsx)("div",{children:j.map(a=>(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 14px",borderBottom:"1px solid rgba(255,255,255,0.04)"},children:[(0,b.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:m[a.tier]||"#667",flexShrink:0}}),(0,b.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,b.jsx)("div",{style:{fontSize:13,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.name}),(0,b.jsxs)("div",{style:{fontSize:11.5,color:"#8b9a9a"},children:["Read to page ",a.pagesRead," · carries on at ",a.nextPage,a.at?` \xb7 ${q(a.at)}`:"",a.unclear>=2?" · came back unclear twice, so it waits at the back of Resume all":""]})]}),(0,b.jsx)("button",{onClick:()=>d(a),disabled:f,style:{...v,padding:"6px 12px",fontSize:12,opacity:f?.4:1,cursor:f?"not-allowed":"pointer"},children:"Resume"})]},a.id))}),a.length>8&&(0,b.jsx)("button",{onClick:()=>h(!g),style:{...w,padding:"10px 14px"},children:g?"Show fewer":`Show all ${a.length}`})]})}let v={padding:"8px 14px",borderRadius:7,fontSize:13,fontWeight:700,cursor:"pointer",border:l,background:"rgba(255,255,255,0.08)",color:"#fff"},w={background:"none",border:"none",color:"#8fb8d6",cursor:"pointer",fontSize:12.5,fontWeight:600,padding:0},x={padding:"6px 8px",borderRadius:6,fontSize:12.5,fontWeight:600,background:"rgba(255,255,255,0.08)",color:"#fff",border:l};var y=a.i(16874),z=a.i(803);a.i(59534);var A=a.i(54919),B=a.i(31483);let C={color:"#3498DB"};function D({onDone:a}){let[d,e]=(0,c.useState)([]),[f,g]=(0,c.useState)(null),[h,i]=(0,c.useState)(null);async function j(){g("pick"),i(null);let b=await (0,B.saveSettings)({sectorFocus:{sectors:d,strength:"lean"},fieldAsked:!0});b.settings?a(b.settings.sectorFocus.sectors):(i(b.error),g(null))}async function k(){g("skip"),i(null),await (0,B.saveSettings)({fieldAsked:!0}),a([])}return(0,b.jsxs)("section",{"aria-labelledby":"field-question","data-field-question":!0,style:{margin:"8px 0 0",padding:"20px 22px 0",borderRadius:12,border:y.LINE,background:"rgba(255,255,255,0.03)"},children:[(0,b.jsx)("div",{style:{fontSize:12,color:"#788",textTransform:"uppercase",letterSpacing:.6},children:"Before you scan · optional"}),(0,b.jsx)("h2",{id:"field-question",style:{fontSize:18,fontWeight:700,margin:"6px 0 4px"},children:"What field are you in?"}),(0,b.jsx)(y.Body,{style:{marginTop:0,marginBottom:14},children:"Pick up to three. Companies in your field count for more when your network is scored, so the people there rank higher. You can change it anytime on the Scores tab."}),(0,b.jsx)(z.default,{sectors:d,onChange:e,disabled:!!f}),(0,b.jsxs)("div",{style:{position:"sticky",bottom:0,margin:"16px -22px 0",padding:"12px 22px 16px",borderTop:y.LINE,borderRadius:"0 0 11px 11px",background:"#111121"},children:[(0,b.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,b.jsx)(y.Btn,{primary:!0,onClick:j,disabled:!d.length||!!f,children:"pick"===f?"Saving…":"Continue"}),(0,b.jsx)(y.Btn,{onClick:k,disabled:!!f,children:"Skip for now"})]}),h&&(0,b.jsx)(y.Status,{tone:"bad",children:h})]})]})}function E({sectors:a}){return a.length?(0,b.jsxs)(y.Status,{tone:"ok",children:["Your field: ",a.map(a=>(0,A.sectorByKey)(a).label).join(" · "),". Your first scan is scored with it. Change it anytime on ",(0,b.jsx)(f.default,{href:"/scores#sector",style:C,children:"Scores"}),"."]}):(0,b.jsxs)(y.Status,{children:["No field for now. You can pick one anytime on ",(0,b.jsx)(f.default,{href:"/scores#sector",style:C,children:"Scores"}),"."]})}let F="1px solid rgba(255,255,255,0.1)",G={photos:"Saving profile photos to this computer",install:"Installing the scanner",setup:"Setting up the scanner",login:"Waiting for you to sign in",full:"Scanning your whole network",refresh:"Checking for new connections","auto-bridge":"Mapping 2nd-degree connections","auto-bridge-retry":"Mapping 2nd degree, hidden ones included",resume:"Carrying on with one paused list","resume-all":"Carrying on with every paused list"};function H(){let a;(0,c.useEffect)(()=>{"updates"===new URLSearchParams(window.location.search).get("check")&&window.location.replace("/settings?check=updates")},[]);let[e,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)(10),[p,q]=(0,c.useState)(["S","A"]),[s,v]=K("six-degrees-bridge-order","newest"),[w,x]=K("six-degrees-bridge-pages-v2",100),[y,z]=K("six-degrees-bridge-finish",!0),[A,B]=K("six-degrees-experimental-auto",!1),[C,H]=K("six-degrees-hide-chrome",!1),[J,S]=(0,c.useState)(null),T=(0,c.useRef)(null),[U,V]=(0,c.useState)(void 0),[W,X]=(0,c.useState)(null),Y=(0,d.useSearchParams)().get("scan"),[Z,$]=(0,c.useState)(null);(0,c.useEffect)(()=>{if(!Y)return;let a=!0;return(0,g.pickedPerson)(Y).then(b=>{a&&$(b?.person?b:null)},()=>{}),()=>{a=!1}},[Y]);let _=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/scraper");k(await a.json())}catch{k(a=>a||{ready:!1,checks:{},log:[]})}},[]);async function aa(){S(null),await (0,g.stopScrape)().catch(a=>S(a.message)),_()}async function ab(a,b={}){S(null),m(!0);try{let c=await fetch("/api/scraper",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a,...b})}),d=await c.json();c.ok||S(d.error||"Could not start.")}catch(a){S(a.message)}finally{m(!1),_()}}(0,c.useEffect)(()=>{_();let a=setInterval(_,1500);return()=>clearInterval(a)},[_]),(0,c.useEffect)(()=>{if(i.IS_DEMO)return;let a=!1;return fetch("/api/settings").then(a=>a.ok?a.json():null).then(b=>{a||V(b?.settings||null)}).catch(()=>{a||V(null)}),()=>{a=!0}},[]),(0,c.useEffect)(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},[e?.log?.length]);let ac=e?.checks||{},ad=e?.running,ae={...a=function(a){let b=a?.checks||{},c=(b,c,d)=>a?.running&&a.action===b?d:c;if(b.dependencies)return"bundled"===b.pythonSource?{done:!0,text:"Ready. The scanner and its Python come with the app, so there is nothing to install.",button:null}:"custom"===b.pythonSource?{done:!0,text:`Ready, on the Python named in SIX_DEGREES_PYTHON (${b.pythonPath}).`,button:null}:{done:!0,text:"Installed.",button:null};let d=b.ownPython&&"bundled"!==b.ownPython.source?`The Python named in SIX_DEGREES_PYTHON didn't work (${b.ownPython.problem}), so the scanner needs setting up another way. `:"";if(b.installFrom)return{done:!1,text:d+("downloaded"===b.installFrom.source?"Its own Python is already here. One more step, about a minute: it installs the browser-automation packages into it.":"One-time, about a minute. Downloads the browser-automation packages."),button:{action:"install",label:c("install","Install","Installing…")}};if(b.download){let a=Math.round(b.download.size/1048576);return{done:!1,text:`${d}${function(a){if(!a?.version)return"This computer has no Python the scanner can use.";let[b,c]=String(a.version).split(".").map(Number);return 3===b&&c>=10&&c<=14&&!1===a.venv?`This computer's Python ${a.version} can't make the scanner's own environment (on Ubuntu or Debian, python3-venv isn't installed).`:`This computer has Python ${a.version}, and the scanner needs 3.10 to 3.14.`}(b.systemPython)} Set up the scanner downloads its own Python ${b.download.version} (${a} MB, from GitHub) and the scanner's packages (from PyPI) into your data folder. Nothing else on this computer changes. About two minutes.`,button:{action:"setup",label:c("setup","Set up the scanner","Setting up…")}}}return{done:!1,text:`${d}No Python 3.10 to 3.14 was found on this machine. Install one from python.org, then reload.`,button:null}}(e),note:function(a,{done:b,button:c}){if(a?.source!=="bundled")return null;let d=/SIGKILL|code signature|not valid for use in process|quarantine|not permitted/i.test(a.problem||""),e=[`The Python that comes with the app didn't work (${a.problem}).`];return d&&e.push("macOS may have blocked it."),!1===a.retry&&e.push("Six Degrees won't try it again until you restart it."),b?e.push("The scanner uses another Python on this computer instead."):c?e.push(`To scan now, use ${h[c.action]} below: it gives the scanner a Python of its own in your data folder.`):e.push("To scan now, install Python 3.10 to 3.14 from python.org, then reload."),e.join(" ")}(e?.checks?.ownPython,a)};e&&ac.dependencies;let af=e&&!ac.chrome,ag=e&&!ac.scriptsFound,ah=e?.ready&&!ad,ai=e?.linkedin,aj=!!ai?.cooldown,ak=ah&&!aj,al=e?.network||{first:0,second:0,third:0},am=al.first,an=!i.IS_DEMO&&!W&&function(a,b){if(!a)return null;let c=a.network;return!!c&&!c.first&&!c.second&&!c.third&&!a.running&&(void 0===b?null:!!(b&&!b.fieldAsked&&!b.sectorFocus?.sectors?.length))}(e,U),ao=e&&!ad&&null!=e.exitCode&&0!==e.exitCode,ap=ao?e.failure?.length?e.failure.join("\n"):[...e.log||[]].reverse().find(a=>!/^Stopped \(exit/.test(a)&&!/Warning|warnings\.warn/.test(a)):null;return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:[(0,b.jsxs)("header",{style:{padding:"16px 24px",borderBottom:F,display:"flex",alignItems:"center",gap:16},children:[(0,b.jsx)(f.default,{href:"/",style:{display:"flex",alignItems:"center",gap:6,color:"#888",textDecoration:"none",fontSize:13,fontWeight:600,padding:"6px 14px",borderRadius:6,background:"rgba(255,255,255,0.06)",border:F},children:"← Back to Map"}),(0,b.jsx)("h1",{style:{fontSize:22,fontWeight:700,margin:0,background:"linear-gradient(135deg, #FFD700, #9B59B6, #3498DB)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"Scan your network"})]}),(0,b.jsx)("div",{id:"scan-bar-slot"}),(0,b.jsxs)("div",{style:{maxWidth:720,margin:"0 auto",padding:"32px 24px 64px"},children:[(0,b.jsxs)("p",{style:{color:"#9aa",fontSize:15,lineHeight:1.6,marginTop:0},children:["This reads your own LinkedIn connections in a real Chrome window on this machine and saves them here. Nothing leaves your computer, and you will never be asked for your password — you sign in yourself, once.",!am&&(an?" One optional question, then three steps and your galaxy appears.":" Three steps and your galaxy appears; each one ticks itself off.")]}),null===an&&(0,b.jsx)("p",{style:{color:"#778",fontSize:13},children:"Checking your setup…"}),an&&(0,b.jsx)(D,{onDone:function(a){X({sectors:a}),window.scrollTo(0,0)}}),W&&(0,b.jsx)(E,{sectors:W.sectors}),!1===an&&(0,b.jsxs)(b.Fragment,{children:[Z?.person.id===Y&&(0,b.jsx)(I,{pick:Z,pages:w,setPages:x,li:ai,running:ad,s:e,canSearch:ak,busy:l,onUnpick:function(){$(null);try{window.history.replaceState(null,"",window.location.pathname)}catch{}},onStart:()=>ab("bridge",{id:Z.person.id,maxPages:w})}),am>0&&!ad&&(0,b.jsx)(P,{children:(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{children:[am.toLocaleString()," connections"]}),al.second>0&&(0,b.jsxs)(b.Fragment,{children:[", plus ",al.second.toLocaleString()," people in their circles"]}),al.third>0&&(0,b.jsxs)(b.Fragment,{children:[" and ",al.third.toLocaleString()," from company scans"]}),"."," ",(0,b.jsx)("span",{style:{color:"#9aa"},children:"Your galaxy is ready."})]}),(0,b.jsx)(f.default,{href:"/",style:{padding:"9px 18px",borderRadius:7,fontSize:13.5,fontWeight:700,color:"#0a0a1a",textDecoration:"none",background:"linear-gradient(135deg, #FFD700, #FF6B35)"},children:"See your network →"})]})}),e?.photosWaiting>0&&!ad&&(0,b.jsx)(P,{children:(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexWrap:"wrap"},children:[(0,b.jsxs)("div",{style:{flex:1,minWidth:200},children:[(0,b.jsxs)("b",{children:[e.photosWaiting.toLocaleString()," ",1===e.photosWaiting?"photo isn’t":"photos aren’t"," saved on this computer yet."]})," ",(0,b.jsx)("span",{style:{color:"#9aa"},children:"An older version kept them as links to LinkedIn. The app doesn’t load photos from LinkedIn while you browse, so those people show initials until the photos are saved here: now, or at the end of your next scan. An expired link can’t be saved; that person’s photo comes back when they’re next scanned."}),e&&!ac.dependencies&&(0,b.jsx)("div",{style:{color:"#8b9a9a",fontSize:12.5,marginTop:6},children:"Set up the scanner first (step 1 below): it saves them."})]}),(0,b.jsx)(O,{onClick:()=>ab("photos"),disabled:l||!ac.dependencies,children:"Save photos"})]})}),ao&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"The last run stopped before it finished."}),ap&&(0,b.jsx)("div",{style:{marginTop:6,color:"#e8c4c4",whiteSpace:"pre-wrap",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:12.5},children:ap}),(0,b.jsx)("div",{style:{color:"#9aa",marginTop:6},children:"The full log is below."})]}),ag&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"Can’t find the scanner files."}),(0,b.jsx)("br",{}),(0,b.jsxs)("span",{style:{color:"#9aa"},children:["Expected ",(0,b.jsx)("code",{style:L,children:"scripts/scrape.py"})," next to the app. If you downloaded a zip, run the app from inside the project folder."]})]}),af&&(0,b.jsxs)(P,{tone:"bad",children:[(0,b.jsx)("b",{children:"Google Chrome isn’t installed."}),(0,b.jsx)("br",{}),(0,b.jsxs)("span",{style:{color:"#9aa"},children:["The scanner drives your real Chrome. Install it from"," ",(0,b.jsx)("a",{href:"https://www.google.com/chrome/",target:"_blank",rel:"noreferrer",style:{color:"#3498DB"},children:"google.com/chrome"}),", then reload this page."]})]}),e&&ae.note&&(0,b.jsx)(P,{tone:ae.done?void 0:"bad",children:ae.note}),(0,b.jsx)(N,{n:1,done:ae.done,title:"Set up the scanner",body:e?ae.text:"",action:e&&ae.button&&(0,b.jsx)(O,{onClick:()=>ab(ae.button.action),disabled:l||ad,children:ae.button.label})}),(0,b.jsx)(N,{n:2,done:!!ac.signedIn,title:"Sign into LinkedIn",body:ac.signedIn?"Signed in on this machine. If LinkedIn ever asks for a security check, or a scan says you were signed out, open LinkedIn here and finish it by hand.":"Opens a Chrome window. Sign in with your email and password — “Continue with Google” cannot work here, because Google blocks its sign-in inside automated browsers.",action:ac.dependencies&&(0,b.jsx)(O,{onClick:()=>ab("login"),disabled:l||ad,children:ad&&"login"===e.action?"Waiting for you…":"Open LinkedIn"})}),(0,b.jsx)(N,{n:3,done:am>0,title:"1st degree — the people you know",body:"The first scan walks your whole connections list, about a minute and a half for 750 people. After that, Check for new only looks at what has been added since.",action:(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:[(0,b.jsx)(O,{onClick:()=>ab("full"),disabled:!ak,primary:!0,children:ad&&"full"===e.action?"Scanning…":"Scan my whole network"}),(0,b.jsx)(O,{onClick:()=>ab("refresh"),disabled:!ak,children:ad&&"refresh"===e.action?"Checking…":"Check for new"})]})}),(0,b.jsx)(N,{n:4,done:!1,title:"2nd degree — the people they know",body:(0,b.jsxs)(b.Fragment,{children:["This is what fills ",(0,b.jsx)("b",{children:"Degrees"})," and ",(0,b.jsx)("b",{children:"Outlink"}),": it opens each of your connections in turn and reads who ",(0,b.jsx)("i",{children:"they"})," know. Most people hide their connections — those are noted and never tried again.",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),"It is slow on purpose, about two minutes between each person, because this is the part LinkedIn notices. During development a real account was temporarily restricted after roughly ",(0,b.jsx)("b",{children:"19 people in one sitting"}),". Run a batch, leave it for a day, run another — and stop the moment LinkedIn mentions unusual activity. It always picks up where it left off: anyone still without a mapped circle, in the order you choose below — your newest connections first, or highest tier first. Each person’s list is read to the end, saving every 10 pages, and a read that is stopped carries on from the same page next time."]}),action:(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,b.jsx)(r,{cooldown:ai?.cooldown,disabled:l,onLift:()=>ab("lift-cooldown")}),(0,b.jsx)(t,{li:ai,disabled:l,onSetLimits:a=>ab("set-limits",a)}),"score"===s&&(0,b.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Work through"}),["S","A","B","C","D"].map(a=>{let c=p.includes(a);return(0,b.jsx)("button",{onClick:()=>q(b=>b.includes(a)?b.filter(b=>b!==a):[...b,a]),disabled:ad,style:{width:30,height:28,borderRadius:7,fontSize:12,fontWeight:700,cursor:ad?"not-allowed":"pointer",border:F,background:c?"rgba(52,152,219,0.22)":"rgba(255,255,255,0.05)",color:c?"#cfe6f7":"#667"},children:a},a)}),(0,b.jsx)("span",{style:{fontSize:11.5,color:"#667"},children:p.length?"":"pick at least one"})]}),"newest"===s&&(0,b.jsxs)("div",{style:{fontSize:12,color:"#8b9a9a",lineHeight:1.6},children:["Goes by the date you connected, newest first, across every tier. Run"," ",(0,b.jsx)("b",{children:"Check for new"})," first so your latest connections are in the list."]}),(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Start with"}),(0,b.jsxs)("select",{value:s,onChange:a=>v(a.target.value),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:"newest",children:"Newest connections first"}),(0,b.jsx)("option",{value:"score",children:"Highest tier first"})]}),(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a"},children:"Read up to"}),(0,b.jsxs)("select",{value:w,onChange:a=>x(Number(a.target.value)),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:100,children:"every page, to the end of their list"}),(0,b.jsx)("option",{value:50,children:"50 pages each"}),(0,b.jsx)("option",{value:25,children:"25 pages each"}),(0,b.jsx)("option",{value:10,children:"10 pages (~100 people) each"})]})]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"center",fontSize:12.5,color:"#cfd8d8",cursor:ad?"not-allowed":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:y,onChange:a=>z(a.target.checked),disabled:ad}),"Also finish people already mapped, from the page each one stopped at"]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:12.5,color:"#b8c4c4",cursor:ad?"default":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:A,disabled:ad,style:{marginTop:3},onChange:a=>{B(a.target.checked),window.dispatchEvent(new Event("six-degrees:experimental"))}}),(0,b.jsxs)("span",{children:[(0,b.jsx)("b",{style:{color:"#FFD700"},children:"Experimental:"})," all-day pacing. Up to 8 pages in a sitting, then an hour’s rest; searches only from 9:00 to 18:00; never more than 40 searches in a day or 200 in a week, however high your budget; two days’ rest after any check from LinkedIn; at the budget it waits instead of stopping; and it saves every page. It also reads LinkedIn’s own data beside the page text, to fill gaps and measure how the two compare. It keeps running while the app is open."]})]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:12.5,color:"#b8c4c4",cursor:ad?"default":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:C,disabled:ad,style:{marginTop:3},onChange:a=>H(a.target.checked)}),(0,b.jsxs)("span",{children:[(0,b.jsx)("b",{style:{color:"#FFD700"},children:"Hide the Chrome window while scanning."})," Every scan runs with no window popping up; the status bar still shows what it’s doing, and Stop still works. Signing in always opens the window.",(0,b.jsx)("span",{style:{display:"block",marginTop:4,color:"#e0a080"},children:"The risks: a hidden Chrome is easier for LinkedIn to tell apart from a person, so it may make a warning or restriction more likely. If LinkedIn asks you to check it’s you (a code, a puzzle, signing in again) you won’t see it, and the scan will stop instead of waiting for you. Untick this and scan again to see what LinkedIn wants. It changes nothing about pacing or your daily budget."})]})]}),(0,b.jsxs)("div",{style:{fontSize:12,color:"#FFD700",lineHeight:1.6},children:["Every page is a LinkedIn search, so it rests 20 seconds before each one and a minute after every 10, and a long list can take"," ","about ",(0,j.circleScanCost)(w).minutes," minutes a person. LinkedIn shows 100 pages of anyone’s connections at most. Free accounts have a monthly search limit: if LinkedIn says it has been reached, the scan saves what it read and stops, and carries on from that page next time. Keep batches small."]}),(0,b.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,b.jsx)(O,{onClick:()=>ab("auto-bridge",{maxBridges:n,tiers:"score"===s?p:[],order:s,maxPages:w,deeper:y,experimental:A}),disabled:!ak||"score"===s&&!p.length,primary:!0,children:ad&&"auto-bridge"===e.action?"Mapping…":"Map 2nd degree"}),(0,b.jsxs)("select",{value:n,onChange:a=>o(Number(a.target.value)),disabled:ad,style:M,children:[(0,b.jsx)("option",{value:5,children:"5 people"}),(0,b.jsx)("option",{value:10,children:"10 people"}),(0,b.jsx)("option",{value:25,children:"25 people"}),(0,b.jsx)("option",{value:0,children:"everyone — not advised"})]}),(0,b.jsx)(O,{onClick:()=>ab("auto-bridge-retry",{maxBridges:n,tiers:"score"===s?p:[],order:s,maxPages:w,deeper:y}),disabled:!ak||"score"===s&&!p.length,children:"Retry hidden ones"})]}),(0,b.jsx)(u,{paused:e?.paused||[],disabled:!ak,onResume:a=>ab("resume",{id:a.id}),onResumeAll:()=>ab("resume-all",{maxBridges:n})})]})}),ad&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:20,padding:"14px 16px",borderRadius:8,background:"rgba(255,255,255,0.05)",border:F},children:[(0,b.jsx)(R,{}),(0,b.jsxs)("div",{style:{flex:1,fontSize:13.5},children:[(0,b.jsx)("b",{children:G[e.action]||"Working"}),e.progress&&(0,b.jsx)(Q,{p:e.progress,action:e.action}),(0,b.jsx)("div",{style:{color:"#8b9a9a",fontSize:12.5,marginTop:2},children:"Stopping closes the browser cleanly and keeps everything found so far."})]}),(0,b.jsx)(O,{onClick:aa,tone:"bad",children:"Stop"})]}),J&&(0,b.jsx)(P,{tone:"bad",children:J}),e?.log?.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"28px 0 8px",fontSize:12,color:"#788",textTransform:"uppercase",letterSpacing:.6},children:[ad&&(0,b.jsx)(R,{}),ad?"Working":"Last run"]}),(0,b.jsx)("pre",{ref:T,style:{background:"rgba(0,0,0,0.45)",border:F,borderRadius:8,padding:14,maxHeight:280,overflow:"auto",margin:0,fontSize:12.5,lineHeight:1.7,color:"#b9c6c6",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.log.join("\n")})]})]}),(0,b.jsxs)("div",{style:{marginTop:32,paddingTop:20,borderTop:F,fontSize:13.5,color:"#8b9a9a"},children:["Checking for updates has moved to"," ",(0,b.jsx)(f.default,{href:"/settings#updates",style:{color:"#3498DB"},children:"Settings →"})]}),(0,b.jsxs)("p",{style:{color:"#667",fontSize:12.5,lineHeight:1.7,marginTop:32},children:["Automating LinkedIn may go against its User Agreement, and accounts have been restricted for it. This runs locally against your own account, at your own risk. LinkedIn’s own CSV export is the supported route and needs none of this —"," ",(0,b.jsx)(f.default,{href:"/import",style:{color:"#3498DB"},children:"import a CSV instead"}),"."]})]}),(0,b.jsx)("style",{children:`@keyframes spin { to { transform: rotate(360deg) } }
6
6
  @keyframes slide { 0% { transform: translateX(-100%) } 100% { transform: translateX(300%) } }`})]})}function I({pick:a,pages:c,setPages:d,li:e,running:g,s:h,canSearch:i,busy:k,onStart:l,onUnpick:m}){let{person:n,circle:o}=a,p=String(n.name||"").trim().split(/\s+/)[0]||"them",q=(0,j.circleScanCost)(c),r=g&&h?.target?.id===n.id,s=e?.leftToday!=null&&e.leftToday<q.searches;return(0,b.jsxs)("div",{style:{margin:"16px 0",padding:"16px 18px",borderRadius:10,fontSize:13.5,lineHeight:1.6,background:"rgba(0,255,136,0.05)",border:"1px solid rgba(0,255,136,0.3)"},children:[(0,b.jsx)("div",{style:{fontSize:11,fontWeight:700,color:"#00ff88",letterSpacing:.6,textTransform:"uppercase",marginBottom:4},children:"Scan one circle"}),(0,b.jsxs)("div",{style:{fontSize:16,fontWeight:700},children:[n.name," ",(0,b.jsxs)("span",{style:{fontSize:12,color:J[n.tier]||"#888"},children:[n.tier,"-tier"]})]}),n.unlocked_from_name&&(0,b.jsxs)("div",{style:{fontSize:12.5,color:"#9aa"},children:["Was in ",n.unlocked_from_name,"’s circle"]}),r?(0,b.jsxs)("div",{style:{marginTop:10},children:[(0,b.jsxs)("b",{children:["Scanning ",p,"’s circle."]})," It saves every 10 pages, and"," ",(0,b.jsx)(f.default,{href:`/?chain=${encodeURIComponent(n.id)}`,style:{color:"#00ff88"},children:"Bridge Chains shows it filling in →"})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{style:{color:"#b8c4c4",marginTop:10},children:["It costs ",(0,b.jsxs)("b",{children:[q.profileViews," profile view"]})," to find their list, then ",(0,b.jsx)("b",{children:"one LinkedIn search for every page"})," of it: up to ",q.searches," ",1===q.searches?"page":"pages",", about ",q.minutes," minutes.",e?.leftToday!=null&&(0,b.jsxs)(b.Fragment,{children:[" ",(0,b.jsx)("b",{children:e.leftToday})," of your ",e.limits?.daily," searches a day are left",s?"; the scan stops when they run out, and can carry on from that page later":"","."]})]}),"scanned"===o&&(0,b.jsx)("div",{style:{color:"#FFD700",fontSize:12.5,marginTop:6},children:"Their circle is already scanned. This reads their whole list again from page 1; to carry on from where a read stopped, use Resume on their card or in the Paused list below."}),"hidden"===o&&(0,b.jsx)("div",{style:{color:"#FFD700",fontSize:12.5,marginTop:6},children:"Their list was hidden last time it was tried. Trying again costs a profile view."}),(0,b.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginTop:12},children:[(0,b.jsxs)(O,{onClick:l,disabled:!i||k,primary:!0,children:["Scan ",p,"’s circle"]}),(0,b.jsxs)("select",{value:c,onChange:a=>d(Number(a.target.value)),disabled:g,style:M,"aria-label":"How many pages of their list to read",children:[(0,b.jsx)("option",{value:100,children:"every page, to the end of their list"}),(0,b.jsx)("option",{value:50,children:"up to 50 pages"}),(0,b.jsx)("option",{value:25,children:"up to 25 pages"}),(0,b.jsx)("option",{value:10,children:"up to 10 pages (~100 people)"})]}),(0,b.jsx)(O,{onClick:m,children:"Not now"})]}),!i&&(0,b.jsx)("div",{style:{fontSize:12.5,color:"#8b9a9a",marginTop:8},children:g?"Something else is running. One scan at a time: this one can start when it finishes.":e?.cooldown?"Scanning is paused for now (see below).":"The scanner isn’t ready yet: finish the steps below first."})]})]})}let J={S:"#FFD700",A:"#9B59B6",B:"#3498DB",C:"#95A5A6",D:"#BDC3C7"};function K(a,b){let[d,e]=(0,c.useState)(b);return(0,c.useEffect)(()=>{try{let b=localStorage.getItem(a);null!==b&&e(JSON.parse(b))}catch{}},[a]),[d,b=>{e(b);try{localStorage.setItem(a,JSON.stringify(b))}catch{}}]}let L={background:"rgba(255,255,255,0.08)",padding:"1px 5px",borderRadius:4},M={padding:"9px 10px",borderRadius:7,fontSize:13.5,fontWeight:600,background:"rgba(255,255,255,0.08)",color:"#fff",border:F};function N({n:a,done:c,title:d,body:e,action:f}){return(0,b.jsxs)("div",{style:{display:"flex",gap:16,padding:"20px 0",borderBottom:F,alignItems:"flex-start"},children:[(0,b.jsx)("div",{style:{flexShrink:0,width:28,height:28,borderRadius:"50%",display:"grid",placeItems:"center",fontSize:13,fontWeight:700,background:c?"rgba(0,255,136,0.15)":"rgba(255,255,255,0.08)",color:c?"#00ff88":"#889",border:`1px solid ${c?"rgba(0,255,136,0.4)":"rgba(255,255,255,0.14)"}`},children:c?"✓":a}),(0,b.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,b.jsx)("div",{style:{fontSize:15.5,fontWeight:650,marginBottom:4},children:d}),(0,b.jsx)("div",{style:{fontSize:13.5,color:"#8b9a9a",lineHeight:1.6,marginBottom:12*!!f},children:e}),f]})]})}function O({children:a,onClick:c,disabled:d,primary:e,tone:f}){return(0,b.jsx)("button",{onClick:c,disabled:d,style:{padding:"9px 18px",borderRadius:7,fontSize:13.5,fontWeight:650,color:d?"#667":"#fff",background:d?"rgba(255,255,255,0.05)":"bad"===f?"rgba(255,80,80,0.15)":e?"linear-gradient(135deg, #9B59B6, #3498DB)":"rgba(255,255,255,0.08)",border:F,cursor:d?"not-allowed":"pointer"},children:a})}function P({children:a,tone:c}){return(0,b.jsx)("div",{style:{margin:"16px 0",padding:"14px 16px",borderRadius:8,fontSize:13.5,lineHeight:1.6,background:"bad"===c?"rgba(255,80,80,0.08)":"rgba(255,255,255,0.05)",border:`1px solid ${"bad"===c?"rgba(255,80,80,0.3)":"rgba(255,255,255,0.12)"}`},children:a})}function Q({p:a,action:c}){let d;if("saving"===a.kind)return(0,b.jsxs)("div",{style:{margin:"8px 0 6px"},children:[(0,b.jsx)("div",{role:"progressbar","aria-label":"Saving",style:{height:8,borderRadius:4,overflow:"hidden",background:"rgba(255,255,255,0.08)",marginBottom:6},children:(0,b.jsx)("div",{style:{width:"35%",height:"100%",borderRadius:4,background:"linear-gradient(90deg, #9B59B6, #3498DB)",animation:"slide 1.2s ease-in-out infinite"}})}),(0,b.jsx)("div",{style:{fontSize:12.5,color:"#cfe6f7"},children:"Saving to your network and fetching photos — this can take a minute or two."})]});let e=Math.max(0,Math.min(100,Math.round(a.done/a.total*100)));return d="download"===a.kind?`Downloading Python: ${a.done.toFixed(1)} of ${a.total.toFixed(1)} MB \xb7 ${e}%`:"batch"===a.kind?`Person ${a.current} of ${a.total}`:"refresh"===c?`Looked at ${a.done.toLocaleString()} so far — stops once it reaches people already saved`:`${a.done.toLocaleString()} of ${a.total.toLocaleString()} connections \xb7 ${e}%`,(0,b.jsxs)("div",{style:{margin:"8px 0 6px"},children:["refresh"!==c&&(0,b.jsx)("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":a.total,"aria-valuenow":a.done,"aria-label":d,style:{height:8,borderRadius:4,overflow:"hidden",background:"rgba(255,255,255,0.08)",marginBottom:6},children:(0,b.jsx)("div",{style:{width:`${e}%`,height:"100%",borderRadius:4,background:"linear-gradient(90deg, #9B59B6, #3498DB)",transition:"width 0.6s ease"}})}),(0,b.jsx)("div",{style:{fontSize:12.5,color:"#cfe6f7"},children:d})]})}function R(){return(0,b.jsx)("span",{style:{width:11,height:11,borderRadius:"50%",display:"inline-block",border:"2px solid rgba(255,255,255,0.2)",borderTopColor:"#3498DB",animation:"spin 0.8s linear infinite"}})}a.s(["default",0,function(){return(0,b.jsx)(e.default,{children:(0,b.jsx)(c.Suspense,{children:(0,b.jsx)(H,{})})})}],65375)}];
7
7
 
8
8
  //# sourceMappingURL=app_setup_page_1-282zx.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[56395,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(36839),f=a.i(75857),g=a.i(23310),h=a.i(76433),i=a.i(1328),j=a.i(90231),k=a.i(37732),l=a.i(16874),m=a.i(58834);let n={S:"#FFD700",A:"#9B59B6",B:"#3498DB",C:"#95A5A6",D:"#BDC3C7"},o=["S","A","B","C","D"],p=a=>/^https:\/\/(www\.)?linkedin\.com\//.test(String(a||""))?a:null;function q({byKey:a,connected:d,ready:e,keep:f,onKeep:g,switching:i,token:j}){let[k,m]=(0,c.useState)(null),[n,p]=(0,c.useState)(""),[s,t]=(0,c.useState)(null),[u,v]=(0,c.useState)(null),[w,x]=(0,c.useState)(100);(0,c.useEffect)(()=>{let a=!0;return fetch("/api/social/messages").then(a=>a.json()).then(b=>{a&&m(b)}).catch(()=>{a&&m({conversations:[]})}),()=>{a=!1}},[j,f]),(0,c.useEffect)(()=>{let a=n.trim();if(!f||a.length<2)return;let b=!0,c=setTimeout(()=>{fetch(`/api/social/messages?q=${encodeURIComponent(a)}`).then(a=>a.json()).then(c=>{b&&t({q:a,ids:new Set(c.ids||[])})}).catch(()=>{})},250);return()=>{b=!1,clearTimeout(c)}},[n,f,j]);let{rows:y,leftOut:z}=(0,c.useMemo)(()=>{let b=k?.conversations||[],c=b.filter(a=>a.people.some(a=>d.has(a))),e=c.map(b=>{let c=b.people.map(b=>a.get(b)).filter(Boolean),d=o.find(a=>c.some(b=>b.tier===a))||null;return{...b,persons:c,tier:d}});return{rows:(0,h.sortConversations)(e,a=>a.tier),leftOut:b.length-c.length}},[k,a,d]),A=(0,c.useMemo)(()=>{let a=n.trim().toLowerCase();if(!a)return y;let b=f&&s?.q===n.trim()?s.ids:null;return y.filter(c=>c.persons.some(b=>String(b.name||"").toLowerCase().includes(a))||String(c.title||"").toLowerCase().includes(a)||b?.has(c.id))},[y,n,s,f]),B={padding:"12px 14px",borderRadius:8,border:l.LINE,background:"rgba(255,255,255,0.03)",marginTop:10};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{style:B,children:[(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"center",fontSize:13.5,color:"#fff",cursor:i?"default":"pointer"},children:[(0,b.jsx)("input",{type:"checkbox",checked:f,disabled:i,onChange:a=>g(a.target.checked)}),(0,b.jsx)("b",{children:"Keep my messages on this computer"}),(0,b.jsx)("span",{style:{fontSize:11.5,color:f?"#00ff88":"#8b9a9a"},children:f?"on":"off"})]}),(0,b.jsxs)(l.Body,{style:{margin:"6px 0 0",fontSize:12.5},children:["Off unless you turn it on. When it’s on, the messages themselves, including what other people wrote to you, are saved only in the app’s data folder on this computer. They’re never sent anywhere, and they aren’t in “Save a copy of my network”. ",(0,b.jsx)("i",{children:"Forget it"}),", or switching this off, deletes them. With it off, the list below still shows who, when and who wrote last."]})]}),(0,b.jsxs)("div",{style:{...B,padding:0},children:[(0,b.jsxs)("div",{style:{padding:"10px 14px",borderBottom:l.LINE,display:"flex",gap:10,alignItems:"center"},children:[(0,b.jsx)("input",{type:"search",value:n,onChange:a=>{p(a.target.value),x(100)},placeholder:f?"Search by name or by what was said":"Search by name","aria-label":"Search conversations",style:{flex:1,minWidth:0,padding:"6px 10px",borderRadius:6,border:l.LINE,background:"rgba(0,0,0,0.3)",color:"#fff",fontSize:13}}),(0,b.jsxs)("span",{style:{fontSize:12,color:"#8b9a9a",whiteSpace:"nowrap"},children:[A.length.toLocaleString()," ",1===A.length?"conversation":"conversations"]})]}),(!k||!e)&&(0,b.jsx)("div",{style:{padding:12,fontSize:13,color:"#8b9a9a"},children:"Loading…"}),k&&e&&0===y.length&&(0,b.jsx)("div",{style:{padding:12,fontSize:13,color:"#8b9a9a"},children:"No conversations with your connections yet. Choose your export folder above, or sync your messages."}),k&&e&&y.length>0&&0===A.length&&(0,b.jsx)("div",{style:{padding:12,fontSize:13,color:"#8b9a9a"},children:"Nothing matches that."}),e&&A.slice(0,w).map(a=>(0,b.jsx)(r,{c:a,open:u===a.id,onToggle:()=>v(u===a.id?null:a.id),keep:f,token:j},a.id)),e&&A.length>w&&(0,b.jsxs)("button",{onClick:()=>x(w+100),style:{width:"100%",padding:10,background:"none",border:"none",color:"#3498DB",cursor:"pointer",fontSize:13},children:["Show ",Math.min(100,A.length-w).toLocaleString()," more"]})]}),(0,b.jsxs)("div",{style:{fontSize:11.5,color:"#778",marginTop:6},children:["Waiting on you first (they wrote last), then S and A tier, then the most recent. Groups are shown but not counted in warmth.",z>0?` ${z.toLocaleString()} ${1===z?"conversation is":"conversations are"} with people who aren’t your connections and aren’t shown.`:""]})]})}function r({c:a,open:c,onToggle:d,keep:e,token:f}){let g,h=a.group?null:a.persons[0],i=a.persons.map(a=>a.name).filter(Boolean),j=a.group?a.title||(i.length?`${i.slice(0,3).join(", ")}${a.people.length>3?` +${a.people.length-3}`:""}`:`${a.people.length} people`):h?.name||String(a.people[0]||"").replace(/\/+$/,"").split("/").pop(),k=p(a.threadUrl)||(a.group?null:p(h?.profile_url||a.people[0])),l=!a.group&&!0===a.lastFromThem;return(0,b.jsxs)("div",{style:{borderBottom:"1px solid rgba(255,255,255,0.04)"},children:[(0,b.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":c,onClick:d,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),d())},style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:10,padding:"8px 14px",fontSize:13,cursor:"pointer",background:c?"rgba(255,255,255,0.04)":"none"},children:[(0,b.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:n[a.tier]||"#556",flexShrink:0}}),(0,b.jsxs)("span",{style:{flex:"1 1 160px",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[(0,b.jsx)("b",{children:j}),a.group&&(0,b.jsx)("span",{style:{marginLeft:6,fontSize:10.5,padding:"1px 6px",borderRadius:4,background:"rgba(255,255,255,0.08)",color:"#b8c4c4"},children:"Group"}),h?.company?(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:[" · ",h.company]}):null]}),a.unread>0&&(0,b.jsxs)("span",{style:{fontSize:11,padding:"1px 7px",borderRadius:10,background:"#3498DB",color:"#fff"},children:[a.unread," unread"]}),null!=a.lastFromThem&&(0,b.jsx)("span",{style:{color:l?"#ff9f43":"#8b9a9a",fontSize:12,whiteSpace:"nowrap"},children:a.lastFromThem?"They wrote last":"You wrote last"}),(0,b.jsx)("span",{style:{color:"#b8c4c4",fontSize:12,whiteSpace:"nowrap",minWidth:86,textAlign:"right"},children:(g=a.last)?new Date(g).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}):""}),(0,b.jsx)("span",{style:{color:"#8b9a9a",fontSize:12,whiteSpace:"nowrap",minWidth:74,textAlign:"right"},children:null!=a.count?`${a.count.toLocaleString()} ${1===a.count?"message":"messages"}`:""}),k?(0,b.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",onClick:a=>a.stopPropagation(),style:{color:"#3498DB",textDecoration:"none",whiteSpace:"nowrap",fontSize:12},children:"Open on LinkedIn ↗"}):(0,b.jsx)("span",{style:{minWidth:104}})]}),c&&(0,b.jsx)(s,{id:a.id,keep:e,group:a.group,token:f},`${a.id}:${f}:${e}`)]})}function s({id:a,keep:d,group:e,token:f}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(null),k=(0,c.useRef)(null),m=(0,c.useRef)(null);async function n(){let b=k.current,c=await fetch(`/api/social/messages?id=${encodeURIComponent(a)}&before=${g.start}&limit=200`).then(a=>a.json()).catch(()=>null);c&&!c.error&&(m.current=b?b.scrollHeight-b.scrollTop:null,h({...g,start:c.start,messages:[...c.messages,...g.messages]}))}(0,c.useEffect)(()=>{if(!d)return;let b=!0;return fetch(`/api/social/messages?id=${encodeURIComponent(a)}&limit=100`).then(a=>a.json()).then(a=>{b&&(a.error?j(a.error):(m.current="bottom",h(a)))}).catch(()=>{b&&j("It couldn’t be read.")}),()=>{b=!1}},[a,d,f]),(0,c.useLayoutEffect)(()=>{let a=k.current;a&&m.current&&("bottom"===m.current?a.scrollTop=a.scrollHeight:a.scrollTop=a.scrollHeight-m.current,m.current=null)},[g]);let o={padding:"10px 14px 14px 32px",fontSize:12.5,color:"#8b9a9a"};return d?i?(0,b.jsx)("div",{style:{...o,color:"#ff9b9b"},children:i}):g?g.total?(0,b.jsxs)("div",{ref:k,style:{maxHeight:440,overflowY:"auto",padding:"8px 14px 12px",background:"rgba(0,0,0,0.2)"},children:[g.start>0&&(0,b.jsx)("div",{style:{textAlign:"center",margin:"4px 0 10px"},children:(0,b.jsxs)("button",{onClick:n,style:{background:"rgba(255,255,255,0.06)",border:l.LINE,borderRadius:6,color:"#cfe6f7",cursor:"pointer",fontSize:12,padding:"4px 12px"},children:["Show earlier (",g.start.toLocaleString()," more)"]})}),g.messages.map((a,c)=>{let d;return(0,b.jsx)("div",{style:{display:"flex",justifyContent:a.fromMe?"flex-end":"flex-start",margin:"6px 0"},children:(0,b.jsxs)("div",{style:{maxWidth:"72%"},children:[(0,b.jsx)("div",{style:{padding:"7px 11px",borderRadius:12,fontSize:13,lineHeight:1.45,whiteSpace:"pre-wrap",overflowWrap:"anywhere",background:a.fromMe?"rgba(52,152,219,0.35)":"rgba(255,255,255,0.08)",color:"#eef",borderBottomRightRadius:a.fromMe?4:12,borderBottomLeftRadius:a.fromMe?12:4},children:a.text||(0,b.jsx)("i",{style:{color:"#8b9a9a"},children:"(no words: an attachment or a reaction)"})}),(0,b.jsxs)("div",{style:{fontSize:10.5,color:"#778",marginTop:2,textAlign:a.fromMe?"right":"left"},children:[a.fromMe?"You":e?"Someone in the group":"Them"," · ",(d=a.t)?new Date(d).toLocaleString(void 0,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit"}):""]})]})},g.start+c)})]}):(0,b.jsx)("div",{style:o,children:"No messages are kept for this conversation yet. Choose your export folder again, or sync your messages, to bring them in."}):(0,b.jsx)("div",{style:o,children:"Opening…"}):(0,b.jsxs)("div",{style:o,children:["Turn on ",(0,b.jsx)("b",{children:"Keep my messages"})," to read them here."]})}let t={S:"#FFD700",A:"#9B59B6",B:"#3498DB",C:"#95A5A6",D:"#BDC3C7"},u={warm:["Warm","#ff9f43"],cool:["Cool","#3498DB"],dormant:["Dormant","#8899aa"],never:["Never messaged","#556"]},v={"connections.csv":"first name","messages.csv":"conversation id","invitations.csv":"direction","positions.csv":"company name","shares.csv":"date"},w=a=>a?new Date(a).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}):"";async function x(a){let b=[],c={},d=0;for(let e of a)for(let a of e.messages){let f=JSON.stringify(a).length+2;d+f>25e5&&d>0&&(b.push(c),c={},d=0),c[e.id]||(c[e.id]={title:e.title||"",messages:[]},d+=e.id.length+(e.title||"").length+40),c[e.id].messages.push(a),d+=f}b.push(c);for(let a=0;a<b.length;a++){let c=await fetch("/api/social/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({part:a,parts:b.length,threads:b[a]})});if(!c.ok)throw Error((await c.json().catch(()=>({}))).error||"The messages couldn’t be saved.")}}function y(){let{userId:a}=(0,f.useUser)(),[e,n]=(0,c.useState)(void 0),[o,p]=(0,c.useState)(null),[r,s]=(0,c.useState)(!1),[y,z]=(0,c.useState)(null),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(()=>(0,k.scannerNow)()),[E,F]=(0,c.useState)(!1),[G,H]=(0,c.useState)(0),I=(0,c.useRef)(null),J=e?.keepMessages===!0,K=()=>fetch("/api/social").then(a=>a.json()).then(a=>n(a.social||null)).catch(()=>n(null)).finally(()=>H(a=>a+1));(0,c.useEffect)(()=>{K()},[]),(0,c.useEffect)(()=>(0,k.watchScanner)(()=>D((0,k.scannerNow)())),[]),(0,c.useEffect)(()=>{if(!a)return;let b=!0;return(0,g.loadNetwork)(a).then(a=>{b&&p(a)}).catch(()=>{}),()=>{b=!1}},[a]);let L=(0,c.useMemo)(()=>{let a=new Map;for(let b of[...o?.degree1||[],...o?.degree2||[]])a.has((0,j.keyFor)(b))||a.set((0,j.keyFor)(b),b);return a},[o]),M=(0,c.useMemo)(()=>new Set((o?.degree1||[]).map(j.keyFor)),[o]);async function N(a){B(!0),z(null);try{let b={};for(let c of Array.from(a||[])){let a=c.name.toLowerCase();v[a]&&!b[a]&&(b[a]=(0,h.readTable)(await c.text(),v[a]))}if(!Object.keys(b).length)throw Error("That folder doesn’t have LinkedIn’s export files in it (Connections.csv, messages.csv and so on).");let c=b["connections.csv"]||[],d=b["messages.csv"]?(0,h.messageStats)(b["messages.csv"]):{asOf:null,people:new Map},e=b["messages.csv"]?(0,h.buildConversations)(b["messages.csv"],{keepText:J}):null;I.current=b["messages.csv"]||null;let f={};for(let[a,b]of d.people)f[a]={last:b.last,lastFromThem:b.lastFromThem,total:b.total,recent:b.recent};if(r)for(let a of c){let b=a["email address"];if(!b)continue;let c=(0,j.keyFor)({profile_url:a.url});f[c]={...f[c]||{},email:b}}let g=d.asOf||Date.now(),i={asOf:g,people:f,conversations:e?e.conversations.map(h.conversationSummary):[],chapters:(0,h.careerChapters)(b["positions.csv"]||[],c,g),posts:b["shares.csv"]?(0,h.postingEffect)(b["shares.csv"],c):null,invites:b["invitations.csv"]?(0,h.invitationSplit)(b["invitations.csv"]):null,emails:r},k=await fetch("/api/social",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!k.ok)throw Error((await k.json().catch(()=>({}))).error||"It couldn’t be saved.");e&&J&&await x(e.conversations),z({good:!0,text:`Read ${Object.keys(b).length} of LinkedIn’s files: ${d.people.size.toLocaleString()} people you’ve messaged one to one`+(e?`, ${e.conversations.length.toLocaleString()} conversations${J?", their messages kept on this computer":""}.`:".")}),await K()}catch(a){z({good:!1,text:a.message})}finally{B(!1)}}async function O(){z(null);try{let a=await (0,k.runScrape)("messages");z(a?.exitCode===0?{good:!0,text:"Your messages list is read."}:{good:!1,text:"The sync stopped before it finished. The Scan page has the log."}),await K()}catch(a){z({good:!1,text:a.message})}}async function P(a){await fetch("/api/social",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoSync:a})}),K()}async function Q(a){if(a||window.confirm("Delete the messages kept on this computer? The list of conversations stays; the messages themselves are deleted.")){F(!0),z(null);try{if(a||await fetch("/api/social/messages",{method:"DELETE"}),!(await fetch("/api/social",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({keepMessages:a})})).ok)throw Error("The switch couldn’t be saved.");a&&I.current?(await x((0,h.buildConversations)(I.current,{keepText:!0}).conversations),z({good:!0,text:"Your messages are kept on this computer now."})):a?z({good:!0,text:"On. Choose your export folder again, or sync your messages, to bring the messages in."}):z({good:!0,text:"Off. The kept messages are deleted."})}catch(a){z({good:!1,text:a.message})}finally{F(!1),K()}}}async function R(){await fetch("/api/social",{method:"DELETE"}),I.current=null,z({good:!0,text:"Forgotten. Nothing from your export or messages is kept here now, the messages themselves included."}),K()}let{merged:S,asOf:T}=(0,c.useMemo)(()=>(0,i.mergeSocial)(e),[e]),U=(0,c.useMemo)(()=>{let a={warm:0,cool:0,dormant:0,never:0};for(let b of o?.degree1||[])a[(0,h.warmthOf)(S.get((0,j.keyFor)(b)),T)]+=1;return a},[o,S,T]),V=(0,c.useMemo)(()=>{let a={asOf:T,people:new Map([...S].filter(([,a])=>null!=a.lastFromThem))},b=(0,h.repliesWaiting)(a).map(a=>({...a,person:L.get(a.url)}));for(let[a,c]of S)c.unread>0&&!b.some(b=>b.url===a)&&b.push({url:a,unread:c.unread,person:L.get(a)});let c=a=>({S:0,A:1})[a.person?.tier]??2;return b.sort((a,b)=>c(a)-c(b)||(a.days??0)-(b.days??0)).slice(0,15)},[S,T,L]);if(m.IS_DEMO)return(0,b.jsx)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#aaa",padding:40,fontFamily:l.FONT},children:"Not part of the demo."});let W=C?.running,X={padding:"12px 14px",borderRadius:8,border:l.LINE,background:"rgba(255,255,255,0.03)",marginTop:10},Y={fontSize:16,margin:"24px 0 6px"};return(0,b.jsxs)("div",{style:{minHeight:"100vh",background:"#0a0a1a",color:"#fff",fontFamily:l.FONT},children:[(0,b.jsxs)("header",{style:{padding:"16px 24px",borderBottom:l.LINE,display:"flex",alignItems:"center",gap:16},children:[(0,b.jsx)(d.default,{href:"/",style:{color:"#888",textDecoration:"none",fontSize:13,fontWeight:600,padding:"6px 14px",borderRadius:6,background:"rgba(255,255,255,0.06)",border:l.LINE},children:"← Back to Map"}),(0,b.jsxs)("h1",{style:{fontSize:22,fontWeight:700,margin:0,color:"#FFD700"},children:["Social ",(0,b.jsx)("span",{style:{fontSize:12,color:"#8b9a9a",fontWeight:600},children:"experimental"})]})]}),(0,b.jsx)("div",{id:"scan-bar-slot"}),(0,b.jsxs)("main",{style:{maxWidth:980,margin:"0 auto",padding:"8px 24px 64px"},children:[(0,b.jsxs)(l.Body,{style:{marginTop:16},children:["Who you’re warm with, who’s waiting on a reply, and how each chapter of your career built your network, from your own LinkedIn data. Only dates, who wrote last and counts are kept on this computer, and what messages say only if you turn on ",(0,b.jsx)("i",{children:"Keep my messages"})," under Conversations."]}),(0,b.jsx)("h2",{style:Y,children:"Your LinkedIn export"}),(0,b.jsxs)("div",{style:X,children:[(0,b.jsxs)(l.Body,{style:{margin:0},children:["On LinkedIn: ",(0,b.jsx)("i",{children:"Settings → Data privacy → Get a copy of your data"}),", pick the larger archive, and unzip the file it emails you. Then choose that folder here. It’s read in this window; nothing goes to LinkedIn."]}),(0,b.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:12.5,color:"#b8c4c4",marginTop:10},children:[(0,b.jsx)("input",{type:"checkbox",checked:r,onChange:a=>s(a.target.checked),style:{marginTop:3}}),(0,b.jsx)("span",{children:"Also keep email addresses from it, on this computer only, for one-click email."})]}),(0,b.jsxs)("div",{style:{marginTop:10,display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,b.jsxs)("label",{style:{padding:"7px 14px",borderRadius:8,background:"rgba(52,152,219,0.18)",color:"#cfe6f7",cursor:A?"default":"pointer",fontSize:13},children:[A?"Reading…":e?"Choose a newer export":"Choose the export folder",(0,b.jsx)("input",{type:"file",webkitdirectory:"",directory:"",multiple:!0,disabled:A,style:{display:"none"},onChange:a=>N(a.target.files)})]}),e&&(0,b.jsxs)("span",{style:{fontSize:12,color:"#8b9a9a"},children:["From an export up to ",w(e.asOf),e.liveAt?` \xb7 messages synced ${w(Date.parse(e.liveAt))}`:""]}),e&&(0,b.jsx)("button",{onClick:R,style:{background:"none",border:"none",color:"#ff9b9b",cursor:"pointer",fontSize:12},children:"Forget it"})]})]}),(0,b.jsxs)("h2",{style:Y,children:["Live messages sync ",(0,b.jsx)("span",{style:{fontSize:11,color:"#FFD700"},children:"experimental"})]}),(0,b.jsxs)("div",{style:X,children:[(0,b.jsxs)(l.Body,{style:{margin:0},children:["Reads your messages list once, in your own Chrome: who each one-to-one conversation is with, when it was last active, whether it’s unread and who wrote last. It uses no search budget and opens no conversation. The newest message’s words are kept only if ",(0,b.jsx)("i",{children:"Keep my messages"})," is on."]}),(0,b.jsxs)("div",{style:{marginTop:10,display:"flex",gap:12,alignItems:"center",flexWrap:"wrap"},children:[(0,b.jsx)("button",{onClick:O,disabled:W,style:{padding:"7px 14px",borderRadius:8,border:"none",background:W?"#333":"rgba(0,255,136,0.15)",color:W?"#777":"#00ff88",cursor:W?"default":"pointer",fontSize:13},children:W?"The scanner is busy":"Sync messages now"}),(0,b.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"center",fontSize:12.5,color:"#b8c4c4"},children:[(0,b.jsx)("input",{type:"checkbox",checked:e?.autoSync===!0,onChange:a=>P(a.target.checked)}),"Once a day while the app is open (daytime only)"]})]})]}),y&&(0,b.jsx)("div",{style:{marginTop:10,fontSize:13,color:y.good?"#00ff88":"#ff9b9b"},children:y.text}),(0,b.jsx)("h2",{style:Y,children:"Conversations"}),(0,b.jsx)(q,{byKey:L,connected:M,ready:!!o,keep:J,onKeep:Q,switching:E||A,token:G}),e&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{style:Y,children:"Warmth"}),(0,b.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:10},children:Object.entries(u).map(([a,[c,d]])=>(0,b.jsxs)("div",{style:{...X,marginTop:0},children:[(0,b.jsx)("div",{style:{fontSize:22,fontWeight:700,color:d},children:(U[a]||0).toLocaleString()}),(0,b.jsx)("div",{style:{fontSize:12.5,color:"#b8c4c4"},children:c})]},a))}),(0,b.jsx)("div",{style:{fontSize:11.5,color:"#778",marginTop:6},children:"Of your connections. Warm: messaged in the last 30 days, or 3+ messages in 90. Cool: within a year. Dormant: longer ago."}),(0,b.jsx)("h2",{style:Y,children:"Waiting on you"}),(0,b.jsxs)("div",{style:{...X,padding:0},children:[0===V.length&&(0,b.jsx)("div",{style:{padding:12,fontSize:13,color:"#8b9a9a"},children:"No one is waiting on a reply."}),V.map(a=>(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 14px",borderBottom:"1px solid rgba(255,255,255,0.04)",fontSize:13},children:[(0,b.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t[a.person?.tier]||"#556",flexShrink:0}}),(0,b.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,b.jsx)("b",{children:a.person?.name||String(a.url||"").replace(/\/+$/,"").split("/").pop()}),a.person?.company?(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:[" · ",a.person.company]}):null]}),(0,b.jsx)("span",{style:{color:"#b8c4c4"},children:a.unread?`${a.unread} unread`:`wrote ${a.days} days before your export`}),(0,b.jsx)("a",{href:a.url,target:"_blank",rel:"noreferrer",style:{color:"#3498DB",textDecoration:"none"},children:"Open ↗"})]},a.url))]}),e.chapters?.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{style:Y,children:"Career chapters"}),(0,b.jsx)("div",{style:{...X,padding:0},children:e.chapters.map(a=>{let c=(a.people||[]).filter(a=>["warm","cool"].includes((0,h.warmthOf)(S.get((0,j.keyFor)({profile_url:a})),T))).length;return(0,b.jsxs)("div",{style:{display:"flex",gap:10,padding:"8px 14px",borderBottom:"1px solid rgba(255,255,255,0.04)",fontSize:13,alignItems:"baseline"},children:[(0,b.jsxs)("span",{style:{flex:1},children:[(0,b.jsx)("b",{children:a.company})," ",(0,b.jsxs)("span",{style:{color:"#8b9a9a"},children:[a.title," · ",new Date(a.from).getFullYear(),"–",a.to?new Date(a.to).getFullYear():"now"]})]}),(0,b.jsxs)("span",{style:{color:"#b8c4c4"},children:[a.made.toLocaleString()," connections made"]}),(0,b.jsx)("span",{style:{color:"#ff9f43",minWidth:90,textAlign:"right"},children:a.made?`${Math.round(100*c/a.made)}% still in touch`:""})]},`${a.company}-${a.from}`)})})]}),e.posts?.posts?.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{style:Y,children:"Does posting work?"}),(0,b.jsxs)("div",{style:X,children:[(0,b.jsxs)("div",{style:{fontSize:13},children:["In the week after a post you made ",(0,b.jsx)("b",{children:e.posts.afterPosts.toFixed(1)})," new connections on average; a usual week, ",(0,b.jsx)("b",{children:e.posts.usualWeek.toFixed(1)}),"."]}),(0,b.jsx)("div",{style:{fontSize:11.5,color:"#778",marginTop:4},children:"What came after a post, not proof it came from it."}),[...e.posts.posts].sort((a,b)=>b.week-a.week).slice(0,3).map(a=>(0,b.jsxs)("div",{style:{fontSize:12.5,color:"#b8c4c4",marginTop:6},children:[w(a.t),": ",a.week," new connections that week ",a.link?(0,b.jsx)("a",{href:a.link,target:"_blank",rel:"noreferrer",style:{color:"#3498DB",textDecoration:"none"},children:"Post ↗"}):null]},a.t))]})]}),e.invites?.total>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{style:Y,children:"Who reaches out"}),(0,b.jsx)("div",{style:X,children:(0,b.jsxs)("span",{style:{fontSize:13},children:[e.invites.incoming.toLocaleString()," requests came to you and you sent ",e.invites.outgoing.toLocaleString()," ","(",Math.round(100*e.invites.incoming/e.invites.total),"% came to you), as far as your export shows."]})})]})]})]})]})}a.s(["default",0,function(){return(0,b.jsx)(e.default,{children:(0,b.jsx)(y,{})})}],56395)}];
2
+
3
+ //# sourceMappingURL=app_social_page_0h7zxda.js.map