@sellmate/design-system 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/cjs/index.cjs.js +0 -121
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/collection/index.js +0 -4
  4. package/dist/collection/index.js.map +1 -1
  5. package/dist/components/index.js +1 -114
  6. package/dist/components/index.js.map +1 -1
  7. package/dist/design-system/index.esm.js +1 -1
  8. package/dist/design-system/index.esm.js.map +1 -1
  9. package/dist/esm/index.js +1 -114
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/types/index.d.ts +0 -2
  12. package/package.json +2 -2
  13. package/dist/cjs/index-Cbd_FIth.js +0 -21891
  14. package/dist/cjs/index-Cbd_FIth.js.map +0 -1
  15. package/dist/cjs/index-DoEgM-7l.js +0 -2586
  16. package/dist/cjs/index-DoEgM-7l.js.map +0 -1
  17. package/dist/collection/utils/next-hydrate.js +0 -52
  18. package/dist/collection/utils/next-hydrate.js.map +0 -1
  19. package/dist/collection/utils/next-react-wrapper.js +0 -61
  20. package/dist/collection/utils/next-react-wrapper.js.map +0 -1
  21. package/dist/components/p-BjTJkvEh.js +0 -21889
  22. package/dist/components/p-BjTJkvEh.js.map +0 -1
  23. package/dist/components/p-dBol_ZO8.js +0 -2584
  24. package/dist/components/p-dBol_ZO8.js.map +0 -1
  25. package/dist/design-system/p-BjTJkvEh.js +0 -23
  26. package/dist/design-system/p-BjTJkvEh.js.map +0 -1
  27. package/dist/design-system/p-dBol_ZO8.js +0 -3
  28. package/dist/design-system/p-dBol_ZO8.js.map +0 -1
  29. package/dist/esm/index-BjTJkvEh.js +0 -21889
  30. package/dist/esm/index-BjTJkvEh.js.map +0 -1
  31. package/dist/esm/index-dBol_ZO8.js +0 -2584
  32. package/dist/esm/index-dBol_ZO8.js.map +0 -1
  33. package/dist/types/utils/next-hydrate.d.ts +0 -18
  34. package/dist/types/utils/next-react-wrapper.d.ts +0 -23
@@ -1,2584 +0,0 @@
1
- const NAMESPACE = 'design-system';
2
- const BUILD = /* design-system */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, updatable: true};
3
-
4
- const globalScripts = () => {};
5
- const globalStyles = "@font-face{font-family:\"Pretendard\";font-weight:800;font-display:swap;src:local(\"Pretendard-ExtraBold\"), url(\"./fonts/Pretendard-ExtraBold.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-ExtraBold.ttf\") format(\"truetype\");}@font-face{font-family:\"Pretendard\";font-weight:700;font-display:swap;src:local(\"Pretendard-Bold\"), url(\"./fonts/Pretendard-Bold.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-Bold.ttf\") format(\"truetype\");}@font-face{font-family:\"Pretendard\";font-weight:600;font-display:swap;src:local(\"Pretendard-SemiBold\"), url(\"./fonts/Pretendard-SemiBold.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-SemiBold.ttf\") format(\"truetype\");}@font-face{font-family:\"Pretendard\";font-weight:500;font-display:swap;src:local(\"Pretendard-Medium\"), url(\"./fonts/Pretendard-Medium.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-Medium.ttf\") format(\"truetype\");}@font-face{font-family:\"Pretendard\";font-weight:400;font-display:swap;src:local(\"Pretendard-Regular\"), url(\"./fonts/Pretendard-Regular.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-Regular.ttf\") format(\"truetype\");}@font-face{font-family:\"Pretendard\";font-weight:300;font-display:swap;src:local(\"Pretendard-Light\"), url(\"./fonts/Pretendard-Light.subset.woff2\") format(\"font-woff2\"), url(\"./fonts/Pretendard-Light.ttf\") format(\"truetype\");}:root{--font-family-base:\"Pretendard\", -apple-system, BlinkMacSystemFont, system-ui, sans-serif}html{font-family:\"Pretendard\", -apple-system, BlinkMacSystemFont, system-ui, sans-serif}.bg-primary{background-color:var(--color-primary, #051d36)}.bg-secondary{background-color:var(--color-secondary, #555555)}.bg-accent{background-color:var(--color-accent, #9c27b0)}.bg-positive{background-color:var(--color-positive, #0075ff)}.bg-negative{background-color:var(--color-negative, #e30000)}.bg-info{background-color:var(--color-info, #00cd52)}.bg-warning{background-color:var(--color-warning, #f2c037)}.bg-red_99{background-color:var(--color-red_99, #220000)}.bg-red_95{background-color:var(--color-red_95, #440000)}.bg-red_90{background-color:var(--color-red_90, #5E0000)}.bg-red_85{background-color:var(--color-red_85, #820000)}.bg-red_80{background-color:var(--color-red_80, #AD0000)}.bg-red_75{background-color:var(--color-red_75, #E30000)}.bg-red_70{background-color:var(--color-red_70, #FB4444)}.bg-red_60{background-color:var(--color-red_60, #FF7C7C)}.bg-red_45{background-color:var(--color-red_45, #FFB5B5)}.bg-red_30{background-color:var(--color-red_30, #FFD3D3)}.bg-red_20{background-color:var(--color-red_20, #FCE6E6)}.bg-red_15{background-color:var(--color-red_15, #FCEFEF)}.bg-caution_bg{background-color:var(--color-caution_bg, #FEF1F1)}.bg-caution_icon{background-color:var(--color-caution_icon, #fd9595)}.bg-orange_99{background-color:var(--color-orange_99, #2F1100)}.bg-orange_95{background-color:var(--color-orange_95, #4D1B00)}.bg-orange_90{background-color:var(--color-orange_90, #752A00)}.bg-orange_85{background-color:var(--color-orange_85, #9B3700)}.bg-orange_75{background-color:var(--color-orange_75, #CE4900)}.bg-orange_65{background-color:var(--color-orange_65, #FF6B00)}.bg-orange_60{background-color:var(--color-orange_60, #FF7F22)}.bg-orange_55{background-color:var(--color-orange_55, #FFA452)}.bg-orange_45{background-color:var(--color-orange_45, #FFBC81)}.bg-orange_35{background-color:var(--color-orange_35, #FFD5AF)}.bg-orange_20{background-color:var(--color-orange_20, #FFEAD7)}.bg-orange_10{background-color:var(--color-orange_10, #FEF1EA)}.bg-header_alert{background-color:var(--color-header_alert, #FF7A00)}.bg-yellow_95{background-color:var(--color-yellow_95, #322700)}.bg-yellow_90{background-color:var(--color-yellow_90, #453702)}.bg-yellow_80{background-color:var(--color-yellow_80, #6C5602)}.bg-yellow_70{background-color:var(--color-yellow_70, #9C7A00)}.bg-yellow_60{background-color:var(--color-yellow_60, #C49900)}.bg-yellow_50{background-color:var(--color-yellow_50, #EBB800)}.bg-yellow_45{background-color:var(--color-yellow_45, #FFC700)}.bg-yellow_40{background-color:var(--color-yellow_40, #FFD643)}.bg-yellow_30{background-color:var(--color-yellow_30, #FEE17C)}.bg-yellow_25{background-color:var(--color-yellow_25, #FFE99E)}.bg-yellow_20{background-color:var(--color-yellow_20, #FEF1C4)}.bg-yellow_10{background-color:var(--color-yellow_10, #FFF7DD)}.bg-olive_95{background-color:var(--color-olive_95, #2C2C00)}.bg-olive_90{background-color:var(--color-olive_90, #454500)}.bg-olive_80{background-color:var(--color-olive_80, #636300)}.bg-olive_70{background-color:var(--color-olive_70, #838300)}.bg-olive_65{background-color:var(--color-olive_65, #A5A500)}.bg-olive_55{background-color:var(--color-olive_55, #C7C700)}.bg-olive_45{background-color:var(--color-olive_45, #DDDD12)}.bg-olive_30{background-color:var(--color-olive_30, #EEEE37)}.bg-olive_20{background-color:var(--color-olive_20, #F6F65F)}.bg-olive_15{background-color:var(--color-olive_15, #FAFAA1)}.bg-olive_10{background-color:var(--color-olive_10, #FBFBBF)}.bg-olive_05{background-color:var(--color-olive_05, #FEFED9)}.bg-green_99{background-color:var(--color-green_99, #001D0B)}.bg-green_95{background-color:var(--color-green_95, #003013)}.bg-green_90{background-color:var(--color-green_90, #00461C)}.bg-green_85{background-color:var(--color-green_85, #006629)}.bg-green_80{background-color:var(--color-green_80, #007B31)}.bg-green_75{background-color:var(--color-green_75, #00973C)}.bg-green_70{background-color:var(--color-green_70, #12B553)}.bg-green_65{background-color:var(--color-green_65, #2BCE6C)}.bg-green_55{background-color:var(--color-green_55, #6DE39C)}.bg-green_45{background-color:var(--color-green_45, #ACF4C9)}.bg-green_25{background-color:var(--color-green_25, #D4FAE3)}.bg-green_15{background-color:var(--color-green_15, #E8F9EF)}.bg-steelblue_99{background-color:var(--color-steelblue_99, #021a25)}.bg-steelblue_95{background-color:var(--color-steelblue_95, #02212f)}.bg-steelblue_90{background-color:var(--color-steelblue_90, #032d40)}.bg-steelblue_85{background-color:var(--color-steelblue_85, #033f59)}.bg-steelblue_80{background-color:var(--color-steelblue_80, #06587d)}.bg-steelblue_75{background-color:var(--color-steelblue_75, #066d9b)}.bg-steelblue_70{background-color:var(--color-steelblue_70, #128fc7)}.bg-steelblue_65{background-color:var(--color-steelblue_65, #229fd7)}.bg-steelblue_60{background-color:var(--color-steelblue_60, #50bff0)}.bg-steelblue_45{background-color:var(--color-steelblue_45, #a4e2fd)}.bg-steelblue_25{background-color:var(--color-steelblue_25, #d9f2fd)}.bg-steelblue_10{background-color:var(--color-steelblue_10, #ecf8fd)}.bg-oceanblue_99{background-color:var(--color-oceanblue_99, #011428)}.bg-oceanblue_95{background-color:var(--color-oceanblue_95, #03172d)}.bg-oceanblue_90{background-color:var(--color-oceanblue_90, #051d36)}.bg-oceanblue_85{background-color:var(--color-oceanblue_85, #07284a)}.bg-oceanblue_80{background-color:var(--color-oceanblue_80, #004177)}.bg-oceanblue_75{background-color:var(--color-oceanblue_75, #025497)}.bg-oceanblue_70{background-color:var(--color-oceanblue_70, #006ac1)}.bg-oceanblue_65{background-color:var(--color-oceanblue_65, #1f8ae1)}.bg-oceanblue_60{background-color:var(--color-oceanblue_60, #5cb0f3)}.bg-oceanblue_50{background-color:var(--color-oceanblue_50, #9cd1fc)}.bg-oceanblue_25{background-color:var(--color-oceanblue_25, #d5ebfe)}.bg-oceanblue_15{background-color:var(--color-oceanblue_15, #eaf5fe)}.bg-brilliantblue_99{background-color:var(--color-brilliantblue_99, #001226)}.bg-brilliantblue_95{background-color:var(--color-brilliantblue_95, #001b39)}.bg-brilliantblue_90{background-color:var(--color-brilliantblue_90, #002b5e)}.bg-brilliantblue_85{background-color:var(--color-brilliantblue_85, #004290)}.bg-brilliantblue_80{background-color:var(--color-brilliantblue_80, #005cc9)}.bg-brilliantblue_75{background-color:var(--color-brilliantblue_75, #0075ff)}.bg-brilliantblue_70{background-color:var(--color-brilliantblue_70, #2d8dff)}.bg-brilliantblue_60{background-color:var(--color-brilliantblue_60, #64abff)}.bg-brilliantblue_50{background-color:var(--color-brilliantblue_50, #93c4ff)}.bg-brilliantblue_40{background-color:var(--color-brilliantblue_40, #bbdaff)}.bg-brilliantblue_25{background-color:var(--color-brilliantblue_25, #d9eaff)}.bg-brilliantblue_20{background-color:var(--color-brilliantblue_20, #e6f1ff)}.bg-brilliantblue_10{background-color:var(--color-brilliantblue_10, #eff6ff)}.bg-brilliantblue_05{background-color:var(--color-brilliantblue_05, #f5faff)}.bg-grey_95{background-color:var(--color-grey_95, #222222)}.bg-grey_90{background-color:var(--color-grey_90, #333333)}.bg-grey_85{background-color:var(--color-grey_85, #444444)}.bg-grey_80{background-color:var(--color-grey_80, #555555)}.bg-grey_70{background-color:var(--color-grey_70, #737373)}.bg-grey_65{background-color:var(--color-grey_65, #888888)}.bg-grey_60{background-color:var(--color-grey_60, #999999)}.bg-grey_55{background-color:var(--color-grey_55, #aaaaaa)}.bg-grey_50{background-color:var(--color-grey_50, #bbbbbb)}.bg-grey_45{background-color:var(--color-grey_45, #cccccc)}.bg-grey_35{background-color:var(--color-grey_35, #D8D8D8)}.bg-grey_30{background-color:var(--color-grey_30, #e1e1e1)}.bg-grey_25{background-color:var(--color-grey_25, #E5E5E5)}.bg-grey_20{background-color:var(--color-grey_20, #eeeeee)}.bg-grey_10{background-color:var(--color-grey_10, #f6f6f6)}.bg-grey_05{background-color:var(--color-grey_05, #f9f9f9)}.bg-white{background-color:var(--color-white, #ffffff)}.bg-black{background-color:var(--color-black, #000000)}.text-primary{color:var(--color-primary, #051d36)}.text-secondary{color:var(--color-secondary, #555555)}.text-accent{color:var(--color-accent, #9c27b0)}.text-positive{color:var(--color-positive, #0075ff)}.text-negative{color:var(--color-negative, #e30000)}.text-info{color:var(--color-info, #00cd52)}.text-warning{color:var(--color-warning, #f2c037)}.text-red_99{color:var(--color-red_99, #220000)}.text-red_95{color:var(--color-red_95, #440000)}.text-red_90{color:var(--color-red_90, #5E0000)}.text-red_85{color:var(--color-red_85, #820000)}.text-red_80{color:var(--color-red_80, #AD0000)}.text-red_75{color:var(--color-red_75, #E30000)}.text-red_70{color:var(--color-red_70, #FB4444)}.text-red_60{color:var(--color-red_60, #FF7C7C)}.text-red_45{color:var(--color-red_45, #FFB5B5)}.text-red_30{color:var(--color-red_30, #FFD3D3)}.text-red_20{color:var(--color-red_20, #FCE6E6)}.text-red_15{color:var(--color-red_15, #FCEFEF)}.text-caution_bg{color:var(--color-caution_bg, #FEF1F1)}.text-caution_icon{color:var(--color-caution_icon, #fd9595)}.text-orange_99{color:var(--color-orange_99, #2F1100)}.text-orange_95{color:var(--color-orange_95, #4D1B00)}.text-orange_90{color:var(--color-orange_90, #752A00)}.text-orange_85{color:var(--color-orange_85, #9B3700)}.text-orange_75{color:var(--color-orange_75, #CE4900)}.text-orange_65{color:var(--color-orange_65, #FF6B00)}.text-orange_60{color:var(--color-orange_60, #FF7F22)}.text-orange_55{color:var(--color-orange_55, #FFA452)}.text-orange_45{color:var(--color-orange_45, #FFBC81)}.text-orange_35{color:var(--color-orange_35, #FFD5AF)}.text-orange_20{color:var(--color-orange_20, #FFEAD7)}.text-orange_10{color:var(--color-orange_10, #FEF1EA)}.text-header_alert{color:var(--color-header_alert, #FF7A00)}.text-yellow_95{color:var(--color-yellow_95, #322700)}.text-yellow_90{color:var(--color-yellow_90, #453702)}.text-yellow_80{color:var(--color-yellow_80, #6C5602)}.text-yellow_70{color:var(--color-yellow_70, #9C7A00)}.text-yellow_60{color:var(--color-yellow_60, #C49900)}.text-yellow_50{color:var(--color-yellow_50, #EBB800)}.text-yellow_45{color:var(--color-yellow_45, #FFC700)}.text-yellow_40{color:var(--color-yellow_40, #FFD643)}.text-yellow_30{color:var(--color-yellow_30, #FEE17C)}.text-yellow_25{color:var(--color-yellow_25, #FFE99E)}.text-yellow_20{color:var(--color-yellow_20, #FEF1C4)}.text-yellow_10{color:var(--color-yellow_10, #FFF7DD)}.text-olive_95{color:var(--color-olive_95, #2C2C00)}.text-olive_90{color:var(--color-olive_90, #454500)}.text-olive_80{color:var(--color-olive_80, #636300)}.text-olive_70{color:var(--color-olive_70, #838300)}.text-olive_65{color:var(--color-olive_65, #A5A500)}.text-olive_55{color:var(--color-olive_55, #C7C700)}.text-olive_45{color:var(--color-olive_45, #DDDD12)}.text-olive_30{color:var(--color-olive_30, #EEEE37)}.text-olive_20{color:var(--color-olive_20, #F6F65F)}.text-olive_15{color:var(--color-olive_15, #FAFAA1)}.text-olive_10{color:var(--color-olive_10, #FBFBBF)}.text-olive_05{color:var(--color-olive_05, #FEFED9)}.text-green_99{color:var(--color-green_99, #001D0B)}.text-green_95{color:var(--color-green_95, #003013)}.text-green_90{color:var(--color-green_90, #00461C)}.text-green_85{color:var(--color-green_85, #006629)}.text-green_80{color:var(--color-green_80, #007B31)}.text-green_75{color:var(--color-green_75, #00973C)}.text-green_70{color:var(--color-green_70, #12B553)}.text-green_65{color:var(--color-green_65, #2BCE6C)}.text-green_55{color:var(--color-green_55, #6DE39C)}.text-green_45{color:var(--color-green_45, #ACF4C9)}.text-green_25{color:var(--color-green_25, #D4FAE3)}.text-green_15{color:var(--color-green_15, #E8F9EF)}.text-steelblue_99{color:var(--color-steelblue_99, #021a25)}.text-steelblue_95{color:var(--color-steelblue_95, #02212f)}.text-steelblue_90{color:var(--color-steelblue_90, #032d40)}.text-steelblue_85{color:var(--color-steelblue_85, #033f59)}.text-steelblue_80{color:var(--color-steelblue_80, #06587d)}.text-steelblue_75{color:var(--color-steelblue_75, #066d9b)}.text-steelblue_70{color:var(--color-steelblue_70, #128fc7)}.text-steelblue_65{color:var(--color-steelblue_65, #229fd7)}.text-steelblue_60{color:var(--color-steelblue_60, #50bff0)}.text-steelblue_45{color:var(--color-steelblue_45, #a4e2fd)}.text-steelblue_25{color:var(--color-steelblue_25, #d9f2fd)}.text-steelblue_10{color:var(--color-steelblue_10, #ecf8fd)}.text-oceanblue_99{color:var(--color-oceanblue_99, #011428)}.text-oceanblue_95{color:var(--color-oceanblue_95, #03172d)}.text-oceanblue_90{color:var(--color-oceanblue_90, #051d36)}.text-oceanblue_85{color:var(--color-oceanblue_85, #07284a)}.text-oceanblue_80{color:var(--color-oceanblue_80, #004177)}.text-oceanblue_75{color:var(--color-oceanblue_75, #025497)}.text-oceanblue_70{color:var(--color-oceanblue_70, #006ac1)}.text-oceanblue_65{color:var(--color-oceanblue_65, #1f8ae1)}.text-oceanblue_60{color:var(--color-oceanblue_60, #5cb0f3)}.text-oceanblue_50{color:var(--color-oceanblue_50, #9cd1fc)}.text-oceanblue_25{color:var(--color-oceanblue_25, #d5ebfe)}.text-oceanblue_15{color:var(--color-oceanblue_15, #eaf5fe)}.text-brilliantblue_99{color:var(--color-brilliantblue_99, #001226)}.text-brilliantblue_95{color:var(--color-brilliantblue_95, #001b39)}.text-brilliantblue_90{color:var(--color-brilliantblue_90, #002b5e)}.text-brilliantblue_85{color:var(--color-brilliantblue_85, #004290)}.text-brilliantblue_80{color:var(--color-brilliantblue_80, #005cc9)}.text-brilliantblue_75{color:var(--color-brilliantblue_75, #0075ff)}.text-brilliantblue_70{color:var(--color-brilliantblue_70, #2d8dff)}.text-brilliantblue_60{color:var(--color-brilliantblue_60, #64abff)}.text-brilliantblue_50{color:var(--color-brilliantblue_50, #93c4ff)}.text-brilliantblue_40{color:var(--color-brilliantblue_40, #bbdaff)}.text-brilliantblue_25{color:var(--color-brilliantblue_25, #d9eaff)}.text-brilliantblue_20{color:var(--color-brilliantblue_20, #e6f1ff)}.text-brilliantblue_10{color:var(--color-brilliantblue_10, #eff6ff)}.text-brilliantblue_05{color:var(--color-brilliantblue_05, #f5faff)}.text-grey_95{color:var(--color-grey_95, #222222)}.text-grey_90{color:var(--color-grey_90, #333333)}.text-grey_85{color:var(--color-grey_85, #444444)}.text-grey_80{color:var(--color-grey_80, #555555)}.text-grey_70{color:var(--color-grey_70, #737373)}.text-grey_65{color:var(--color-grey_65, #888888)}.text-grey_60{color:var(--color-grey_60, #999999)}.text-grey_55{color:var(--color-grey_55, #aaaaaa)}.text-grey_50{color:var(--color-grey_50, #bbbbbb)}.text-grey_45{color:var(--color-grey_45, #cccccc)}.text-grey_35{color:var(--color-grey_35, #D8D8D8)}.text-grey_30{color:var(--color-grey_30, #e1e1e1)}.text-grey_25{color:var(--color-grey_25, #E5E5E5)}.text-grey_20{color:var(--color-grey_20, #eeeeee)}.text-grey_10{color:var(--color-grey_10, #f6f6f6)}.text-grey_05{color:var(--color-grey_05, #f9f9f9)}.text-white{color:var(--color-white, #ffffff)}.text-black{color:var(--color-black, #000000)}*,*::before,*::after{box-sizing:border-box}html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin-block-end:0}ul[role=list],ol[role=list]{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4,button,input,label{line-height:1}h1,h2,h3,h4{text-wrap:balance}a:not([class]){text-decoration-skip-ink:auto;color:currentColor}img,picture{max-width:100%;display:block}input,button,textarea,select{font-size:inherit}:target{scroll-margin-block:5ex}button{background:none;border:none;cursor:pointer;padding:0;outline:0}button:focus{outline:0 !important}:host{display:inline-block;height:fit-content;line-height:0}.text-center{text-align:center}.text-right{text-align:right}.text-left{text-align:left}input[type=text],input[type=number],input[type=password],input[type=email],input[type=tel],textarea{padding-block:0px;padding-inline:0px}.sd-hoverable:hover>.sd-focus-helper{background:currentColor;opacity:0.15}.sd-hoverable:hover>.sd-focus-helper:before{opacity:0.1}.sd-hoverable:hover>.sd-focus-helper:after{opacity:0.4}.sd-focus-helper{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;opacity:0;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1)}.sd-focus-helper:before,.sd-focus-helper:after{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;border-radius:inherit;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 0.8, 0.5, 1)}.sd-focus-helper:before{background:#000000}.sd-focus-helper:after{background:#ffffff}.sd-tooltip-menu{width:fit-content;padding:8px 16px;border-radius:4px;color:white;background:#07284a;font-size:12px;position:relative;box-sizing:border-box;display:flex;align-items:start;justify-content:center;gap:12px}.sd-tooltip-menu--with-close{padding-right:12px !important}.sd-tooltip-menu__arrow{position:absolute;display:flex;width:9.6px;height:7.2px}.sd-tooltip-menu__arrow svg{width:100%;height:100%}.sd-tooltip-menu__arrow--top{bottom:-7.2px;left:50%;transform:translateX(-50%)}.sd-tooltip-menu__arrow--bottom{top:-7.2px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-tooltip-menu__arrow--left{right:-7.2px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-tooltip-menu__arrow--right{left:-7.2px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-tooltip-menu__content{line-height:20px;font-weight:500}.sd-tooltip-menu__close-button{padding-top:4px;display:flex}.sd-tooltip-menu__close-button button{padding:0;background:none;border:none;cursor:pointer}.sd-popover-menu{width:fit-content;padding:12px 20px;border-radius:4px;color:white;background:#07284a;font-size:12px;position:relative;box-sizing:border-box}.sd-popover-menu__arrow{position:absolute;display:flex;width:9.6px;height:7.2px}.sd-popover-menu__arrow svg{width:100%;height:100%}.sd-popover-menu__arrow--top{bottom:-7.2px;left:50%;transform:translateX(-50%)}.sd-popover-menu__arrow--bottom{top:-7.2px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-popover-menu__arrow--left{right:-7.2px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-popover-menu__arrow--right{left:-7.2px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-popover-menu__content{font-size:12px;line-height:20px}.sd-popover-menu__content .sd-popover-menu__title{font-weight:700;margin-bottom:4px}.sd-popover-menu__content .sd-popover-menu__messages{font-weight:500}.sd-popover-menu__content .sd-popover-menu__buttons{margin-top:12px;display:flex;gap:8px;align-items:center}.sd-popover-menu__content .sd-popover-menu__buttons--1{justify-content:flex-end}.sd-popover-menu__content .sd-popover-menu__buttons--2{justify-content:space-between}.sd-popover-menu__close-button{position:absolute;top:16px;right:12px;padding:0;background:none;border:none;cursor:pointer}";
6
-
7
- /*
8
- Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
9
- */
10
- var __defProp = Object.defineProperty;
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
-
16
- // src/utils/constants.ts
17
- var SVG_NS = "http://www.w3.org/2000/svg";
18
- var HTML_NS = "http://www.w3.org/1999/xhtml";
19
- var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
20
- PrimitiveType2["Undefined"] = "undefined";
21
- PrimitiveType2["Null"] = "null";
22
- PrimitiveType2["String"] = "string";
23
- PrimitiveType2["Number"] = "number";
24
- PrimitiveType2["SpecialNumber"] = "number";
25
- PrimitiveType2["Boolean"] = "boolean";
26
- PrimitiveType2["BigInt"] = "bigint";
27
- return PrimitiveType2;
28
- })(PrimitiveType || {});
29
- var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
30
- NonPrimitiveType2["Array"] = "array";
31
- NonPrimitiveType2["Date"] = "date";
32
- NonPrimitiveType2["Map"] = "map";
33
- NonPrimitiveType2["Object"] = "object";
34
- NonPrimitiveType2["RegularExpression"] = "regexp";
35
- NonPrimitiveType2["Set"] = "set";
36
- NonPrimitiveType2["Channel"] = "channel";
37
- NonPrimitiveType2["Symbol"] = "symbol";
38
- return NonPrimitiveType2;
39
- })(NonPrimitiveType || {});
40
- var TYPE_CONSTANT = "type";
41
- var VALUE_CONSTANT = "value";
42
- var SERIALIZED_PREFIX = "serialized:";
43
-
44
- // src/client/client-host-ref.ts
45
- var getHostRef = (ref) => {
46
- if (ref.__stencil__getHostRef) {
47
- return ref.__stencil__getHostRef();
48
- }
49
- return void 0;
50
- };
51
- var registerHost = (hostElement, cmpMeta) => {
52
- const hostRef = {
53
- $flags$: 0,
54
- $hostElement$: hostElement,
55
- $cmpMeta$: cmpMeta,
56
- $instanceValues$: /* @__PURE__ */ new Map(),
57
- $serializerValues$: /* @__PURE__ */ new Map()
58
- };
59
- {
60
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
61
- }
62
- {
63
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
64
- hostElement["s-p"] = [];
65
- hostElement["s-rc"] = [];
66
- }
67
- {
68
- hostRef.$fetchedCbList$ = [];
69
- }
70
- const ref = hostRef;
71
- hostElement.__stencil__getHostRef = () => ref;
72
- return ref;
73
- };
74
- var isMemberInElement = (elm, memberName) => memberName in elm;
75
- var consoleError = (e, el) => (0, console.error)(e, el);
76
-
77
- // src/client/client-load-module.ts
78
- var cmpModules = /* @__PURE__ */ new Map();
79
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
80
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
81
- const bundleId = cmpMeta.$lazyBundleId$;
82
- if (!bundleId) {
83
- return void 0;
84
- }
85
- const module = cmpModules.get(bundleId) ;
86
- if (module) {
87
- return module[exportName];
88
- }
89
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
90
- return import(
91
- /* @vite-ignore */
92
- /* webpackInclude: /\.entry\.js$/ */
93
- /* webpackExclude: /\.system\.entry\.js$/ */
94
- /* webpackMode: "lazy" */
95
- `./${bundleId}.entry.js${""}`
96
- ).then(
97
- (importedModule) => {
98
- {
99
- cmpModules.set(bundleId, importedModule);
100
- }
101
- return importedModule[exportName];
102
- },
103
- (e) => {
104
- consoleError(e, hostRef.$hostElement$);
105
- }
106
- );
107
- };
108
-
109
- // src/client/client-style.ts
110
- var styles = /* @__PURE__ */ new Map();
111
-
112
- // src/runtime/runtime-constants.ts
113
- var CONTENT_REF_ID = "r";
114
- var ORG_LOCATION_ID = "o";
115
- var SLOT_NODE_ID = "s";
116
- var TEXT_NODE_ID = "t";
117
- var COMMENT_NODE_ID = "c";
118
- var HYDRATE_ID = "s-id";
119
- var HYDRATED_STYLE_ID = "sty-id";
120
- var HYDRATE_CHILD_ID = "c-id";
121
- var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
122
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
123
- var XLINK_NS = "http://www.w3.org/1999/xlink";
124
- var win = typeof window !== "undefined" ? window : {};
125
- var plt = {
126
- $flags$: 0,
127
- $resourcesUrl$: "",
128
- jmp: (h2) => h2(),
129
- raf: (h2) => requestAnimationFrame(h2),
130
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
131
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
132
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
133
- };
134
- var supportsListenerOptions = /* @__PURE__ */ (() => {
135
- var _a;
136
- let supportsListenerOptions2 = false;
137
- try {
138
- (_a = win.document) == null ? void 0 : _a.addEventListener(
139
- "e",
140
- null,
141
- Object.defineProperty({}, "passive", {
142
- get() {
143
- supportsListenerOptions2 = true;
144
- }
145
- })
146
- );
147
- } catch (e) {
148
- }
149
- return supportsListenerOptions2;
150
- })();
151
- var promiseResolve = (v) => Promise.resolve(v);
152
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
153
- try {
154
- new CSSStyleSheet();
155
- return typeof new CSSStyleSheet().replaceSync === "function";
156
- } catch (e) {
157
- }
158
- return false;
159
- })() ;
160
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
161
- var queuePending = false;
162
- var queueDomReads = [];
163
- var queueDomWrites = [];
164
- var queueTask = (queue, write) => (cb) => {
165
- queue.push(cb);
166
- if (!queuePending) {
167
- queuePending = true;
168
- if (plt.$flags$ & 4 /* queueSync */) {
169
- nextTick(flush);
170
- } else {
171
- plt.raf(flush);
172
- }
173
- }
174
- };
175
- var consume = (queue) => {
176
- for (let i2 = 0; i2 < queue.length; i2++) {
177
- try {
178
- queue[i2](performance.now());
179
- } catch (e) {
180
- consoleError(e);
181
- }
182
- }
183
- queue.length = 0;
184
- };
185
- var flush = () => {
186
- consume(queueDomReads);
187
- {
188
- consume(queueDomWrites);
189
- if (queuePending = queueDomReads.length > 0) {
190
- plt.raf(flush);
191
- }
192
- }
193
- };
194
- var nextTick = (cb) => promiseResolve().then(cb);
195
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites);
196
-
197
- // src/utils/helpers.ts
198
- var isDef = (v) => v != null && v !== void 0;
199
- var isComplexType = (o) => {
200
- o = typeof o;
201
- return o === "object" || o === "function";
202
- };
203
-
204
- // src/utils/query-nonce-meta-tag-content.ts
205
- function queryNonceMetaTagContent(doc) {
206
- var _a, _b, _c;
207
- 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;
208
- }
209
-
210
- // src/utils/regular-expression.ts
211
- var escapeRegExpSpecialCharacters = (text) => {
212
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
213
- };
214
-
215
- // src/utils/remote-value.ts
216
- var RemoteValue = class _RemoteValue {
217
- /**
218
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
219
- *
220
- * @param serialized The serialized LocalValue object
221
- * @returns The original JavaScript value/object
222
- */
223
- static fromLocalValue(serialized) {
224
- const type = serialized[TYPE_CONSTANT];
225
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
226
- switch (type) {
227
- case "string" /* String */:
228
- return value;
229
- case "boolean" /* Boolean */:
230
- return value;
231
- case "bigint" /* BigInt */:
232
- return BigInt(value);
233
- case "undefined" /* Undefined */:
234
- return void 0;
235
- case "null" /* Null */:
236
- return null;
237
- case "number" /* Number */:
238
- if (value === "NaN") return NaN;
239
- if (value === "-0") return -0;
240
- if (value === "Infinity") return Infinity;
241
- if (value === "-Infinity") return -Infinity;
242
- return value;
243
- case "array" /* Array */:
244
- return value.map((item) => _RemoteValue.fromLocalValue(item));
245
- case "date" /* Date */:
246
- return new Date(value);
247
- case "map" /* Map */:
248
- const map2 = /* @__PURE__ */ new Map();
249
- for (const [key, val] of value) {
250
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
251
- const deserializedValue = _RemoteValue.fromLocalValue(val);
252
- map2.set(deserializedKey, deserializedValue);
253
- }
254
- return map2;
255
- case "object" /* Object */:
256
- const obj = {};
257
- for (const [key, val] of value) {
258
- obj[key] = _RemoteValue.fromLocalValue(val);
259
- }
260
- return obj;
261
- case "regexp" /* RegularExpression */:
262
- const { pattern, flags } = value;
263
- return new RegExp(pattern, flags);
264
- case "set" /* Set */:
265
- const set = /* @__PURE__ */ new Set();
266
- for (const item of value) {
267
- set.add(_RemoteValue.fromLocalValue(item));
268
- }
269
- return set;
270
- case "symbol" /* Symbol */:
271
- return Symbol(value);
272
- default:
273
- throw new Error(`Unsupported type: ${type}`);
274
- }
275
- }
276
- /**
277
- * Utility method to deserialize multiple LocalValues at once
278
- *
279
- * @param serializedValues Array of serialized LocalValue objects
280
- * @returns Array of deserialized JavaScript values
281
- */
282
- static fromLocalValueArray(serializedValues) {
283
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
284
- }
285
- /**
286
- * Verifies if the given object matches the structure of a serialized LocalValue
287
- *
288
- * @param obj Object to verify
289
- * @returns boolean indicating if the object has LocalValue structure
290
- */
291
- static isLocalValueObject(obj) {
292
- if (typeof obj !== "object" || obj === null) {
293
- return false;
294
- }
295
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
296
- return false;
297
- }
298
- const type = obj[TYPE_CONSTANT];
299
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
300
- if (!hasTypeProperty) {
301
- return false;
302
- }
303
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
304
- return obj.hasOwnProperty(VALUE_CONSTANT);
305
- }
306
- return true;
307
- }
308
- };
309
-
310
- // src/utils/result.ts
311
- var result_exports = {};
312
- __export(result_exports, {
313
- err: () => err,
314
- map: () => map,
315
- ok: () => ok,
316
- unwrap: () => unwrap,
317
- unwrapErr: () => unwrapErr
318
- });
319
- var ok = (value) => ({
320
- isOk: true,
321
- isErr: false,
322
- value
323
- });
324
- var err = (value) => ({
325
- isOk: false,
326
- isErr: true,
327
- value
328
- });
329
- function map(result, fn) {
330
- if (result.isOk) {
331
- const val = fn(result.value);
332
- if (val instanceof Promise) {
333
- return val.then((newVal) => ok(newVal));
334
- } else {
335
- return ok(val);
336
- }
337
- }
338
- if (result.isErr) {
339
- const value = result.value;
340
- return err(value);
341
- }
342
- throw "should never get here";
343
- }
344
- var unwrap = (result) => {
345
- if (result.isOk) {
346
- return result.value;
347
- } else {
348
- throw result.value;
349
- }
350
- };
351
- var unwrapErr = (result) => {
352
- if (result.isErr) {
353
- return result.value;
354
- } else {
355
- throw result.value;
356
- }
357
- };
358
-
359
- // src/utils/serialize.ts
360
- function deserializeProperty(value) {
361
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
362
- return value;
363
- }
364
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
365
- }
366
-
367
- // src/utils/style.ts
368
- function createStyleSheetIfNeededAndSupported(styles2) {
369
- if (!supportsConstructableStylesheets) return void 0;
370
- const sheet = new CSSStyleSheet();
371
- sheet.replaceSync(styles2);
372
- return sheet;
373
- }
374
-
375
- // src/utils/shadow-root.ts
376
- var globalStyleSheet;
377
- function createShadowRoot(cmpMeta) {
378
- var _a;
379
- const shadowRoot = this.attachShadow({ mode: "open" });
380
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
381
- if (globalStyleSheet) {
382
- if (supportsMutableAdoptedStyleSheets) {
383
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
384
- } else {
385
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
386
- }
387
- }
388
- }
389
- var updateFallbackSlotVisibility = (elm) => {
390
- const childNodes = internalCall(elm, "childNodes");
391
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
392
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
393
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
394
- if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
395
- slotNode.hidden = true;
396
- } else {
397
- slotNode.hidden = false;
398
- }
399
- }
400
- });
401
- }
402
- let i2 = 0;
403
- for (i2 = 0; i2 < childNodes.length; i2++) {
404
- const childNode = childNodes[i2];
405
- if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
406
- updateFallbackSlotVisibility(childNode);
407
- }
408
- }
409
- };
410
- var getSlottedChildNodes = (childNodes) => {
411
- const result = [];
412
- for (let i2 = 0; i2 < childNodes.length; i2++) {
413
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
414
- if (slottedNode && slottedNode.isConnected) {
415
- result.push(slottedNode);
416
- }
417
- }
418
- return result;
419
- };
420
- function getHostSlotNodes(childNodes, hostName, slotName) {
421
- let i2 = 0;
422
- let slottedNodes = [];
423
- let childNode;
424
- for (; i2 < childNodes.length; i2++) {
425
- childNode = childNodes[i2];
426
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
427
- slottedNodes.push(childNode);
428
- }
429
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
430
- }
431
- return slottedNodes;
432
- }
433
- var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
434
- const childNodes = [];
435
- if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
436
- let node = slot;
437
- while (node = node.nextSibling) {
438
- if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
439
- }
440
- return childNodes;
441
- };
442
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
443
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
444
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
445
- return true;
446
- }
447
- if (nodeToRelocate.getAttribute("slot") === slotName) {
448
- return true;
449
- }
450
- return false;
451
- }
452
- if (nodeToRelocate["s-sn"] === slotName) {
453
- return true;
454
- }
455
- return slotName === "";
456
- };
457
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
458
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
459
- return;
460
- }
461
- const slottedNodeLocation = document.createTextNode("");
462
- slottedNodeLocation["s-nr"] = newChild;
463
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
464
- const parent = slotNode["s-cr"].parentNode;
465
- const appendMethod = internalCall(parent, "appendChild");
466
- if (typeof position !== "undefined") {
467
- slottedNodeLocation["s-oo"] = position;
468
- const childNodes = internalCall(parent, "childNodes");
469
- const slotRelocateNodes = [slottedNodeLocation];
470
- childNodes.forEach((n) => {
471
- if (n["s-nr"]) slotRelocateNodes.push(n);
472
- });
473
- slotRelocateNodes.sort((a, b) => {
474
- if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
475
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
476
- return 0;
477
- });
478
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
479
- } else {
480
- appendMethod.call(parent, slottedNodeLocation);
481
- }
482
- newChild["s-ol"] = slottedNodeLocation;
483
- newChild["s-sh"] = slotNode["s-hn"];
484
- };
485
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
486
- function patchSlotNode(node) {
487
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
488
- const assignedFactory = (elementsOnly) => (function(opts) {
489
- const toReturn = [];
490
- const slotName = this["s-sn"];
491
- if (opts == null ? void 0 : opts.flatten) {
492
- console.error(`
493
- Flattening is not supported for Stencil non-shadow slots.
494
- You can use \`.childNodes\` to nested slot fallback content.
495
- If you have a particular use case, please open an issue on the Stencil repo.
496
- `);
497
- }
498
- const parent = this["s-cr"].parentElement;
499
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
500
- slottedNodes.forEach((n) => {
501
- if (slotName === getSlotName(n)) {
502
- toReturn.push(n);
503
- }
504
- });
505
- if (elementsOnly) {
506
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
507
- }
508
- return toReturn;
509
- }).bind(node);
510
- node.assignedElements = assignedFactory(true);
511
- node.assignedNodes = assignedFactory(false);
512
- }
513
- function internalCall(node, method) {
514
- if ("__" + method in node) {
515
- const toReturn = node["__" + method];
516
- if (typeof toReturn !== "function") return toReturn;
517
- return toReturn.bind(node);
518
- } else {
519
- if (typeof node[method] !== "function") return node[method];
520
- return node[method].bind(node);
521
- }
522
- }
523
- var createTime = (fnName, tagName = "") => {
524
- {
525
- return () => {
526
- return;
527
- };
528
- }
529
- };
530
- var uniqueTime = (key, measureText) => {
531
- {
532
- return () => {
533
- return;
534
- };
535
- }
536
- };
537
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
538
- var registerStyle = (scopeId2, cssText, allowCS) => {
539
- let style = styles.get(scopeId2);
540
- if (supportsConstructableStylesheets && allowCS) {
541
- style = style || new CSSStyleSheet();
542
- if (typeof style === "string") {
543
- style = cssText;
544
- } else {
545
- style.replaceSync(cssText);
546
- }
547
- } else {
548
- style = cssText;
549
- }
550
- styles.set(scopeId2, style);
551
- };
552
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
553
- var _a;
554
- const scopeId2 = getScopeId(cmpMeta);
555
- const style = styles.get(scopeId2);
556
- if (!win.document) {
557
- return scopeId2;
558
- }
559
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
560
- if (style) {
561
- if (typeof style === "string") {
562
- styleContainerNode = styleContainerNode.head || styleContainerNode;
563
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
564
- let styleElm;
565
- if (!appliedStyles) {
566
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
567
- }
568
- if (!appliedStyles.has(scopeId2)) {
569
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
570
- styleElm.innerHTML = style;
571
- } else {
572
- styleElm = win.document.createElement("style");
573
- styleElm.innerHTML = style;
574
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
575
- if (nonce != null) {
576
- styleElm.setAttribute("nonce", nonce);
577
- }
578
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
579
- if (styleContainerNode.nodeName === "HEAD") {
580
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
581
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
582
- styleContainerNode.insertBefore(
583
- styleElm,
584
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
585
- );
586
- } else if ("host" in styleContainerNode) {
587
- if (supportsConstructableStylesheets) {
588
- const stylesheet = new CSSStyleSheet();
589
- stylesheet.replaceSync(style);
590
- if (supportsMutableAdoptedStyleSheets) {
591
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
592
- } else {
593
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
594
- }
595
- } else {
596
- const existingStyleContainer = styleContainerNode.querySelector("style");
597
- if (existingStyleContainer) {
598
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
599
- } else {
600
- styleContainerNode.prepend(styleElm);
601
- }
602
- }
603
- } else {
604
- styleContainerNode.append(styleElm);
605
- }
606
- }
607
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
608
- styleContainerNode.insertBefore(styleElm, null);
609
- }
610
- }
611
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
612
- styleElm.innerHTML += SLOT_FB_CSS;
613
- }
614
- if (appliedStyles) {
615
- appliedStyles.add(scopeId2);
616
- }
617
- }
618
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
619
- if (supportsMutableAdoptedStyleSheets) {
620
- styleContainerNode.adoptedStyleSheets.push(style);
621
- } else {
622
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
623
- }
624
- }
625
- }
626
- return scopeId2;
627
- };
628
- var attachStyles = (hostRef) => {
629
- const cmpMeta = hostRef.$cmpMeta$;
630
- const elm = hostRef.$hostElement$;
631
- const flags = cmpMeta.$flags$;
632
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
633
- const scopeId2 = addStyle(
634
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
635
- cmpMeta);
636
- if (flags & 10 /* needsScopedEncapsulation */) {
637
- elm["s-sc"] = scopeId2;
638
- elm.classList.add(scopeId2 + "-h");
639
- }
640
- endAttachStyles();
641
- };
642
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
643
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
644
- var hydrateScopedToShadow = () => {
645
- if (!win.document) {
646
- return;
647
- }
648
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
649
- let i2 = 0;
650
- for (; i2 < styles2.length; i2++) {
651
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
652
- }
653
- };
654
- var h = (nodeName, vnodeData, ...children) => {
655
- let child = null;
656
- let key = null;
657
- let slotName = null;
658
- let simple = false;
659
- let lastSimple = false;
660
- const vNodeChildren = [];
661
- const walk = (c) => {
662
- for (let i2 = 0; i2 < c.length; i2++) {
663
- child = c[i2];
664
- if (Array.isArray(child)) {
665
- walk(child);
666
- } else if (child != null && typeof child !== "boolean") {
667
- if (simple = !isComplexType(child)) {
668
- child = String(child);
669
- }
670
- if (simple && lastSimple) {
671
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
672
- } else {
673
- vNodeChildren.push(simple ? newVNode(null, child) : child);
674
- }
675
- lastSimple = simple;
676
- }
677
- }
678
- };
679
- walk(children);
680
- const vnode = newVNode(nodeName, null);
681
- vnode.$attrs$ = vnodeData;
682
- if (vNodeChildren.length > 0) {
683
- vnode.$children$ = vNodeChildren;
684
- }
685
- {
686
- vnode.$key$ = key;
687
- }
688
- {
689
- vnode.$name$ = slotName;
690
- }
691
- return vnode;
692
- };
693
- var newVNode = (tag, text) => {
694
- const vnode = {
695
- $flags$: 0,
696
- $tag$: tag,
697
- $text$: text,
698
- $elm$: null,
699
- $children$: null
700
- };
701
- {
702
- vnode.$attrs$ = null;
703
- }
704
- {
705
- vnode.$key$ = null;
706
- }
707
- {
708
- vnode.$name$ = null;
709
- }
710
- return vnode;
711
- };
712
- var Host = {};
713
- var isHost = (node) => node && node.$tag$ === Host;
714
-
715
- // src/runtime/client-hydrate.ts
716
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
717
- var _a, _b;
718
- const endHydrate = createTime("hydrateClient", tagName);
719
- const shadowRoot = hostElm.shadowRoot;
720
- const childRenderNodes = [];
721
- const slotNodes = [];
722
- const slottedNodes = [];
723
- const shadowRootNodes = shadowRoot ? [] : null;
724
- const vnode = newVNode(tagName, null);
725
- vnode.$elm$ = hostElm;
726
- let scopeId2;
727
- {
728
- const cmpMeta = hostRef.$cmpMeta$;
729
- if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
730
- scopeId2 = hostElm["s-sc"];
731
- hostElm.classList.add(scopeId2 + "-h");
732
- } else if (hostElm["s-sc"]) {
733
- delete hostElm["s-sc"];
734
- }
735
- }
736
- if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
737
- initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
738
- }
739
- hostElm[HYDRATE_ID] = hostId;
740
- hostElm.removeAttribute(HYDRATE_ID);
741
- hostRef.$vnode$ = clientHydrate(
742
- vnode,
743
- childRenderNodes,
744
- slotNodes,
745
- shadowRootNodes,
746
- hostElm,
747
- hostElm,
748
- hostId,
749
- slottedNodes
750
- );
751
- let crIndex = 0;
752
- const crLength = childRenderNodes.length;
753
- let childRenderNode;
754
- for (crIndex; crIndex < crLength; crIndex++) {
755
- childRenderNode = childRenderNodes[crIndex];
756
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
757
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
758
- const node = childRenderNode.$elm$;
759
- if (!shadowRoot) {
760
- node["s-hn"] = tagName.toUpperCase();
761
- if (childRenderNode.$tag$ === "slot") {
762
- node["s-cr"] = hostElm["s-cr"];
763
- }
764
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
765
- const cmpMeta = getHostRef(childRenderNode.$elm$);
766
- if (cmpMeta) {
767
- const scopeId3 = getScopeId(
768
- cmpMeta.$cmpMeta$);
769
- const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
770
- if (styleSheet) {
771
- hostElm.shadowRoot.append(styleSheet.cloneNode(true));
772
- }
773
- }
774
- }
775
- if (childRenderNode.$tag$ === "slot") {
776
- childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
777
- if (childRenderNode.$children$) {
778
- childRenderNode.$flags$ |= 2 /* isSlotFallback */;
779
- if (!childRenderNode.$elm$.childNodes.length) {
780
- childRenderNode.$children$.forEach((c) => {
781
- childRenderNode.$elm$.appendChild(c.$elm$);
782
- });
783
- }
784
- } else {
785
- childRenderNode.$flags$ |= 1 /* isSlotReference */;
786
- }
787
- }
788
- if (orgLocationNode && orgLocationNode.isConnected) {
789
- if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
790
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
791
- }
792
- orgLocationNode.parentNode.removeChild(orgLocationNode);
793
- if (!shadowRoot) {
794
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
795
- }
796
- }
797
- if (orgLocationNode && !orgLocationNode["s-id"]) {
798
- plt.$orgLocNodes$.delete(orgLocationId);
799
- }
800
- }
801
- const hosts = [];
802
- const snLen = slottedNodes.length;
803
- let snIndex = 0;
804
- let slotGroup;
805
- let snGroupIdx;
806
- let snGroupLen;
807
- let slottedItem;
808
- for (snIndex; snIndex < snLen; snIndex++) {
809
- slotGroup = slottedNodes[snIndex];
810
- if (!slotGroup || !slotGroup.length) continue;
811
- snGroupLen = slotGroup.length;
812
- snGroupIdx = 0;
813
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
814
- slottedItem = slotGroup[snGroupIdx];
815
- if (!hosts[slottedItem.hostId]) {
816
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
817
- }
818
- if (!hosts[slottedItem.hostId]) continue;
819
- const hostEle = hosts[slottedItem.hostId];
820
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
821
- hostEle.appendChild(slottedItem.node);
822
- }
823
- if (!hostEle.shadowRoot || !shadowRoot) {
824
- if (!slottedItem.slot["s-cr"]) {
825
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
826
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
827
- slottedItem.slot["s-cr"] = hostEle;
828
- } else {
829
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
830
- }
831
- }
832
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
833
- if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
834
- slottedItem.node.removeAttribute("slot");
835
- }
836
- }
837
- }
838
- }
839
- if (scopeId2 && slotNodes.length) {
840
- slotNodes.forEach((slot) => {
841
- slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
842
- });
843
- }
844
- if (shadowRoot) {
845
- let rnIdex = 0;
846
- const rnLen = shadowRootNodes.length;
847
- if (rnLen) {
848
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
849
- const node = shadowRootNodes[rnIdex];
850
- if (node) {
851
- shadowRoot.appendChild(node);
852
- }
853
- }
854
- Array.from(hostElm.childNodes).forEach((node) => {
855
- if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
856
- if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
857
- node.removeAttribute("hidden");
858
- } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
859
- node.parentNode.removeChild(node);
860
- }
861
- }
862
- });
863
- }
864
- }
865
- hostRef.$hostElement$ = hostElm;
866
- endHydrate();
867
- };
868
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
869
- let childNodeType;
870
- let childIdSplt;
871
- let childVNode;
872
- let i2;
873
- const scopeId2 = hostElm["s-sc"];
874
- if (node.nodeType === 1 /* ElementNode */) {
875
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
876
- if (childNodeType) {
877
- childIdSplt = childNodeType.split(".");
878
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
879
- childVNode = createSimpleVNode({
880
- $flags$: 0,
881
- $hostId$: childIdSplt[0],
882
- $nodeId$: childIdSplt[1],
883
- $depth$: childIdSplt[2],
884
- $index$: childIdSplt[3],
885
- $tag$: node.tagName.toLowerCase(),
886
- $elm$: node,
887
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
888
- // won't try to reconcile them. Classes set on the node will be blown away.
889
- $attrs$: { class: node.className || "" }
890
- });
891
- childRenderNodes.push(childVNode);
892
- node.removeAttribute(HYDRATE_CHILD_ID);
893
- if (!parentVNode.$children$) {
894
- parentVNode.$children$ = [];
895
- }
896
- if (scopeId2 && childIdSplt[0] === hostId) {
897
- node["s-si"] = scopeId2;
898
- childVNode.$attrs$.class += " " + scopeId2;
899
- }
900
- const slotName = childVNode.$elm$.getAttribute("s-sn");
901
- if (typeof slotName === "string") {
902
- if (childVNode.$tag$ === "slot-fb") {
903
- addSlot(
904
- slotName,
905
- childIdSplt[2],
906
- childVNode,
907
- node,
908
- parentVNode,
909
- childRenderNodes,
910
- slotNodes,
911
- shadowRootNodes,
912
- slottedNodes
913
- );
914
- if (scopeId2) {
915
- node.classList.add(scopeId2);
916
- }
917
- }
918
- childVNode.$elm$["s-sn"] = slotName;
919
- childVNode.$elm$.removeAttribute("s-sn");
920
- }
921
- if (childVNode.$index$ !== void 0) {
922
- parentVNode.$children$[childVNode.$index$] = childVNode;
923
- }
924
- parentVNode = childVNode;
925
- if (shadowRootNodes && childVNode.$depth$ === "0") {
926
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
927
- }
928
- }
929
- }
930
- if (node.shadowRoot) {
931
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
932
- clientHydrate(
933
- parentVNode,
934
- childRenderNodes,
935
- slotNodes,
936
- shadowRootNodes,
937
- hostElm,
938
- node.shadowRoot.childNodes[i2],
939
- hostId,
940
- slottedNodes
941
- );
942
- }
943
- }
944
- const nonShadowNodes = node.__childNodes || node.childNodes;
945
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
946
- clientHydrate(
947
- parentVNode,
948
- childRenderNodes,
949
- slotNodes,
950
- shadowRootNodes,
951
- hostElm,
952
- nonShadowNodes[i2],
953
- hostId,
954
- slottedNodes
955
- );
956
- }
957
- } else if (node.nodeType === 8 /* CommentNode */) {
958
- childIdSplt = node.nodeValue.split(".");
959
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
960
- childNodeType = childIdSplt[0];
961
- childVNode = createSimpleVNode({
962
- $hostId$: childIdSplt[1],
963
- $nodeId$: childIdSplt[2],
964
- $depth$: childIdSplt[3],
965
- $index$: childIdSplt[4] || "0",
966
- $elm$: node,
967
- $attrs$: null,
968
- $children$: null,
969
- $key$: null,
970
- $name$: null,
971
- $tag$: null,
972
- $text$: null
973
- });
974
- if (childNodeType === TEXT_NODE_ID) {
975
- childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
976
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
977
- childVNode.$text$ = childVNode.$elm$.textContent;
978
- childRenderNodes.push(childVNode);
979
- node.remove();
980
- if (hostId === childVNode.$hostId$) {
981
- if (!parentVNode.$children$) {
982
- parentVNode.$children$ = [];
983
- }
984
- parentVNode.$children$[childVNode.$index$] = childVNode;
985
- }
986
- if (shadowRootNodes && childVNode.$depth$ === "0") {
987
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
988
- }
989
- }
990
- } else if (childNodeType === COMMENT_NODE_ID) {
991
- childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
992
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
993
- childRenderNodes.push(childVNode);
994
- node.remove();
995
- }
996
- } else if (childVNode.$hostId$ === hostId) {
997
- if (childNodeType === SLOT_NODE_ID) {
998
- const slotName = node["s-sn"] = childIdSplt[5] || "";
999
- addSlot(
1000
- slotName,
1001
- childIdSplt[2],
1002
- childVNode,
1003
- node,
1004
- parentVNode,
1005
- childRenderNodes,
1006
- slotNodes,
1007
- shadowRootNodes,
1008
- slottedNodes
1009
- );
1010
- } else if (childNodeType === CONTENT_REF_ID) {
1011
- if (shadowRootNodes) {
1012
- node.remove();
1013
- } else {
1014
- hostElm["s-cr"] = node;
1015
- node["s-cn"] = true;
1016
- }
1017
- }
1018
- }
1019
- }
1020
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1021
- const vnode = newVNode(null, node.textContent);
1022
- vnode.$elm$ = node;
1023
- vnode.$index$ = "0";
1024
- parentVNode.$children$ = [vnode];
1025
- } else {
1026
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
1027
- node.remove();
1028
- }
1029
- }
1030
- return parentVNode;
1031
- };
1032
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1033
- if (node.nodeType === 1 /* ElementNode */) {
1034
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1035
- if (componentId) {
1036
- orgLocNodes.set(componentId, node);
1037
- }
1038
- let i2 = 0;
1039
- if (node.shadowRoot) {
1040
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1041
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1042
- }
1043
- }
1044
- const nonShadowNodes = node.__childNodes || node.childNodes;
1045
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1046
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1047
- }
1048
- } else if (node.nodeType === 8 /* CommentNode */) {
1049
- const childIdSplt = node.nodeValue.split(".");
1050
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1051
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1052
- node.nodeValue = "";
1053
- node["s-en"] = childIdSplt[3];
1054
- }
1055
- }
1056
- };
1057
- var createSimpleVNode = (vnode) => {
1058
- const defaultVNode = {
1059
- $flags$: 0,
1060
- $hostId$: null,
1061
- $nodeId$: null,
1062
- $depth$: null,
1063
- $index$: "0",
1064
- $elm$: null,
1065
- $attrs$: null,
1066
- $children$: null,
1067
- $key$: null,
1068
- $name$: null,
1069
- $tag$: null,
1070
- $text$: null
1071
- };
1072
- return { ...defaultVNode, ...vnode };
1073
- };
1074
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1075
- node["s-sr"] = true;
1076
- childVNode.$name$ = slotName || null;
1077
- childVNode.$tag$ = "slot";
1078
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1079
- if (shadowRootNodes && win.document) {
1080
- const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1081
- if (childVNode.$name$) {
1082
- childVNode.$elm$.setAttribute("name", slotName);
1083
- }
1084
- if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1085
- internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1086
- } else {
1087
- internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1088
- }
1089
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1090
- node.remove();
1091
- if (childVNode.$depth$ === "0") {
1092
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1093
- }
1094
- } else {
1095
- const slot = childVNode.$elm$;
1096
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1097
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1098
- patchSlotNode(node);
1099
- if (shouldMove) {
1100
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1101
- }
1102
- }
1103
- childRenderNodes.push(childVNode);
1104
- slotNodes.push(childVNode);
1105
- if (!parentVNode.$children$) {
1106
- parentVNode.$children$ = [];
1107
- }
1108
- parentVNode.$children$[childVNode.$index$] = childVNode;
1109
- }
1110
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1111
- var _a, _b;
1112
- let slottedNode = slotNode.nextSibling;
1113
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1114
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1115
- do {
1116
- if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1117
- slottedNode["s-sn"] = slotName;
1118
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1119
- }
1120
- slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1121
- } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1122
- };
1123
- var findCorrespondingNode = (node, type) => {
1124
- let sibling = node;
1125
- do {
1126
- sibling = sibling.nextSibling;
1127
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1128
- return sibling;
1129
- };
1130
- var createSupportsRuleRe = (selector) => {
1131
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1132
- return new RegExp(
1133
- // First capture group: match any context before the selector that's not inside @supports selector()
1134
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
1135
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1136
- "g"
1137
- );
1138
- };
1139
- createSupportsRuleRe("::slotted");
1140
- createSupportsRuleRe(":host");
1141
- createSupportsRuleRe(":host-context");
1142
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1143
- if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1144
- propValue = deserializeProperty(propValue);
1145
- return propValue;
1146
- }
1147
- if (propValue != null && !isComplexType(propValue)) {
1148
- if (propType & 4 /* Boolean */) {
1149
- {
1150
- return propValue === "false" ? false : propValue === "" || !!propValue;
1151
- }
1152
- }
1153
- if (propType & 2 /* Number */) {
1154
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1155
- }
1156
- if (propType & 1 /* String */) {
1157
- return String(propValue);
1158
- }
1159
- return propValue;
1160
- }
1161
- return propValue;
1162
- };
1163
- var emitEvent = (elm, name, opts) => {
1164
- const ev = plt.ce(name, opts);
1165
- elm.dispatchEvent(ev);
1166
- return ev;
1167
- };
1168
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1169
- if (oldValue === newValue) {
1170
- return;
1171
- }
1172
- let isProp = isMemberInElement(elm, memberName);
1173
- let ln = memberName.toLowerCase();
1174
- if (memberName === "class") {
1175
- const classList = elm.classList;
1176
- const oldClasses = parseClassList(oldValue);
1177
- let newClasses = parseClassList(newValue);
1178
- if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1179
- const scopeId2 = elm["s-sc"] || elm["s-si"];
1180
- newClasses.push(scopeId2);
1181
- oldClasses.forEach((c) => {
1182
- if (c.startsWith(scopeId2)) newClasses.push(c);
1183
- });
1184
- newClasses = [...new Set(newClasses)].filter((c) => c);
1185
- classList.add(...newClasses);
1186
- } else {
1187
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1188
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1189
- }
1190
- } else if (memberName === "style") {
1191
- {
1192
- for (const prop in oldValue) {
1193
- if (!newValue || newValue[prop] == null) {
1194
- if (prop.includes("-")) {
1195
- elm.style.removeProperty(prop);
1196
- } else {
1197
- elm.style[prop] = "";
1198
- }
1199
- }
1200
- }
1201
- }
1202
- for (const prop in newValue) {
1203
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
1204
- if (prop.includes("-")) {
1205
- elm.style.setProperty(prop, newValue[prop]);
1206
- } else {
1207
- elm.style[prop] = newValue[prop];
1208
- }
1209
- }
1210
- }
1211
- } else if (memberName === "key") ; else if (memberName === "ref") {
1212
- if (newValue) {
1213
- newValue(elm);
1214
- }
1215
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1216
- if (memberName[2] === "-") {
1217
- memberName = memberName.slice(3);
1218
- } else if (isMemberInElement(win, ln)) {
1219
- memberName = ln.slice(2);
1220
- } else {
1221
- memberName = ln[2] + memberName.slice(3);
1222
- }
1223
- if (oldValue || newValue) {
1224
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1225
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1226
- if (oldValue) {
1227
- plt.rel(elm, memberName, oldValue, capture);
1228
- }
1229
- if (newValue) {
1230
- plt.ael(elm, memberName, newValue, capture);
1231
- }
1232
- }
1233
- } else {
1234
- const isComplex = isComplexType(newValue);
1235
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
1236
- try {
1237
- if (!elm.tagName.includes("-")) {
1238
- const n = newValue == null ? "" : newValue;
1239
- if (memberName === "list") {
1240
- isProp = false;
1241
- } else if (oldValue == null || elm[memberName] != n) {
1242
- if (typeof elm.__lookupSetter__(memberName) === "function") {
1243
- elm[memberName] = n;
1244
- } else {
1245
- elm.setAttribute(memberName, n);
1246
- }
1247
- }
1248
- } else if (elm[memberName] !== newValue) {
1249
- elm[memberName] = newValue;
1250
- }
1251
- } catch (e) {
1252
- }
1253
- }
1254
- let xlink = false;
1255
- {
1256
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1257
- memberName = ln;
1258
- xlink = true;
1259
- }
1260
- }
1261
- if (newValue == null || newValue === false) {
1262
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1263
- if (xlink) {
1264
- elm.removeAttributeNS(XLINK_NS, memberName);
1265
- } else {
1266
- elm.removeAttribute(memberName);
1267
- }
1268
- }
1269
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1270
- newValue = newValue === true ? "" : newValue;
1271
- if (xlink) {
1272
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
1273
- } else {
1274
- elm.setAttribute(memberName, newValue);
1275
- }
1276
- }
1277
- }
1278
- };
1279
- var parseClassListRegex = /\s/;
1280
- var parseClassList = (value) => {
1281
- if (typeof value === "object" && value && "baseVal" in value) {
1282
- value = value.baseVal;
1283
- }
1284
- if (!value || typeof value !== "string") {
1285
- return [];
1286
- }
1287
- return value.split(parseClassListRegex);
1288
- };
1289
- var CAPTURE_EVENT_SUFFIX = "Capture";
1290
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1291
-
1292
- // src/runtime/vdom/update-element.ts
1293
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1294
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1295
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1296
- const newVnodeAttrs = newVnode.$attrs$ || {};
1297
- {
1298
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1299
- if (!(memberName in newVnodeAttrs)) {
1300
- setAccessor(
1301
- elm,
1302
- memberName,
1303
- oldVnodeAttrs[memberName],
1304
- void 0,
1305
- isSvgMode2,
1306
- newVnode.$flags$,
1307
- isInitialRender
1308
- );
1309
- }
1310
- }
1311
- }
1312
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1313
- setAccessor(
1314
- elm,
1315
- memberName,
1316
- oldVnodeAttrs[memberName],
1317
- newVnodeAttrs[memberName],
1318
- isSvgMode2,
1319
- newVnode.$flags$,
1320
- isInitialRender
1321
- );
1322
- }
1323
- };
1324
- function sortedAttrNames(attrNames) {
1325
- return attrNames.includes("ref") ? (
1326
- // we need to sort these to ensure that `'ref'` is the last attr
1327
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1328
- ) : (
1329
- // no need to sort, return the original array
1330
- attrNames
1331
- );
1332
- }
1333
-
1334
- // src/runtime/vdom/vdom-render.ts
1335
- var scopeId;
1336
- var contentRef;
1337
- var hostTagName;
1338
- var useNativeShadowDom = false;
1339
- var checkSlotFallbackVisibility = false;
1340
- var checkSlotRelocate = false;
1341
- var isSvgMode = false;
1342
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1343
- var _a;
1344
- const newVNode2 = newParentVNode.$children$[childIndex];
1345
- let i2 = 0;
1346
- let elm;
1347
- let childNode;
1348
- let oldVNode;
1349
- if (!useNativeShadowDom) {
1350
- checkSlotRelocate = true;
1351
- if (newVNode2.$tag$ === "slot") {
1352
- newVNode2.$flags$ |= newVNode2.$children$ ? (
1353
- // slot element has fallback content
1354
- // still create an element that "mocks" the slot element
1355
- 2 /* isSlotFallback */
1356
- ) : (
1357
- // slot element does not have fallback content
1358
- // create an html comment we'll use to always reference
1359
- // where actual slot content should sit next to
1360
- 1 /* isSlotReference */
1361
- );
1362
- }
1363
- }
1364
- if (newVNode2.$text$ !== null) {
1365
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1366
- } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1367
- elm = newVNode2.$elm$ = win.document.createTextNode("");
1368
- {
1369
- updateElement(null, newVNode2, isSvgMode);
1370
- }
1371
- } else {
1372
- if (!isSvgMode) {
1373
- isSvgMode = newVNode2.$tag$ === "svg";
1374
- }
1375
- if (!win.document) {
1376
- throw new Error(
1377
- "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."
1378
- );
1379
- }
1380
- elm = newVNode2.$elm$ = win.document.createElementNS(
1381
- isSvgMode ? SVG_NS : HTML_NS,
1382
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1383
- ) ;
1384
- if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1385
- isSvgMode = false;
1386
- }
1387
- {
1388
- updateElement(null, newVNode2, isSvgMode);
1389
- }
1390
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
1391
- elm.classList.add(elm["s-si"] = scopeId);
1392
- }
1393
- if (newVNode2.$children$) {
1394
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1395
- childNode = createElm(oldParentVNode, newVNode2, i2);
1396
- if (childNode) {
1397
- elm.appendChild(childNode);
1398
- }
1399
- }
1400
- }
1401
- {
1402
- if (newVNode2.$tag$ === "svg") {
1403
- isSvgMode = false;
1404
- } else if (elm.tagName === "foreignObject") {
1405
- isSvgMode = true;
1406
- }
1407
- }
1408
- }
1409
- elm["s-hn"] = hostTagName;
1410
- {
1411
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1412
- elm["s-sr"] = true;
1413
- elm["s-cr"] = contentRef;
1414
- elm["s-sn"] = newVNode2.$name$ || "";
1415
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1416
- patchSlotNode(elm);
1417
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1418
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1419
- {
1420
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
1421
- }
1422
- }
1423
- {
1424
- addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
1425
- }
1426
- }
1427
- }
1428
- return elm;
1429
- };
1430
- var putBackInOriginalLocation = (parentElm, recursive) => {
1431
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1432
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1433
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1434
- const childNode = oldSlotChildNodes[i2];
1435
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1436
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1437
- childNode["s-ol"].remove();
1438
- childNode["s-ol"] = void 0;
1439
- childNode["s-sh"] = void 0;
1440
- checkSlotRelocate = true;
1441
- }
1442
- if (recursive) {
1443
- putBackInOriginalLocation(childNode, recursive);
1444
- }
1445
- }
1446
- plt.$flags$ &= -2 /* isTmpDisconnected */;
1447
- };
1448
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1449
- let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1450
- let childNode;
1451
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1452
- containerElm = containerElm.shadowRoot;
1453
- }
1454
- for (; startIdx <= endIdx; ++startIdx) {
1455
- if (vnodes[startIdx]) {
1456
- childNode = createElm(null, parentVNode, startIdx);
1457
- if (childNode) {
1458
- vnodes[startIdx].$elm$ = childNode;
1459
- insertBefore(containerElm, childNode, referenceNode(before) );
1460
- }
1461
- }
1462
- }
1463
- };
1464
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1465
- for (let index = startIdx; index <= endIdx; ++index) {
1466
- const vnode = vnodes[index];
1467
- if (vnode) {
1468
- const elm = vnode.$elm$;
1469
- nullifyVNodeRefs(vnode);
1470
- if (elm) {
1471
- {
1472
- checkSlotFallbackVisibility = true;
1473
- if (elm["s-ol"]) {
1474
- elm["s-ol"].remove();
1475
- } else {
1476
- putBackInOriginalLocation(elm, true);
1477
- }
1478
- }
1479
- elm.remove();
1480
- }
1481
- }
1482
- }
1483
- };
1484
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1485
- let oldStartIdx = 0;
1486
- let newStartIdx = 0;
1487
- let idxInOld = 0;
1488
- let i2 = 0;
1489
- let oldEndIdx = oldCh.length - 1;
1490
- let oldStartVnode = oldCh[0];
1491
- let oldEndVnode = oldCh[oldEndIdx];
1492
- let newEndIdx = newCh.length - 1;
1493
- let newStartVnode = newCh[0];
1494
- let newEndVnode = newCh[newEndIdx];
1495
- let node;
1496
- let elmToMove;
1497
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1498
- if (oldStartVnode == null) {
1499
- oldStartVnode = oldCh[++oldStartIdx];
1500
- } else if (oldEndVnode == null) {
1501
- oldEndVnode = oldCh[--oldEndIdx];
1502
- } else if (newStartVnode == null) {
1503
- newStartVnode = newCh[++newStartIdx];
1504
- } else if (newEndVnode == null) {
1505
- newEndVnode = newCh[--newEndIdx];
1506
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1507
- patch(oldStartVnode, newStartVnode, isInitialRender);
1508
- oldStartVnode = oldCh[++oldStartIdx];
1509
- newStartVnode = newCh[++newStartIdx];
1510
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1511
- patch(oldEndVnode, newEndVnode, isInitialRender);
1512
- oldEndVnode = oldCh[--oldEndIdx];
1513
- newEndVnode = newCh[--newEndIdx];
1514
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1515
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1516
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1517
- }
1518
- patch(oldStartVnode, newEndVnode, isInitialRender);
1519
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1520
- oldStartVnode = oldCh[++oldStartIdx];
1521
- newEndVnode = newCh[--newEndIdx];
1522
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1523
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1524
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1525
- }
1526
- patch(oldEndVnode, newStartVnode, isInitialRender);
1527
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1528
- oldEndVnode = oldCh[--oldEndIdx];
1529
- newStartVnode = newCh[++newStartIdx];
1530
- } else {
1531
- idxInOld = -1;
1532
- {
1533
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1534
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1535
- idxInOld = i2;
1536
- break;
1537
- }
1538
- }
1539
- }
1540
- if (idxInOld >= 0) {
1541
- elmToMove = oldCh[idxInOld];
1542
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1543
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1544
- } else {
1545
- patch(elmToMove, newStartVnode, isInitialRender);
1546
- oldCh[idxInOld] = void 0;
1547
- node = elmToMove.$elm$;
1548
- }
1549
- newStartVnode = newCh[++newStartIdx];
1550
- } else {
1551
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1552
- newStartVnode = newCh[++newStartIdx];
1553
- }
1554
- if (node) {
1555
- {
1556
- insertBefore(
1557
- referenceNode(oldStartVnode.$elm$).parentNode,
1558
- node,
1559
- referenceNode(oldStartVnode.$elm$)
1560
- );
1561
- }
1562
- }
1563
- }
1564
- }
1565
- if (oldStartIdx > oldEndIdx) {
1566
- addVnodes(
1567
- parentElm,
1568
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1569
- newVNode2,
1570
- newCh,
1571
- newStartIdx,
1572
- newEndIdx
1573
- );
1574
- } else if (newStartIdx > newEndIdx) {
1575
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1576
- }
1577
- };
1578
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1579
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1580
- if (leftVNode.$tag$ === "slot") {
1581
- return leftVNode.$name$ === rightVNode.$name$;
1582
- }
1583
- if (!isInitialRender) {
1584
- return leftVNode.$key$ === rightVNode.$key$;
1585
- }
1586
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1587
- leftVNode.$key$ = rightVNode.$key$;
1588
- }
1589
- return true;
1590
- }
1591
- return false;
1592
- };
1593
- var referenceNode = (node) => node && node["s-ol"] || node;
1594
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1595
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1596
- const oldChildren = oldVNode.$children$;
1597
- const newChildren = newVNode2.$children$;
1598
- const tag = newVNode2.$tag$;
1599
- const text = newVNode2.$text$;
1600
- let defaultHolder;
1601
- if (text === null) {
1602
- {
1603
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1604
- }
1605
- {
1606
- updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1607
- }
1608
- if (oldChildren !== null && newChildren !== null) {
1609
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1610
- } else if (newChildren !== null) {
1611
- if (oldVNode.$text$ !== null) {
1612
- elm.textContent = "";
1613
- }
1614
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1615
- } else if (
1616
- // don't do this on initial render as it can cause non-hydrated content to be removed
1617
- !isInitialRender && BUILD.updatable && oldChildren !== null
1618
- ) {
1619
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1620
- } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1621
- newVNode2.$children$ = oldChildren;
1622
- }
1623
- if (isSvgMode && tag === "svg") {
1624
- isSvgMode = false;
1625
- }
1626
- } else if ((defaultHolder = elm["s-cr"])) {
1627
- defaultHolder.parentNode.textContent = text;
1628
- } else if (oldVNode.$text$ !== text) {
1629
- elm.data = text;
1630
- }
1631
- };
1632
- var relocateNodes = [];
1633
- var markSlotContentForRelocation = (elm) => {
1634
- let node;
1635
- let hostContentNodes;
1636
- let j;
1637
- const children = elm.__childNodes || elm.childNodes;
1638
- for (const childNode of children) {
1639
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1640
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1641
- const slotName = childNode["s-sn"];
1642
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1643
- node = hostContentNodes[j];
1644
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1645
- if (isNodeLocatedInSlot(node, slotName)) {
1646
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1647
- checkSlotFallbackVisibility = true;
1648
- node["s-sn"] = node["s-sn"] || slotName;
1649
- if (relocateNodeData) {
1650
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1651
- relocateNodeData.$slotRefNode$ = childNode;
1652
- } else {
1653
- node["s-sh"] = childNode["s-hn"];
1654
- relocateNodes.push({
1655
- $slotRefNode$: childNode,
1656
- $nodeToRelocate$: node
1657
- });
1658
- }
1659
- if (node["s-sr"]) {
1660
- relocateNodes.map((relocateNode) => {
1661
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1662
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1663
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1664
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1665
- }
1666
- }
1667
- });
1668
- }
1669
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1670
- relocateNodes.push({
1671
- $nodeToRelocate$: node
1672
- });
1673
- }
1674
- }
1675
- }
1676
- }
1677
- if (childNode.nodeType === 1 /* ElementNode */) {
1678
- markSlotContentForRelocation(childNode);
1679
- }
1680
- }
1681
- };
1682
- var nullifyVNodeRefs = (vNode) => {
1683
- {
1684
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1685
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1686
- }
1687
- };
1688
- var insertBefore = (parent, newNode, reference) => {
1689
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
1690
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1691
- }
1692
- {
1693
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1694
- }
1695
- };
1696
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
1697
- var _a, _b;
1698
- let scopeId2;
1699
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
1700
- const scopeName = slotNode["s-sn"];
1701
- const hostName = slotNode["s-hn"];
1702
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
1703
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
1704
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
1705
- let found = false;
1706
- while (child) {
1707
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
1708
- found = true;
1709
- break;
1710
- }
1711
- child = child.nextSibling;
1712
- }
1713
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
1714
- }
1715
- }
1716
- }
1717
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1718
- var _a, _b, _c, _d;
1719
- const hostElm = hostRef.$hostElement$;
1720
- const cmpMeta = hostRef.$cmpMeta$;
1721
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1722
- const isHostElement = isHost(renderFnResults);
1723
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1724
- hostTagName = hostElm.tagName;
1725
- if (cmpMeta.$attrsToReflect$) {
1726
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1727
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1728
- {
1729
- rootVnode.$attrs$[attribute] = hostElm[propName];
1730
- }
1731
- });
1732
- }
1733
- if (isInitialLoad && rootVnode.$attrs$) {
1734
- for (const key of Object.keys(rootVnode.$attrs$)) {
1735
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1736
- rootVnode.$attrs$[key] = hostElm[key];
1737
- }
1738
- }
1739
- }
1740
- rootVnode.$tag$ = null;
1741
- rootVnode.$flags$ |= 4 /* isHost */;
1742
- hostRef.$vnode$ = rootVnode;
1743
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1744
- {
1745
- scopeId = hostElm["s-sc"];
1746
- }
1747
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1748
- {
1749
- contentRef = hostElm["s-cr"];
1750
- checkSlotFallbackVisibility = false;
1751
- }
1752
- patch(oldVNode, rootVnode, isInitialLoad);
1753
- {
1754
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1755
- if (checkSlotRelocate) {
1756
- markSlotContentForRelocation(rootVnode.$elm$);
1757
- for (const relocateData of relocateNodes) {
1758
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1759
- if (!nodeToRelocate["s-ol"] && win.document) {
1760
- const orgLocationNode = win.document.createTextNode("");
1761
- orgLocationNode["s-nr"] = nodeToRelocate;
1762
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1763
- }
1764
- }
1765
- for (const relocateData of relocateNodes) {
1766
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1767
- const slotRefNode = relocateData.$slotRefNode$;
1768
- if (slotRefNode) {
1769
- const parentNodeRef = slotRefNode.parentNode;
1770
- let insertBeforeNode = slotRefNode.nextSibling;
1771
- {
1772
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1773
- while (orgLocationNode) {
1774
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1775
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1776
- refNode = refNode.nextSibling;
1777
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1778
- refNode = refNode == null ? void 0 : refNode.nextSibling;
1779
- }
1780
- if (!refNode || !refNode["s-nr"]) {
1781
- insertBeforeNode = refNode;
1782
- break;
1783
- }
1784
- }
1785
- orgLocationNode = orgLocationNode.previousSibling;
1786
- }
1787
- }
1788
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1789
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1790
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1791
- if (nodeToRelocate !== insertBeforeNode) {
1792
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1793
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1794
- }
1795
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1796
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1797
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1798
- }
1799
- }
1800
- }
1801
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1802
- } else {
1803
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1804
- if (isInitialLoad) {
1805
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1806
- }
1807
- nodeToRelocate.hidden = true;
1808
- }
1809
- }
1810
- }
1811
- }
1812
- if (checkSlotFallbackVisibility) {
1813
- updateFallbackSlotVisibility(rootVnode.$elm$);
1814
- }
1815
- plt.$flags$ &= -2 /* isTmpDisconnected */;
1816
- relocateNodes.length = 0;
1817
- }
1818
- contentRef = void 0;
1819
- };
1820
-
1821
- // src/runtime/update-component.ts
1822
- var attachToAncestor = (hostRef, ancestorComponent) => {
1823
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1824
- const index = ancestorComponent["s-p"].push(
1825
- new Promise(
1826
- (r) => hostRef.$onRenderResolve$ = () => {
1827
- ancestorComponent["s-p"].splice(index - 1, 1);
1828
- r();
1829
- }
1830
- )
1831
- );
1832
- }
1833
- };
1834
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1835
- {
1836
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1837
- }
1838
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1839
- hostRef.$flags$ |= 512 /* needsRerender */;
1840
- return;
1841
- }
1842
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1843
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1844
- if (isInitialLoad) {
1845
- queueMicrotask(() => {
1846
- dispatch();
1847
- });
1848
- return;
1849
- }
1850
- return writeTask(dispatch) ;
1851
- };
1852
- var dispatchHooks = (hostRef, isInitialLoad) => {
1853
- const elm = hostRef.$hostElement$;
1854
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1855
- const instance = hostRef.$lazyInstance$ ;
1856
- if (!instance) {
1857
- throw new Error(
1858
- `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`
1859
- );
1860
- }
1861
- let maybePromise;
1862
- if (isInitialLoad) {
1863
- {
1864
- {
1865
- hostRef.$flags$ |= 256 /* isListenReady */;
1866
- if (hostRef.$queuedListeners$) {
1867
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1868
- hostRef.$queuedListeners$ = void 0;
1869
- }
1870
- }
1871
- if (hostRef.$fetchedCbList$.length) {
1872
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1873
- }
1874
- }
1875
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1876
- } else {
1877
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1878
- }
1879
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1880
- endSchedule();
1881
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1882
- };
1883
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1884
- console.error(err2);
1885
- fn();
1886
- }) : fn();
1887
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1888
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
1889
- var _a;
1890
- const elm = hostRef.$hostElement$;
1891
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1892
- const rc = elm["s-rc"];
1893
- if (isInitialLoad) {
1894
- attachStyles(hostRef);
1895
- }
1896
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1897
- {
1898
- callRender(hostRef, instance, elm, isInitialLoad);
1899
- }
1900
- if (rc) {
1901
- rc.map((cb) => cb());
1902
- elm["s-rc"] = void 0;
1903
- }
1904
- endRender();
1905
- endUpdate();
1906
- {
1907
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1908
- const postUpdate = () => postUpdateComponent(hostRef);
1909
- if (childrenPromises.length === 0) {
1910
- postUpdate();
1911
- } else {
1912
- Promise.all(childrenPromises).then(postUpdate);
1913
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1914
- childrenPromises.length = 0;
1915
- }
1916
- }
1917
- };
1918
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1919
- try {
1920
- instance = instance.render() ;
1921
- {
1922
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1923
- }
1924
- {
1925
- hostRef.$flags$ |= 2 /* hasRendered */;
1926
- }
1927
- {
1928
- {
1929
- {
1930
- renderVdom(hostRef, instance, isInitialLoad);
1931
- }
1932
- }
1933
- }
1934
- } catch (e) {
1935
- consoleError(e, hostRef.$hostElement$);
1936
- }
1937
- return null;
1938
- };
1939
- var postUpdateComponent = (hostRef) => {
1940
- const tagName = hostRef.$cmpMeta$.$tagName$;
1941
- const elm = hostRef.$hostElement$;
1942
- const endPostUpdate = createTime("postUpdate", tagName);
1943
- const instance = hostRef.$lazyInstance$ ;
1944
- const ancestorComponent = hostRef.$ancestorComponent$;
1945
- safeCall(instance, "componentDidRender", void 0, elm);
1946
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1947
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1948
- {
1949
- addHydratedFlag(elm);
1950
- }
1951
- safeCall(instance, "componentDidLoad", void 0, elm);
1952
- endPostUpdate();
1953
- {
1954
- hostRef.$onReadyResolve$(elm);
1955
- if (!ancestorComponent) {
1956
- appDidLoad();
1957
- }
1958
- }
1959
- } else {
1960
- safeCall(instance, "componentDidUpdate", void 0, elm);
1961
- endPostUpdate();
1962
- }
1963
- {
1964
- hostRef.$onInstanceResolve$(elm);
1965
- }
1966
- {
1967
- if (hostRef.$onRenderResolve$) {
1968
- hostRef.$onRenderResolve$();
1969
- hostRef.$onRenderResolve$ = void 0;
1970
- }
1971
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1972
- nextTick(() => scheduleUpdate(hostRef, false));
1973
- }
1974
- hostRef.$flags$ &= -517;
1975
- }
1976
- };
1977
- var appDidLoad = (who) => {
1978
- var _a;
1979
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1980
- {
1981
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
1982
- plt.$orgLocNodes$.clear();
1983
- }
1984
- }
1985
- };
1986
- var safeCall = (instance, method, arg, elm) => {
1987
- if (instance && instance[method]) {
1988
- try {
1989
- return instance[method](arg);
1990
- } catch (e) {
1991
- consoleError(e, elm);
1992
- }
1993
- }
1994
- return void 0;
1995
- };
1996
- var addHydratedFlag = (elm) => {
1997
- var _b;
1998
- return elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") ;
1999
- };
2000
-
2001
- // src/runtime/set-value.ts
2002
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2003
- var setValue = (ref, propName, newVal, cmpMeta) => {
2004
- const hostRef = getHostRef(ref);
2005
- if (!hostRef) {
2006
- return;
2007
- }
2008
- if (!hostRef) {
2009
- throw new Error(
2010
- `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).`
2011
- );
2012
- }
2013
- const elm = hostRef.$hostElement$ ;
2014
- const oldVal = hostRef.$instanceValues$.get(propName);
2015
- const flags = hostRef.$flags$;
2016
- const instance = hostRef.$lazyInstance$ ;
2017
- newVal = parsePropertyValue(
2018
- newVal,
2019
- cmpMeta.$members$[propName][0]);
2020
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2021
- const didValueChange = newVal !== oldVal && !areBothNaN;
2022
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2023
- hostRef.$instanceValues$.set(propName, newVal);
2024
- if (instance) {
2025
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
2026
- const watchMethods = cmpMeta.$watchers$[propName];
2027
- if (watchMethods) {
2028
- watchMethods.map((watchMethodName) => {
2029
- try {
2030
- instance[watchMethodName](newVal, oldVal, propName);
2031
- } catch (e) {
2032
- consoleError(e, elm);
2033
- }
2034
- });
2035
- }
2036
- }
2037
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2038
- if (instance.componentShouldUpdate) {
2039
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2040
- return;
2041
- }
2042
- }
2043
- scheduleUpdate(hostRef, false);
2044
- }
2045
- }
2046
- }
2047
- };
2048
-
2049
- // src/runtime/proxy-component.ts
2050
- var proxyComponent = (Cstr, cmpMeta, flags) => {
2051
- var _a, _b;
2052
- const prototype = Cstr.prototype;
2053
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2054
- {
2055
- if (Cstr.watchers && !cmpMeta.$watchers$) {
2056
- cmpMeta.$watchers$ = Cstr.watchers;
2057
- }
2058
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2059
- cmpMeta.$deserializers$ = Cstr.deserializers;
2060
- }
2061
- if (Cstr.serializers && !cmpMeta.$serializers$) {
2062
- cmpMeta.$serializers$ = Cstr.serializers;
2063
- }
2064
- }
2065
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2066
- members.map(([memberName, [memberFlags]]) => {
2067
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2068
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2069
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2070
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2071
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
2072
- Object.defineProperty(prototype, memberName, {
2073
- get() {
2074
- {
2075
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2076
- return getValue(this, memberName);
2077
- }
2078
- const ref = getHostRef(this);
2079
- const instance = ref ? ref.$lazyInstance$ : prototype;
2080
- if (!instance) return;
2081
- return instance[memberName];
2082
- }
2083
- },
2084
- configurable: true,
2085
- enumerable: true
2086
- });
2087
- }
2088
- Object.defineProperty(prototype, memberName, {
2089
- set(newValue) {
2090
- const ref = getHostRef(this);
2091
- if (!ref) {
2092
- return;
2093
- }
2094
- if (origSetter) {
2095
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2096
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2097
- newValue = ref.$instanceValues$.get(memberName);
2098
- }
2099
- origSetter.apply(this, [
2100
- parsePropertyValue(
2101
- newValue,
2102
- memberFlags)
2103
- ]);
2104
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2105
- setValue(this, memberName, newValue, cmpMeta);
2106
- return;
2107
- }
2108
- {
2109
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2110
- setValue(this, memberName, newValue, cmpMeta);
2111
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2112
- ref.$fetchedCbList$.push(() => {
2113
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2114
- ref.$lazyInstance$[memberName] = newValue;
2115
- }
2116
- });
2117
- }
2118
- return;
2119
- }
2120
- const setterSetVal = () => {
2121
- const currentValue = ref.$lazyInstance$[memberName];
2122
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2123
- ref.$instanceValues$.set(memberName, currentValue);
2124
- }
2125
- ref.$lazyInstance$[memberName] = parsePropertyValue(
2126
- newValue,
2127
- memberFlags);
2128
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2129
- };
2130
- if (ref.$lazyInstance$) {
2131
- setterSetVal();
2132
- } else {
2133
- ref.$fetchedCbList$.push(() => {
2134
- setterSetVal();
2135
- });
2136
- }
2137
- }
2138
- }
2139
- });
2140
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2141
- Object.defineProperty(prototype, memberName, {
2142
- value(...args) {
2143
- var _a2;
2144
- const ref = getHostRef(this);
2145
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2146
- var _a3;
2147
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2148
- });
2149
- }
2150
- });
2151
- }
2152
- });
2153
- if ((flags & 1 /* isElementConstructor */)) {
2154
- const attrNameToPropName = /* @__PURE__ */ new Map();
2155
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2156
- plt.jmp(() => {
2157
- var _a2;
2158
- const propName = attrNameToPropName.get(attrName);
2159
- const hostRef = getHostRef(this);
2160
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2161
- newValue = this[propName];
2162
- delete this[propName];
2163
- }
2164
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2165
- this[propName] == newValue) {
2166
- return;
2167
- } else if (propName == null) {
2168
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2169
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2170
- const instance = hostRef.$lazyInstance$ ;
2171
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2172
- entry == null ? void 0 : entry.forEach((callbackName) => {
2173
- if (instance[callbackName] != null) {
2174
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2175
- }
2176
- });
2177
- }
2178
- return;
2179
- }
2180
- const propFlags = members.find(([m]) => m === propName);
2181
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
2182
- newValue = newValue === null || newValue === "false" ? false : true;
2183
- }
2184
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2185
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2186
- this[propName] = newValue;
2187
- }
2188
- });
2189
- };
2190
- Cstr.observedAttributes = Array.from(
2191
- /* @__PURE__ */ new Set([
2192
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2193
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2194
- var _a2;
2195
- const attrName = m[1] || propName;
2196
- attrNameToPropName.set(attrName, propName);
2197
- if (m[0] & 512 /* ReflectAttr */) {
2198
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2199
- }
2200
- return attrName;
2201
- })
2202
- ])
2203
- );
2204
- }
2205
- }
2206
- return Cstr;
2207
- };
2208
-
2209
- // src/runtime/initialize-component.ts
2210
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2211
- let Cstr;
2212
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2213
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2214
- const bundleId = cmpMeta.$lazyBundleId$;
2215
- if (bundleId) {
2216
- const CstrImport = loadModule(cmpMeta, hostRef);
2217
- if (CstrImport && "then" in CstrImport) {
2218
- const endLoad = uniqueTime();
2219
- Cstr = await CstrImport;
2220
- endLoad();
2221
- } else {
2222
- Cstr = CstrImport;
2223
- }
2224
- if (!Cstr) {
2225
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2226
- }
2227
- if (!Cstr.isProxied) {
2228
- {
2229
- cmpMeta.$watchers$ = Cstr.watchers;
2230
- cmpMeta.$serializers$ = Cstr.serializers;
2231
- cmpMeta.$deserializers$ = Cstr.deserializers;
2232
- }
2233
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2234
- Cstr.isProxied = true;
2235
- }
2236
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2237
- {
2238
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2239
- }
2240
- try {
2241
- new Cstr(hostRef);
2242
- } catch (e) {
2243
- consoleError(e, elm);
2244
- }
2245
- {
2246
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
2247
- }
2248
- {
2249
- hostRef.$flags$ |= 128 /* isWatchReady */;
2250
- }
2251
- endNewInstance();
2252
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2253
- } else {
2254
- Cstr = elm.constructor;
2255
- const cmpTag = elm.localName;
2256
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2257
- }
2258
- if (Cstr && Cstr.style) {
2259
- let style;
2260
- if (typeof Cstr.style === "string") {
2261
- style = Cstr.style;
2262
- }
2263
- const scopeId2 = getScopeId(cmpMeta);
2264
- if (!styles.has(scopeId2)) {
2265
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2266
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2267
- endRegisterStyles();
2268
- }
2269
- }
2270
- }
2271
- const ancestorComponent = hostRef.$ancestorComponent$;
2272
- const schedule = () => scheduleUpdate(hostRef, true);
2273
- if (ancestorComponent && ancestorComponent["s-rc"]) {
2274
- ancestorComponent["s-rc"].push(schedule);
2275
- } else {
2276
- schedule();
2277
- }
2278
- };
2279
- var fireConnectedCallback = (instance, elm) => {
2280
- {
2281
- safeCall(instance, "connectedCallback", void 0, elm);
2282
- }
2283
- };
2284
-
2285
- // src/runtime/connected-callback.ts
2286
- var connectedCallback = (elm) => {
2287
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2288
- const hostRef = getHostRef(elm);
2289
- if (!hostRef) {
2290
- return;
2291
- }
2292
- const cmpMeta = hostRef.$cmpMeta$;
2293
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2294
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2295
- hostRef.$flags$ |= 1 /* hasConnected */;
2296
- let hostId;
2297
- {
2298
- hostId = elm.getAttribute(HYDRATE_ID);
2299
- if (hostId) {
2300
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2301
- const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2302
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2303
- } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2304
- const scopeId2 = getScopeId(cmpMeta);
2305
- elm["s-sc"] = scopeId2;
2306
- }
2307
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2308
- }
2309
- }
2310
- if (!hostId) {
2311
- if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2312
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2313
- setContentReference(elm);
2314
- }
2315
- }
2316
- {
2317
- let ancestorComponent = elm;
2318
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2319
- if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2320
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2321
- break;
2322
- }
2323
- }
2324
- }
2325
- if (cmpMeta.$members$) {
2326
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2327
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
2328
- const value = elm[memberName];
2329
- delete elm[memberName];
2330
- elm[memberName] = value;
2331
- }
2332
- });
2333
- }
2334
- {
2335
- initializeComponent(elm, hostRef, cmpMeta);
2336
- }
2337
- } else {
2338
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2339
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2340
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2341
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2342
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2343
- }
2344
- }
2345
- endConnected();
2346
- }
2347
- };
2348
- var setContentReference = (elm) => {
2349
- if (!win.document) {
2350
- return;
2351
- }
2352
- const contentRefElm = elm["s-cr"] = win.document.createComment(
2353
- ""
2354
- );
2355
- contentRefElm["s-cn"] = true;
2356
- insertBefore(elm, contentRefElm, elm.firstChild);
2357
- };
2358
- var disconnectInstance = (instance, elm) => {
2359
- {
2360
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2361
- }
2362
- };
2363
- var disconnectedCallback = async (elm) => {
2364
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2365
- const hostRef = getHostRef(elm);
2366
- {
2367
- if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2368
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2369
- hostRef.$rmListeners$ = void 0;
2370
- }
2371
- }
2372
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2373
- disconnectInstance(hostRef.$lazyInstance$, elm);
2374
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2375
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2376
- }
2377
- }
2378
- if (rootAppliedStyles.has(elm)) {
2379
- rootAppliedStyles.delete(elm);
2380
- }
2381
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2382
- rootAppliedStyles.delete(elm.shadowRoot);
2383
- }
2384
- };
2385
-
2386
- // src/runtime/bootstrap-lazy.ts
2387
- var bootstrapLazy = (lazyBundles, options = {}) => {
2388
- var _a;
2389
- if (!win.document) {
2390
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2391
- return;
2392
- }
2393
- const endBootstrap = createTime();
2394
- const cmpTags = [];
2395
- const exclude = options.exclude || [];
2396
- const customElements2 = win.customElements;
2397
- const head = win.document.head;
2398
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2399
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2400
- const deferredConnectedCallbacks = [];
2401
- let appLoadFallback;
2402
- let isBootstrapping = true;
2403
- Object.assign(plt, options);
2404
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2405
- {
2406
- plt.$flags$ |= 2 /* appLoaded */;
2407
- }
2408
- {
2409
- hydrateScopedToShadow();
2410
- }
2411
- let hasSlotRelocation = false;
2412
- lazyBundles.map((lazyBundle) => {
2413
- lazyBundle[1].map((compactMeta) => {
2414
- var _a2, _b, _c;
2415
- const cmpMeta = {
2416
- $flags$: compactMeta[0],
2417
- $tagName$: compactMeta[1],
2418
- $members$: compactMeta[2],
2419
- $listeners$: compactMeta[3]
2420
- };
2421
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2422
- hasSlotRelocation = true;
2423
- }
2424
- {
2425
- cmpMeta.$members$ = compactMeta[2];
2426
- }
2427
- {
2428
- cmpMeta.$listeners$ = compactMeta[3];
2429
- }
2430
- {
2431
- cmpMeta.$attrsToReflect$ = [];
2432
- }
2433
- {
2434
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2435
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
2436
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
2437
- }
2438
- const tagName = cmpMeta.$tagName$;
2439
- const HostElement = class extends HTMLElement {
2440
- // StencilLazyHost
2441
- constructor(self) {
2442
- super(self);
2443
- this.hasRegisteredEventListeners = false;
2444
- self = this;
2445
- registerHost(self, cmpMeta);
2446
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2447
- {
2448
- if (!self.shadowRoot) {
2449
- createShadowRoot.call(self, cmpMeta);
2450
- } else {
2451
- if (self.shadowRoot.mode !== "open") {
2452
- throw new Error(
2453
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2454
- );
2455
- }
2456
- }
2457
- }
2458
- }
2459
- }
2460
- connectedCallback() {
2461
- const hostRef = getHostRef(this);
2462
- if (!hostRef) {
2463
- return;
2464
- }
2465
- if (!this.hasRegisteredEventListeners) {
2466
- this.hasRegisteredEventListeners = true;
2467
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2468
- }
2469
- if (appLoadFallback) {
2470
- clearTimeout(appLoadFallback);
2471
- appLoadFallback = null;
2472
- }
2473
- if (isBootstrapping) {
2474
- deferredConnectedCallbacks.push(this);
2475
- } else {
2476
- plt.jmp(() => connectedCallback(this));
2477
- }
2478
- }
2479
- disconnectedCallback() {
2480
- plt.jmp(() => disconnectedCallback(this));
2481
- plt.raf(() => {
2482
- var _a3;
2483
- const hostRef = getHostRef(this);
2484
- if (!hostRef) {
2485
- return;
2486
- }
2487
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2488
- if (i2 > -1) {
2489
- deferredConnectedCallbacks.splice(i2, 1);
2490
- }
2491
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2492
- delete hostRef.$vnode$.$elm$;
2493
- }
2494
- });
2495
- }
2496
- componentOnReady() {
2497
- var _a3;
2498
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2499
- }
2500
- };
2501
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2502
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2503
- cmpTags.push(tagName);
2504
- customElements2.define(
2505
- tagName,
2506
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2507
- );
2508
- }
2509
- });
2510
- });
2511
- if (cmpTags.length > 0) {
2512
- if (hasSlotRelocation) {
2513
- dataStyles.textContent += SLOT_FB_CSS;
2514
- }
2515
- {
2516
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2517
- }
2518
- if (dataStyles.innerHTML.length) {
2519
- dataStyles.setAttribute("data-styles", "");
2520
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2521
- if (nonce != null) {
2522
- dataStyles.setAttribute("nonce", nonce);
2523
- }
2524
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2525
- }
2526
- }
2527
- isBootstrapping = false;
2528
- if (deferredConnectedCallbacks.length) {
2529
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2530
- } else {
2531
- {
2532
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2533
- }
2534
- }
2535
- endBootstrap();
2536
- };
2537
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2538
- if (listeners && win.document) {
2539
- listeners.map(([flags, name, method]) => {
2540
- const target = getHostListenerTarget(win.document, elm, flags) ;
2541
- const handler = hostListenerProxy(hostRef, method);
2542
- const opts = hostListenerOpts(flags);
2543
- plt.ael(target, name, handler, opts);
2544
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2545
- });
2546
- }
2547
- };
2548
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2549
- var _a;
2550
- try {
2551
- {
2552
- if (hostRef.$flags$ & 256 /* isListenReady */) {
2553
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2554
- } else {
2555
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2556
- }
2557
- }
2558
- } catch (e) {
2559
- consoleError(e, hostRef.$hostElement$);
2560
- }
2561
- };
2562
- var getHostListenerTarget = (doc, elm, flags) => {
2563
- if (flags & 8 /* TargetWindow */) {
2564
- return win;
2565
- }
2566
- return elm;
2567
- };
2568
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2569
- passive: (flags & 1 /* Passive */) !== 0,
2570
- capture: (flags & 2 /* Capture */) !== 0
2571
- } : (flags & 2 /* Capture */) !== 0;
2572
-
2573
- const defineCustomElements = async (win, options) => {
2574
- if (typeof window === 'undefined') return undefined;
2575
- await globalScripts();
2576
- return bootstrapLazy([["sd-button_4",[[258,"sd-guide",{"type":[1],"popupTitle":[1,"popup-title"],"message":[1],"guideUrl":[1,"guide-url"],"popupWidth":[2,"popup-width"],"popupShow":[32]}],[258,"sd-button",{"variant":[1],"size":[1],"color":[1],"label":[1],"disabled":[4],"type":[1],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"],"iconRight":[1,"icon-right"],"noHover":[4,"no-hover"],"buttonStyle":[16],"iconStyle":[16]}],[260,"sd-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]],[258,"sd-icon",{"name":[1],"size":[8],"color":[1],"rotate":[2],"label":[1],"iconStyle":[16]}]]],["sd-table",[[258,"sd-table",{"columns":[16],"rows":[1040],"selected":[1040],"rowKey":[1,"row-key"],"selectable":[4],"resizable":[4],"height":[2],"stickyHeader":[4,"sticky-header"],"stickyColumn":[16],"noDataLabel":[1,"no-data-label"],"pagination":[16],"bodyCellRenderer":[16],"currentPage":[32],"innerRows":[32],"innerSelected":[32],"columnWidths":[32],"scrolledLeft":[32],"scrolledRight":[32]},null,{"columns":["handleColumnsChange"],"rows":["handleRowsChange"],"selected":["handleSelectedChange"],"pagination":["handlePaginationChange"]}]]],["sd-date-box_2",[[258,"sd-date-box",{"date":[8],"disabled":[4],"selected":[4],"isStartDate":[4,"is-start-date"],"isEndDate":[4,"is-end-date"],"isToday":[4,"is-today"],"inRange":[4,"in-range"],"type":[1]}],[260,"sd-input",{"value":[1032],"label":[1],"placeholder":[1],"disabled":[4],"clearable":[4],"width":[8],"barcode":[4],"rules":[16],"autoFocus":[4,"auto-focus"],"status":[1],"inputClass":[1,"input-class"],"readonly":[4],"inputStyle":[16],"internalValue":[32],"error":[32],"focused":[32],"hovered":[32],"getNativeElement":[64]},null,{"value":["valueChanged"],"internalValue":["internalValueChanged"]}]]],["sd-select",[[260,"sd-select",{"value":[1032],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"containerStyle":[16],"triggerStyle":[16],"dropdownStyle":[16],"optionStyle":[16],"labelStyle":[16],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-date-picker",[[258,"sd-date-picker",{"date":[1],"label":[1],"selectable":[16],"disabled":[4],"isOpen":[32],"currentDate":[32],"currentYear":[32],"currentMonth":[32]}]]],["sd-date-range-picker",[[258,"sd-date-range-picker",{"date":[16],"label":[1],"selectable":[16],"maxRange":[2,"max-range"],"disabled":[4],"isOpen":[32],"dateRange":[32],"hoverDate":[32],"prevYear":[32],"prevMonth":[32]}]]],["sd-popover",[[257,"sd-popover",{"show":[1028],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"menuTitle":[513,"title"],"messages":[16],"buttons":[16],"menuClass":[1,"menu-class"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showPopover":[32],"slotContent":[32]},null,{"show":["watchShowHandler"]}]]],["sd-tag",[[257,"sd-tag",{"size":[1],"color":[1],"rounded":[4],"label":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"]}]]],["sd-checkbox",[[258,"sd-checkbox",{"checked":[8],"val":[8],"disabled":[4],"label":[1],"checkboxStyle":[16],"isChecked":[32]},null,{"checked":["watchValueHandler"]}]]],["sd-select-option",[[257,"sd-select-option",{"option":[16],"index":[2],"isSelected":[4,"is-selected"],"isFocused":[4,"is-focused"],"optionStyle":[16],"disabled":[4],"useCheckbox":[4,"use-checkbox"],"isHovered":[32],"isDisabled":[64]}]]],["sd-tooltip-portal",[[257,"sd-tooltip-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"placement":[1],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]]]],["sd-pagination_2",[[257,"sd-tooltip",{"trigger":[513],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showTooltip":[32]}],[257,"sd-pagination",{"currentPage":[2,"current-page"],"lastPage":[2,"last-page"],"simple":[4]},null,{"currentPage":["onPropChange"],"lastPage":["onPropChange"]}]]]], options);
2577
- };
2578
-
2579
- (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a);}})();
2580
-
2581
- export { defineCustomElements };
2582
- //# sourceMappingURL=index-dBol_ZO8.js.map
2583
-
2584
- //# sourceMappingURL=index-dBol_ZO8.js.map