@ptcwebops/ptcw-design 6.3.35-beta → 6.3.35

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 (468) hide show
  1. package/dist/cjs/component-1b8ad4d2.js +1819 -0
  2. package/dist/cjs/{component-6a178a16.js → component-35540bfb.js} +1494 -3305
  3. package/dist/cjs/embedded-form.cjs.entry.js +1 -1
  4. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  5. package/dist/cjs/global-418c14b4.js +33 -0
  6. package/dist/cjs/icon-asset.cjs.entry.js +1 -1
  7. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  8. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +3 -1
  10. package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
  11. package/dist/cjs/ptc-button_5.cjs.entry.js +542 -0
  12. package/dist/cjs/ptc-card_2.cjs.entry.js +10 -7
  13. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +2 -6
  14. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +24 -24
  15. package/dist/cjs/ptc-countdown.cjs.entry.js +7 -10
  16. package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
  17. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +1 -1
  19. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +40 -9
  21. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +18 -3
  22. package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +39 -803
  23. package/dist/cjs/ptc-info-tile.cjs.entry.js +2 -1
  24. package/dist/cjs/ptc-jumbotron.cjs.entry.js +4 -1
  25. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +674 -0
  26. package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +28 -3
  28. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
  30. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  31. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  32. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  34. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-product-list.cjs.entry.js +4 -0
  36. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +38 -6
  37. package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +42 -38
  41. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +9 -0
  42. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +15 -0
  43. package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +42 -8
  44. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  45. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  46. package/dist/cjs/ptc-white-paper.cjs.entry.js +11 -10
  47. package/dist/cjs/ptcw-design.cjs.js +3 -1
  48. package/dist/cjs/validation-messages-f1d373e7.js +172 -0
  49. package/dist/collection/collection-manifest.json +2 -2
  50. package/dist/collection/components/icon-asset/icon-asset.js +1 -1
  51. package/dist/collection/components/icon-asset/media/{designer-v6.0.6.svg → designer-v6.0.7.svg} +17 -30
  52. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
  53. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +1 -0
  54. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
  55. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  56. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
  57. package/dist/collection/components/ptc-button/ptc-button.css +100 -0
  58. package/dist/collection/components/ptc-button/ptc-button.js +24 -4
  59. package/dist/collection/components/ptc-card/ptc-card.js +21 -2
  60. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
  61. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +1 -5
  62. package/dist/collection/components/ptc-countdown/ptc-countdown.js +7 -10
  63. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
  64. package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +1 -1
  65. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
  66. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +12 -0
  67. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +29 -3
  68. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +34 -13
  69. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +17 -2
  70. package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +20 -1
  71. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
  72. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +3 -0
  73. package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
  74. package/dist/collection/components/ptc-modal/ptc-modal.js +25 -25
  75. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +7 -0
  76. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +78 -2
  77. package/dist/collection/components/ptc-para/ptc-para.css +0 -3
  78. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  79. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
  80. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +109 -0
  81. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +6 -4
  82. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
  83. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
  84. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +2 -2
  85. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
  86. package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
  87. package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
  88. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
  89. package/dist/collection/components/ptc-product-list/ptc-product-list.js +4 -0
  90. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +8 -0
  91. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +37 -5
  92. package/dist/collection/components/ptc-quote/ptc-quote.js +1 -1
  93. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
  94. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
  95. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +63 -38
  96. package/dist/collection/components/ptc-select/ptc-select.js +8 -4
  97. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +9 -0
  98. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +15 -0
  99. package/dist/collection/components/ptc-textfield/ptc-textfield.css +69 -4
  100. package/dist/collection/components/ptc-textfield/ptc-textfield.js +77 -37
  101. package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +6 -0
  102. package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +1 -1
  103. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +15 -0
  104. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +67 -9
  105. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +8 -3
  106. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
  107. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
  108. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
  109. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +10 -9
  110. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +1 -1
  111. package/dist/collection/global/global.js +7 -0
  112. package/dist/collection/stories/Breadcrumb2.stories.js +62 -0
  113. package/dist/collection/stories/BrightcovVideo.stories.js +21 -0
  114. package/dist/collection/stories/Card.stories.js +3 -148
  115. package/dist/collection/stories/Checkbox.stories.js +21 -53
  116. package/dist/collection/stories/CheckboxGroup.stories.js +27 -0
  117. package/dist/collection/stories/CloseIcon.stories.js +10 -0
  118. package/dist/collection/stories/CollapseList.stories.js +14 -0
  119. package/dist/collection/stories/Countdown.stories.js +10 -0
  120. package/dist/collection/stories/DataLookup.stories.js +21 -0
  121. package/dist/collection/stories/EllipsisDropdown.stories.js +14 -0
  122. package/dist/collection/stories/Hero.stories.js +35 -120
  123. package/dist/collection/stories/HeroFooterCTA.stories.js +21 -0
  124. package/dist/collection/stories/Jumbotron.stories.js +727 -0
  125. package/dist/collection/stories/Link.stories.js +25 -13
  126. package/dist/collection/stories/MinimizedFooter.stories.js +18 -0
  127. package/dist/collection/stories/MultiSelect.stories.js +10 -0
  128. package/dist/collection/stories/Paragraph.stories.js +18 -10
  129. package/dist/collection/stories/ResponsiveWrapper.stories.js +21 -0
  130. package/dist/collection/stories/ScrollButton.stories.js +14 -0
  131. package/dist/collection/stories/SearchField.stories.js +21 -0
  132. package/dist/collection/stories/Select.stories.js +27 -81
  133. package/dist/collection/stories/SocialShare.stories.js +83 -67
  134. package/dist/collection/stories/SvgBtn.stories.js +36 -0
  135. package/dist/collection/stories/TextCopyWithBackground.stories.js +100 -242
  136. package/dist/collection/stories/Textfield.stories.js +71 -28
  137. package/dist/collection/stories/TheaterVideo.stories.js +21 -0
  138. package/dist/collection/stories/Title.stories.js +28 -16
  139. package/dist/collection/stories/VideoEmbed.stories.js +10 -0
  140. package/dist/collection/stories/backToTop.stories.js +10 -0
  141. package/dist/collection/stories/backgroundVideo.stories.js +115 -0
  142. package/dist/collection/stories/jumbotronSubMenu.stories.js +14 -0
  143. package/dist/collection/stories/organisms/ptc/Academic Form/preview.stories.js +22 -0
  144. package/dist/collection/stories/organisms/ptc/All Products/preview.stories.js +1616 -0
  145. package/dist/collection/stories/organisms/ptc/Announcement/preview.stories.js +58 -0
  146. package/dist/collection/stories/organisms/ptc/Background Video/preview.stories.js +58 -0
  147. package/dist/collection/stories/organisms/ptc/Blog Author Listing/preview.stories.js +32 -0
  148. package/dist/collection/stories/organisms/ptc/Blog Content/preview.stories.js +317 -0
  149. package/dist/collection/stories/organisms/ptc/Blog Detail/preview.stories.js +500 -0
  150. package/dist/collection/stories/organisms/ptc/Blogs Listing Page/preview.stories.js +368 -0
  151. package/dist/collection/stories/organisms/ptc/Bureau New Dynamic/preview.stories.js +54 -0
  152. package/dist/collection/stories/organisms/ptc/Case Studies/preview.stories.js +243 -0
  153. package/dist/collection/stories/organisms/ptc/Case Studies Detail Page/preview.stories.js +456 -0
  154. package/dist/collection/stories/organisms/ptc/Case Studies Slider/preview.stories.js +384 -0
  155. package/dist/collection/stories/organisms/ptc/Case Studies Slider New/preview.stories.js +171 -0
  156. package/dist/collection/stories/organisms/ptc/Clq Modal Quiz/preview.stories.js +100 -0
  157. package/dist/collection/stories/organisms/ptc/Contact Free Trial Form/preview.stories.js +22 -0
  158. package/dist/collection/stories/organisms/ptc/Countdown Example/preview.stories.js +29 -0
  159. package/dist/collection/stories/organisms/ptc/E Store Build Listing/preview.stories.js +543 -0
  160. package/dist/collection/stories/organisms/ptc/E Store Build Product/preview.stories.js +427 -0
  161. package/dist/collection/stories/organisms/ptc/Eloqua Library Contact Info/preview.stories.js +168 -0
  162. package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor PCenter/preview.stories.js +60 -0
  163. package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor Recipient Id/preview.stories.js +59 -0
  164. package/dist/collection/stories/organisms/ptc/Embedded Form/preview.stories.js +23 -0
  165. package/dist/collection/stories/organisms/ptc/Embedded Form Floating/preview.stories.js +165 -0
  166. package/dist/collection/stories/organisms/ptc/Event Detail/preview.stories.js +16 -0
  167. package/dist/collection/stories/organisms/ptc/Event Jumbotron/preview.stories.js +470 -0
  168. package/dist/collection/stories/organisms/ptc/Event Podcast Slider/preview.stories.js +142 -0
  169. package/dist/collection/stories/organisms/ptc/Events Listing Cards/preview.stories.js +169 -0
  170. package/dist/collection/stories/organisms/ptc/Events Listing Cards Horizontal/preview.stories.js +169 -0
  171. package/dist/collection/stories/organisms/ptc/Featured Events Slider/preview.stories.js +165 -0
  172. package/dist/collection/stories/organisms/ptc/Featured List/preview.stories.js +16 -0
  173. package/dist/collection/stories/organisms/ptc/Filter Level Theater/preview.stories.js +18 -0
  174. package/dist/collection/stories/organisms/ptc/Five Card Value Prop/preview.stories.js +64 -0
  175. package/dist/collection/stories/organisms/ptc/Footer Form/preview.stories.js +18 -0
  176. package/dist/collection/stories/organisms/ptc/Footer V2/preview.stories.js +138 -0
  177. package/dist/collection/stories/organisms/ptc/Footer V2 Cn/preview.stories.js +146 -0
  178. package/dist/collection/stories/organisms/ptc/Form Radio Button/preview.stories.js +42 -0
  179. package/dist/collection/stories/organisms/ptc/Framed Video 16 9/preview.stories.js +31 -0
  180. package/dist/collection/stories/organisms/ptc/Homepage Image Feature/preview.stories.js +41 -0
  181. package/dist/collection/stories/organisms/ptc/Homepage Jumbotron/preview.stories.js +166 -0
  182. package/dist/collection/stories/organisms/ptc/Homepage Toggled Content/preview.stories.js +227 -0
  183. package/dist/collection/stories/organisms/ptc/Hub Of Hubs/preview.stories.js +417 -0
  184. package/dist/collection/stories/organisms/ptc/Intro/preview.stories.js +41 -0
  185. package/dist/collection/stories/organisms/ptc/Jumbotron/preview.stories.js +431 -0
  186. package/dist/collection/stories/organisms/ptc/Jumbotron With Logos/preview.stories.js +431 -0
  187. package/dist/collection/stories/organisms/ptc/Large Bulleted List/preview.stories.js +224 -0
  188. package/dist/collection/stories/organisms/ptc/Large Bulleted List V2/preview.stories.js +326 -0
  189. package/dist/collection/stories/organisms/ptc/Listing Filter/preview.stories.js +256 -0
  190. package/dist/collection/stories/organisms/ptc/Main Nav Product Solutions Tab/preview.stories.js +200 -0
  191. package/dist/collection/stories/organisms/ptc/Mathcad Start Page/preview.stories.js +100 -0
  192. package/dist/collection/stories/organisms/ptc/Media Kit Speed Bump/preview.stories.js +39 -0
  193. package/dist/collection/stories/organisms/ptc/Most Popular News/preview.stories.js +28 -0
  194. package/dist/collection/stories/organisms/ptc/Mvc Form/preview.stories.js +22 -0
  195. package/dist/collection/stories/organisms/ptc/New Buttons/preview.stories.js +125 -0
  196. package/dist/collection/stories/organisms/ptc/Partners Detail/preview.stories.js +151 -0
  197. package/dist/collection/stories/organisms/ptc/Partners Listing/preview.stories.js +394 -0
  198. package/dist/collection/stories/organisms/ptc/Pdf Portal/preview.stories.js +140 -0
  199. package/dist/collection/stories/organisms/ptc/Plm On Demand 1/preview.stories.js +205 -0
  200. package/dist/collection/stories/organisms/ptc/Plm On Demand 2/preview.stories.js +180 -0
  201. package/dist/collection/stories/organisms/ptc/Podcast List/preview.stories.js +175 -0
  202. package/dist/collection/stories/organisms/ptc/Preference Center/preview.stories.js +235 -0
  203. package/dist/collection/stories/organisms/ptc/Preference Center Exit Page/preview.stories.js +85 -0
  204. package/dist/collection/stories/organisms/ptc/Preference Center Update Email/preview.stories.js +54 -0
  205. package/dist/collection/stories/organisms/ptc/Preference Center Update Personal Info/preview.stories.js +59 -0
  206. package/dist/collection/stories/organisms/ptc/Pricing Packaging Table/preview.stories.js +399 -0
  207. package/dist/collection/stories/organisms/ptc/Pricing Packaging Table Subnav/preview.stories.js +179 -0
  208. package/dist/collection/stories/organisms/ptc/Ptc 3 Card Value Prop/preview.stories.js +46 -0
  209. package/dist/collection/stories/organisms/ptc/Ptc Bio Cards/preview.stories.js +741 -0
  210. package/dist/collection/stories/organisms/ptc/Ptc Creo Start Page/preview.stories.js +111 -0
  211. package/dist/collection/stories/organisms/ptc/Ptc Editorial/preview.stories.js +84 -0
  212. package/dist/collection/stories/organisms/ptc/Ptc Form/preview.stories.js +18 -0
  213. package/dist/collection/stories/organisms/ptc/Ptc Icon Card Slider/preview.stories.js +121 -0
  214. package/dist/collection/stories/organisms/ptc/Ptc Icon Component/preview.stories.js +185 -0
  215. package/dist/collection/stories/organisms/ptc/Ptc Icon Sprites/preview.stories.js +150 -0
  216. package/dist/collection/stories/organisms/ptc/Ptc Innovator Toggle/preview.stories.js +421 -0
  217. package/dist/collection/stories/organisms/ptc/Ptc Media Cards/preview.stories.js +133 -0
  218. package/dist/collection/stories/organisms/ptc/Ptc News Detail/preview.stories.js +142 -0
  219. package/dist/collection/stories/organisms/ptc/Ptc News Detail Alternate/preview.stories.js +140 -0
  220. package/dist/collection/stories/organisms/ptc/Ptc Offices/preview.stories.js +405 -0
  221. package/dist/collection/stories/organisms/ptc/Ptc Readmore V3/preview.stories.js +71 -0
  222. package/dist/collection/stories/organisms/ptc/Ptc Showcase Card/preview.stories.js +177 -0
  223. package/dist/collection/stories/organisms/ptc/Ptc Sticky Share Icons/preview.stories.js +184 -0
  224. package/dist/collection/stories/organisms/ptc/Ptc Subnav V1/preview.stories.js +149 -0
  225. package/dist/collection/stories/organisms/ptc/Ptc Subnav V2/preview.stories.js +91 -0
  226. package/dist/collection/stories/organisms/ptc/Ptc Text Copy With Background/preview.stories.js +226 -0
  227. package/dist/collection/stories/organisms/ptc/Ptc Title Demo/preview.stories.js +24 -0
  228. package/dist/collection/stories/organisms/ptc/Ptc Tooltip V3/preview.stories.js +85 -0
  229. package/dist/collection/stories/organisms/ptc/Ptc Two Column Two Media/preview.stories.js +126 -0
  230. package/dist/collection/stories/organisms/ptc/Read More/preview.stories.js +278 -0
  231. package/dist/collection/stories/organisms/ptc/Related Cards/preview.stories.js +107 -0
  232. package/dist/collection/stories/organisms/ptc/Resource Center/preview.stories.js +149 -0
  233. package/dist/collection/stories/organisms/ptc/Search Result/preview.stories.js +62 -0
  234. package/dist/collection/stories/organisms/ptc/Search Result News/preview.stories.js +72 -0
  235. package/dist/collection/stories/organisms/ptc/Searchbar Plm On Demand/preview.stories.js +62 -0
  236. package/dist/collection/stories/organisms/ptc/Seo Test/preview.stories.js +215 -0
  237. package/dist/collection/stories/organisms/ptc/Sequential Slider/preview.stories.js +38 -0
  238. package/dist/collection/stories/organisms/ptc/Sequential Slider Mobile/preview.stories.js +90 -0
  239. package/dist/collection/stories/organisms/ptc/Shortform Agileworx/preview.stories.js +22 -0
  240. package/dist/collection/stories/organisms/ptc/Storefront Enhanced Product Listing/preview.stories.js +132 -0
  241. package/dist/collection/stories/organisms/ptc/Success Path Details Page/preview.stories.js +236 -0
  242. package/dist/collection/stories/organisms/ptc/Three Column Text/preview.stories.js +75 -0
  243. package/dist/collection/stories/organisms/ptc/Three Up Text Cards/preview.stories.js +134 -0
  244. package/dist/collection/stories/organisms/ptc/Two Column Media/preview.stories.js +181 -0
  245. package/dist/collection/stories/organisms/ptc/Two Column With Toggle/preview.stories.js +549 -0
  246. package/dist/collection/stories/organisms/ptc/Value Led Resource/preview.stories.js +479 -0
  247. package/dist/collection/stories/organisms/ptc/Volvo Three Col/preview.stories.js +115 -0
  248. package/dist/collection/stories/organisms/ptc/Vuforia Quiz/preview.stories.js +26 -0
  249. package/dist/collection/stories/organisms/ptc/White Paper/preview.stories.js +174 -0
  250. package/dist/collection/stories/ptcLink2.stories.js +142 -0
  251. package/dist/collection/utils/fef-logger.js +23 -0
  252. package/dist/collection/utils/validation-messages.js +49 -2
  253. package/dist/custom-elements/index.d.ts +0 -6
  254. package/dist/custom-elements/index.js +574 -404
  255. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  256. package/dist/esm/blog-detail-layout.entry.js +1 -1
  257. package/dist/esm/blogs-search-section.entry.js +1 -1
  258. package/dist/esm/{component-80f298b4.js → component-8c53e377.js} +1482 -3281
  259. package/dist/esm/component-9beac35b.js +1802 -0
  260. package/dist/esm/embedded-form.entry.js +1 -1
  261. package/dist/esm/featured-list.entry.js +1 -1
  262. package/dist/esm/global-1a5f28d5.js +31 -0
  263. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  264. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  265. package/dist/esm/icon-asset.entry.js +1 -1
  266. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  267. package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
  268. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  269. package/dist/esm/loader.js +3 -1
  270. package/dist/esm/most-popular-news.entry.js +1 -1
  271. package/dist/esm/my-component.entry.js +1 -1
  272. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  273. package/dist/esm/ptc-background-video.entry.js +1 -1
  274. package/dist/esm/ptc-bio-card.entry.js +1 -1
  275. package/dist/esm/ptc-button_5.entry.js +534 -0
  276. package/dist/esm/ptc-card_2.entry.js +10 -7
  277. package/dist/esm/ptc-case-studies-slider.entry.js +2 -6
  278. package/dist/esm/ptc-close-icon_2.entry.js +24 -24
  279. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  280. package/dist/esm/ptc-countdown.entry.js +7 -10
  281. package/dist/esm/ptc-data-lookup.entry.js +2 -1
  282. package/dist/esm/ptc-dynamic-card.entry.js +1 -1
  283. package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
  284. package/dist/esm/ptc-featured-list.entry.js +1 -1
  285. package/dist/esm/ptc-filter-dropdown_4.entry.js +40 -9
  286. package/dist/esm/ptc-filter-level-theater.entry.js +18 -3
  287. package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +40 -802
  288. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  289. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  290. package/dist/esm/ptc-icon-card.entry.js +1 -1
  291. package/dist/esm/ptc-img.entry.js +1 -1
  292. package/dist/esm/ptc-info-tile.entry.js +2 -1
  293. package/dist/esm/ptc-jumbotron.entry.js +4 -1
  294. package/dist/esm/ptc-link.entry.js +1 -1
  295. package/dist/esm/ptc-media-card.entry.js +1 -1
  296. package/dist/esm/ptc-multi-select_2.entry.js +669 -0
  297. package/dist/esm/ptc-nav-link.entry.js +1 -1
  298. package/dist/esm/ptc-nav-skip-to-content.entry.js +28 -3
  299. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  300. package/dist/esm/ptc-previous-url.entry.js +2 -10
  301. package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
  302. package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
  303. package/dist/esm/ptc-product-card.entry.js +1 -1
  304. package/dist/esm/ptc-product-category.entry.js +1 -1
  305. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  306. package/dist/esm/ptc-product-list.entry.js +4 -0
  307. package/dist/esm/ptc-product-sidebar.entry.js +38 -6
  308. package/dist/esm/ptc-quote.entry.js +1 -1
  309. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  310. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  311. package/dist/esm/ptc-related-card-rail.entry.js +42 -38
  312. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  313. package/dist/esm/ptc-sticky-icons.entry.js +9 -0
  314. package/dist/esm/ptc-text-copy-with-background.entry.js +16 -1
  315. package/dist/esm/ptc-theater-video-modal.entry.js +43 -9
  316. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  317. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  318. package/dist/esm/ptc-white-paper.entry.js +11 -10
  319. package/dist/esm/ptcw-design.js +3 -1
  320. package/dist/esm/{utils-2f12c081.js → utils-7c68b88a.js} +1 -1
  321. package/dist/esm/validation-messages-1379b825.js +169 -0
  322. package/dist/ptcw-design/media/{designer-v6.0.6.svg → designer-v6.0.7.svg} +17 -30
  323. package/dist/ptcw-design/p-00e21489.entry.js +1 -0
  324. package/dist/ptcw-design/{p-901c31b3.entry.js → p-0252726c.entry.js} +1 -1
  325. package/dist/ptcw-design/p-02822616.entry.js +1 -0
  326. package/dist/ptcw-design/p-05c29cc2.entry.js +1 -0
  327. package/dist/ptcw-design/{p-f867ebe6.entry.js → p-0ddf2a09.entry.js} +1 -1
  328. package/dist/ptcw-design/p-0efedf59.js +1 -0
  329. package/dist/ptcw-design/p-1454ba84.entry.js +1 -0
  330. package/dist/ptcw-design/{p-45b1f3fc.entry.js → p-16d47ac5.entry.js} +1 -1
  331. package/dist/ptcw-design/p-18851303.entry.js +1 -0
  332. package/dist/ptcw-design/{p-d73cc053.entry.js → p-18ac526f.entry.js} +1 -1
  333. package/dist/ptcw-design/{p-4ca956c1.entry.js → p-1c99b808.entry.js} +1 -1
  334. package/dist/ptcw-design/p-1feb2812.entry.js +1 -0
  335. package/dist/ptcw-design/{p-a5fc048f.entry.js → p-24a6eefa.entry.js} +1 -1
  336. package/dist/ptcw-design/{p-9df7489b.entry.js → p-27c26d50.entry.js} +1 -1
  337. package/dist/ptcw-design/{p-9dbcfcee.entry.js → p-2ba1ef9d.entry.js} +1 -1
  338. package/dist/ptcw-design/{p-1eb40265.entry.js → p-30bfb2f9.entry.js} +1 -1
  339. package/dist/ptcw-design/p-33224113.entry.js +1 -0
  340. package/dist/ptcw-design/p-352e87c0.entry.js +1 -0
  341. package/dist/ptcw-design/p-3b9fbbaa.js +1 -0
  342. package/dist/ptcw-design/p-3e4ec8ef.entry.js +1 -0
  343. package/dist/ptcw-design/{p-297a14cb.entry.js → p-4056c365.entry.js} +1 -1
  344. package/dist/ptcw-design/{p-b647f7a1.entry.js → p-50770cc0.entry.js} +1 -1
  345. package/dist/ptcw-design/{p-52e17d34.entry.js → p-55e344bc.entry.js} +1 -1
  346. package/dist/ptcw-design/p-593b8eff.entry.js +1 -0
  347. package/dist/ptcw-design/{p-8cea8943.entry.js → p-5bd8b4be.entry.js} +1 -1
  348. package/dist/ptcw-design/{p-3ed4a7ed.entry.js → p-5ca42138.entry.js} +1 -1
  349. package/dist/ptcw-design/p-66ecd7b9.entry.js +1 -0
  350. package/dist/ptcw-design/{p-257267e3.entry.js → p-673cfd2e.entry.js} +1 -1
  351. package/dist/ptcw-design/p-73a853fc.entry.js +1 -0
  352. package/dist/ptcw-design/{p-8e42a22d.entry.js → p-757e3edb.entry.js} +1 -1
  353. package/dist/ptcw-design/p-78370e3d.entry.js +1 -0
  354. package/dist/ptcw-design/{p-d51438de.entry.js → p-80588c84.entry.js} +1 -1
  355. package/dist/ptcw-design/{p-4702c233.entry.js → p-81e65926.entry.js} +1 -1
  356. package/dist/ptcw-design/{p-80122e26.js → p-826c17e8.js} +1 -1
  357. package/dist/ptcw-design/p-829855f5.entry.js +1 -0
  358. package/dist/ptcw-design/{p-99355e65.entry.js → p-884c335c.entry.js} +1 -1
  359. package/dist/ptcw-design/p-98426799.js +203 -0
  360. package/dist/ptcw-design/p-98844b50.js +134 -0
  361. package/dist/ptcw-design/{p-71360e29.entry.js → p-9e4e21a4.entry.js} +1 -1
  362. package/dist/ptcw-design/p-a2c7df64.entry.js +1 -0
  363. package/dist/ptcw-design/p-a58698ca.entry.js +1 -0
  364. package/dist/ptcw-design/{p-8c121480.entry.js → p-a5ad0eff.entry.js} +1 -1
  365. package/dist/ptcw-design/{p-0b515839.entry.js → p-a791c53a.entry.js} +1 -1
  366. package/dist/ptcw-design/p-acdd9a1d.entry.js +1 -0
  367. package/dist/ptcw-design/p-ad821a01.entry.js +1 -0
  368. package/dist/ptcw-design/p-b6255525.entry.js +1 -0
  369. package/dist/ptcw-design/{p-fd87fcd5.entry.js → p-b863b296.entry.js} +1 -1
  370. package/dist/ptcw-design/p-bb9a879f.entry.js +1 -0
  371. package/dist/ptcw-design/p-bc146844.entry.js +1 -0
  372. package/dist/ptcw-design/p-bcc6712c.entry.js +68 -0
  373. package/dist/ptcw-design/p-c82eaf9d.entry.js +1 -0
  374. package/dist/ptcw-design/p-cad4b517.entry.js +1 -0
  375. package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-d089dc37.entry.js} +1 -1
  376. package/dist/ptcw-design/p-d6845e91.entry.js +1 -0
  377. package/dist/ptcw-design/p-ddb898c7.entry.js +1 -0
  378. package/dist/ptcw-design/{p-14b7693f.entry.js → p-dffcfa42.entry.js} +1 -1
  379. package/dist/ptcw-design/p-e3867512.entry.js +1 -0
  380. package/dist/ptcw-design/p-e6619d63.entry.js +1 -0
  381. package/dist/ptcw-design/{p-76dab076.entry.js → p-e813ea2b.entry.js} +1 -1
  382. package/dist/ptcw-design/p-eaa0597a.entry.js +1 -0
  383. package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
  384. package/dist/ptcw-design/p-f377006c.entry.js +1 -0
  385. package/dist/ptcw-design/{p-bab5bb88.entry.js → p-f5d8a3b1.entry.js} +1 -1
  386. package/dist/ptcw-design/p-f9256e3d.entry.js +1 -0
  387. package/dist/ptcw-design/ptcw-design.css +2 -2
  388. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  389. package/dist/types/components/ptc-button/ptc-button.d.ts +2 -1
  390. package/dist/types/components/ptc-card/ptc-card.d.ts +1 -0
  391. package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -1
  392. package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -1
  393. package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +1 -1
  394. package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +1 -0
  395. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
  396. package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
  397. package/dist/types/components/ptc-multi-select/ptc-multi-select.d.ts +1 -1
  398. package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +6 -0
  399. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  400. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
  401. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -1
  402. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +6 -3
  403. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +3 -0
  404. package/dist/types/components/ptc-select/ptc-select.d.ts +2 -1
  405. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +2 -0
  406. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +58 -4
  407. package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +6 -1
  408. package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
  409. package/dist/types/components.d.ts +137 -24
  410. package/dist/types/global/global.d.ts +4 -0
  411. package/dist/types/utils/fef-logger.d.ts +10 -0
  412. package/dist/types/utils/validation-messages.d.ts +4 -123
  413. package/package.json +1 -1
  414. package/readme.md +1 -5
  415. package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
  416. package/dist/cjs/ptc-button.cjs.entry.js +0 -87
  417. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  418. package/dist/cjs/ptc-picture.cjs.entry.js +0 -162
  419. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  420. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  421. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
  422. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
  423. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
  424. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
  425. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
  426. package/dist/esm/modal-form-example.entry.js +0 -90
  427. package/dist/esm/ptc-button.entry.js +0 -83
  428. package/dist/esm/ptc-para.entry.js +0 -123
  429. package/dist/esm/ptc-picture.entry.js +0 -158
  430. package/dist/esm/ptc-spacer.entry.js +0 -34
  431. package/dist/esm/ptc-title.entry.js +0 -148
  432. package/dist/ptcw-design/p-0529caaa.entry.js +0 -1
  433. package/dist/ptcw-design/p-077839d5.entry.js +0 -1
  434. package/dist/ptcw-design/p-092e50c9.entry.js +0 -1
  435. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  436. package/dist/ptcw-design/p-0e5932f0.entry.js +0 -1
  437. package/dist/ptcw-design/p-0ef61b44.entry.js +0 -1
  438. package/dist/ptcw-design/p-1616a1f7.entry.js +0 -1
  439. package/dist/ptcw-design/p-1e3bf09c.entry.js +0 -1
  440. package/dist/ptcw-design/p-21aa746d.entry.js +0 -1
  441. package/dist/ptcw-design/p-282b7d4e.entry.js +0 -1
  442. package/dist/ptcw-design/p-2a20d4a6.entry.js +0 -1
  443. package/dist/ptcw-design/p-2cc7e2a8.entry.js +0 -1
  444. package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
  445. package/dist/ptcw-design/p-3ee2a531.entry.js +0 -1
  446. package/dist/ptcw-design/p-445329ed.entry.js +0 -1
  447. package/dist/ptcw-design/p-5311c6e1.entry.js +0 -1
  448. package/dist/ptcw-design/p-58e91cb8.entry.js +0 -1
  449. package/dist/ptcw-design/p-5db7f70b.entry.js +0 -1
  450. package/dist/ptcw-design/p-672a349f.js +0 -336
  451. package/dist/ptcw-design/p-75390f63.entry.js +0 -1
  452. package/dist/ptcw-design/p-799afee5.entry.js +0 -1
  453. package/dist/ptcw-design/p-7bdf1e64.entry.js +0 -1
  454. package/dist/ptcw-design/p-7f9ad266.entry.js +0 -1
  455. package/dist/ptcw-design/p-845d10b5.entry.js +0 -1
  456. package/dist/ptcw-design/p-85bdb2d5.entry.js +0 -68
  457. package/dist/ptcw-design/p-8fb48953.entry.js +0 -1
  458. package/dist/ptcw-design/p-9501995f.entry.js +0 -1
  459. package/dist/ptcw-design/p-97b9f41b.entry.js +0 -1
  460. package/dist/ptcw-design/p-a8872ce3.entry.js +0 -1
  461. package/dist/ptcw-design/p-baff4d44.entry.js +0 -1
  462. package/dist/ptcw-design/p-de960790.entry.js +0 -1
  463. package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
  464. package/dist/ptcw-design/p-e6a272d9.entry.js +0 -1
  465. package/dist/ptcw-design/p-f1734520.entry.js +0 -1
  466. package/dist/ptcw-design/p-fe40421e.entry.js +0 -1
  467. package/dist/ptcw-design/p-fe907670.entry.js +0 -1
  468. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
@@ -0,0 +1,134 @@
1
+ import{_ as t,a as i,b as n,c as e,M as s,m as r,d as u,e as o,f as h,g as c,h as f,i as a,j as l,k as d,l as m}from"./p-98426799.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2018 Google Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */var b,E,I,A,v={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},g={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},C={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(b||(b={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(E||(E={}));var T={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},O=((I={})[""+T.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",I[""+T.LIST_ITEM_CLASS]="mdc-list-item",I[""+T.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",I[""+T.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",I[""+T.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",I[""+T.ROOT]="mdc-list",I),_=((A={})[""+T.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",A[""+T.LIST_ITEM_CLASS]="mdc-deprecated-list-item",A[""+T.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",A[""+T.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",A[""+T.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",A[""+T.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",A[""+T.ROOT]="mdc-deprecated-list",A),x={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+T.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+T.LIST_ITEM_CLASS+" a,\n ."+_[T.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[T.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+T.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+T.LIST_ITEM_CLASS+" a,\n ."+T.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+T.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+_[T.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[T.LIST_ITEM_CLASS]+" a,\n ."+_[T.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+_[T.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},S={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},p="Backspace",L="Enter",R="Spacebar",w="PageUp",y="PageDown",M="End",D="Home",N="ArrowLeft",F="ArrowUp",k="ArrowRight",j="ArrowDown",B="Delete",H="Escape",U=new Set;U.add(p),U.add(L),U.add(R),U.add(w),U.add(y),U.add(M),U.add(D),U.add(N),U.add(F),U.add(k),U.add(j),U.add(B),U.add(H),U.add("Tab");var P=new Map;P.set(8,p),P.set(13,L),P.set(32,R),P.set(33,w),P.set(34,y),P.set(35,M),P.set(36,D),P.set(37,N),P.set(38,F),P.set(39,k),P.set(40,j),P.set(46,B),P.set(27,H),P.set(9,"Tab");var V=new Set;function G(t){var i=t.key;return U.has(i)?i:P.get(t.keyCode)||"Unknown"}
24
+ /**
25
+ * @license
26
+ * Copyright 2020 Google Inc.
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ * of this software and associated documentation files (the "Software"), to deal
30
+ * in the Software without restriction, including without limitation the rights
31
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ * copies of the Software, and to permit persons to whom the Software is
33
+ * furnished to do so, subject to the following conditions:
34
+ *
35
+ * The above copyright notice and this permission notice shall be included in
36
+ * all copies or substantial portions of the Software.
37
+ *
38
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44
+ * THE SOFTWARE.
45
+ */V.add(w),V.add(y),V.add(M),V.add(D),V.add(N),V.add(F),V.add(k),V.add(j);var X=["input","button","textarea","select"],q=function(t){var i=t.target;if(i){var n=(""+i.tagName).toLowerCase();-1===X.indexOf(n)&&t.preventDefault()}};function W(t,i){var n,e=t.nextChar,s=t.focusItemAtIndex,r=t.sortedIndexByFirstChar,u=t.focusedItemIndex,o=t.skipFocus,h=t.isItemAtIndexDisabled;return clearTimeout(i.bufferClearTimeout),i.bufferClearTimeout=setTimeout((function(){z(i)}),S.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),i.typeaheadBuffer=i.typeaheadBuffer+e,n=1===i.typeaheadBuffer.length?function(t,i,n,e){var s=e.typeaheadBuffer[0],r=t.get(s);if(!r)return-1;if(s===e.currentFirstChar&&r[e.sortedIndexCursor].index===i){e.sortedIndexCursor=(e.sortedIndexCursor+1)%r.length;var u=r[e.sortedIndexCursor].index;if(!n(u))return u}e.currentFirstChar=s;var o,h=-1;for(o=0;o<r.length;o++)if(!n(r[o].index)){h=o;break}for(;o<r.length;o++)if(r[o].index>i&&!n(r[o].index)){h=o;break}return-1!==h?(e.sortedIndexCursor=h,r[e.sortedIndexCursor].index):-1}(r,u,h,i):function(t,i,n){var e=t.get(n.typeaheadBuffer[0]);if(!e)return-1;var s=e[n.sortedIndexCursor];if(0===s.text.lastIndexOf(n.typeaheadBuffer,0)&&!i(s.index))return s.index;for(var r=(n.sortedIndexCursor+1)%e.length,u=-1;r!==n.sortedIndexCursor;){var o=e[r],h=0===o.text.lastIndexOf(n.typeaheadBuffer,0),c=!i(o.index);if(h&&c){u=r;break}r=(r+1)%e.length}return-1!==u?(n.sortedIndexCursor=u,e[n.sortedIndexCursor].index):-1}(r,h,i),-1===n||o||s(n),n}function K(t){return t.typeaheadBuffer.length>0}function z(t){t.typeaheadBuffer=""}function Y(t,i){var n=t.event,e=t.isTargetListItem,s=t.focusedItemIndex,r=t.focusItemAtIndex,u=t.sortedIndexByFirstChar,o=t.isItemAtIndexDisabled,h="ArrowLeft"===G(n),c="ArrowUp"===G(n),f="ArrowRight"===G(n),a="ArrowDown"===G(n),l="Home"===G(n),d="End"===G(n),m="Enter"===G(n),b="Spacebar"===G(n);return n.altKey||n.ctrlKey||n.metaKey||h||c||f||a||l||d||m?-1:b||1!==n.key.length?b?(e&&q(n),e&&K(i)?W({focusItemAtIndex:r,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},i):-1):-1:(q(n),W({focusItemAtIndex:r,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},i))}
46
+ /**
47
+ * @license
48
+ * Copyright 2018 Google Inc.
49
+ *
50
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
51
+ * of this software and associated documentation files (the "Software"), to deal
52
+ * in the Software without restriction, including without limitation the rights
53
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
+ * copies of the Software, and to permit persons to whom the Software is
55
+ * furnished to do so, subject to the following conditions:
56
+ *
57
+ * The above copyright notice and this permission notice shall be included in
58
+ * all copies or substantial portions of the Software.
59
+ *
60
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
66
+ * THE SOFTWARE.
67
+ */var Q=["Alt","Control","Meta","Shift"];function Z(t){var i=new Set(t?Q.filter((function(i){return t.getModifierState(i)})):[]);return function(t){return t.every((function(t){return i.has(t)}))&&t.length===i.size}}var J,$=function(s){function r(t){var n=s.call(this,i(i({},r.defaultAdapter),t))||this;return n.wrapFocus=!1,n.isVertical=!0,n.isSingleSelectionList=!1,n.areDisabledItemsFocusable=!0,n.selectedIndex=S.UNSET_INDEX,n.focusedItemIndex=S.UNSET_INDEX,n.useActivatedClass=!1,n.useSelectedAttr=!1,n.ariaCurrentAttrValue=null,n.isCheckboxList=!1,n.isRadioList=!1,n.lastSelectedIndex=null,n.hasTypeahead=!1,n.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},n.sortedIndexByFirstChar=new Map,n}return t(r,s),Object.defineProperty(r,"strings",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(r,"cssClasses",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),r.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},r.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},r.prototype.setWrapFocus=function(t){this.wrapFocus=t},r.prototype.setVerticalOrientation=function(t){this.isVertical=t},r.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},r.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},r.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==S.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,T.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},r.prototype.getSelectedIndexFromDOM=function(){for(var t=S.UNSET_INDEX,i=this.adapter.getListItemCount(),n=0;n<i;n++){var e=this.adapter.listItemAtIndexHasClass(n,T.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,T.LIST_ITEM_ACTIVATED_CLASS);if(e||s){t=n;break}}return t},r.prototype.setHasTypeahead=function(t){this.hasTypeahead=t,t&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},r.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&K(this.typeaheadState)},r.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},r.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},r.prototype.getSelectedIndex=function(){return this.selectedIndex},r.prototype.setSelectedIndex=function(t,i){void 0===i&&(i={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,i):this.isRadioList?this.setRadioAtIndex(t,i):this.setSingleSelectionAtIndex(t,i))},r.prototype.handleFocusIn=function(t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},r.prototype.handleFocusOut=function(t){var i=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout((function(){i.adapter.isFocusInsideList()||i.setTabindexToFirstSelectedOrFocusedItem()}),0)},r.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,T.LIST_ITEM_DISABLED_CLASS)},r.prototype.handleKeydown=function(t,i,n){var e,s=this,r="ArrowLeft"===G(t),u="ArrowUp"===G(t),o="ArrowRight"===G(t),h="ArrowDown"===G(t),c="Home"===G(t),f="End"===G(t),a="Enter"===G(t),l="Spacebar"===G(t),d=this.isVertical&&h||!this.isVertical&&o,m=this.isVertical&&u||!this.isVertical&&r,b="A"===t.key||"a"===t.key,E=Z(t);if(this.adapter.isRootFocused())(m||f)&&E([])?(t.preventDefault(),this.focusLastElement()):(d||c)&&E([])?(t.preventDefault(),this.focusFirstElement()):m&&E(["Shift"])&&this.isCheckboxList?(t.preventDefault(),-1!==(A=this.focusLastElement())&&this.setSelectedIndexOnAction(A,!1)):d&&E(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),-1!==(A=this.focusFirstElement())&&this.setSelectedIndexOnAction(A,!1)),this.hasTypeahead&&Y({event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}},this.typeaheadState);else{var I=this.adapter.getFocusedElementIndex();if(!(-1===I&&(I=n)<0)){if(d&&E([]))q(t),this.focusNextElement(I);else if(m&&E([]))q(t),this.focusPrevElement(I);else if(d&&E(["Shift"])&&this.isCheckboxList)q(t),-1!==(A=this.focusNextElement(I))&&this.setSelectedIndexOnAction(A,!1);else if(m&&E(["Shift"])&&this.isCheckboxList){var A;q(t),-1!==(A=this.focusPrevElement(I))&&this.setSelectedIndexOnAction(A,!1)}else if(c&&E([]))q(t),this.focusFirstElement();else if(f&&E([]))q(t),this.focusLastElement();else if(c&&E(["Control","Shift"])&&this.isCheckboxList){if(q(t),this.isIndexDisabled(I))return;this.focusFirstElement(),this.toggleCheckboxRange(0,I,I)}else if(f&&E(["Control","Shift"])&&this.isCheckboxList){if(q(t),this.isIndexDisabled(I))return;this.focusLastElement(),this.toggleCheckboxRange(I,this.adapter.getListItemCount()-1,I)}else if(b&&E(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex,!0);else if((a||l)&&E([])){if(i){if((v=t.target)&&"A"===v.tagName&&a)return;if(q(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(I,!1),this.adapter.notifyAction(I))}}else if((a||l)&&E(["Shift"])&&this.isCheckboxList){var v;if((v=t.target)&&"A"===v.tagName&&a)return;if(q(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:I,I,I),this.adapter.notifyAction(I))}this.hasTypeahead&&Y({event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}},this.typeaheadState)}}},r.prototype.handleClick=function(t,i,n){var e,s=Z(n);t!==S.UNSET_INDEX&&(this.isIndexDisabled(t)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,i),this.adapter.notifyAction(t)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:t,t,t),this.adapter.notifyAction(t))))},r.prototype.focusNextElement=function(t){var i=this.adapter.getListItemCount(),n=t,e=null;do{if(++n>=i){if(!this.wrapFocus)return t;n=0}if(n===e)return-1;e=null!=e?e:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},r.prototype.focusPrevElement=function(t){var i=this.adapter.getListItemCount(),n=t,e=null;do{if(--n<0){if(!this.wrapFocus)return t;n=i-1}if(n===e)return-1;e=null!=e?e:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},r.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},r.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},r.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},r.prototype.setEnabled=function(t,i){this.isIndexValid(t,!1)&&(i?(this.adapter.removeClassForElementIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"true")))},r.prototype.setSingleSelectionAtIndex=function(t,i){if(void 0===i&&(i={}),this.selectedIndex!==t||i.forceUpdate){var n=T.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=T.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==S.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==S.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t,i.isUserInteraction&&!i.forceUpdate&&this.adapter.notifySelectionChange([t])}},r.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===S.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,x.ARIA_CURRENT));var i=null!==this.ariaCurrentAttrValue,n=i?x.ARIA_CURRENT:x.ARIA_SELECTED;this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,n,i?this.ariaCurrentAttrValue:"true")},r.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?x.ARIA_SELECTED:x.ARIA_CHECKED},r.prototype.setRadioAtIndex=function(t,i){void 0===i&&(i={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),(this.selectedIndex!==t||i.forceUpdate)&&(this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(t,n,"true"),this.selectedIndex=t,i.isUserInteraction&&!i.forceUpdate&&this.adapter.notifySelectionChange([t]))},r.prototype.setCheckboxAtIndex=function(t,i){void 0===i&&(i={});for(var n=this.selectedIndex,e=i.isUserInteraction?new Set(n===S.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),r=[],u=0;u<this.adapter.getListItemCount();u++){var o=null==e?void 0:e.has(u),h=t.indexOf(u)>=0;h!==o&&r.push(u),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,h),this.adapter.setAttributeForElementIndex(u,s,h?"true":"false")}this.selectedIndex=t,i.isUserInteraction&&r.length&&this.adapter.notifySelectionChange(r)},r.prototype.toggleCheckboxRange=function(t,i,s){this.lastSelectedIndex=s;for(var r=new Set(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex),u=!(null==r?void 0:r.has(s)),o=n([t,i].sort(),2),h=o[0],c=o[1],f=this.getSelectionAttribute(),a=[],l=h;l<=c;l++)this.isIndexDisabled(l)||u!==r.has(l)&&(a.push(l),this.adapter.setCheckedCheckboxOrRadioAtIndex(l,u),this.adapter.setAttributeForElementIndex(l,f,""+u),u?r.add(l):r.delete(l));a.length&&(this.selectedIndex=e([],n(r)),this.adapter.notifySelectionChange(a))},r.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===S.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},r.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},r.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},r.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(t,i){return Math.min(t,i)})):0:Math.max(this.focusedItemIndex,0)},r.prototype.isIndexValid=function(t,i){var n=this;if(void 0===i&&(i=!0),t instanceof Array){if(!this.isCheckboxList&&i)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some((function(t){return n.isIndexInRange(t)}))}if("number"==typeof t){if(this.isCheckboxList&&i)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===S.UNSET_INDEX}return!1},r.prototype.isIndexInRange=function(t){var i=this.adapter.getListItemCount();return t>=0&&t<i},r.prototype.setSelectedIndexOnAction=function(t,i){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,i),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},r.prototype.toggleCheckboxAtIndex=function(t,i){var n,e=this.getSelectionAttribute(),s=this.adapter.isCheckboxCheckedAtIndex(t);i?n=s:this.adapter.setCheckedCheckboxOrRadioAtIndex(t,n=!s),this.adapter.setAttributeForElementIndex(t,e,n?"true":"false");var r=this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex.slice();n?r.push(t):r=r.filter((function(i){return i!==t})),this.selectedIndex=r},r.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},r.prototype.checkboxListToggleAll=function(t,i){var n=this.adapter.getListItemCount();if(t.length===n)this.setCheckboxAtIndex([],{isUserInteraction:i});else{for(var e=[],s=0;s<n;s++)(!this.isIndexDisabled(s)||t.indexOf(s)>-1)&&e.push(s);this.setCheckboxAtIndex(e,{isUserInteraction:i})}},r.prototype.typeaheadMatchItem=function(t,i,n){var e=this;return void 0===n&&(n=!1),W({focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:i||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return e.isIndexDisabled(t)}},this.typeaheadState)},r.prototype.typeaheadInitSortedIndex=function(){return function(t,i){for(var n=new Map,e=0;e<t;e++){var s=i(e).trim();if(s){var r=s[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:s.toLowerCase(),index:e})}}return n.forEach((function(t){t.sort((function(t,i){return t.index-i.index}))})),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},r.prototype.clearTypeaheadBuffer=function(){z(this.typeaheadState)},r}(s),tt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),Object.defineProperty(n.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[T.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabledItemsFocusable",{set:function(t){this.foundation.setDisabledItemsFocusable(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),n.attachTo=function(t){return new n(t)},n.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled="evolution"in this.root.dataset,this.classNameMap=this.isEvolutionEnabled?O:r(this.root,x.DEPRECATED_SELECTOR)?_:Object.values(T).reduce((function(t,i){return t[i]=i,t}),{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},n.prototype.layout=function(){var t=this.root.getAttribute(x.ARIA_ORIENTATION);this.vertical=t!==x.ARIA_ORIENTATION_HORIZONTAL;var i=x.FOCUSABLE_CHILD_ELEMENTS,n=this.root.querySelectorAll("."+this.classNameMap[T.LIST_ITEM_CLASS]+":not([tabindex])");n.length&&Array.prototype.forEach.call(n,(function(t){t.setAttribute("tabindex","-1")}));var e=this.root.querySelectorAll(i);e.length&&Array.prototype.forEach.call(e,(function(t){t.setAttribute("tabindex","-1")})),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},n.prototype.getPrimaryText=function(t){var i,n=t.querySelector("."+this.classNameMap[T.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(i=null==n?void 0:n.textContent)&&void 0!==i?i:"";var e=t.querySelector("."+this.classNameMap[T.LIST_ITEM_TEXT_CLASS]);return e&&e.textContent||""},n.prototype.initializeListType=function(){var t=this;if(this.isInteractive=r(this.root,x.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var i=Array.from(this.root.querySelectorAll(x.SELECTED_ITEM_SELECTOR),(function(i){return t.listElements.indexOf(i)}));r(this.root,x.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=i:i.length>0&&(this.selectedIndex=i[0])}else{var n=this.root.querySelectorAll(x.ARIA_ROLE_CHECKBOX_SELECTOR),e=this.root.querySelector(x.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var s=this.root.querySelectorAll(x.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(s,(function(i){return t.listElements.indexOf(i)}))}else e&&(this.selectedIndex=this.listElements.indexOf(e))}},n.prototype.setEnabled=function(t,i){this.foundation.setEnabled(t,i)},n.prototype.typeaheadMatchItem=function(t,i){return this.foundation.typeaheadMatchItem(t,i,!0)},n.prototype.getDefaultFoundation=function(){var t=this;return new $({addClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.add(t.classNameMap[n])},focusItemAtIndex:function(i){var n=t.listElements[i];n&&n.focus()},getAttributeForElementIndex:function(i,n){return t.listElements[i].getAttribute(n)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(i){return t.getPrimaryText(t.listElements[i])},hasCheckboxAtIndex:function(i){return!!t.listElements[i].querySelector(x.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(i){return!!t.listElements[i].querySelector(x.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(i){return t.listElements[i].querySelector(x.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(i,n){return t.listElements[i].classList.contains(t.classNameMap[n])},notifyAction:function(i){t.emit(x.ACTION_EVENT,{index:i},!0)},notifySelectionChange:function(i){t.emit(x.SELECTION_CHANGE_EVENT,{changedIndices:i},!0)},removeClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.remove(t.classNameMap[n])},setAttributeForElementIndex:function(i,n,e){var s=t.listElements[i];s&&s.setAttribute(n,e)},setCheckedCheckboxOrRadioAtIndex:function(i,n){var e=t.listElements[i].querySelector(x.CHECKBOX_RADIO_SELECTOR);e.checked=n;var s=document.createEvent("Event");s.initEvent("change",!0,!0),e.dispatchEvent(s)},setTabIndexForListItemChildren:function(i,n){Array.prototype.forEach.call(t.listElements[i].querySelectorAll(x.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX),(function(t){t.setAttribute("tabindex",n)}))}})},n.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[T.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},n.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[T.LIST_ITEM_CLASS]+":not(."+this.classNameMap[T.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},n.prototype.getListItemIndex=function(t){var i=u(t,"."+this.classNameMap[T.LIST_ITEM_CLASS]+", ."+this.classNameMap[T.ROOT]);return i&&r(i,"."+this.classNameMap[T.LIST_ITEM_CLASS])?this.listElements.indexOf(i):-1},n.prototype.handleFocusInEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusIn(i)},n.prototype.handleFocusOutEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusOut(i)},n.prototype.handleKeydownEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleKeydown(t,t.target.classList.contains(this.classNameMap[T.LIST_ITEM_CLASS]),i)},n.prototype.handleClickEvent=function(t){var i=this.getListItemIndex(t.target),n=!r(t.target,x.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(i,n,t)},n}(o),it=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.isSurfaceOpen=!1,s.isQuickOpen=!1,s.isHoistedElement=!1,s.isFixedPosition=!1,s.isHorizontallyCenteredOnViewport=!1,s.maxHeight=0,s.openBottomBias=0,s.openAnimationEndTimerId=0,s.closeAnimationEndTimerId=0,s.animationRequestId=0,s.anchorCorner=E.TOP_START,s.originCorner=E.TOP_START,s.anchorMargin={top:0,right:0,bottom:0,left:0},s.position={x:0,y:0},s}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,i=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(i))throw new Error(i+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^b.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.isFixed=function(){return this.isFixedPosition},e.prototype.setAbsolutePosition=function(t,i){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(i)?i:0},e.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.setMaxHeight=function(t){this.maxHeight=t},e.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(e.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),C.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var i=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){i.adapter.removeClass(e.cssClasses.OPEN),i.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),i.closeAnimationEndTimerId=setTimeout((function(){i.closeAnimationEndTimerId=0,i.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),i.adapter.notifyClose()}),C.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},e.prototype.handleBodyClick=function(t){this.adapter.isElementInContainer(t.target)||this.close()},e.prototype.handleKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var i=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(i),s=this.hasBit(i,b.BOTTOM)?"bottom":"top",r=this.hasBit(i,b.RIGHT)?"right":"left",u=this.getHorizontalOriginOffset(i),o=this.getVerticalOriginOffset(i),h=this.measurements,c=h.anchorSize,f=h.surfaceSize,a=((t={})[r]=u,t[s]=o,t);c.width/f.width>C.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(a),this.adapter.setTransformOrigin(r+" "+s),this.adapter.setPosition(a),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(i,b.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),i=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),e=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:i,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:e}},e.prototype.getoriginCorner=function(){var t,i,n=this.originCorner,s=this.measurements,r=s.viewportDistance,u=s.anchorSize,o=s.surfaceSize,h=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,b.BOTTOM)?(t=r.top-h+this.anchorMargin.bottom,i=r.bottom-h-this.anchorMargin.bottom):(t=r.top-h+this.anchorMargin.top,i=r.bottom-h+u.height-this.anchorMargin.top),!(i-o.height>0)&&t>i+this.openBottomBias&&(n=this.setBit(n,b.BOTTOM));var c,f,a,l=this.adapter.isRtl(),d=this.hasBit(this.anchorCorner,b.FLIP_RTL),m=this.hasBit(this.anchorCorner,b.RIGHT)||this.hasBit(n,b.RIGHT);(a=l&&d?!m:m)?(c=r.left+u.width+this.anchorMargin.right,f=r.right-this.anchorMargin.right):(c=r.left+this.anchorMargin.left,f=r.right+u.width-this.anchorMargin.left);var E=c-o.width>0,I=f-o.width>0,A=this.hasBit(n,b.FLIP_RTL)&&this.hasBit(n,b.RIGHT);return I&&A&&l||!E&&A?n=this.unsetBit(n,b.RIGHT):(E&&a&&l||E&&!a&&m||!I&&c>=f)&&(n=this.setBit(n,b.RIGHT)),n},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var i=this.measurements.viewportDistance,n=0,s=this.hasBit(t,b.BOTTOM),r=this.hasBit(this.anchorCorner,b.BOTTOM),u=e.numbers.MARGIN_TO_EDGE;return s?(n=i.top+this.anchorMargin.top-u,r||(n+=this.measurements.anchorSize.height)):(n=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-u,r&&(n-=this.measurements.anchorSize.height)),n},e.prototype.getHorizontalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,b.RIGHT),e=this.hasBit(this.anchorCorner,b.RIGHT);if(n){var s=e?i.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return e?i.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,b.BOTTOM),e=this.hasBit(this.anchorCorner,b.BOTTOM);return n?e?i.height-this.anchorMargin.top:-this.anchorMargin.bottom:e?i.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var i,n,e=this.measurements,s=e.windowScroll,r=e.viewportDistance,u=e.surfaceSize,o=e.viewportSize,c=Object.keys(t);try{for(var f=h(c),a=f.next();!a.done;a=f.next()){var l=a.value,d=t[l]||0;!this.isHorizontallyCenteredOnViewport||"left"!==l&&"right"!==l?(d+=r[l],this.isFixedPosition||("top"===l?d+=s.y:"bottom"===l?d-=s.y:"left"===l?d+=s.x:d-=s.x),t[l]=d):t[l]=(o.width-u.width)/2}}catch(t){i={error:t}}finally{try{a&&!a.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,i=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,e=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(i||e)&&setTimeout((function(){t.adapter.restoreFocus()}),C.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,i){return Boolean(t&i)},e.prototype.setBit=function(t,i){return t|i},e.prototype.unsetBit=function(t,i){return t^i},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(s),nt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},n.prototype.initialSyncWithDOM=function(){var t=this,i=this.root.parentElement;this.anchorElement=i&&i.classList.contains(v.ANCHOR)?i:null,this.root.classList.contains(v.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleBodyClick=function(i){t.foundation.handleBodyClick(i)},this.registerBodyClickListener=function(){document.body.addEventListener("click",t.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",t.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(g.OPENED_EVENT,this.registerBodyClickListener),this.listen(g.CLOSED_EVENT,this.deregisterBodyClickListener)},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(g.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(g.CLOSED_EVENT,this.deregisterBodyClickListener),i.prototype.destroy.call(this)},n.prototype.isOpen=function(){return this.foundation.isOpen()},n.prototype.open=function(){this.foundation.open()},n.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(n.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),n.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},n.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},n.prototype.setFixedPosition=function(t){t?this.root.classList.add(v.FIXED):this.root.classList.remove(v.FIXED),this.foundation.setFixedPosition(t)},n.prototype.setAbsolutePosition=function(t,i){this.foundation.setAbsolutePosition(t,i),this.setIsHoisted(!0)},n.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},n.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},n.prototype.getDefaultFoundation=function(){var t=this;return new it({addClass:function(i){return t.root.classList.add(i)},removeClass:function(i){return t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},hasAnchor:function(){return!!t.anchorElement},notifyClose:function(){return t.emit(it.strings.CLOSED_EVENT,{})},notifyClosing:function(){t.emit(it.strings.CLOSING_EVENT,{})},notifyOpen:function(){return t.emit(it.strings.OPENED_EVENT,{})},notifyOpening:function(){return t.emit(it.strings.OPENING_EVENT,{})},isElementInContainer:function(i){return t.root.contains(i)},isRtl:function(){return"rtl"===getComputedStyle(t.root).getPropertyValue("direction")},setTransformOrigin:function(i){var n=c(window,"transform")+"-origin";t.root.style.setProperty(n,i)},isFocused:function(){return document.activeElement===t.root},saveFocus:function(){t.previousFocus=document.activeElement},restoreFocus:function(){t.root.contains(document.activeElement)&&t.previousFocus&&t.previousFocus.focus&&t.previousFocus.focus()},getInnerDimensions:function(){return{width:t.root.offsetWidth,height:t.root.offsetHeight}},getAnchorDimensions:function(){return t.anchorElement?t.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(i){var n=t.root;n.style.left="left"in i?i.left+"px":"",n.style.right="right"in i?i.right+"px":"",n.style.top="top"in i?i.top+"px":"",n.style.bottom="bottom"in i?i.bottom+"px":""},setMaxHeight:function(i){t.root.style.maxHeight=i}})},n}(o),et={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},st={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},rt={FOCUS_ROOT_INDEX:-1};
68
+ /**
69
+ * @license
70
+ * Copyright 2018 Google Inc.
71
+ *
72
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
73
+ * of this software and associated documentation files (the "Software"), to deal
74
+ * in the Software without restriction, including without limitation the rights
75
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
76
+ * copies of the Software, and to permit persons to whom the Software is
77
+ * furnished to do so, subject to the following conditions:
78
+ *
79
+ * The above copyright notice and this permission notice shall be included in
80
+ * all copies or substantial portions of the Software.
81
+ *
82
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
83
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
84
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
85
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
86
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
87
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
88
+ * THE SOFTWARE.
89
+ */!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(J||(J={}));
90
+ /**
91
+ * @license
92
+ * Copyright 2018 Google Inc.
93
+ *
94
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
95
+ * of this software and associated documentation files (the "Software"), to deal
96
+ * in the Software without restriction, including without limitation the rights
97
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
98
+ * copies of the Software, and to permit persons to whom the Software is
99
+ * furnished to do so, subject to the following conditions:
100
+ *
101
+ * The above copyright notice and this permission notice shall be included in
102
+ * all copies or substantial portions of the Software.
103
+ *
104
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
110
+ * THE SOFTWARE.
111
+ */
112
+ var ut=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.closeAnimationEndTimerId=0,s.defaultFocusState=J.LIST_ROOT,s.selectedIndex=-1,s}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return et},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return st},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return rt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){("Tab"===t.key||9===t.keyCode)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var i=this,n=this.adapter.getElementIndex(t);if(!(n<0)){this.adapter.notifySelected({index:n});var e="true"===this.adapter.getAttributeFromElementAtIndex(n,st.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(e),this.closeAnimationEndTimerId=setTimeout((function(){var n=i.adapter.getElementIndex(t);n>=0&&i.adapter.isSelectableItemAtIndex(n)&&i.setSelectedIndex(n)}),it.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case J.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case J.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case J.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var i=this.adapter.getSelectedSiblingOfItemAtIndex(t);i>=0&&(this.adapter.removeAttributeFromElementAtIndex(i,st.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(i,et.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,et.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,i){this.validatedIndex(t),i?(this.adapter.removeClassFromElementAtIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var i=this.adapter.getMenuItemCount();if(!(t>=0&&t<i))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(s),ot=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(t,i){void 0===t&&(t=function(t){return new nt(t)}),void 0===i&&(i=function(t){return new tt(t)}),this.menuSurfaceFactory=t,this.listFactory=i},n.prototype.initialSyncWithDOM=function(){var t=this;this.menuSurface=this.menuSurfaceFactory(this.root);var i=this.root.querySelector(st.LIST_SELECTOR);i?(this.list=this.listFactory(i),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleItemAction=function(i){t.foundation.handleItemAction(t.items[i.detail.index])},this.handleMenuSurfaceOpened=function(){t.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(it.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen($.strings.ACTION_EVENT,this.handleItemAction)},n.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(it.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten($.strings.ACTION_EVENT,this.handleItemAction),i.prototype.destroy.call(this)},Object.defineProperty(n.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){t?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(t){this.list&&(this.list.wrapFocus=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(t){this.list&&(this.list.hasTypeahead=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),n.prototype.typeaheadMatchItem=function(t,i){return this.list?this.list.typeaheadMatchItem(t,i):-1},n.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(n.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(t){this.list&&(this.list.singleSelection=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:S.UNSET_INDEX},set:function(t){this.list&&(this.list.selectedIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:!1,configurable:!0}),n.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)},n.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)},n.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)},n.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)},n.prototype.setEnabled=function(t,i){this.foundation.setEnabled(t,i)},n.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},n.prototype.getPrimaryTextAtIndex=function(t){var i=this.getOptionByIndex(t);return i&&this.list&&this.list.getPrimaryText(i)||""},n.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)},n.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)},n.prototype.setAbsolutePosition=function(t,i){this.menuSurface.setAbsolutePosition(t,i)},n.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t},n.prototype.getDefaultFoundation=function(){var t=this;return new ut({addClassToElementAtIndex:function(i,n){t.items[i].classList.add(n)},removeClassFromElementAtIndex:function(i,n){t.items[i].classList.remove(n)},addAttributeToElementAtIndex:function(i,n,e){t.items[i].setAttribute(n,e)},removeAttributeFromElementAtIndex:function(i,n){t.items[i].removeAttribute(n)},getAttributeFromElementAtIndex:function(i,n){return t.items[i].getAttribute(n)},elementContainsClass:function(t,i){return t.classList.contains(i)},closeSurface:function(i){t.menuSurface.close(i)},getElementIndex:function(i){return t.items.indexOf(i)},notifySelected:function(i){t.emit(st.SELECTED_EVENT,{index:i.index,item:t.items[i.index]})},getMenuItemCount:function(){return t.items.length},focusItemAtIndex:function(i){t.items[i].focus()},focusListRoot:function(){t.root.querySelector(st.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(i){return!!u(t.items[i],"."+et.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(i){var n=u(t.items[i],"."+et.MENU_SELECTION_GROUP).querySelector("."+et.MENU_SELECTED_LIST_ITEM);return n?t.items.indexOf(n):-1}})},n}(o),ht={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},ct={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},ft={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},at=function(n){function e(t,s){void 0===s&&(s={});var r=n.call(this,i(i({},e.defaultAdapter),t))||this;return r.disabled=!1,r.isMenuOpen=!1,r.useDefaultValidation=!0,r.customValidity=!0,r.lastSelectedIndex=ft.UNSET_INDEX,r.clickDebounceTimeout=0,r.recentlyClicked=!1,r.leadingIcon=s.leadingIcon,r.helperText=s.helperText,r}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return ht},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ct},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},e.prototype.setSelectedIndex=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),t>=this.adapter.getMenuItemCount()||(this.adapter.setSelectedText(t===ft.UNSET_INDEX?"":this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),i&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,i){void 0===i&&(i=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,i)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),i=this.adapter.getMenuItemValues();return t!==ft.UNSET_INDEX?i[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(ht.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(ht.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(ht.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,i=this.adapter.hasClass(ht.FOCUSED),n=t||i,e=this.adapter.hasClass(ht.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(e)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(t>=0?t:0)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(ht.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(ht.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(ht.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(ht.FOCUSED)){var i=G(t)===L,n=G(t)===R,e=G(t)===F,s=G(t)===j;if(!t.ctrlKey&&!t.metaKey&&(!n&&t.key&&1===t.key.length||n&&this.adapter.isTypeaheadInProgress())){var r=this.adapter.typeaheadMatchItem(n?" ":t.key,this.getSelectedIndex());return r>=0&&this.setSelectedIndex(r),void t.preventDefault()}(i||n||e||s)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var i=this.adapter.hasClass(ht.FOCUSED);if(t){var n=ft.LABEL_SCALE,e=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(e)}else i||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(ht.INVALID),this.adapter.removeMenuClass(ht.MENU_INVALID)):(this.adapter.addClass(ht.INVALID),this.adapter.addMenuClass(ht.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(ht.REQUIRED)&&!this.adapter.hasClass(ht.DISABLED)?this.getSelectedIndex()!==ft.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(ht.REQUIRED):this.adapter.removeClass(ht.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(E.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(ht.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(ht.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(ht.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(ht.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var i=this.helperText.isVisible(),n=this.helperText.getId();i&&n?this.adapter.setSelectAnchorAttr(ct.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(ct.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){t.recentlyClicked=!1}),ft.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(s),lt={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},dt={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},mt=function(n){function e(t){return n.call(this,i(i({},e.defaultAdapter),t))||this}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return dt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return lt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.adapter.getAttr("id")},e.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(lt.ARIA_HIDDEN)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.setValidation=function(t){t?this.adapter.addClass(dt.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(dt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.getIsValidation=function(){return this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.setValidity=function(t){if(this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG)){var i=this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||i)return this.showToScreenReader(),void(t?this.adapter.removeAttr(lt.ROLE):this.adapter.setAttr(lt.ROLE,"alert"));this.adapter.removeAttr(lt.ROLE),this.hide()}},e.prototype.showToScreenReader=function(){this.adapter.removeAttr(lt.ARIA_HIDDEN)},e.prototype.hide=function(){this.adapter.setAttr(lt.ARIA_HIDDEN,"true")},e}(s),bt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),n.prototype.getDefaultFoundation=function(){var t=this;return new mt({addClass:function(i){return t.root.classList.add(i)},removeClass:function(i){return t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},getAttr:function(i){return t.root.getAttribute(i)},setAttr:function(i,n){return t.root.setAttribute(i,n)},removeAttr:function(i){return t.root.removeAttribute(i)},setContent:function(i){t.root.textContent=i}})},n}(o),Et={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},It=["click","keydown"],At=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.savedTabIndex=null,s.interactionHandler=function(t){s.handleInteraction(t)},s}return t(e,n),Object.defineProperty(e,"strings",{get:function(){return Et},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,i;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=h(It),e=n.next();!e.done;e=n.next())this.adapter.registerInteractionHandler(e.value,this.interactionHandler)}catch(i){t={error:i}}finally{try{e&&!e.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.destroy=function(){var t,i;try{for(var n=h(It),e=n.next();!e.done;e=n.next())this.adapter.deregisterInteractionHandler(e.value,this.interactionHandler)}catch(i){t={error:i}}finally{try{e&&!e.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",Et.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.handleInteraction=function(t){("click"===t.type||"Enter"===t.key||13===t.keyCode)&&this.adapter.notifyIconAction()},e}(s),vt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),n.prototype.getDefaultFoundation=function(){var t=this;return new At({getAttr:function(i){return t.root.getAttribute(i)},setAttr:function(i,n){return t.root.setAttribute(i,n)},removeAttr:function(i){return t.root.removeAttribute(i)},setContent:function(i){t.root.textContent=i},registerInteractionHandler:function(i,n){return t.listen(i,n)},deregisterInteractionHandler:function(i,n){return t.unlisten(i,n)},notifyIconAction:function(){return t.emit(At.strings.ICON_EVENT,{},!0)}})},n}(o),gt=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return t(e,n),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t,i,n,e,s,r){if(void 0===t&&(t=function(t){return new l(t)}),void 0===i&&(i=function(t){return new d(t)}),void 0===n&&(n=function(t){return new m(t)}),void 0===e&&(e=function(t){return new ot(t)}),void 0===s&&(s=function(t){return new vt(t)}),void 0===r&&(r=function(t){return new bt(t)}),this.selectAnchor=this.root.querySelector(ct.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(ct.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(ct.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+ct.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(ct.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(ct.ARIA_CONTROLS));u&&(this.helperText=r(u))}this.menuSetup(e);var o=this.root.querySelector(ct.LABEL_SELECTOR);this.label=o?t(o):null;var h=this.root.querySelector(ct.LINE_RIPPLE_SELECTOR);this.lineRipple=h?i(h):null;var c=this.root.querySelector(ct.OUTLINE_SELECTOR);this.outline=c?n(c):null;var f=this.root.querySelector(ct.LEADING_ICON_SELECTOR);f&&(this.leadingIcon=s(f)),this.root.classList.contains(ht.OUTLINED)||(this.ripple=this.createRipple())},e.prototype.initialSyncWithDOM=function(){var t=this;if(this.handleFocus=function(){t.foundation.handleFocus()},this.handleBlur=function(){t.foundation.handleBlur()},this.handleClick=function(i){t.selectAnchor.focus(),t.foundation.handleClick(t.getNormalizedXCoordinate(i))},this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleMenuItemAction=function(i){t.foundation.handleMenuItemAction(i.detail.index)},this.handleMenuOpened=function(){t.foundation.handleMenuOpened()},this.handleMenuClosed=function(){t.foundation.handleMenuClosed()},this.handleMenuClosing=function(){t.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(g.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(g.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(g.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(st.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},e.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(g.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(g.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(st.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),n.prototype.destroy.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(t){this.foundation.setValue(t)},enumerable:!1,configurable:!0}),e.prototype.setValue=function(t,i){void 0===i&&(i=!1),this.foundation.setValue(t,i)},Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t,!0)},enumerable:!1,configurable:!0}),e.prototype.setSelectedIndex=function(t,i){void 0===i&&(i=!1),this.foundation.setSelectedIndex(t,!0,i)},Object.defineProperty(e.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(t){this.foundation.setDisabled(t),this.hiddenInput&&(this.hiddenInput.disabled=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation.setLeadingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconContent",{set:function(t){this.foundation.setLeadingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"helperTextContent",{set:function(t){this.foundation.setHelperTextContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultValidation",{set:function(t){this.foundation.setUseDefaultValidation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(t){this.foundation.setValid(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(t){this.foundation.setRequired(t)},enumerable:!1,configurable:!0}),e.prototype.layout=function(){this.foundation.layout()},e.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(ct.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},e.prototype.getDefaultFoundation=function(){var t=i(i(i(i({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new at(t,this.getFoundationMap())},e.prototype.menuSetup=function(t){this.menuElement=this.root.querySelector(ct.MENU_SELECTOR),this.menu=t(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(ct.VALUE_ATTR)||""}))},e.prototype.createRipple=function(){var t=this,n=i(i({},f.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(i,n){t.selectAnchor.addEventListener(i,n)},deregisterInteractionHandler:function(i,n){t.selectAnchor.removeEventListener(i,n)}});return new f(this.selectAnchor,new a(n))},e.prototype.getSelectAdapterMethods=function(){var t=this;return{getMenuItemAttr:function(t,i){return t.getAttribute(i)},setSelectedText:function(i){t.selectedText.textContent=i},isSelectAnchorFocused:function(){return document.activeElement===t.selectAnchor},getSelectAnchorAttr:function(i){return t.selectAnchor.getAttribute(i)},setSelectAnchorAttr:function(i,n){t.selectAnchor.setAttribute(i,n)},removeSelectAnchorAttr:function(i){t.selectAnchor.removeAttribute(i)},addMenuClass:function(i){t.menuElement.classList.add(i)},removeMenuClass:function(i){t.menuElement.classList.remove(i)},openMenu:function(){t.menu.open=!0},closeMenu:function(){t.menu.open=!1},getAnchorElement:function(){return t.root.querySelector(ct.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(i){t.menu.setAnchorElement(i)},setMenuAnchorCorner:function(i){t.menu.setAnchorCorner(i)},setMenuWrapFocus:function(i){t.menu.wrapFocus=i},getSelectedIndex:function(){var i=t.menu.selectedIndex;return i instanceof Array?i[0]:i},setSelectedIndex:function(i){t.menu.selectedIndex=i},focusMenuItemAtIndex:function(i){t.menu.items[i].focus()},getMenuItemCount:function(){return t.menu.items.length},getMenuItemValues:function(){return t.menuItemValues},getMenuItemTextAtIndex:function(i){return t.menu.getPrimaryTextAtIndex(i)},isTypeaheadInProgress:function(){return t.menu.typeaheadInProgress},typeaheadMatchItem:function(i,n){return t.menu.typeaheadMatchItem(i,n)}}},e.prototype.getCommonAdapterMethods=function(){var t=this;return{addClass:function(i){t.root.classList.add(i)},removeClass:function(i){t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},setRippleCenter:function(i){t.lineRipple&&t.lineRipple.setRippleCenter(i)},activateBottomLine:function(){t.lineRipple&&t.lineRipple.activate()},deactivateBottomLine:function(){t.lineRipple&&t.lineRipple.deactivate()},notifyChange:function(i){t.hiddenInput&&(t.hiddenInput.value=i),t.emit(ct.CHANGE_EVENT,{value:i,index:t.selectedIndex},!0)}}},e.prototype.getOutlineAdapterMethods=function(){var t=this;return{hasOutline:function(){return Boolean(t.outline)},notchOutline:function(i){t.outline&&t.outline.notch(i)},closeOutline:function(){t.outline&&t.outline.closeNotch()}}},e.prototype.getLabelAdapterMethods=function(){var t=this;return{hasLabel:function(){return!!t.label},floatLabel:function(i){t.label&&t.label.float(i)},getLabelWidth:function(){return t.label?t.label.getWidth():0},setLabelRequired:function(i){t.label&&t.label.setRequired(i)}}},e.prototype.getNormalizedXCoordinate=function(t){var i=t.target.getBoundingClientRect();return(this.isTouchEvent(t)?t.touches[0].clientX:t.clientX)-i.left},e.prototype.isTouchEvent=function(t){return Boolean(t.touches)},e.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},e}(o);
113
+ /**
114
+ * @license
115
+ * Copyright 2018 Google Inc.
116
+ *
117
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
118
+ * of this software and associated documentation files (the "Software"), to deal
119
+ * in the Software without restriction, including without limitation the rights
120
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
121
+ * copies of the Software, and to permit persons to whom the Software is
122
+ * furnished to do so, subject to the following conditions:
123
+ *
124
+ * The above copyright notice and this permission notice shall be included in
125
+ * all copies or substantial portions of the Software.
126
+ *
127
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
128
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
129
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
130
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
131
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
132
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
133
+ * THE SOFTWARE.
134
+ */export{gt as M}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as a,g as n,F as s}from"./p-ac75c7ad.js";const l=class{constructor(e){t(this,e),this.optionClick=i(this,"optionClick",7),this.focusFirstRadio=()=>{var t;let i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".radio");i&&i.focus()},this.handleKeyClick=(t,i,e)=>{if(t instanceof KeyboardEvent){const a=()=>{var i,e;if(t.shiftKey){let t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(".restart-quiz-button");t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".previous-slide-button");t&&t.focus()}},n=()=>{var t,i,e;let a=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("ptc-button");if(a){let t=null===(i=a.shadowRoot)||void 0===i?void 0:i.querySelector('a[tabindex="0"]');t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".previous-slide-button");t&&t.focus()}},s=()=>{var t,i,e;let a=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelectorAll("ptc-button");if(a.length>0){let t=null===(i=a[a.length-1].shadowRoot)||void 0===i?void 0:i.querySelector('a[tabindex="0"]');t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".restart-quiz-button");t&&t.focus()}},l=()=>{t.preventDefault(),document.activeElement.blur(),i(),setTimeout((()=>{"result"===this.slide["slide-type"]?n():this.focusFirstRadio()}),500)},r=t=>{var i;t===this.slide.options.length?t=0:t<0&&(t=this.slide.options.length-1);let e=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.radio[data-key="${t}"]`);e&&e.focus()};switch(t.key){case"Tab":switch(e){case-1:break;case-2:t.shiftKey&&(t.preventDefault(),"result"===this.slide["slide-type"]?s():this.focusFirstRadio());break;default:e>=0&&(t.preventDefault(),a())}break;case" ":switch(e){case-1:case-2:break;case-3:l();break;default:e>=0&&l()}break;case"Enter":switch(e){case-1:case-2:case-3:l();break;default:e>=0&&l()}break;case"ArrowRight":case"ArrowDown":e>=0&&r(e+1);break;case"ArrowLeft":case"ArrowUp":e>=0&&r(e-1)}}},this.getQuizEndpoint=void 0,this.quiz=null,this.slide=null,this.traversal=[],this.restartQuizText=void 0,this.previousButtonText=void 0,this.startButtonText=void 0}handleStartButtonClick(){this.slide=this.slide.next,this.traversal.push("next")}handleRestartButtonClick(){this.slide=this.quiz,this.traversal=[]}handlePreviousButtonClick(){let t=this.quiz;for(let i of this.traversal.slice(0,this.traversal.length-3))t=t[i];this.slide=t,this.traversal=this.traversal.slice(0,this.traversal.length-3)}handleQuestionOptionClick(t){let i=this.el.shadowRoot.getElementById(`radio-${t}`);i.classList.add("clicked"),setTimeout((()=>{let[e,a]=[null,null],n=this.slide.options;for(let i in n)if(n[i]["data-model-id"]===t){e=n[i],a=i;break}if(this.optionClick.emit(e),null!=e.next){this.traversal=[...this.traversal,"options",a,"next"];let t=new Image;t.src=e.next.image,t.onload=()=>{this.slide=e.next,i.classList.remove("clicked")}}}),200)}componentWillLoad(){fetch(this.getQuizEndpoint).then((t=>t.json())).then((t=>{this.quiz=t,this.slide=this.quiz})).catch((t=>console.log("Quiz retireval error: ",t)))}render(){const t=()=>e("div",{class:"right-button-container"},e("div",{id:"restart-quiz-button",class:"restart-quiz-button mf-listen",onClick:()=>this.handleRestartButtonClick(),onKeyDown:t=>this.handleKeyClick(t,(()=>this.handleRestartButtonClick()),-1),tabIndex:0},e("icon-asset",{id:"restart-arrow",type:"ptc",size:"small",name:"quiz-arrow-restart"}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.restartQuizText||"Restart"))),i=t=>e("div",{class:"center-button-container"},e("div",{id:"previous-slide-button",class:"previous-slide-button mf-listen "+(t.invisible?"invisible":""),onClick:()=>this.handlePreviousButtonClick(),onKeyDown:t=>this.handleKeyClick(t,(()=>this.handlePreviousButtonClick()),-2),tabIndex:0},e("icon-asset",{id:"left-arrow",type:"ptc",size:"medium",name:"quiz-arrow-left",onClick:()=>{}}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.previousButtonText||"Previous"))),n=()=>e("div",{class:"quiz-slide-initial"},e("div",{class:"quiz-slide-content"},e("div",{id:"initial-quiz-h2",class:"quiz-slide-text-container"},e("ptc-title",{type:"h2","text-align":"center","title-size":"xx-large","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-8","is-plm-hub":"false"},this.slide.h2)),e("ptc-spacer",{size:"medium",breakpoint:"small"}),e("ptc-spacer",{size:"large",breakpoint:"x-small"}),e("div",{id:"initial-quiz-h3",class:"quiz-slide-text-container"},e("ptc-title",{type:"h3","text-align":"center","title-size":"large","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.h3)),e("ptc-spacer",{size:"x-large",breakpoint:"small"}),e("ptc-spacer",{size:"xx-large",breakpoint:"x-small"}),e("div",{id:"initial-quiz-p",class:"quiz-slide-text-container"},e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"center","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.slide.p)),e("div",{class:"center-button-container"},e("div",{id:"quiz-start-button",onClick:()=>this.handleStartButtonClick()},e("ptc-button",{type:"link",color:"ptc-tertiary","link-href":"",target:"_blank",onKeyDown:t=>this.handleKeyClick(t,(()=>this.handleStartButtonClick()),-3),"tracker-id":"quiz-start-button"},this.startButtonText||"Start"))))),l=()=>e("div",{class:"quiz-slide-question"},e("div",{class:"quiz-slide-content"},e("div",{class:"quiz-slide-dual-layout"},e("div",{class:"image-container"},e("img",{alt:"",src:this.slide.image})),e("div",{class:"content-container"},e("ptc-title",{type:"h4","text-align":"left","title-size":"medium","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.question),e("div",{class:"options-container"},this.slide.options.map(((t,i)=>e("div",{id:`option-${t["data-model-id"]}`,class:"radio-input mf-listen",onClick:()=>this.handleQuestionOptionClick(t["data-model-id"]),onKeyDown:e=>this.handleKeyClick(e,(()=>this.handleQuestionOptionClick(t["data-model-id"])),i),"data-key":i},e("span",{id:`radio-${t["data-model-id"]}`,class:"radio",tabIndex:0,"data-key":i}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},t["data-value"]))))))))),r=()=>e("div",{class:"quiz-slide-result"},e("div",{class:"quiz-slide-content"},e("div",{class:"quiz-slide-dual-layout"},e("div",{class:"image-container"},e("img",{alt:"",src:this.slide.image})),e("div",{class:"content-container"},e("ptc-title",{type:"h4","text-align":"left","title-size":"medium","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.title),e("ptc-spacer",{size:"large",breakpoint:"small"}),e("ptc-spacer",{size:"x-large",breakpoint:"x-small"}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-bottom-6","para-style":"","para-z-index":"z-1",styles:""},this.slide.description),e("div",{class:"cta-container"},this.slide["cta-quaternary"]&&e("ptc-button",{type:"link",target:this.slide["cta-quaternary"].target,color:"ptc-quaternary","link-href":this.slide["cta-quaternary"].href,"tracker-id":"final-cta-quaternary"},this.slide["cta-quaternary"].text),this.slide["cta-tertiary"]&&e("ptc-button",{type:"link",target:this.slide["cta-tertiary"].target,color:"ptc-tertiary","link-href":this.slide["cta-tertiary"].href,"tracker-id":"final-cta-tertiary"},this.slide["cta-tertiary"].text))))));return e(a,null,this.quiz&&e("div",{class:"quiz-slide-container"},e("div",{class:"quiz-slide-background"}),e("slot",{name:"seo-content"}),(()=>{switch(this.slide["slide-type"]){case"initial":return e(n,null);case"question":return e(s,null,e(t,null),e(l,null),this.traversal.length>1?e(i,null):null);case"result":return e(s,null,e(t,null),e(r,null),e(i,null));default:return null}})()))}get el(){return n(this)}};l.style='h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .quiz-slide-container{position:relative;width:100%;border:1px solid var(--color-gray-12);background-color:white;z-index:1}:host .quiz-slide-container .quiz-slide-text-container{max-width:calc(24 * var(--ptc-element-spacing-07))}:host .quiz-slide-background{position:absolute;top:0;left:0;width:100%;height:100%;background:url("https://www.ptc.com/-/media/Development/Embedded-Vuforia-Quiz/vuforia-background-guide-01.svg");background-size:cover;background-position:center;opacity:0.2;z-index:-1}:host .quiz-slide-initial{padding:var(--ptc-element-spacing-08);display:flex;justify-content:center}:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-result .cta-container{display:flex;flex-direction:column;align-items:center}:host .quiz-slide-result .cta-container ptc-button{flex:1 0 100%;margin:0 0 var(--ptc-element-spacing-05) 0}:host .right-button-container{display:flex;justify-content:right}:host .right-button-container .restart-quiz-button{display:flex;margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) 0 0;transition:var(--ptc-transition-slow)}:host .right-button-container .restart-quiz-button #restart-arrow{display:flex;align-items:center}:host .right-button-container .restart-quiz-button #restart-arrow svg{z-index:2;margin-right:var(--ptc-element-spacing-03)}:host .right-button-container .restart-quiz-button:hover{cursor:pointer}:host .right-button-container .restart-quiz-button:hover #restart-arrow svg{transform:rotate(270deg)}:host .right-button-container .restart-quiz-button:hover ptc-para{opacity:0.7}:host .right-button-container .restart-quiz-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .center-button-container{display:flex;justify-content:center}:host .previous-slide-button{display:flex;align-items:center;margin:0 0 var(--ptc-element-spacing-06) 0;transition:var(--ptc-transition-slow)}:host .previous-slide-button icon-asset{z-index:2;display:flex;align-items:center;margin-right:var(--ptc-element-spacing-03)}:host .previous-slide-button:hover{cursor:pointer}:host .previous-slide-button:hover icon-asset svg{transform:translateX(-8px)}:host .previous-slide-button:hover ptc-para{opacity:0.7}:host .previous-slide-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .quiz-slide-dual-layout .image-container{padding-top:var(--ptc-element-spacing-06);display:flex;justify-content:center;height:calc(4 * var(--ptc-element-spacing-08));width:100%}:host .quiz-slide-dual-layout .image-container img{height:100%;width:100%}:host .quiz-slide-dual-layout .content-container{margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-08) var(--ptc-element-spacing-08) var(--ptc-element-spacing-08)}:host .quiz-slide-dual-layout .content-container .options-container{margin-top:var(--ptc-element-spacing-06);padding-left:var(--ptc-element-spacing-05);display:flex;flex-wrap:wrap;z-index:2}:host .quiz-slide-dual-layout .content-container .options-container .radio-input{flex:1 0 100%;margin-bottom:var(--ptc-element-spacing-06);display:flex;align-items:start;display:flex;align-items:flex-start}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio{width:16px;height:16px;border-radius:var(--ptc-border-radius-circle);border:var(--color-gray-10) solid 1px;z-index:2;padding:3px;box-sizing:border-box;flex-shrink:0;margin-top:var(--ptc-element-spacing-01);background-color:white}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio.clicked{border:var(--color-blue-08) solid 1px;background:var(--color-blue-08);background-clip:content-box, padding-box}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);border-radius:50%}:host .quiz-slide-dual-layout .content-container .options-container .radio-input ptc-para{padding:0 var(--ptc-element-spacing-02) 0 var(--ptc-element-spacing-03)}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:hover{cursor:pointer}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:hover .radio{box-shadow:var(--ptc-shadow-x-small)}@media only screen and (min-width: 768px){:host .quiz-slide-container{min-height:calc(10 * var(--ptc-element-spacing-08));position:relative}:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-dual-layout{margin:0 var(--ptc-element-spacing-06) 0 var(--ptc-element-spacing-06)}:host .quiz-slide-dual-layout .image-container{height:calc(9 * var(--ptc-element-spacing-06));width:100%}:host .quiz-slide-dual-layout .image-container img{height:100%;width:auto}:host .quiz-slide-dual-layout .content-container{margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-08) var(--ptc-element-spacing-06)}:host .quiz-slide-dual-layout .content-container .options-container .radio-input{flex:1 0 48%}}@media only screen and (min-width: 992px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-dual-layout .image-container{height:calc(8 * var(--ptc-element-spacing-07));width:auto}}@media only screen and (min-width: 1200px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-01) + var(--ptc-element-spacing-06)) 0}:host .quiz-slide-result .cta-container{flex-direction:row}:host .quiz-slide-result .cta-container ptc-button{flex:none;margin:0 var(--ptc-element-spacing-05) 0 0}:host .quiz-slide-dual-layout{display:flex;margin-bottom:var(--ptc-element-spacing-08)}:host .quiz-slide-dual-layout .image-container{flex-shrink:0;display:flex;align-items:center;height:calc(7 * var(--ptc-element-spacing-07));width:calc(15 * var(--ptc-element-spacing-07))}:host .quiz-slide-dual-layout .image-container img{height:100%;max-height:calc(7 * var(--ptc-element-spacing-07));max-width:calc(15 * var(--ptc-element-spacing-07))}:host .quiz-slide-dual-layout .content-container .options-container{padding-left:0}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:nth-of-type(odd){margin-right:4%}}@media only screen and (min-width: 1440px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 var(--ptc-element-spacing-07) 0}}::slotted([slot=seo-content]){display:none}';export{l as ptc_embedded_quiz}
1
+ import{r as t,c as i,h as e,H as a,g as n,F as l}from"./p-ac75c7ad.js";const s=class{constructor(e){t(this,e),this.optionClick=i(this,"optionClick",7),this.focusFirstRadio=()=>{var t;let i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".radio");i&&i.focus()},this.handleKeyClick=(t,i,e)=>{if(t instanceof KeyboardEvent){const a=()=>{var i,e;if(t.shiftKey){let t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(".restart-quiz-button");t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".previous-slide-button");t&&t.focus()}},n=()=>{var t,i,e;let a=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("ptc-button");if(a){let t=null===(i=a.shadowRoot)||void 0===i?void 0:i.querySelector('a[tabindex="0"]');t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".previous-slide-button");t&&t.focus()}},l=()=>{var t,i,e;let a=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelectorAll("ptc-button");if(a.length>0){let t=null===(i=a[a.length-1].shadowRoot)||void 0===i?void 0:i.querySelector('a[tabindex="0"]');t&&t.focus()}else{let t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".restart-quiz-button");t&&t.focus()}},s=()=>{t.preventDefault(),document.activeElement.blur(),i(),setTimeout((()=>{"result"===this.slide["slide-type"]?n():this.focusFirstRadio()}),500)},r=t=>{var i;t===this.slide.options.length?t=0:t<0&&(t=this.slide.options.length-1);let e=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.radio[data-key="${t}"]`);e&&e.focus()};switch(t.key){case"Tab":switch(e){case-1:break;case-2:t.shiftKey&&(t.preventDefault(),"result"===this.slide["slide-type"]?l():this.focusFirstRadio());break;default:e>=0&&(t.preventDefault(),a())}break;case" ":switch(e){case-1:case-2:break;case-3:s();break;default:e>=0&&s()}break;case"Enter":switch(e){case-1:case-2:case-3:s();break;default:e>=0&&s()}break;case"ArrowRight":case"ArrowDown":e>=0&&r(e+1);break;case"ArrowLeft":case"ArrowUp":e>=0&&r(e-1)}}},this.getQuizEndpoint=void 0,this.quiz=null,this.slide=null,this.traversal=[],this.restartQuizText=void 0,this.previousButtonText=void 0,this.startButtonText=void 0}handleStartButtonClick(){this.slide=this.slide.next,this.traversal.push("next")}handleRestartButtonClick(){this.slide=this.quiz,this.traversal=[]}handlePreviousButtonClick(){let t=this.quiz;for(let i of this.traversal.slice(0,this.traversal.length-3))t=t[i];this.slide=t,this.traversal=this.traversal.slice(0,this.traversal.length-3)}handleQuestionOptionClick(t){let i=this.el.shadowRoot.getElementById(`radio-${t}`);i.classList.add("clicked"),setTimeout((()=>{let[e,a]=[null,null],n=this.slide.options;for(let i in n)if(n[i]["data-model-id"]===t){e=n[i],a=i;break}if(this.optionClick.emit(e),null!=e.next){this.traversal=[...this.traversal,"options",a,"next"];let t=new Image;t.src=e.next.image,t.onload=()=>{this.slide=e.next,i.classList.remove("clicked")}}}),200)}componentWillLoad(){fetch(this.getQuizEndpoint).then((t=>t.json())).then((t=>{this.quiz=t,this.slide=this.quiz})).catch((t=>console.log("Quiz retireval error: ",t)))}render(){const t=()=>e("div",{class:"right-button-container"},e("div",{id:"restart-quiz-button",class:"restart-quiz-button mf-listen",onClick:()=>this.handleRestartButtonClick(),onKeyDown:t=>this.handleKeyClick(t,(()=>this.handleRestartButtonClick()),-1),tabIndex:0},e("icon-asset",{id:"restart-arrow",type:"ptc",size:"small",name:"quiz-arrow-restart"}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.restartQuizText||"Restart"))),i=t=>e("div",{class:"center-button-container"},e("div",{id:"previous-slide-button",class:"previous-slide-button mf-listen "+(t.invisible?"invisible":""),onClick:()=>this.handlePreviousButtonClick(),onKeyDown:t=>this.handleKeyClick(t,(()=>this.handlePreviousButtonClick()),-2),tabIndex:0},e("icon-asset",{id:"left-arrow",type:"ptc",size:"medium",name:"quiz-arrow-left",onClick:()=>{}}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.previousButtonText||"Previous"))),n=()=>e("div",{class:"quiz-slide-initial"},e("div",{class:"quiz-slide-content"},e("div",{id:"initial-quiz-h2",class:"quiz-slide-text-container"},e("ptc-title",{type:"h2","text-align":"center","title-size":"xx-large","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-8","is-plm-hub":"false"},this.slide.h2)),e("ptc-spacer",{size:"medium",breakpoint:"small"}),e("ptc-spacer",{size:"large",breakpoint:"x-small"}),e("div",{id:"initial-quiz-h3",class:"quiz-slide-text-container"},e("ptc-title",{type:"h3","text-align":"center","title-size":"large","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.h3)),e("ptc-spacer",{size:"x-large",breakpoint:"small"}),e("ptc-spacer",{size:"xx-large",breakpoint:"x-small"}),e("div",{id:"initial-quiz-p",class:"quiz-slide-text-container"},e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"center","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},this.slide.p)),e("div",{class:"center-button-container"},e("div",{id:"quiz-start-button",onClick:()=>this.handleStartButtonClick()},e("ptc-button",{type:"link",color:"ptc-tertiary","link-href":"",target:"_blank",onKeyDown:t=>this.handleKeyClick(t,(()=>this.handleStartButtonClick()),-3),"tracker-id":"quiz-start-button"},this.startButtonText||"Start"))))),s=()=>e("div",{class:"quiz-slide-question"},e("div",{class:"quiz-slide-content"},e("div",{class:"quiz-slide-dual-layout"},e("div",{class:"image-container"},e("img",{alt:"",src:this.slide.image})),e("div",{class:"content-container"},e("ptc-title",{type:"h4","text-align":"left","title-size":"medium","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.question),e("div",{class:"options-container"},this.slide.options.map(((t,i)=>e("div",{id:`option-${t["data-model-id"]}`,class:"radio-input mf-listen",onClick:()=>this.handleQuestionOptionClick(t["data-model-id"]),onKeyDown:e=>this.handleKeyClick(e,(()=>this.handleQuestionOptionClick(t["data-model-id"])),i),"data-key":i},e("span",{id:`radio-${t["data-model-id"]}`,class:"radio",tabIndex:0,"data-key":i}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-flush","para-style":"","para-z-index":"z-1",styles:""},t["data-value"]))))))))),r=()=>e("div",{class:"quiz-slide-result"},e("div",{class:"quiz-slide-content"},e("div",{class:"quiz-slide-dual-layout"},e("div",{class:"image-container"},e("img",{alt:"",src:this.slide.image})),e("div",{class:"content-container"},e("ptc-title",{type:"h4","text-align":"left","title-size":"medium","title-color":"gray",upperline:"no-upperline","title-display":"inline-block","title-shadow":"","title-height":"densest","title-margin":"margin-flush","title-weight":"w-7","is-plm-hub":"false"},this.slide.title),e("ptc-spacer",{size:"large",breakpoint:"small"}),e("ptc-spacer",{size:"x-large",breakpoint:"x-small"}),e("ptc-para",{"ellipsis-line-cutoff":"0","font-size":"x-small","font-weight":"w-4","para-align":"left","para-color":"primary-grey","para-line-h":"line-height-p","para-margin":"margin-bottom-6","para-style":"","para-z-index":"z-1",styles:""},this.slide.description),e("div",{class:"cta-container"},this.slide["cta-quaternary"]&&e("ptc-button",{type:"link",target:this.slide["cta-quaternary"].target,color:"ptc-quaternary","link-href":this.slide["cta-quaternary"].href,"tracker-id":"final-cta-quaternary"},this.slide["cta-quaternary"].text),this.slide["cta-tertiary"]&&e("ptc-button",{type:"link",target:this.slide["cta-tertiary"].target,color:"ptc-tertiary","link-href":this.slide["cta-tertiary"].href,"tracker-id":"final-cta-tertiary"},this.slide["cta-tertiary"].text))))));return e(a,null,this.quiz&&e("div",{class:"quiz-slide-container"},e("div",{class:"quiz-slide-background"}),e("slot",{name:"seo-content"}),(()=>{switch(this.slide["slide-type"]){case"initial":return e(n,null);case"question":return e(l,null,e(t,null),e(s,null),this.traversal.length>1?e(i,null):null);case"result":return e(l,null,e(t,null),e(r,null),e(i,null));default:return null}})()))}get el(){return n(this)}};s.style='h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .quiz-slide-container{position:relative;width:100%;border:1px solid var(--color-gray-12);background-color:white;z-index:1}:host .quiz-slide-container .quiz-slide-text-container{max-width:calc(24 * var(--ptc-element-spacing-07))}:host .quiz-slide-background{position:absolute;top:0;left:0;width:100%;height:100%;background:url("https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/653ad11042174bd1ae42c69d922f95fc");background-size:cover;background-position:center;opacity:0.2;z-index:-1}:host .quiz-slide-initial{padding:var(--ptc-element-spacing-08);display:flex;justify-content:center}:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-result .cta-container{display:flex;flex-direction:column;align-items:center}:host .quiz-slide-result .cta-container ptc-button{flex:1 0 100%;margin:0 0 var(--ptc-element-spacing-05) 0}:host .right-button-container{display:flex;justify-content:right}:host .right-button-container .restart-quiz-button{display:flex;margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) 0 0;transition:var(--ptc-transition-slow)}:host .right-button-container .restart-quiz-button #restart-arrow{display:flex;align-items:center}:host .right-button-container .restart-quiz-button #restart-arrow svg{z-index:2;margin-right:var(--ptc-element-spacing-03)}:host .right-button-container .restart-quiz-button:hover{cursor:pointer}:host .right-button-container .restart-quiz-button:hover #restart-arrow svg{transform:rotate(270deg)}:host .right-button-container .restart-quiz-button:hover ptc-para{opacity:0.7}:host .right-button-container .restart-quiz-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .center-button-container{display:flex;justify-content:center}:host .previous-slide-button{display:flex;align-items:center;margin:0 0 var(--ptc-element-spacing-06) 0;transition:var(--ptc-transition-slow)}:host .previous-slide-button icon-asset{z-index:2;display:flex;align-items:center;margin-right:var(--ptc-element-spacing-03)}:host .previous-slide-button:hover{cursor:pointer}:host .previous-slide-button:hover icon-asset svg{transform:translateX(-8px)}:host .previous-slide-button:hover ptc-para{opacity:0.7}:host .previous-slide-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .quiz-slide-dual-layout .image-container{padding-top:var(--ptc-element-spacing-06);display:flex;justify-content:center;height:calc(4 * var(--ptc-element-spacing-08));width:100%}:host .quiz-slide-dual-layout .image-container img{height:100%;width:100%}:host .quiz-slide-dual-layout .content-container{margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-08) var(--ptc-element-spacing-08) var(--ptc-element-spacing-08)}:host .quiz-slide-dual-layout .content-container .options-container{margin-top:var(--ptc-element-spacing-06);padding-left:var(--ptc-element-spacing-05);display:flex;flex-wrap:wrap;z-index:2}:host .quiz-slide-dual-layout .content-container .options-container .radio-input{flex:1 0 100%;margin-bottom:var(--ptc-element-spacing-06);display:flex;align-items:start;display:flex;align-items:flex-start}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio{width:16px;height:16px;border-radius:var(--ptc-border-radius-circle);border:var(--color-gray-10) solid 1px;z-index:2;padding:3px;box-sizing:border-box;flex-shrink:0;margin-top:var(--ptc-element-spacing-01);background-color:white}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio.clicked{border:var(--color-blue-08) solid 1px;background:var(--color-blue-08);background-clip:content-box, padding-box}:host .quiz-slide-dual-layout .content-container .options-container .radio-input .radio:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);border-radius:50%}:host .quiz-slide-dual-layout .content-container .options-container .radio-input ptc-para{padding:0 var(--ptc-element-spacing-02) 0 var(--ptc-element-spacing-03)}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:hover{cursor:pointer}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:hover .radio{box-shadow:var(--ptc-shadow-x-small)}@media only screen and (min-width: 768px){:host .quiz-slide-container{min-height:calc(10 * var(--ptc-element-spacing-08));position:relative}:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-dual-layout{margin:0 var(--ptc-element-spacing-06) 0 var(--ptc-element-spacing-06)}:host .quiz-slide-dual-layout .image-container{height:calc(9 * var(--ptc-element-spacing-06));width:100%}:host .quiz-slide-dual-layout .image-container img{height:100%;width:auto}:host .quiz-slide-dual-layout .content-container{margin:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-08) var(--ptc-element-spacing-06)}:host .quiz-slide-dual-layout .content-container .options-container .radio-input{flex:1 0 48%}}@media only screen and (min-width: 992px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04)) 0}:host .quiz-slide-dual-layout .image-container{height:calc(8 * var(--ptc-element-spacing-07));width:auto}}@media only screen and (min-width: 1200px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 calc(var(--ptc-element-spacing-01) + var(--ptc-element-spacing-06)) 0}:host .quiz-slide-result .cta-container{flex-direction:row}:host .quiz-slide-result .cta-container ptc-button{flex:none;margin:0 var(--ptc-element-spacing-05) 0 0}:host .quiz-slide-dual-layout{display:flex;margin-bottom:var(--ptc-element-spacing-08)}:host .quiz-slide-dual-layout .image-container{flex-shrink:0;display:flex;align-items:center;height:calc(7 * var(--ptc-element-spacing-07));width:calc(15 * var(--ptc-element-spacing-07))}:host .quiz-slide-dual-layout .image-container img{height:100%;max-height:calc(7 * var(--ptc-element-spacing-07));max-width:calc(15 * var(--ptc-element-spacing-07))}:host .quiz-slide-dual-layout .content-container .options-container{padding-left:0}:host .quiz-slide-dual-layout .content-container .options-container .radio-input:nth-of-type(odd){margin-right:4%}}@media only screen and (min-width: 1440px){:host .quiz-slide-initial #initial-quiz-p{padding:0 0 var(--ptc-element-spacing-07) 0}}::slotted([slot=seo-content]){display:none}';export{s as ptc_embedded_quiz}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,g as h}from"./p-ac75c7ad.js";const s=class{constructor(i){t(this,i),this.escalated=!1,this.hideOnScroll=()=>{var t,i;let e=null===(i=null===(t=this.hostEle)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.querySelector("a.skip-link");null==e||e.blur()},this.escalateOnDom=()=>{if(this.appendSelector){const t=document.querySelector(this.appendSelector),i=this.hostEle;t&&(t.insertAdjacentElement("afterbegin",this.hostEle),i.classList.add("appended"),this.escalated=!0)}this.escalated||document.querySelector("body").insertAdjacentElement("afterbegin",this.hostEle)},this.offsetCta=()=>{const t=this.hostEle.shadowRoot.querySelector(".skip-link");t.style.left=`${this.xOffset}px`,t.style.top=`${this.yOffset}px`},this.componentWillLoad=()=>{this.escalateOnDom(),window.addEventListener("scroll",this.hideOnScroll)},this.componentDidLoad=()=>{this.appendSelector&&this.offsetCta()},this.disconnectedCallback=()=>{window.removeEventListener("scroll",this.hideOnScroll)},this.buttonText="Skip To Main Content",this.sectionId="",this.appendSelector=void 0,this.xOffset=void 0,this.yOffset=void 0}scrollToSection(t){t.preventDefault();const i=document.getElementById(this.sectionId);i&&i.scrollIntoView({behavior:"smooth"})}render(){return i(e,null,i("slot",null),i("a",{tabindex:0,class:"skip-link",href:"","aria-label":"Skip to main content",onClick:t=>this.scrollToSection(t)},this.buttonText))}get hostEle(){return h(this)}};s.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .skip-link{position:fixed;top:-200px}:host .skip-link:focus{top:0;display:block;padding:8px 12px;text-align:center;margin:8px;border-radius:var(--ptc-border-radius-standard);outline:5px solid #003DD6;background:#FFF;z-index:99999;box-shadow:var(--ptc-shadow-medium);text-decoration:none;color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-small);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-p)}:host(.appended){position:relative}:host(.appended) .skip-link:focus{position:absolute}";export{s as ptc_nav_skip_to_content}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as a}from"./p-ac75c7ad.js";const i=class{constructor(r){o(this,r),this.cardTitle=void 0,this.cardImage=void 0,this.cardImageAltText=void 0,this.moreText="More",this.lessText="Less",this.cardDescription=void 0,this.browserFirefox=!1,this.currentLanguage=void 0}render(){return r(a,null,r("ptc-title",{type:"h4",upperline:"no-upperline","title-margin":"margin-flush","title-size":"small","text-align":"center"},r("ptc-tooltip",{"text-display":"block","text-lines":"2","z-index":"z-999",description:this.cardTitle,position:"bottom",width:"full-width"})),r("ptc-picture",{alt:this.cardImageAltText,src:this.cardImage,"image-alignment":"center",width:"69","display-image":"inline-block",styles:"img{margin: 12px auto 18px auto}"}),r("ptc-para",{"font-size":"x-small","para-margin":"margin-flush","para-line-h":"line-height-densest","para-align":"left","para-z-index":"z-auto"},this.browserFirefox&&this.currentLanguage.toLowerCase().includes("ja")?r("slot",null):r("ptc-readmore",{"more-text":this.moreText,"less-text":this.lessText,"visible-lines-custom":"8","read-more-position":"left"},r("slot",null))))}};i.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto;height:100%}:host ptc-picture{min-height:100px}:host ptc-para ptc-readmore .box input~label{margin-right:0px}:host ptc-para a{color:var(--color-hyperlink)}";export{i as ptc_product_highlight_card}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as a,g as s}from"./p-ac75c7ad.js";import{i as n}from"./p-80122e26.js";const o=(t,i)=>!!t.querySelector(':scope > [slot="'+i+'"'),h=class{constructor(e){t(this,e),this.opened=i(this,"opened",7),this.opening=i(this,"opening",7),this.closed=i(this,"closed",7),this.closing=i(this,"closing",7),this.heading=null,this.headingTag="h3",this.autoHeight=!1,this.active=!1,this.theme="standard",this.trackerId=void 0,this.styles=void 0,this.hasHeadingSlot=!0,this.hasArrowSlot=!0}componentWillLoad(){this.hasHeadingSlot=o(this.el,"heading"),this.hasArrowSlot=o(this.el,"arrow"),this.allowHiddenUntil=n()}componentDidLoad(){this.autoHeight&&this.bodyEl.style.setProperty("--ptc-accordion-item-body-max-height",this.bodyEl.scrollHeight+2+"px"),this.onTransitionEnd(),this.bodyEl.addEventListener("transitionstart",(()=>{this.onTransitionStart()})),this.bodyEl.addEventListener("transitionend",(()=>{this.onTransitionEnd()})),this.hasHeadingSlot=o(this.el,"heading"),this.hasArrowSlot=o(this.el,"arrow")}onTransitionEnd(){this.active?(this.bodyEl.style.overflow="auto",this.opened.emit()):(this.bodyEl.style.overflow="hidden",this.allowHiddenUntil?this.bodyEl.setAttribute("hidden","until-found"):this.bodyEl.style.visibility="hidden",this.closed.emit())}onTransitionStart(){this.active?(this.allowHiddenUntil?this.bodyEl.removeAttribute("hidden"):this.bodyEl.style.visibility="visible",this.opening.emit()):this.closing.emit()}async toggle(){this.active?this.close():this.open()}async close(){this.active=!1}async open(){this.active=!0}beforeMatch(){this.open()}render(){const{active:t,autoHeight:i,theme:s,headingTag:n}=this,o=e("div",{class:"body-container",ref:t=>this.bodyEl=t,onBeforeMatch:()=>{this.beforeMatch()}},e("div",{class:"body"},e("slot",null)));return e(a,{class:{active:t,autoHeight:i},id:this.trackerId},this.styles&&e("style",null,this.styles),e("button",{class:{heading:!0,[s]:!0,"mf-listen":!0,"focus-status":!0},role:"button",onClick:()=>this.toggle(),id:this.trackerId},e("span",{class:"arrow"},this.hasArrowSlot?e("slot",{name:"arrow"}):e("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"},e("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))),this.hasHeadingSlot?e("slot",{name:"heading"}):e(n,{class:"heading-text"},this.heading)),o)}get el(){return s(this)}};h.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{border-bottom:1px solid var(--color-gray-03);display:block}:host .heading{display:flex;align-items:center;justify-content:initial;width:100%;border:none;text-align:left;padding:var(--ptc-element-spacing-06);padding-left:0;cursor:pointer;transition:border-radius var(--ptc-transition-fast) ease var(--ptc-transition-fast);background-color:transparent}:host .heading .heading-text{color:var(--color-gray-10);margin:0;font-weight:var(--ptc-font-weight-bold);flex:1;font-size:var(--ptc-font-size-medium);font-family:var(--ptc-font-latin)}:host .heading .arrow{color:var(--color-green-06);margin-right:var(--ptc-element-spacing-05);transition:transform var(--ptc-transition-fast) ease-in-out}:host .heading .arrow svg{width:34px;height:34px}:host .heading .arrow svg path{fill:currentColor}@media only screen and (min-width: 768px){:host .heading .heading-text{font-size:var(--ptc-font-size-large)}}:host .body-container{overflow:hidden;max-height:0;transition:max-height var(--ptc-transition-fast) ease-in-out;scrollbar-width:none;}:host .body-container::-webkit-scrollbar{display:none;}:host .body-container .body{border-top-left-radius:0;border-top-right-radius:0;overflow:hidden;padding:var(--ptc-layout-spacing-02);padding-top:0}@media only screen and (min-width: 360px){:host .body-container .body{padding-left:24px;padding-right:0px;padding-bottom:32px}}@media only screen and (min-width: 480px){:host .body-container .body{padding-left:32px;padding-right:0px;padding-bottom:32px}}:host(.autoHeight) .body-container{overflow:hidden}:host(.active) .heading{border-bottom-left-radius:0;border-bottom-right-radius:0;transition:border-radius 0s ease}:host(.active) .heading .arrow{transform:rotate(180deg)}:host(.active) .body-container{max-height:var(--ptc-accordion-item-body-max-height)}.heading.minimalist .arrow{display:none}.heading.minimalist h3.heading-text{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){.heading.minimalist h3.heading-text{font-size:var(--ptc-font-size-large)}}.focus-status:focus-visible{outline:5px solid var(--keyboard-nav-outline);border-radius:var(--ptc-border-radius-standard) !important;outline-offset:-5px}.body ::slotted(a):focus,.body ::slotted(a):focus-visible{outline:5px solid var(--keyboard-nav-outline) !important;border-radius:var(--ptc-border-radius-standard) !important}";export{h as ptc_accordion_item}
1
+ import{r as t,c as i,h as e,H as a,g as s}from"./p-ac75c7ad.js";import{i as n}from"./p-826c17e8.js";const o=(t,i)=>!!t.querySelector(':scope > [slot="'+i+'"'),h=class{constructor(e){t(this,e),this.opened=i(this,"opened",7),this.opening=i(this,"opening",7),this.closed=i(this,"closed",7),this.closing=i(this,"closing",7),this.heading=null,this.headingTag="h3",this.autoHeight=!1,this.active=!1,this.theme="standard",this.trackerId=void 0,this.styles=void 0,this.hasHeadingSlot=!0,this.hasArrowSlot=!0}componentWillLoad(){this.hasHeadingSlot=o(this.el,"heading"),this.hasArrowSlot=o(this.el,"arrow"),this.allowHiddenUntil=n()}componentDidLoad(){this.autoHeight&&this.bodyEl.style.setProperty("--ptc-accordion-item-body-max-height",this.bodyEl.scrollHeight+2+"px"),this.onTransitionEnd(),this.bodyEl.addEventListener("transitionstart",(()=>{this.onTransitionStart()})),this.bodyEl.addEventListener("transitionend",(()=>{this.onTransitionEnd()})),this.hasHeadingSlot=o(this.el,"heading"),this.hasArrowSlot=o(this.el,"arrow")}onTransitionEnd(){this.active?(this.bodyEl.style.overflow="auto",this.opened.emit()):(this.bodyEl.style.overflow="hidden",this.allowHiddenUntil?this.bodyEl.setAttribute("hidden","until-found"):this.bodyEl.style.visibility="hidden",this.closed.emit())}onTransitionStart(){this.active?(this.allowHiddenUntil?this.bodyEl.removeAttribute("hidden"):this.bodyEl.style.visibility="visible",this.opening.emit()):this.closing.emit()}async toggle(){this.active?this.close():this.open()}async close(){this.active=!1}async open(){this.active=!0}beforeMatch(){this.open()}render(){const{active:t,autoHeight:i,theme:s,headingTag:n}=this,o=e("div",{class:"body-container",ref:t=>this.bodyEl=t,onBeforeMatch:()=>{this.beforeMatch()}},e("div",{class:"body"},e("slot",null)));return e(a,{class:{active:t,autoHeight:i},id:this.trackerId},this.styles&&e("style",null,this.styles),e("button",{class:{heading:!0,[s]:!0,"mf-listen":!0,"focus-status":!0},role:"button",onClick:()=>this.toggle(),id:this.trackerId},e("span",{class:"arrow"},this.hasArrowSlot?e("slot",{name:"arrow"}):e("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"},e("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))),this.hasHeadingSlot?e("slot",{name:"heading"}):e(n,{class:"heading-text"},this.heading)),o)}get el(){return s(this)}};h.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{border-bottom:1px solid var(--color-gray-03);display:block}:host .heading{display:flex;align-items:center;justify-content:initial;width:100%;border:none;text-align:left;padding:var(--ptc-element-spacing-06);padding-left:0;cursor:pointer;transition:border-radius var(--ptc-transition-fast) ease var(--ptc-transition-fast);background-color:transparent}:host .heading .heading-text{color:var(--color-gray-10);margin:0;font-weight:var(--ptc-font-weight-bold);flex:1;font-size:var(--ptc-font-size-medium);font-family:var(--ptc-font-latin)}:host .heading .arrow{color:var(--color-green-06);margin-right:var(--ptc-element-spacing-05);transition:transform var(--ptc-transition-fast) ease-in-out}:host .heading .arrow svg{width:34px;height:34px}:host .heading .arrow svg path{fill:currentColor}@media only screen and (min-width: 768px){:host .heading .heading-text{font-size:var(--ptc-font-size-large)}}:host .body-container{overflow:hidden;max-height:0;transition:max-height var(--ptc-transition-fast) ease-in-out;scrollbar-width:none;}:host .body-container::-webkit-scrollbar{display:none;}:host .body-container .body{border-top-left-radius:0;border-top-right-radius:0;overflow:hidden;padding:var(--ptc-layout-spacing-02);padding-top:0}@media only screen and (min-width: 360px){:host .body-container .body{padding-left:24px;padding-right:0px;padding-bottom:32px}}@media only screen and (min-width: 480px){:host .body-container .body{padding-left:32px;padding-right:0px;padding-bottom:32px}}:host(.autoHeight) .body-container{overflow:hidden}:host(.active) .heading{border-bottom-left-radius:0;border-bottom-right-radius:0;transition:border-radius 0s ease}:host(.active) .heading .arrow{transform:rotate(180deg)}:host(.active) .body-container{max-height:var(--ptc-accordion-item-body-max-height)}.heading.minimalist .arrow{display:none}.heading.minimalist h3.heading-text{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){.heading.minimalist h3.heading-text{font-size:var(--ptc-font-size-large)}}.focus-status:focus-visible{outline:5px solid var(--keyboard-nav-outline);border-radius:var(--ptc-border-radius-standard) !important;outline-offset:-5px}.body ::slotted(a):focus,.body ::slotted(a):focus-visible{outline:5px solid var(--keyboard-nav-outline) !important;border-radius:var(--ptc-border-radius-standard) !important}";export{h as ptc_accordion_item}