@turnipxenon/pineapple 2.4.71 → 2.4.73

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 (264) hide show
  1. package/.gitignore +5 -1
  2. package/.idea/shelf/Fix_attempt_for_slug/shelved.patch +63 -0
  3. package/.idea/shelf/Fix_attempt_for_slug.xml +4 -0
  4. package/.idea/workspace.xml +106 -89
  5. package/.svelte-kit/__package__/.gitignore +1 -1
  6. package/.svelte-kit/__package__/template/seaweed/ChumBucket.svelte +60 -60
  7. package/.svelte-kit/__package__/template/seaweed/SeaweedTemplate.svelte +36 -158
  8. package/.svelte-kit/__package__/template/seaweed/SeaweedTemplate.svelte.d.ts +6 -0
  9. package/.svelte-kit/__package__/template/seaweed/SeaweedTemplateData.js +3 -9
  10. package/.svelte-kit/__package__/template/seaweed/entries/EntryProps.d.ts +6 -0
  11. package/.svelte-kit/__package__/template/seaweed/entries/WorkExperience.svelte +143 -0
  12. package/.svelte-kit/__package__/template/seaweed/entries/WorkExperience.svelte.d.ts +18 -0
  13. package/.svelte-kit/__package__/template/seaweed/entry_order_config/EntryOrderConfig.svelte +2 -2
  14. package/.svelte-kit/__package__/template/seaweed/entry_order_config/EntryOrderConfig.svelte.d.ts +1 -0
  15. package/.svelte-kit/ambient.d.ts +1 -12
  16. package/.svelte-kit/generated/client/app.js +1 -1
  17. package/.svelte-kit/generated/client-optimized/app.js +47 -0
  18. package/.svelte-kit/generated/client-optimized/matchers.js +1 -0
  19. package/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
  20. package/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
  21. package/.svelte-kit/generated/client-optimized/nodes/10.js +1 -0
  22. package/.svelte-kit/generated/client-optimized/nodes/11.js +1 -0
  23. package/.svelte-kit/generated/client-optimized/nodes/12.js +1 -0
  24. package/.svelte-kit/generated/client-optimized/nodes/13.js +3 -0
  25. package/.svelte-kit/generated/client-optimized/nodes/14.js +3 -0
  26. package/.svelte-kit/generated/client-optimized/nodes/15.js +3 -0
  27. package/.svelte-kit/generated/client-optimized/nodes/16.js +1 -0
  28. package/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
  29. package/.svelte-kit/generated/client-optimized/nodes/3.js +1 -0
  30. package/.svelte-kit/generated/client-optimized/nodes/4.js +1 -0
  31. package/.svelte-kit/generated/client-optimized/nodes/5.js +1 -0
  32. package/.svelte-kit/generated/client-optimized/nodes/6.js +1 -0
  33. package/.svelte-kit/generated/client-optimized/nodes/7.js +1 -0
  34. package/.svelte-kit/generated/client-optimized/nodes/8.js +1 -0
  35. package/.svelte-kit/generated/client-optimized/nodes/9.js +1 -0
  36. package/.svelte-kit/generated/server/internal.js +1 -1
  37. package/.svelte-kit/output/client/.vite/manifest.json +694 -0
  38. package/.svelte-kit/output/client/_app/immutable/assets/0.BZfguPbX.css +10 -0
  39. package/.svelte-kit/output/client/_app/immutable/assets/13.BIMIBpeM.css +1 -0
  40. package/.svelte-kit/output/client/_app/immutable/assets/4.ClTmhFiH.css +1 -0
  41. package/.svelte-kit/output/client/_app/immutable/assets/NavigationComponent.DcXBcmND.css +1 -0
  42. package/.svelte-kit/output/client/_app/immutable/assets/PineappleBaseLayout.BJNkM2lS.css +1 -0
  43. package/.svelte-kit/output/client/_app/immutable/assets/ProgressBar.Cirlo5Z8.css +1 -0
  44. package/.svelte-kit/output/client/_app/immutable/assets/_layout.BgClWDWR.css +10 -0
  45. package/.svelte-kit/output/client/_app/immutable/assets/_page.BIMIBpeM.css +1 -0
  46. package/.svelte-kit/output/client/_app/immutable/assets/_page.ClTmhFiH.css +1 -0
  47. package/.svelte-kit/output/client/_app/immutable/assets/ares_blushing.B6Q0SsBp.webp +0 -0
  48. package/.svelte-kit/output/client/_app/immutable/assets/ares_disappointed.LOpkh7Q7.webp +0 -0
  49. package/.svelte-kit/output/client/_app/immutable/assets/ares_happy.Cz9WhdwO.webp +0 -0
  50. package/.svelte-kit/output/client/_app/immutable/assets/ares_lets_go.BxjJjKUv.webp +0 -0
  51. package/.svelte-kit/output/client/_app/immutable/assets/ares_logo.C_a3ZQAP.webp +0 -0
  52. package/.svelte-kit/output/client/_app/immutable/assets/ares_mad.DofDLDmM.webp +0 -0
  53. package/.svelte-kit/output/client/_app/immutable/assets/ares_neutral.Hp923t8N.webp +0 -0
  54. package/.svelte-kit/output/client/_app/immutable/assets/ares_slightly_mad.DdwOp6J5.webp +0 -0
  55. package/.svelte-kit/output/client/_app/immutable/assets/ares_surprised.BxbNH_w8.webp +0 -0
  56. package/.svelte-kit/output/client/_app/immutable/assets/ares_yay.EM2SNr0e.webp +0 -0
  57. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_ares.DTcFskeK.png +0 -0
  58. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_corn.D22ZwTZ0.png +0 -0
  59. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_pineapple.D28N65_A.png +0 -0
  60. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_reinhard.D22NV0xw.png +0 -0
  61. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_tomato.O9Z7_E07.png +0 -0
  62. package/.svelte-kit/output/client/_app/immutable/assets/bg_tiled_turnip.DMU0uHH4.png +0 -0
  63. package/.svelte-kit/output/client/_app/immutable/assets/footage-chef-wings.dVBm8Uit.gif +0 -0
  64. package/.svelte-kit/output/client/_app/immutable/assets/header-hep-cat.DcyPS3Oy.mp4 +0 -0
  65. package/.svelte-kit/output/client/_app/immutable/assets/header-pengi.DWAOeO4q.mp4 +0 -0
  66. package/.svelte-kit/output/client/_app/immutable/assets/header-soulwork.BQRWmhTu.mp4 +0 -0
  67. package/.svelte-kit/output/client/_app/immutable/assets/placeholder_circle.Ij3bN7bI.png +0 -0
  68. package/.svelte-kit/output/client/_app/immutable/assets/seaweed-showcase.TTVTTC5m.mp4 +0 -0
  69. package/.svelte-kit/output/client/_app/immutable/assets/weaver-footage.sjDEbkrX.gif +0 -0
  70. package/.svelte-kit/output/client/_app/immutable/assets/window-set.IpgsYUna.png +0 -0
  71. package/.svelte-kit/output/client/_app/immutable/chunks/DialogManagerStore.uKBS8wDS.js +7 -0
  72. package/.svelte-kit/output/client/_app/immutable/chunks/NavigationComponent.svelte_svelte_type_style_lang.DfEIDspS.js +33 -0
  73. package/.svelte-kit/output/client/_app/immutable/chunks/PineappleBaseLayout.svelte_svelte_type_style_lang.DYXCZxRe.js +5 -0
  74. package/.svelte-kit/output/client/_app/immutable/chunks/PineappleSlideToggle.Cpnzq8nG.js +1 -0
  75. package/.svelte-kit/output/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.gYVkR-Pp.js +1 -0
  76. package/.svelte-kit/output/client/_app/immutable/chunks/SeaweedTemplate.D8BMpFyR.js +42 -0
  77. package/.svelte-kit/output/client/_app/immutable/chunks/Toast.CfxCQiZJ.js +1 -0
  78. package/.svelte-kit/output/client/_app/immutable/chunks/_page.BCsXwAds.js +8 -0
  79. package/.svelte-kit/output/client/_app/immutable/chunks/_page.CER3LJw4.js +8 -0
  80. package/.svelte-kit/output/client/_app/immutable/chunks/_page.CJqYI1vC.js +7 -0
  81. package/.svelte-kit/output/client/_app/immutable/chunks/_page.CRke_Vt-.js +8 -0
  82. package/.svelte-kit/output/client/_app/immutable/chunks/_page.CdlE3ZqM.js +8 -0
  83. package/.svelte-kit/output/client/_app/immutable/chunks/_page.D8F_fKwN.js +8 -0
  84. package/.svelte-kit/output/client/_app/immutable/chunks/_page.DOjmKWLN.js +8 -0
  85. package/.svelte-kit/output/client/_app/immutable/chunks/_page.UybeXHGE.js +8 -0
  86. package/.svelte-kit/output/client/_app/immutable/chunks/close.BSBWitOq.js +1 -0
  87. package/.svelte-kit/output/client/_app/immutable/chunks/each.SQ7NrLlo.js +1 -0
  88. package/.svelte-kit/output/client/_app/immutable/chunks/entry.B9Zoh-6L.js +3 -0
  89. package/.svelte-kit/output/client/_app/immutable/chunks/index.BID2VU8k.js +4 -0
  90. package/.svelte-kit/output/client/_app/immutable/chunks/index.D_vqlE3X.js +1 -0
  91. package/.svelte-kit/output/client/_app/immutable/chunks/index.DbwYs1Xx.js +1 -0
  92. package/.svelte-kit/output/client/_app/immutable/chunks/index.lAcdadTB.js +1 -0
  93. package/.svelte-kit/output/client/_app/immutable/chunks/index.qztrOHW4.js +6 -0
  94. package/.svelte-kit/output/client/_app/immutable/chunks/preload-helper.BQ24v_F8.js +1 -0
  95. package/.svelte-kit/output/client/_app/immutable/chunks/scheduler.DsUDfRdB.js +1 -0
  96. package/.svelte-kit/output/client/_app/immutable/chunks/spread.CgU5AtxT.js +1 -0
  97. package/.svelte-kit/output/client/_app/immutable/chunks/store.yyGEKEAe.js +1 -0
  98. package/.svelte-kit/output/client/_app/immutable/chunks/stores.BVA7LtvQ.js +1 -0
  99. package/.svelte-kit/output/client/_app/immutable/chunks/stores.CYFggfyT.js +1 -0
  100. package/.svelte-kit/output/client/_app/immutable/chunks/stores.DEMC0xoI.js +1 -0
  101. package/.svelte-kit/output/client/_app/immutable/chunks/stores.UNf3hc21.js +1 -0
  102. package/.svelte-kit/output/client/_app/immutable/chunks/transitions.FXurGCgU.js +1 -0
  103. package/.svelte-kit/output/client/_app/immutable/chunks/util.CpV-3U2s.js +1 -0
  104. package/.svelte-kit/output/client/_app/immutable/entry/app.CsPg_tSG.js +7 -0
  105. package/.svelte-kit/output/client/_app/immutable/entry/start.BK4UymrI.js +1 -0
  106. package/.svelte-kit/output/client/_app/immutable/nodes/0.DpxE_iuA.js +2 -0
  107. package/.svelte-kit/output/client/_app/immutable/nodes/1.CfFtBDAU.js +4 -0
  108. package/.svelte-kit/output/client/_app/immutable/nodes/10.B_ssKps0.js +1 -0
  109. package/.svelte-kit/output/client/_app/immutable/nodes/11.B_ssKps0.js +1 -0
  110. package/.svelte-kit/output/client/_app/immutable/nodes/12.CnXaShb6.js +1 -0
  111. package/.svelte-kit/output/client/_app/immutable/nodes/13.D6l5S0uo.js +61 -0
  112. package/.svelte-kit/output/client/_app/immutable/nodes/14.D-06Eivu.js +1 -0
  113. package/.svelte-kit/output/client/_app/immutable/nodes/15.UZK1S76t.js +1 -0
  114. package/.svelte-kit/output/client/_app/immutable/nodes/16.C52UdDDz.js +1 -0
  115. package/.svelte-kit/output/client/_app/immutable/nodes/2.C_PeLfm6.js +5 -0
  116. package/.svelte-kit/output/client/_app/immutable/nodes/3.DRZNxJIx.js +1 -0
  117. package/.svelte-kit/output/client/_app/immutable/nodes/4.7r5Yp15Y.js +1 -0
  118. package/.svelte-kit/output/client/_app/immutable/nodes/5.B_ssKps0.js +1 -0
  119. package/.svelte-kit/output/client/_app/immutable/nodes/6.B_ssKps0.js +1 -0
  120. package/.svelte-kit/output/client/_app/immutable/nodes/7.B_ssKps0.js +1 -0
  121. package/.svelte-kit/output/client/_app/immutable/nodes/8.B_ssKps0.js +1 -0
  122. package/.svelte-kit/output/client/_app/immutable/nodes/9.B_ssKps0.js +1 -0
  123. package/.svelte-kit/output/client/_app/version.json +1 -0
  124. package/.svelte-kit/output/client/default-card.png +0 -0
  125. package/.svelte-kit/output/client/favicon.png +0 -0
  126. package/.svelte-kit/output/client/robots.txt +5 -0
  127. package/.svelte-kit/output/server/.vite/manifest.json +617 -0
  128. package/.svelte-kit/output/server/_app/immutable/assets/NavigationComponent.DcXBcmND.css +1 -0
  129. package/.svelte-kit/output/server/_app/immutable/assets/PineappleBaseLayout.BJNkM2lS.css +1 -0
  130. package/.svelte-kit/output/server/_app/immutable/assets/ProgressBar.Cirlo5Z8.css +1 -0
  131. package/.svelte-kit/output/server/_app/immutable/assets/_layout.BgClWDWR.css +10 -0
  132. package/.svelte-kit/output/server/_app/immutable/assets/_page.BIMIBpeM.css +1 -0
  133. package/.svelte-kit/output/server/_app/immutable/assets/_page.ClTmhFiH.css +1 -0
  134. package/.svelte-kit/output/server/_app/immutable/assets/ares_blushing.B6Q0SsBp.webp +0 -0
  135. package/.svelte-kit/output/server/_app/immutable/assets/ares_disappointed.LOpkh7Q7.webp +0 -0
  136. package/.svelte-kit/output/server/_app/immutable/assets/ares_happy.Cz9WhdwO.webp +0 -0
  137. package/.svelte-kit/output/server/_app/immutable/assets/ares_lets_go.BxjJjKUv.webp +0 -0
  138. package/.svelte-kit/output/server/_app/immutable/assets/ares_logo.C_a3ZQAP.webp +0 -0
  139. package/.svelte-kit/output/server/_app/immutable/assets/ares_mad.DofDLDmM.webp +0 -0
  140. package/.svelte-kit/output/server/_app/immutable/assets/ares_neutral.Hp923t8N.webp +0 -0
  141. package/.svelte-kit/output/server/_app/immutable/assets/ares_slightly_mad.DdwOp6J5.webp +0 -0
  142. package/.svelte-kit/output/server/_app/immutable/assets/ares_surprised.BxbNH_w8.webp +0 -0
  143. package/.svelte-kit/output/server/_app/immutable/assets/ares_yay.EM2SNr0e.webp +0 -0
  144. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_ares.DTcFskeK.png +0 -0
  145. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_corn.D22ZwTZ0.png +0 -0
  146. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_pineapple.D28N65_A.png +0 -0
  147. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_reinhard.D22NV0xw.png +0 -0
  148. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_tomato.O9Z7_E07.png +0 -0
  149. package/.svelte-kit/output/server/_app/immutable/assets/bg_tiled_turnip.DMU0uHH4.png +0 -0
  150. package/.svelte-kit/output/server/_app/immutable/assets/footage-chef-wings.dVBm8Uit.gif +0 -0
  151. package/.svelte-kit/output/server/_app/immutable/assets/header-hep-cat.DcyPS3Oy.mp4 +0 -0
  152. package/.svelte-kit/output/server/_app/immutable/assets/header-pengi.DWAOeO4q.mp4 +0 -0
  153. package/.svelte-kit/output/server/_app/immutable/assets/header-soulwork.BQRWmhTu.mp4 +0 -0
  154. package/.svelte-kit/output/server/_app/immutable/assets/placeholder_circle.Ij3bN7bI.png +0 -0
  155. package/.svelte-kit/output/server/_app/immutable/assets/seaweed-showcase.TTVTTC5m.mp4 +0 -0
  156. package/.svelte-kit/output/server/_app/immutable/assets/weaver-footage.sjDEbkrX.gif +0 -0
  157. package/.svelte-kit/output/server/_app/immutable/assets/window-set.IpgsYUna.png +0 -0
  158. package/.svelte-kit/output/server/chunks/CreateUrl.js +17 -0
  159. package/.svelte-kit/output/server/chunks/DialogManagerStore.js +1412 -0
  160. package/.svelte-kit/output/server/chunks/NavigationComponent.svelte_svelte_type_style_lang.js +272 -0
  161. package/.svelte-kit/output/server/chunks/PineappleBaseLayout.svelte_svelte_type_style_lang.js +50 -0
  162. package/.svelte-kit/output/server/chunks/PineappleSlideToggle.js +120 -0
  163. package/.svelte-kit/output/server/chunks/ProgressBar.svelte_svelte_type_style_lang.js +60 -0
  164. package/.svelte-kit/output/server/chunks/SeaweedTemplate.js +786 -0
  165. package/.svelte-kit/output/server/chunks/_page.js +4 -0
  166. package/.svelte-kit/output/server/chunks/_page2.js +4 -0
  167. package/.svelte-kit/output/server/chunks/_page3.js +4 -0
  168. package/.svelte-kit/output/server/chunks/_page4.js +4 -0
  169. package/.svelte-kit/output/server/chunks/_page5.js +4 -0
  170. package/.svelte-kit/output/server/chunks/_page6.js +4 -0
  171. package/.svelte-kit/output/server/chunks/_page7.js +4 -0
  172. package/.svelte-kit/output/server/chunks/_page8.js +4 -0
  173. package/.svelte-kit/output/server/chunks/client.js +12 -0
  174. package/.svelte-kit/output/server/chunks/close.js +262 -0
  175. package/.svelte-kit/output/server/chunks/exports.js +200 -0
  176. package/.svelte-kit/output/server/chunks/index.js +52 -0
  177. package/.svelte-kit/output/server/chunks/index2.js +34 -0
  178. package/.svelte-kit/output/server/chunks/index3.js +48 -0
  179. package/.svelte-kit/output/server/chunks/index4.js +12 -0
  180. package/.svelte-kit/output/server/chunks/internal.js +247 -0
  181. package/.svelte-kit/output/server/chunks/prod-ssr.js +6 -0
  182. package/.svelte-kit/output/server/chunks/ssr.js +322 -0
  183. package/.svelte-kit/output/server/chunks/stores.js +5 -0
  184. package/.svelte-kit/output/server/chunks/stores2.js +26 -0
  185. package/.svelte-kit/output/server/chunks/stores3.js +38 -0
  186. package/.svelte-kit/output/server/chunks/stores4.js +79 -0
  187. package/.svelte-kit/output/server/entries/endpoints/api/create-url/_server.ts.js +21 -0
  188. package/.svelte-kit/output/server/entries/endpoints/api/get-latest-blogs/_server.ts.js +11 -0
  189. package/.svelte-kit/output/server/entries/pages/(pineapple)/_layout.svelte.js +291 -0
  190. package/.svelte-kit/output/server/entries/pages/(pineapple)/_page.svelte.js +21 -0
  191. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page1/_page.svelte.js +20 -0
  192. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page2/_page.svelte.js +20 -0
  193. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page3/_page.svelte.js +20 -0
  194. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page3/page5/_page.svelte.js +20 -0
  195. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page3/page6/_page.svelte.js +20 -0
  196. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page3/page7/(test_layout)/page8/_page.svelte.js +20 -0
  197. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page3/page7/_page.svelte.js +20 -0
  198. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(extra-pages)/page4/_page.svelte.js +16 -0
  199. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(pineapple)/_page.svelte.js +333 -0
  200. package/.svelte-kit/output/server/entries/pages/(pineapple)/pineapple/(pineapple)/_page.ts.js +9 -0
  201. package/.svelte-kit/output/server/entries/pages/(seaweed)/_layout.svelte.js +301 -0
  202. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/_page.svelte.js +19 -0
  203. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/_page.ts.js +9 -0
  204. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/actual/_page.svelte.js +23 -0
  205. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/actual/_page.ts.js +9 -0
  206. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/actual/_slug_/_page.server.ts.js +32 -0
  207. package/.svelte-kit/output/server/entries/pages/(seaweed)/portfolio/actual/_slug_/_page.svelte.js +39 -0
  208. package/.svelte-kit/output/server/entries/pages/_error.svelte.js +29 -0
  209. package/.svelte-kit/output/server/entries/pages/_layout.svelte.js +58 -0
  210. package/.svelte-kit/output/server/index.js +2955 -0
  211. package/.svelte-kit/output/server/internal.js +13 -0
  212. package/.svelte-kit/output/server/manifest-full.js +147 -0
  213. package/.svelte-kit/output/server/manifest.js +147 -0
  214. package/.svelte-kit/output/server/nodes/0.js +8 -0
  215. package/.svelte-kit/output/server/nodes/1.js +8 -0
  216. package/.svelte-kit/output/server/nodes/10.js +8 -0
  217. package/.svelte-kit/output/server/nodes/11.js +8 -0
  218. package/.svelte-kit/output/server/nodes/12.js +8 -0
  219. package/.svelte-kit/output/server/nodes/13.js +10 -0
  220. package/.svelte-kit/output/server/nodes/14.js +10 -0
  221. package/.svelte-kit/output/server/nodes/15.js +10 -0
  222. package/.svelte-kit/output/server/nodes/16.js +10 -0
  223. package/.svelte-kit/output/server/nodes/2.js +8 -0
  224. package/.svelte-kit/output/server/nodes/3.js +8 -0
  225. package/.svelte-kit/output/server/nodes/4.js +8 -0
  226. package/.svelte-kit/output/server/nodes/5.js +8 -0
  227. package/.svelte-kit/output/server/nodes/6.js +8 -0
  228. package/.svelte-kit/output/server/nodes/7.js +8 -0
  229. package/.svelte-kit/output/server/nodes/8.js +8 -0
  230. package/.svelte-kit/output/server/nodes/9.js +8 -0
  231. package/.svelte-kit/types/route_meta_data.json +1 -2
  232. package/.svelte-kit/types/src/routes/(seaweed)/portfolio/$types.d.ts +2 -9
  233. package/dist/.gitignore +1 -1
  234. package/dist/template/seaweed/ChumBucket.svelte +60 -60
  235. package/dist/template/seaweed/SeaweedTemplate.svelte +36 -158
  236. package/dist/template/seaweed/SeaweedTemplate.svelte.d.ts +6 -0
  237. package/dist/template/seaweed/SeaweedTemplateData.js +3 -9
  238. package/dist/template/seaweed/entries/EntryProps.d.ts +6 -0
  239. package/dist/template/seaweed/entries/WorkExperience.svelte +143 -0
  240. package/dist/template/seaweed/entries/WorkExperience.svelte.d.ts +18 -0
  241. package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte +2 -2
  242. package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte.d.ts +1 -0
  243. package/package.json +1 -2
  244. package/src/lib/.gitignore +1 -1
  245. package/src/lib/api/GetLatestBlogs.ts +7 -7
  246. package/src/lib/api/index.ts +3 -3
  247. package/src/lib/template/seaweed/ChumBucket.svelte +75 -75
  248. package/src/lib/template/seaweed/SeaweedTemplate.svelte +41 -161
  249. package/src/lib/template/seaweed/SeaweedTemplateData.ts +3 -9
  250. package/src/lib/template/seaweed/entries/EntryProps.ts +7 -0
  251. package/src/lib/template/seaweed/entries/WorkExperience.svelte +146 -0
  252. package/src/lib/template/seaweed/entry_order_config/EntryOrderConfig.svelte +1 -2
  253. package/src/routes/(seaweed)/portfolio/+page.svelte +12 -1
  254. package/src/routes/(seaweed)/portfolio/actual/+page.svelte +9 -0
  255. package/src/routes/(seaweed)/portfolio/actual/[slug]/+page.svelte +8 -0
  256. package/src/routes/api/get-latest-blogs/+server.ts +4 -4
  257. package/.env +0 -5
  258. package/.svelte-kit/__package__/scripts/SetDefaultEnvironment.d.ts +0 -1
  259. package/.svelte-kit/__package__/scripts/SetDefaultEnvironment.js +0 -41
  260. package/.svelte-kit/types/src/routes/(seaweed)/portfolio/proxy+page.server.ts +0 -46
  261. package/dist/scripts/SetDefaultEnvironment.d.ts +0 -1
  262. package/dist/scripts/SetDefaultEnvironment.js +0 -41
  263. package/src/lib/scripts/SetDefaultEnvironment.ts +0 -45
  264. package/src/routes/(seaweed)/portfolio/+page.server.ts +0 -44
@@ -0,0 +1,12 @@
1
+ function backOut(t) {
2
+ const s = 1.70158;
3
+ return --t * t * ((s + 1) * t + s) + 1;
4
+ }
5
+ function cubicOut(t) {
6
+ const f = t - 1;
7
+ return f * f * f + 1;
8
+ }
9
+ export {
10
+ backOut as b,
11
+ cubicOut as c
12
+ };
@@ -0,0 +1,247 @@
1
+ import { c as create_ssr_component, s as setContext, v as validate_component, m as missing_component } from "./ssr.js";
2
+ let base = "";
3
+ let assets = base;
4
+ const initial = { base, assets };
5
+ function override(paths) {
6
+ base = paths.base;
7
+ assets = paths.assets;
8
+ }
9
+ function reset() {
10
+ base = initial.base;
11
+ assets = initial.assets;
12
+ }
13
+ function set_assets(path) {
14
+ assets = initial.assets = path;
15
+ }
16
+ let public_env = {};
17
+ let safe_public_env = {};
18
+ function set_private_env(environment) {
19
+ }
20
+ function set_public_env(environment) {
21
+ public_env = environment;
22
+ }
23
+ function set_safe_public_env(environment) {
24
+ safe_public_env = environment;
25
+ }
26
+ function afterUpdate() {
27
+ }
28
+ let prerendering = false;
29
+ function set_building() {
30
+ }
31
+ function set_prerendering() {
32
+ prerendering = true;
33
+ }
34
+ const Root = create_ssr_component(($$result, $$props, $$bindings, slots) => {
35
+ let { stores } = $$props;
36
+ let { page } = $$props;
37
+ let { constructors } = $$props;
38
+ let { components = [] } = $$props;
39
+ let { form } = $$props;
40
+ let { data_0 = null } = $$props;
41
+ let { data_1 = null } = $$props;
42
+ let { data_2 = null } = $$props;
43
+ {
44
+ setContext("__svelte__", stores);
45
+ }
46
+ afterUpdate(stores.page.notify);
47
+ if ($$props.stores === void 0 && $$bindings.stores && stores !== void 0)
48
+ $$bindings.stores(stores);
49
+ if ($$props.page === void 0 && $$bindings.page && page !== void 0)
50
+ $$bindings.page(page);
51
+ if ($$props.constructors === void 0 && $$bindings.constructors && constructors !== void 0)
52
+ $$bindings.constructors(constructors);
53
+ if ($$props.components === void 0 && $$bindings.components && components !== void 0)
54
+ $$bindings.components(components);
55
+ if ($$props.form === void 0 && $$bindings.form && form !== void 0)
56
+ $$bindings.form(form);
57
+ if ($$props.data_0 === void 0 && $$bindings.data_0 && data_0 !== void 0)
58
+ $$bindings.data_0(data_0);
59
+ if ($$props.data_1 === void 0 && $$bindings.data_1 && data_1 !== void 0)
60
+ $$bindings.data_1(data_1);
61
+ if ($$props.data_2 === void 0 && $$bindings.data_2 && data_2 !== void 0)
62
+ $$bindings.data_2(data_2);
63
+ let $$settled;
64
+ let $$rendered;
65
+ let previous_head = $$result.head;
66
+ do {
67
+ $$settled = true;
68
+ $$result.head = previous_head;
69
+ {
70
+ stores.page.set(page);
71
+ }
72
+ $$rendered = ` ${constructors[1] ? `${validate_component(constructors[0] || missing_component, "svelte:component").$$render(
73
+ $$result,
74
+ { data: data_0, this: components[0] },
75
+ {
76
+ this: ($$value) => {
77
+ components[0] = $$value;
78
+ $$settled = false;
79
+ }
80
+ },
81
+ {
82
+ default: () => {
83
+ return `${constructors[2] ? `${validate_component(constructors[1] || missing_component, "svelte:component").$$render(
84
+ $$result,
85
+ { data: data_1, this: components[1] },
86
+ {
87
+ this: ($$value) => {
88
+ components[1] = $$value;
89
+ $$settled = false;
90
+ }
91
+ },
92
+ {
93
+ default: () => {
94
+ return `${validate_component(constructors[2] || missing_component, "svelte:component").$$render(
95
+ $$result,
96
+ { data: data_2, form, this: components[2] },
97
+ {
98
+ this: ($$value) => {
99
+ components[2] = $$value;
100
+ $$settled = false;
101
+ }
102
+ },
103
+ {}
104
+ )}`;
105
+ }
106
+ }
107
+ )}` : `${validate_component(constructors[1] || missing_component, "svelte:component").$$render(
108
+ $$result,
109
+ { data: data_1, form, this: components[1] },
110
+ {
111
+ this: ($$value) => {
112
+ components[1] = $$value;
113
+ $$settled = false;
114
+ }
115
+ },
116
+ {}
117
+ )}`}`;
118
+ }
119
+ }
120
+ )}` : `${validate_component(constructors[0] || missing_component, "svelte:component").$$render(
121
+ $$result,
122
+ { data: data_0, form, this: components[0] },
123
+ {
124
+ this: ($$value) => {
125
+ components[0] = $$value;
126
+ $$settled = false;
127
+ }
128
+ },
129
+ {}
130
+ )}`} ${``}`;
131
+ } while (!$$settled);
132
+ return $$rendered;
133
+ });
134
+ function set_read_implementation(fn) {
135
+ }
136
+ function set_manifest(_) {
137
+ }
138
+ const options = {
139
+ app_dir: "_app",
140
+ app_template_contains_nonce: false,
141
+ csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
142
+ csrf_check_origin: true,
143
+ embedded: false,
144
+ env_public_prefix: "PUBLIC_",
145
+ env_private_prefix: "",
146
+ hooks: null,
147
+ // added lazily, via `get_hooks`
148
+ preload_strategy: "modulepreload",
149
+ root: Root,
150
+ service_worker: false,
151
+ templates: {
152
+ app: ({ head, body, assets: assets2, nonce, env }) => '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets2 + '/favicon.png" />\n <meta name="viewport" content="width=device-width" />\n ' + head + '\n </head>\n\n <body data-sveltekit-preload-data="hover" data-theme="crimson">\n <div style="display: contents" class="h-full overflow-hidden">' + body + "</div>\n </body>\n</html>\n",
153
+ error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
154
+
155
+ <style>
156
+ body {
157
+ --bg: white;
158
+ --fg: #222;
159
+ --divider: #ccc;
160
+ background: var(--bg);
161
+ color: var(--fg);
162
+ font-family:
163
+ system-ui,
164
+ -apple-system,
165
+ BlinkMacSystemFont,
166
+ 'Segoe UI',
167
+ Roboto,
168
+ Oxygen,
169
+ Ubuntu,
170
+ Cantarell,
171
+ 'Open Sans',
172
+ 'Helvetica Neue',
173
+ sans-serif;
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ height: 100vh;
178
+ margin: 0;
179
+ }
180
+
181
+ .error {
182
+ display: flex;
183
+ align-items: center;
184
+ max-width: 32rem;
185
+ margin: 0 1rem;
186
+ }
187
+
188
+ .status {
189
+ font-weight: 200;
190
+ font-size: 3rem;
191
+ line-height: 1;
192
+ position: relative;
193
+ top: -0.05rem;
194
+ }
195
+
196
+ .message {
197
+ border-left: 1px solid var(--divider);
198
+ padding: 0 0 0 1rem;
199
+ margin: 0 0 0 1rem;
200
+ min-height: 2.5rem;
201
+ display: flex;
202
+ align-items: center;
203
+ }
204
+
205
+ .message h1 {
206
+ font-weight: 400;
207
+ font-size: 1em;
208
+ margin: 0;
209
+ }
210
+
211
+ @media (prefers-color-scheme: dark) {
212
+ body {
213
+ --bg: #222;
214
+ --fg: #ddd;
215
+ --divider: #666;
216
+ }
217
+ }
218
+ </style>
219
+ </head>
220
+ <body>
221
+ <div class="error">
222
+ <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
223
+ },
224
+ version_hash: "1vl8mxm"
225
+ };
226
+ async function get_hooks() {
227
+ return {};
228
+ }
229
+ export {
230
+ assets as a,
231
+ base as b,
232
+ options as c,
233
+ set_private_env as d,
234
+ prerendering as e,
235
+ set_public_env as f,
236
+ get_hooks as g,
237
+ set_safe_public_env as h,
238
+ set_assets as i,
239
+ set_building as j,
240
+ set_manifest as k,
241
+ set_prerendering as l,
242
+ set_read_implementation as m,
243
+ override as o,
244
+ public_env as p,
245
+ reset as r,
246
+ safe_public_env as s
247
+ };
@@ -0,0 +1,6 @@
1
+ const BROWSER = false;
2
+ const DEV = false;
3
+ export {
4
+ BROWSER as B,
5
+ DEV as D
6
+ };
@@ -0,0 +1,322 @@
1
+ function noop() {
2
+ }
3
+ const identity = (x) => x;
4
+ function assign(tar, src) {
5
+ for (const k in src)
6
+ tar[k] = src[k];
7
+ return (
8
+ /** @type {T & S} */
9
+ tar
10
+ );
11
+ }
12
+ function run(fn) {
13
+ return fn();
14
+ }
15
+ function blank_object() {
16
+ return /* @__PURE__ */ Object.create(null);
17
+ }
18
+ function run_all(fns) {
19
+ fns.forEach(run);
20
+ }
21
+ function safe_not_equal(a, b) {
22
+ return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
23
+ }
24
+ function subscribe(store, ...callbacks) {
25
+ if (store == null) {
26
+ for (const callback of callbacks) {
27
+ callback(void 0);
28
+ }
29
+ return noop;
30
+ }
31
+ const unsub = store.subscribe(...callbacks);
32
+ return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
33
+ }
34
+ function get_store_value(store) {
35
+ let value;
36
+ subscribe(store, (_) => value = _)();
37
+ return value;
38
+ }
39
+ function compute_rest_props(props, keys) {
40
+ const rest = {};
41
+ keys = new Set(keys);
42
+ for (const k in props)
43
+ if (!keys.has(k) && k[0] !== "$")
44
+ rest[k] = props[k];
45
+ return rest;
46
+ }
47
+ function compute_slots(slots) {
48
+ const result = {};
49
+ for (const key in slots) {
50
+ result[key] = true;
51
+ }
52
+ return result;
53
+ }
54
+ function null_to_empty(value) {
55
+ return value == null ? "" : value;
56
+ }
57
+ function split_css_unit(value) {
58
+ const split = typeof value === "string" && value.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
59
+ return split ? [parseFloat(split[1]), split[2] || "px"] : [
60
+ /** @type {number} */
61
+ value,
62
+ "px"
63
+ ];
64
+ }
65
+ function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
66
+ return new CustomEvent(type, { detail, bubbles, cancelable });
67
+ }
68
+ let current_component;
69
+ function set_current_component(component) {
70
+ current_component = component;
71
+ }
72
+ function get_current_component() {
73
+ if (!current_component)
74
+ throw new Error("Function called outside component initialization");
75
+ return current_component;
76
+ }
77
+ function onDestroy(fn) {
78
+ get_current_component().$$.on_destroy.push(fn);
79
+ }
80
+ function createEventDispatcher() {
81
+ const component = get_current_component();
82
+ return (type, detail, { cancelable = false } = {}) => {
83
+ const callbacks = component.$$.callbacks[type];
84
+ if (callbacks) {
85
+ const event = custom_event(
86
+ /** @type {string} */
87
+ type,
88
+ detail,
89
+ { cancelable }
90
+ );
91
+ callbacks.slice().forEach((fn) => {
92
+ fn.call(component, event);
93
+ });
94
+ return !event.defaultPrevented;
95
+ }
96
+ return true;
97
+ };
98
+ }
99
+ function setContext(key, context) {
100
+ get_current_component().$$.context.set(key, context);
101
+ return context;
102
+ }
103
+ function getContext(key) {
104
+ return get_current_component().$$.context.get(key);
105
+ }
106
+ function ensure_array_like(array_like_or_iterator) {
107
+ return array_like_or_iterator?.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
108
+ }
109
+ const _boolean_attributes = (
110
+ /** @type {const} */
111
+ [
112
+ "allowfullscreen",
113
+ "allowpaymentrequest",
114
+ "async",
115
+ "autofocus",
116
+ "autoplay",
117
+ "checked",
118
+ "controls",
119
+ "default",
120
+ "defer",
121
+ "disabled",
122
+ "formnovalidate",
123
+ "hidden",
124
+ "inert",
125
+ "ismap",
126
+ "loop",
127
+ "multiple",
128
+ "muted",
129
+ "nomodule",
130
+ "novalidate",
131
+ "open",
132
+ "playsinline",
133
+ "readonly",
134
+ "required",
135
+ "reversed",
136
+ "selected"
137
+ ]
138
+ );
139
+ const boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]);
140
+ const invalid_attribute_name_character = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
141
+ function spread(args, attrs_to_add) {
142
+ const attributes = Object.assign({}, ...args);
143
+ if (attrs_to_add) {
144
+ const classes_to_add = attrs_to_add.classes;
145
+ const styles_to_add = attrs_to_add.styles;
146
+ if (classes_to_add) {
147
+ if (attributes.class == null) {
148
+ attributes.class = classes_to_add;
149
+ } else {
150
+ attributes.class += " " + classes_to_add;
151
+ }
152
+ }
153
+ if (styles_to_add) {
154
+ if (attributes.style == null) {
155
+ attributes.style = style_object_to_string(styles_to_add);
156
+ } else {
157
+ attributes.style = style_object_to_string(
158
+ merge_ssr_styles(attributes.style, styles_to_add)
159
+ );
160
+ }
161
+ }
162
+ }
163
+ let str = "";
164
+ Object.keys(attributes).forEach((name) => {
165
+ if (invalid_attribute_name_character.test(name))
166
+ return;
167
+ const value = attributes[name];
168
+ if (value === true)
169
+ str += " " + name;
170
+ else if (boolean_attributes.has(name.toLowerCase())) {
171
+ if (value)
172
+ str += " " + name;
173
+ } else if (value != null) {
174
+ str += ` ${name}="${value}"`;
175
+ }
176
+ });
177
+ return str;
178
+ }
179
+ function merge_ssr_styles(style_attribute, style_directive) {
180
+ const style_object = {};
181
+ for (const individual_style of style_attribute.split(";")) {
182
+ const colon_index = individual_style.indexOf(":");
183
+ const name = individual_style.slice(0, colon_index).trim();
184
+ const value = individual_style.slice(colon_index + 1).trim();
185
+ if (!name)
186
+ continue;
187
+ style_object[name] = value;
188
+ }
189
+ for (const name in style_directive) {
190
+ const value = style_directive[name];
191
+ if (value) {
192
+ style_object[name] = value;
193
+ } else {
194
+ delete style_object[name];
195
+ }
196
+ }
197
+ return style_object;
198
+ }
199
+ const ATTR_REGEX = /[&"]/g;
200
+ const CONTENT_REGEX = /[&<]/g;
201
+ function escape(value, is_attr = false) {
202
+ const str = String(value);
203
+ const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
204
+ pattern.lastIndex = 0;
205
+ let escaped = "";
206
+ let last = 0;
207
+ while (pattern.test(str)) {
208
+ const i = pattern.lastIndex - 1;
209
+ const ch = str[i];
210
+ escaped += str.substring(last, i) + (ch === "&" ? "&amp;" : ch === '"' ? "&quot;" : "&lt;");
211
+ last = i + 1;
212
+ }
213
+ return escaped + str.substring(last);
214
+ }
215
+ function escape_attribute_value(value) {
216
+ const should_escape = typeof value === "string" || value && typeof value === "object";
217
+ return should_escape ? escape(value, true) : value;
218
+ }
219
+ function escape_object(obj) {
220
+ const result = {};
221
+ for (const key in obj) {
222
+ result[key] = escape_attribute_value(obj[key]);
223
+ }
224
+ return result;
225
+ }
226
+ function each(items, fn) {
227
+ items = ensure_array_like(items);
228
+ let str = "";
229
+ for (let i = 0; i < items.length; i += 1) {
230
+ str += fn(items[i], i);
231
+ }
232
+ return str;
233
+ }
234
+ const missing_component = {
235
+ $$render: () => ""
236
+ };
237
+ function validate_component(component, name) {
238
+ if (!component || !component.$$render) {
239
+ if (name === "svelte:component")
240
+ name += " this={...}";
241
+ throw new Error(
242
+ `<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`
243
+ );
244
+ }
245
+ return component;
246
+ }
247
+ let on_destroy;
248
+ function create_ssr_component(fn) {
249
+ function $$render(result, props, bindings, slots, context) {
250
+ const parent_component = current_component;
251
+ const $$ = {
252
+ on_destroy,
253
+ context: new Map(context || (parent_component ? parent_component.$$.context : [])),
254
+ // these will be immediately discarded
255
+ on_mount: [],
256
+ before_update: [],
257
+ after_update: [],
258
+ callbacks: blank_object()
259
+ };
260
+ set_current_component({ $$ });
261
+ const html = fn(result, props, bindings, slots);
262
+ set_current_component(parent_component);
263
+ return html;
264
+ }
265
+ return {
266
+ render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => {
267
+ on_destroy = [];
268
+ const result = { title: "", head: "", css: /* @__PURE__ */ new Set() };
269
+ const html = $$render(result, props, {}, $$slots, context);
270
+ run_all(on_destroy);
271
+ return {
272
+ html,
273
+ css: {
274
+ code: Array.from(result.css).map((css) => css.code).join("\n"),
275
+ map: null
276
+ // TODO
277
+ },
278
+ head: result.title + result.head
279
+ };
280
+ },
281
+ $$render
282
+ };
283
+ }
284
+ function add_attribute(name, value, boolean) {
285
+ if (value == null || boolean && !value)
286
+ return "";
287
+ const assignment = boolean && value === true ? "" : `="${escape(value, true)}"`;
288
+ return ` ${name}${assignment}`;
289
+ }
290
+ function style_object_to_string(style_object) {
291
+ return Object.keys(style_object).filter((key) => style_object[key]).map((key) => `${key}: ${escape_attribute_value(style_object[key])};`).join(" ");
292
+ }
293
+ function add_styles(style_object) {
294
+ const styles = style_object_to_string(style_object);
295
+ return styles ? ` style="${styles}"` : "";
296
+ }
297
+ export {
298
+ add_attribute as a,
299
+ subscribe as b,
300
+ create_ssr_component as c,
301
+ each as d,
302
+ escape as e,
303
+ createEventDispatcher as f,
304
+ spread as g,
305
+ escape_object as h,
306
+ getContext as i,
307
+ compute_slots as j,
308
+ add_styles as k,
309
+ split_css_unit as l,
310
+ missing_component as m,
311
+ null_to_empty as n,
312
+ onDestroy as o,
313
+ compute_rest_props as p,
314
+ escape_attribute_value as q,
315
+ noop as r,
316
+ setContext as s,
317
+ assign as t,
318
+ identity as u,
319
+ validate_component as v,
320
+ get_store_value as w,
321
+ safe_not_equal as x
322
+ };
@@ -0,0 +1,5 @@
1
+ import { w as writable } from "./index.js";
2
+ const storeHighlightJs = writable(void 0);
3
+ export {
4
+ storeHighlightJs as s
5
+ };
@@ -0,0 +1,26 @@
1
+ import { i as getContext } from "./ssr.js";
2
+ import "./client.js";
3
+ const getStores = () => {
4
+ const stores = getContext("__svelte__");
5
+ return {
6
+ /** @type {typeof page} */
7
+ page: {
8
+ subscribe: stores.page.subscribe
9
+ },
10
+ /** @type {typeof navigating} */
11
+ navigating: {
12
+ subscribe: stores.navigating.subscribe
13
+ },
14
+ /** @type {typeof updated} */
15
+ updated: stores.updated
16
+ };
17
+ };
18
+ const page = {
19
+ subscribe(fn) {
20
+ const store = getStores().page;
21
+ return store.subscribe(fn);
22
+ }
23
+ };
24
+ export {
25
+ page as p
26
+ };
@@ -0,0 +1,38 @@
1
+ import { w as writable } from "./index.js";
2
+ import { i as getContext, s as setContext } from "./ssr.js";
3
+ const MODAL_STORE_KEY = "modalStore";
4
+ function getModalStore() {
5
+ const modalStore = getContext(MODAL_STORE_KEY);
6
+ if (!modalStore)
7
+ throw new Error("modalStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");
8
+ return modalStore;
9
+ }
10
+ function initializeModalStore() {
11
+ const modalStore = modalService();
12
+ return setContext(MODAL_STORE_KEY, modalStore);
13
+ }
14
+ function modalService() {
15
+ const { subscribe, set, update } = writable([]);
16
+ return {
17
+ subscribe,
18
+ set,
19
+ update,
20
+ /** Append to end of queue. */
21
+ trigger: (modal) => update((mStore) => {
22
+ mStore.push(modal);
23
+ return mStore;
24
+ }),
25
+ /** Remove first item in queue. */
26
+ close: () => update((mStore) => {
27
+ if (mStore.length > 0)
28
+ mStore.shift();
29
+ return mStore;
30
+ }),
31
+ /** Remove all items from queue. */
32
+ clear: () => set([])
33
+ };
34
+ }
35
+ export {
36
+ getModalStore as g,
37
+ initializeModalStore as i
38
+ };