@zonos/elements 1.3.248 → 1.3.250

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 (404) hide show
  1. package/dist/cjs/{cart-28310848.js → cart-fcd1359c.js} +321 -22
  2. package/dist/cjs/{cleanHtmlMarkdown-577d0a77.js → cleanHtmlMarkdown-31da84b7.js} +9 -7
  3. package/dist/cjs/{debounce-815d1517.js → debounce-0c75ba33.js} +1 -1
  4. package/dist/cjs/{getBorderRadius-2ef1170d.js → getBorderRadius-27a74844.js} +1 -1
  5. package/dist/cjs/{getContrastColor-30848800.js → getContrastColor-cc087c53.js} +2 -2
  6. package/dist/cjs/{hasInclusivePrice-134b0250.js → hasInclusivePrice-745a8f29.js} +1 -1
  7. package/dist/cjs/index-b1f95d96.js +4065 -0
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-2e8e5879.js → invoice-f040e147.js} +3 -3
  10. package/dist/cjs/{isCollectMobileTablet-bd0f4556.js → isCollectMobileTablet-cf92852e.js} +3 -3
  11. package/dist/cjs/{isContrastColor-09f5924a.js → isContrastColor-d1936a5c.js} +1 -1
  12. package/dist/cjs/{isDarkColor-878e600e.js → isDarkColor-a68abf7a.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/{localization-00e73920.js → localization-523b793a.js} +661 -1
  15. package/dist/cjs/{paypal-3019ae94.js → paypal-8c98c0a1.js} +79 -21
  16. package/dist/cjs/{placeTestOrder-b0369cfd.js → placeTestOrder-9b1e09f0.js} +2 -2
  17. package/dist/cjs/{renderCheckoutCurrency-9e919b9f.js → renderCheckoutCurrency-94b6e51d.js} +2 -2
  18. package/dist/cjs/{renderFallback-78b54537.js → renderFallback-bc20ee20.js} +1 -1
  19. package/dist/cjs/{submitGtag-a50ab32e.js → submitGtag-cb4fb332.js} +1 -1
  20. package/dist/cjs/{throttle-7dd64984.js → throttle-ff483793.js} +2 -2
  21. package/dist/cjs/{updateCheckoutSessionAttributes-3a1db9de.js → updateCheckoutSessionAttributes-8be63b63.js} +1 -1
  22. package/dist/cjs/{zonos-address-display_9.cjs.entry.js → zonos-address-display_8.cjs.entry.js} +1294 -1664
  23. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  24. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-button_3.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  28. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +84 -30
  29. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +113 -0
  30. package/dist/cjs/zonos-checkout.cjs.entry.js +60 -11
  31. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  33. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -13
  34. package/dist/cjs/zonos-collect.cjs.entry.js +11 -11
  35. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  37. package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  39. package/dist/cjs/zonos-elements.cjs.js +30 -3
  40. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  42. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  43. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
  44. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -13
  45. package/dist/cjs/zonos-invoice.cjs.entry.js +10 -10
  46. package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  49. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -6
  50. package/dist/cjs/zonos-store-credit.cjs.entry.js +113 -0
  51. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  52. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  53. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  54. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  55. package/dist/cjs/{zonosStore-37a4b4f4.js → zonosStore-f5a61112.js} +110 -25
  56. package/dist/collection/collection-manifest.json +1 -0
  57. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -0
  58. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +49 -4
  59. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +18 -10
  60. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/assets/StoreCreditIcon.svg +3 -0
  61. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.css +139 -0
  62. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +137 -0
  63. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +52 -1
  64. package/dist/collection/components/common/zonos-button/zonos-button.css +3 -1
  65. package/dist/collection/components/common/zonos-input/zonos-input.css +3 -1
  66. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -1
  67. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
  68. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +3 -1
  69. package/dist/collection/components/main/zonos-controller.js +1 -1
  70. package/dist/collection/components/store/checkout/cart.js +62 -4
  71. package/dist/collection/components/store/checkout/paypal.js +28 -0
  72. package/dist/collection/components/store/checkout/storeCredit.js +237 -0
  73. package/dist/collection/components/store/checkout/stripe.js +2 -1
  74. package/dist/collection/components/store/translationStore/strings.arabic.js +33 -0
  75. package/dist/collection/components/store/translationStore/strings.base.js +33 -0
  76. package/dist/collection/components/store/translationStore/strings.chinese.js +33 -0
  77. package/dist/collection/components/store/translationStore/strings.danish.js +33 -0
  78. package/dist/collection/components/store/translationStore/strings.dutch.js +33 -0
  79. package/dist/collection/components/store/translationStore/strings.french.js +33 -0
  80. package/dist/collection/components/store/translationStore/strings.german.js +33 -0
  81. package/dist/collection/components/store/translationStore/strings.hebrew.js +33 -0
  82. package/dist/collection/components/store/translationStore/strings.indonesian.js +33 -0
  83. package/dist/collection/components/store/translationStore/strings.italian.js +33 -0
  84. package/dist/collection/components/store/translationStore/strings.japanese.js +33 -0
  85. package/dist/collection/components/store/translationStore/strings.korean.js +33 -0
  86. package/dist/collection/components/store/translationStore/strings.norwegian.js +33 -0
  87. package/dist/collection/components/store/translationStore/strings.polish.js +33 -0
  88. package/dist/collection/components/store/translationStore/strings.portuguese.js +33 -0
  89. package/dist/collection/components/store/translationStore/strings.russian.js +33 -0
  90. package/dist/collection/components/store/translationStore/strings.spanish.js +33 -0
  91. package/dist/collection/components/store/translationStore/strings.swedish.js +33 -0
  92. package/dist/collection/components/store/translationStore/strings.turkish.js +33 -0
  93. package/dist/collection/components/store/translationStore/strings.vietnamese.js +33 -0
  94. package/dist/collection/types/generated/graphql.internal.types.js +589 -0
  95. package/dist/esm/{cart-ba8f3890.js → cart-6e465f7b.js} +311 -23
  96. package/dist/esm/{cleanHtmlMarkdown-b5b18743.js → cleanHtmlMarkdown-5f7856f2.js} +9 -7
  97. package/dist/esm/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  98. package/dist/esm/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  99. package/dist/esm/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +2 -2
  100. package/dist/esm/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-c49d384d.js} +1 -1
  101. package/dist/esm/index-cfd394c8.js +4028 -0
  102. package/dist/esm/index.js +7 -7
  103. package/dist/esm/{invoice-055bb6e5.js → invoice-d416ba65.js} +3 -3
  104. package/dist/esm/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +3 -3
  105. package/dist/esm/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  106. package/dist/esm/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/{localization-853b48a9.js → localization-f4a7fb5a.js} +661 -1
  109. package/dist/esm/{paypal-8d8518c0.js → paypal-6af6b978.js} +79 -21
  110. package/dist/esm/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +2 -2
  111. package/dist/esm/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +2 -2
  112. package/dist/esm/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  113. package/dist/esm/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  114. package/dist/esm/{throttle-ce2432ab.js → throttle-0504ba2c.js} +2 -2
  115. package/dist/esm/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
  116. package/dist/esm/{zonos-address-display_9.entry.js → zonos-address-display_8.entry.js} +1295 -1664
  117. package/dist/esm/zonos-address_4.entry.js +8 -8
  118. package/dist/esm/zonos-badge.entry.js +2 -2
  119. package/dist/esm/zonos-banner.entry.js +2 -2
  120. package/dist/esm/zonos-button_3.entry.js +5 -5
  121. package/dist/esm/zonos-card_5.entry.js +9 -9
  122. package/dist/esm/zonos-cart-items_12.entry.js +84 -30
  123. package/dist/esm/zonos-checkbox_2.entry.js +108 -0
  124. package/dist/esm/zonos-checkout.entry.js +60 -11
  125. package/dist/esm/zonos-collapse.entry.js +2 -2
  126. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  127. package/dist/esm/zonos-collect-finish_6.entry.js +13 -13
  128. package/dist/esm/zonos-collect.entry.js +11 -11
  129. package/dist/esm/zonos-component.entry.js +1 -1
  130. package/dist/esm/zonos-controller.entry.js +7 -7
  131. package/dist/esm/zonos-country-flag.entry.js +3 -3
  132. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  133. package/dist/esm/zonos-elements.js +31 -4
  134. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  135. package/dist/esm/zonos-hello.entry.js +4 -4
  136. package/dist/esm/zonos-input.entry.js +4 -4
  137. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
  138. package/dist/esm/zonos-invoice-finish_5.entry.js +13 -13
  139. package/dist/esm/zonos-invoice.entry.js +10 -10
  140. package/dist/esm/zonos-language-select_2.entry.js +3 -3
  141. package/dist/esm/zonos-link.entry.js +1 -1
  142. package/dist/esm/zonos-logo.entry.js +2 -2
  143. package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -6
  144. package/dist/esm/zonos-store-credit.entry.js +109 -0
  145. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  146. package/dist/esm/zonos-text.entry.js +2 -2
  147. package/dist/esm/zonos-tooltip.entry.js +1 -1
  148. package/dist/esm/zonos-v-stack.entry.js +2 -2
  149. package/dist/esm/{zonosStore-b434e436.js → zonosStore-5242a58d.js} +110 -25
  150. package/dist/esm-es5/cart-6e465f7b.js +1 -0
  151. package/dist/esm-es5/cleanHtmlMarkdown-5f7856f2.js +1 -0
  152. package/dist/esm-es5/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  153. package/dist/esm-es5/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  154. package/dist/esm-es5/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +1 -1
  155. package/dist/esm-es5/hasInclusivePrice-c49d384d.js +1 -0
  156. package/dist/esm-es5/index-cfd394c8.js +13 -0
  157. package/dist/esm-es5/index.js +1 -1
  158. package/dist/esm-es5/{invoice-055bb6e5.js → invoice-d416ba65.js} +1 -1
  159. package/dist/esm-es5/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +1 -1
  160. package/dist/esm-es5/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  161. package/dist/esm-es5/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  162. package/dist/esm-es5/loader.js +1 -1
  163. package/dist/esm-es5/localization-f4a7fb5a.js +1 -0
  164. package/dist/esm-es5/paypal-6af6b978.js +17 -0
  165. package/dist/esm-es5/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +1 -1
  166. package/dist/esm-es5/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +1 -1
  167. package/dist/esm-es5/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  168. package/dist/esm-es5/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  169. package/dist/esm-es5/{throttle-ce2432ab.js → throttle-0504ba2c.js} +1 -1
  170. package/dist/esm-es5/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
  171. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -0
  172. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  173. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  174. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  175. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  176. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  177. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  178. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -0
  179. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  180. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  181. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  182. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  183. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  184. package/dist/esm-es5/zonos-component.entry.js +1 -1
  185. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  186. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  187. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  188. package/dist/esm-es5/zonos-elements.js +1 -1
  189. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  190. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  191. package/dist/esm-es5/zonos-input.entry.js +1 -1
  192. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  193. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  194. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  195. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  196. package/dist/esm-es5/zonos-link.entry.js +1 -1
  197. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  198. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  199. package/dist/esm-es5/zonos-store-credit.entry.js +1 -0
  200. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  201. package/dist/esm-es5/zonos-text.entry.js +1 -1
  202. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  203. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  204. package/dist/esm-es5/zonosStore-5242a58d.js +1 -0
  205. package/dist/scripts/index.d.ts +60 -3
  206. package/dist/scripts/index.js +1 -1
  207. package/dist/scripts/loadZonos.js +1 -1
  208. package/dist/scripts/zonos.js +1 -1
  209. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  210. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.d.ts +17 -0
  211. package/dist/types/components/store/checkout/cart.d.ts +8 -1
  212. package/dist/types/components/store/checkout/storeCredit.d.ts +111 -0
  213. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  214. package/dist/types/components/store/translationStore/strings.arabic.d.ts +33 -0
  215. package/dist/types/components/store/translationStore/strings.base.d.ts +33 -0
  216. package/dist/types/components/store/translationStore/strings.chinese.d.ts +33 -0
  217. package/dist/types/components/store/translationStore/strings.danish.d.ts +33 -0
  218. package/dist/types/components/store/translationStore/strings.dutch.d.ts +33 -0
  219. package/dist/types/components/store/translationStore/strings.french.d.ts +33 -0
  220. package/dist/types/components/store/translationStore/strings.german.d.ts +33 -0
  221. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +33 -0
  222. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +33 -0
  223. package/dist/types/components/store/translationStore/strings.italian.d.ts +33 -0
  224. package/dist/types/components/store/translationStore/strings.japanese.d.ts +33 -0
  225. package/dist/types/components/store/translationStore/strings.korean.d.ts +33 -0
  226. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +33 -0
  227. package/dist/types/components/store/translationStore/strings.polish.d.ts +33 -0
  228. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +33 -0
  229. package/dist/types/components/store/translationStore/strings.russian.d.ts +33 -0
  230. package/dist/types/components/store/translationStore/strings.spanish.d.ts +33 -0
  231. package/dist/types/components/store/translationStore/strings.swedish.d.ts +33 -0
  232. package/dist/types/components/store/translationStore/strings.turkish.d.ts +33 -0
  233. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +33 -0
  234. package/dist/types/components.d.ts +21 -0
  235. package/dist/types/environment.d.ts +2 -2
  236. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  237. package/dist/types/types/generated/graphql.internal.types.d.ts +713 -4
  238. package/dist/types/types/generated/graphql.internal.types.ts +956 -4
  239. package/dist/types/types/global.d.ts +2 -0
  240. package/dist/zonos-elements/index.esm.js +1 -1
  241. package/dist/zonos-elements/p-058f6124.js +1 -0
  242. package/dist/zonos-elements/{p-7aa50ef2.entry.js → p-0d18d94b.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-c01f86b4.entry.js → p-12459b59.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-de8899bc.js → p-13ed3789.js} +1 -1
  245. package/dist/zonos-elements/{p-8205ae87.system.entry.js → p-17fbfda0.system.entry.js} +1 -1
  246. package/dist/zonos-elements/p-18d411c3.system.entry.js +1 -0
  247. package/dist/zonos-elements/{p-69b9b711.entry.js → p-1b56814d.entry.js} +1 -1
  248. package/dist/zonos-elements/p-1b8771bb.js +1 -0
  249. package/dist/zonos-elements/{p-eea7ac64.js → p-1e6509d7.js} +1 -1
  250. package/dist/zonos-elements/{p-c7311ce5.system.entry.js → p-1f63615f.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-5062dcf3.system.entry.js → p-234f0339.system.entry.js} +1 -1
  252. package/dist/zonos-elements/p-2435f196.entry.js +1 -0
  253. package/dist/zonos-elements/p-26848428.entry.js +1 -0
  254. package/dist/zonos-elements/p-28d62fc8.system.entry.js +1 -0
  255. package/dist/zonos-elements/p-29b60bf3.system.js +1 -0
  256. package/dist/zonos-elements/{p-1c4d12f0.entry.js → p-2aa44601.entry.js} +1 -1
  257. package/dist/zonos-elements/p-2b7ef406.system.js +18 -0
  258. package/dist/zonos-elements/p-34d10122.js +1 -0
  259. package/dist/zonos-elements/{p-e17bbcee.entry.js → p-3827041d.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-14c920b2.system.entry.js → p-38881641.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-c6e3d747.system.js → p-3fbd9cc0.system.js} +1 -1
  262. package/dist/zonos-elements/p-45bd8072.system.js +1 -0
  263. package/dist/zonos-elements/{p-bc4bfa06.js → p-48228d76.js} +1 -1
  264. package/dist/zonos-elements/{p-9c49daa4.entry.js → p-4aefd668.entry.js} +1 -1
  265. package/dist/zonos-elements/p-4d5932ac.system.entry.js +1 -0
  266. package/dist/zonos-elements/{p-a359e0a2.system.entry.js → p-4e4fa1fb.system.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-c36696f9.js → p-4f7d64f6.js} +1 -1
  268. package/dist/zonos-elements/p-53db5f85.system.js +1 -0
  269. package/dist/zonos-elements/{p-403b9fca.entry.js → p-59fe8416.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-7b400b5f.system.entry.js → p-5ca50862.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-5dd86dd9.system.js +1 -0
  272. package/dist/zonos-elements/p-5f628e57.entry.js +1 -0
  273. package/dist/zonos-elements/{p-b54a95ea.system.entry.js → p-5fceccc3.system.entry.js} +1 -1
  274. package/dist/zonos-elements/p-64ad0854.entry.js +1 -0
  275. package/dist/zonos-elements/{p-942358eb.system.js → p-65892fa7.system.js} +1 -1
  276. package/dist/zonos-elements/{p-aa028d91.entry.js → p-66d72216.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-58248f03.entry.js → p-66e1dc55.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-57fa64d7.js → p-67897a0d.js} +1 -1
  279. package/dist/zonos-elements/{p-917f714c.system.entry.js → p-6f19845a.system.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-291f7ccb.system.entry.js → p-7042c6da.system.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-232b0fb5.system.entry.js → p-70c8a47d.system.entry.js} +1 -1
  282. package/dist/zonos-elements/p-7261e245.system.js +13 -0
  283. package/dist/zonos-elements/p-741e07e1.system.entry.js +1 -0
  284. package/dist/zonos-elements/{p-3e67ca05.entry.js → p-7427dd1e.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-23d497e3.system.js → p-7501c637.system.js} +1 -1
  286. package/dist/zonos-elements/p-77113201.system.js +1 -0
  287. package/dist/zonos-elements/{p-a12cb7ce.entry.js → p-77c0a02b.entry.js} +1 -1
  288. package/dist/zonos-elements/p-7d7ffb42.js +1 -0
  289. package/dist/zonos-elements/{p-1acf0a71.system.entry.js → p-85529818.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-cfb9b847.system.entry.js → p-87d89870.system.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-443e1f30.system.js → p-8c6624b6.system.js} +1 -1
  292. package/dist/zonos-elements/{p-57cee1b5.system.entry.js → p-8d5f928c.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-8f1ab25c.system.entry.js +1 -0
  294. package/dist/zonos-elements/{p-5762e217.js → p-908f13ae.js} +1 -1
  295. package/dist/zonos-elements/{p-63a3d3b9.system.js → p-90b8c428.system.js} +1 -1
  296. package/dist/zonos-elements/{p-8f0f6449.entry.js → p-939ba2a5.entry.js} +1 -1
  297. package/dist/zonos-elements/p-9581bffb.js +1 -0
  298. package/dist/zonos-elements/p-959918fe.system.js +1 -0
  299. package/dist/zonos-elements/p-997b7eef.js +1 -0
  300. package/dist/zonos-elements/{p-0792688d.system.entry.js → p-9bc5e944.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-9c6917ab.system.js +1 -0
  302. package/dist/zonos-elements/{p-f8d56ba9.system.js → p-9d44fef6.system.js} +1 -1
  303. package/dist/zonos-elements/p-9d64783a.entry.js +1 -0
  304. package/dist/zonos-elements/{p-71a8d971.system.entry.js → p-9f49e35a.system.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-2f55895c.system.entry.js → p-a026b5ad.system.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-85e59f3a.system.entry.js → p-a1a3657e.system.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-c2f34b10.system.entry.js → p-a1b0e9a5.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-fb9fb873.system.entry.js → p-a1c476d6.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-a6a401e5.system.entry.js +1 -0
  310. package/dist/zonos-elements/{p-5edef7c3.system.js → p-ab25379f.system.js} +1 -1
  311. package/dist/zonos-elements/p-ac30b7a8.system.js +1 -0
  312. package/dist/zonos-elements/{p-37bb5f2d.entry.js → p-b004146f.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-3908f78d.system.entry.js → p-b07da3e8.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-71f10bf0.entry.js → p-b08bf843.entry.js} +1 -1
  315. package/dist/zonos-elements/p-b334c76c.entry.js +1 -0
  316. package/dist/zonos-elements/{p-69212d0f.entry.js → p-b9581a92.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-84cf1a90.system.entry.js → p-bdaf94a4.system.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-231baaf8.entry.js → p-c1ab70d2.entry.js} +1 -1
  319. package/dist/zonos-elements/p-c30a155e.js +1 -0
  320. package/dist/zonos-elements/{p-aedd3911.entry.js → p-c9d4eb42.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-3e85b9f5.system.entry.js → p-cad67b10.system.entry.js} +1 -1
  322. package/dist/zonos-elements/p-cc78c9d4.js +17 -0
  323. package/dist/zonos-elements/p-ce75b047.js +2 -0
  324. package/dist/zonos-elements/{p-909e2bc3.system.js → p-d18a2b2c.system.js} +1 -1
  325. package/dist/zonos-elements/{p-83377e23.entry.js → p-d2301d8a.entry.js} +1 -1
  326. package/dist/zonos-elements/p-d46484aa.entry.js +1 -0
  327. package/dist/zonos-elements/{p-3972663a.system.entry.js → p-d634f954.system.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-14735e9a.system.entry.js → p-dbb3db89.system.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-4592ae49.entry.js → p-ddcbea81.entry.js} +1 -1
  330. package/dist/zonos-elements/p-def2d465.js +1 -0
  331. package/dist/zonos-elements/p-df316670.system.js +1 -0
  332. package/dist/zonos-elements/p-e219d011.js +1 -0
  333. package/dist/zonos-elements/p-e331a235.js +1 -0
  334. package/dist/zonos-elements/p-e4d58bd7.js +1 -0
  335. package/dist/zonos-elements/{p-48475755.entry.js → p-e9ca4447.entry.js} +1 -1
  336. package/dist/zonos-elements/{p-6adfb3af.system.entry.js → p-ed61dedd.system.entry.js} +1 -1
  337. package/dist/zonos-elements/p-ee217693.entry.js +1 -0
  338. package/dist/zonos-elements/{p-ae16dda9.system.js → p-f0855df3.system.js} +1 -1
  339. package/dist/zonos-elements/p-f0938b51.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-d5b7d3c3.entry.js → p-f25e7f5a.entry.js} +1 -1
  341. package/dist/zonos-elements/{p-0ff93ca6.entry.js → p-f4cc124f.entry.js} +1 -1
  342. package/dist/zonos-elements/p-f830f800.js +1 -0
  343. package/dist/zonos-elements/p-fa0139c3.system.js +1 -0
  344. package/dist/zonos-elements/p-fa5767c3.system.js +1 -0
  345. package/dist/zonos-elements/{p-39fa55c7.entry.js → p-fbfaa4f9.entry.js} +1 -1
  346. package/dist/zonos-elements/p-fe6cc354.entry.js +1 -0
  347. package/dist/zonos-elements/zonos-elements.css +1 -1
  348. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  349. package/dist/zonos-elements/zonos-elements.js +1 -1
  350. package/package.json +70 -52
  351. package/dist/cjs/index-69fa8852.js +0 -1961
  352. package/dist/cjs/zonos-toggle.cjs.entry.js +0 -35
  353. package/dist/esm/index-0bbe9693.js +0 -1928
  354. package/dist/esm/zonos-toggle.entry.js +0 -31
  355. package/dist/esm-es5/cart-ba8f3890.js +0 -1
  356. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +0 -1
  357. package/dist/esm-es5/hasInclusivePrice-6fcc712f.js +0 -1
  358. package/dist/esm-es5/index-0bbe9693.js +0 -2
  359. package/dist/esm-es5/localization-853b48a9.js +0 -1
  360. package/dist/esm-es5/paypal-8d8518c0.js +0 -17
  361. package/dist/esm-es5/zonos-address-display_9.entry.js +0 -1
  362. package/dist/esm-es5/zonos-toggle.entry.js +0 -1
  363. package/dist/esm-es5/zonosStore-b434e436.js +0 -1
  364. package/dist/zonos-elements/p-002e45f9.system.js +0 -17
  365. package/dist/zonos-elements/p-01dada4e.js +0 -1
  366. package/dist/zonos-elements/p-09aabce0.js +0 -1
  367. package/dist/zonos-elements/p-0b7beb16.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-0ef2a242.js +0 -1
  369. package/dist/zonos-elements/p-0f787f5d.entry.js +0 -1
  370. package/dist/zonos-elements/p-1dbeeab2.entry.js +0 -1
  371. package/dist/zonos-elements/p-1f894984.js +0 -1
  372. package/dist/zonos-elements/p-27f6930b.js +0 -1
  373. package/dist/zonos-elements/p-2c2a1339.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-3bec13dd.system.js +0 -1
  375. package/dist/zonos-elements/p-41299ffb.js +0 -1
  376. package/dist/zonos-elements/p-43a22d85.entry.js +0 -1
  377. package/dist/zonos-elements/p-4ffbb0d6.system.js +0 -1
  378. package/dist/zonos-elements/p-64661dd1.js +0 -1
  379. package/dist/zonos-elements/p-719403e0.system.js +0 -1
  380. package/dist/zonos-elements/p-71d855b8.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-72ff005c.entry.js +0 -1
  382. package/dist/zonos-elements/p-786d1c24.js +0 -1
  383. package/dist/zonos-elements/p-7dba5f23.system.js +0 -1
  384. package/dist/zonos-elements/p-866afec1.js +0 -1
  385. package/dist/zonos-elements/p-94c5fbfc.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-989d3af9.system.js +0 -2
  387. package/dist/zonos-elements/p-9fa90292.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ab41bab5.js +0 -2
  389. package/dist/zonos-elements/p-abf38ed6.js +0 -1
  390. package/dist/zonos-elements/p-ae26aec5.system.js +0 -1
  391. package/dist/zonos-elements/p-af85846e.system.js +0 -1
  392. package/dist/zonos-elements/p-b2a0ab4a.js +0 -1
  393. package/dist/zonos-elements/p-b2ae8eb7.system.js +0 -1
  394. package/dist/zonos-elements/p-bf5e47e2.entry.js +0 -1
  395. package/dist/zonos-elements/p-c027a832.system.js +0 -1
  396. package/dist/zonos-elements/p-c1fb3a2d.entry.js +0 -1
  397. package/dist/zonos-elements/p-c2442878.system.js +0 -1
  398. package/dist/zonos-elements/p-d45285aa.system.js +0 -1
  399. package/dist/zonos-elements/p-dcf999d8.entry.js +0 -1
  400. package/dist/zonos-elements/p-e9e6bea7.system.entry.js +0 -1
  401. package/dist/zonos-elements/p-f6c2c743.entry.js +0 -1
  402. package/dist/zonos-elements/p-fc776473.js +0 -1
  403. package/dist/zonos-elements/p-fe06c9ea.js +0 -17
  404. package/dist/zonos-elements/p-fe96e239.system.js +0 -1
@@ -1,1961 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'zonos-elements';
24
- const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
25
-
26
- /*
27
- Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
28
- */
29
- var __defProp = Object.defineProperty;
30
- var __export = (target, all) => {
31
- for (var name in all)
32
- __defProp(target, name, { get: all[name], enumerable: true });
33
- };
34
-
35
- // src/utils/constants.ts
36
- var SVG_NS = "http://www.w3.org/2000/svg";
37
- var HTML_NS = "http://www.w3.org/1999/xhtml";
38
-
39
- // src/client/client-host-ref.ts
40
- var getHostRef = (ref) => {
41
- if (ref.__stencil__getHostRef) {
42
- return ref.__stencil__getHostRef();
43
- }
44
- return void 0;
45
- };
46
- var registerInstance = (lazyInstance, hostRef) => {
47
- lazyInstance.__stencil__getHostRef = () => hostRef;
48
- hostRef.$lazyInstance$ = lazyInstance;
49
- };
50
- var registerHost = (hostElement, cmpMeta) => {
51
- const hostRef = {
52
- $flags$: 0,
53
- $hostElement$: hostElement,
54
- $cmpMeta$: cmpMeta,
55
- $instanceValues$: /* @__PURE__ */ new Map()
56
- };
57
- {
58
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
59
- }
60
- {
61
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
62
- hostElement["s-p"] = [];
63
- hostElement["s-rc"] = [];
64
- }
65
- const ref = hostRef;
66
- hostElement.__stencil__getHostRef = () => ref;
67
- return ref;
68
- };
69
- var isMemberInElement = (elm, memberName) => memberName in elm;
70
- var consoleError = (e, el) => (0, console.error)(e, el);
71
-
72
- // src/client/client-load-module.ts
73
- var cmpModules = /* @__PURE__ */ new Map();
74
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
75
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
76
- const bundleId = cmpMeta.$lazyBundleId$;
77
- if (!bundleId) {
78
- return void 0;
79
- }
80
- const module = cmpModules.get(bundleId) ;
81
- if (module) {
82
- return module[exportName];
83
- }
84
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
85
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
86
- /* @vite-ignore */
87
- /* webpackInclude: /\.entry\.js$/ */
88
- /* webpackExclude: /\.system\.entry\.js$/ */
89
- /* webpackMode: "lazy" */
90
- `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
100
- }
101
- );
102
- };
103
-
104
- // src/client/client-style.ts
105
- var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
- var XLINK_NS = "http://www.w3.org/1999/xlink";
110
- var win = typeof window !== "undefined" ? window : {};
111
- var plt = {
112
- $flags$: 0,
113
- $resourcesUrl$: "",
114
- jmp: (h2) => h2(),
115
- raf: (h2) => requestAnimationFrame(h2),
116
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
117
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
118
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
119
- };
120
- var supportsListenerOptions = /* @__PURE__ */ (() => {
121
- var _a;
122
- let supportsListenerOptions2 = false;
123
- try {
124
- (_a = win.document) == null ? void 0 : _a.addEventListener(
125
- "e",
126
- null,
127
- Object.defineProperty({}, "passive", {
128
- get() {
129
- supportsListenerOptions2 = true;
130
- }
131
- })
132
- );
133
- } catch (e) {
134
- }
135
- return supportsListenerOptions2;
136
- })();
137
- var promiseResolve = (v) => Promise.resolve(v);
138
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
139
- try {
140
- new CSSStyleSheet();
141
- return typeof new CSSStyleSheet().replaceSync === "function";
142
- } catch (e) {
143
- }
144
- return false;
145
- })() ;
146
- var queuePending = false;
147
- var queueDomReads = [];
148
- var queueDomWrites = [];
149
- var queueTask = (queue, write) => (cb) => {
150
- queue.push(cb);
151
- if (!queuePending) {
152
- queuePending = true;
153
- if (write && plt.$flags$ & 4 /* queueSync */) {
154
- nextTick(flush);
155
- } else {
156
- plt.raf(flush);
157
- }
158
- }
159
- };
160
- var consume = (queue) => {
161
- for (let i2 = 0; i2 < queue.length; i2++) {
162
- try {
163
- queue[i2](performance.now());
164
- } catch (e) {
165
- consoleError(e);
166
- }
167
- }
168
- queue.length = 0;
169
- };
170
- var flush = () => {
171
- consume(queueDomReads);
172
- {
173
- consume(queueDomWrites);
174
- if (queuePending = queueDomReads.length > 0) {
175
- plt.raf(flush);
176
- }
177
- }
178
- };
179
- var nextTick = (cb) => promiseResolve().then(cb);
180
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
181
-
182
- // src/runtime/asset-path.ts
183
- var getAssetPath = (path) => {
184
- const assetUrl = new URL(path, plt.$resourcesUrl$);
185
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
186
- };
187
-
188
- // src/utils/helpers.ts
189
- var isDef = (v) => v != null && v !== void 0;
190
- var isComplexType = (o) => {
191
- o = typeof o;
192
- return o === "object" || o === "function";
193
- };
194
-
195
- // src/utils/query-nonce-meta-tag-content.ts
196
- function queryNonceMetaTagContent(doc) {
197
- var _a, _b, _c;
198
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
199
- }
200
-
201
- // src/utils/result.ts
202
- var result_exports = {};
203
- __export(result_exports, {
204
- err: () => err,
205
- map: () => map,
206
- ok: () => ok,
207
- unwrap: () => unwrap,
208
- unwrapErr: () => unwrapErr
209
- });
210
- var ok = (value) => ({
211
- isOk: true,
212
- isErr: false,
213
- value
214
- });
215
- var err = (value) => ({
216
- isOk: false,
217
- isErr: true,
218
- value
219
- });
220
- function map(result, fn) {
221
- if (result.isOk) {
222
- const val = fn(result.value);
223
- if (val instanceof Promise) {
224
- return val.then((newVal) => ok(newVal));
225
- } else {
226
- return ok(val);
227
- }
228
- }
229
- if (result.isErr) {
230
- const value = result.value;
231
- return err(value);
232
- }
233
- throw "should never get here";
234
- }
235
- var unwrap = (result) => {
236
- if (result.isOk) {
237
- return result.value;
238
- } else {
239
- throw result.value;
240
- }
241
- };
242
- var unwrapErr = (result) => {
243
- if (result.isErr) {
244
- return result.value;
245
- } else {
246
- throw result.value;
247
- }
248
- };
249
- var updateFallbackSlotVisibility = (elm) => {
250
- const childNodes = internalCall(elm, "childNodes");
251
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
252
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
253
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
254
- if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
255
- slotNode.hidden = true;
256
- } else {
257
- slotNode.hidden = false;
258
- }
259
- }
260
- });
261
- }
262
- let i2 = 0;
263
- for (i2 = 0; i2 < childNodes.length; i2++) {
264
- const childNode = childNodes[i2];
265
- if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
266
- updateFallbackSlotVisibility(childNode);
267
- }
268
- }
269
- };
270
- var getSlottedChildNodes = (childNodes) => {
271
- const result = [];
272
- for (let i2 = 0; i2 < childNodes.length; i2++) {
273
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
274
- if (slottedNode && slottedNode.isConnected) {
275
- result.push(slottedNode);
276
- }
277
- }
278
- return result;
279
- };
280
- function getHostSlotNodes(childNodes, hostName, slotName) {
281
- let i2 = 0;
282
- let slottedNodes = [];
283
- let childNode;
284
- for (; i2 < childNodes.length; i2++) {
285
- childNode = childNodes[i2];
286
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
287
- slottedNodes.push(childNode);
288
- if (typeof slotName !== "undefined") return slottedNodes;
289
- }
290
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
291
- }
292
- return slottedNodes;
293
- }
294
- var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
295
- const childNodes = [];
296
- if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
297
- let node = slot;
298
- while (node = node.nextSibling) {
299
- if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
300
- }
301
- return childNodes;
302
- };
303
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
304
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
305
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
306
- return true;
307
- }
308
- if (nodeToRelocate.getAttribute("slot") === slotName) {
309
- return true;
310
- }
311
- return false;
312
- }
313
- if (nodeToRelocate["s-sn"] === slotName) {
314
- return true;
315
- }
316
- return slotName === "";
317
- };
318
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
319
- function patchSlotNode(node) {
320
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
321
- const assignedFactory = (elementsOnly) => (function(opts) {
322
- const toReturn = [];
323
- const slotName = this["s-sn"];
324
- if (opts == null ? void 0 : opts.flatten) {
325
- console.error(`
326
- Flattening is not supported for Stencil non-shadow slots.
327
- You can use \`.childNodes\` to nested slot fallback content.
328
- If you have a particular use case, please open an issue on the Stencil repo.
329
- `);
330
- }
331
- const parent = this["s-cr"].parentElement;
332
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
333
- slottedNodes.forEach((n) => {
334
- if (slotName === getSlotName(n)) {
335
- toReturn.push(n);
336
- }
337
- });
338
- if (elementsOnly) {
339
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
340
- }
341
- return toReturn;
342
- }).bind(node);
343
- node.assignedElements = assignedFactory(true);
344
- node.assignedNodes = assignedFactory(false);
345
- }
346
- function internalCall(node, method) {
347
- if ("__" + method in node) {
348
- const toReturn = node["__" + method];
349
- if (typeof toReturn !== "function") return toReturn;
350
- return toReturn.bind(node);
351
- } else {
352
- if (typeof node[method] !== "function") return node[method];
353
- return node[method].bind(node);
354
- }
355
- }
356
- var createTime = (fnName, tagName = "") => {
357
- {
358
- return () => {
359
- return;
360
- };
361
- }
362
- };
363
- var uniqueTime = (key, measureText) => {
364
- {
365
- return () => {
366
- return;
367
- };
368
- }
369
- };
370
- var h = (nodeName, vnodeData, ...children) => {
371
- let child = null;
372
- let key = null;
373
- let slotName = null;
374
- let simple = false;
375
- let lastSimple = false;
376
- const vNodeChildren = [];
377
- const walk = (c) => {
378
- for (let i2 = 0; i2 < c.length; i2++) {
379
- child = c[i2];
380
- if (Array.isArray(child)) {
381
- walk(child);
382
- } else if (child != null && typeof child !== "boolean") {
383
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
384
- child = String(child);
385
- }
386
- if (simple && lastSimple) {
387
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
388
- } else {
389
- vNodeChildren.push(simple ? newVNode(null, child) : child);
390
- }
391
- lastSimple = simple;
392
- }
393
- }
394
- };
395
- walk(children);
396
- if (vnodeData) {
397
- if (vnodeData.key) {
398
- key = vnodeData.key;
399
- }
400
- if (vnodeData.name) {
401
- slotName = vnodeData.name;
402
- }
403
- {
404
- const classData = vnodeData.className || vnodeData.class;
405
- if (classData) {
406
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
407
- }
408
- }
409
- }
410
- if (typeof nodeName === "function") {
411
- return nodeName(
412
- vnodeData === null ? {} : vnodeData,
413
- vNodeChildren,
414
- vdomFnUtils
415
- );
416
- }
417
- const vnode = newVNode(nodeName, null);
418
- vnode.$attrs$ = vnodeData;
419
- if (vNodeChildren.length > 0) {
420
- vnode.$children$ = vNodeChildren;
421
- }
422
- {
423
- vnode.$key$ = key;
424
- }
425
- {
426
- vnode.$name$ = slotName;
427
- }
428
- return vnode;
429
- };
430
- var newVNode = (tag, text) => {
431
- const vnode = {
432
- $flags$: 0,
433
- $tag$: tag,
434
- $text$: text,
435
- $elm$: null,
436
- $children$: null
437
- };
438
- {
439
- vnode.$attrs$ = null;
440
- }
441
- {
442
- vnode.$key$ = null;
443
- }
444
- {
445
- vnode.$name$ = null;
446
- }
447
- return vnode;
448
- };
449
- var Host = {};
450
- var isHost = (node) => node && node.$tag$ === Host;
451
- var vdomFnUtils = {
452
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
453
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
454
- };
455
- var convertToPublic = (node) => ({
456
- vattrs: node.$attrs$,
457
- vchildren: node.$children$,
458
- vkey: node.$key$,
459
- vname: node.$name$,
460
- vtag: node.$tag$,
461
- vtext: node.$text$
462
- });
463
- var convertToPrivate = (node) => {
464
- if (typeof node.vtag === "function") {
465
- const vnodeData = { ...node.vattrs };
466
- if (node.vkey) {
467
- vnodeData.key = node.vkey;
468
- }
469
- if (node.vname) {
470
- vnodeData.name = node.vname;
471
- }
472
- return h(node.vtag, vnodeData, ...node.vchildren || []);
473
- }
474
- const vnode = newVNode(node.vtag, node.vtext);
475
- vnode.$attrs$ = node.vattrs;
476
- vnode.$children$ = node.vchildren;
477
- vnode.$key$ = node.vkey;
478
- vnode.$name$ = node.vname;
479
- return vnode;
480
- };
481
- var parsePropertyValue = (propValue, propType) => {
482
- if (propValue != null && !isComplexType(propValue)) {
483
- if (propType & 4 /* Boolean */) {
484
- return propValue === "false" ? false : propValue === "" || !!propValue;
485
- }
486
- if (propType & 2 /* Number */) {
487
- return parseFloat(propValue);
488
- }
489
- if (propType & 1 /* String */) {
490
- return String(propValue);
491
- }
492
- return propValue;
493
- }
494
- return propValue;
495
- };
496
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
497
-
498
- // src/runtime/event-emitter.ts
499
- var createEvent = (ref, name, flags) => {
500
- const elm = getElement(ref);
501
- return {
502
- emit: (detail) => {
503
- return emitEvent(elm, name, {
504
- bubbles: !!(flags & 4 /* Bubbles */),
505
- composed: !!(flags & 2 /* Composed */),
506
- cancelable: !!(flags & 1 /* Cancellable */),
507
- detail
508
- });
509
- }
510
- };
511
- };
512
- var emitEvent = (elm, name, opts) => {
513
- const ev = plt.ce(name, opts);
514
- elm.dispatchEvent(ev);
515
- return ev;
516
- };
517
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
518
- var registerStyle = (scopeId2, cssText, allowCS) => {
519
- let style = styles.get(scopeId2);
520
- if (supportsConstructableStylesheets && allowCS) {
521
- style = style || new CSSStyleSheet();
522
- if (typeof style === "string") {
523
- style = cssText;
524
- } else {
525
- style.replaceSync(cssText);
526
- }
527
- } else {
528
- style = cssText;
529
- }
530
- styles.set(scopeId2, style);
531
- };
532
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
533
- var _a;
534
- const scopeId2 = getScopeId(cmpMeta);
535
- const style = styles.get(scopeId2);
536
- if (!win.document) {
537
- return scopeId2;
538
- }
539
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
540
- if (style) {
541
- if (typeof style === "string") {
542
- styleContainerNode = styleContainerNode.head || styleContainerNode;
543
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
544
- let styleElm;
545
- if (!appliedStyles) {
546
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
547
- }
548
- if (!appliedStyles.has(scopeId2)) {
549
- {
550
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
551
- styleElm.innerHTML = style;
552
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
553
- if (nonce != null) {
554
- styleElm.setAttribute("nonce", nonce);
555
- }
556
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
557
- if (styleContainerNode.nodeName === "HEAD") {
558
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
559
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
560
- styleContainerNode.insertBefore(
561
- styleElm,
562
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
563
- );
564
- } else if ("host" in styleContainerNode) {
565
- if (supportsConstructableStylesheets) {
566
- const stylesheet = new CSSStyleSheet();
567
- stylesheet.replaceSync(style);
568
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
569
- } else {
570
- const existingStyleContainer = styleContainerNode.querySelector("style");
571
- if (existingStyleContainer) {
572
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
573
- } else {
574
- styleContainerNode.prepend(styleElm);
575
- }
576
- }
577
- } else {
578
- styleContainerNode.append(styleElm);
579
- }
580
- }
581
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
582
- styleContainerNode.insertBefore(styleElm, null);
583
- }
584
- }
585
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
586
- styleElm.innerHTML += SLOT_FB_CSS;
587
- }
588
- if (appliedStyles) {
589
- appliedStyles.add(scopeId2);
590
- }
591
- }
592
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
593
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
594
- }
595
- }
596
- return scopeId2;
597
- };
598
- var attachStyles = (hostRef) => {
599
- const cmpMeta = hostRef.$cmpMeta$;
600
- const elm = hostRef.$hostElement$;
601
- const flags = cmpMeta.$flags$;
602
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
603
- const scopeId2 = addStyle(
604
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
605
- cmpMeta);
606
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
607
- elm["s-sc"] = scopeId2;
608
- elm.classList.add(scopeId2 + "-h");
609
- }
610
- endAttachStyles();
611
- };
612
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
613
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
614
- if (oldValue === newValue) {
615
- return;
616
- }
617
- let isProp = isMemberInElement(elm, memberName);
618
- let ln = memberName.toLowerCase();
619
- if (memberName === "class") {
620
- const classList = elm.classList;
621
- const oldClasses = parseClassList(oldValue);
622
- let newClasses = parseClassList(newValue);
623
- {
624
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
625
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
626
- }
627
- } else if (memberName === "style") {
628
- {
629
- for (const prop in oldValue) {
630
- if (!newValue || newValue[prop] == null) {
631
- if (prop.includes("-")) {
632
- elm.style.removeProperty(prop);
633
- } else {
634
- elm.style[prop] = "";
635
- }
636
- }
637
- }
638
- }
639
- for (const prop in newValue) {
640
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
641
- if (prop.includes("-")) {
642
- elm.style.setProperty(prop, newValue[prop]);
643
- } else {
644
- elm.style[prop] = newValue[prop];
645
- }
646
- }
647
- }
648
- } else if (memberName === "key") ; else if (memberName === "ref") {
649
- if (newValue) {
650
- newValue(elm);
651
- }
652
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
653
- if (memberName[2] === "-") {
654
- memberName = memberName.slice(3);
655
- } else if (isMemberInElement(win, ln)) {
656
- memberName = ln.slice(2);
657
- } else {
658
- memberName = ln[2] + memberName.slice(3);
659
- }
660
- if (oldValue || newValue) {
661
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
662
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
663
- if (oldValue) {
664
- plt.rel(elm, memberName, oldValue, capture);
665
- }
666
- if (newValue) {
667
- plt.ael(elm, memberName, newValue, capture);
668
- }
669
- }
670
- } else {
671
- const isComplex = isComplexType(newValue);
672
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
673
- try {
674
- if (!elm.tagName.includes("-")) {
675
- const n = newValue == null ? "" : newValue;
676
- if (memberName === "list") {
677
- isProp = false;
678
- } else if (oldValue == null || elm[memberName] != n) {
679
- if (typeof elm.__lookupSetter__(memberName) === "function") {
680
- elm[memberName] = n;
681
- } else {
682
- elm.setAttribute(memberName, n);
683
- }
684
- }
685
- } else if (elm[memberName] !== newValue) {
686
- elm[memberName] = newValue;
687
- }
688
- } catch (e) {
689
- }
690
- }
691
- let xlink = false;
692
- {
693
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
694
- memberName = ln;
695
- xlink = true;
696
- }
697
- }
698
- if (newValue == null || newValue === false) {
699
- if (newValue !== false || elm.getAttribute(memberName) === "") {
700
- if (xlink) {
701
- elm.removeAttributeNS(XLINK_NS, memberName);
702
- } else {
703
- elm.removeAttribute(memberName);
704
- }
705
- }
706
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
707
- newValue = newValue === true ? "" : newValue;
708
- if (xlink) {
709
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
710
- } else {
711
- elm.setAttribute(memberName, newValue);
712
- }
713
- }
714
- }
715
- };
716
- var parseClassListRegex = /\s/;
717
- var parseClassList = (value) => {
718
- if (typeof value === "object" && value && "baseVal" in value) {
719
- value = value.baseVal;
720
- }
721
- if (!value || typeof value !== "string") {
722
- return [];
723
- }
724
- return value.split(parseClassListRegex);
725
- };
726
- var CAPTURE_EVENT_SUFFIX = "Capture";
727
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
728
-
729
- // src/runtime/vdom/update-element.ts
730
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
731
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
732
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
733
- const newVnodeAttrs = newVnode.$attrs$ || {};
734
- {
735
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
736
- if (!(memberName in newVnodeAttrs)) {
737
- setAccessor(
738
- elm,
739
- memberName,
740
- oldVnodeAttrs[memberName],
741
- void 0,
742
- isSvgMode2,
743
- newVnode.$flags$);
744
- }
745
- }
746
- }
747
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
748
- setAccessor(
749
- elm,
750
- memberName,
751
- oldVnodeAttrs[memberName],
752
- newVnodeAttrs[memberName],
753
- isSvgMode2,
754
- newVnode.$flags$);
755
- }
756
- };
757
- function sortedAttrNames(attrNames) {
758
- return attrNames.includes("ref") ? (
759
- // we need to sort these to ensure that `'ref'` is the last attr
760
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
761
- ) : (
762
- // no need to sort, return the original array
763
- attrNames
764
- );
765
- }
766
-
767
- // src/runtime/vdom/vdom-render.ts
768
- var scopeId;
769
- var contentRef;
770
- var hostTagName;
771
- var useNativeShadowDom = false;
772
- var checkSlotFallbackVisibility = false;
773
- var checkSlotRelocate = false;
774
- var isSvgMode = false;
775
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
776
- var _a;
777
- const newVNode2 = newParentVNode.$children$[childIndex];
778
- let i2 = 0;
779
- let elm;
780
- let childNode;
781
- let oldVNode;
782
- if (!useNativeShadowDom) {
783
- checkSlotRelocate = true;
784
- if (newVNode2.$tag$ === "slot") {
785
- newVNode2.$flags$ |= newVNode2.$children$ ? (
786
- // slot element has fallback content
787
- // still create an element that "mocks" the slot element
788
- 2 /* isSlotFallback */
789
- ) : (
790
- // slot element does not have fallback content
791
- // create an html comment we'll use to always reference
792
- // where actual slot content should sit next to
793
- 1 /* isSlotReference */
794
- );
795
- }
796
- }
797
- if (newVNode2.$text$ !== null) {
798
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
799
- } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
800
- elm = newVNode2.$elm$ = win.document.createTextNode("");
801
- {
802
- updateElement(null, newVNode2, isSvgMode);
803
- }
804
- } else {
805
- if (!isSvgMode) {
806
- isSvgMode = newVNode2.$tag$ === "svg";
807
- }
808
- if (!win.document) {
809
- throw new Error(
810
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
811
- );
812
- }
813
- elm = newVNode2.$elm$ = win.document.createElementNS(
814
- isSvgMode ? SVG_NS : HTML_NS,
815
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
816
- ) ;
817
- if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
818
- isSvgMode = false;
819
- }
820
- {
821
- updateElement(null, newVNode2, isSvgMode);
822
- }
823
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
824
- elm.classList.add(elm["s-si"] = scopeId);
825
- }
826
- if (newVNode2.$children$) {
827
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
828
- childNode = createElm(oldParentVNode, newVNode2, i2);
829
- if (childNode) {
830
- elm.appendChild(childNode);
831
- }
832
- }
833
- }
834
- {
835
- if (newVNode2.$tag$ === "svg") {
836
- isSvgMode = false;
837
- } else if (elm.tagName === "foreignObject") {
838
- isSvgMode = true;
839
- }
840
- }
841
- }
842
- elm["s-hn"] = hostTagName;
843
- {
844
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
845
- elm["s-sr"] = true;
846
- elm["s-cr"] = contentRef;
847
- elm["s-sn"] = newVNode2.$name$ || "";
848
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
849
- patchSlotNode(elm);
850
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
851
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
852
- {
853
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
854
- }
855
- }
856
- {
857
- addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
858
- }
859
- }
860
- }
861
- return elm;
862
- };
863
- var putBackInOriginalLocation = (parentElm, recursive) => {
864
- plt.$flags$ |= 1 /* isTmpDisconnected */;
865
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
866
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
867
- let node = parentElm;
868
- while (node = node.nextSibling) {
869
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
870
- oldSlotChildNodes.push(node);
871
- }
872
- }
873
- }
874
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
875
- const childNode = oldSlotChildNodes[i2];
876
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
877
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
878
- childNode["s-ol"].remove();
879
- childNode["s-ol"] = void 0;
880
- childNode["s-sh"] = void 0;
881
- checkSlotRelocate = true;
882
- }
883
- if (recursive) {
884
- putBackInOriginalLocation(childNode, recursive);
885
- }
886
- }
887
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
888
- };
889
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
890
- let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
891
- let childNode;
892
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
893
- containerElm = containerElm.shadowRoot;
894
- }
895
- for (; startIdx <= endIdx; ++startIdx) {
896
- if (vnodes[startIdx]) {
897
- childNode = createElm(null, parentVNode, startIdx);
898
- if (childNode) {
899
- vnodes[startIdx].$elm$ = childNode;
900
- insertBefore(containerElm, childNode, referenceNode(before) );
901
- }
902
- }
903
- }
904
- };
905
- var removeVnodes = (vnodes, startIdx, endIdx) => {
906
- for (let index = startIdx; index <= endIdx; ++index) {
907
- const vnode = vnodes[index];
908
- if (vnode) {
909
- const elm = vnode.$elm$;
910
- nullifyVNodeRefs(vnode);
911
- if (elm) {
912
- {
913
- checkSlotFallbackVisibility = true;
914
- if (elm["s-ol"]) {
915
- elm["s-ol"].remove();
916
- } else {
917
- putBackInOriginalLocation(elm, true);
918
- }
919
- }
920
- elm.remove();
921
- }
922
- }
923
- }
924
- };
925
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
926
- let oldStartIdx = 0;
927
- let newStartIdx = 0;
928
- let idxInOld = 0;
929
- let i2 = 0;
930
- let oldEndIdx = oldCh.length - 1;
931
- let oldStartVnode = oldCh[0];
932
- let oldEndVnode = oldCh[oldEndIdx];
933
- let newEndIdx = newCh.length - 1;
934
- let newStartVnode = newCh[0];
935
- let newEndVnode = newCh[newEndIdx];
936
- let node;
937
- let elmToMove;
938
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
939
- if (oldStartVnode == null) {
940
- oldStartVnode = oldCh[++oldStartIdx];
941
- } else if (oldEndVnode == null) {
942
- oldEndVnode = oldCh[--oldEndIdx];
943
- } else if (newStartVnode == null) {
944
- newStartVnode = newCh[++newStartIdx];
945
- } else if (newEndVnode == null) {
946
- newEndVnode = newCh[--newEndIdx];
947
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
948
- patch(oldStartVnode, newStartVnode, isInitialRender);
949
- oldStartVnode = oldCh[++oldStartIdx];
950
- newStartVnode = newCh[++newStartIdx];
951
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
952
- patch(oldEndVnode, newEndVnode, isInitialRender);
953
- oldEndVnode = oldCh[--oldEndIdx];
954
- newEndVnode = newCh[--newEndIdx];
955
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
956
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
957
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
958
- }
959
- patch(oldStartVnode, newEndVnode, isInitialRender);
960
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
961
- oldStartVnode = oldCh[++oldStartIdx];
962
- newEndVnode = newCh[--newEndIdx];
963
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
964
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
965
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
966
- }
967
- patch(oldEndVnode, newStartVnode, isInitialRender);
968
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
969
- oldEndVnode = oldCh[--oldEndIdx];
970
- newStartVnode = newCh[++newStartIdx];
971
- } else {
972
- idxInOld = -1;
973
- {
974
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
975
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
976
- idxInOld = i2;
977
- break;
978
- }
979
- }
980
- }
981
- if (idxInOld >= 0) {
982
- elmToMove = oldCh[idxInOld];
983
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
984
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
985
- } else {
986
- patch(elmToMove, newStartVnode, isInitialRender);
987
- oldCh[idxInOld] = void 0;
988
- node = elmToMove.$elm$;
989
- }
990
- newStartVnode = newCh[++newStartIdx];
991
- } else {
992
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
993
- newStartVnode = newCh[++newStartIdx];
994
- }
995
- if (node) {
996
- {
997
- insertBefore(
998
- referenceNode(oldStartVnode.$elm$).parentNode,
999
- node,
1000
- referenceNode(oldStartVnode.$elm$)
1001
- );
1002
- }
1003
- }
1004
- }
1005
- }
1006
- if (oldStartIdx > oldEndIdx) {
1007
- addVnodes(
1008
- parentElm,
1009
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1010
- newVNode2,
1011
- newCh,
1012
- newStartIdx,
1013
- newEndIdx
1014
- );
1015
- } else if (newStartIdx > newEndIdx) {
1016
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1017
- }
1018
- };
1019
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1020
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1021
- if (leftVNode.$tag$ === "slot") {
1022
- return leftVNode.$name$ === rightVNode.$name$;
1023
- }
1024
- if (!isInitialRender) {
1025
- return leftVNode.$key$ === rightVNode.$key$;
1026
- }
1027
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1028
- leftVNode.$key$ = rightVNode.$key$;
1029
- }
1030
- return true;
1031
- }
1032
- return false;
1033
- };
1034
- var referenceNode = (node) => node && node["s-ol"] || node;
1035
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1036
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1037
- const oldChildren = oldVNode.$children$;
1038
- const newChildren = newVNode2.$children$;
1039
- const tag = newVNode2.$tag$;
1040
- const text = newVNode2.$text$;
1041
- let defaultHolder;
1042
- if (text === null) {
1043
- {
1044
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1045
- }
1046
- {
1047
- updateElement(oldVNode, newVNode2, isSvgMode);
1048
- }
1049
- if (oldChildren !== null && newChildren !== null) {
1050
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1051
- } else if (newChildren !== null) {
1052
- if (oldVNode.$text$ !== null) {
1053
- elm.textContent = "";
1054
- }
1055
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1056
- } else if (
1057
- // don't do this on initial render as it can cause non-hydrated content to be removed
1058
- !isInitialRender && BUILD.updatable && oldChildren !== null
1059
- ) {
1060
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1061
- }
1062
- if (isSvgMode && tag === "svg") {
1063
- isSvgMode = false;
1064
- }
1065
- } else if ((defaultHolder = elm["s-cr"])) {
1066
- defaultHolder.parentNode.textContent = text;
1067
- } else if (oldVNode.$text$ !== text) {
1068
- elm.data = text;
1069
- }
1070
- };
1071
- var relocateNodes = [];
1072
- var markSlotContentForRelocation = (elm) => {
1073
- let node;
1074
- let hostContentNodes;
1075
- let j;
1076
- const children = elm.__childNodes || elm.childNodes;
1077
- for (const childNode of children) {
1078
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1079
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1080
- const slotName = childNode["s-sn"];
1081
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1082
- node = hostContentNodes[j];
1083
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
1084
- if (isNodeLocatedInSlot(node, slotName)) {
1085
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1086
- checkSlotFallbackVisibility = true;
1087
- node["s-sn"] = node["s-sn"] || slotName;
1088
- if (relocateNodeData) {
1089
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1090
- relocateNodeData.$slotRefNode$ = childNode;
1091
- } else {
1092
- node["s-sh"] = childNode["s-hn"];
1093
- relocateNodes.push({
1094
- $slotRefNode$: childNode,
1095
- $nodeToRelocate$: node
1096
- });
1097
- }
1098
- if (node["s-sr"]) {
1099
- relocateNodes.map((relocateNode) => {
1100
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1101
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1102
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1103
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1104
- }
1105
- }
1106
- });
1107
- }
1108
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1109
- relocateNodes.push({
1110
- $nodeToRelocate$: node
1111
- });
1112
- }
1113
- }
1114
- }
1115
- }
1116
- if (childNode.nodeType === 1 /* ElementNode */) {
1117
- markSlotContentForRelocation(childNode);
1118
- }
1119
- }
1120
- };
1121
- var nullifyVNodeRefs = (vNode) => {
1122
- {
1123
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1124
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1125
- }
1126
- };
1127
- var insertBefore = (parent, newNode, reference) => {
1128
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
1129
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1130
- }
1131
- {
1132
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1133
- }
1134
- };
1135
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
1136
- var _a, _b;
1137
- let scopeId2;
1138
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
1139
- const scopeName = slotNode["s-sn"];
1140
- const hostName = slotNode["s-hn"];
1141
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
1142
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
1143
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
1144
- let found = false;
1145
- while (child) {
1146
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
1147
- found = true;
1148
- break;
1149
- }
1150
- child = child.nextSibling;
1151
- }
1152
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
1153
- }
1154
- }
1155
- }
1156
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1157
- var _a, _b, _c, _d;
1158
- const hostElm = hostRef.$hostElement$;
1159
- const cmpMeta = hostRef.$cmpMeta$;
1160
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1161
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1162
- hostTagName = hostElm.tagName;
1163
- if (isInitialLoad && rootVnode.$attrs$) {
1164
- for (const key of Object.keys(rootVnode.$attrs$)) {
1165
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1166
- rootVnode.$attrs$[key] = hostElm[key];
1167
- }
1168
- }
1169
- }
1170
- rootVnode.$tag$ = null;
1171
- rootVnode.$flags$ |= 4 /* isHost */;
1172
- hostRef.$vnode$ = rootVnode;
1173
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1174
- {
1175
- scopeId = hostElm["s-sc"];
1176
- }
1177
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1178
- {
1179
- contentRef = hostElm["s-cr"];
1180
- checkSlotFallbackVisibility = false;
1181
- }
1182
- patch(oldVNode, rootVnode, isInitialLoad);
1183
- {
1184
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1185
- if (checkSlotRelocate) {
1186
- markSlotContentForRelocation(rootVnode.$elm$);
1187
- for (const relocateData of relocateNodes) {
1188
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1189
- if (!nodeToRelocate["s-ol"] && win.document) {
1190
- const orgLocationNode = win.document.createTextNode("");
1191
- orgLocationNode["s-nr"] = nodeToRelocate;
1192
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1193
- }
1194
- }
1195
- for (const relocateData of relocateNodes) {
1196
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1197
- const slotRefNode = relocateData.$slotRefNode$;
1198
- if (slotRefNode) {
1199
- const parentNodeRef = slotRefNode.parentNode;
1200
- let insertBeforeNode = slotRefNode.nextSibling;
1201
- {
1202
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1203
- while (orgLocationNode) {
1204
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1205
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1206
- refNode = refNode.nextSibling;
1207
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1208
- refNode = refNode == null ? void 0 : refNode.nextSibling;
1209
- }
1210
- if (!refNode || !refNode["s-nr"]) {
1211
- insertBeforeNode = refNode;
1212
- break;
1213
- }
1214
- }
1215
- orgLocationNode = orgLocationNode.previousSibling;
1216
- }
1217
- }
1218
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1219
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1220
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1221
- if (nodeToRelocate !== insertBeforeNode) {
1222
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1223
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1224
- }
1225
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1226
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1227
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1228
- }
1229
- }
1230
- }
1231
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1232
- } else {
1233
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1234
- if (isInitialLoad) {
1235
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1236
- }
1237
- nodeToRelocate.hidden = true;
1238
- }
1239
- }
1240
- }
1241
- }
1242
- if (checkSlotFallbackVisibility) {
1243
- updateFallbackSlotVisibility(rootVnode.$elm$);
1244
- }
1245
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1246
- relocateNodes.length = 0;
1247
- }
1248
- contentRef = void 0;
1249
- };
1250
-
1251
- // src/runtime/update-component.ts
1252
- var attachToAncestor = (hostRef, ancestorComponent) => {
1253
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1254
- const index = ancestorComponent["s-p"].push(
1255
- new Promise(
1256
- (r) => hostRef.$onRenderResolve$ = () => {
1257
- ancestorComponent["s-p"].splice(index - 1, 1);
1258
- r();
1259
- }
1260
- )
1261
- );
1262
- }
1263
- };
1264
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1265
- {
1266
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1267
- }
1268
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1269
- hostRef.$flags$ |= 512 /* needsRerender */;
1270
- return;
1271
- }
1272
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1273
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1274
- return writeTask(dispatch) ;
1275
- };
1276
- var dispatchHooks = (hostRef, isInitialLoad) => {
1277
- const elm = hostRef.$hostElement$;
1278
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1279
- const instance = hostRef.$lazyInstance$ ;
1280
- if (!instance) {
1281
- throw new Error(
1282
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
1283
- );
1284
- }
1285
- let maybePromise;
1286
- if (isInitialLoad) {
1287
- {
1288
- hostRef.$flags$ |= 256 /* isListenReady */;
1289
- if (hostRef.$queuedListeners$) {
1290
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1291
- hostRef.$queuedListeners$ = void 0;
1292
- }
1293
- }
1294
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1295
- } else {
1296
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1297
- }
1298
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1299
- endSchedule();
1300
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1301
- };
1302
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1303
- console.error(err2);
1304
- fn();
1305
- }) : fn();
1306
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1307
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
1308
- var _a;
1309
- const elm = hostRef.$hostElement$;
1310
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1311
- const rc = elm["s-rc"];
1312
- if (isInitialLoad) {
1313
- attachStyles(hostRef);
1314
- }
1315
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1316
- {
1317
- callRender(hostRef, instance, elm, isInitialLoad);
1318
- }
1319
- if (rc) {
1320
- rc.map((cb) => cb());
1321
- elm["s-rc"] = void 0;
1322
- }
1323
- endRender();
1324
- endUpdate();
1325
- {
1326
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1327
- const postUpdate = () => postUpdateComponent(hostRef);
1328
- if (childrenPromises.length === 0) {
1329
- postUpdate();
1330
- } else {
1331
- Promise.all(childrenPromises).then(postUpdate);
1332
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1333
- childrenPromises.length = 0;
1334
- }
1335
- }
1336
- };
1337
- var renderingRef = null;
1338
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1339
- try {
1340
- renderingRef = instance;
1341
- instance = instance.render() ;
1342
- {
1343
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1344
- }
1345
- {
1346
- hostRef.$flags$ |= 2 /* hasRendered */;
1347
- }
1348
- {
1349
- {
1350
- {
1351
- renderVdom(hostRef, instance, isInitialLoad);
1352
- }
1353
- }
1354
- }
1355
- } catch (e) {
1356
- consoleError(e, hostRef.$hostElement$);
1357
- }
1358
- renderingRef = null;
1359
- return null;
1360
- };
1361
- var getRenderingRef = () => renderingRef;
1362
- var postUpdateComponent = (hostRef) => {
1363
- const tagName = hostRef.$cmpMeta$.$tagName$;
1364
- const elm = hostRef.$hostElement$;
1365
- const endPostUpdate = createTime("postUpdate", tagName);
1366
- const instance = hostRef.$lazyInstance$ ;
1367
- const ancestorComponent = hostRef.$ancestorComponent$;
1368
- safeCall(instance, "componentDidRender", void 0, elm);
1369
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1370
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1371
- {
1372
- addHydratedFlag(elm);
1373
- }
1374
- safeCall(instance, "componentDidLoad", void 0, elm);
1375
- endPostUpdate();
1376
- {
1377
- hostRef.$onReadyResolve$(elm);
1378
- if (!ancestorComponent) {
1379
- appDidLoad();
1380
- }
1381
- }
1382
- } else {
1383
- safeCall(instance, "componentDidUpdate", void 0, elm);
1384
- endPostUpdate();
1385
- }
1386
- {
1387
- hostRef.$onInstanceResolve$(elm);
1388
- }
1389
- {
1390
- if (hostRef.$onRenderResolve$) {
1391
- hostRef.$onRenderResolve$();
1392
- hostRef.$onRenderResolve$ = void 0;
1393
- }
1394
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1395
- nextTick(() => scheduleUpdate(hostRef, false));
1396
- }
1397
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1398
- }
1399
- };
1400
- var forceUpdate = (ref) => {
1401
- {
1402
- const hostRef = getHostRef(ref);
1403
- const isConnected = hostRef.$hostElement$.isConnected;
1404
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1405
- scheduleUpdate(hostRef, false);
1406
- }
1407
- return isConnected;
1408
- }
1409
- };
1410
- var appDidLoad = (who) => {
1411
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1412
- };
1413
- var safeCall = (instance, method, arg, elm) => {
1414
- if (instance && instance[method]) {
1415
- try {
1416
- return instance[method](arg);
1417
- } catch (e) {
1418
- consoleError(e, elm);
1419
- }
1420
- }
1421
- return void 0;
1422
- };
1423
- var addHydratedFlag = (elm) => {
1424
- var _a;
1425
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1426
- };
1427
-
1428
- // src/runtime/set-value.ts
1429
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1430
- var setValue = (ref, propName, newVal, cmpMeta) => {
1431
- const hostRef = getHostRef(ref);
1432
- if (!hostRef) {
1433
- throw new Error(
1434
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1435
- );
1436
- }
1437
- const elm = hostRef.$hostElement$ ;
1438
- const oldVal = hostRef.$instanceValues$.get(propName);
1439
- const flags = hostRef.$flags$;
1440
- const instance = hostRef.$lazyInstance$ ;
1441
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1442
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1443
- const didValueChange = newVal !== oldVal && !areBothNaN;
1444
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1445
- hostRef.$instanceValues$.set(propName, newVal);
1446
- if (instance) {
1447
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1448
- const watchMethods = cmpMeta.$watchers$[propName];
1449
- if (watchMethods) {
1450
- watchMethods.map((watchMethodName) => {
1451
- try {
1452
- instance[watchMethodName](newVal, oldVal, propName);
1453
- } catch (e) {
1454
- consoleError(e, elm);
1455
- }
1456
- });
1457
- }
1458
- }
1459
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1460
- if (instance.componentShouldUpdate) {
1461
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1462
- return;
1463
- }
1464
- }
1465
- scheduleUpdate(hostRef, false);
1466
- }
1467
- }
1468
- }
1469
- };
1470
-
1471
- // src/runtime/proxy-component.ts
1472
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1473
- var _a, _b;
1474
- const prototype = Cstr.prototype;
1475
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1476
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1477
- cmpMeta.$watchers$ = Cstr.watchers;
1478
- }
1479
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1480
- members.map(([memberName, [memberFlags]]) => {
1481
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1482
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1483
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1484
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1485
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1486
- Object.defineProperty(prototype, memberName, {
1487
- get() {
1488
- {
1489
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1490
- return getValue(this, memberName);
1491
- }
1492
- const ref = getHostRef(this);
1493
- const instance = ref ? ref.$lazyInstance$ : prototype;
1494
- if (!instance) return;
1495
- return instance[memberName];
1496
- }
1497
- },
1498
- configurable: true,
1499
- enumerable: true
1500
- });
1501
- }
1502
- Object.defineProperty(prototype, memberName, {
1503
- set(newValue) {
1504
- const ref = getHostRef(this);
1505
- if (origSetter) {
1506
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1507
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1508
- newValue = ref.$instanceValues$.get(memberName);
1509
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1510
- ref.$instanceValues$.set(memberName, currentValue);
1511
- }
1512
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1513
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1514
- setValue(this, memberName, newValue, cmpMeta);
1515
- return;
1516
- }
1517
- {
1518
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1519
- setValue(this, memberName, newValue, cmpMeta);
1520
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1521
- ref.$onReadyPromise$.then(() => {
1522
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1523
- ref.$lazyInstance$[memberName] = newValue;
1524
- }
1525
- });
1526
- }
1527
- return;
1528
- }
1529
- const setterSetVal = () => {
1530
- const currentValue = ref.$lazyInstance$[memberName];
1531
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1532
- ref.$instanceValues$.set(memberName, currentValue);
1533
- }
1534
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1535
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1536
- };
1537
- if (ref.$lazyInstance$) {
1538
- setterSetVal();
1539
- } else {
1540
- ref.$onReadyPromise$.then(() => setterSetVal());
1541
- }
1542
- }
1543
- }
1544
- });
1545
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1546
- Object.defineProperty(prototype, memberName, {
1547
- value(...args) {
1548
- var _a2;
1549
- const ref = getHostRef(this);
1550
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1551
- var _a3;
1552
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1553
- });
1554
- }
1555
- });
1556
- }
1557
- });
1558
- if ((flags & 1 /* isElementConstructor */)) {
1559
- const attrNameToPropName = /* @__PURE__ */ new Map();
1560
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1561
- plt.jmp(() => {
1562
- var _a2;
1563
- const propName = attrNameToPropName.get(attrName);
1564
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1565
- newValue = this[propName];
1566
- delete this[propName];
1567
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1568
- this[propName] == newValue) {
1569
- return;
1570
- } else if (propName == null) {
1571
- const hostRef = getHostRef(this);
1572
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1573
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1574
- const instance = hostRef.$lazyInstance$ ;
1575
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1576
- entry == null ? void 0 : entry.forEach((callbackName) => {
1577
- if (instance[callbackName] != null) {
1578
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1579
- }
1580
- });
1581
- }
1582
- return;
1583
- }
1584
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1585
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1586
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1587
- this[propName] = newValue;
1588
- }
1589
- });
1590
- };
1591
- Cstr.observedAttributes = Array.from(
1592
- /* @__PURE__ */ new Set([
1593
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1594
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1595
- const attrName = m[1] || propName;
1596
- attrNameToPropName.set(attrName, propName);
1597
- return attrName;
1598
- })
1599
- ])
1600
- );
1601
- }
1602
- }
1603
- return Cstr;
1604
- };
1605
-
1606
- // src/runtime/initialize-component.ts
1607
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1608
- let Cstr;
1609
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1610
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1611
- const bundleId = cmpMeta.$lazyBundleId$;
1612
- if (bundleId) {
1613
- const CstrImport = loadModule(cmpMeta, hostRef);
1614
- if (CstrImport && "then" in CstrImport) {
1615
- const endLoad = uniqueTime();
1616
- Cstr = await CstrImport;
1617
- endLoad();
1618
- } else {
1619
- Cstr = CstrImport;
1620
- }
1621
- if (!Cstr) {
1622
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1623
- }
1624
- if (!Cstr.isProxied) {
1625
- {
1626
- cmpMeta.$watchers$ = Cstr.watchers;
1627
- }
1628
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1629
- Cstr.isProxied = true;
1630
- }
1631
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1632
- {
1633
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1634
- }
1635
- try {
1636
- new Cstr(hostRef);
1637
- } catch (e) {
1638
- consoleError(e, elm);
1639
- }
1640
- {
1641
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1642
- }
1643
- {
1644
- hostRef.$flags$ |= 128 /* isWatchReady */;
1645
- }
1646
- endNewInstance();
1647
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1648
- } else {
1649
- Cstr = elm.constructor;
1650
- const cmpTag = elm.localName;
1651
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1652
- }
1653
- if (Cstr && Cstr.style) {
1654
- let style;
1655
- if (typeof Cstr.style === "string") {
1656
- style = Cstr.style;
1657
- }
1658
- const scopeId2 = getScopeId(cmpMeta);
1659
- if (!styles.has(scopeId2)) {
1660
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1661
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1662
- endRegisterStyles();
1663
- }
1664
- }
1665
- }
1666
- const ancestorComponent = hostRef.$ancestorComponent$;
1667
- const schedule = () => scheduleUpdate(hostRef, true);
1668
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1669
- ancestorComponent["s-rc"].push(schedule);
1670
- } else {
1671
- schedule();
1672
- }
1673
- };
1674
- var fireConnectedCallback = (instance, elm) => {
1675
- {
1676
- safeCall(instance, "connectedCallback", void 0, elm);
1677
- }
1678
- };
1679
-
1680
- // src/runtime/connected-callback.ts
1681
- var connectedCallback = (elm) => {
1682
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1683
- const hostRef = getHostRef(elm);
1684
- const cmpMeta = hostRef.$cmpMeta$;
1685
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1686
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1687
- hostRef.$flags$ |= 1 /* hasConnected */;
1688
- {
1689
- if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1690
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1691
- setContentReference(elm);
1692
- }
1693
- }
1694
- {
1695
- let ancestorComponent = elm;
1696
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1697
- if (ancestorComponent["s-p"]) {
1698
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1699
- break;
1700
- }
1701
- }
1702
- }
1703
- if (cmpMeta.$members$) {
1704
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1705
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1706
- const value = elm[memberName];
1707
- delete elm[memberName];
1708
- elm[memberName] = value;
1709
- }
1710
- });
1711
- }
1712
- {
1713
- initializeComponent(elm, hostRef, cmpMeta);
1714
- }
1715
- } else {
1716
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1717
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1718
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1719
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1720
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1721
- }
1722
- }
1723
- endConnected();
1724
- }
1725
- };
1726
- var setContentReference = (elm) => {
1727
- if (!win.document) {
1728
- return;
1729
- }
1730
- const contentRefElm = elm["s-cr"] = win.document.createComment(
1731
- ""
1732
- );
1733
- contentRefElm["s-cn"] = true;
1734
- insertBefore(elm, contentRefElm, elm.firstChild);
1735
- };
1736
- var disconnectInstance = (instance, elm) => {
1737
- {
1738
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1739
- }
1740
- };
1741
- var disconnectedCallback = async (elm) => {
1742
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1743
- const hostRef = getHostRef(elm);
1744
- {
1745
- if (hostRef.$rmListeners$) {
1746
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1747
- hostRef.$rmListeners$ = void 0;
1748
- }
1749
- }
1750
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1751
- disconnectInstance(hostRef.$lazyInstance$, elm);
1752
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1753
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1754
- }
1755
- }
1756
- if (rootAppliedStyles.has(elm)) {
1757
- rootAppliedStyles.delete(elm);
1758
- }
1759
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1760
- rootAppliedStyles.delete(elm.shadowRoot);
1761
- }
1762
- };
1763
-
1764
- // src/runtime/bootstrap-lazy.ts
1765
- var bootstrapLazy = (lazyBundles, options = {}) => {
1766
- var _a;
1767
- if (!win.document) {
1768
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1769
- return;
1770
- }
1771
- const endBootstrap = createTime();
1772
- const cmpTags = [];
1773
- const exclude = options.exclude || [];
1774
- const customElements2 = win.customElements;
1775
- const head = win.document.head;
1776
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1777
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1778
- const deferredConnectedCallbacks = [];
1779
- let appLoadFallback;
1780
- let isBootstrapping = true;
1781
- Object.assign(plt, options);
1782
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1783
- let hasSlotRelocation = false;
1784
- lazyBundles.map((lazyBundle) => {
1785
- lazyBundle[1].map((compactMeta) => {
1786
- var _a2;
1787
- const cmpMeta = {
1788
- $flags$: compactMeta[0],
1789
- $tagName$: compactMeta[1],
1790
- $members$: compactMeta[2],
1791
- $listeners$: compactMeta[3]
1792
- };
1793
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1794
- hasSlotRelocation = true;
1795
- }
1796
- {
1797
- cmpMeta.$members$ = compactMeta[2];
1798
- }
1799
- {
1800
- cmpMeta.$listeners$ = compactMeta[3];
1801
- }
1802
- {
1803
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1804
- }
1805
- const tagName = cmpMeta.$tagName$;
1806
- const HostElement = class extends HTMLElement {
1807
- // StencilLazyHost
1808
- constructor(self) {
1809
- super(self);
1810
- this.hasRegisteredEventListeners = false;
1811
- self = this;
1812
- registerHost(self, cmpMeta);
1813
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1814
- {
1815
- if (!self.shadowRoot) {
1816
- {
1817
- self.attachShadow({
1818
- mode: "open",
1819
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
1820
- });
1821
- }
1822
- } else {
1823
- if (self.shadowRoot.mode !== "open") {
1824
- throw new Error(
1825
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1826
- );
1827
- }
1828
- }
1829
- }
1830
- }
1831
- }
1832
- connectedCallback() {
1833
- const hostRef = getHostRef(this);
1834
- if (!this.hasRegisteredEventListeners) {
1835
- this.hasRegisteredEventListeners = true;
1836
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1837
- }
1838
- if (appLoadFallback) {
1839
- clearTimeout(appLoadFallback);
1840
- appLoadFallback = null;
1841
- }
1842
- if (isBootstrapping) {
1843
- deferredConnectedCallbacks.push(this);
1844
- } else {
1845
- plt.jmp(() => connectedCallback(this));
1846
- }
1847
- }
1848
- disconnectedCallback() {
1849
- plt.jmp(() => disconnectedCallback(this));
1850
- plt.raf(() => {
1851
- var _a3;
1852
- const hostRef = getHostRef(this);
1853
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1854
- if (i2 > -1) {
1855
- deferredConnectedCallbacks.splice(i2, 1);
1856
- }
1857
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1858
- delete hostRef.$vnode$.$elm$;
1859
- }
1860
- });
1861
- }
1862
- componentOnReady() {
1863
- return getHostRef(this).$onReadyPromise$;
1864
- }
1865
- };
1866
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1867
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1868
- cmpTags.push(tagName);
1869
- customElements2.define(
1870
- tagName,
1871
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1872
- );
1873
- }
1874
- });
1875
- });
1876
- if (cmpTags.length > 0) {
1877
- if (hasSlotRelocation) {
1878
- dataStyles.textContent += SLOT_FB_CSS;
1879
- }
1880
- {
1881
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1882
- }
1883
- if (dataStyles.innerHTML.length) {
1884
- dataStyles.setAttribute("data-styles", "");
1885
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1886
- if (nonce != null) {
1887
- dataStyles.setAttribute("nonce", nonce);
1888
- }
1889
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1890
- }
1891
- }
1892
- isBootstrapping = false;
1893
- if (deferredConnectedCallbacks.length) {
1894
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1895
- } else {
1896
- {
1897
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1898
- }
1899
- }
1900
- endBootstrap();
1901
- };
1902
-
1903
- // src/runtime/fragment.ts
1904
- var Fragment = (_, children) => children;
1905
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1906
- if (listeners && win.document) {
1907
- listeners.map(([flags, name, method]) => {
1908
- const target = getHostListenerTarget(win.document, elm, flags) ;
1909
- const handler = hostListenerProxy(hostRef, method);
1910
- const opts = hostListenerOpts(flags);
1911
- plt.ael(target, name, handler, opts);
1912
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1913
- });
1914
- }
1915
- };
1916
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
1917
- var _a;
1918
- try {
1919
- {
1920
- if (hostRef.$flags$ & 256 /* isListenReady */) {
1921
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1922
- } else {
1923
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1924
- }
1925
- }
1926
- } catch (e) {
1927
- consoleError(e, hostRef.$hostElement$);
1928
- }
1929
- };
1930
- var getHostListenerTarget = (doc, elm, flags) => {
1931
- if (flags & 4 /* TargetDocument */) {
1932
- return doc;
1933
- }
1934
- if (flags & 8 /* TargetWindow */) {
1935
- return win;
1936
- }
1937
- if (flags & 16 /* TargetBody */) {
1938
- return doc.body;
1939
- }
1940
- return elm;
1941
- };
1942
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
1943
- passive: (flags & 1 /* Passive */) !== 0,
1944
- capture: (flags & 2 /* Capture */) !== 0
1945
- } : (flags & 2 /* Capture */) !== 0;
1946
-
1947
- // src/runtime/nonce.ts
1948
- var setNonce = (nonce) => plt.$nonce$ = nonce;
1949
-
1950
- exports.Fragment = Fragment;
1951
- exports.Host = Host;
1952
- exports.bootstrapLazy = bootstrapLazy;
1953
- exports.createEvent = createEvent;
1954
- exports.forceUpdate = forceUpdate;
1955
- exports.getAssetPath = getAssetPath;
1956
- exports.getElement = getElement;
1957
- exports.getRenderingRef = getRenderingRef;
1958
- exports.h = h;
1959
- exports.promiseResolve = promiseResolve;
1960
- exports.registerInstance = registerInstance;
1961
- exports.setNonce = setNonce;