@salla.sa/twilight-components 1.6.15-alpha.0 → 1.6.15-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1097) hide show
  1. package/dist/cjs/_commonjsHelpers-691dd63b.js +28 -0
  2. package/dist/cjs/css-shim-c9fa4209.js +9 -0
  3. package/dist/cjs/dom-92c2a073.js +78 -0
  4. package/dist/{twilight/index-2bf908a1.js → cjs/index-cac2fd59.js} +243 -1307
  5. package/dist/cjs/index-db09186f.js +7516 -0
  6. package/dist/cjs/index.cjs.js +5 -0
  7. package/dist/cjs/loader.cjs.js +40 -0
  8. package/dist/cjs/salla-add-product-button.cjs.entry.js +104 -0
  9. package/dist/cjs/salla-button_27.cjs.entry.js +27879 -0
  10. package/dist/cjs/salla-conditional-fields.cjs.entry.js +87 -0
  11. package/dist/cjs/salla-installment.cjs.entry.js +135 -0
  12. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
  13. package/dist/cjs/salla-scopes.cjs.entry.js +166 -0
  14. package/dist/cjs/salla-select.cjs.entry.js +159 -0
  15. package/dist/cjs/search-b487cc49.js +13 -0
  16. package/dist/cjs/twilight.cjs.js +81 -0
  17. package/dist/collection/Helpers/Helper.js +24 -0
  18. package/dist/collection/assets/svg/ER-square.svg +5 -0
  19. package/dist/collection/assets/svg/HD-square.svg +5 -0
  20. package/dist/collection/assets/svg/HD.svg +5 -0
  21. package/dist/collection/assets/svg/activity.svg +5 -0
  22. package/dist/collection/assets/svg/add-circle.svg +5 -0
  23. package/dist/collection/assets/svg/add-square.svg +5 -0
  24. package/dist/collection/assets/svg/add-to-cart.svg +5 -0
  25. package/dist/collection/assets/svg/add.svg +5 -0
  26. package/dist/collection/assets/svg/add_col_after.svg +5 -0
  27. package/dist/collection/assets/svg/add_col_before.svg +5 -0
  28. package/dist/collection/assets/svg/add_row_after.svg +5 -0
  29. package/dist/collection/assets/svg/add_row_before.svg +5 -0
  30. package/dist/collection/assets/svg/address-book.svg +5 -0
  31. package/dist/collection/assets/svg/airplane-mode-off.svg +5 -0
  32. package/dist/collection/assets/svg/airplane-mode.svg +5 -0
  33. package/dist/collection/assets/svg/airplane.svg +5 -0
  34. package/dist/collection/assets/svg/airplay-audio.svg +5 -0
  35. package/dist/collection/assets/svg/airplay-screen.svg +5 -0
  36. package/dist/collection/assets/svg/alarm-add.svg +5 -0
  37. package/dist/collection/assets/svg/alarm-cancel.svg +5 -0
  38. package/dist/collection/assets/svg/alarm-check.svg +5 -0
  39. package/dist/collection/assets/svg/alarm-snooze.svg +5 -0
  40. package/dist/collection/assets/svg/alarm.svg +5 -0
  41. package/dist/collection/assets/svg/album-audio.svg +5 -0
  42. package/dist/collection/assets/svg/album-music.svg +5 -0
  43. package/dist/collection/assets/svg/album-photo.svg +5 -0
  44. package/dist/collection/assets/svg/album-portrait.svg +5 -0
  45. package/dist/collection/assets/svg/album-time.svg +5 -0
  46. package/dist/collection/assets/svg/alert-engine.svg +5 -0
  47. package/dist/collection/assets/svg/alert.svg +5 -0
  48. package/dist/collection/assets/svg/align-center.svg +5 -0
  49. package/dist/collection/assets/svg/align-justify.svg +5 -0
  50. package/dist/collection/assets/svg/align-left.svg +5 -0
  51. package/dist/collection/assets/svg/align-right.svg +5 -0
  52. package/dist/collection/assets/svg/ambulance.svg +5 -0
  53. package/dist/collection/assets/svg/anchor.svg +5 -0
  54. package/dist/collection/assets/svg/android-phone.svg +5 -0
  55. package/dist/collection/assets/svg/android-tablet.svg +5 -0
  56. package/dist/collection/assets/svg/android.svg +5 -0
  57. package/dist/collection/assets/svg/apple.svg +5 -0
  58. package/dist/collection/assets/svg/archive-download.svg +5 -0
  59. package/dist/collection/assets/svg/archive-upload.svg +5 -0
  60. package/dist/collection/assets/svg/archive.svg +5 -0
  61. package/dist/collection/assets/svg/arrow-diverge.svg +5 -0
  62. package/dist/collection/assets/svg/arrow-down-left.svg +5 -0
  63. package/dist/collection/assets/svg/arrow-down-right.svg +5 -0
  64. package/dist/collection/assets/svg/arrow-down.svg +5 -0
  65. package/dist/collection/assets/svg/arrow-expand.svg +5 -0
  66. package/dist/{twilight/arrow-left-334d96d9.js → collection/assets/svg/arrow-left.svg} +1 -7
  67. package/dist/collection/assets/svg/arrow-merge.svg +5 -0
  68. package/dist/collection/assets/svg/arrow-right.svg +5 -0
  69. package/dist/collection/assets/svg/arrow-shrink.svg +5 -0
  70. package/dist/collection/assets/svg/arrow-swap.svg +5 -0
  71. package/dist/collection/assets/svg/arrow-up-left.svg +5 -0
  72. package/dist/collection/assets/svg/arrow-up-right.svg +5 -0
  73. package/dist/collection/assets/svg/arrow-up.svg +5 -0
  74. package/dist/collection/assets/svg/art-palette.svg +5 -0
  75. package/dist/collection/assets/svg/at.svg +5 -0
  76. package/dist/collection/assets/svg/atm.svg +5 -0
  77. package/dist/collection/assets/svg/audio-wave.svg +5 -0
  78. package/dist/collection/assets/svg/award-academy.svg +5 -0
  79. package/dist/collection/assets/svg/award-ribbon.svg +5 -0
  80. package/dist/collection/assets/svg/back.svg +5 -0
  81. package/dist/collection/assets/svg/badge-ID.svg +5 -0
  82. package/dist/collection/assets/svg/badge-alt.svg +5 -0
  83. package/dist/collection/assets/svg/badge.svg +5 -0
  84. package/dist/collection/assets/svg/bag-bitcoin.svg +5 -0
  85. package/dist/collection/assets/svg/bag-dollar.svg +5 -0
  86. package/dist/collection/assets/svg/bag-money.svg +5 -0
  87. package/dist/collection/assets/svg/bank-building.svg +5 -0
  88. package/dist/collection/assets/svg/bank.svg +5 -0
  89. package/dist/collection/assets/svg/banknote-bitcoin.svg +5 -0
  90. package/dist/collection/assets/svg/banknote-dollar.svg +5 -0
  91. package/dist/collection/assets/svg/banknote-off.svg +5 -0
  92. package/dist/collection/assets/svg/banknote.svg +5 -0
  93. package/dist/collection/assets/svg/barcode-scan.svg +5 -0
  94. package/dist/collection/assets/svg/barcode.svg +5 -0
  95. package/dist/collection/assets/svg/basket.svg +5 -0
  96. package/dist/collection/assets/svg/battery-alert.svg +5 -0
  97. package/dist/collection/assets/svg/battery-charge.svg +5 -0
  98. package/dist/collection/assets/svg/battery-empty.svg +5 -0
  99. package/dist/collection/assets/svg/battery-full.svg +5 -0
  100. package/dist/collection/assets/svg/battery-low.svg +5 -0
  101. package/dist/collection/assets/svg/battery-off.svg +5 -0
  102. package/dist/collection/assets/svg/beard.svg +5 -0
  103. package/dist/collection/assets/svg/bed-single.svg +5 -0
  104. package/dist/collection/assets/svg/bell-add.svg +5 -0
  105. package/dist/collection/assets/svg/bell-off.svg +5 -0
  106. package/dist/collection/assets/svg/bell-ring.svg +5 -0
  107. package/dist/collection/assets/svg/bell-snooze.svg +5 -0
  108. package/dist/collection/assets/svg/bell-time.svg +5 -0
  109. package/dist/collection/assets/svg/bell.svg +5 -0
  110. package/dist/collection/assets/svg/bells.svg +5 -0
  111. package/dist/collection/assets/svg/binary.svg +5 -0
  112. package/dist/collection/assets/svg/binoculars.svg +5 -0
  113. package/dist/collection/assets/svg/birdhouse.svg +5 -0
  114. package/dist/collection/assets/svg/bitcoin.svg +5 -0
  115. package/dist/collection/assets/svg/block.svg +5 -0
  116. package/dist/collection/assets/svg/bluetooth.svg +5 -0
  117. package/dist/collection/assets/svg/boat.svg +5 -0
  118. package/dist/collection/assets/svg/bold.svg +5 -0
  119. package/dist/collection/assets/svg/book-open.svg +5 -0
  120. package/dist/collection/assets/svg/book-person.svg +5 -0
  121. package/dist/collection/assets/svg/book.svg +5 -0
  122. package/dist/collection/assets/svg/bookmark-add.svg +5 -0
  123. package/dist/collection/assets/svg/bookmark.svg +5 -0
  124. package/dist/collection/assets/svg/books-alt.svg +5 -0
  125. package/dist/collection/assets/svg/books-pencil.svg +5 -0
  126. package/dist/collection/assets/svg/books.svg +5 -0
  127. package/dist/collection/assets/svg/border-all.svg +5 -0
  128. package/dist/collection/assets/svg/box-bankers.svg +5 -0
  129. package/dist/collection/assets/svg/box.svg +5 -0
  130. package/dist/collection/assets/svg/braille-hand.svg +5 -0
  131. package/dist/collection/assets/svg/braille.svg +5 -0
  132. package/dist/collection/assets/svg/brain.svg +5 -0
  133. package/dist/collection/assets/svg/branch.svg +5 -0
  134. package/dist/collection/assets/svg/briefcase-health.svg +5 -0
  135. package/dist/collection/assets/svg/briefcase-metal.svg +5 -0
  136. package/dist/collection/assets/svg/briefcase.svg +5 -0
  137. package/dist/collection/assets/svg/brightness-low.svg +5 -0
  138. package/dist/collection/assets/svg/browser-alt.svg +5 -0
  139. package/dist/collection/assets/svg/browser-code-alt.svg +5 -0
  140. package/dist/collection/assets/svg/browser-code.svg +5 -0
  141. package/dist/collection/assets/svg/brush.svg +5 -0
  142. package/dist/collection/assets/svg/bucket-drip.svg +5 -0
  143. package/dist/collection/assets/svg/bullhorn.svg +5 -0
  144. package/dist/collection/assets/svg/bus-alt.svg +5 -0
  145. package/dist/collection/assets/svg/bus.svg +5 -0
  146. package/dist/collection/assets/svg/cake.svg +5 -0
  147. package/dist/collection/assets/svg/calculator.svg +5 -0
  148. package/dist/collection/assets/svg/calculator2.svg +5 -0
  149. package/dist/collection/assets/svg/calendar-15.svg +5 -0
  150. package/dist/collection/assets/svg/calendar-add.svg +5 -0
  151. package/dist/collection/assets/svg/calendar-alt.svg +5 -0
  152. package/dist/collection/assets/svg/calendar-cancel.svg +5 -0
  153. package/dist/collection/assets/svg/calendar-check.svg +5 -0
  154. package/dist/collection/assets/svg/calendar-date.svg +5 -0
  155. package/dist/collection/assets/svg/calendar-dates.svg +5 -0
  156. package/dist/collection/assets/svg/calendar-download.svg +5 -0
  157. package/dist/collection/assets/svg/calendar-favorite.svg +5 -0
  158. package/dist/collection/assets/svg/calendar-heart.svg +5 -0
  159. package/dist/collection/assets/svg/calendar-next.svg +5 -0
  160. package/dist/collection/assets/svg/calendar-previous.svg +5 -0
  161. package/dist/collection/assets/svg/calendar-snooze.svg +5 -0
  162. package/dist/collection/assets/svg/calendar-time.svg +5 -0
  163. package/dist/collection/assets/svg/calendar-upload.svg +5 -0
  164. package/dist/collection/assets/svg/calendar-user.svg +5 -0
  165. package/dist/collection/assets/svg/calendar.svg +5 -0
  166. package/dist/collection/assets/svg/camcorder.svg +5 -0
  167. package/dist/collection/assets/svg/camera-add.svg +5 -0
  168. package/dist/collection/assets/svg/camera-movie.svg +5 -0
  169. package/dist/collection/assets/svg/camera-off.svg +5 -0
  170. package/dist/collection/assets/svg/camera.svg +5 -0
  171. package/dist/collection/assets/svg/cancel-circle.svg +5 -0
  172. package/dist/collection/assets/svg/cancel-square.svg +5 -0
  173. package/dist/collection/assets/svg/cancel.svg +5 -0
  174. package/dist/collection/assets/svg/capitol-building.svg +5 -0
  175. package/dist/collection/assets/svg/car-alt-off.svg +5 -0
  176. package/dist/collection/assets/svg/car-alt.svg +5 -0
  177. package/dist/collection/assets/svg/car-key.svg +5 -0
  178. package/dist/collection/assets/svg/caret-down-circle.svg +5 -0
  179. package/dist/collection/assets/svg/caret-down-double.svg +5 -0
  180. package/dist/collection/assets/svg/caret-down.svg +4 -0
  181. package/dist/collection/assets/svg/caret-left-circle.svg +5 -0
  182. package/dist/collection/assets/svg/caret-left-double.svg +5 -0
  183. package/dist/collection/assets/svg/caret-left.svg +5 -0
  184. package/dist/collection/assets/svg/caret-right-circle.svg +5 -0
  185. package/dist/collection/assets/svg/caret-right-double.svg +5 -0
  186. package/dist/collection/assets/svg/caret-right.svg +5 -0
  187. package/dist/collection/assets/svg/caret-up-circle.svg +5 -0
  188. package/dist/collection/assets/svg/caret-up-double.svg +5 -0
  189. package/dist/collection/assets/svg/caret-up.svg +5 -0
  190. package/dist/collection/assets/svg/carousel.svg +5 -0
  191. package/dist/collection/assets/svg/cart-add.svg +5 -0
  192. package/dist/collection/assets/svg/cart-cancel.svg +5 -0
  193. package/dist/collection/assets/svg/cart-download.svg +5 -0
  194. package/dist/collection/assets/svg/cart-minus.svg +5 -0
  195. package/dist/collection/assets/svg/cart-upload.svg +5 -0
  196. package/dist/collection/assets/svg/cart.svg +5 -0
  197. package/dist/collection/assets/svg/cart2.svg +5 -0
  198. package/dist/collection/assets/svg/cart22.svg +5 -0
  199. package/dist/collection/assets/svg/cash-payment.svg +5 -0
  200. package/dist/collection/assets/svg/cctv-camera.svg +5 -0
  201. package/dist/collection/assets/svg/cell-signal.svg +5 -0
  202. package/dist/collection/assets/svg/cellphone-landscape.svg +5 -0
  203. package/dist/collection/assets/svg/center.svg +5 -0
  204. package/dist/collection/assets/svg/chair-easy.svg +5 -0
  205. package/dist/collection/assets/svg/chair-theater.svg +5 -0
  206. package/dist/collection/assets/svg/chair.svg +5 -0
  207. package/dist/collection/assets/svg/chart-bar.svg +5 -0
  208. package/dist/collection/assets/svg/chart-pie.svg +5 -0
  209. package/dist/collection/assets/svg/chat-alert-alt.svg +5 -0
  210. package/dist/collection/assets/svg/chat-alert.svg +5 -0
  211. package/dist/collection/assets/svg/chat-alt.svg +5 -0
  212. package/dist/collection/assets/svg/chat-bubbles-alt.svg +5 -0
  213. package/dist/collection/assets/svg/chat-bubbles.svg +5 -0
  214. package/dist/collection/assets/svg/chat-conversation-alt.svg +5 -0
  215. package/dist/collection/assets/svg/chat-conversation.svg +5 -0
  216. package/dist/collection/assets/svg/chat-message-alt.svg +5 -0
  217. package/dist/collection/assets/svg/chat-message.svg +5 -0
  218. package/dist/collection/assets/svg/chat-person-alt.svg +5 -0
  219. package/dist/collection/assets/svg/chat-person.svg +5 -0
  220. package/dist/collection/assets/svg/chat.svg +5 -0
  221. package/dist/collection/assets/svg/check-circle.svg +5 -0
  222. package/dist/{twilight/check-circle2-378453c5.js → collection/assets/svg/check-circle2.svg} +1 -7
  223. package/dist/collection/assets/svg/check-square.svg +5 -0
  224. package/dist/collection/assets/svg/check.svg +5 -0
  225. package/dist/collection/assets/svg/checkbox-active.svg +5 -0
  226. package/dist/collection/assets/svg/checkbox.svg +5 -0
  227. package/dist/collection/assets/svg/checklist.svg +9 -0
  228. package/dist/collection/assets/svg/chip.svg +5 -0
  229. package/dist/collection/assets/svg/chromecast.svg +5 -0
  230. package/dist/collection/assets/svg/city.svg +5 -0
  231. package/dist/collection/assets/svg/clapboard.svg +5 -0
  232. package/dist/collection/assets/svg/clipboard-person.svg +5 -0
  233. package/dist/collection/assets/svg/clock.svg +5 -0
  234. package/dist/collection/assets/svg/closed-captioning.svg +5 -0
  235. package/dist/collection/assets/svg/clothes-tag.svg +5 -0
  236. package/dist/collection/assets/svg/cloud-add.svg +5 -0
  237. package/dist/collection/assets/svg/cloud-audio.svg +5 -0
  238. package/dist/collection/assets/svg/cloud-cancel.svg +5 -0
  239. package/dist/collection/assets/svg/cloud-check.svg +5 -0
  240. package/dist/collection/assets/svg/cloud-day.svg +5 -0
  241. package/dist/collection/assets/svg/cloud-download.svg +5 -0
  242. package/dist/collection/assets/svg/cloud-heart.svg +5 -0
  243. package/dist/collection/assets/svg/cloud-minus.svg +5 -0
  244. package/dist/collection/assets/svg/cloud-music.svg +5 -0
  245. package/dist/collection/assets/svg/cloud-night.svg +5 -0
  246. package/dist/collection/assets/svg/cloud-off.svg +5 -0
  247. package/dist/collection/assets/svg/cloud-upload.svg +5 -0
  248. package/dist/collection/assets/svg/cloud.svg +5 -0
  249. package/dist/collection/assets/svg/cloudy.svg +5 -0
  250. package/dist/collection/assets/svg/code.svg +6 -0
  251. package/dist/collection/assets/svg/coffee-takeout.svg +5 -0
  252. package/dist/collection/assets/svg/coffee-togo.svg +5 -0
  253. package/dist/collection/assets/svg/coin-bitcoin.svg +5 -0
  254. package/dist/collection/assets/svg/coin-dollar.svg +5 -0
  255. package/dist/collection/assets/svg/combine_cells.svg +5 -0
  256. package/dist/collection/assets/svg/command.svg +5 -0
  257. package/dist/collection/assets/svg/compare.svg +5 -0
  258. package/dist/collection/assets/svg/compass-direction.svg +5 -0
  259. package/dist/collection/assets/svg/computer.svg +5 -0
  260. package/dist/collection/assets/svg/contact-book.svg +5 -0
  261. package/dist/collection/assets/svg/contact-card.svg +5 -0
  262. package/dist/collection/assets/svg/content.svg +5 -0
  263. package/dist/collection/assets/svg/cool.svg +5 -0
  264. package/dist/collection/assets/svg/cord-alt.svg +5 -0
  265. package/dist/collection/assets/svg/crdit-card-alt.svg +5 -0
  266. package/dist/collection/assets/svg/credit-card.svg +5 -0
  267. package/dist/collection/assets/svg/crop.svg +5 -0
  268. package/dist/collection/assets/svg/crown.svg +5 -0
  269. package/dist/collection/assets/svg/cup-hot.svg +5 -0
  270. package/dist/collection/assets/svg/cut.svg +5 -0
  271. package/dist/collection/assets/svg/d-rotate.svg +8 -0
  272. package/dist/collection/assets/svg/dashboard-high.svg +5 -0
  273. package/dist/collection/assets/svg/dashboard-low.svg +5 -0
  274. package/dist/collection/assets/svg/dashboard.svg +5 -0
  275. package/dist/collection/assets/svg/database-add.svg +5 -0
  276. package/dist/collection/assets/svg/database-cancel.svg +5 -0
  277. package/dist/collection/assets/svg/database-lock.svg +5 -0
  278. package/dist/collection/assets/svg/database-minus.svg +5 -0
  279. package/dist/collection/assets/svg/database.svg +5 -0
  280. package/dist/collection/assets/svg/dead-mask.svg +5 -0
  281. package/dist/collection/assets/svg/debit-card-back.svg +5 -0
  282. package/dist/collection/assets/svg/delete.svg +5 -0
  283. package/dist/collection/assets/svg/delete_col.svg +5 -0
  284. package/dist/collection/assets/svg/delete_row.svg +5 -0
  285. package/dist/collection/assets/svg/delete_table.svg +5 -0
  286. package/dist/collection/assets/svg/delivery-parcel2.svg +5 -0
  287. package/dist/collection/assets/svg/device-image.svg +5 -0
  288. package/dist/collection/assets/svg/device-portrait.svg +5 -0
  289. package/dist/collection/assets/svg/devices.svg +5 -0
  290. package/dist/collection/assets/svg/directional-pad.svg +5 -0
  291. package/dist/collection/assets/svg/discount-calculator.svg +5 -0
  292. package/dist/collection/assets/svg/discount-coupon.svg +5 -0
  293. package/dist/collection/assets/svg/do-not-enter.svg +5 -0
  294. package/dist/collection/assets/svg/doh.svg +5 -0
  295. package/dist/collection/assets/svg/dollar-cash.svg +5 -0
  296. package/dist/collection/assets/svg/dollar-coin-stack.svg +5 -0
  297. package/dist/collection/assets/svg/dollar-money.svg +5 -0
  298. package/dist/collection/assets/svg/dolley.svg +5 -0
  299. package/dist/collection/assets/svg/donation.svg +5 -0
  300. package/dist/collection/assets/svg/double-tap.svg +5 -0
  301. package/dist/collection/assets/svg/double-zero-square.svg +5 -0
  302. package/dist/collection/assets/svg/double-zero.svg +5 -0
  303. package/dist/collection/assets/svg/download-harddrive.svg +5 -0
  304. package/dist/collection/assets/svg/download.svg +5 -0
  305. package/dist/collection/assets/svg/dress-long-sleeve.svg +5 -0
  306. package/dist/collection/assets/svg/ear-off.svg +5 -0
  307. package/dist/collection/assets/svg/ear.svg +5 -0
  308. package/dist/collection/assets/svg/earth.svg +5 -0
  309. package/dist/collection/assets/svg/easel-landscape.svg +5 -0
  310. package/dist/collection/assets/svg/easel-portrait.svg +5 -0
  311. package/dist/collection/assets/svg/edit.svg +5 -0
  312. package/dist/collection/assets/svg/eject.svg +5 -0
  313. package/dist/collection/assets/svg/ellipsis-filled.svg +7 -0
  314. package/dist/collection/assets/svg/ellipsis-vertical-filled.svg +7 -0
  315. package/dist/collection/assets/svg/ellipsis-vertical.svg +5 -0
  316. package/dist/collection/assets/svg/ellipsis.svg +5 -0
  317. package/dist/collection/assets/svg/empire-state-building.svg +5 -0
  318. package/dist/collection/assets/svg/energy-circle.svg +5 -0
  319. package/dist/collection/assets/svg/energy-square.svg +5 -0
  320. package/dist/collection/assets/svg/envelope.svg +5 -0
  321. package/dist/collection/assets/svg/expand.svg +5 -0
  322. package/dist/collection/assets/svg/expert.svg +5 -0
  323. package/dist/collection/assets/svg/explode.svg +5 -0
  324. package/dist/collection/assets/svg/exposure-alt.svg +5 -0
  325. package/dist/collection/assets/svg/eye-dropper.svg +5 -0
  326. package/dist/collection/assets/svg/eye-off.svg +5 -0
  327. package/dist/collection/assets/svg/eye.svg +5 -0
  328. package/dist/collection/assets/svg/fabric-swatch.svg +5 -0
  329. package/dist/collection/assets/svg/face-id.svg +5 -0
  330. package/dist/collection/assets/svg/facebook.svg +5 -0
  331. package/dist/collection/assets/svg/facebook2.svg +5 -0
  332. package/dist/collection/assets/svg/fast-forward.svg +5 -0
  333. package/dist/collection/assets/svg/favorite-off.svg +5 -0
  334. package/dist/collection/assets/svg/favorite.svg +5 -0
  335. package/dist/collection/assets/svg/fax-machine.svg +5 -0
  336. package/dist/collection/assets/svg/feather-pen.svg +5 -0
  337. package/dist/collection/assets/svg/female.svg +5 -0
  338. package/dist/collection/assets/svg/file-archive.svg +5 -0
  339. package/dist/collection/assets/svg/file-badge.svg +5 -0
  340. package/dist/collection/assets/svg/file-bitcoin.svg +5 -0
  341. package/dist/collection/assets/svg/file-cabinet.svg +5 -0
  342. package/dist/collection/assets/svg/file-dollar.svg +5 -0
  343. package/dist/collection/assets/svg/file-download.svg +5 -0
  344. package/dist/collection/assets/svg/file-medicine.svg +5 -0
  345. package/dist/collection/assets/svg/file-off.svg +5 -0
  346. package/dist/collection/assets/svg/file-partial.svg +5 -0
  347. package/dist/collection/assets/svg/file-upload.svg +5 -0
  348. package/dist/collection/assets/svg/film-reel.svg +5 -0
  349. package/dist/collection/assets/svg/film-strip.svg +5 -0
  350. package/dist/collection/assets/svg/film.svg +5 -0
  351. package/dist/collection/assets/svg/filter.svg +5 -0
  352. package/dist/collection/assets/svg/fingerprint.svg +5 -0
  353. package/dist/collection/assets/svg/fire.svg +5 -0
  354. package/dist/collection/assets/svg/fit.svg +5 -0
  355. package/dist/collection/assets/svg/fitness-watch.svg +5 -0
  356. package/dist/collection/assets/svg/flag-wave.svg +5 -0
  357. package/dist/collection/assets/svg/flag.svg +5 -0
  358. package/dist/collection/assets/svg/flash.svg +5 -0
  359. package/dist/collection/assets/svg/flat.svg +1 -0
  360. package/dist/collection/assets/svg/floppy-disk.svg +5 -0
  361. package/dist/collection/assets/svg/flower-setting.svg +5 -0
  362. package/dist/collection/assets/svg/flower-stem.svg +5 -0
  363. package/dist/collection/assets/svg/folder-add.svg +5 -0
  364. package/dist/collection/assets/svg/folder-audio.svg +5 -0
  365. package/dist/collection/assets/svg/folder-cancel.svg +5 -0
  366. package/dist/collection/assets/svg/folder-check.svg +5 -0
  367. package/dist/collection/assets/svg/folder-cloud.svg +5 -0
  368. package/dist/collection/assets/svg/folder-code.svg +5 -0
  369. package/dist/collection/assets/svg/folder-download.svg +5 -0
  370. package/dist/collection/assets/svg/folder-health.svg +5 -0
  371. package/dist/collection/assets/svg/folder-image.svg +5 -0
  372. package/dist/collection/assets/svg/folder-music.svg +5 -0
  373. package/dist/collection/assets/svg/folder-open.svg +5 -0
  374. package/dist/collection/assets/svg/folder-upload.svg +5 -0
  375. package/dist/collection/assets/svg/folder-user.svg +5 -0
  376. package/dist/collection/assets/svg/folder.svg +5 -0
  377. package/dist/collection/assets/svg/folders-image.svg +5 -0
  378. package/dist/collection/assets/svg/folders.svg +5 -0
  379. package/dist/collection/assets/svg/fork-knife.svg +5 -0
  380. package/dist/collection/assets/svg/forked.svg +5 -0
  381. package/dist/collection/assets/svg/format-bold.svg +5 -0
  382. package/dist/collection/assets/svg/format-border-color.svg +5 -0
  383. package/dist/collection/assets/svg/format-fill.svg +5 -0
  384. package/dist/collection/assets/svg/format-italic.svg +5 -0
  385. package/dist/collection/assets/svg/format-shapes.svg +5 -0
  386. package/dist/collection/assets/svg/format-size.svg +5 -0
  387. package/dist/collection/assets/svg/format-strikethrough-alt.svg +5 -0
  388. package/dist/collection/assets/svg/format-strikethrough.svg +5 -0
  389. package/dist/collection/assets/svg/format-text-alt.svg +5 -0
  390. package/dist/collection/assets/svg/format-text-color.svg +5 -0
  391. package/dist/collection/assets/svg/format-text.svg +5 -0
  392. package/dist/collection/assets/svg/format-underline.svg +5 -0
  393. package/dist/collection/assets/svg/forward.svg +5 -0
  394. package/dist/collection/assets/svg/frame-image.svg +5 -0
  395. package/dist/collection/assets/svg/frame-portrait.svg +5 -0
  396. package/dist/collection/assets/svg/free-sign.svg +5 -0
  397. package/dist/collection/assets/svg/fresh-arrival.svg +5 -0
  398. package/dist/collection/assets/svg/frown.svg +5 -0
  399. package/dist/collection/assets/svg/full-wallet.svg +5 -0
  400. package/dist/collection/assets/svg/game-controller-alt.svg +5 -0
  401. package/dist/collection/assets/svg/gameboard.svg +5 -0
  402. package/dist/collection/assets/svg/gameboy.svg +5 -0
  403. package/dist/collection/assets/svg/gavel.svg +5 -0
  404. package/dist/collection/assets/svg/ghost.svg +5 -0
  405. package/dist/collection/assets/svg/gift-card.svg +5 -0
  406. package/dist/collection/assets/svg/gift-sharing.svg +5 -0
  407. package/dist/collection/assets/svg/gift.svg +5 -0
  408. package/dist/collection/assets/svg/gifts.svg +5 -0
  409. package/dist/collection/assets/svg/gold-badge.svg +5 -0
  410. package/dist/collection/assets/svg/graduation-cap.svg +5 -0
  411. package/dist/collection/assets/svg/graph-bar.svg +5 -0
  412. package/dist/collection/assets/svg/graph-line.svg +5 -0
  413. package/dist/collection/assets/svg/grid.svg +5 -0
  414. package/dist/collection/assets/svg/grocery-bag.svg +5 -0
  415. package/dist/collection/assets/svg/group-add.svg +5 -0
  416. package/dist/collection/assets/svg/group-four.svg +5 -0
  417. package/dist/collection/assets/svg/group.svg +5 -0
  418. package/dist/collection/assets/svg/hammer-screwdriver.svg +5 -0
  419. package/dist/collection/assets/svg/hand.svg +5 -0
  420. package/dist/collection/assets/svg/happy.svg +5 -0
  421. package/dist/collection/assets/svg/harddrive.svg +5 -0
  422. package/dist/collection/assets/svg/hashtag.svg +5 -0
  423. package/dist/collection/assets/svg/headphones.svg +5 -0
  424. package/dist/collection/assets/svg/headset.svg +5 -0
  425. package/dist/collection/assets/svg/health-cross.svg +5 -0
  426. package/dist/collection/assets/svg/heart-arrow.svg +5 -0
  427. package/dist/collection/assets/svg/heart-check.svg +5 -0
  428. package/dist/collection/assets/svg/heart-money.svg +5 -0
  429. package/dist/collection/assets/svg/heart-off.svg +5 -0
  430. package/dist/collection/assets/svg/heart-rate.svg +5 -0
  431. package/dist/collection/assets/svg/heart.svg +5 -0
  432. package/dist/collection/assets/svg/hearts.svg +5 -0
  433. package/dist/collection/assets/svg/help.svg +5 -0
  434. package/dist/collection/assets/svg/hierarchy.svg +5 -0
  435. package/dist/collection/assets/svg/hiking-pack.svg +5 -0
  436. package/dist/collection/assets/svg/hiking.svg +5 -0
  437. package/dist/collection/assets/svg/hipster.svg +5 -0
  438. package/dist/collection/assets/svg/history.svg +5 -0
  439. package/dist/collection/assets/svg/hitchikers-guide.svg +5 -0
  440. package/dist/collection/assets/svg/hobby-knife.svg +5 -0
  441. package/dist/collection/assets/svg/home-heart.svg +5 -0
  442. package/dist/collection/assets/svg/home-water.svg +5 -0
  443. package/dist/collection/assets/svg/home.svg +5 -0
  444. package/dist/collection/assets/svg/house-door.svg +5 -0
  445. package/dist/collection/assets/svg/house.svg +5 -0
  446. package/dist/collection/assets/svg/hr.svg +5 -0
  447. package/dist/collection/assets/svg/image-carousel.svg +5 -0
  448. package/dist/collection/assets/svg/image-chat.svg +5 -0
  449. package/dist/collection/assets/svg/image-search.svg +5 -0
  450. package/dist/collection/assets/svg/image.svg +5 -0
  451. package/dist/collection/assets/svg/image1.svg +8 -0
  452. package/dist/collection/assets/svg/images.svg +4 -0
  453. package/dist/collection/assets/svg/inbox-add.svg +5 -0
  454. package/dist/collection/assets/svg/inbox-download.svg +5 -0
  455. package/dist/collection/assets/svg/inbox-full.svg +5 -0
  456. package/dist/collection/assets/svg/inbox-multi.svg +5 -0
  457. package/dist/collection/assets/svg/inbox-music.svg +5 -0
  458. package/dist/collection/assets/svg/inbox-upload.svg +5 -0
  459. package/dist/collection/assets/svg/inbox.svg +5 -0
  460. package/dist/collection/assets/svg/indent-decrease.svg +5 -0
  461. package/dist/collection/assets/svg/indent.svg +5 -0
  462. package/dist/collection/assets/svg/info.svg +5 -0
  463. package/dist/collection/assets/svg/information.svg +5 -0
  464. package/dist/collection/assets/svg/instagram.svg +5 -0
  465. package/dist/collection/assets/svg/instagram2.svg +5 -0
  466. package/dist/collection/assets/svg/ipad.svg +5 -0
  467. package/dist/collection/assets/svg/iphone-x.svg +5 -0
  468. package/dist/collection/assets/svg/iphone.svg +5 -0
  469. package/dist/collection/assets/svg/ipod.svg +5 -0
  470. package/dist/collection/assets/svg/italic.svg +5 -0
  471. package/dist/collection/assets/svg/journal-pencil.svg +5 -0
  472. package/dist/collection/assets/svg/journal.svg +5 -0
  473. package/dist/collection/assets/svg/key.svg +5 -0
  474. package/dist/collection/assets/svg/keyboard-down.svg +5 -0
  475. package/dist/collection/assets/svg/keyboard-up.svg +5 -0
  476. package/dist/collection/assets/svg/keyboard.svg +5 -0
  477. package/dist/collection/assets/svg/keyboard_arrow_down.svg +5 -0
  478. package/dist/collection/assets/svg/keyboard_arrow_left.svg +5 -0
  479. package/dist/collection/assets/svg/keyboard_arrow_right.svg +5 -0
  480. package/dist/collection/assets/svg/keyboard_arrow_up.svg +5 -0
  481. package/dist/collection/assets/svg/keyhole-alt.svg +5 -0
  482. package/dist/collection/assets/svg/keyhole.svg +5 -0
  483. package/dist/collection/assets/svg/keypad.svg +5 -0
  484. package/dist/collection/assets/svg/lang.svg +5 -0
  485. package/dist/collection/assets/svg/laptop.svg +5 -0
  486. package/dist/collection/assets/svg/layout-grid-rearrange.svg +5 -0
  487. package/dist/collection/assets/svg/layout-grid.svg +5 -0
  488. package/dist/collection/assets/svg/leaf-angle.svg +5 -0
  489. package/dist/collection/assets/svg/left.svg +5 -0
  490. package/dist/collection/assets/svg/lego.svg +5 -0
  491. package/dist/collection/assets/svg/library.svg +5 -0
  492. package/dist/collection/assets/svg/life-ring.svg +5 -0
  493. package/dist/collection/assets/svg/lightbulb.svg +5 -0
  494. package/dist/collection/assets/svg/lightning.svg +5 -0
  495. package/dist/collection/assets/svg/link.svg +5 -0
  496. package/dist/collection/assets/svg/link1.svg +7 -0
  497. package/dist/collection/assets/svg/list-add.svg +5 -0
  498. package/dist/collection/assets/svg/list-check.svg +5 -0
  499. package/dist/collection/assets/svg/list-numbered.svg +5 -0
  500. package/dist/collection/assets/svg/list-play.svg +5 -0
  501. package/dist/collection/assets/svg/list-reorder.svg +5 -0
  502. package/dist/collection/assets/svg/list.svg +5 -0
  503. package/dist/collection/assets/svg/location-add.svg +5 -0
  504. package/dist/collection/assets/svg/location-cancel.svg +5 -0
  505. package/dist/collection/assets/svg/location-off.svg +5 -0
  506. package/dist/collection/assets/svg/location-target.svg +5 -0
  507. package/dist/collection/assets/svg/location.svg +5 -0
  508. package/dist/collection/assets/svg/lock-off.svg +5 -0
  509. package/dist/collection/assets/svg/lock.svg +5 -0
  510. package/dist/collection/assets/svg/loupe-zoom.svg +5 -0
  511. package/dist/collection/assets/svg/loupe.svg +5 -0
  512. package/dist/collection/assets/svg/love-letter.svg +5 -0
  513. package/dist/collection/assets/svg/luggage-cart.svg +5 -0
  514. package/dist/collection/assets/svg/macro.svg +5 -0
  515. package/dist/collection/assets/svg/magazine.svg +5 -0
  516. package/dist/collection/assets/svg/magic-wand.svg +5 -0
  517. package/dist/collection/assets/svg/magnet.svg +5 -0
  518. package/dist/collection/assets/svg/mail-add-alt.svg +5 -0
  519. package/dist/collection/assets/svg/mail-add.svg +5 -0
  520. package/dist/collection/assets/svg/mail-cascade.svg +5 -0
  521. package/dist/collection/assets/svg/mail-download.svg +5 -0
  522. package/dist/collection/assets/svg/mail-letter.svg +5 -0
  523. package/dist/collection/assets/svg/mail-multi.svg +5 -0
  524. package/dist/collection/assets/svg/mail-open.svg +5 -0
  525. package/dist/collection/assets/svg/mail-search.svg +5 -0
  526. package/dist/collection/assets/svg/mail-time.svg +5 -0
  527. package/dist/collection/assets/svg/mail-upload.svg +5 -0
  528. package/dist/collection/assets/svg/mail.svg +5 -0
  529. package/dist/collection/assets/svg/mailbox.svg +5 -0
  530. package/dist/collection/assets/svg/male.svg +5 -0
  531. package/dist/collection/assets/svg/man-fancy.svg +5 -0
  532. package/dist/collection/assets/svg/map-grid.svg +5 -0
  533. package/dist/collection/assets/svg/map-location.svg +5 -0
  534. package/dist/collection/assets/svg/map-search.svg +5 -0
  535. package/dist/collection/assets/svg/map.svg +5 -0
  536. package/dist/collection/assets/svg/medal.svg +5 -0
  537. package/dist/collection/assets/svg/media-player.svg +5 -0
  538. package/dist/collection/assets/svg/megaphone.svg +5 -0
  539. package/dist/collection/assets/svg/meh.svg +5 -0
  540. package/dist/collection/assets/svg/memo-money.svg +5 -0
  541. package/dist/collection/assets/svg/memo.svg +5 -0
  542. package/dist/collection/assets/svg/mention.svg +5 -0
  543. package/dist/collection/assets/svg/menu-vertical.svg +5 -0
  544. package/dist/collection/assets/svg/menu.svg +5 -0
  545. package/dist/collection/assets/svg/mic-alt.svg +5 -0
  546. package/dist/collection/assets/svg/mic-stand.svg +5 -0
  547. package/dist/collection/assets/svg/mic.svg +5 -0
  548. package/dist/collection/assets/svg/minimize.svg +5 -0
  549. package/dist/collection/assets/svg/minus-circle.svg +5 -0
  550. package/dist/collection/assets/svg/minus-square.svg +5 -0
  551. package/dist/collection/assets/svg/minus.svg +5 -0
  552. package/dist/collection/assets/svg/money-card.svg +5 -0
  553. package/dist/collection/assets/svg/money-chat.svg +5 -0
  554. package/dist/collection/assets/svg/money-circle.svg +5 -0
  555. package/dist/collection/assets/svg/money-home.svg +5 -0
  556. package/dist/collection/assets/svg/moon.svg +5 -0
  557. package/dist/collection/assets/svg/mouse-buttons.svg +5 -0
  558. package/dist/collection/assets/svg/mug-heart.svg +5 -0
  559. package/dist/collection/assets/svg/music-cascade.svg +5 -0
  560. package/dist/collection/assets/svg/music.svg +5 -0
  561. package/dist/collection/assets/svg/navigation-circle.svg +5 -0
  562. package/dist/collection/assets/svg/navigation.svg +5 -0
  563. package/dist/collection/assets/svg/near-me-circle.svg +5 -0
  564. package/dist/collection/assets/svg/near-me.svg +5 -0
  565. package/dist/collection/assets/svg/neck-tie.svg +5 -0
  566. package/dist/collection/assets/svg/newspaper-alt.svg +5 -0
  567. package/dist/collection/assets/svg/newspaper.svg +5 -0
  568. package/dist/collection/assets/svg/notification.svg +5 -0
  569. package/dist/collection/assets/svg/office.svg +5 -0
  570. package/dist/collection/assets/svg/ol.svg +10 -0
  571. package/dist/collection/assets/svg/packed-box.svg +5 -0
  572. package/dist/collection/assets/svg/padlock-unlock.svg +5 -0
  573. package/dist/collection/assets/svg/padlock.svg +5 -0
  574. package/dist/collection/assets/svg/page-add.svg +5 -0
  575. package/dist/collection/assets/svg/page-alt.svg +5 -0
  576. package/dist/collection/assets/svg/page-cancel.svg +5 -0
  577. package/dist/collection/assets/svg/page-check.svg +5 -0
  578. package/dist/collection/assets/svg/page-content.svg +5 -0
  579. package/dist/collection/assets/svg/page-minus.svg +5 -0
  580. package/dist/collection/assets/svg/page-search-alt.svg +5 -0
  581. package/dist/collection/assets/svg/page-search.svg +5 -0
  582. package/dist/collection/assets/svg/page.svg +5 -0
  583. package/dist/collection/assets/svg/pages-insert.svg +5 -0
  584. package/dist/collection/assets/svg/pages.svg +5 -0
  585. package/dist/collection/assets/svg/paper-airplane.svg +5 -0
  586. package/dist/collection/assets/svg/paper-plane-o.svg +5 -0
  587. package/dist/collection/assets/svg/paper-plane.svg +5 -0
  588. package/dist/collection/assets/svg/paper-send.svg +5 -0
  589. package/dist/collection/assets/svg/paperclip.svg +5 -0
  590. package/dist/collection/assets/svg/paragraph.svg +5 -0
  591. package/dist/collection/assets/svg/parking.svg +5 -0
  592. package/dist/collection/assets/svg/partly-cloudy.svg +5 -0
  593. package/dist/collection/assets/svg/party-bell.svg +5 -0
  594. package/dist/collection/assets/svg/party-horn.svg +5 -0
  595. package/dist/collection/assets/svg/passport.svg +5 -0
  596. package/dist/collection/assets/svg/pause-circle.svg +5 -0
  597. package/dist/collection/assets/svg/pause.svg +5 -0
  598. package/dist/collection/assets/svg/paypal.svg +5 -0
  599. package/dist/collection/assets/svg/pen-nib.svg +5 -0
  600. package/dist/collection/assets/svg/pen.svg +5 -0
  601. package/dist/collection/assets/svg/pencil-off.svg +5 -0
  602. package/dist/collection/assets/svg/pencil-paintbrush.svg +5 -0
  603. package/dist/collection/assets/svg/pencil-ruler.svg +5 -0
  604. package/dist/collection/assets/svg/pencil.svg +5 -0
  605. package/dist/collection/assets/svg/percentage-chat.svg +5 -0
  606. package/dist/collection/assets/svg/percentage.svg +5 -0
  607. package/dist/collection/assets/svg/person-bowtie-suspenders.svg +5 -0
  608. package/dist/collection/assets/svg/phone-pencil.svg +5 -0
  609. package/dist/collection/assets/svg/phone-rotary.svg +5 -0
  610. package/dist/collection/assets/svg/phone-talking.svg +5 -0
  611. package/dist/collection/assets/svg/phone.svg +5 -0
  612. package/dist/collection/assets/svg/photo-flower.svg +5 -0
  613. package/dist/collection/assets/svg/photo-library.svg +5 -0
  614. package/dist/collection/assets/svg/photo-portrait.svg +5 -0
  615. package/dist/collection/assets/svg/photo-search.svg +5 -0
  616. package/dist/collection/assets/svg/photo.svg +5 -0
  617. package/dist/collection/assets/svg/photos.svg +5 -0
  618. package/dist/collection/assets/svg/pin.svg +5 -0
  619. package/dist/collection/assets/svg/plane-arrival.svg +5 -0
  620. package/dist/collection/assets/svg/plane-departure.svg +5 -0
  621. package/dist/collection/assets/svg/play-circle.svg +5 -0
  622. package/dist/collection/assets/svg/play-library.svg +5 -0
  623. package/dist/collection/assets/svg/play.svg +5 -0
  624. package/dist/collection/assets/svg/playlist.svg +5 -0
  625. package/dist/collection/assets/svg/plug-electric.svg +5 -0
  626. package/dist/collection/assets/svg/plug-sun.svg +5 -0
  627. package/dist/collection/assets/svg/plug.svg +5 -0
  628. package/dist/collection/assets/svg/podcast.svg +5 -0
  629. package/dist/collection/assets/svg/point-down.svg +5 -0
  630. package/dist/collection/assets/svg/point-left.svg +5 -0
  631. package/dist/collection/assets/svg/point-right.svg +5 -0
  632. package/dist/collection/assets/svg/point-up.svg +5 -0
  633. package/dist/collection/assets/svg/poll.svg +5 -0
  634. package/dist/collection/assets/svg/polo-shirt.svg +5 -0
  635. package/dist/collection/assets/svg/portfolio.svg +5 -0
  636. package/dist/collection/assets/svg/portrait-carousel.svg +5 -0
  637. package/dist/collection/assets/svg/portrait-library.svg +5 -0
  638. package/dist/collection/assets/svg/portrait.svg +5 -0
  639. package/dist/collection/assets/svg/portraits.svg +5 -0
  640. package/dist/collection/assets/svg/power-circle.svg +5 -0
  641. package/dist/collection/assets/svg/power.svg +5 -0
  642. package/dist/collection/assets/svg/prescription-bottle.svg +5 -0
  643. package/dist/collection/assets/svg/presentation-alt.svg +5 -0
  644. package/dist/collection/assets/svg/printer.svg +5 -0
  645. package/dist/collection/assets/svg/printer2.svg +5 -0
  646. package/dist/collection/assets/svg/puzzle.svg +5 -0
  647. package/dist/collection/assets/svg/quote-close-alt.svg +5 -0
  648. package/dist/collection/assets/svg/quote-close.svg +5 -0
  649. package/dist/collection/assets/svg/quote-open-alt.svg +5 -0
  650. package/dist/collection/assets/svg/quote-open.svg +5 -0
  651. package/dist/collection/assets/svg/quote.svg +6 -0
  652. package/dist/collection/assets/svg/receipt-money.svg +5 -0
  653. package/dist/collection/assets/svg/receipt.svg +5 -0
  654. package/dist/collection/assets/svg/recycle.svg +5 -0
  655. package/dist/collection/assets/svg/redeye.svg +5 -0
  656. package/dist/collection/assets/svg/redo.svg +5 -0
  657. package/dist/collection/assets/svg/refund.svg +5 -0
  658. package/dist/collection/assets/svg/register.svg +5 -0
  659. package/dist/collection/assets/svg/remove.svg +6 -0
  660. package/dist/collection/assets/svg/reply-all.svg +5 -0
  661. package/dist/collection/assets/svg/reply.svg +5 -0
  662. package/dist/collection/assets/svg/rewind.svg +5 -0
  663. package/dist/collection/assets/svg/right.svg +5 -0
  664. package/dist/collection/assets/svg/rocket.svg +5 -0
  665. package/dist/collection/assets/svg/room-card.svg +5 -0
  666. package/dist/collection/assets/svg/rotate.svg +5 -0
  667. package/dist/collection/assets/svg/rotation-lock.svg +5 -0
  668. package/dist/collection/assets/svg/rotation-unlock.svg +5 -0
  669. package/dist/collection/assets/svg/round-neck-t-shirt.svg +5 -0
  670. package/dist/collection/assets/svg/route-highway.svg +5 -0
  671. package/dist/collection/assets/svg/rss.svg +5 -0
  672. package/dist/collection/assets/svg/ruler-square.svg +5 -0
  673. package/dist/collection/assets/svg/ruler.svg +5 -0
  674. package/dist/collection/assets/svg/running.svg +5 -0
  675. package/dist/collection/assets/svg/sales-presentation.svg +5 -0
  676. package/dist/collection/assets/svg/school-bell.svg +5 -0
  677. package/dist/collection/assets/svg/schoolbus.svg +5 -0
  678. package/dist/collection/assets/svg/science.svg +5 -0
  679. package/dist/collection/assets/svg/screw-flathead.svg +5 -0
  680. package/dist/collection/assets/svg/screw-phillips.svg +5 -0
  681. package/dist/collection/assets/svg/screw-star.svg +5 -0
  682. package/dist/collection/assets/svg/script.svg +5 -0
  683. package/dist/collection/assets/svg/sd-card.svg +5 -0
  684. package/dist/collection/assets/svg/search.svg +5 -0
  685. package/dist/collection/assets/svg/season-winter.svg +5 -0
  686. package/dist/collection/assets/svg/secure-credit-card-2.svg +5 -0
  687. package/dist/collection/assets/svg/security-camera.svg +5 -0
  688. package/dist/collection/assets/svg/send-down.svg +5 -0
  689. package/dist/collection/assets/svg/send-forward.svg +5 -0
  690. package/dist/collection/assets/svg/send-in.svg +5 -0
  691. package/dist/collection/assets/svg/send-mail.svg +5 -0
  692. package/dist/collection/assets/svg/send-out.svg +5 -0
  693. package/dist/collection/assets/svg/send-to-device.svg +5 -0
  694. package/dist/collection/assets/svg/send-up.svg +5 -0
  695. package/dist/collection/assets/svg/send.svg +5 -0
  696. package/dist/collection/assets/svg/sending-email.svg +5 -0
  697. package/dist/collection/assets/svg/settings.svg +5 -0
  698. package/dist/collection/assets/svg/shake.svg +5 -0
  699. package/dist/collection/assets/svg/share-alt.svg +5 -0
  700. package/dist/collection/assets/svg/share.svg +5 -0
  701. package/dist/collection/assets/svg/shield-alert.svg +5 -0
  702. package/dist/collection/assets/svg/shield-alt.svg +5 -0
  703. package/dist/collection/assets/svg/shield-check.svg +5 -0
  704. package/dist/collection/assets/svg/ship-wheel.svg +5 -0
  705. package/dist/collection/assets/svg/ship.svg +5 -0
  706. package/dist/collection/assets/svg/shipping-fast.svg +5 -0
  707. package/dist/collection/assets/svg/shipping.svg +5 -0
  708. package/dist/collection/assets/svg/shirt-button-down.svg +5 -0
  709. package/dist/collection/assets/svg/shirt-tie.svg +5 -0
  710. package/dist/collection/assets/svg/shirt.svg +5 -0
  711. package/dist/collection/assets/svg/shopping-bag.svg +5 -0
  712. package/dist/collection/assets/svg/shopping-bag2.svg +5 -0
  713. package/dist/collection/assets/svg/shopping-basket-alt.svg +5 -0
  714. package/dist/collection/assets/svg/shopping-basket.svg +5 -0
  715. package/dist/collection/assets/svg/shopping.svg +5 -0
  716. package/dist/collection/assets/svg/shredder.svg +5 -0
  717. package/dist/collection/assets/svg/shuttle.svg +5 -0
  718. package/dist/collection/assets/svg/signal-range.svg +5 -0
  719. package/dist/collection/assets/svg/signs-alt.svg +5 -0
  720. package/dist/collection/assets/svg/sim-card-alert.svg +5 -0
  721. package/dist/collection/assets/svg/skip-backward.svg +5 -0
  722. package/dist/collection/assets/svg/skip-forward.svg +5 -0
  723. package/dist/collection/assets/svg/skull-crossbones.svg +5 -0
  724. package/dist/collection/assets/svg/skull.svg +5 -0
  725. package/dist/collection/assets/svg/sleep.svg +5 -0
  726. package/dist/collection/assets/svg/smile.svg +5 -0
  727. package/dist/collection/assets/svg/snapchat.svg +5 -0
  728. package/dist/collection/assets/svg/sort-asc.svg +5 -0
  729. package/dist/collection/assets/svg/sort-desc.svg +5 -0
  730. package/dist/collection/assets/svg/sort.svg +5 -0
  731. package/dist/collection/assets/svg/speaker.svg +5 -0
  732. package/dist/collection/assets/svg/special-alert.svg +5 -0
  733. package/dist/collection/assets/svg/special-check.svg +5 -0
  734. package/dist/collection/assets/svg/special-discount.svg +5 -0
  735. package/dist/collection/assets/svg/special-money.svg +5 -0
  736. package/dist/collection/assets/svg/spinner.svg +5 -0
  737. package/dist/collection/assets/svg/spy.svg +5 -0
  738. package/dist/collection/assets/svg/stack.svg +5 -0
  739. package/dist/collection/assets/svg/stair-car.svg +5 -0
  740. package/dist/collection/assets/svg/stamp-inset.svg +5 -0
  741. package/dist/collection/assets/svg/stanp-portrait.svg +5 -0
  742. package/dist/collection/assets/svg/star-o.svg +5 -0
  743. package/dist/collection/assets/svg/star.svg +5 -0
  744. package/dist/collection/assets/svg/star2.svg +5 -0
  745. package/dist/collection/assets/svg/star3.svg +48 -0
  746. package/dist/collection/assets/svg/steps.svg +5 -0
  747. package/dist/collection/assets/svg/stocks-down.svg +5 -0
  748. package/dist/collection/assets/svg/stocks-up.svg +5 -0
  749. package/dist/collection/assets/svg/stopsign-alert.svg +5 -0
  750. package/dist/collection/assets/svg/stopwatch-off.svg +5 -0
  751. package/dist/collection/assets/svg/stopwatch.svg +5 -0
  752. package/dist/collection/assets/svg/stopwatch1.svg +7 -0
  753. package/dist/collection/assets/svg/store-alt.svg +5 -0
  754. package/dist/collection/assets/svg/store.svg +5 -0
  755. package/dist/collection/assets/svg/store2.svg +5 -0
  756. package/dist/collection/assets/svg/storm.svg +5 -0
  757. package/dist/collection/assets/svg/strike.svg +5 -0
  758. package/dist/collection/assets/svg/suitcase.svg +5 -0
  759. package/dist/collection/assets/svg/sun.svg +5 -0
  760. package/dist/collection/assets/svg/sunglasses.svg +5 -0
  761. package/dist/collection/assets/svg/survey.svg +5 -0
  762. package/dist/collection/assets/svg/swap-fill.svg +5 -0
  763. package/dist/collection/assets/svg/swap-stroke.svg +5 -0
  764. package/dist/collection/assets/svg/swatchbook.svg +5 -0
  765. package/dist/collection/assets/svg/swipe-left.svg +5 -0
  766. package/dist/collection/assets/svg/swipe-right.svg +5 -0
  767. package/dist/collection/assets/svg/switch-flip.svg +5 -0
  768. package/dist/collection/assets/svg/sync.svg +5 -0
  769. package/dist/collection/assets/svg/t-shirt-long-sleeve.svg +5 -0
  770. package/dist/collection/assets/svg/t-shirt.svg +5 -0
  771. package/dist/collection/assets/svg/table.svg +5 -0
  772. package/dist/collection/assets/svg/tag-money.svg +5 -0
  773. package/dist/collection/assets/svg/tag-special.svg +5 -0
  774. package/dist/collection/assets/svg/tag.svg +4 -0
  775. package/dist/collection/assets/svg/tap.svg +5 -0
  776. package/dist/collection/assets/svg/target.svg +5 -0
  777. package/dist/collection/assets/svg/team.svg +5 -0
  778. package/dist/collection/assets/svg/terminal.svg +5 -0
  779. package/dist/collection/assets/svg/theater-masks.svg +5 -0
  780. package/dist/collection/assets/svg/three-square.svg +5 -0
  781. package/dist/collection/assets/svg/thumbdrive.svg +5 -0
  782. package/dist/collection/assets/svg/thumbs-down.svg +5 -0
  783. package/dist/collection/assets/svg/thumbs-up.svg +5 -0
  784. package/dist/collection/assets/svg/thumbtack.svg +5 -0
  785. package/dist/collection/assets/svg/ticket-movie.svg +5 -0
  786. package/dist/collection/assets/svg/ticket.svg +5 -0
  787. package/dist/collection/assets/svg/tiktok.svg +5 -0
  788. package/dist/collection/assets/svg/time.svg +5 -0
  789. package/dist/collection/assets/svg/timer.svg +5 -0
  790. package/dist/collection/assets/svg/toggle-off.svg +5 -0
  791. package/dist/collection/assets/svg/toggles.svg +5 -0
  792. package/dist/collection/assets/svg/toolbox.svg +5 -0
  793. package/dist/collection/assets/svg/tornado.svg +5 -0
  794. package/dist/collection/assets/svg/touch-type.svg +5 -0
  795. package/dist/collection/assets/svg/trail-map.svg +5 -0
  796. package/dist/collection/assets/svg/train.svg +5 -0
  797. package/dist/collection/assets/svg/transfer-alt.svg +5 -0
  798. package/dist/collection/assets/svg/transfer.svg +5 -0
  799. package/dist/collection/assets/svg/trash-2.svg +5 -0
  800. package/dist/collection/assets/svg/trash-cancel.svg +5 -0
  801. package/dist/collection/assets/svg/trash.svg +5 -0
  802. package/dist/collection/assets/svg/treasure-chest.svg +5 -0
  803. package/dist/collection/assets/svg/trend-down.svg +5 -0
  804. package/dist/collection/assets/svg/trend-up.svg +5 -0
  805. package/dist/collection/assets/svg/triangle-measure.svg +5 -0
  806. package/dist/collection/assets/svg/trophy-2.svg +5 -0
  807. package/dist/collection/assets/svg/trophy.svg +5 -0
  808. package/dist/collection/assets/svg/trophy2.svg +5 -0
  809. package/dist/collection/assets/svg/tty.svg +5 -0
  810. package/dist/collection/assets/svg/tulip-pot.svg +5 -0
  811. package/dist/collection/assets/svg/tune-alt.svg +5 -0
  812. package/dist/collection/assets/svg/tune.svg +5 -0
  813. package/dist/collection/assets/svg/turkey.svg +5 -0
  814. package/dist/collection/assets/svg/turret.svg +5 -0
  815. package/dist/collection/assets/svg/tv.svg +5 -0
  816. package/dist/collection/assets/svg/twitter.svg +5 -0
  817. package/dist/collection/assets/svg/twitter2.svg +5 -0
  818. package/dist/collection/assets/svg/type-square.svg +5 -0
  819. package/dist/collection/assets/svg/typewriter.svg +5 -0
  820. package/dist/collection/assets/svg/typography.svg +5 -0
  821. package/dist/collection/assets/svg/ul.svg +10 -0
  822. package/dist/collection/assets/svg/underline.svg +6 -0
  823. package/dist/collection/assets/svg/undo.svg +5 -0
  824. package/dist/collection/assets/svg/unicorn.svg +5 -0
  825. package/dist/collection/assets/svg/universal-access-alt.svg +5 -0
  826. package/dist/collection/assets/svg/universal-access.svg +5 -0
  827. package/dist/collection/assets/svg/unlock.svg +5 -0
  828. package/dist/collection/assets/svg/user-add.svg +5 -0
  829. package/dist/collection/assets/svg/user-cancel.svg +5 -0
  830. package/dist/collection/assets/svg/user-check.svg +5 -0
  831. package/dist/collection/assets/svg/user-circle.svg +5 -0
  832. package/dist/collection/assets/svg/user-heart.svg +5 -0
  833. package/dist/collection/assets/svg/user-list.svg +5 -0
  834. package/dist/collection/assets/svg/user-minus.svg +5 -0
  835. package/dist/collection/assets/svg/user-off.svg +5 -0
  836. package/dist/collection/assets/svg/user-square.svg +5 -0
  837. package/dist/collection/assets/svg/user.svg +5 -0
  838. package/dist/collection/assets/svg/users.svg +5 -0
  839. package/dist/collection/assets/svg/village.svg +5 -0
  840. package/dist/collection/assets/svg/vision.svg +5 -0
  841. package/dist/collection/assets/svg/volume-high.svg +5 -0
  842. package/dist/collection/assets/svg/volume-low.svg +5 -0
  843. package/dist/collection/assets/svg/volume-mute.svg +5 -0
  844. package/dist/collection/assets/svg/volume-off.svg +5 -0
  845. package/dist/collection/assets/svg/volume.svg +5 -0
  846. package/dist/collection/assets/svg/waffle.svg +5 -0
  847. package/dist/collection/assets/svg/walkie-talkie.svg +5 -0
  848. package/dist/collection/assets/svg/wallet.svg +5 -0
  849. package/dist/collection/assets/svg/warming-cover.svg +5 -0
  850. package/dist/collection/assets/svg/warning.svg +5 -0
  851. package/dist/collection/assets/svg/watch-apple.svg +5 -0
  852. package/dist/collection/assets/svg/watch-smart.svg +5 -0
  853. package/dist/collection/assets/svg/watch.svg +5 -0
  854. package/dist/collection/assets/svg/wave.svg +5 -0
  855. package/dist/collection/assets/svg/whatsapp.svg +5 -0
  856. package/dist/collection/assets/svg/whatsapp2.svg +5 -0
  857. package/dist/collection/assets/svg/wheelchair-alt.svg +5 -0
  858. package/dist/collection/assets/svg/wheelchair.svg +5 -0
  859. package/dist/collection/assets/svg/whistle.svg +5 -0
  860. package/dist/collection/assets/svg/wifi.svg +5 -0
  861. package/dist/collection/assets/svg/wind.svg +5 -0
  862. package/dist/collection/assets/svg/window-layout.svg +5 -0
  863. package/dist/collection/assets/svg/winners-dias.svg +5 -0
  864. package/dist/collection/assets/svg/woman-man.svg +5 -0
  865. package/dist/collection/assets/svg/women.svg +5 -0
  866. package/dist/collection/assets/svg/world.svg +5 -0
  867. package/dist/collection/assets/svg/wrench-pencil.svg +5 -0
  868. package/dist/collection/assets/svg/wrench.svg +5 -0
  869. package/dist/collection/assets/svg/wrenches.svg +5 -0
  870. package/dist/collection/assets/svg/writing.svg +5 -0
  871. package/dist/collection/assets/svg/youtube.svg +5 -0
  872. package/dist/collection/assets/svg/youtube2.svg +5 -0
  873. package/dist/collection/assets/svg/zip-archive.svg +5 -0
  874. package/dist/collection/assets/svg/zoom-in.svg +5 -0
  875. package/dist/collection/assets/svg/zoom-out.svg +5 -0
  876. package/dist/collection/collection-manifest.json +45 -0
  877. package/dist/collection/components/generate-summary.js +35 -0
  878. package/dist/collection/components/salla-add-product-button/salla-add-product-button.css +7 -0
  879. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +240 -0
  880. package/dist/collection/components/salla-button/salla-button.css +4 -0
  881. package/dist/collection/components/salla-button/salla-button.js +387 -0
  882. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +90 -0
  883. package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
  884. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
  885. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
  886. package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
  887. package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
  888. package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
  889. package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
  890. package/dist/collection/components/salla-gifting/intefaces.js +4 -0
  891. package/dist/collection/components/salla-gifting/salla-gifting.css +15 -0
  892. package/dist/collection/components/salla-gifting/salla-gifting.js +569 -0
  893. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +4 -0
  894. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +171 -0
  895. package/dist/collection/components/salla-installment/salla-installment.css +134 -0
  896. package/dist/collection/components/salla-installment/salla-installment.js +196 -0
  897. package/dist/collection/components/salla-list-tile/salla-list-tile.css +0 -0
  898. package/dist/collection/components/salla-list-tile/salla-list-tile.js +80 -0
  899. package/dist/collection/components/salla-loading/salla-loading.css +19 -0
  900. package/dist/collection/components/salla-loading/salla-loading.js +111 -0
  901. package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +1084 -0
  902. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +261 -0
  903. package/dist/collection/components/salla-login-modal/salla-login-modal.css +4 -0
  904. package/dist/collection/components/salla-login-modal/salla-login-modal.js +409 -0
  905. package/dist/collection/components/salla-loyalty/loyalty-schema.js +9 -0
  906. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
  907. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
  908. package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -0
  909. package/dist/collection/components/salla-loyalty/salla-loyalty.js +457 -0
  910. package/dist/collection/components/salla-modal/salla-modal.css +9 -0
  911. package/dist/collection/components/salla-modal/salla-modal.js +519 -0
  912. package/dist/collection/components/salla-offer-modal/offer-schema.js +4 -0
  913. package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +4 -0
  914. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +247 -0
  915. package/dist/collection/components/salla-placeholder/salla-placeholder.css +0 -0
  916. package/dist/collection/components/salla-placeholder/salla-placeholder.js +109 -0
  917. package/dist/collection/components/salla-product-availability/salla-product-availability.css +5 -0
  918. package/dist/collection/components/salla-product-availability/salla-product-availability.js +191 -0
  919. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.css +4 -0
  920. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +136 -0
  921. package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +4 -0
  922. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +168 -0
  923. package/dist/collection/components/salla-rating-modal/order-feedback-response.js +4 -0
  924. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +4 -0
  925. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +286 -0
  926. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +4 -0
  927. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +140 -0
  928. package/dist/collection/components/salla-scopes/interfaces.js +8 -0
  929. package/dist/collection/components/salla-scopes/salla-scopes.css +13 -0
  930. package/dist/collection/components/salla-scopes/salla-scopes.js +303 -0
  931. package/dist/collection/components/salla-search/salla-search.css +4 -0
  932. package/dist/collection/components/salla-search/salla-search.js +204 -0
  933. package/dist/collection/components/salla-search/search-response.js +4 -0
  934. package/dist/collection/components/salla-select/salla-select.css +86 -0
  935. package/dist/collection/components/salla-select/salla-select.js +610 -0
  936. package/dist/collection/components/salla-skeleton/salla-skeleton.css +3 -0
  937. package/dist/collection/components/salla-skeleton/salla-skeleton.js +91 -0
  938. package/dist/collection/components/salla-social-share/interfaces.js +11 -0
  939. package/dist/collection/components/salla-social-share/salla-social-share.css +0 -0
  940. package/dist/collection/components/salla-social-share/salla-social-share.js +182 -0
  941. package/dist/collection/components/salla-swiper/salla-swiper.css +177 -0
  942. package/dist/collection/components/salla-swiper/salla-swiper.js +148 -0
  943. package/dist/collection/components/salla-tabs/interfaces.js +4 -0
  944. package/dist/collection/components/salla-tabs/salla-tab-content.css +4 -0
  945. package/dist/collection/components/salla-tabs/salla-tab-content.js +80 -0
  946. package/dist/collection/components/salla-tabs/salla-tab-header.css +4 -0
  947. package/dist/collection/components/salla-tabs/salla-tab-header.js +173 -0
  948. package/dist/collection/components/salla-tabs/salla-tabs.css +15 -0
  949. package/dist/collection/components/salla-tabs/salla-tabs.js +109 -0
  950. package/dist/collection/components/salla-tabs/utils.js +6 -0
  951. package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
  952. package/dist/collection/components/salla-tel-input/salla-tel-input.css +1302 -0
  953. package/dist/collection/components/salla-tel-input/salla-tel-input.js +259 -0
  954. package/dist/collection/components/salla-verify/salla-verify.css +7 -0
  955. package/dist/collection/components/salla-verify/salla-verify.js +331 -0
  956. package/dist/collection/global/app-dev.js +35 -0
  957. package/dist/collection/global/app.js +10 -0
  958. package/dist/collection/index.js +4 -0
  959. package/dist/collection/interfaces/colors.js +4 -0
  960. package/dist/collection/interfaces/index.js +5 -0
  961. package/dist/collection/interfaces/ratio.js +4 -0
  962. package/dist/{twilight/Helper-7bc9b55a.js → components/Helper.js} +0 -0
  963. package/dist/{twilight/_commonjsHelpers-2819da56.js → components/_commonjsHelpers.js} +1 -24
  964. package/dist/{twilight/anime.es-7317bfe3.js → components/anime.es.js} +2 -3
  965. package/dist/{twilight/arrow-right-1c3e04f2.js → components/arrow-right.js} +0 -0
  966. package/dist/{twilight/cancel-62d59306.js → components/cancel.js} +2 -2
  967. package/dist/{twilight/app-globals-83658112.js → components/index.js} +3283 -8183
  968. package/dist/{twilight/keyboard_arrow_right-37e18eed.js → components/keyboard_arrow_right.js} +0 -0
  969. package/dist/{twilight/mail-9d5204c6.js → components/mail.js} +0 -0
  970. package/dist/components/salla-add-product-button.js +155 -0
  971. package/dist/components/salla-button.js +9 -0
  972. package/dist/{twilight/salla-button.entry.js → components/salla-button2.js} +38 -8
  973. package/dist/components/salla-conditional-fields.js +101 -0
  974. package/dist/components/salla-datetime-picker.js +9 -0
  975. package/dist/{twilight/salla-datetime-picker.entry.js → components/salla-datetime-picker2.js} +80 -24
  976. package/dist/components/salla-file-upload.js +9 -0
  977. package/dist/{twilight/salla-file-upload.entry.js → components/salla-file-upload2.js} +8173 -11215
  978. package/dist/{twilight/salla-gifting.entry.js → components/salla-gifting.js} +147 -14
  979. package/dist/{twilight/salla-infinite-scroll.entry.js → components/salla-infinite-scroll.js} +35 -9
  980. package/dist/components/salla-installment.js +156 -0
  981. package/dist/components/salla-list-tile.js +9 -0
  982. package/dist/{twilight/salla-list-tile.entry.js → components/salla-list-tile2.js} +25 -7
  983. package/dist/components/salla-loading.js +9 -0
  984. package/dist/{twilight/salla-loading.entry.js → components/salla-loading2.js} +28 -8
  985. package/dist/{twilight/salla-localization-modal.entry.js → components/salla-localization-modal.js} +69 -10
  986. package/dist/{twilight/salla-login-modal.entry.js → components/salla-login-modal.js} +73 -12
  987. package/dist/components/salla-loyalty-prize-item.js +42 -0
  988. package/dist/{twilight/salla-loyalty.entry.js → components/salla-loyalty.js} +108 -10
  989. package/dist/components/salla-modal.js +9 -0
  990. package/dist/{twilight/salla-modal.entry.js → components/salla-modal2.js} +58 -13
  991. package/dist/{twilight/salla-offer-modal.entry.js → components/salla-offer-modal.js} +67 -10
  992. package/dist/components/salla-placeholder.js +9 -0
  993. package/dist/{twilight/salla-placeholder.entry.js → components/salla-placeholder2.js} +27 -7
  994. package/dist/components/salla-product-availability.js +9 -0
  995. package/dist/{twilight/salla-product-availability.entry.js → components/salla-product-availability2.js} +55 -9
  996. package/dist/{twilight/salla-product-size-guide.entry.js → components/salla-product-size-guide.js} +78 -9
  997. package/dist/{twilight/salla-quantity-input.entry.js → components/salla-quantity-input.js} +32 -9
  998. package/dist/{twilight/salla-rating-modal.entry.js → components/salla-rating-modal.js} +66 -11
  999. package/dist/components/salla-rating-stars.js +9 -0
  1000. package/dist/{twilight/salla-rating-stars.entry.js → components/salla-rating-stars2.js} +29 -10
  1001. package/dist/components/salla-scopes.js +230 -0
  1002. package/dist/{twilight/salla-search.entry.js → components/salla-search.js} +50 -10
  1003. package/dist/components/salla-select.js +199 -0
  1004. package/dist/components/salla-skeleton.js +9 -0
  1005. package/dist/components/salla-skeleton2.js +53 -0
  1006. package/dist/{twilight/salla-social-share.entry.js → components/salla-social-share.js} +43 -11
  1007. package/dist/components/salla-swiper.js +9 -0
  1008. package/dist/components/salla-swiper2.js +5048 -0
  1009. package/dist/components/salla-tab-content.js +9 -0
  1010. package/dist/components/salla-tab-content2.js +58 -0
  1011. package/dist/components/salla-tab-header.js +9 -0
  1012. package/dist/{twilight/salla-tab-header.entry.js → components/salla-tab-header2.js} +29 -7
  1013. package/dist/components/salla-tabs.js +9 -0
  1014. package/dist/{twilight/salla-tabs.entry.js → components/salla-tabs2.js} +26 -8
  1015. package/dist/components/salla-tel-input.js +9 -0
  1016. package/dist/{twilight/salla-tel-input.entry.js → components/salla-tel-input2.js} +41 -14
  1017. package/dist/components/salla-verify.js +9 -0
  1018. package/dist/{twilight/salla-verify.entry.js → components/salla-verify2.js} +53 -9
  1019. package/dist/{twilight/search-19ea3313.js → components/search.js} +0 -0
  1020. package/dist/{twilight/star2-b134fc74.js → components/star2.js} +0 -0
  1021. package/dist/esm/_commonjsHelpers-1415ffd3.js +24 -0
  1022. package/dist/esm/css-shim-0e7604db.js +7 -0
  1023. package/dist/{twilight → esm}/dom-a1a72c67.js +0 -0
  1024. package/dist/esm/index-0ce70ad2.js +1970 -0
  1025. package/dist/esm/index-f04e787f.js +7514 -0
  1026. package/dist/esm/index.js +3 -0
  1027. package/dist/esm/loader.js +36 -0
  1028. package/dist/esm/polyfills/core-js.js +11 -0
  1029. package/dist/esm/polyfills/css-shim.js +1 -0
  1030. package/dist/esm/polyfills/dom.js +79 -0
  1031. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1032. package/dist/esm/polyfills/index.js +34 -0
  1033. package/dist/esm/polyfills/system.js +6 -0
  1034. package/dist/{twilight → esm}/salla-add-product-button.entry.js +1 -1
  1035. package/dist/esm/salla-button_27.entry.js +27849 -0
  1036. package/dist/{twilight → esm}/salla-conditional-fields.entry.js +1 -1
  1037. package/dist/{twilight → esm}/salla-installment.entry.js +2 -2
  1038. package/dist/{twilight → esm}/salla-loyalty-prize-item.entry.js +2 -2
  1039. package/dist/{twilight → esm}/salla-scopes.entry.js +2 -2
  1040. package/dist/{twilight → esm}/salla-select.entry.js +2 -2
  1041. package/dist/esm/search-19ea3313.js +11 -0
  1042. package/dist/esm/twilight.js +79 -0
  1043. package/dist/esm-es5/_commonjsHelpers-1415ffd3.js +4 -0
  1044. package/dist/esm-es5/css-shim-0e7604db.js +4 -0
  1045. package/dist/esm-es5/dom-a1a72c67.js +24 -0
  1046. package/dist/esm-es5/index-0ce70ad2.js +4 -0
  1047. package/dist/esm-es5/index-f04e787f.js +24 -0
  1048. package/dist/esm-es5/index.js +3 -0
  1049. package/dist/esm-es5/loader.js +4 -0
  1050. package/dist/esm-es5/salla-add-product-button.entry.js +4 -0
  1051. package/dist/esm-es5/salla-button_27.entry.js +34 -0
  1052. package/dist/esm-es5/salla-conditional-fields.entry.js +4 -0
  1053. package/dist/esm-es5/salla-installment.entry.js +4 -0
  1054. package/dist/esm-es5/salla-loyalty-prize-item.entry.js +4 -0
  1055. package/dist/esm-es5/salla-scopes.entry.js +4 -0
  1056. package/dist/esm-es5/salla-select.entry.js +4 -0
  1057. package/dist/esm-es5/search-19ea3313.js +4 -0
  1058. package/dist/esm-es5/twilight.js +4 -0
  1059. package/dist/index.cjs.js +1 -0
  1060. package/dist/index.js +1 -0
  1061. package/dist/twilight/p-0db2b810.entry.js +4 -0
  1062. package/dist/twilight/p-10ac9c79.entry.js +4 -0
  1063. package/dist/twilight/p-13129ac9.entry.js +4 -0
  1064. package/dist/twilight/p-1914490f.system.entry.js +4 -0
  1065. package/dist/twilight/p-1e26972a.js +24 -0
  1066. package/dist/twilight/p-24e726cc.system.entry.js +34 -0
  1067. package/dist/twilight/p-26a23097.system.entry.js +4 -0
  1068. package/dist/twilight/p-3d828bb4.js +4 -0
  1069. package/dist/twilight/p-475ef754.js +4 -0
  1070. package/dist/twilight/p-521b6fde.entry.js +4 -0
  1071. package/dist/twilight/p-5db948f2.js +22 -0
  1072. package/dist/twilight/p-89f1c6be.system.js +24 -0
  1073. package/dist/twilight/p-97daba27.entry.js +4 -0
  1074. package/dist/twilight/p-9beb6b7b.system.js +4 -0
  1075. package/dist/twilight/p-a7caaba3.system.entry.js +4 -0
  1076. package/dist/twilight/p-ad42e3b6.system.js +4 -0
  1077. package/dist/twilight/p-b7610000.system.js +4 -0
  1078. package/dist/twilight/p-bbc94b9b.entry.js +4 -0
  1079. package/dist/twilight/p-ca68752d.js +5 -0
  1080. package/dist/twilight/p-ce3e3fa2.system.entry.js +4 -0
  1081. package/dist/twilight/p-d64f3123.entry.js +22 -0
  1082. package/dist/twilight/p-da69797f.system.js +4 -0
  1083. package/dist/twilight/p-db0ba553.system.js +5 -0
  1084. package/dist/twilight/p-dd9b3c90.system.entry.js +4 -0
  1085. package/dist/twilight/p-e3655a96.system.js +24 -0
  1086. package/dist/twilight/p-f610b6bf.system.entry.js +4 -0
  1087. package/dist/twilight/p-f84bae34.js +4 -0
  1088. package/dist/twilight/p-fd444b25.system.js +4 -0
  1089. package/dist/twilight/twilight.esm.js +1 -130
  1090. package/dist/twilight/twilight.js +133 -0
  1091. package/package.json +3 -3
  1092. package/dist/twilight/css-shim-7e7f1376.js +0 -7
  1093. package/dist/twilight/salla-skeleton.entry.js +0 -34
  1094. package/dist/twilight/salla-swiper.entry.js +0 -11345
  1095. package/dist/twilight/salla-tab-content.entry.js +0 -39
  1096. package/dist/twilight/shadow-css-6bcafb5b.js +0 -390
  1097. package/dist/twilight/twilight.css +0 -5300
@@ -1,27 +1,40 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
+ 'use strict';
5
+
6
+ function _interopNamespace(e) {
7
+ if (e && e.__esModule) return e;
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () {
16
+ return e[k];
17
+ }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n['default'] = e;
23
+ return Object.freeze(n);
24
+ }
25
+
4
26
  const NAMESPACE = 'twilight';
5
- const BUILD = /* twilight */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: false, cssAnnotations: true, cssVarShim: true, devTools: true, disconnectedCallback: false, dynamicImportShim: true, element: false, event: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: true, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: true, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, safari10: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, shadowDomShim: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
6
- const Env = /* twilight */ {};
7
27
 
8
- let scopeId;
9
28
  let contentRef;
10
29
  let hostTagName;
11
- let customError;
12
- let i = 0;
13
30
  let useNativeShadowDom = false;
14
31
  let checkSlotFallbackVisibility = false;
15
32
  let checkSlotRelocate = false;
16
33
  let isSvgMode = false;
17
- let renderingRef = null;
18
- let queueCongestion = 0;
19
34
  let queuePending = false;
20
35
  const win = typeof window !== 'undefined' ? window : {};
21
- const CSS = BUILD.cssVarShim ? win.CSS : null;
36
+ const CSS = win.CSS ;
22
37
  const doc = win.document || { head: {} };
23
- const H = (win.HTMLElement || class {
24
- });
25
38
  const plt = {
26
39
  $flags$: 0,
27
40
  $resourcesUrl$: '',
@@ -31,27 +44,9 @@ const plt = {
31
44
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
32
45
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
33
46
  };
34
- const setPlatformHelpers = (helpers) => {
35
- Object.assign(plt, helpers);
36
- };
37
- const supportsShadow = BUILD.shadowDomShim && BUILD.shadowDom
38
- ? /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
39
- : true;
40
- const supportsListenerOptions = /*@__PURE__*/ (() => {
41
- let supportsListenerOptions = false;
42
- try {
43
- doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
44
- get() {
45
- supportsListenerOptions = true;
46
- },
47
- }));
48
- }
49
- catch (e) { }
50
- return supportsListenerOptions;
51
- })();
47
+ const supportsShadow = true;
52
48
  const promiseResolve = (v) => Promise.resolve(v);
53
- const supportsConstructableStylesheets = BUILD.constructableCSS
54
- ? /*@__PURE__*/ (() => {
49
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
55
50
  try {
56
51
  new CSSStyleSheet();
57
52
  return typeof new CSSStyleSheet().replaceSync === 'function';
@@ -59,31 +54,11 @@ const supportsConstructableStylesheets = BUILD.constructableCSS
59
54
  catch (e) { }
60
55
  return false;
61
56
  })()
62
- : false;
63
- const Context = {};
57
+ ;
64
58
  const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
65
- if (BUILD.hostListener && listeners) {
66
- // this is called immediately within the element's constructor
67
- // initialize our event listeners on the host element
68
- // we do this now so that we can listen to events that may
69
- // have fired even before the instance is ready
70
- if (BUILD.hostListenerTargetParent) {
71
- // this component may have event listeners that should be attached to the parent
72
- if (attachParentListeners) {
73
- // this is being ran from within the connectedCallback
74
- // which is important so that we know the host element actually has a parent element
75
- // filter out the listeners to only have the ones that ARE being attached to the parent
76
- listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
77
- }
78
- else {
79
- // this is being ran from within the component constructor
80
- // everything BUT the parent element listeners should be attached at this time
81
- // filter out the listeners that are NOT being attached to the parent
82
- listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
83
- }
84
- }
59
+ if (listeners) {
85
60
  listeners.map(([flags, name, method]) => {
86
- const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
61
+ const target = getHostListenerTarget(elm, flags) ;
87
62
  const handler = hostListenerProxy(hostRef, method);
88
63
  const opts = hostListenerOpts(flags);
89
64
  plt.ael(target, name, handler, opts);
@@ -93,7 +68,7 @@ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =
93
68
  };
94
69
  const hostListenerProxy = (hostRef, methodName) => (ev) => {
95
70
  try {
96
- if (BUILD.lazyLoad) {
71
+ {
97
72
  if (hostRef.$flags$ & 256 /* isListenReady */) {
98
73
  // instance is ready, let's call it's member method for this event
99
74
  hostRef.$lazyInstance$[methodName](ev);
@@ -102,32 +77,18 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
102
77
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
103
78
  }
104
79
  }
105
- else {
106
- hostRef.$hostElement$[methodName](ev);
107
- }
108
80
  }
109
81
  catch (e) {
110
82
  consoleError(e);
111
83
  }
112
84
  };
113
85
  const getHostListenerTarget = (elm, flags) => {
114
- if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */)
115
- return doc;
116
- if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */)
86
+ if (flags & 8 /* TargetWindow */)
117
87
  return win;
118
- if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */)
119
- return doc.body;
120
- if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */)
121
- return elm.parentElement;
122
88
  return elm;
123
89
  };
124
90
  // prettier-ignore
125
- const hostListenerOpts = (flags) => supportsListenerOptions
126
- ? ({
127
- passive: (flags & 1 /* Passive */) !== 0,
128
- capture: (flags & 2 /* Capture */) !== 0,
129
- })
130
- : (flags & 2 /* Capture */) !== 0;
91
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
131
92
  const CONTENT_REF_ID = 'r';
132
93
  const ORG_LOCATION_ID = 'o';
133
94
  const SLOT_NODE_ID = 's';
@@ -138,91 +99,19 @@ const HYDRATE_CHILD_ID = 'c-id';
138
99
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
139
100
  const XLINK_NS = 'http://www.w3.org/1999/xlink';
140
101
  const createTime = (fnName, tagName = '') => {
141
- if (BUILD.profile && performance.mark) {
142
- const key = `st:${fnName}:${tagName}:${i++}`;
143
- // Start
144
- performance.mark(key);
145
- // End
146
- return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
147
- }
148
- else {
102
+ {
149
103
  return () => {
150
104
  return;
151
105
  };
152
106
  }
153
107
  };
154
108
  const uniqueTime = (key, measureText) => {
155
- if (BUILD.profile && performance.mark) {
156
- if (performance.getEntriesByName(key).length === 0) {
157
- performance.mark(key);
158
- }
159
- return () => {
160
- if (performance.getEntriesByName(measureText).length === 0) {
161
- performance.measure(measureText, key);
162
- }
163
- };
164
- }
165
- else {
109
+ {
166
110
  return () => {
167
111
  return;
168
112
  };
169
113
  }
170
114
  };
171
- const inspect = (ref) => {
172
- const hostRef = getHostRef(ref);
173
- if (!hostRef) {
174
- return undefined;
175
- }
176
- const flags = hostRef.$flags$;
177
- const hostElement = hostRef.$hostElement$;
178
- return {
179
- renderCount: hostRef.$renderCount$,
180
- flags: {
181
- hasRendered: !!(flags & 2 /* hasRendered */),
182
- hasConnected: !!(flags & 1 /* hasConnected */),
183
- isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
184
- isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
185
- isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
186
- hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
187
- hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
188
- isWatchReady: !!(flags & 128 /* isWatchReady */),
189
- isListenReady: !!(flags & 256 /* isListenReady */),
190
- needsRerender: !!(flags & 512 /* needsRerender */),
191
- },
192
- instanceValues: hostRef.$instanceValues$,
193
- ancestorComponent: hostRef.$ancestorComponent$,
194
- hostElement,
195
- lazyInstance: hostRef.$lazyInstance$,
196
- vnode: hostRef.$vnode$,
197
- modeName: hostRef.$modeName$,
198
- onReadyPromise: hostRef.$onReadyPromise$,
199
- onReadyResolve: hostRef.$onReadyResolve$,
200
- onInstancePromise: hostRef.$onInstancePromise$,
201
- onInstanceResolve: hostRef.$onInstanceResolve$,
202
- onRenderResolve: hostRef.$onRenderResolve$,
203
- queuedListeners: hostRef.$queuedListeners$,
204
- rmListeners: hostRef.$rmListeners$,
205
- ['s-id']: hostElement['s-id'],
206
- ['s-cr']: hostElement['s-cr'],
207
- ['s-lr']: hostElement['s-lr'],
208
- ['s-p']: hostElement['s-p'],
209
- ['s-rc']: hostElement['s-rc'],
210
- ['s-sc']: hostElement['s-sc'],
211
- };
212
- };
213
- const installDevTools = () => {
214
- if (BUILD.devTools) {
215
- const stencil = (win.stencil = win.stencil || {});
216
- const originalInspect = stencil.inspect;
217
- stencil.inspect = (ref) => {
218
- let result = inspect(ref);
219
- if (!result && typeof originalInspect === 'function') {
220
- result = originalInspect(ref);
221
- }
222
- return result;
223
- };
224
- }
225
- };
226
115
  const rootAppliedStyles = new WeakMap();
227
116
  const registerStyle = (scopeId, cssText, allowCS) => {
228
117
  let style = styles.get(scopeId);
@@ -241,11 +130,8 @@ const registerStyle = (scopeId, cssText, allowCS) => {
241
130
  styles.set(scopeId, style);
242
131
  };
243
132
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
244
- let scopeId = getScopeId(cmpMeta, mode);
133
+ let scopeId = getScopeId(cmpMeta);
245
134
  const style = styles.get(scopeId);
246
- if (!BUILD.attachStyles) {
247
- return scopeId;
248
- }
249
135
  // if an element is NOT connected then getRootNode() will return the wrong root node
250
136
  // so the fallback is to always use the document for the root node in those cases
251
137
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -258,14 +144,13 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
258
144
  rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
259
145
  }
260
146
  if (!appliedStyles.has(scopeId)) {
261
- if (BUILD.hydrateClientSide &&
262
- styleContainerNode.host &&
147
+ if (styleContainerNode.host &&
263
148
  (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
264
149
  // This is only happening on native shadow-dom, do not needs CSS var shim
265
150
  styleElm.innerHTML = style;
266
151
  }
267
152
  else {
268
- if (BUILD.cssVarShim && plt.$cssShim$) {
153
+ if (plt.$cssShim$) {
269
154
  styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
270
155
  const newScopeId = styleElm['s-sc'];
271
156
  if (newScopeId) {
@@ -280,9 +165,6 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
280
165
  styleElm = doc.createElement('style');
281
166
  styleElm.innerHTML = style;
282
167
  }
283
- if (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) {
284
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId);
285
- }
286
168
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
287
169
  }
288
170
  if (appliedStyles) {
@@ -290,7 +172,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
290
172
  }
291
173
  }
292
174
  }
293
- else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
175
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
294
176
  styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
295
177
  }
296
178
  }
@@ -299,32 +181,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
299
181
  const attachStyles = (hostRef) => {
300
182
  const cmpMeta = hostRef.$cmpMeta$;
301
183
  const elm = hostRef.$hostElement$;
302
- const flags = cmpMeta.$flags$;
303
184
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
304
- const scopeId = addStyle(BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
305
- if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
306
- // only required when we're NOT using native shadow dom (slot)
307
- // or this browser doesn't support native shadow dom
308
- // and this host element was NOT created with SSR
309
- // let's pick out the inner content for slot projection
310
- // create a node to represent where the original
311
- // content was first placed, which is useful later on
312
- // DOM WRITE!!
313
- elm['s-sc'] = scopeId;
314
- elm.classList.add(scopeId + '-h');
315
- if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
316
- elm.classList.add(scopeId + '-s');
317
- }
318
- }
185
+ addStyle(elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
319
186
  endAttachStyles();
320
187
  };
321
- const getScopeId = (cmp, mode) => 'sc-' + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
322
- const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
323
- // Private
324
- const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
325
- // Public
326
- const setMode = (handler) => modeResolutionChain.push(handler);
327
- const getMode = (ref) => getHostRef(ref).$modeName$;
188
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
328
189
  /**
329
190
  * Default style mode id
330
191
  */
@@ -338,7 +199,6 @@ const EMPTY_OBJ = {};
338
199
  */
339
200
  const SVG_NS = 'http://www.w3.org/2000/svg';
340
201
  const HTML_NS = 'http://www.w3.org/1999/xhtml';
341
- const isDef = (v) => v != null;
342
202
  const isComplexType = (o) => {
343
203
  // https://jsperf.com/typeof-fn-object/5
344
204
  o = typeof o;
@@ -372,11 +232,6 @@ const h = (nodeName, vnodeData, ...children) => {
372
232
  if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
373
233
  child = String(child);
374
234
  }
375
- else if (BUILD.isDev && typeof nodeName !== 'function' && child.$flags$ === undefined) {
376
- consoleDevError(`vNode passed as children has unexpected type.
377
- Make sure it's using the correct h() function.
378
- Empty objects can also be the cause, look for JSX comments that became objects.`);
379
- }
380
235
  if (simple && lastSimple) {
381
236
  // If the previous child was simple (string), we merge both
382
237
  vNodeChildren[vNodeChildren.length - 1].$text$ += child;
@@ -391,17 +246,14 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
391
246
  };
392
247
  walk(children);
393
248
  if (vnodeData) {
394
- if (BUILD.isDev && nodeName === 'input') {
395
- validateInputProperties(vnodeData);
396
- }
397
249
  // normalize class / classname attributes
398
- if (BUILD.vdomKey && vnodeData.key) {
250
+ if (vnodeData.key) {
399
251
  key = vnodeData.key;
400
252
  }
401
- if (BUILD.slotRelocation && vnodeData.name) {
253
+ if (vnodeData.name) {
402
254
  slotName = vnodeData.name;
403
255
  }
404
- if (BUILD.vdomClass) {
256
+ {
405
257
  const classData = vnodeData.className || vnodeData.class;
406
258
  if (classData) {
407
259
  vnodeData.class =
@@ -413,24 +265,15 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
413
265
  }
414
266
  }
415
267
  }
416
- if (BUILD.isDev && vNodeChildren.some(isHost)) {
417
- consoleDevError(`The <Host> must be the single root component. Make sure:
418
- - You are NOT using hostData() and <Host> in the same component.
419
- - <Host> is used once, and it's the single root component of the render() function.`);
420
- }
421
- if (BUILD.vdomFunctional && typeof nodeName === 'function') {
422
- // nodeName is a functional component
423
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
424
- }
425
268
  const vnode = newVNode(nodeName, null);
426
269
  vnode.$attrs$ = vnodeData;
427
270
  if (vNodeChildren.length > 0) {
428
271
  vnode.$children$ = vNodeChildren;
429
272
  }
430
- if (BUILD.vdomKey) {
273
+ {
431
274
  vnode.$key$ = key;
432
275
  }
433
- if (BUILD.slotRelocation) {
276
+ {
434
277
  vnode.$name$ = slotName;
435
278
  }
436
279
  return vnode;
@@ -443,67 +286,19 @@ const newVNode = (tag, text) => {
443
286
  $elm$: null,
444
287
  $children$: null,
445
288
  };
446
- if (BUILD.vdomAttribute) {
289
+ {
447
290
  vnode.$attrs$ = null;
448
291
  }
449
- if (BUILD.vdomKey) {
292
+ {
450
293
  vnode.$key$ = null;
451
294
  }
452
- if (BUILD.slotRelocation) {
295
+ {
453
296
  vnode.$name$ = null;
454
297
  }
455
298
  return vnode;
456
299
  };
457
300
  const Host = {};
458
301
  const isHost = (node) => node && node.$tag$ === Host;
459
- const vdomFnUtils = {
460
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
461
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
462
- };
463
- const convertToPublic = (node) => ({
464
- vattrs: node.$attrs$,
465
- vchildren: node.$children$,
466
- vkey: node.$key$,
467
- vname: node.$name$,
468
- vtag: node.$tag$,
469
- vtext: node.$text$,
470
- });
471
- const convertToPrivate = (node) => {
472
- if (typeof node.vtag === 'function') {
473
- const vnodeData = Object.assign({}, node.vattrs);
474
- if (node.vkey) {
475
- vnodeData.key = node.vkey;
476
- }
477
- if (node.vname) {
478
- vnodeData.name = node.vname;
479
- }
480
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
481
- }
482
- const vnode = newVNode(node.vtag, node.vtext);
483
- vnode.$attrs$ = node.vattrs;
484
- vnode.$children$ = node.vchildren;
485
- vnode.$key$ = node.vkey;
486
- vnode.$name$ = node.vname;
487
- return vnode;
488
- };
489
- /**
490
- * Validates the ordering of attributes on an input element
491
- * @param inputElm the element to validate
492
- */
493
- const validateInputProperties = (inputElm) => {
494
- const props = Object.keys(inputElm);
495
- const value = props.indexOf('value');
496
- if (value === -1) {
497
- return;
498
- }
499
- const typeIndex = props.indexOf('type');
500
- const minIndex = props.indexOf('min');
501
- const maxIndex = props.indexOf('max');
502
- const stepIndex = props.indexOf('step');
503
- if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
504
- consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
505
- }
506
- };
507
302
  /**
508
303
  * Production setAccessor() function based on Preact by
509
304
  * Jason Miller (@developit)
@@ -516,19 +311,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
516
311
  if (oldValue !== newValue) {
517
312
  let isProp = isMemberInElement(elm, memberName);
518
313
  let ln = memberName.toLowerCase();
519
- if (BUILD.vdomClass && memberName === 'class') {
314
+ if (memberName === 'class') {
520
315
  const classList = elm.classList;
521
316
  const oldClasses = parseClassList(oldValue);
522
317
  const newClasses = parseClassList(newValue);
523
318
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
524
319
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
525
320
  }
526
- else if (BUILD.vdomStyle && memberName === 'style') {
321
+ else if (memberName === 'style') {
527
322
  // update style attribute, css properties and values
528
- if (BUILD.updatable) {
323
+ {
529
324
  for (const prop in oldValue) {
530
325
  if (!newValue || newValue[prop] == null) {
531
- if (!BUILD.hydrateServerSide && prop.includes('-')) {
326
+ if (prop.includes('-')) {
532
327
  elm.style.removeProperty(prop);
533
328
  }
534
329
  else {
@@ -539,7 +334,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
539
334
  }
540
335
  for (const prop in newValue) {
541
336
  if (!oldValue || newValue[prop] !== oldValue[prop]) {
542
- if (!BUILD.hydrateServerSide && prop.includes('-')) {
337
+ if (prop.includes('-')) {
543
338
  elm.style.setProperty(prop, newValue[prop]);
544
339
  }
545
340
  else {
@@ -548,16 +343,15 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
548
343
  }
549
344
  }
550
345
  }
551
- else if (BUILD.vdomKey && memberName === 'key')
346
+ else if (memberName === 'key')
552
347
  ;
553
- else if (BUILD.vdomRef && memberName === 'ref') {
348
+ else if (memberName === 'ref') {
554
349
  // minifier will clean this up
555
350
  if (newValue) {
556
351
  newValue(elm);
557
352
  }
558
353
  }
559
- else if (BUILD.vdomListener &&
560
- (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) &&
354
+ else if ((!isProp ) &&
561
355
  memberName[0] === 'o' &&
562
356
  memberName[1] === 'n') {
563
357
  // Event Handlers
@@ -596,7 +390,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
596
390
  plt.ael(elm, memberName, newValue, false);
597
391
  }
598
392
  }
599
- else if (BUILD.vdomPropOrAttr) {
393
+ else {
600
394
  // Set property if it exists and it's not a SVG
601
395
  const isComplex = isComplexType(newValue);
602
396
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
@@ -625,7 +419,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
625
419
  * - if the newValue is null/undefined or 'false'.
626
420
  */
627
421
  let xlink = false;
628
- if (BUILD.vdomXlink) {
422
+ {
629
423
  if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
630
424
  memberName = ln;
631
425
  xlink = true;
@@ -633,7 +427,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
633
427
  }
634
428
  if (newValue == null || newValue === false) {
635
429
  if (newValue !== false || elm.getAttribute(memberName) === '') {
636
- if (BUILD.vdomXlink && xlink) {
430
+ if (xlink) {
637
431
  elm.removeAttributeNS(XLINK_NS, memberName);
638
432
  }
639
433
  else {
@@ -643,7 +437,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
643
437
  }
644
438
  else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
645
439
  newValue = newValue === true ? '' : newValue;
646
- if (BUILD.vdomXlink && xlink) {
440
+ if (xlink) {
647
441
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
648
442
  }
649
443
  else {
@@ -664,7 +458,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
664
458
  : newVnode.$elm$;
665
459
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
666
460
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
667
- if (BUILD.updatable) {
461
+ {
668
462
  // remove attributes no longer present on the vnode by setting them to undefined
669
463
  for (memberName in oldVnodeAttrs) {
670
464
  if (!(memberName in newVnodeAttrs)) {
@@ -684,14 +478,10 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
684
478
  let elm;
685
479
  let childNode;
686
480
  let oldVNode;
687
- if (BUILD.slotRelocation && !useNativeShadowDom) {
481
+ if (!useNativeShadowDom) {
688
482
  // remember for later we need to check to relocate nodes
689
483
  checkSlotRelocate = true;
690
484
  if (newVNode.$tag$ === 'slot') {
691
- if (scopeId) {
692
- // scoped css needs to add its scoped id to the parent element
693
- parentElm.classList.add(scopeId + '-s');
694
- }
695
485
  newVNode.$flags$ |= newVNode.$children$
696
486
  ? // slot element has fallback content
697
487
  2 /* isSlotFallback */
@@ -699,46 +489,35 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
699
489
  1 /* isSlotReference */;
700
490
  }
701
491
  }
702
- if (BUILD.isDev && newVNode.$elm$) {
703
- consoleDevError(`The JSX ${newVNode.$text$ !== null ? `"${newVNode.$text$}" text` : `"${newVNode.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`);
704
- }
705
- if (BUILD.vdomText && newVNode.$text$ !== null) {
492
+ if (newVNode.$text$ !== null) {
706
493
  // create text node
707
494
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
708
495
  }
709
- else if (BUILD.slotRelocation && newVNode.$flags$ & 1 /* isSlotReference */) {
496
+ else if (newVNode.$flags$ & 1 /* isSlotReference */) {
710
497
  // create a slot reference node
711
498
  elm = newVNode.$elm$ =
712
- BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode) : doc.createTextNode('');
499
+ doc.createTextNode('');
713
500
  }
714
501
  else {
715
- if (BUILD.svg && !isSvgMode) {
502
+ if (!isSvgMode) {
716
503
  isSvgMode = newVNode.$tag$ === 'svg';
717
504
  }
718
505
  // create element
719
- elm = newVNode.$elm$ = (BUILD.svg
720
- ? doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, BUILD.slotRelocation && newVNode.$flags$ & 2 /* isSlotFallback */
506
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
721
507
  ? 'slot-fb'
722
508
  : newVNode.$tag$)
723
- : doc.createElement(BUILD.slotRelocation && newVNode.$flags$ & 2 /* isSlotFallback */
724
- ? 'slot-fb'
725
- : newVNode.$tag$));
726
- if (BUILD.svg && isSvgMode && newVNode.$tag$ === 'foreignObject') {
509
+ );
510
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
727
511
  isSvgMode = false;
728
512
  }
729
513
  // add css classes, attrs, props, listeners, etc.
730
- if (BUILD.vdomAttribute) {
514
+ {
731
515
  updateElement(null, newVNode, isSvgMode);
732
516
  }
733
- if ((BUILD.shadowDom || BUILD.scoped) && isDef(scopeId) && elm['s-si'] !== scopeId) {
734
- // if there is a scopeId and this is the initial render
735
- // then let's add the scopeId as a css class
736
- elm.classList.add((elm['s-si'] = scopeId));
737
- }
738
517
  if (newVNode.$children$) {
739
518
  for (i = 0; i < newVNode.$children$.length; ++i) {
740
519
  // create the node
741
- childNode = createElm(oldParentVNode, newVNode, i, elm);
520
+ childNode = createElm(oldParentVNode, newVNode, i);
742
521
  // return node could have been null
743
522
  if (childNode) {
744
523
  // append our new node
@@ -746,7 +525,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
746
525
  }
747
526
  }
748
527
  }
749
- if (BUILD.svg) {
528
+ {
750
529
  if (newVNode.$tag$ === 'svg') {
751
530
  // Only reset the SVG context when we're exiting <svg> element
752
531
  isSvgMode = false;
@@ -757,7 +536,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
757
536
  }
758
537
  }
759
538
  }
760
- if (BUILD.slotRelocation) {
539
+ {
761
540
  elm['s-hn'] = hostTagName;
762
541
  if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
763
542
  // remember the content reference comment
@@ -802,17 +581,14 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
802
581
  plt.$flags$ &= ~1 /* isTmpDisconnected */;
803
582
  };
804
583
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
805
- let containerElm = ((BUILD.slotRelocation && parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
584
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
806
585
  let childNode;
807
- if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
808
- containerElm = containerElm.shadowRoot;
809
- }
810
586
  for (; startIdx <= endIdx; ++startIdx) {
811
587
  if (vnodes[startIdx]) {
812
- childNode = createElm(null, parentVNode, startIdx, parentElm);
588
+ childNode = createElm(null, parentVNode, startIdx);
813
589
  if (childNode) {
814
590
  vnodes[startIdx].$elm$ = childNode;
815
- containerElm.insertBefore(childNode, BUILD.slotRelocation ? referenceNode(before) : before);
591
+ containerElm.insertBefore(childNode, referenceNode(before) );
816
592
  }
817
593
  }
818
594
  }
@@ -822,7 +598,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
822
598
  if ((vnode = vnodes[startIdx])) {
823
599
  elm = vnode.$elm$;
824
600
  callNodeRefs(vnode);
825
- if (BUILD.slotRelocation) {
601
+ {
826
602
  // we're removing this element
827
603
  // so it's possible we need to show slot fallback content now
828
604
  checkSlotFallbackVisibility = true;
@@ -880,7 +656,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
880
656
  }
881
657
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
882
658
  // Vnode moved right
883
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
659
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
884
660
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
885
661
  }
886
662
  patch(oldStartVnode, newEndVnode);
@@ -890,7 +666,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
890
666
  }
891
667
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
892
668
  // Vnode moved left
893
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
669
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
894
670
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
895
671
  }
896
672
  patch(oldEndVnode, newStartVnode);
@@ -901,7 +677,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
901
677
  else {
902
678
  // createKeyToOldIdx
903
679
  idxInOld = -1;
904
- if (BUILD.vdomKey) {
680
+ {
905
681
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
906
682
  if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
907
683
  idxInOld = i;
@@ -909,10 +685,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
909
685
  }
910
686
  }
911
687
  }
912
- if (BUILD.vdomKey && idxInOld >= 0) {
688
+ if (idxInOld >= 0) {
913
689
  elmToMove = oldCh[idxInOld];
914
690
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
915
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
691
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
916
692
  }
917
693
  else {
918
694
  patch(elmToMove, newStartVnode);
@@ -923,23 +699,20 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
923
699
  }
924
700
  else {
925
701
  // new element
926
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
702
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
927
703
  newStartVnode = newCh[++newStartIdx];
928
704
  }
929
705
  if (node) {
930
- if (BUILD.slotRelocation) {
706
+ {
931
707
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
932
708
  }
933
- else {
934
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
935
- }
936
709
  }
937
710
  }
938
711
  }
939
712
  if (oldStartIdx > oldEndIdx) {
940
713
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
941
714
  }
942
- else if (BUILD.updatable && newStartIdx > newEndIdx) {
715
+ else if (newStartIdx > newEndIdx) {
943
716
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
944
717
  }
945
718
  };
@@ -947,13 +720,12 @@ const isSameVnode = (vnode1, vnode2) => {
947
720
  // compare if two vnode to see if they're "technically" the same
948
721
  // need to have the same element tag, and same key to be the same
949
722
  if (vnode1.$tag$ === vnode2.$tag$) {
950
- if (BUILD.slotRelocation && vnode1.$tag$ === 'slot') {
723
+ if (vnode1.$tag$ === 'slot') {
951
724
  return vnode1.$name$ === vnode2.$name$;
952
725
  }
953
- if (BUILD.vdomKey) {
726
+ {
954
727
  return vnode1.$key$ === vnode2.$key$;
955
728
  }
956
- return true;
957
729
  }
958
730
  return false;
959
731
  };
@@ -972,15 +744,15 @@ const patch = (oldVNode, newVNode) => {
972
744
  const tag = newVNode.$tag$;
973
745
  const text = newVNode.$text$;
974
746
  let defaultHolder;
975
- if (!BUILD.vdomText || text === null) {
976
- if (BUILD.svg) {
747
+ if (text === null) {
748
+ {
977
749
  // test if we're rendering an svg element, or still rendering nodes inside of one
978
750
  // only add this to the when the compiler sees we're using an svg somewhere
979
751
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
980
752
  }
981
753
  // element node
982
- if (BUILD.vdomAttribute || BUILD.reflect) {
983
- if (BUILD.slot && tag === 'slot')
754
+ {
755
+ if (tag === 'slot')
984
756
  ;
985
757
  else {
986
758
  // either this is the first render of an element OR it's an update
@@ -989,32 +761,32 @@ const patch = (oldVNode, newVNode) => {
989
761
  updateElement(oldVNode, newVNode, isSvgMode);
990
762
  }
991
763
  }
992
- if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
764
+ if (oldChildren !== null && newChildren !== null) {
993
765
  // looks like there's child vnodes for both the old and new vnodes
994
766
  updateChildren(elm, oldChildren, newVNode, newChildren);
995
767
  }
996
768
  else if (newChildren !== null) {
997
769
  // no old child vnodes, but there are new child vnodes to add
998
- if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
770
+ if (oldVNode.$text$ !== null) {
999
771
  // the old vnode was text, so be sure to clear it out
1000
772
  elm.textContent = '';
1001
773
  }
1002
774
  // add the new vnode children
1003
775
  addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1004
776
  }
1005
- else if (BUILD.updatable && oldChildren !== null) {
777
+ else if (oldChildren !== null) {
1006
778
  // no new child vnodes, but there are old child vnodes to remove
1007
779
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1008
780
  }
1009
- if (BUILD.svg && isSvgMode && tag === 'svg') {
781
+ if (isSvgMode && tag === 'svg') {
1010
782
  isSvgMode = false;
1011
783
  }
1012
784
  }
1013
- else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm['s-cr'])) {
785
+ else if ((defaultHolder = elm['s-cr'])) {
1014
786
  // this element has slotted content
1015
787
  defaultHolder.parentNode.textContent = text;
1016
788
  }
1017
- else if (BUILD.vdomText && oldVNode.$text$ !== text) {
789
+ else if (oldVNode.$text$ !== text) {
1018
790
  // update the text content for the text only vnode
1019
791
  // and also only if the text is different than before
1020
792
  elm.data = text;
@@ -1152,7 +924,7 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1152
924
  return slotNameAttr === '';
1153
925
  };
1154
926
  const callNodeRefs = (vNode) => {
1155
- if (BUILD.vdomRef) {
927
+ {
1156
928
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1157
929
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
1158
930
  }
@@ -1163,41 +935,23 @@ const renderVdom = (hostRef, renderFnResults) => {
1163
935
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1164
936
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1165
937
  hostTagName = hostElm.tagName;
1166
- // <Host> runtime check
1167
- if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
1168
- throw new Error(`The <Host> must be the single root component.
1169
- Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
1170
-
1171
- The render() function should look like this instead:
1172
-
1173
- render() {
1174
- // Do not return an array
1175
- return (
1176
- <Host>{content}</Host>
1177
- );
1178
- }
1179
- `);
1180
- }
1181
- if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
938
+ if (cmpMeta.$attrsToReflect$) {
1182
939
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1183
940
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1184
941
  }
1185
942
  rootVnode.$tag$ = null;
1186
943
  rootVnode.$flags$ |= 4 /* isHost */;
1187
944
  hostRef.$vnode$ = rootVnode;
1188
- rootVnode.$elm$ = oldVNode.$elm$ = (BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm);
1189
- if (BUILD.scoped || BUILD.shadowDom) {
1190
- scopeId = hostElm['s-sc'];
1191
- }
1192
- if (BUILD.slotRelocation) {
945
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
946
+ {
1193
947
  contentRef = hostElm['s-cr'];
1194
- useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
948
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1195
949
  // always reset
1196
950
  checkSlotFallbackVisibility = false;
1197
951
  }
1198
952
  // synchronous patch
1199
953
  patch(oldVNode, rootVnode);
1200
- if (BUILD.slotRelocation) {
954
+ {
1201
955
  // while we're moving nodes around existing nodes, temporarily disable
1202
956
  // the disconnectCallback from working
1203
957
  plt.$flags$ |= 1 /* isTmpDisconnected */;
@@ -1217,9 +971,7 @@ render() {
1217
971
  // add a reference node marking this node's original location
1218
972
  // keep a reference to this node for later lookups
1219
973
  orgLocationNode =
1220
- BUILD.isDebug || BUILD.hydrateServerSide
1221
- ? originalLocationDebugNode(nodeToRelocate)
1222
- : doc.createTextNode('');
974
+ doc.createTextNode('');
1223
975
  orgLocationNode['s-nr'] = nodeToRelocate;
1224
976
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1225
977
  }
@@ -1276,21 +1028,11 @@ render() {
1276
1028
  relocateNodes.length = 0;
1277
1029
  }
1278
1030
  };
1279
- // slot comment debug nodes only created with the `--debug` flag
1280
- // otherwise these nodes are text nodes w/out content
1281
- const slotReferenceDebugNode = (slotVNode) => doc.createComment(`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ''}> (host=${hostTagName.toLowerCase()})`);
1282
- const originalLocationDebugNode = (nodeToRelocate) => doc.createComment(`org-location for ` +
1283
- (nodeToRelocate.localName
1284
- ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate['s-hn']})`
1285
- : `[${nodeToRelocate.textContent}]`));
1286
- const getElement = (ref) => (BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref);
1031
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1287
1032
  const createEvent = (ref, name, flags) => {
1288
1033
  const elm = getElement(ref);
1289
1034
  return {
1290
1035
  emit: (detail) => {
1291
- if (BUILD.isDev && !elm.isConnected) {
1292
- consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
1293
- }
1294
1036
  return emitEvent(elm, name, {
1295
1037
  bubbles: !!(flags & 4 /* Bubbles */),
1296
1038
  composed: !!(flags & 2 /* Composed */),
@@ -1313,15 +1055,15 @@ const emitEvent = (elm, name, opts) => {
1313
1055
  return ev;
1314
1056
  };
1315
1057
  const attachToAncestor = (hostRef, ancestorComponent) => {
1316
- if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1058
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1317
1059
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1318
1060
  }
1319
1061
  };
1320
1062
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1321
- if (BUILD.taskQueue && BUILD.updatable) {
1063
+ {
1322
1064
  hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1323
1065
  }
1324
- if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1066
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1325
1067
  hostRef.$flags$ |= 512 /* needsRerender */;
1326
1068
  return;
1327
1069
  }
@@ -1330,36 +1072,24 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
1330
1072
  // has already fired off its lifecycle update then
1331
1073
  // fire off the initial update
1332
1074
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1333
- return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
1075
+ return writeTask(dispatch) ;
1334
1076
  };
1335
1077
  const dispatchHooks = (hostRef, isInitialLoad) => {
1336
- const elm = hostRef.$hostElement$;
1337
1078
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1338
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1079
+ const instance = hostRef.$lazyInstance$ ;
1339
1080
  let promise;
1340
1081
  if (isInitialLoad) {
1341
- if (BUILD.lazyLoad && BUILD.hostListener) {
1082
+ {
1342
1083
  hostRef.$flags$ |= 256 /* isListenReady */;
1343
1084
  if (hostRef.$queuedListeners$) {
1344
1085
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1345
1086
  hostRef.$queuedListeners$ = null;
1346
1087
  }
1347
1088
  }
1348
- emitLifecycleEvent(elm, 'componentWillLoad');
1349
- if (BUILD.cmpWillLoad) {
1089
+ {
1350
1090
  promise = safeCall(instance, 'componentWillLoad');
1351
1091
  }
1352
1092
  }
1353
- else {
1354
- emitLifecycleEvent(elm, 'componentWillUpdate');
1355
- if (BUILD.cmpWillUpdate) {
1356
- promise = safeCall(instance, 'componentWillUpdate');
1357
- }
1358
- }
1359
- emitLifecycleEvent(elm, 'componentWillRender');
1360
- if (BUILD.cmpWillRender) {
1361
- promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1362
- }
1363
1093
  endSchedule();
1364
1094
  return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1365
1095
  };
@@ -1368,46 +1098,18 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1368
1098
  const elm = hostRef.$hostElement$;
1369
1099
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1370
1100
  const rc = elm['s-rc'];
1371
- if (BUILD.style && isInitialLoad) {
1101
+ if (isInitialLoad) {
1372
1102
  // DOM WRITE!
1373
1103
  attachStyles(hostRef);
1374
1104
  }
1375
1105
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1376
- if (BUILD.isDev) {
1377
- hostRef.$flags$ |= 1024 /* devOnRender */;
1378
- }
1379
- if (BUILD.hydrateServerSide) {
1380
- await callRender(hostRef, instance, elm);
1106
+ {
1107
+ callRender(hostRef, instance);
1381
1108
  }
1382
- else {
1383
- callRender(hostRef, instance, elm);
1384
- }
1385
- if (BUILD.cssVarShim && plt.$cssShim$) {
1109
+ if (plt.$cssShim$) {
1386
1110
  plt.$cssShim$.updateHost(elm);
1387
1111
  }
1388
- if (BUILD.isDev) {
1389
- hostRef.$renderCount$++;
1390
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1391
- }
1392
- if (BUILD.hydrateServerSide) {
1393
- try {
1394
- // manually connected child components during server-side hydrate
1395
- serverSideConnected(elm);
1396
- if (isInitialLoad) {
1397
- // using only during server-side hydrate
1398
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1399
- elm['s-en'] = '';
1400
- }
1401
- else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
1402
- elm['s-en'] = 'c';
1403
- }
1404
- }
1405
- }
1406
- catch (e) {
1407
- consoleError(e, elm);
1408
- }
1409
- }
1410
- if (BUILD.asyncLoading && rc) {
1112
+ if (rc) {
1411
1113
  // ok, so turns out there are some child host elements
1412
1114
  // waiting on this parent element to load
1413
1115
  // let's fire off all update callbacks waiting
@@ -1416,7 +1118,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1416
1118
  }
1417
1119
  endRender();
1418
1120
  endUpdate();
1419
- if (BUILD.asyncLoading) {
1121
+ {
1420
1122
  const childrenPromises = elm['s-p'];
1421
1123
  const postUpdate = () => postUpdateComponent(hostRef);
1422
1124
  if (childrenPromises.length === 0) {
@@ -1428,117 +1130,67 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1428
1130
  childrenPromises.length = 0;
1429
1131
  }
1430
1132
  }
1431
- else {
1432
- postUpdateComponent(hostRef);
1433
- }
1434
1133
  };
1435
1134
  const callRender = (hostRef, instance, elm) => {
1436
- // in order for bundlers to correctly treeshake the BUILD object
1437
- // we need to ensure BUILD is not deoptimized within a try/catch
1438
- // https://rollupjs.org/guide/en/#treeshake tryCatchDeoptimization
1439
- const allRenderFn = BUILD.allRenderFn ? true : false;
1440
- const lazyLoad = BUILD.lazyLoad ? true : false;
1441
- const taskQueue = BUILD.taskQueue ? true : false;
1442
- const updatable = BUILD.updatable ? true : false;
1443
1135
  try {
1444
- renderingRef = instance;
1445
- instance = allRenderFn ? instance.render() : instance.render && instance.render();
1446
- if (updatable && taskQueue) {
1136
+ instance = instance.render() ;
1137
+ {
1447
1138
  hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1448
1139
  }
1449
- if (updatable || lazyLoad) {
1140
+ {
1450
1141
  hostRef.$flags$ |= 2 /* hasRendered */;
1451
1142
  }
1452
- if (BUILD.hasRenderFn || BUILD.reflect) {
1453
- if (BUILD.vdomRender || BUILD.reflect) {
1143
+ {
1144
+ {
1454
1145
  // looks like we've got child nodes to render into this host element
1455
1146
  // or we need to update the css class/attrs on the host element
1456
1147
  // DOM WRITE!
1457
- if (BUILD.hydrateServerSide) {
1458
- return Promise.resolve(instance).then((value) => renderVdom(hostRef, value));
1459
- }
1460
- else {
1148
+ {
1461
1149
  renderVdom(hostRef, instance);
1462
1150
  }
1463
1151
  }
1464
- else {
1465
- elm.textContent = instance;
1466
- }
1467
1152
  }
1468
1153
  }
1469
1154
  catch (e) {
1470
1155
  consoleError(e, hostRef.$hostElement$);
1471
1156
  }
1472
- renderingRef = null;
1473
1157
  return null;
1474
1158
  };
1475
- const getRenderingRef = () => renderingRef;
1476
1159
  const postUpdateComponent = (hostRef) => {
1477
1160
  const tagName = hostRef.$cmpMeta$.$tagName$;
1478
1161
  const elm = hostRef.$hostElement$;
1479
1162
  const endPostUpdate = createTime('postUpdate', tagName);
1480
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1163
+ const instance = hostRef.$lazyInstance$ ;
1481
1164
  const ancestorComponent = hostRef.$ancestorComponent$;
1482
- if (BUILD.cmpDidRender) {
1483
- if (BUILD.isDev) {
1484
- hostRef.$flags$ |= 1024 /* devOnRender */;
1485
- }
1165
+ {
1486
1166
  safeCall(instance, 'componentDidRender');
1487
- if (BUILD.isDev) {
1488
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1489
- }
1490
1167
  }
1491
- emitLifecycleEvent(elm, 'componentDidRender');
1492
1168
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1493
1169
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1494
- if (BUILD.asyncLoading && BUILD.cssAnnotations) {
1170
+ {
1495
1171
  // DOM WRITE!
1496
1172
  addHydratedFlag(elm);
1497
1173
  }
1498
- if (BUILD.cmpDidLoad) {
1499
- if (BUILD.isDev) {
1500
- hostRef.$flags$ |= 2048 /* devOnDidLoad */;
1501
- }
1174
+ {
1502
1175
  safeCall(instance, 'componentDidLoad');
1503
- if (BUILD.isDev) {
1504
- hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
1505
- }
1506
1176
  }
1507
- emitLifecycleEvent(elm, 'componentDidLoad');
1508
1177
  endPostUpdate();
1509
- if (BUILD.asyncLoading) {
1178
+ {
1510
1179
  hostRef.$onReadyResolve$(elm);
1511
1180
  if (!ancestorComponent) {
1512
- appDidLoad(tagName);
1181
+ appDidLoad();
1513
1182
  }
1514
1183
  }
1515
1184
  }
1516
1185
  else {
1517
- if (BUILD.cmpDidUpdate) {
1518
- // we've already loaded this component
1519
- // fire off the user's componentDidUpdate method (if one was provided)
1520
- // componentDidUpdate runs AFTER render() has been called
1521
- // and all child components have finished updating
1522
- if (BUILD.isDev) {
1523
- hostRef.$flags$ |= 1024 /* devOnRender */;
1524
- }
1525
- safeCall(instance, 'componentDidUpdate');
1526
- if (BUILD.isDev) {
1527
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1528
- }
1529
- }
1530
- emitLifecycleEvent(elm, 'componentDidUpdate');
1531
1186
  endPostUpdate();
1532
1187
  }
1533
- if (BUILD.hotModuleReplacement) {
1534
- elm['s-hmr-load'] && elm['s-hmr-load']();
1535
- }
1536
- if (BUILD.method && BUILD.lazyLoad) {
1188
+ {
1537
1189
  hostRef.$onInstanceResolve$(elm);
1538
1190
  }
1539
1191
  // load events fire from bottom to top
1540
1192
  // the deepest elements load first then bubbles up
1541
- if (BUILD.asyncLoading) {
1193
+ {
1542
1194
  if (hostRef.$onRenderResolve$) {
1543
1195
  hostRef.$onRenderResolve$();
1544
1196
  hostRef.$onRenderResolve$ = undefined;
@@ -1552,32 +1204,13 @@ const postUpdateComponent = (hostRef) => {
1552
1204
  // ( •_•)>⌐■-■
1553
1205
  // (⌐■_■)
1554
1206
  };
1555
- const forceUpdate = (ref) => {
1556
- if (BUILD.updatable) {
1557
- const hostRef = getHostRef(ref);
1558
- const isConnected = hostRef.$hostElement$.isConnected;
1559
- if (isConnected &&
1560
- (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1561
- scheduleUpdate(hostRef, false);
1562
- }
1563
- // Returns "true" when the forced update was successfully scheduled
1564
- return isConnected;
1565
- }
1566
- return false;
1567
- };
1568
1207
  const appDidLoad = (who) => {
1569
1208
  // on appload
1570
1209
  // we have finish the first big initial render
1571
- if (BUILD.cssAnnotations) {
1210
+ {
1572
1211
  addHydratedFlag(doc.documentElement);
1573
1212
  }
1574
- if (BUILD.asyncQueue) {
1575
- plt.$flags$ |= 2 /* appLoaded */;
1576
- }
1577
1213
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1578
- if (BUILD.profile && performance.measure) {
1579
- performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, 'st:app:start');
1580
- }
1581
1214
  };
1582
1215
  const safeCall = (instance, method, arg) => {
1583
1216
  if (instance && instance[method]) {
@@ -1593,40 +1226,14 @@ const safeCall = (instance, method, arg) => {
1593
1226
  const then = (promise, thenFn) => {
1594
1227
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1595
1228
  };
1596
- const emitLifecycleEvent = (elm, lifecycleName) => {
1597
- if (BUILD.lifecycleDOMEvents) {
1598
- emitEvent(elm, 'stencil_' + lifecycleName, {
1599
- bubbles: true,
1600
- composed: true,
1601
- detail: {
1602
- namespace: NAMESPACE,
1603
- },
1604
- });
1605
- }
1606
- };
1607
- const addHydratedFlag = (elm) => BUILD.hydratedClass
1608
- ? elm.classList.add('hydrated')
1609
- : BUILD.hydratedAttribute
1610
- ? elm.setAttribute('hydrated', '')
1611
- : undefined;
1612
- const serverSideConnected = (elm) => {
1613
- const children = elm.children;
1614
- if (children != null) {
1615
- for (let i = 0, ii = children.length; i < ii; i++) {
1616
- const childElm = children[i];
1617
- if (typeof childElm.connectedCallback === 'function') {
1618
- childElm.connectedCallback();
1619
- }
1620
- serverSideConnected(childElm);
1621
- }
1622
- }
1623
- };
1229
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1230
+ ;
1624
1231
  const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1625
1232
  const endHydrate = createTime('hydrateClient', tagName);
1626
1233
  const shadowRoot = hostElm.shadowRoot;
1627
1234
  const childRenderNodes = [];
1628
1235
  const slotNodes = [];
1629
- const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
1236
+ const shadowRootNodes = null;
1630
1237
  const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
1631
1238
  if (!plt.$orgLocNodes$) {
1632
1239
  initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
@@ -1650,13 +1257,6 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1650
1257
  }
1651
1258
  plt.$orgLocNodes$.delete(orgLocationId);
1652
1259
  });
1653
- if (BUILD.shadowDom && shadowRoot) {
1654
- shadowRootNodes.map((shadowRootNode) => {
1655
- if (shadowRootNode) {
1656
- shadowRoot.appendChild(shadowRootNode);
1657
- }
1658
- });
1659
- }
1660
1260
  endHydrate();
1661
1261
  };
1662
1262
  const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
@@ -1760,22 +1360,6 @@ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes
1760
1360
  node['s-sn'] = '';
1761
1361
  }
1762
1362
  node['s-sr'] = true;
1763
- if (BUILD.shadowDom && shadowRootNodes) {
1764
- // browser support shadowRoot and this is a shadow dom component
1765
- // create an actual slot element
1766
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1767
- if (childVNode.$name$) {
1768
- // add the slot name attribute
1769
- childVNode.$elm$.setAttribute('name', childVNode.$name$);
1770
- }
1771
- // insert the new slot element before the slot comment
1772
- node.parentNode.insertBefore(childVNode.$elm$, node);
1773
- // remove the slot comment since it's not needed for shadow
1774
- node.remove();
1775
- if (childVNode.$depth$ === '0') {
1776
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1777
- }
1778
- }
1779
1363
  slotNodes.push(childVNode);
1780
1364
  if (!parentVNode.$children$) {
1781
1365
  parentVNode.$children$ = [];
@@ -1784,11 +1368,7 @@ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes
1784
1368
  }
1785
1369
  else if (childNodeType === CONTENT_REF_ID) {
1786
1370
  // `${CONTENT_REF_ID}.${hostId}`;
1787
- if (BUILD.shadowDom && shadowRootNodes) {
1788
- // remove the content ref comment since it's not needed for shadow
1789
- node.remove();
1790
- }
1791
- else if (BUILD.slotRelocation) {
1371
+ {
1792
1372
  hostElm['s-cr'] = node;
1793
1373
  node['s-cn'] = true;
1794
1374
  }
@@ -1852,16 +1432,16 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
1852
1432
  const parsePropertyValue = (propValue, propType) => {
1853
1433
  // ensure this value is of the correct prop type
1854
1434
  if (propValue != null && !isComplexType(propValue)) {
1855
- if (BUILD.propBoolean && propType & 4 /* Boolean */) {
1435
+ if (propType & 4 /* Boolean */) {
1856
1436
  // per the HTML spec, any string value means it is a boolean true value
1857
1437
  // but we'll cheat here and say that the string "false" is the boolean false
1858
1438
  return propValue === 'false' ? false : propValue === '' || !!propValue;
1859
1439
  }
1860
- if (BUILD.propNumber && propType & 2 /* Number */) {
1440
+ if (propType & 2 /* Number */) {
1861
1441
  // force it to be a number
1862
1442
  return parseFloat(propValue);
1863
1443
  }
1864
- if (BUILD.propString && propType & 1 /* String */) {
1444
+ if (propType & 1 /* String */) {
1865
1445
  // could have been passed as a number or boolean
1866
1446
  // but we still want it as a string
1867
1447
  return String(propValue);
@@ -1877,29 +1457,21 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
1877
1457
  const setValue = (ref, propName, newVal, cmpMeta) => {
1878
1458
  // check our new property value against our internal value
1879
1459
  const hostRef = getHostRef(ref);
1880
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
1460
+ const elm = hostRef.$hostElement$ ;
1881
1461
  const oldVal = hostRef.$instanceValues$.get(propName);
1882
1462
  const flags = hostRef.$flags$;
1883
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1463
+ const instance = hostRef.$lazyInstance$ ;
1884
1464
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1885
1465
  // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1886
1466
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1887
1467
  const didValueChange = newVal !== oldVal && !areBothNaN;
1888
- if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1468
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1889
1469
  // gadzooks! the property's value has changed!!
1890
1470
  // set our new value!
1891
1471
  hostRef.$instanceValues$.set(propName, newVal);
1892
- if (BUILD.isDev) {
1893
- if (hostRef.$flags$ & 1024 /* devOnRender */) {
1894
- consoleDevWarn(`The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
1895
- }
1896
- else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
1897
- consoleDevWarn(`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
1898
- }
1899
- }
1900
- if (!BUILD.lazyLoad || instance) {
1472
+ if (instance) {
1901
1473
  // get an array of method names of watch functions to call
1902
- if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1474
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1903
1475
  const watchMethods = cmpMeta.$watchers$[propName];
1904
1476
  if (watchMethods) {
1905
1477
  // this instance is watching for when this property changed
@@ -1914,13 +1486,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1914
1486
  });
1915
1487
  }
1916
1488
  }
1917
- if (BUILD.updatable &&
1918
- (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1919
- if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
1920
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1921
- return;
1922
- }
1923
- }
1489
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1924
1490
  // looks like this value actually changed, so we've got work to do!
1925
1491
  // but only if we've already rendered, otherwise just chill out
1926
1492
  // queue that we need to do an update, but don't worry about queuing
@@ -1931,17 +1497,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1931
1497
  }
1932
1498
  };
1933
1499
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1934
- if (BUILD.member && cmpMeta.$members$) {
1935
- if (BUILD.watchCallback && Cstr.watchers) {
1500
+ if (cmpMeta.$members$) {
1501
+ if (Cstr.watchers) {
1936
1502
  cmpMeta.$watchers$ = Cstr.watchers;
1937
1503
  }
1938
1504
  // It's better to have a const than two Object.entries()
1939
1505
  const members = Object.entries(cmpMeta.$members$);
1940
1506
  const prototype = Cstr.prototype;
1941
1507
  members.map(([memberName, [memberFlags]]) => {
1942
- if ((BUILD.prop || BUILD.state) &&
1943
- (memberFlags & 31 /* Prop */ ||
1944
- ((!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1508
+ if ((memberFlags & 31 /* Prop */ ||
1509
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1945
1510
  // proxyComponent - prop
1946
1511
  Object.defineProperty(prototype, memberName, {
1947
1512
  get() {
@@ -1949,21 +1514,6 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1949
1514
  return getValue(this, memberName);
1950
1515
  },
1951
1516
  set(newValue) {
1952
- // only during dev time
1953
- if (BUILD.isDev) {
1954
- const ref = getHostRef(this);
1955
- if (
1956
- // we are proxying the instance (not element)
1957
- (flags & 1 /* isElementConstructor */) === 0 &&
1958
- // the element is not constructing
1959
- (ref.$flags$ & 8 /* isConstructingInstance */) === 0 &&
1960
- // the member is a prop
1961
- (memberFlags & 31 /* Prop */) !== 0 &&
1962
- // the member is not mutable
1963
- (memberFlags & 1024 /* Mutable */) === 0) {
1964
- consoleDevWarn(`@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`);
1965
- }
1966
- }
1967
1517
  // proxyComponent, set value
1968
1518
  setValue(this, memberName, newValue, cmpMeta);
1969
1519
  },
@@ -1971,9 +1521,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1971
1521
  enumerable: true,
1972
1522
  });
1973
1523
  }
1974
- else if (BUILD.lazyLoad &&
1975
- BUILD.method &&
1976
- flags & 1 /* isElementConstructor */ &&
1524
+ else if (flags & 1 /* isElementConstructor */ &&
1977
1525
  memberFlags & 64 /* Method */) {
1978
1526
  // proxyComponent - method
1979
1527
  Object.defineProperty(prototype, memberName, {
@@ -1984,7 +1532,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1984
1532
  });
1985
1533
  }
1986
1534
  });
1987
- if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
1535
+ if ((flags & 1 /* isElementConstructor */)) {
1988
1536
  const attrNameToPropName = new Map();
1989
1537
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1990
1538
  plt.jmp(() => {
@@ -2044,7 +1592,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
2044
1592
  .map(([propName, m]) => {
2045
1593
  const attrName = m[1] || propName;
2046
1594
  attrNameToPropName.set(attrName, propName);
2047
- if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
1595
+ if (m[0] & 512 /* ReflectAttr */) {
2048
1596
  cmpMeta.$attrsToReflect$.push([propName, attrName]);
2049
1597
  }
2050
1598
  return attrName;
@@ -2055,29 +1603,25 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
2055
1603
  };
2056
1604
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
2057
1605
  // initializeComponent
2058
- if ((BUILD.lazyLoad || BUILD.hydrateServerSide || BUILD.style) &&
2059
- (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2060
- if (BUILD.lazyLoad || BUILD.hydrateClientSide) {
1606
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1607
+ {
2061
1608
  // we haven't initialized this element yet
2062
1609
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2063
1610
  // lazy loaded components
2064
1611
  // request the component's implementation to be
2065
1612
  // wired up with the host element
2066
- Cstr = loadModule(cmpMeta, hostRef, hmrVersionId);
1613
+ Cstr = loadModule(cmpMeta);
2067
1614
  if (Cstr.then) {
2068
1615
  // Await creates a micro-task avoid if possible
2069
- const endLoad = uniqueTime(`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`, `[Stencil] Load module for <${cmpMeta.$tagName$}>`);
1616
+ const endLoad = uniqueTime();
2070
1617
  Cstr = await Cstr;
2071
1618
  endLoad();
2072
1619
  }
2073
- if ((BUILD.isDev || BUILD.isDebug) && !Cstr) {
2074
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2075
- }
2076
- if (BUILD.member && !Cstr.isProxied) {
1620
+ if (!Cstr.isProxied) {
2077
1621
  // we've never proxied this Constructor before
2078
1622
  // let's add the getters/setters to its prototype before
2079
1623
  // the first time we create an instance of the implementation
2080
- if (BUILD.watchCallback) {
1624
+ {
2081
1625
  cmpMeta.$watchers$ = Cstr.watchers;
2082
1626
  }
2083
1627
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
@@ -2087,7 +1631,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
2087
1631
  // ok, time to construct the instance
2088
1632
  // but let's keep track of when we start and stop
2089
1633
  // so that the getters/setters don't incorrectly step on data
2090
- if (BUILD.member) {
1634
+ {
2091
1635
  hostRef.$flags$ |= 8 /* isConstructingInstance */;
2092
1636
  }
2093
1637
  // construct the lazy-loaded component implementation
@@ -2100,42 +1644,20 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
2100
1644
  catch (e) {
2101
1645
  consoleError(e);
2102
1646
  }
2103
- if (BUILD.member) {
1647
+ {
2104
1648
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
2105
1649
  }
2106
- if (BUILD.watchCallback) {
1650
+ {
2107
1651
  hostRef.$flags$ |= 128 /* isWatchReady */;
2108
1652
  }
2109
1653
  endNewInstance();
2110
- fireConnectedCallback(hostRef.$lazyInstance$);
2111
1654
  }
2112
- else {
2113
- // sync constructor component
2114
- Cstr = elm.constructor;
2115
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2116
- // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
2117
- // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
2118
- // Stencil has completed instantiating the component.
2119
- customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* isWatchReady */));
2120
- }
2121
- if (BUILD.style && Cstr.style) {
1655
+ if (Cstr.style) {
2122
1656
  // this component has styles but we haven't registered them yet
2123
1657
  let style = Cstr.style;
2124
- if (BUILD.mode && typeof style !== 'string') {
2125
- style = style[(hostRef.$modeName$ = computeMode(elm))];
2126
- if (BUILD.hydrateServerSide && hostRef.$modeName$) {
2127
- elm.setAttribute('s-mode', hostRef.$modeName$);
2128
- }
2129
- }
2130
- const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
1658
+ const scopeId = getScopeId(cmpMeta);
2131
1659
  if (!styles.has(scopeId)) {
2132
1660
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
2133
- if (!BUILD.hydrateServerSide &&
2134
- BUILD.shadowDom &&
2135
- BUILD.shadowDomShim &&
2136
- cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2137
- style = await __sc_import_twilight('./shadow-css-6bcafb5b.js').then((m) => m.scopeCss(style, scopeId, false));
2138
- }
2139
1661
  registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2140
1662
  endRegisterStyles();
2141
1663
  }
@@ -2144,7 +1666,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
2144
1666
  // we've successfully created a lazy instance
2145
1667
  const ancestorComponent = hostRef.$ancestorComponent$;
2146
1668
  const schedule = () => scheduleUpdate(hostRef, true);
2147
- if (BUILD.asyncLoading && ancestorComponent && ancestorComponent['s-rc']) {
1669
+ if (ancestorComponent && ancestorComponent['s-rc']) {
2148
1670
  // this is the initial load and this component it has an ancestor component
2149
1671
  // but the ancestor component has NOT fired its will update lifecycle yet
2150
1672
  // so let's just cool our jets and wait for the ancestor to continue first
@@ -2157,56 +1679,38 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
2157
1679
  schedule();
2158
1680
  }
2159
1681
  };
2160
- const fireConnectedCallback = (instance) => {
2161
- if (BUILD.lazyLoad && BUILD.connectedCallback) {
2162
- safeCall(instance, 'connectedCallback');
2163
- }
2164
- };
2165
1682
  const connectedCallback = (elm) => {
2166
1683
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2167
1684
  const hostRef = getHostRef(elm);
2168
1685
  const cmpMeta = hostRef.$cmpMeta$;
2169
1686
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
2170
- if (BUILD.hostListenerTargetParent) {
2171
- // only run if we have listeners being attached to a parent
2172
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
2173
- }
2174
1687
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2175
1688
  // first time this component has connected
2176
1689
  hostRef.$flags$ |= 1 /* hasConnected */;
2177
1690
  let hostId;
2178
- if (BUILD.hydrateClientSide) {
1691
+ {
2179
1692
  hostId = elm.getAttribute(HYDRATE_ID);
2180
1693
  if (hostId) {
2181
- if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2182
- const scopeId = BUILD.mode
2183
- ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute('s-mode'))
2184
- : addStyle(elm.shadowRoot, cmpMeta);
2185
- elm.classList.remove(scopeId + '-h', scopeId + '-s');
2186
- }
2187
1694
  initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2188
1695
  }
2189
1696
  }
2190
- if (BUILD.slotRelocation && !hostId) {
1697
+ if (!hostId) {
2191
1698
  // initUpdate
2192
1699
  // if the slot polyfill is required we'll need to put some nodes
2193
1700
  // in here to act as original content anchors as we move nodes around
2194
1701
  // host element has been connected to the DOM
2195
- if (BUILD.hydrateServerSide ||
2196
- ((BUILD.slot || BUILD.shadowDom) &&
2197
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1702
+ if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
2198
1703
  setContentReference(elm);
2199
1704
  }
2200
1705
  }
2201
- if (BUILD.asyncLoading) {
1706
+ {
2202
1707
  // find the first ancestor component (if there is one) and register
2203
1708
  // this component as one of the actively loading child components for its ancestor
2204
1709
  let ancestorComponent = elm;
2205
1710
  while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2206
1711
  // climb up the ancestors looking for the first
2207
1712
  // component that hasn't finished its lifecycle update yet
2208
- if ((BUILD.hydrateClientSide &&
2209
- ancestorComponent.nodeType === 1 /* ElementNode */ &&
1713
+ if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
2210
1714
  ancestorComponent.hasAttribute('s-id') &&
2211
1715
  ancestorComponent['s-p']) ||
2212
1716
  ancestorComponent['s-p']) {
@@ -2219,7 +1723,7 @@ const connectedCallback = (elm) => {
2219
1723
  }
2220
1724
  // Lazy properties
2221
1725
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2222
- if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
1726
+ if (cmpMeta.$members$) {
2223
1727
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2224
1728
  if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2225
1729
  const value = elm[memberName];
@@ -2228,14 +1732,7 @@ const connectedCallback = (elm) => {
2228
1732
  }
2229
1733
  });
2230
1734
  }
2231
- if (BUILD.initializeNextTick) {
2232
- // connectedCallback, taskQueue, initialLoad
2233
- // angular sets attribute AFTER connectCallback
2234
- // https://github.com/angular/angular/issues/18909
2235
- // https://github.com/angular/angular/issues/19940
2236
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2237
- }
2238
- else {
1735
+ {
2239
1736
  initializeComponent(elm, hostRef, cmpMeta);
2240
1737
  }
2241
1738
  }
@@ -2243,9 +1740,7 @@ const connectedCallback = (elm) => {
2243
1740
  // not the first time this has connected
2244
1741
  // reattach any event listeners to the host
2245
1742
  // since they would have been removed when disconnected
2246
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
2247
- // fire off connectedCallback() on component instance
2248
- fireConnectedCallback(hostRef.$lazyInstance$);
1743
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2249
1744
  }
2250
1745
  endConnected();
2251
1746
  }
@@ -2257,316 +1752,27 @@ const setContentReference = (elm) => {
2257
1752
  // let's pick out the inner content for slot projection
2258
1753
  // create a node to represent where the original
2259
1754
  // content was first placed, which is useful later on
2260
- const contentRefElm = (elm['s-cr'] = doc.createComment(BUILD.isDebug ? `content-ref (host=${elm.localName})` : ''));
1755
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
2261
1756
  contentRefElm['s-cn'] = true;
2262
1757
  elm.insertBefore(contentRefElm, elm.firstChild);
2263
1758
  };
2264
1759
  const disconnectedCallback = (elm) => {
2265
1760
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2266
1761
  const hostRef = getHostRef(elm);
2267
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
2268
- if (BUILD.hostListener) {
1762
+ {
2269
1763
  if (hostRef.$rmListeners$) {
2270
1764
  hostRef.$rmListeners$.map((rmListener) => rmListener());
2271
1765
  hostRef.$rmListeners$ = undefined;
2272
1766
  }
2273
1767
  }
2274
1768
  // clear CSS var-shim tracking
2275
- if (BUILD.cssVarShim && plt.$cssShim$) {
1769
+ if (plt.$cssShim$) {
2276
1770
  plt.$cssShim$.removeHost(elm);
2277
1771
  }
2278
- if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
2279
- safeCall(instance, 'disconnectedCallback');
2280
- }
2281
- if (BUILD.cmpDidUnload) {
2282
- safeCall(instance, 'componentDidUnload');
2283
- }
2284
- }
2285
- };
2286
- const defineCustomElement = (Cstr, compactMeta) => {
2287
- customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
2288
- };
2289
- const proxyCustomElement = (Cstr, compactMeta) => {
2290
- const cmpMeta = {
2291
- $flags$: compactMeta[0],
2292
- $tagName$: compactMeta[1],
2293
- };
2294
- if (BUILD.member) {
2295
- cmpMeta.$members$ = compactMeta[2];
2296
- }
2297
- if (BUILD.hostListener) {
2298
- cmpMeta.$listeners$ = compactMeta[3];
2299
- }
2300
- if (BUILD.watchCallback) {
2301
- cmpMeta.$watchers$ = Cstr.$watchers$;
2302
- }
2303
- if (BUILD.reflect) {
2304
- cmpMeta.$attrsToReflect$ = [];
2305
- }
2306
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2307
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2308
- }
2309
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
2310
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2311
- Object.assign(Cstr.prototype, {
2312
- __registerHost() {
2313
- registerHost(this, cmpMeta);
2314
- },
2315
- connectedCallback() {
2316
- connectedCallback(this);
2317
- if (BUILD.connectedCallback && originalConnectedCallback) {
2318
- originalConnectedCallback.call(this);
2319
- }
2320
- },
2321
- disconnectedCallback() {
2322
- disconnectedCallback(this);
2323
- if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
2324
- originalDisconnectedCallback.call(this);
2325
- }
2326
- },
2327
- __attachShadow() {
2328
- if (supportsShadow) {
2329
- if (BUILD.shadowDelegatesFocus) {
2330
- this.attachShadow({
2331
- mode: 'open',
2332
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
2333
- });
2334
- }
2335
- else {
2336
- this.attachShadow({ mode: 'open' });
2337
- }
2338
- }
2339
- else {
2340
- this.shadowRoot = this;
2341
- }
2342
- },
2343
- });
2344
- Cstr.is = cmpMeta.$tagName$;
2345
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2346
- };
2347
- const forceModeUpdate = (elm) => {
2348
- if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
2349
- const mode = computeMode(elm);
2350
- const hostRef = getHostRef(elm);
2351
- if (hostRef.$modeName$ !== mode) {
2352
- const cmpMeta = hostRef.$cmpMeta$;
2353
- const oldScopeId = elm['s-sc'];
2354
- const scopeId = getScopeId(cmpMeta, mode);
2355
- const style = elm.constructor.style[mode];
2356
- const flags = cmpMeta.$flags$;
2357
- if (style) {
2358
- if (!styles.has(scopeId)) {
2359
- registerStyle(scopeId, style, !!(flags & 1 /* shadowDomEncapsulation */));
2360
- }
2361
- hostRef.$modeName$ = mode;
2362
- elm.classList.remove(oldScopeId + '-h', oldScopeId + '-s');
2363
- attachStyles(hostRef);
2364
- forceUpdate(elm);
2365
- }
2366
- }
2367
1772
  }
2368
1773
  };
2369
- const hmrStart = (elm, cmpMeta, hmrVersionId) => {
2370
- // ¯\_(ツ)_/¯
2371
- const hostRef = getHostRef(elm);
2372
- // reset state flags to only have been connected
2373
- hostRef.$flags$ = 1 /* hasConnected */;
2374
- // TODO
2375
- // detatch any event listeners that may have been added
2376
- // because we're not passing an exact event name it'll
2377
- // remove all of this element's event, which is good
2378
- // create a callback for when this component finishes hmr
2379
- elm['s-hmr-load'] = () => {
2380
- // finished hmr for this element
2381
- delete elm['s-hmr-load'];
2382
- };
2383
- // re-initialize the component
2384
- initializeComponent(elm, hostRef, cmpMeta, hmrVersionId);
2385
- };
2386
- const patchCloneNode = (HostElementPrototype) => {
2387
- const orgCloneNode = HostElementPrototype.cloneNode;
2388
- HostElementPrototype.cloneNode = function (deep) {
2389
- const srcNode = this;
2390
- const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
2391
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
2392
- if (BUILD.slot && !isShadowDom && deep) {
2393
- let i = 0;
2394
- let slotted, nonStencilNode;
2395
- const stencilPrivates = [
2396
- 's-id',
2397
- 's-cr',
2398
- 's-lr',
2399
- 's-rc',
2400
- 's-sc',
2401
- 's-p',
2402
- 's-cn',
2403
- 's-sr',
2404
- 's-sn',
2405
- 's-hn',
2406
- 's-ol',
2407
- 's-nr',
2408
- 's-si',
2409
- ];
2410
- for (; i < srcNode.childNodes.length; i++) {
2411
- slotted = srcNode.childNodes[i]['s-nr'];
2412
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
2413
- if (slotted) {
2414
- if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
2415
- clonedNode.__appendChild(slotted.cloneNode(true));
2416
- }
2417
- else {
2418
- clonedNode.appendChild(slotted.cloneNode(true));
2419
- }
2420
- }
2421
- if (nonStencilNode) {
2422
- clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
2423
- }
2424
- }
2425
- }
2426
- return clonedNode;
2427
- };
2428
- };
2429
- const patchSlotAppendChild = (HostElementPrototype) => {
2430
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2431
- HostElementPrototype.appendChild = function (newChild) {
2432
- const slotName = (newChild['s-sn'] = getSlotName(newChild));
2433
- const slotNode = getHostSlotNode(this.childNodes, slotName);
2434
- if (slotNode) {
2435
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2436
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2437
- return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
2438
- }
2439
- return this.__appendChild(newChild);
2440
- };
2441
- };
2442
- /**
2443
- * Patches the text content of an unnamed slotted node inside a scoped component
2444
- * @param hostElementPrototype the `Element` to be patched
2445
- * @param cmpMeta component runtime metadata used to determine if the component should be patched or not
2446
- */
2447
- const patchTextContent = (hostElementPrototype, cmpMeta) => {
2448
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2449
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');
2450
- Object.defineProperty(hostElementPrototype, '__textContent', descriptor);
2451
- Object.defineProperty(hostElementPrototype, 'textContent', {
2452
- get() {
2453
- var _a;
2454
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
2455
- // the empty string
2456
- const slotNode = getHostSlotNode(this.childNodes, '');
2457
- // when a slot node is found, the textContent _may_ be found in the next sibling (text) node, depending on how
2458
- // nodes were reordered during the vdom render. first try to get the text content from the sibling.
2459
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2460
- return slotNode.nextSibling.textContent;
2461
- }
2462
- else if (slotNode) {
2463
- return slotNode.textContent;
2464
- }
2465
- else {
2466
- // fallback to the original implementation
2467
- return this.__textContent;
2468
- }
2469
- },
2470
- set(value) {
2471
- var _a;
2472
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
2473
- // the empty string
2474
- const slotNode = getHostSlotNode(this.childNodes, '');
2475
- // when a slot node is found, the textContent _may_ need to be placed in the next sibling (text) node,
2476
- // depending on how nodes were reordered during the vdom render. first try to set the text content on the
2477
- // sibling.
2478
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2479
- slotNode.nextSibling.textContent = value;
2480
- }
2481
- else if (slotNode) {
2482
- slotNode.textContent = value;
2483
- }
2484
- else {
2485
- // we couldn't find a slot, but that doesn't mean that there isn't one. if this check ran before the DOM
2486
- // loaded, we could have missed it. check for a content reference element on the scoped component and insert
2487
- // it there
2488
- this.__textContent = value;
2489
- const contentRefElm = this['s-cr'];
2490
- if (contentRefElm) {
2491
- this.insertBefore(contentRefElm, this.firstChild);
2492
- }
2493
- }
2494
- },
2495
- });
2496
- }
2497
- };
2498
- const patchChildSlotNodes = (elm, cmpMeta) => {
2499
- class FakeNodeList extends Array {
2500
- item(n) {
2501
- return this[n];
2502
- }
2503
- }
2504
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2505
- const childNodesFn = elm.__lookupGetter__('childNodes');
2506
- Object.defineProperty(elm, 'children', {
2507
- get() {
2508
- return this.childNodes.map((n) => n.nodeType === 1);
2509
- },
2510
- });
2511
- Object.defineProperty(elm, 'childElementCount', {
2512
- get() {
2513
- return elm.children.length;
2514
- },
2515
- });
2516
- Object.defineProperty(elm, 'childNodes', {
2517
- get() {
2518
- const childNodes = childNodesFn.call(this);
2519
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 &&
2520
- getHostRef(this).$flags$ & 2 /* hasRendered */) {
2521
- const result = new FakeNodeList();
2522
- for (let i = 0; i < childNodes.length; i++) {
2523
- const slot = childNodes[i]['s-nr'];
2524
- if (slot) {
2525
- result.push(slot);
2526
- }
2527
- }
2528
- return result;
2529
- }
2530
- return FakeNodeList.from(childNodes);
2531
- },
2532
- });
2533
- }
2534
- };
2535
- const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
2536
- /**
2537
- * Recursively searches a series of child nodes for a slot with the provided name.
2538
- * @param childNodes the nodes to search for a slot with a specific name.
2539
- * @param slotName the name of the slot to match on.
2540
- * @returns a reference to the slot node that matches the provided name, `null` otherwise
2541
- */
2542
- const getHostSlotNode = (childNodes, slotName) => {
2543
- let i = 0;
2544
- let childNode;
2545
- for (; i < childNodes.length; i++) {
2546
- childNode = childNodes[i];
2547
- if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
2548
- return childNode;
2549
- }
2550
- childNode = getHostSlotNode(childNode.childNodes, slotName);
2551
- if (childNode) {
2552
- return childNode;
2553
- }
2554
- }
2555
- return null;
2556
- };
2557
- const getHostSlotChildNodes = (n, slotName) => {
2558
- const childNodes = [n];
2559
- while ((n = n.nextSibling) && n['s-sn'] === slotName) {
2560
- childNodes.push(n);
2561
- }
2562
- return childNodes;
2563
- };
2564
1774
  const bootstrapLazy = (lazyBundles, options = {}) => {
2565
- if (BUILD.profile && performance.mark) {
2566
- performance.mark('st:app:start');
2567
- }
2568
- installDevTools();
2569
- const endBootstrap = createTime('bootstrapLazy');
1775
+ const endBootstrap = createTime();
2570
1776
  const cmpTags = [];
2571
1777
  const exclude = options.exclude || [];
2572
1778
  const customElements = win.customElements;
@@ -2574,27 +1780,15 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2574
1780
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2575
1781
  const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
2576
1782
  const deferredConnectedCallbacks = [];
2577
- const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2578
1783
  let appLoadFallback;
2579
1784
  let isBootstrapping = true;
2580
- let i = 0;
2581
1785
  Object.assign(plt, options);
2582
1786
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2583
- if (BUILD.asyncQueue) {
2584
- if (options.syncQueue) {
2585
- plt.$flags$ |= 4 /* queueSync */;
2586
- }
2587
- }
2588
- if (BUILD.hydrateClientSide) {
1787
+ {
2589
1788
  // If the app is already hydrated there is not point to disable the
2590
1789
  // async queue. This will improve the first input delay
2591
1790
  plt.$flags$ |= 2 /* appLoaded */;
2592
1791
  }
2593
- if (BUILD.hydrateClientSide && BUILD.shadowDom) {
2594
- for (; i < styles.length; i++) {
2595
- registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
2596
- }
2597
- }
2598
1792
  lazyBundles.map((lazyBundle) => {
2599
1793
  lazyBundle[1].map((compactMeta) => {
2600
1794
  const cmpMeta = {
@@ -2603,24 +1797,19 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2603
1797
  $members$: compactMeta[2],
2604
1798
  $listeners$: compactMeta[3],
2605
1799
  };
2606
- if (BUILD.member) {
1800
+ {
2607
1801
  cmpMeta.$members$ = compactMeta[2];
2608
1802
  }
2609
- if (BUILD.hostListener) {
1803
+ {
2610
1804
  cmpMeta.$listeners$ = compactMeta[3];
2611
1805
  }
2612
- if (BUILD.reflect) {
1806
+ {
2613
1807
  cmpMeta.$attrsToReflect$ = [];
2614
1808
  }
2615
- if (BUILD.watchCallback) {
1809
+ {
2616
1810
  cmpMeta.$watchers$ = {};
2617
1811
  }
2618
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2619
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2620
- }
2621
- const tagName = BUILD.transformTagName && options.transformTagName
2622
- ? options.transformTagName(cmpMeta.$tagName$)
2623
- : cmpMeta.$tagName$;
1812
+ const tagName = cmpMeta.$tagName$;
2624
1813
  const HostElement = class extends HTMLElement {
2625
1814
  // StencilLazyHost
2626
1815
  constructor(self) {
@@ -2628,29 +1817,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2628
1817
  super(self);
2629
1818
  self = this;
2630
1819
  registerHost(self, cmpMeta);
2631
- if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2632
- // this component is using shadow dom
2633
- // and this browser supports shadow dom
2634
- // add the read-only property "shadowRoot" to the host element
2635
- // adding the shadow root build conditionals to minimize runtime
2636
- if (supportsShadow) {
2637
- if (BUILD.shadowDelegatesFocus) {
2638
- self.attachShadow({
2639
- mode: 'open',
2640
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
2641
- });
2642
- }
2643
- else {
2644
- self.attachShadow({ mode: 'open' });
2645
- }
2646
- }
2647
- else if (!BUILD.hydrateServerSide && !('shadowRoot' in self)) {
2648
- self.shadowRoot = self;
2649
- }
2650
- }
2651
- if (BUILD.slotChildNodesFix) {
2652
- patchChildSlotNodes(self, cmpMeta);
2653
- }
2654
1820
  }
2655
1821
  connectedCallback() {
2656
1822
  if (appLoadFallback) {
@@ -2672,20 +1838,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2672
1838
  return getHostRef(this).$onReadyPromise$;
2673
1839
  }
2674
1840
  };
2675
- if (BUILD.cloneNodeFix) {
2676
- patchCloneNode(HostElement.prototype);
2677
- }
2678
- if (BUILD.appendChildSlotFix) {
2679
- patchSlotAppendChild(HostElement.prototype);
2680
- }
2681
- if (BUILD.hotModuleReplacement) {
2682
- HostElement.prototype['s-hmr'] = function (hmrVersionId) {
2683
- hmrStart(this, cmpMeta, hmrVersionId);
2684
- };
2685
- }
2686
- if (BUILD.scopedSlotTextContentFix) {
2687
- patchTextContent(HostElement.prototype, cmpMeta);
2688
- }
2689
1841
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
2690
1842
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2691
1843
  cmpTags.push(tagName);
@@ -2693,7 +1845,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2693
1845
  }
2694
1846
  });
2695
1847
  });
2696
- if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
1848
+ {
2697
1849
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
2698
1850
  visibilityStyle.setAttribute('data-styles', '');
2699
1851
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
@@ -2704,211 +1856,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2704
1856
  deferredConnectedCallbacks.map((host) => host.connectedCallback());
2705
1857
  }
2706
1858
  else {
2707
- if (BUILD.profile) {
2708
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30, 'timeout')));
2709
- }
2710
- else {
1859
+ {
2711
1860
  plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2712
1861
  }
2713
1862
  }
2714
1863
  // Fallback appLoad event
2715
1864
  endBootstrap();
2716
1865
  };
2717
- const getAssetPath = (path) => {
2718
- const assetUrl = new URL(path, plt.$resourcesUrl$);
2719
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
2720
- };
2721
- const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
2722
- const getConnect = (_ref, tagName) => {
2723
- const componentOnReady = () => {
2724
- let elm = doc.querySelector(tagName);
2725
- if (!elm) {
2726
- elm = doc.createElement(tagName);
2727
- doc.body.appendChild(elm);
2728
- }
2729
- return typeof elm.componentOnReady === 'function' ? elm.componentOnReady() : Promise.resolve(elm);
2730
- };
2731
- const create = (...args) => {
2732
- return componentOnReady().then((el) => el.create(...args));
2733
- };
2734
- return {
2735
- create,
2736
- componentOnReady,
2737
- };
2738
- };
2739
- const getContext = (_elm, context) => {
2740
- if (context in Context) {
2741
- return Context[context];
2742
- }
2743
- else if (context === 'window') {
2744
- return win;
2745
- }
2746
- else if (context === 'document') {
2747
- return doc;
2748
- }
2749
- else if (context === 'isServer' || context === 'isPrerender') {
2750
- return BUILD.hydrateServerSide ? true : false;
2751
- }
2752
- else if (context === 'isClient') {
2753
- return BUILD.hydrateServerSide ? false : true;
2754
- }
2755
- else if (context === 'resourcesUrl' || context === 'publicPath') {
2756
- return getAssetPath('.');
2757
- }
2758
- else if (context === 'queue') {
2759
- return {
2760
- write: writeTask,
2761
- read: readTask,
2762
- tick: {
2763
- then(cb) {
2764
- return nextTick(cb);
2765
- },
2766
- },
2767
- };
2768
- }
2769
- return undefined;
2770
- };
2771
- const insertVdomAnnotations = (doc, staticComponents) => {
2772
- if (doc != null) {
2773
- const docData = {
2774
- hostIds: 0,
2775
- rootLevelIds: 0,
2776
- staticComponents: new Set(staticComponents),
2777
- };
2778
- const orgLocationNodes = [];
2779
- parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
2780
- orgLocationNodes.forEach((orgLocationNode) => {
2781
- if (orgLocationNode != null) {
2782
- const nodeRef = orgLocationNode['s-nr'];
2783
- let hostId = nodeRef['s-host-id'];
2784
- let nodeId = nodeRef['s-node-id'];
2785
- let childId = `${hostId}.${nodeId}`;
2786
- if (hostId == null) {
2787
- hostId = 0;
2788
- docData.rootLevelIds++;
2789
- nodeId = docData.rootLevelIds;
2790
- childId = `${hostId}.${nodeId}`;
2791
- if (nodeRef.nodeType === 1 /* ElementNode */) {
2792
- nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2793
- }
2794
- else if (nodeRef.nodeType === 3 /* TextNode */) {
2795
- if (hostId === 0) {
2796
- const textContent = nodeRef.nodeValue.trim();
2797
- if (textContent === '') {
2798
- // useless whitespace node at the document root
2799
- orgLocationNode.remove();
2800
- return;
2801
- }
2802
- }
2803
- const commentBeforeTextNode = doc.createComment(childId);
2804
- commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2805
- nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
2806
- }
2807
- }
2808
- let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
2809
- const orgLocationParentNode = orgLocationNode.parentElement;
2810
- if (orgLocationParentNode) {
2811
- if (orgLocationParentNode['s-en'] === '') {
2812
- // ending with a "." means that the parent element
2813
- // of this node's original location is a SHADOW dom element
2814
- // and this node is apart of the root level light dom
2815
- orgLocationNodeId += `.`;
2816
- }
2817
- else if (orgLocationParentNode['s-en'] === 'c') {
2818
- // ending with a ".c" means that the parent element
2819
- // of this node's original location is a SCOPED element
2820
- // and this node is apart of the root level light dom
2821
- orgLocationNodeId += `.c`;
2822
- }
2823
- }
2824
- orgLocationNode.nodeValue = orgLocationNodeId;
2825
- }
2826
- });
2827
- }
2828
- };
2829
- const parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
2830
- if (node == null) {
2831
- return;
2832
- }
2833
- if (node['s-nr'] != null) {
2834
- orgLocationNodes.push(node);
2835
- }
2836
- if (node.nodeType === 1 /* ElementNode */) {
2837
- node.childNodes.forEach((childNode) => {
2838
- const hostRef = getHostRef(childNode);
2839
- if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
2840
- const cmpData = {
2841
- nodeIds: 0,
2842
- };
2843
- insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
2844
- }
2845
- parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
2846
- });
2847
- }
2848
- };
2849
- const insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
2850
- if (vnode != null) {
2851
- const hostId = ++docData.hostIds;
2852
- hostElm.setAttribute(HYDRATE_ID, hostId);
2853
- if (hostElm['s-cr'] != null) {
2854
- hostElm['s-cr'].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
2855
- }
2856
- if (vnode.$children$ != null) {
2857
- const depth = 0;
2858
- vnode.$children$.forEach((vnodeChild, index) => {
2859
- insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
2860
- });
2861
- }
2862
- if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute('c-id')) {
2863
- const parent = hostElm.parentElement;
2864
- if (parent && parent.childNodes) {
2865
- const parentChildNodes = Array.from(parent.childNodes);
2866
- const comment = parentChildNodes.find((node) => node.nodeType === 8 /* CommentNode */ && node['s-sr']);
2867
- if (comment) {
2868
- const index = parentChildNodes.indexOf(hostElm) - 1;
2869
- vnode.$elm$.setAttribute(HYDRATE_CHILD_ID, `${comment['s-host-id']}.${comment['s-node-id']}.0.${index}`);
2870
- }
2871
- }
2872
- }
2873
- }
2874
- };
2875
- const insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
2876
- const childElm = vnodeChild.$elm$;
2877
- if (childElm == null) {
2878
- return;
2879
- }
2880
- const nodeId = cmpData.nodeIds++;
2881
- const childId = `${hostId}.${nodeId}.${depth}.${index}`;
2882
- childElm['s-host-id'] = hostId;
2883
- childElm['s-node-id'] = nodeId;
2884
- if (childElm.nodeType === 1 /* ElementNode */) {
2885
- childElm.setAttribute(HYDRATE_CHILD_ID, childId);
2886
- }
2887
- else if (childElm.nodeType === 3 /* TextNode */) {
2888
- const parentNode = childElm.parentNode;
2889
- const nodeName = parentNode.nodeName;
2890
- if (nodeName !== 'STYLE' && nodeName !== 'SCRIPT') {
2891
- const textNodeId = `${TEXT_NODE_ID}.${childId}`;
2892
- const commentBeforeTextNode = doc.createComment(textNodeId);
2893
- parentNode.insertBefore(commentBeforeTextNode, childElm);
2894
- }
2895
- }
2896
- else if (childElm.nodeType === 8 /* CommentNode */) {
2897
- if (childElm['s-sr']) {
2898
- const slotName = childElm['s-sn'] || '';
2899
- const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
2900
- childElm.nodeValue = slotNodeId;
2901
- }
2902
- }
2903
- if (vnodeChild.$children$ != null) {
2904
- const childDepth = depth + 1;
2905
- vnodeChild.$children$.forEach((vnode, index) => {
2906
- insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index);
2907
- });
2908
- }
2909
- };
2910
- const setPlatformOptions = (opts) => Object.assign(plt, opts);
2911
- const Fragment = (_, children) => children;
2912
1866
  const hostRefs = new WeakMap();
2913
1867
  const getHostRef = (ref) => hostRefs.get(ref);
2914
1868
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -2919,63 +1873,81 @@ const registerHost = (elm, cmpMeta) => {
2919
1873
  $cmpMeta$: cmpMeta,
2920
1874
  $instanceValues$: new Map(),
2921
1875
  };
2922
- if (BUILD.isDev) {
2923
- hostRef.$renderCount$ = 0;
2924
- }
2925
- if (BUILD.method && BUILD.lazyLoad) {
1876
+ {
2926
1877
  hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2927
1878
  }
2928
- if (BUILD.asyncLoading) {
1879
+ {
2929
1880
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2930
1881
  elm['s-p'] = [];
2931
1882
  elm['s-rc'] = [];
2932
1883
  }
2933
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
1884
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2934
1885
  return hostRefs.set(elm, hostRef);
2935
1886
  };
2936
1887
  const isMemberInElement = (elm, memberName) => memberName in elm;
2937
- const consoleError = (e, el) => (customError || console.error)(e, el);
2938
- const STENCIL_DEV_MODE = BUILD.isTesting
2939
- ? ['STENCIL:'] // E2E testing
2940
- : [
2941
- '%cstencil',
2942
- 'color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px',
2943
- ];
2944
- const consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
2945
- const consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
2946
- const consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
2947
- const setErrorHandler = (handler) => (customError = handler);
1888
+ const consoleError = (e, el) => (0, console.error)(e, el);
2948
1889
  const cmpModules = /*@__PURE__*/ new Map();
2949
1890
  const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2950
1891
  // loadModuleImport
2951
1892
  const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2952
1893
  const bundleId = cmpMeta.$lazyBundleId$;
2953
- if (BUILD.isDev && typeof bundleId !== 'string') {
2954
- consoleDevError(`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`);
2955
- return undefined;
2956
- }
2957
- const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
1894
+ const module = cmpModules.get(bundleId) ;
2958
1895
  if (module) {
2959
1896
  return module[exportName];
2960
1897
  }
2961
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2962
- return __sc_import_twilight(
1898
+
1899
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1900
+ const processMod = importedModule => {
1901
+ cmpModules.set(bundleId, importedModule);
1902
+ return importedModule[exportName];
1903
+ }
1904
+ switch(bundleId) {
1905
+
1906
+ case 'salla-button_27.cjs':
1907
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1908
+ /* webpackMode: "lazy" */
1909
+ './salla-button_27.cjs.entry.js')); }).then(processMod, consoleError);
1910
+ case 'salla-add-product-button.cjs':
1911
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1912
+ /* webpackMode: "lazy" */
1913
+ './salla-add-product-button.cjs.entry.js')); }).then(processMod, consoleError);
1914
+ case 'salla-conditional-fields.cjs':
1915
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1916
+ /* webpackMode: "lazy" */
1917
+ './salla-conditional-fields.cjs.entry.js')); }).then(processMod, consoleError);
1918
+ case 'salla-installment.cjs':
1919
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1920
+ /* webpackMode: "lazy" */
1921
+ './salla-installment.cjs.entry.js')); }).then(processMod, consoleError);
1922
+ case 'salla-loyalty-prize-item.cjs':
1923
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1924
+ /* webpackMode: "lazy" */
1925
+ './salla-loyalty-prize-item.cjs.entry.js')); }).then(processMod, consoleError);
1926
+ case 'salla-scopes.cjs':
1927
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1928
+ /* webpackMode: "lazy" */
1929
+ './salla-scopes.cjs.entry.js')); }).then(processMod, consoleError);
1930
+ case 'salla-select.cjs':
1931
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1932
+ /* webpackMode: "lazy" */
1933
+ './salla-select.cjs.entry.js')); }).then(processMod, consoleError);
1934
+ }
1935
+ }
1936
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2963
1937
  /* @vite-ignore */
2964
1938
  /* webpackInclude: /\.entry\.js$/ */
2965
1939
  /* webpackExclude: /\.system\.entry\.js$/ */
2966
1940
  /* webpackMode: "lazy" */
2967
- `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}`).then((importedModule) => {
2968
- if (!BUILD.hotModuleReplacement) {
1941
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1942
+ {
2969
1943
  cmpModules.set(bundleId, importedModule);
2970
1944
  }
2971
1945
  return importedModule[exportName];
2972
1946
  }, consoleError);
2973
1947
  };
2974
1948
  const styles = new Map();
2975
- const modeResolutionChain = [];
2976
1949
  const queueDomReads = [];
2977
1950
  const queueDomWrites = [];
2978
- const queueDomWritesLow = [];
2979
1951
  const queueTask = (queue, write) => (cb) => {
2980
1952
  queue.push(cb);
2981
1953
  if (!queuePending) {
@@ -2999,53 +1971,13 @@ const consume = (queue) => {
2999
1971
  }
3000
1972
  queue.length = 0;
3001
1973
  };
3002
- const consumeTimeout = (queue, timeout) => {
3003
- let i = 0;
3004
- let ts = 0;
3005
- while (i < queue.length && (ts = performance.now()) < timeout) {
3006
- try {
3007
- queue[i++](ts);
3008
- }
3009
- catch (e) {
3010
- consoleError(e);
3011
- }
3012
- }
3013
- if (i === queue.length) {
3014
- queue.length = 0;
3015
- }
3016
- else if (i !== 0) {
3017
- queue.splice(0, i);
3018
- }
3019
- };
3020
1974
  const flush = () => {
3021
- if (BUILD.asyncQueue) {
3022
- queueCongestion++;
3023
- }
3024
1975
  // always force a bunch of medium callbacks to run, but still have
3025
1976
  // a throttle on how many can run in a certain time
3026
1977
  // DOM READS!!!
3027
1978
  consume(queueDomReads);
3028
1979
  // DOM WRITES!!!
3029
- if (BUILD.asyncQueue) {
3030
- const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */
3031
- ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0))
3032
- : Infinity;
3033
- consumeTimeout(queueDomWrites, timeout);
3034
- consumeTimeout(queueDomWritesLow, timeout);
3035
- if (queueDomWrites.length > 0) {
3036
- queueDomWritesLow.push(...queueDomWrites);
3037
- queueDomWrites.length = 0;
3038
- }
3039
- if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) {
3040
- // still more to do yet, but we've run out of time
3041
- // let's let this thing cool off and try again in the next tick
3042
- plt.raf(flush);
3043
- }
3044
- else {
3045
- queueCongestion = 0;
3046
- }
3047
- }
3048
- else {
1980
+ {
3049
1981
  consume(queueDomWrites);
3050
1982
  if ((queuePending = queueDomReads.length > 0)) {
3051
1983
  // still more to do yet, but we've run out of time
@@ -3055,13 +1987,17 @@ const flush = () => {
3055
1987
  }
3056
1988
  };
3057
1989
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
3058
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
3059
1990
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
3060
- const Build = {
3061
- isDev: BUILD.isDev ? true : false,
3062
- isBrowser: true,
3063
- isServer: false,
3064
- isTesting: BUILD.isTesting ? true : false,
3065
- };
3066
1991
 
3067
- export { BUILD as B, CSS as C, H, NAMESPACE as N, promiseResolve as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, createEvent as e, Host as f, getElement as g, h, plt as p, registerInstance as r, win as w };
1992
+ exports.CSS = CSS;
1993
+ exports.Host = Host;
1994
+ exports.NAMESPACE = NAMESPACE;
1995
+ exports.bootstrapLazy = bootstrapLazy;
1996
+ exports.createEvent = createEvent;
1997
+ exports.doc = doc;
1998
+ exports.getElement = getElement;
1999
+ exports.h = h;
2000
+ exports.plt = plt;
2001
+ exports.promiseResolve = promiseResolve;
2002
+ exports.registerInstance = registerInstance;
2003
+ exports.win = win;