@pine-ds/core 0.0.2-alpha.0 → 0.0.2-rc.0

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 (276) hide show
  1. package/components/custom-elements.d.ts +2 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +3 -0
  4. package/components/index.js.map +1 -0
  5. package/components/package.json +9 -0
  6. package/components/pds-avatar.d.ts +11 -0
  7. package/components/pds-avatar.js +98 -0
  8. package/components/pds-avatar.js.map +1 -0
  9. package/components/pds-button.d.ts +11 -0
  10. package/components/pds-button.js +8 -0
  11. package/components/pds-button.js.map +1 -0
  12. package/components/pds-button2.js +82 -0
  13. package/components/pds-button2.js.map +1 -0
  14. package/components/pds-checkbox.d.ts +11 -0
  15. package/components/pds-checkbox.js +83 -0
  16. package/components/pds-checkbox.js.map +1 -0
  17. package/components/pds-chip.d.ts +11 -0
  18. package/components/pds-chip.js +76 -0
  19. package/components/pds-chip.js.map +1 -0
  20. package/components/pds-copytext.d.ts +11 -0
  21. package/components/pds-copytext.js +100 -0
  22. package/components/pds-copytext.js.map +1 -0
  23. package/components/pds-divider.d.ts +11 -0
  24. package/components/pds-divider.js +53 -0
  25. package/components/pds-divider.js.map +1 -0
  26. package/components/pds-icon.js +8 -0
  27. package/components/pds-icon.js.map +1 -0
  28. package/components/pds-icon2.js +323 -0
  29. package/components/pds-icon2.js.map +1 -0
  30. package/components/pds-image.d.ts +11 -0
  31. package/components/pds-image.js +54 -0
  32. package/components/pds-image.js.map +1 -0
  33. package/components/pds-input.d.ts +11 -0
  34. package/components/pds-input.js +71 -0
  35. package/components/pds-input.js.map +1 -0
  36. package/components/pds-label.js +39 -0
  37. package/components/pds-label.js.map +1 -0
  38. package/components/pds-link.d.ts +11 -0
  39. package/components/pds-link.js +66 -0
  40. package/components/pds-link.js.map +1 -0
  41. package/components/pds-progress.d.ts +11 -0
  42. package/components/pds-progress.js +48 -0
  43. package/components/pds-progress.js.map +1 -0
  44. package/components/pds-radio.d.ts +11 -0
  45. package/components/pds-radio.js +77 -0
  46. package/components/pds-radio.js.map +1 -0
  47. package/components/pds-sortable-item.d.ts +11 -0
  48. package/components/pds-sortable-item.js +47 -0
  49. package/components/pds-sortable-item.js.map +1 -0
  50. package/components/pds-sortable.d.ts +11 -0
  51. package/components/pds-sortable.js +2724 -0
  52. package/components/pds-sortable.js.map +1 -0
  53. package/components/pds-switch.d.ts +11 -0
  54. package/components/pds-switch.js +81 -0
  55. package/components/pds-switch.js.map +1 -0
  56. package/components/pds-tab.d.ts +11 -0
  57. package/components/pds-tab.js +52 -0
  58. package/components/pds-tab.js.map +1 -0
  59. package/components/pds-tabpanel.d.ts +11 -0
  60. package/components/pds-tabpanel.js +44 -0
  61. package/components/pds-tabpanel.js.map +1 -0
  62. package/components/pds-tabs.d.ts +11 -0
  63. package/components/pds-tabs.js +118 -0
  64. package/components/pds-tabs.js.map +1 -0
  65. package/components/pds-textarea.d.ts +11 -0
  66. package/components/pds-textarea.js +81 -0
  67. package/components/pds-textarea.js.map +1 -0
  68. package/components/pds-tooltip.d.ts +11 -0
  69. package/components/pds-tooltip.js +177 -0
  70. package/components/pds-tooltip.js.map +1 -0
  71. package/dist/cjs/{index-13500e25.js → index-0b3b1872.js} +25 -17
  72. package/dist/cjs/index-0b3b1872.js.map +1 -0
  73. package/dist/cjs/loader.cjs.js +2 -2
  74. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  75. package/dist/cjs/pds-button.cjs.entry.js +1 -1
  76. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
  77. package/dist/cjs/pds-chip.cjs.entry.js +1 -1
  78. package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
  79. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  80. package/dist/cjs/pds-icon.cjs.entry.js +37 -15
  81. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  82. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  83. package/dist/cjs/pds-input.cjs.entry.js +2 -2
  84. package/dist/cjs/{pds-label-71ea2cad.js → pds-label-43804d0a.js} +2 -2
  85. package/dist/cjs/{pds-label-71ea2cad.js.map → pds-label-43804d0a.js.map} +1 -1
  86. package/dist/cjs/pds-link.cjs.entry.js +5 -2
  87. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  89. package/dist/cjs/pds-radio.cjs.entry.js +2 -2
  90. package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
  91. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  92. package/dist/cjs/pds-switch.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  94. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  95. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  96. package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
  98. package/dist/cjs/pine-core.cjs.js +3 -3
  99. package/dist/cjs/pine-core.cjs.js.map +1 -1
  100. package/dist/collection/collection-manifest.json +1 -1
  101. package/dist/collection/components/pds-link/pds-link.js +2 -1
  102. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  103. package/dist/docs.d.ts +1 -21
  104. package/dist/docs.json +2 -2
  105. package/dist/esm/{index-a58668b3.js → index-8f65139a.js} +25 -17
  106. package/dist/esm/index-8f65139a.js.map +1 -0
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/pds-avatar.entry.js +1 -1
  109. package/dist/esm/pds-button.entry.js +1 -1
  110. package/dist/esm/pds-checkbox.entry.js +2 -2
  111. package/dist/esm/pds-chip.entry.js +1 -1
  112. package/dist/esm/pds-copytext.entry.js +1 -1
  113. package/dist/esm/pds-divider.entry.js +1 -1
  114. package/dist/esm/pds-icon.entry.js +37 -15
  115. package/dist/esm/pds-icon.entry.js.map +1 -1
  116. package/dist/esm/pds-image.entry.js +1 -1
  117. package/dist/esm/pds-input.entry.js +2 -2
  118. package/dist/esm/{pds-label-a26dd876.js → pds-label-85f84612.js} +2 -2
  119. package/dist/esm/{pds-label-a26dd876.js.map → pds-label-85f84612.js.map} +1 -1
  120. package/dist/esm/pds-link.entry.js +5 -2
  121. package/dist/esm/pds-link.entry.js.map +1 -1
  122. package/dist/esm/pds-progress.entry.js +1 -1
  123. package/dist/esm/pds-radio.entry.js +2 -2
  124. package/dist/esm/pds-sortable-item.entry.js +1 -1
  125. package/dist/esm/pds-sortable.entry.js +1 -1
  126. package/dist/esm/pds-switch.entry.js +2 -2
  127. package/dist/esm/pds-tab.entry.js +1 -1
  128. package/dist/esm/pds-tabpanel.entry.js +1 -1
  129. package/dist/esm/pds-tabs.entry.js +1 -1
  130. package/dist/esm/pds-textarea.entry.js +2 -2
  131. package/dist/esm/pds-tooltip.entry.js +1 -1
  132. package/dist/esm/pine-core.js +4 -4
  133. package/dist/esm/pine-core.js.map +1 -1
  134. package/dist/esm-es5/index-8f65139a.js +3 -0
  135. package/dist/esm-es5/index-8f65139a.js.map +1 -0
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/loader.js.map +1 -1
  138. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  139. package/dist/esm-es5/pds-button.entry.js +1 -1
  140. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  141. package/dist/esm-es5/pds-chip.entry.js +1 -1
  142. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  143. package/dist/esm-es5/pds-divider.entry.js +1 -1
  144. package/dist/esm-es5/pds-icon.entry.js +1 -1
  145. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  146. package/dist/esm-es5/pds-image.entry.js +1 -1
  147. package/dist/esm-es5/pds-input.entry.js +1 -1
  148. package/dist/esm-es5/{pds-label-a26dd876.js → pds-label-85f84612.js} +2 -2
  149. package/dist/esm-es5/pds-link.entry.js +1 -1
  150. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  151. package/dist/esm-es5/pds-progress.entry.js +1 -1
  152. package/dist/esm-es5/pds-radio.entry.js +1 -1
  153. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  154. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  155. package/dist/esm-es5/pds-switch.entry.js +1 -1
  156. package/dist/esm-es5/pds-tab.entry.js +1 -1
  157. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  158. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  159. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  160. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  161. package/dist/esm-es5/pine-core.js +1 -1
  162. package/dist/esm-es5/pine-core.js.map +1 -1
  163. package/dist/pine-core/p-0532f829.entry.js +2 -0
  164. package/dist/pine-core/p-0532f829.entry.js.map +1 -0
  165. package/dist/pine-core/{p-f2c3035d.system.entry.js → p-09573d54.system.entry.js} +2 -2
  166. package/dist/pine-core/{p-f09892d3.system.entry.js → p-150e12a5.system.entry.js} +2 -2
  167. package/dist/pine-core/{p-c8a41b43.system.entry.js → p-1a307cc4.system.entry.js} +2 -2
  168. package/dist/pine-core/{p-4fc42ff3.system.entry.js → p-1cb9fddf.system.entry.js} +2 -2
  169. package/dist/pine-core/{p-79d7e0b1.system.entry.js → p-237709cc.system.entry.js} +2 -2
  170. package/dist/pine-core/{p-8f62c812.entry.js → p-23b8d1bb.entry.js} +2 -2
  171. package/dist/pine-core/{p-22dd8116.entry.js → p-2847bd57.entry.js} +2 -2
  172. package/dist/pine-core/{p-f3af6d74.system.entry.js → p-34b29411.system.entry.js} +2 -2
  173. package/dist/pine-core/p-3d2843f8.system.js +2 -0
  174. package/dist/pine-core/{p-c4dbae0e.system.js.map → p-3d2843f8.system.js.map} +1 -1
  175. package/dist/pine-core/{p-73262287.system.entry.js → p-403d43d5.system.entry.js} +2 -2
  176. package/dist/pine-core/{p-669d948a.system.entry.js → p-4472b337.system.entry.js} +2 -2
  177. package/dist/pine-core/{p-f168654a.entry.js → p-465b7120.entry.js} +2 -2
  178. package/dist/pine-core/{p-401cd4bc.entry.js → p-5787d0c0.entry.js} +2 -2
  179. package/dist/pine-core/{p-7bc01826.entry.js → p-59334e35.entry.js} +2 -2
  180. package/dist/pine-core/{p-85f6a94e.system.entry.js → p-5d7bad14.system.entry.js} +2 -2
  181. package/dist/pine-core/{p-331cbf1d.entry.js → p-60930784.entry.js} +2 -2
  182. package/dist/pine-core/{p-bce2d5b5.system.entry.js → p-654295e2.system.entry.js} +2 -2
  183. package/dist/pine-core/{p-c0f9dbe1.system.entry.js → p-66f8fbb0.system.entry.js} +2 -2
  184. package/dist/pine-core/{p-0c26a00d.entry.js → p-6c295ed8.entry.js} +2 -2
  185. package/dist/pine-core/{p-0a776a7b.entry.js → p-6dd5d826.entry.js} +2 -2
  186. package/dist/pine-core/p-6f044e28.entry.js +2 -0
  187. package/dist/pine-core/{p-643f5378.entry.js.map → p-6f044e28.entry.js.map} +1 -1
  188. package/dist/pine-core/{p-5b37a4a2.system.entry.js → p-708a557d.system.entry.js} +2 -2
  189. package/dist/pine-core/{p-fba29e90.entry.js → p-7f16e44f.entry.js} +2 -2
  190. package/dist/pine-core/{p-22bd3102.system.entry.js → p-83040cfc.system.entry.js} +2 -2
  191. package/dist/pine-core/{p-bff583bd.system.js → p-9138d494.system.js} +2 -2
  192. package/dist/pine-core/{p-1c0ffcab.entry.js → p-978cad20.entry.js} +2 -2
  193. package/dist/pine-core/p-9830c8b4.system.js +3 -0
  194. package/dist/pine-core/p-9830c8b4.system.js.map +1 -0
  195. package/dist/pine-core/{p-4a804680.entry.js → p-9a184d74.entry.js} +2 -2
  196. package/dist/pine-core/{p-b17b818b.entry.js → p-aa9f027c.entry.js} +2 -2
  197. package/dist/pine-core/p-b199ca99.entry.js +2 -0
  198. package/dist/pine-core/p-b199ca99.entry.js.map +1 -0
  199. package/dist/pine-core/p-b8421db5.system.entry.js +2 -0
  200. package/dist/pine-core/p-b8421db5.system.entry.js.map +1 -0
  201. package/dist/pine-core/{p-d3e173ea.system.entry.js → p-bf6b565e.system.entry.js} +2 -2
  202. package/dist/pine-core/{p-938886d8.system.entry.js → p-c014702b.system.entry.js} +2 -2
  203. package/dist/pine-core/p-c209ff58.system.entry.js +2 -0
  204. package/dist/pine-core/p-c209ff58.system.entry.js.map +1 -0
  205. package/dist/pine-core/p-c81c20b7.js +3 -0
  206. package/dist/pine-core/p-c81c20b7.js.map +1 -0
  207. package/dist/pine-core/{p-27fd7f08.system.entry.js → p-d0446af7.system.entry.js} +2 -2
  208. package/dist/pine-core/{p-7fcd5f0b.entry.js → p-d1c7a84d.entry.js} +2 -2
  209. package/dist/pine-core/{p-930ab8a3.system.entry.js → p-d6e0c333.system.entry.js} +2 -2
  210. package/dist/pine-core/{p-97cb4285.entry.js → p-d8a277e5.entry.js} +2 -2
  211. package/dist/pine-core/{p-ac31a7c8.system.entry.js → p-da802c91.system.entry.js} +2 -2
  212. package/dist/pine-core/{p-24077dcd.entry.js → p-db6ea8de.entry.js} +2 -2
  213. package/dist/pine-core/{p-f1d7f16f.js → p-e893b132.js} +2 -2
  214. package/dist/pine-core/{p-0adb4b48.entry.js → p-f30549db.entry.js} +2 -2
  215. package/dist/pine-core/{p-af75cc15.entry.js → p-f3ee8a5e.entry.js} +2 -2
  216. package/dist/pine-core/pine-core.esm.js +1 -1
  217. package/dist/pine-core/pine-core.esm.js.map +1 -1
  218. package/dist/pine-core/pine-core.js +1 -1
  219. package/dist/pine-core/svg/blog-filled.svg +1 -1
  220. package/package.json +3 -2
  221. package/dist/cjs/index-13500e25.js.map +0 -1
  222. package/dist/esm/index-a58668b3.js.map +0 -1
  223. package/dist/esm-es5/index-a58668b3.js +0 -3
  224. package/dist/esm-es5/index-a58668b3.js.map +0 -1
  225. package/dist/pine-core/p-23fb6af2.system.entry.js +0 -2
  226. package/dist/pine-core/p-23fb6af2.system.entry.js.map +0 -1
  227. package/dist/pine-core/p-3386bfe1.system.entry.js +0 -2
  228. package/dist/pine-core/p-3386bfe1.system.entry.js.map +0 -1
  229. package/dist/pine-core/p-643f5378.entry.js +0 -2
  230. package/dist/pine-core/p-abdca153.js +0 -3
  231. package/dist/pine-core/p-abdca153.js.map +0 -1
  232. package/dist/pine-core/p-b79a8b07.entry.js +0 -2
  233. package/dist/pine-core/p-b79a8b07.entry.js.map +0 -1
  234. package/dist/pine-core/p-c4dbae0e.system.js +0 -2
  235. package/dist/pine-core/p-c6d878f8.entry.js +0 -2
  236. package/dist/pine-core/p-c6d878f8.entry.js.map +0 -1
  237. package/dist/pine-core/p-fa5d4e73.system.js +0 -3
  238. package/dist/pine-core/p-fa5d4e73.system.js.map +0 -1
  239. /package/dist/esm-es5/{pds-label-a26dd876.js.map → pds-label-85f84612.js.map} +0 -0
  240. /package/dist/pine-core/{p-f2c3035d.system.entry.js.map → p-09573d54.system.entry.js.map} +0 -0
  241. /package/dist/pine-core/{p-f09892d3.system.entry.js.map → p-150e12a5.system.entry.js.map} +0 -0
  242. /package/dist/pine-core/{p-c8a41b43.system.entry.js.map → p-1a307cc4.system.entry.js.map} +0 -0
  243. /package/dist/pine-core/{p-4fc42ff3.system.entry.js.map → p-1cb9fddf.system.entry.js.map} +0 -0
  244. /package/dist/pine-core/{p-79d7e0b1.system.entry.js.map → p-237709cc.system.entry.js.map} +0 -0
  245. /package/dist/pine-core/{p-8f62c812.entry.js.map → p-23b8d1bb.entry.js.map} +0 -0
  246. /package/dist/pine-core/{p-22dd8116.entry.js.map → p-2847bd57.entry.js.map} +0 -0
  247. /package/dist/pine-core/{p-f3af6d74.system.entry.js.map → p-34b29411.system.entry.js.map} +0 -0
  248. /package/dist/pine-core/{p-73262287.system.entry.js.map → p-403d43d5.system.entry.js.map} +0 -0
  249. /package/dist/pine-core/{p-669d948a.system.entry.js.map → p-4472b337.system.entry.js.map} +0 -0
  250. /package/dist/pine-core/{p-f168654a.entry.js.map → p-465b7120.entry.js.map} +0 -0
  251. /package/dist/pine-core/{p-401cd4bc.entry.js.map → p-5787d0c0.entry.js.map} +0 -0
  252. /package/dist/pine-core/{p-7bc01826.entry.js.map → p-59334e35.entry.js.map} +0 -0
  253. /package/dist/pine-core/{p-85f6a94e.system.entry.js.map → p-5d7bad14.system.entry.js.map} +0 -0
  254. /package/dist/pine-core/{p-331cbf1d.entry.js.map → p-60930784.entry.js.map} +0 -0
  255. /package/dist/pine-core/{p-bce2d5b5.system.entry.js.map → p-654295e2.system.entry.js.map} +0 -0
  256. /package/dist/pine-core/{p-c0f9dbe1.system.entry.js.map → p-66f8fbb0.system.entry.js.map} +0 -0
  257. /package/dist/pine-core/{p-0c26a00d.entry.js.map → p-6c295ed8.entry.js.map} +0 -0
  258. /package/dist/pine-core/{p-0a776a7b.entry.js.map → p-6dd5d826.entry.js.map} +0 -0
  259. /package/dist/pine-core/{p-5b37a4a2.system.entry.js.map → p-708a557d.system.entry.js.map} +0 -0
  260. /package/dist/pine-core/{p-fba29e90.entry.js.map → p-7f16e44f.entry.js.map} +0 -0
  261. /package/dist/pine-core/{p-22bd3102.system.entry.js.map → p-83040cfc.system.entry.js.map} +0 -0
  262. /package/dist/pine-core/{p-bff583bd.system.js.map → p-9138d494.system.js.map} +0 -0
  263. /package/dist/pine-core/{p-1c0ffcab.entry.js.map → p-978cad20.entry.js.map} +0 -0
  264. /package/dist/pine-core/{p-4a804680.entry.js.map → p-9a184d74.entry.js.map} +0 -0
  265. /package/dist/pine-core/{p-b17b818b.entry.js.map → p-aa9f027c.entry.js.map} +0 -0
  266. /package/dist/pine-core/{p-d3e173ea.system.entry.js.map → p-bf6b565e.system.entry.js.map} +0 -0
  267. /package/dist/pine-core/{p-938886d8.system.entry.js.map → p-c014702b.system.entry.js.map} +0 -0
  268. /package/dist/pine-core/{p-27fd7f08.system.entry.js.map → p-d0446af7.system.entry.js.map} +0 -0
  269. /package/dist/pine-core/{p-7fcd5f0b.entry.js.map → p-d1c7a84d.entry.js.map} +0 -0
  270. /package/dist/pine-core/{p-930ab8a3.system.entry.js.map → p-d6e0c333.system.entry.js.map} +0 -0
  271. /package/dist/pine-core/{p-97cb4285.entry.js.map → p-d8a277e5.entry.js.map} +0 -0
  272. /package/dist/pine-core/{p-ac31a7c8.system.entry.js.map → p-da802c91.system.entry.js.map} +0 -0
  273. /package/dist/pine-core/{p-24077dcd.entry.js.map → p-db6ea8de.entry.js.map} +0 -0
  274. /package/dist/pine-core/{p-f1d7f16f.js.map → p-e893b132.js.map} +0 -0
  275. /package/dist/pine-core/{p-0adb4b48.entry.js.map → p-f30549db.entry.js.map} +0 -0
  276. /package/dist/pine-core/{p-af75cc15.entry.js.map → p-f3ee8a5e.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- System.register(["./p-fa5d4e73.system.js"],(function(n){"use strict";var i,r,t,e,u;return{setters:[function(n){i=n.a;r=n.r;t=n.h;e=n.H;u=n.g}],execute:function(){var f;var s=function(){if(typeof window==="undefined"){return new Map}else{if(!f){var n=window;n.PdsIcons=n.PdsIcons||{};f=n.PdsIcons.map=n.PdsIcons.map||new Map}return f}};var a=function(n,i){if(!n&&i&&!d(i)){n=i}if(h(n)){n=v(n)}if(!h(n)||n.trim()===""){return null}var r=n.replace(/[a-z]|-|\d/gi,"");if(r!=""){return null}return n};var o=function(n){var r=s().get(n);if(r){return r}return i("svg/".concat(n,".svg"))};var c=function(n){if(h(n)){n=n.trim();if(d(n)){return n}}return null};var l=function(n){var i=a(n.name,n.icon);if(i){return o(i)}if(n.icon){i=c(n.icon);if(i){return i}}return null};var d=function(n){return n.length>0&&/(\/|\.)/.test(n)};var h=function(n){return typeof n==="string"};var v=function(n){return n.toLowerCase()};var p=function(n,i){if(i===void 0){i=[]}var r={};i.forEach((function(i){if(n.hasAttribute(i)){var t=n.getAttribute(i);if(t!==null){r[i]=n.getAttribute(i)}n.removeAttribute(i)}}));return r};var g=function(n){var i=document.createElement("div");i.innerHTML=n;for(var r=i.childNodes.length-1;r>=0;r--){if(i.childNodes[r].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[r])}}var t=i.firstElementChild;if(t&&t.nodeName.toLowerCase()==="svg"){var e=t.getAttribute("class")||"";t.setAttribute("class",(e+" s-ion-icon").trim());if(w(t)){return i.innerHTML}}return""};var w=function(n){if(n.nodeType===1){if(n.nodeName.toLowerCase()==="script"){return false}for(var i=0;i<n.attributes.length;i++){var r=n.attributes[i].name;if(h(r)&&r.toLowerCase().indexOf("on")===0){return false}}for(var i=0;i<n.childNodes.length;i++){if(!w(n.childNodes[i])){return false}}}return true};var b=new Map;var m=new Map;var y=function(n,i){if(i===void 0){i=false}var r=m.get(n);if(!r){if(typeof fetch!="undefined"&&typeof document!=="undefined"){r=fetch(n).then((function(r){if(r.ok){return r.text().then((function(r){if(r&&i!==false){r=g(r)}b.set(n,r||"")}))}b.set(n,"")}));m.set(n,r)}else{b.set(n,"");return Promise.resolve()}}return r};var j=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";var x=n("pds_icon",function(){function n(n){var i=this;r(this,n);this.inheritedAttributes={};this.hasAriaHidden=function(){var n=i.el;return n.hasAttribute("aria-hidden")&&n.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.icon=undefined;this.name=undefined;this.size="regular"}n.prototype.iconSize=function(){var n={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(n[this.size]){return n[this.size]}else{return this.size}};n.prototype.componentWillLoad=function(){this.inheritedAttributes=p(this.el,["aria-label"])};n.prototype.connectedCallback=function(){var n=this;this.waitUntilVisible(this.el,"50px",(function(){n.isVisible=true;n.loadIcon()}))};n.prototype.disconnectedCallback=function(){if(this.io){this.io.disconnect();this.io=undefined}};n.prototype.loadIcon=function(){var n=this;if(this.isVisible){var i=l(this);if(i){if(b.has(i)){this.svgContent=b.get(i)}else{y(i).then((function(){return n.svgContent=b.get(i)}))}}}var r=a(this.name,this.icon);if(r){this.ariaLabel=r.replace(/\-/g," ")}};n.prototype.render=function(){var n=this,i=n.ariaLabel,r=n.inheritedAttributes;var u={height:this.iconSize(),width:this.iconSize(),color:this.color};return t(e,Object.assign({"aria-label":i!==undefined&&!this.hasAriaHidden()?i:null,role:"img",style:u,class:Object.assign({},M(this.color))},r),this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"}))};n.prototype.waitUntilVisible=function(n,i,r){var t=this;if(typeof window!=="undefined"&&window.IntersectionObserver){var e=this.io=new window.IntersectionObserver((function(n){if(n[0].isIntersecting){e.disconnect();t.io=undefined;r()}}),{rootMargin:i});e.observe(n)}else{r()}};Object.defineProperty(n,"assetsDirs",{get:function(){return["svg"]},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{name:["loadIcon"],icon:["loadIcon"]}},enumerable:false,configurable:true});return n}());var M=function(n){var i;return n?(i={"pds-color":true},i["pds-color-".concat(n)]=true,i):null};x.style=j}}}));
2
- //# sourceMappingURL=p-23fb6af2.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CACHED_MAP","getIconMap","window","Map","win","PdsIcons","map","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","getAssetPath","concat","getSrc","src","getUrl","pdsIcon","name","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","validateContent","svgContent","div","document","createElement","innerHTML","i","childNodes","nodeName","removeChild","svgElm","firstElementChild","svgClass","setAttribute","isValid","elm","nodeType","indexOf","pdsIconContent","requests","getSvgContent","sanitize","req","fetch","then","rsp","ok","text","set","Promise","resolve","pdsIconCss","PdsIcon","exports","class_1","hostRef","_this","this","inheritedAttributes","hasAriaHidden","ariaLabel","undefined","isVisible","color","size","prototype","iconSize","sizes","small","regular","medium","large","componentWillLoad","connectedCallback","waitUntilVisible","loadIcon","disconnectedCallback","io","disconnect","url_1","has","label","render","_a","style","height","width","h","Host","Object","assign","role","class","createColorClasses","rootMargin","cb","IntersectionObserver","io_1","data","isIntersecting","observe","defineProperty"],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { getAssetPath } from \"@stencil/core\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\n//# sourceMappingURL=validate.js.map\n","import { validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n}\n:host .pdsicon {\n fill: currentColor;\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n };\n return (h(Host, Object.assign({ \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: \"img\", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n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AEK,MAAO,e,EAK9VtC,EAAAW,UAAAS,iBAAA,SAAiB/D,EAAImF,EAAYC,GAAjC,IAAAvC,EAAAC,KACI,UAA8B5E,SAAW,aAAe,OAASmH,qBAAsB,CACnF,IAAMC,EAAMxC,KAAKoB,GAAK,IAAI,OAASmB,sBAAqB,SAACE,GACrD,GAAIA,EAAK,GAAGC,eAAgB,CACxBF,EAAGnB,aACHtB,EAAKqB,GAAKhB,UACVkC,G,IAEL,CAAED,WAAUA,IACfG,EAAGG,QAAQzF,E,KAEV,CAGDoF,G,GAeRN,OAAAY,eAAW/C,EAAA,aAAU,C,IAArB,WAA0B,MAAO,CAAC,MAAO,E,+RAvGzB,IAmMpB,IAAMuC,EAAqB,SAAC9B,G,MACxB,OAAOA,G,GAEC,YAAa,MACboB,EAAC,aAAApF,OAAagE,IAAU,K,GAE1B,IACV,E"}
@@ -1,2 +0,0 @@
1
- System.register(["./p-fa5d4e73.system.js"],(function(i){"use strict";var n,s;return{setters:[function(i){n=i.r;s=i.h}],execute:function(){var t=":host{--border-radius:var(--pine-border-radius-sm);--color:var(--pine-color-neutral-charcoal-400);--font-size:var(--pine-font-size-body);--font-size-sm:var(--pine-font-size-body-sm);--font-size-xs:var(--pine-font-size-body-xs);--font-weight:var(--pine-font-weight-medium);--margin-inline-start:var(--pine-spacing-xxs);--outline:4px solid var(--pine-color-primary-200);--svg-lg:15px;--svg-md:13px;--svg-sm:11px;display:inline}:host pds-icon{-webkit-margin-start:var(--margin-inline-start);margin-inline-start:var(--margin-inline-start)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--color);display:-ms-inline-flexbox;display:inline-flex;font-weight:inherit}.pds-link:focus{border-radius:var(--border-radius);outline:var(--outline)}.pds-link--sm{font-size:var(--font-size-xs)}.pds-link--sm pds-icon{height:var(--svg-sm);width:var(--svg-sm)}.pds-link--md{font-size:var(--font-size-sm)}.pds-link--md pds-icon{height:var(--svg-md);width:var(--svg-md)}.pds-link--lg{font-size:var(--font-size)}.pds-link--lg pds-icon{height:var(--svg-lg);width:var(--svg-lg)}.pds-link--plain{font-weight:var(--font-weight);text-decoration:none}.pds-link--plain:hover{text-decoration:underline}.pds-link--default{text-decoration:underline}.pds-link--default:hover{text-decoration:none}";var e=i("pds_link",function(){function i(i){n(this,i);this.componentId=undefined;this.external=false;this.variant="inline";this.fontSize="lg";this.href=undefined}i.prototype.classNames=function(){var i=["pds-link"];if(this.fontSize){i.push("pds-link--"+this.fontSize)}if(this.variant){i.push("pds-link--"+this.variant)}return i.join(" ")};i.prototype.render=function(){return s("a",{class:this.classNames(),href:this.href,id:this.componentId,target:this.external?"_blank":undefined},s("slot",null,this.href),this.external&&s("pds-icon",{name:"launch",size:this.fontSize}))};return i}());e.style=t}}}));
2
- //# sourceMappingURL=p-3386bfe1.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsLinkCss","PdsLink","exports","class_1","prototype","classNames","this","fontSize","push","variant","join","render","h","class","href","id","componentId","target","external","undefined","name","size"],"sources":["src/components/pds-link/pds-link.scss?tag=pds-link&encapsulation=shadow","src/components/pds-link/pds-link.tsx"],"sourcesContent":[":host {\n\n --border-radius: var(--pine-border-radius-sm);\n --color: var(--pine-color-neutral-charcoal-400);\n --font-size: var(--pine-font-size-body);\n --font-size-sm: var(--pine-font-size-body-sm);\n --font-size-xs: var(--pine-font-size-body-xs);\n --font-weight: var(--pine-font-weight-medium);\n --margin-inline-start: var(--pine-spacing-xxs);\n --outline: 4px solid var(--pine-color-primary-200);\n --svg-lg: 15px;\n --svg-md: 13px;\n --svg-sm: 11px;\n\n display: inline;\n\n pds-icon {\n margin-inline-start: var(--margin-inline-start);\n }\n}\n\n.pds-link {\n align-items: center;\n color: var(--color);\n display: inline-flex;\n font-weight: inherit;\n\n &:focus {\n border-radius: var(--border-radius);\n outline: var(--outline);\n }\n}\n\n// We have a small consensus stating that\n// fonts will be REMs, box-model will be\n// discussed later px or (r)em's\n.pds-link--sm {\n font-size: var(--font-size-xs);\n\n pds-icon {\n height: var(--svg-sm);\n width: var(--svg-sm);\n }\n}\n\n.pds-link--md {\n font-size: var(--font-size-sm);\n\n pds-icon {\n height: var(--svg-md);\n width: var(--svg-md);\n }\n}\n\n.pds-link--lg {\n font-size: var(--font-size);\n\n pds-icon {\n height: var(--svg-lg);\n width: var(--svg-lg);\n }\n}\n\n.pds-link--plain {\n font-weight: var(--font-weight);\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n}\n\n// Default = inline link\n.pds-link--default {\n text-decoration: underline;\n\n &:hover {\n text-decoration: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @slot - Content is placed between the opening closing tags\n */\n@Component({\n tag: 'pds-link',\n styleUrl: 'pds-link.scss',\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * When enabled, opens link in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n *\n * Modifies the look of the link\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n *\n * The Font size follows t-shirt model\n * sm: 12px\n * md: 14px\n * lg: 16px\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The URL that the hyperlink points to.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon name=\"launch\" size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"],"mappings":"0IAAA,IAAMA,EAAa,+vC,ICUNC,EAAOC,EAAA,sB,iEAUC,M,aAMmB,S,cAUC,K,oBAO/BC,EAAAC,UAAAC,WAAA,WACN,IAAMA,EAAa,CAAC,YAEpB,GAAIC,KAAKC,SAAU,CACjBF,EAAWG,KAAK,aAAeF,KAAKC,S,CAGtC,GAAID,KAAKG,QAAS,CAChBJ,EAAWG,KAAK,aAAeF,KAAKG,Q,CAGtC,OAAOJ,EAAWK,KAAK,I,EAGzBP,EAAAC,UAAAO,OAAA,WAEE,OACEC,EAAA,KACEC,MAAOP,KAAKD,aACZS,KAAMR,KAAKQ,KACXC,GAAIT,KAAKU,YACTC,OAAQX,KAAKY,SAAW,SAAWC,WAEnCP,EAAA,YAAON,KAAKQ,MACXR,KAAKY,UACJN,EAAA,YAAUQ,KAAK,SAASC,KAAMf,KAAKC,W,WA1DzB,I"}
@@ -1,2 +0,0 @@
1
- import{r as a,h as r,H as s}from"./p-abdca153.js";const t=":host{display:inline-block}div{--background-color:var(--pine-color-primary-100);--badge-background-color:var(--pine-color-base-white);--border:var(--pine-border-default);--radius-round:50%;-ms-flex-align:center;align-items:center;background-color:var(--background-color);border-radius:var(--radius-round);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{border-radius:12px}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{--radius-round:50%;--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-round);cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-avatar__button:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-avatar__badge{background-color:var(--badge-background-color);border:var(--border);border-color:var(--badge-background-color);border-radius:var(--radius-round);bottom:0;position:absolute;right:0}img{border-radius:var(--radius-round);width:100%}";const i=class{constructor(s){a(this,s);this.renderAvatar=()=>{const a={height:this.avatarSize(),width:this.avatarSize()};return this.dropdown?r("button",{class:"pds-avatar__button",type:"button"},r("div",{style:a},this.renderIconOrImage(),this.renderBadge())):r("div",{style:a},this.renderIconOrImage(),this.renderBadge())};this.renderBadge=()=>this.badge&&r("pds-icon",{class:"pds-avatar__badge",name:"check-circle-filled",size:"33.53%"});this.renderIconOrImage=()=>this.image?r("img",{alt:this.alt,src:this.image}):r("pds-icon",{name:"user-filled",size:"33.53%"});this.classNames=()=>({"pds-avatar":true,[`pds-avatar--has-image`]:this.image!==""&&this.image!==null,[`pds-avatar--${this.variant}`]:this.variant==="admin"});this.alt=null;this.badge=false;this.componentId=undefined;this.dropdown=false;this.image=null;this.size="lg";this.variant="customer"}avatarSize(){const a={xs:"24px",sm:"32px",md:"40px",lg:"56px",xl:"64px"};if(a[this.size]){return a[this.size]}else{return this.size}}render(){return r(s,{id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())}};i.style=t;export{i as pds_avatar};
2
- //# sourceMappingURL=p-643f5378.entry.js.map
@@ -1,3 +0,0 @@
1
- const e="pine-core";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,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};let n;let s;let l;let o=false;let i=false;let c=false;let f=false;let r=false;const u=e=>{const t=new URL(e,ze.t);return t.origin!==We.location.origin?t.href:t.pathname};const a=(e,t="")=>{{return()=>{}}};const d=(e,t)=>{{return()=>{}}};const p="{visibility:hidden}.hydrated{visibility:inherit}";const v="slot-fb{display:contents}slot-fb[hidden]{display:none}";const m="http://www.w3.org/1999/xlink";const h={};const y=e=>e!=null;const b=e=>{e=typeof e;return e==="object"||e==="function"};function $(e){var t,n,s;return(s=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const w=(e,t,...n)=>{let s=null;let l=null;let o=null;let i=false;let c=false;const f=[];const r=t=>{for(let n=0;n<t.length;n++){s=t[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(i=typeof e!=="function"&&!b(s)){s=String(s)}if(i&&c){f[f.length-1].l+=s}else{f.push(i?g(null,s):s)}c=i}}};r(n);if(t){if(t.key){l=t.key}if(t.name){o=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,C)}const u=g(e,null);u.o=t;if(f.length>0){u.i=f}{u.u=l}{u.p=o}return u};const g=(e,t)=>{const n={v:0,m:e,l:t,h:null,i:null};{n.o=null}{n.u=null}{n.p=null}return n};const S={};const k=e=>e&&e.m===S;const C={forEach:(e,t)=>e.map(R).forEach(t),map:(e,t)=>e.map(R).map(t).map(x)};const R=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.p,vtag:e.m,vtext:e.l});const x=e=>{if(typeof e.vtag==="function"){const t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return w(e.vtag,t,...e.vchildren||[])}const t=g(e.vtag,e.vtext);t.o=e.vattrs;t.i=e.vchildren;t.u=e.vkey;t.p=e.vname;return t};const L=(e,t)=>{if(e!=null&&!b(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};const T=e=>je(e).$hostElement$;const D=(e,t,n)=>{const s=T(e);return{emit:e=>j(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};const j=(e,t,n)=>{const s=ze.ce(t,n);e.dispatchEvent(s);return s};const O=new WeakMap;const F=(e,t,n)=>{let s=Pe.get(e);if(He&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=t}else{s.replaceSync(t)}}else{s=t}Pe.set(e,s)};const M=(e,t,n)=>{var s;const l=A(t);const o=Pe.get(l);e=e.nodeType===11?e:Ee;if(o){if(typeof o==="string"){e=e.head||e;let n=O.get(e);let i;if(!n){O.set(e,n=new Set)}if(!n.has(l)){{i=Ee.createElement("style");i.innerHTML=o;const t=(s=ze.$)!==null&&s!==void 0?s:$(Ee);if(t!=null){i.setAttribute("nonce",t)}e.insertBefore(i,e.querySelector("link"))}if(t.v&4){i.innerHTML+=v}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return l};const U=e=>{const t=e.S;const n=e.$hostElement$;const s=t.v;const l=a("attachStyles",t.k);const o=M(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h");if(s&2){n.classList.add(o+"-s")}}l()};const A=(e,t)=>"sc-"+e.k;const N=(e,t,n,s,l,o)=>{if(n!==s){let i=Me(e,t);let c=t.toLowerCase();if(t==="class"){const t=e.classList;const l=W(n);const o=W(s);t.remove(...l.filter((e=>e&&!o.includes(e))));t.add(...o.filter((e=>e&&!l.includes(e))))}else if(t==="style"){{for(const t in n){if(!s||s[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in s){if(!n||s[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,s[t])}else{e.style[t]=s[t]}}}}else if(t==="key");else if(t==="ref"){if(s){s(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(Me(We,c)){t=c.slice(2)}else{t=c[2]+t.slice(3)}if(n||s){const l=t.endsWith(E);t=t.replace(z,"");if(n){ze.rel(e,t,n,l)}if(s){ze.ael(e,t,s,l)}}}else{const f=b(s);if((i||f&&s!==null)&&!l){try{if(!e.tagName.includes("-")){const l=s==null?"":s;if(t==="list"){i=false}else if(n==null||e[t]!=l){e[t]=l}}else{e[t]=s}}catch(e){}}let r=false;{if(c!==(c=c.replace(/^xlink\:?/,""))){t=c;r=true}}if(s==null||s===false){if(s!==false||e.getAttribute(t)===""){if(r){e.removeAttributeNS(m,t)}else{e.removeAttribute(t)}}}else if((!i||o&4||l)&&!f){s=s===true?"":s;if(r){e.setAttributeNS(m,t,s)}else{e.setAttribute(t,s)}}}}};const P=/\s/;const W=e=>!e?[]:e.split(P);const E="Capture";const z=new RegExp(E+"$");const B=(e,t,n,s)=>{const l=t.h.nodeType===11&&t.h.host?t.h.host:t.h;const o=e&&e.o||h;const i=t.o||h;{for(s in o){if(!(s in i)){N(l,s,o[s],undefined,n,t.v)}}}for(s in i){N(l,s,o[s],i[s],n,t.v)}};const H=(e,t,i,r)=>{var u;const a=t.i[i];let d=0;let p;let v;let m;if(!o){c=true;if(a.m==="slot"){if(n){r.classList.add(n+"-s")}a.v|=a.i?2:1}}if(a.l!==null){p=a.h=Ee.createTextNode(a.l)}else if(a.v&1){p=a.h=Ee.createTextNode("")}else{p=a.h=Ee.createElement(a.v&2?"slot-fb":a.m);{B(null,a,f)}if(y(n)&&p["s-si"]!==n){p.classList.add(p["s-si"]=n)}if(a.i){for(d=0;d<a.i.length;++d){v=H(e,a,d,p);if(v){p.appendChild(v)}}}}p["s-hn"]=l;{if(a.v&(2|1)){p["s-sr"]=true;p["s-fs"]=(u=a.o)===null||u===void 0?void 0:u.slot;p["s-cr"]=s;p["s-sn"]=a.p||"";m=e&&e.i&&e.i[i];if(m&&m.m===a.m&&e.h){{Q(e.h,false)}}}}return p};const Q=(e,t)=>{var n;ze.v|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const o=s[e];if(o["s-hn"]!==l&&o["s-ol"]){_(o).insertBefore(o,X(o));o["s-ol"].remove();o["s-ol"]=undefined;o["s-sh"]=undefined;if(o.nodeType===1){o.setAttribute("slot",(n=o["s-sn"])!==null&&n!==void 0?n:"")}c=true}if(t){Q(o,t)}}ze.v&=~1};const q=(e,t,n,s,o,i)=>{let c=e["s-cr"]&&e["s-cr"].parentNode||e;let f;if(c.shadowRoot&&c.tagName===l){c=c.shadowRoot}for(;o<=i;++o){if(s[o]){f=H(null,n,o,e);if(f){s[o].h=f;c.insertBefore(f,X(t))}}}};const I=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.h;te(t);if(e){{i=true;if(e["s-ol"]){e["s-ol"].remove()}else{Q(e,true)}}e.remove()}}}};const K=(e,t,n,s)=>{let l=0;let o=0;let i=0;let c=0;let f=t.length-1;let r=t[0];let u=t[f];let a=s.length-1;let d=s[0];let p=s[a];let v;let m;while(l<=f&&o<=a){if(r==null){r=t[++l]}else if(u==null){u=t[--f]}else if(d==null){d=s[++o]}else if(p==null){p=s[--a]}else if(V(r,d)){G(r,d);r=t[++l];d=s[++o]}else if(V(u,p)){G(u,p);u=t[--f];p=s[--a]}else if(V(r,p)){if(r.m==="slot"||p.m==="slot"){Q(r.h.parentNode,false)}G(r,p);e.insertBefore(r.h,u.h.nextSibling);r=t[++l];p=s[--a]}else if(V(u,d)){if(r.m==="slot"||p.m==="slot"){Q(u.h.parentNode,false)}G(u,d);e.insertBefore(u.h,r.h);u=t[--f];d=s[++o]}else{i=-1;{for(c=l;c<=f;++c){if(t[c]&&t[c].u!==null&&t[c].u===d.u){i=c;break}}}if(i>=0){m=t[i];if(m.m!==d.m){v=H(t&&t[o],n,i,e)}else{G(m,d);t[i]=undefined;v=m.h}d=s[++o]}else{v=H(t&&t[o],n,o,e);d=s[++o]}if(v){{_(r.h).insertBefore(v,X(r.h))}}}}if(l>f){q(e,s[a+1]==null?null:s[a+1].h,n,s,o,a)}else if(o>a){I(t,l,f)}};const V=(e,t)=>{if(e.m===t.m){if(e.m==="slot"){return e.p===t.p}{return e.u===t.u}}return false};const X=e=>e&&e["s-ol"]||e;const _=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;const G=(e,t)=>{const n=t.h=e.h;const s=e.i;const l=t.i;const o=t.m;const i=t.l;let c;if(i===null){{if(o==="slot");else{B(e,t,f)}}if(s!==null&&l!==null){K(n,s,t,l)}else if(l!==null){if(e.l!==null){n.textContent=""}q(n,null,t,l,0,l.length-1)}else if(s!==null){I(s,0,s.length-1)}}else if(c=n["s-cr"]){c.parentNode.textContent=i}else if(e.l!==i){n.data=i}};const J=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const s of t){if(s!==e){if(s["s-hn"]!==e["s-hn"]||n!==""){if(s.nodeType===1&&(n===s.getAttribute("slot")||n===s["s-sn"])){e.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){e.hidden=true;break}}}}}J(e)}}};const Y=[];const Z=e=>{let n;let s;let l;for(const o of e.childNodes){if(o["s-sr"]&&(n=o["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;const e=o["s-sn"];for(l=s.length-1;l>=0;l--){n=s[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==o["s-hn"]&&!t.experimentalSlotFixes){if(ee(n,e)){let t=Y.find((e=>e.C===n));i=true;n["s-sn"]=n["s-sn"]||e;if(t){t.C["s-sh"]=o["s-hn"];t.R=o}else{n["s-sh"]=o["s-hn"];Y.push({R:o,C:n})}if(n["s-sr"]){Y.map((e=>{if(ee(e.C,n["s-sn"])){t=Y.find((e=>e.C===n));if(t&&!e.R){e.R=t.R}}}))}}else if(!Y.some((e=>e.C===n))){Y.push({C:n})}}}}if(o.nodeType===1){Z(o)}}};const ee=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};const te=e=>{{e.o&&e.o.ref&&e.o.ref(null);e.i&&e.i.map(te)}};const ne=(e,t,f=false)=>{var r,u,a,d;const p=e.$hostElement$;const v=e.S;const m=e.L||g(null,null);const h=k(t)?t:w(null,null,t);l=p.tagName;if(v.T){h.o=h.o||{};v.T.map((([e,t])=>h.o[t]=p[e]))}if(f&&h.o){for(const e of Object.keys(h.o)){if(p.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){h.o[e]=p[e]}}}h.m=null;h.v|=4;e.L=h;h.h=m.h=p.shadowRoot||p;{n=p["s-sc"]}{s=p["s-cr"];o=(v.v&1)!==0;i=false}G(m,h);{ze.v|=1;if(c){Z(h.h);for(const e of Y){const t=e.C;if(!t["s-ol"]){const e=Ee.createTextNode("");e["s-nr"]=t;t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of Y){const t=e.C;const n=e.R;if(n){const e=n.parentNode;let s=n.nextSibling;{let n=(r=t["s-ol"])===null||r===void 0?void 0:r.previousSibling;while(n){let l=(u=n["s-nr"])!==null&&u!==void 0?u:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;if(!l||!l["s-nr"]){s=l;break}}n=n.previousSibling}}if(!s&&e!==t.parentNode||t.nextSibling!==s){if(t!==s){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}e.insertBefore(t,s);if(t.nodeType===1){t.hidden=(a=t["s-ih"])!==null&&a!==void 0?a:false}}}}else{if(t.nodeType===1){if(f){t["s-ih"]=(d=t.hidden)!==null&&d!==void 0?d:false}t.hidden=true}}}}if(i){J(h.h)}ze.v&=~1;Y.length=0}};const se=(e,t)=>{if(t&&!e.D&&t["s-p"]){t["s-p"].push(new Promise((t=>e.D=t)))}};const le=(e,t)=>{{e.v|=16}if(e.v&4){e.v|=512;return}se(e,e.j);const n=()=>oe(e,t);return _e(n)};const oe=(e,t)=>{const n=a("scheduleUpdate",e.S.k);const s=e.O;let l;if(t){{e.v|=256;if(e.F){e.F.map((([e,t])=>de(s,e,t)));e.F=undefined}}{l=de(s,"componentWillLoad")}}{l=ie(l,(()=>de(s,"componentWillRender")))}n();return ie(l,(()=>fe(e,s,t)))};const ie=(e,t)=>ce(e)?e.then(t):t();const ce=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";const fe=async(e,t,n)=>{var s;const l=e.$hostElement$;const o=a("update",e.S.k);const i=l["s-rc"];if(n){U(e)}const c=a("render",e.S.k);{re(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=undefined}c();o();{const t=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>ue(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.v|=4;t.length=0}}};const re=(e,t,n,s)=>{try{t=t.render();{e.v&=~16}{e.v|=2}{{{ne(e,t,s)}}}}catch(t){Ue(t,e.$hostElement$)}return null};const ue=e=>{const t=e.S.k;const n=e.$hostElement$;const s=a("postUpdate",t);const l=e.O;const o=e.j;{de(l,"componentDidRender")}if(!(e.v&64)){e.v|=64;{pe(n)}{de(l,"componentDidLoad")}s();{e.M(n);if(!o){ae()}}}else{{de(l,"componentDidUpdate")}s()}{e.U(n)}{if(e.D){e.D();e.D=undefined}if(e.v&512){Xe((()=>le(e,false)))}e.v&=~(4|512)}};const ae=t=>{{pe(Ee.documentElement)}Xe((()=>j(We,"appload",{detail:{namespace:e}})))};const de=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){Ue(e)}}return undefined};const pe=e=>e.classList.add("hydrated");const ve=(e,t)=>je(e).A.get(t);const me=(e,t,n,s)=>{const l=je(e);const o=l.$hostElement$;const i=l.A.get(t);const c=l.v;const f=l.O;n=L(n,s.N[t][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!r;if((!(c&8)||i===undefined)&&u){l.A.set(t,n);if(f){if(s.P&&c&128){const e=s.P[t];if(e){e.map((e=>{try{f[e](n,i,t)}catch(e){Ue(e,o)}}))}}if((c&(2|16))===2){le(l,false)}}}};const he=(e,t,n)=>{var s;const l=e.prototype;if(t.N){if(e.watchers){t.P=e.watchers}const o=Object.entries(t.N);o.map((([e,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,e,{get(){return ve(this,e)},set(n){me(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,e,{value(...t){var n;const s=je(this);return(n=s===null||s===void 0?void 0:s.W)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.O)===null||n===void 0?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(e,s,o){ze.jmp((()=>{var i;const c=n.get(e);if(this.hasOwnProperty(c)){o=this[c];delete this[c]}else if(l.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const n=je(this);const l=n===null||n===void 0?void 0:n.v;if(l&&!(l&8)&&l&128&&o!==s){const l=n.O;const c=(i=t.P)===null||i===void 0?void 0:i[e];c===null||c===void 0?void 0:c.forEach((t=>{if(l[t]!=null){l[t].call(l,o,s,e)}}))}return}this[c]=o===null&&typeof this[c]==="boolean"?false:o}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=t.P)!==null&&s!==void 0?s:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,s])=>{var l;const o=s[1]||e;n.set(o,e);if(s[0]&512){(l=t.T)===null||l===void 0?void 0:l.push([e,o])}return o}))]))}}return e};const ye=async(e,t,n,s)=>{let l;if((t.v&32)===0){t.v|=32;{l=Ne(n);if(l.then){const e=d();l=await l;e()}if(!l.isProxied){{n.P=l.watchers}he(l,n,2);l.isProxied=true}const e=a("createInstance",n.k);{t.v|=8}try{new l(t)}catch(e){Ue(e)}{t.v&=~8}{t.v|=128}e();be(t.O)}if(l.style){let e=l.style;const t=A(n);if(!Pe.has(t)){const s=a("registerStyles",n.k);F(t,e,!!(n.v&1));s()}}}const o=t.j;const i=()=>le(t,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const be=e=>{{de(e,"connectedCallback")}};const $e=e=>{if((ze.v&1)===0){const t=je(e);const n=t.S;const s=a("connectedCallback",n.k);if(!(t.v&1)){t.v|=1;{if(n.v&(4|8)){we(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){se(t,t.j=n);break}}}if(n.N){Object.entries(n.N).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{ye(e,t,n)}}else{Ce(e,t,n.B);if(t===null||t===void 0?void 0:t.O){be(t.O)}else if(t===null||t===void 0?void 0:t.H){t.H.then((()=>be(t.O)))}}s()}};const we=e=>{const t=e["s-cr"]=Ee.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};const ge=e=>{{de(e,"disconnectedCallback")}};const Se=async e=>{if((ze.v&1)===0){const t=je(e);{if(t.q){t.q.map((e=>e()));t.q=undefined}}if(t===null||t===void 0?void 0:t.O){ge(t.O)}else if(t===null||t===void 0?void 0:t.H){t.H.then((()=>ge(t.O)))}}};const ke=(e,t={})=>{var n;const s=a();const l=[];const o=t.exclude||[];const i=We.customElements;const c=Ee.head;const f=c.querySelector("meta[charset]");const r=Ee.createElement("style");const u=[];let d;let m=true;Object.assign(ze,t);ze.t=new URL(t.resourcesUrl||"./",Ee.baseURI).href;let h=false;e.map((e=>{e[1].map((t=>{var n;const s={v:t[0],k:t[1],N:t[2],B:t[3]};if(s.v&4){h=true}{s.N=t[2]}{s.B=t[3]}{s.T=[]}{s.P=(n=t[4])!==null&&n!==void 0?n:{}}const c=s.k;const f=class extends HTMLElement{constructor(e){super(e);e=this;Fe(e,s);if(s.v&1){{{e.attachShadow({mode:"open"})}}}}connectedCallback(){if(d){clearTimeout(d);d=null}if(m){u.push(this)}else{ze.jmp((()=>$e(this)))}}disconnectedCallback(){ze.jmp((()=>Se(this)))}componentOnReady(){return je(this).H}};s.I=e[0];if(!o.includes(c)&&!i.get(c)){l.push(c);i.define(c,he(f,s,1))}}))}));if(h){r.innerHTML+=v}{r.innerHTML+=l+p}if(r.innerHTML.length){r.setAttribute("data-styles","");const e=(n=ze.$)!==null&&n!==void 0?n:$(Ee);if(e!=null){r.setAttribute("nonce",e)}c.insertBefore(r,f?f.nextSibling:c.firstChild)}m=false;if(u.length){u.map((e=>e.connectedCallback()))}else{{ze.jmp((()=>d=setTimeout(ae,30)))}}s()};const Ce=(e,t,n,s)=>{if(n){n.map((([n,s,l])=>{const o=xe(e,n);const i=Re(t,l);const c=Le(n);ze.ael(o,s,i,c);(t.q=t.q||[]).push((()=>ze.rel(o,s,i,c)))}))}};const Re=(e,t)=>n=>{try{{if(e.v&256){e.O[t](n)}else{(e.F=e.F||[]).push([t,n])}}}catch(e){Ue(e)}};const xe=(e,t)=>{if(t&16)return Ee.body;return e};const Le=e=>(e&2)!==0;const Te=e=>ze.$=e;const De=new WeakMap;const je=e=>De.get(e);const Oe=(e,t)=>De.set(t.O=e,t);const Fe=(e,t)=>{const n={v:0,$hostElement$:e,S:t,A:new Map};{n.W=new Promise((e=>n.U=e))}{n.H=new Promise((e=>n.M=e));e["s-p"]=[];e["s-rc"]=[]}Ce(e,n,t.B);return De.set(e,n)};const Me=(e,t)=>t in e;const Ue=(e,t)=>(0,console.error)(e,t);const Ae=new Map;const Ne=(e,t,n)=>{const s=e.k.replace(/-/g,"_");const l=e.I;const o=Ae.get(l);if(o){return o[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{Ae.set(l,e)}return e[s]}),Ue)};const Pe=new Map;const We=typeof window!=="undefined"?window:{};const Ee=We.document||{head:{}};const ze={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};const Be=e=>Promise.resolve(e);const He=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();const Qe=[];const qe=[];const Ie=(e,t)=>n=>{e.push(n);if(!r){r=true;if(t&&ze.v&4){Xe(Ve)}else{ze.raf(Ve)}}};const Ke=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){Ue(e)}}e.length=0};const Ve=()=>{Ke(Qe);{Ke(qe);if(r=Qe.length>0){ze.raf(Ve)}}};const Xe=e=>Be().then(e);const _e=Ie(qe,true);export{S as H,u as a,ke as b,D as c,T as g,w as h,Be as p,Oe as r,Te as s};
3
- //# sourceMappingURL=p-abdca153.js.map