@postnord/pn-marketweb-components 1.0.50 → 2.0.2-beta1

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 (224) hide show
  1. package/cjs/{index-5d2abef7.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-b6e46a26.js → index-e3e27c79.js} +3 -0
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  6. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  7. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  8. package/cjs/pn-find-price-result.cjs.entry.js +5 -5
  9. package/cjs/{pn-find-price-store-d1977b2e.js → pn-find-price-store-6aab7fd0.js} +1 -2
  10. package/cjs/pn-find-price.cjs.entry.js +9 -12
  11. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  12. package/cjs/{pn-find-service-and-price-store-2d7dd8e3.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  13. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  14. package/cjs/pn-language-selector_9.cjs.entry.js +3 -3
  15. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  16. package/cjs/{pn-mainnav-store-bbe3a1cf.js → pn-mainnav-store-61a75ea0.js} +1 -1
  17. package/cjs/pn-market-web-components.cjs.js +2 -2
  18. package/cjs/pn-marketweb-input.cjs.entry.js +76 -0
  19. package/cjs/pn-marketweb-search.cjs.entry.js +103 -0
  20. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  21. package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
  22. package/cjs/pn-pex-pricefinder.cjs.entry.js +11 -3
  23. package/cjs/pn-product-card_3.cjs.entry.js +9 -9
  24. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-product-pricelist-store-c88813f7.js → pn-product-pricelist-store-86310b5a.js} +1 -1
  26. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  27. package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
  28. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  29. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  30. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  31. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  32. package/cjs/{pn-sidenav-store-a753d3d7.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  33. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  34. package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
  35. package/collection/collection-manifest.json +2 -1
  36. package/collection/components/input/pn-marketweb-input/marketweb-input.stories.js +51 -0
  37. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +156 -0
  38. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +412 -0
  39. package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
  40. package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +22 -17
  41. package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +67 -9
  42. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  43. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  44. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  45. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  46. package/collection/components/widgets/pn-find-price/pn-find-price.css +17 -4
  47. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  48. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  49. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  50. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  51. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  52. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  53. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  54. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  55. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  56. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  57. package/custom-elements/index.d.ts +12 -6
  58. package/custom-elements/index.js +201 -91
  59. package/esm/{index-02847864.js → index-5397620b.js} +4 -1
  60. package/esm/{index-1978107a.js → index-7b21ecff.js} +1 -1
  61. package/esm/loader.js +2 -2
  62. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  63. package/esm/pn-bonus-progressbar.entry.js +1 -1
  64. package/esm/pn-choice-button.entry.js +1 -1
  65. package/esm/pn-filter-checkbox.entry.js +1 -1
  66. package/esm/pn-find-price-result.entry.js +5 -5
  67. package/esm/{pn-find-price-store-b2f18af4.js → pn-find-price-store-3301df0a.js} +1 -2
  68. package/esm/pn-find-price.entry.js +9 -12
  69. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  70. package/esm/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  71. package/esm/pn-find-service-and-price.entry.js +3 -3
  72. package/esm/pn-language-selector_9.entry.js +3 -3
  73. package/esm/pn-mainnav-link.entry.js +3 -3
  74. package/esm/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  75. package/esm/pn-market-web-components.js +2 -2
  76. package/esm/pn-marketweb-input.entry.js +72 -0
  77. package/esm/pn-marketweb-search.entry.js +99 -0
  78. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  79. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  80. package/esm/pn-pex-pricefinder.entry.js +11 -3
  81. package/esm/pn-product-card_3.entry.js +9 -9
  82. package/esm/pn-product-pricelist-result.entry.js +3 -3
  83. package/esm/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  84. package/esm/pn-product-pricelist.entry.js +4 -4
  85. package/esm/pn-product-tile_3.entry.js +1 -1
  86. package/esm/pn-profile-selector-option.entry.js +1 -1
  87. package/esm/pn-profile-selector.entry.js +1 -1
  88. package/esm/pn-sidenav-level.entry.js +3 -3
  89. package/esm/pn-sidenav-link.entry.js +3 -3
  90. package/esm/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  91. package/esm/pn-sidenav.entry.js +3 -3
  92. package/esm/pn-site-footer_2.entry.js +1 -1
  93. package/esm-es5/{index-02847864.js → index-5397620b.js} +1 -1
  94. package/esm-es5/{index-1978107a.js → index-7b21ecff.js} +1 -1
  95. package/esm-es5/loader.js +1 -1
  96. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  97. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  98. package/esm-es5/pn-choice-button.entry.js +1 -1
  99. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  100. package/esm-es5/pn-find-price-result.entry.js +1 -1
  101. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  102. package/esm-es5/pn-find-price.entry.js +1 -1
  103. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  104. package/esm-es5/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  105. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  106. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  107. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  108. package/esm-es5/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  109. package/esm-es5/pn-market-web-components.js +1 -1
  110. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  111. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  112. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  113. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  114. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  115. package/esm-es5/pn-product-card_3.entry.js +1 -1
  116. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  117. package/esm-es5/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  118. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  119. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  120. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  121. package/esm-es5/pn-profile-selector.entry.js +1 -1
  122. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  123. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  124. package/esm-es5/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  125. package/esm-es5/pn-sidenav.entry.js +1 -1
  126. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  127. package/package.json +1 -1
  128. package/pn-market-web-components/{p-0f17a915.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  129. package/pn-market-web-components/{p-3163e45b.system.js → p-02ea55ad.system.js} +1 -1
  130. package/pn-market-web-components/{p-6926ecdf.entry.js → p-045a349a.entry.js} +1 -1
  131. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  132. package/pn-market-web-components/{p-2f899d96.js → p-0cacf9fb.js} +1 -1
  133. package/pn-market-web-components/{p-b99c5d79.entry.js → p-10b95894.entry.js} +1 -1
  134. package/pn-market-web-components/{p-0e4a8305.system.entry.js → p-13eb4c66.system.entry.js} +1 -1
  135. package/pn-market-web-components/{p-ad2c41d8.entry.js → p-15112837.entry.js} +1 -1
  136. package/pn-market-web-components/{p-89907168.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  137. package/pn-market-web-components/{p-75654937.entry.js → p-227e1d46.entry.js} +1 -1
  138. package/pn-market-web-components/{p-3e3fed19.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  139. package/pn-market-web-components/{p-0a95c2b9.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  140. package/pn-market-web-components/p-29d5e118.entry.js +1 -0
  141. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  142. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  143. package/pn-market-web-components/p-3af9dfc5.system.entry.js +1 -0
  144. package/pn-market-web-components/{p-8bb99125.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  145. package/pn-market-web-components/{p-f2ca2961.entry.js → p-40264b65.entry.js} +1 -1
  146. package/pn-market-web-components/{p-c932f5f5.entry.js → p-51df9292.entry.js} +1 -1
  147. package/pn-market-web-components/{p-c089e9b5.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  148. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  149. package/pn-market-web-components/{p-b0a2b362.entry.js → p-5c41acb2.entry.js} +1 -1
  150. package/pn-market-web-components/p-5d587499.js +1 -0
  151. package/pn-market-web-components/{p-8a3c3674.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  152. package/pn-market-web-components/p-67887512.system.js +1 -0
  153. package/pn-market-web-components/{p-465baa55.entry.js → p-715d1ef7.entry.js} +1 -1
  154. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  155. package/pn-market-web-components/{p-bb69b9ff.entry.js → p-774b7a9f.entry.js} +1 -1
  156. package/pn-market-web-components/{p-b14d20bd.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  157. package/pn-market-web-components/{p-bc4da3dd.entry.js → p-7d75ea68.entry.js} +1 -1
  158. package/pn-market-web-components/p-7e494e9d.system.entry.js +1 -0
  159. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  160. package/pn-market-web-components/{p-ec78fe82.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  161. package/pn-market-web-components/{p-27168bcc.entry.js → p-81d764a0.entry.js} +1 -1
  162. package/pn-market-web-components/{p-aa625cb0.system.js → p-825b8fb8.system.js} +1 -1
  163. package/pn-market-web-components/{p-271f42e8.js → p-84699999.js} +1 -1
  164. package/pn-market-web-components/{p-5629de79.entry.js → p-86b271f4.entry.js} +1 -1
  165. package/pn-market-web-components/p-86f06e26.js +1 -0
  166. package/pn-market-web-components/{p-547a9203.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  167. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  168. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  169. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  170. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  171. package/pn-market-web-components/{p-b5fbf807.system.js → p-a5f75560.system.js} +1 -1
  172. package/pn-market-web-components/{p-fed64b11.entry.js → p-adc639c8.entry.js} +1 -1
  173. package/pn-market-web-components/{p-aa59101e.system.js → p-add7d76c.system.js} +1 -1
  174. package/pn-market-web-components/{p-99d6a75c.js → p-ae2bd55f.js} +1 -1
  175. package/pn-market-web-components/{p-c74ee774.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  176. package/pn-market-web-components/{p-d71027bc.entry.js → p-b4f0228c.entry.js} +1 -1
  177. package/pn-market-web-components/p-bb626ab4.js +1 -0
  178. package/pn-market-web-components/{p-5cb8ae86.entry.js → p-c0c52dc6.entry.js} +1 -1
  179. package/pn-market-web-components/{p-415b6c13.entry.js → p-c240b614.entry.js} +1 -1
  180. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  181. package/pn-market-web-components/{p-3bef52c8.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  182. package/pn-market-web-components/{p-07733b06.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  183. package/pn-market-web-components/{p-15a18941.system.entry.js → p-d7776336.system.entry.js} +1 -1
  184. package/pn-market-web-components/{p-f2307b30.entry.js → p-e056d2c6.entry.js} +1 -1
  185. package/pn-market-web-components/{p-0c1d92ed.entry.js → p-e474b831.entry.js} +1 -1
  186. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  187. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  188. package/pn-market-web-components/{p-df87670c.system.entry.js → p-f4cb2104.system.entry.js} +1 -1
  189. package/pn-market-web-components/{p-7a14e808.entry.js → p-f774e2cc.entry.js} +1 -1
  190. package/pn-market-web-components/{p-cf058789.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  191. package/pn-market-web-components/{p-8f309dad.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  192. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  193. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  194. package/pn-market-web-components/pn-market-web-components.js +1 -1
  195. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  196. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  197. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  198. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  199. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  200. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  201. package/types/components.d.ts +146 -65
  202. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  203. package/esm/pn-filter-search.entry.js +0 -65
  204. package/esm-es5/pn-filter-search.entry.js +0 -1
  205. package/esm-es5/pn-find-price-store-b2f18af4.js +0 -1
  206. package/pn-market-web-components/p-0065e309.system.js +0 -1
  207. package/pn-market-web-components/p-1662a0e9.system.entry.js +0 -1
  208. package/pn-market-web-components/p-1663fe37.entry.js +0 -1
  209. package/pn-market-web-components/p-5ff39f75.system.entry.js +0 -1
  210. package/pn-market-web-components/p-6855204a.entry.js +0 -1
  211. package/pn-market-web-components/p-90c11ea0.system.entry.js +0 -1
  212. package/pn-market-web-components/p-9ae0afa8.js +0 -1
  213. package/pn-market-web-components/p-9d2ff751.system.entry.js +0 -1
  214. package/pn-market-web-components/p-a110366f.entry.js +0 -1
  215. package/pn-market-web-components/p-af1ac826.js +0 -1
  216. package/pn-market-web-components/p-b429c99d.system.js +0 -1
  217. package/pn-market-web-components/p-b6769599.entry.js +0 -1
  218. package/pn-market-web-components/p-b7b78fb0.system.entry.js +0 -1
  219. package/pn-market-web-components/p-d30c5783.system.entry.js +0 -1
  220. package/pn-market-web-components/p-d944756c.system.js +0 -1
  221. package/pn-market-web-components/p-dde0c959.js +0 -1
  222. package/pn-market-web-components/p-e1a8308e.system.js +0 -1
  223. package/pn-market-web-components/p-e422ad85.js +0 -1
  224. package/pn-market-web-components/p-ebc83f89.entry.js +0 -1
@@ -60,30 +60,6 @@ export namespace Components {
60
60
  */
61
61
  "value": any;
62
62
  }
63
- interface PnFilterSearch {
64
- "autocomplete": string;
65
- /**
66
- * Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button)
67
- */
68
- "button": string;
69
- "disabled": boolean;
70
- "inputid": string;
71
- /**
72
- * Label for the button
73
- */
74
- "label": string;
75
- /**
76
- * Light instead of dark search button
77
- */
78
- "light": boolean;
79
- /**
80
- * Loading animation
81
- */
82
- "loading": boolean;
83
- "name": string;
84
- "placeholder": string;
85
- "value": string;
86
- }
87
63
  interface PnFindPrice {
88
64
  "language": string;
89
65
  "market": string;
@@ -164,6 +140,66 @@ export namespace Components {
164
140
  interface PnMainnavList {
165
141
  "heading": string;
166
142
  }
143
+ interface PnMarketwebInput {
144
+ "autocomplete": string;
145
+ "disabled": boolean;
146
+ /**
147
+ * Error message; will take precedence over helpertext if both are provided (applies invalid styles automatically)
148
+ */
149
+ "error": string;
150
+ /**
151
+ * Text message placed underneath the input field
152
+ */
153
+ "helpertext": string;
154
+ "inputid": string;
155
+ /**
156
+ * Error state without message (If you want to control the error messaging on your own)
157
+ */
158
+ "invalid": boolean;
159
+ /**
160
+ * Text label placed above the input field
161
+ */
162
+ "label": string;
163
+ "max": string;
164
+ /**
165
+ * The maximum number of characters the user should be able to add, also adds a visible counter
166
+ */
167
+ "maxlength": string;
168
+ "min": string;
169
+ "name": string;
170
+ "pattern": string;
171
+ "placeholder": string;
172
+ "required": boolean;
173
+ "step": string;
174
+ "type": string;
175
+ "valid": boolean;
176
+ "value": string;
177
+ }
178
+ interface PnMarketwebSearch {
179
+ "autocomplete": string;
180
+ /**
181
+ * Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button)
182
+ */
183
+ "button": string;
184
+ "disabled": boolean;
185
+ "inputid": string;
186
+ /**
187
+ * Label for the button
188
+ */
189
+ "label": string;
190
+ /**
191
+ * Light instead of dark search button
192
+ */
193
+ "light": boolean;
194
+ "list": string;
195
+ /**
196
+ * Loading animation
197
+ */
198
+ "loading": boolean;
199
+ "name": string;
200
+ "placeholder": string;
201
+ "value": string;
202
+ }
167
203
  interface PnMarketwebSitefooter {
168
204
  /**
169
205
  * If the component should use cached requests
@@ -409,12 +445,6 @@ declare global {
409
445
  prototype: HTMLPnFilterCheckboxElement;
410
446
  new (): HTMLPnFilterCheckboxElement;
411
447
  };
412
- interface HTMLPnFilterSearchElement extends Components.PnFilterSearch, HTMLStencilElement {
413
- }
414
- var HTMLPnFilterSearchElement: {
415
- prototype: HTMLPnFilterSearchElement;
416
- new (): HTMLPnFilterSearchElement;
417
- };
418
448
  interface HTMLPnFindPriceElement extends Components.PnFindPrice, HTMLStencilElement {
419
449
  }
420
450
  var HTMLPnFindPriceElement: {
@@ -475,6 +505,18 @@ declare global {
475
505
  prototype: HTMLPnMainnavListElement;
476
506
  new (): HTMLPnMainnavListElement;
477
507
  };
508
+ interface HTMLPnMarketwebInputElement extends Components.PnMarketwebInput, HTMLStencilElement {
509
+ }
510
+ var HTMLPnMarketwebInputElement: {
511
+ prototype: HTMLPnMarketwebInputElement;
512
+ new (): HTMLPnMarketwebInputElement;
513
+ };
514
+ interface HTMLPnMarketwebSearchElement extends Components.PnMarketwebSearch, HTMLStencilElement {
515
+ }
516
+ var HTMLPnMarketwebSearchElement: {
517
+ prototype: HTMLPnMarketwebSearchElement;
518
+ new (): HTMLPnMarketwebSearchElement;
519
+ };
478
520
  interface HTMLPnMarketwebSitefooterElement extends Components.PnMarketwebSitefooter, HTMLStencilElement {
479
521
  }
480
522
  var HTMLPnMarketwebSitefooterElement: {
@@ -612,7 +654,6 @@ declare global {
612
654
  "pn-bonus-progressbar-level": HTMLPnBonusProgressbarLevelElement;
613
655
  "pn-choice-button": HTMLPnChoiceButtonElement;
614
656
  "pn-filter-checkbox": HTMLPnFilterCheckboxElement;
615
- "pn-filter-search": HTMLPnFilterSearchElement;
616
657
  "pn-find-price": HTMLPnFindPriceElement;
617
658
  "pn-find-price-result": HTMLPnFindPriceResultElement;
618
659
  "pn-find-service-and-price": HTMLPnFindServiceAndPriceElement;
@@ -623,6 +664,8 @@ declare global {
623
664
  "pn-mainnav-level": HTMLPnMainnavLevelElement;
624
665
  "pn-mainnav-link": HTMLPnMainnavLinkElement;
625
666
  "pn-mainnav-list": HTMLPnMainnavListElement;
667
+ "pn-marketweb-input": HTMLPnMarketwebInputElement;
668
+ "pn-marketweb-search": HTMLPnMarketwebSearchElement;
626
669
  "pn-marketweb-sitefooter": HTMLPnMarketwebSitefooterElement;
627
670
  "pn-marketweb-siteheader": HTMLPnMarketwebSiteheaderElement;
628
671
  "pn-marketweb-siteheader-login": HTMLPnMarketwebSiteheaderLoginElement;
@@ -699,38 +742,6 @@ declare namespace LocalJSX {
699
742
  */
700
743
  "value"?: any;
701
744
  }
702
- interface PnFilterSearch {
703
- "autocomplete"?: string;
704
- /**
705
- * Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button)
706
- */
707
- "button"?: string;
708
- "disabled"?: boolean;
709
- "inputid"?: string;
710
- /**
711
- * Label for the button
712
- */
713
- "label"?: string;
714
- /**
715
- * Light instead of dark search button
716
- */
717
- "light"?: boolean;
718
- /**
719
- * Loading animation
720
- */
721
- "loading"?: boolean;
722
- "name"?: string;
723
- /**
724
- * This is emitted on search submission both with keyboard and mouse
725
- */
726
- "onSearch"?: (event: CustomEvent<any>) => void;
727
- /**
728
- * custom event that handles both clearing and input to have the option of just binding listeners to one event instead of two.
729
- */
730
- "onUpdate"?: (event: CustomEvent<any>) => void;
731
- "placeholder"?: string;
732
- "value"?: string;
733
- }
734
745
  interface PnFindPrice {
735
746
  "language"?: string;
736
747
  "market"?: string;
@@ -816,6 +827,74 @@ declare namespace LocalJSX {
816
827
  interface PnMainnavList {
817
828
  "heading"?: string;
818
829
  }
830
+ interface PnMarketwebInput {
831
+ "autocomplete"?: string;
832
+ "disabled"?: boolean;
833
+ /**
834
+ * Error message; will take precedence over helpertext if both are provided (applies invalid styles automatically)
835
+ */
836
+ "error"?: string;
837
+ /**
838
+ * Text message placed underneath the input field
839
+ */
840
+ "helpertext"?: string;
841
+ "inputid"?: string;
842
+ /**
843
+ * Error state without message (If you want to control the error messaging on your own)
844
+ */
845
+ "invalid"?: boolean;
846
+ /**
847
+ * Text label placed above the input field
848
+ */
849
+ "label"?: string;
850
+ "max"?: string;
851
+ /**
852
+ * The maximum number of characters the user should be able to add, also adds a visible counter
853
+ */
854
+ "maxlength"?: string;
855
+ "min"?: string;
856
+ "name"?: string;
857
+ "pattern"?: string;
858
+ "placeholder"?: string;
859
+ "required"?: boolean;
860
+ "step"?: string;
861
+ "type"?: string;
862
+ "valid"?: boolean;
863
+ "value"?: string;
864
+ }
865
+ interface PnMarketwebSearch {
866
+ "autocomplete"?: string;
867
+ /**
868
+ * Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button)
869
+ */
870
+ "button"?: string;
871
+ "disabled"?: boolean;
872
+ "inputid"?: string;
873
+ /**
874
+ * Label for the button
875
+ */
876
+ "label"?: string;
877
+ /**
878
+ * Light instead of dark search button
879
+ */
880
+ "light"?: boolean;
881
+ "list"?: string;
882
+ /**
883
+ * Loading animation
884
+ */
885
+ "loading"?: boolean;
886
+ "name"?: string;
887
+ /**
888
+ * This is emitted on search submission both with keyboard and mouse
889
+ */
890
+ "onSearch"?: (event: CustomEvent<any>) => void;
891
+ /**
892
+ * custom event that handles both clearing and input to have the option of just binding listeners to one event instead of two.
893
+ */
894
+ "onUpdate"?: (event: CustomEvent<any>) => void;
895
+ "placeholder"?: string;
896
+ "value"?: string;
897
+ }
819
898
  interface PnMarketwebSitefooter {
820
899
  /**
821
900
  * If the component should use cached requests
@@ -1043,7 +1122,6 @@ declare namespace LocalJSX {
1043
1122
  "pn-bonus-progressbar-level": PnBonusProgressbarLevel;
1044
1123
  "pn-choice-button": PnChoiceButton;
1045
1124
  "pn-filter-checkbox": PnFilterCheckbox;
1046
- "pn-filter-search": PnFilterSearch;
1047
1125
  "pn-find-price": PnFindPrice;
1048
1126
  "pn-find-price-result": PnFindPriceResult;
1049
1127
  "pn-find-service-and-price": PnFindServiceAndPrice;
@@ -1054,6 +1132,8 @@ declare namespace LocalJSX {
1054
1132
  "pn-mainnav-level": PnMainnavLevel;
1055
1133
  "pn-mainnav-link": PnMainnavLink;
1056
1134
  "pn-mainnav-list": PnMainnavList;
1135
+ "pn-marketweb-input": PnMarketwebInput;
1136
+ "pn-marketweb-search": PnMarketwebSearch;
1057
1137
  "pn-marketweb-sitefooter": PnMarketwebSitefooter;
1058
1138
  "pn-marketweb-siteheader": PnMarketwebSiteheader;
1059
1139
  "pn-marketweb-siteheader-login": PnMarketwebSiteheaderLogin;
@@ -1086,7 +1166,6 @@ declare module "@stencil/core" {
1086
1166
  "pn-bonus-progressbar-level": LocalJSX.PnBonusProgressbarLevel & JSXBase.HTMLAttributes<HTMLPnBonusProgressbarLevelElement>;
1087
1167
  "pn-choice-button": LocalJSX.PnChoiceButton & JSXBase.HTMLAttributes<HTMLPnChoiceButtonElement>;
1088
1168
  "pn-filter-checkbox": LocalJSX.PnFilterCheckbox & JSXBase.HTMLAttributes<HTMLPnFilterCheckboxElement>;
1089
- "pn-filter-search": LocalJSX.PnFilterSearch & JSXBase.HTMLAttributes<HTMLPnFilterSearchElement>;
1090
1169
  "pn-find-price": LocalJSX.PnFindPrice & JSXBase.HTMLAttributes<HTMLPnFindPriceElement>;
1091
1170
  "pn-find-price-result": LocalJSX.PnFindPriceResult & JSXBase.HTMLAttributes<HTMLPnFindPriceResultElement>;
1092
1171
  "pn-find-service-and-price": LocalJSX.PnFindServiceAndPrice & JSXBase.HTMLAttributes<HTMLPnFindServiceAndPriceElement>;
@@ -1097,6 +1176,8 @@ declare module "@stencil/core" {
1097
1176
  "pn-mainnav-level": LocalJSX.PnMainnavLevel & JSXBase.HTMLAttributes<HTMLPnMainnavLevelElement>;
1098
1177
  "pn-mainnav-link": LocalJSX.PnMainnavLink & JSXBase.HTMLAttributes<HTMLPnMainnavLinkElement>;
1099
1178
  "pn-mainnav-list": LocalJSX.PnMainnavList & JSXBase.HTMLAttributes<HTMLPnMainnavListElement>;
1179
+ "pn-marketweb-input": LocalJSX.PnMarketwebInput & JSXBase.HTMLAttributes<HTMLPnMarketwebInputElement>;
1180
+ "pn-marketweb-search": LocalJSX.PnMarketwebSearch & JSXBase.HTMLAttributes<HTMLPnMarketwebSearchElement>;
1100
1181
  "pn-marketweb-sitefooter": LocalJSX.PnMarketwebSitefooter & JSXBase.HTMLAttributes<HTMLPnMarketwebSitefooterElement>;
1101
1182
  "pn-marketweb-siteheader": LocalJSX.PnMarketwebSiteheader & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderElement>;
1102
1183
  "pn-marketweb-siteheader-login": LocalJSX.PnMarketwebSiteheaderLogin & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginElement>;
@@ -1,69 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-b6e46a26.js');
6
-
7
- const pnFilterSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;background:#8EDDF9}:host>.input-container button:hover{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
8
-
9
- let PnFilterSearch = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.search = index.createEvent(this, "search", 7);
13
- this.update = index.createEvent(this, "update", 7);
14
- this.disabled = false;
15
- this.placeholder = null;
16
- this.inputid = null;
17
- this.name = null;
18
- this.autocomplete = null;
19
- this.value = null;
20
- /** Label for the button */
21
- this.label = null;
22
- /** Loading animation */
23
- this.loading = false;
24
- /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
25
- this.button = '';
26
- /** Light instead of dark search button */
27
- this.light = false;
28
- }
29
- inputHandler() {
30
- this.update.emit(this.value);
31
- }
32
- emitSearch(e) {
33
- if (e.type === 'click' ||
34
- (e.type === 'keydown' && e.key === 'Enter')) {
35
- // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
36
- e.preventDefault();
37
- this.search.emit(this.value);
38
- }
39
- }
40
- setVal(e) {
41
- this.value = e.target.value;
42
- }
43
- clearInput() {
44
- this.value = '';
45
- this.update.emit(this.value);
46
- this.hostElement.querySelector('input').focus();
47
- }
48
- getClassNames() {
49
- let classNames = '';
50
- const buttonTypes = ['none', 'icon', 'icon-inline'];
51
- if (this.value)
52
- classNames += 'searching ';
53
- if (this.loading)
54
- classNames += 'loading ';
55
- if (buttonTypes.includes(this.button))
56
- classNames += `button-${this.button} `;
57
- return classNames;
58
- }
59
- render() {
60
- return (index.h(index.Host, { class: this.getClassNames() }, index.h("div", { class: "input-container" }, index.h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), index.h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
61
- index.h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, index.h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
62
- index.h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, index.h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && index.h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
63
- index.h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label)));
64
- }
65
- get hostElement() { return index.getElement(this); }
66
- };
67
- PnFilterSearch.style = pnFilterSearchCss;
68
-
69
- exports.pn_filter_search = PnFilterSearch;
@@ -1,65 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-02847864.js';
2
-
3
- const pnFilterSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;background:#8EDDF9}:host>.input-container button:hover{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
4
-
5
- let PnFilterSearch = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.search = createEvent(this, "search", 7);
9
- this.update = createEvent(this, "update", 7);
10
- this.disabled = false;
11
- this.placeholder = null;
12
- this.inputid = null;
13
- this.name = null;
14
- this.autocomplete = null;
15
- this.value = null;
16
- /** Label for the button */
17
- this.label = null;
18
- /** Loading animation */
19
- this.loading = false;
20
- /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
21
- this.button = '';
22
- /** Light instead of dark search button */
23
- this.light = false;
24
- }
25
- inputHandler() {
26
- this.update.emit(this.value);
27
- }
28
- emitSearch(e) {
29
- if (e.type === 'click' ||
30
- (e.type === 'keydown' && e.key === 'Enter')) {
31
- // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
32
- e.preventDefault();
33
- this.search.emit(this.value);
34
- }
35
- }
36
- setVal(e) {
37
- this.value = e.target.value;
38
- }
39
- clearInput() {
40
- this.value = '';
41
- this.update.emit(this.value);
42
- this.hostElement.querySelector('input').focus();
43
- }
44
- getClassNames() {
45
- let classNames = '';
46
- const buttonTypes = ['none', 'icon', 'icon-inline'];
47
- if (this.value)
48
- classNames += 'searching ';
49
- if (this.loading)
50
- classNames += 'loading ';
51
- if (buttonTypes.includes(this.button))
52
- classNames += `button-${this.button} `;
53
- return classNames;
54
- }
55
- render() {
56
- return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
57
- h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
58
- h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
59
- h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label)));
60
- }
61
- get hostElement() { return getElement(this); }
62
- };
63
- PnFilterSearch.style = pnFilterSearchCss;
64
-
65
- export { PnFilterSearch as pn_filter_search };
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-02847864.js";var pnFilterSearchCss=":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;background:#8EDDF9}:host>.input-container button:hover{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";var PnFilterSearch=function(){function t(t){registerInstance(this,t);this.search=createEvent(this,"search",7);this.update=createEvent(this,"update",7);this.disabled=false;this.placeholder=null;this.inputid=null;this.name=null;this.autocomplete=null;this.value=null;this.label=null;this.loading=false;this.button="";this.light=false}t.prototype.inputHandler=function(){this.update.emit(this.value)};t.prototype.emitSearch=function(t){if(t.type==="click"||t.type==="keydown"&&t.key==="Enter"){t.preventDefault();this.search.emit(this.value)}};t.prototype.setVal=function(t){this.value=t.target.value};t.prototype.clearInput=function(){this.value="";this.update.emit(this.value);this.hostElement.querySelector("input").focus()};t.prototype.getClassNames=function(){var t="";var n=["none","icon","icon-inline"];if(this.value)t+="searching ";if(this.loading)t+="loading ";if(n.includes(this.button))t+="button-".concat(this.button," ");return t};t.prototype.render=function(){var t=this;return h(Host,{class:this.getClassNames()},h("div",{class:"input-container"},h("input",{type:"search",value:this.value,id:this.inputid,name:this.name,placeholder:this.placeholder,disabled:this.disabled,autocomplete:this.autocomplete,onKeyDown:function(n){return t.emitSearch(n)},onInput:function(n){return t.setVal(n)}}),h("div",{class:"button-container"},(this.button==="none"||this.button==="icon-inline")&&h("button",{class:"search",tabindex:this.button==="icon-inline"?"0":"-1",onClick:function(n){return t.emitSearch(n)},"aria-label":"search",title:"search"},h("pn-icon",{symbol:"search",color:"blue700"})),this.button!=="icon-inline"&&h("button",{class:"clear","aria-label":"clear",title:"clear search field",tabindex:this.value&&(!this.loading||this.button!=="none")?"0":"-1",onClick:function(){return t.clearInput()}},h("pn-icon",{symbol:"close-small",color:"blue700"})),this.button==="none"||this.button==="icon-inline"&&h("pn-spinner",null))),this.button!=="none"&&this.button!=="icon-inline"&&h("pn-button",{onClick:function(n){return t.emitSearch(n)},loading:this.loading,icon:"search",appearance:this.light?"light":"dark","icon-only":this.button==="icon"},this.label))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PnFilterSearch.style=pnFilterSearchCss;export{PnFilterSearch as pn_filter_search};
@@ -1 +0,0 @@
1
- import{c as createStore}from"./index-1978107a.js";var _a=createStore({i18n:{componentheading:"",deliveryscopeheading:"",sizeheading:"",resultlistheading:"",weightlabel:"",maxweightlabel:"",maxmeasurementlabel:"",senddirectcta:"",stampshopcta:"",message:"",servicePointHeader:"",servicePointLink:""},market:{currency:""}}),state=_a.state,onChange=_a.onChange;export{state as s};
@@ -1 +0,0 @@
1
- System.register(["./p-aa625cb0.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.c}],execute:function(){var a=t({i18n:{maxweightlabel:"",weightlabel:"",maxmeasurementlabel:"",sizeheading:"",senddirectcta:"",stampshopcta:""},market:{currency:""}}),s=a.state,n=a.onChange;e("s",s)}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function l(e){try{s(n.next(e))}catch(t){o(t)}}function a(e){try{s(n["throw"](e))}catch(t){o(t)}}function s(e){e.done?i(e.value):r(e.value).then(l,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return s([e,t])}}function s(l){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(o=l[0]&2?r["return"]:l[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;if(r=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;r=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(l[0]===6&&i.label<o[1]){i.label=o[1];o=l;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(l);break}if(o[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(a){l=[6,a];r=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-b429c99d.system.js"],(function(e,t){"use strict";var i,n,r,o;return{setters:[function(e){i=e.r;n=e.h;r=e.a;o=e.g}],execute:function(){var l={sv:{heading:"Beräkna kostnad med PEX Bud",labelFrom:"Från postkod",labelTo:"Till postkod",zipPlaceholder:"Ex. 12831",labelWeight:"Vikt (i gram)",weightPlaceholder:"Ex. 1000",labelWhen:"När",submitButtonText:"Beräkna pris"},en:{heading:"Calculate cost with PEX Bud",labelFrom:"From zip",labelTo:"To zip",zipPlaceholder:"Ex. 12831",labelWeight:"Weight (in grams)",weightPlaceholder:"Ex. 1000",labelWhen:"When",submitButtonText:"Calculate price"}};var a=".pex-pricefinder-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.pex-pricefinder-top pn-illustration{width:5.5rem;height:5.5rem;margin-right:1.6rem}.pex-pricefinder-form{margin:1.6rem 0 0 0;padding:0;border:0}.pex-pricefinder-form fieldset{margin:0;padding:0;border:0}.pex-pricefinder-form fieldset+fieldset{margin-top:1.6rem}.pex-pricefinder-form fieldset>div{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1em}.pex-pricefinder-form fieldset>div>*{-ms-flex-positive:1;flex-grow:1;width:100%}.pex-pricefinder-form pn-button{-ms-flex-item-align:end;align-self:end;margin-left:auto}.pex-pricefinder-form .datepicker{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.pex-pricefinder-form .datepicker label{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end;cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.pex-pricefinder-form .datepicker pn-date-picker{width:100%}.pex-pricefinder-response{margin-top:2.4rem;text-align:center;font-size:2.4em}";var s=e("pn_pex_pricefinder",function(){function e(e){i(this,e);this.language="sv";this.currency="Kr";this.apiUrl="/api/pex/order";this.i18n=l.sv;this.fromzip=null;this.tozip=null;this.weight=100;this.when=(new Date).toISOString().split("T")[0];this.response=null}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.checkParameters();this.setLanguage();return[2]}))}))};e.prototype.checkParameters=function(){var e=this;var t=new URLSearchParams(window.location.href);if(!t){return}var i=["fromzip","tozip","weight","when"];i.forEach((function(i){if(t.get(i)){e[i]=t.get(i)}}))};e.prototype.setLanguage=function(){if(l[this.language]){this.i18n=l[this.language]}};e.prototype.onSubmit=function(e){e.preventDefault();var t=new FormData(e.target);var i=this.compileRequestQuery(t);this.fetchResult(i)};e.prototype.compileRequestQuery=function(e){var t={from:e.get("fromzip"),to:e.get("tozip"),weight:e.get("weight"),when:e.get("when")};if(!t.when){t.when=this.hostElement.querySelector("input.date-input").value}if(!e.get("fromzip")||!e.get("tozip")||!e.get("weight")){console.error("Form data is not compliant");return}return t};e.prototype.fetchResult=function(e){return __awaiter(this,void 0,void 0,(function(){var i,n,r;return __generator(this,(function(o){switch(o.label){case 0:this.response=null;i=new URLSearchParams(e);return[4,fetch("".concat(this.apiUrl,"?").concat(i.toString()),{method:"get",headers:{"Content-Type":"application/json"}}).catch(this.onFetchError.bind(this))];case 1:n=o.sent();return[4,n.json().catch(this.onFetchError.bind(this))];case 2:r=o.sent();if(!!r)return[3,5];return[4,t.import("./p-84d9f552.system.js")];case 3:return[4,o.sent().default];case 4:r=o.sent();o.label=5;case 5:if(r){this.response=r}return[2]}}))}))};e.prototype.onFetchError=function(e){console.error("onFetchError(error",e)};e.prototype.render=function(){return n(r,null,n("div",{class:"pex-pricefinder-top"},n("pn-illustration",{illustration:"PEX-truck"}),n("h2",null,this.i18n.heading)),n("form",{method:"get",action:"",class:"pex-pricefinder-form",onSubmit:this.onSubmit.bind(this)},n("fieldset",null,n("div",null,n("pn-input",{type:"number",label:this.i18n.labelFrom,inputid:"fromzip",name:"fromzip",placeholder:this.i18n.zipPlaceholder,required:true,value:this.fromzip}),n("pn-input",{type:"number",label:this.i18n.labelTo,inputid:"tozip",name:"tozip",placeholder:this.i18n.zipPlaceholder,required:true,value:this.tozip}))),n("fieldset",null,n("div",null,n("pn-input",{type:"number",label:this.i18n.labelWeight,inputid:"weight",name:"weight",placeholder:this.i18n.weightPlaceholder,required:true,value:this.weight}),n("div",{class:"datepicker"},n("label",{htmlFor:"when"},this.i18n.labelWhen),n("pn-date-picker",{inputid:"when",name:"when","start-of-week":"1",min:(new Date).toISOString().split("T")[0],language:this.language,value:this.when})))),n("fieldset",null,n("div",null,n("pn-button",{type:"submit"},this.i18n.submitButtonText)))),this.response?n("div",{class:"pex-pricefinder-response"},n("strong",null,this.response.data.value," ",this.currency)):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s.style=a}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as i,a as t,g as n}from"./p-dde0c959.js";const r={sv:{heading:"Beräkna kostnad med PEX Bud",labelFrom:"Från postkod",labelTo:"Till postkod",zipPlaceholder:"Ex. 12831",labelWeight:"Vikt (i gram)",weightPlaceholder:"Ex. 1000",labelWhen:"När",submitButtonText:"Beräkna pris"},en:{heading:"Calculate cost with PEX Bud",labelFrom:"From zip",labelTo:"To zip",zipPlaceholder:"Ex. 12831",labelWeight:"Weight (in grams)",weightPlaceholder:"Ex. 1000",labelWhen:"When",submitButtonText:"Calculate price"}};let l=class{constructor(i){e(this,i),this.language="sv",this.currency="Kr",this.apiUrl="/api/pex/order",this.i18n=r.sv,this.fromzip=null,this.tozip=null,this.weight=100,this.when=(new Date).toISOString().split("T")[0],this.response=null}componentWillLoad(){this.init()}async init(){this.checkParameters(),this.setLanguage()}checkParameters(){const e=new URLSearchParams(window.location.href);e&&["fromzip","tozip","weight","when"].forEach((i=>{e.get(i)&&(this[i]=e.get(i))}))}setLanguage(){r[this.language]&&(this.i18n=r[this.language])}onSubmit(e){e.preventDefault();const i=new FormData(e.target),t=this.compileRequestQuery(i);this.fetchResult(t)}compileRequestQuery(e){let i={from:e.get("fromzip"),to:e.get("tozip"),weight:e.get("weight"),when:e.get("when")};if(i.when||(i.when=this.hostElement.querySelector("input.date-input").value),e.get("fromzip")&&e.get("tozip")&&e.get("weight"))return i;console.error("Form data is not compliant")}async fetchResult(e){this.response=null;const i=new URLSearchParams(e),t=await fetch(`${this.apiUrl}?${i.toString()}`,{method:"get",headers:{"Content-Type":"application/json"}}).catch(this.onFetchError.bind(this));let n=await t.json().catch(this.onFetchError.bind(this));n||(n=await(await import("./p-c25ada49.js")).default),n&&(this.response=n)}onFetchError(e){console.error("onFetchError(error",e)}render(){return i(t,null,i("div",{class:"pex-pricefinder-top"},i("pn-illustration",{illustration:"PEX-truck"}),i("h2",null,this.i18n.heading)),i("form",{method:"get",action:"",class:"pex-pricefinder-form",onSubmit:this.onSubmit.bind(this)},i("fieldset",null,i("div",null,i("pn-input",{type:"number",label:this.i18n.labelFrom,inputid:"fromzip",name:"fromzip",placeholder:this.i18n.zipPlaceholder,required:!0,value:this.fromzip}),i("pn-input",{type:"number",label:this.i18n.labelTo,inputid:"tozip",name:"tozip",placeholder:this.i18n.zipPlaceholder,required:!0,value:this.tozip}))),i("fieldset",null,i("div",null,i("pn-input",{type:"number",label:this.i18n.labelWeight,inputid:"weight",name:"weight",placeholder:this.i18n.weightPlaceholder,required:!0,value:this.weight}),i("div",{class:"datepicker"},i("label",{htmlFor:"when"},this.i18n.labelWhen),i("pn-date-picker",{inputid:"when",name:"when","start-of-week":"1",min:(new Date).toISOString().split("T")[0],language:this.language,value:this.when})))),i("fieldset",null,i("div",null,i("pn-button",{type:"submit"},this.i18n.submitButtonText)))),this.response?i("div",{class:"pex-pricefinder-response"},i("strong",null,this.response.data.value," ",this.currency)):null)}get hostElement(){return n(this)}};l.style=".pex-pricefinder-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.pex-pricefinder-top pn-illustration{width:5.5rem;height:5.5rem;margin-right:1.6rem}.pex-pricefinder-form{margin:1.6rem 0 0 0;padding:0;border:0}.pex-pricefinder-form fieldset{margin:0;padding:0;border:0}.pex-pricefinder-form fieldset+fieldset{margin-top:1.6rem}.pex-pricefinder-form fieldset>div{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1em}.pex-pricefinder-form fieldset>div>*{-ms-flex-positive:1;flex-grow:1;width:100%}.pex-pricefinder-form pn-button{-ms-flex-item-align:end;align-self:end;margin-left:auto}.pex-pricefinder-form .datepicker{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.pex-pricefinder-form .datepicker label{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end;cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.pex-pricefinder-form .datepicker pn-date-picker{width:100%}.pex-pricefinder-response{margin-top:2.4rem;text-align:center;font-size:2.4em}";export{l as pn_pex_pricefinder}
@@ -1 +0,0 @@
1
- System.register(["./p-b429c99d.system.js","./p-d944756c.system.js","./p-aa625cb0.system.js"],(function(t){"use strict";var i,e,s,n;return{setters:[function(t){i=t.r;e=t.h;s=t.a},function(t){n=t.s},function(){}],execute:function(){var l="pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";var r=t("pn_find_price_result",function(){function t(t){i(this,t);this.item=null;this.shownitems=[];this.description=[];this.weightText=""}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){if(this.item.additionalusp){var t=this.item.additionalusp.split("/");this.Usp1=t.length>0?t[0]:null;this.Usp2=t.length>1?t[1]:null;this.Usp3=t.length>2?t[2]:null}if(this.item.description){this.description=this.item.description.split("#bullet").filter((function(t){return t!==""}))}};t.prototype.render=function(){return e(s,null,e("pn-product-card",null,e("pn-illustration",{slot:"illustration",illustration:this.item.illustration}),e("div",{slot:"title"},e("h2",null,this.item.name," "),this.item.highestrankusp?this.item.highestrankusp==="Billigast"?e("span",{slot:"Biligast"},this.item.highestrankusp,e("pn-icon",{symbol:"box-label",small:"false",color:"green700"})):e("span",{slot:"Snabbast"},this.item.highestrankusp,e("pn-icon",{symbol:"bolt",small:"false",color:"blue700"})):null),e("div",{slot:"content"},e("div",{class:"content"},this.item.description?e("div",{class:"description"},this.description.map((function(t){return e("li",null,t)}))):null,this.item.info?e("div",{class:"description"},this.item.info):null)),this.item.note?e("small",{slot:"note"},e("p",null,this.item.note)):null,this.item.additionalusp?e("div",{slot:"additionalUSP"},this.Usp1?e("span",null,this.Usp1):null,this.Usp2?e("span",null,this.Usp2):null,this.Usp3?e("span",null,this.Usp3):null):null,this.item.paket?e("pn-product-card-info",{paket:this.item.paket,rulle:this.item.rulle}):null,e("div",{slot:"cardprice"},this.item.priceagent?e("pn-product-card-price",{slot:"price",label:"",amount:this.item.priceagent+"",currency:n.market.currency,url:"https://shop.postnord.se/ebutik/default.aspx",service:this.item.name+"-eshop"}):null,this.item.pricesenddirect?e("pn-product-card-price",{slot:"sendDirectPrice",label:n.i18n.senddirectcta,amount:this.item.pricesenddirect+"",currency:n.market.currency,url:"https://portal.postnord.com/skickadirekt/",service:this.item.name+"-portal"}):null,this.item.pricestamps?e("pn-product-card-price",{slot:"stampPrice",label:n.i18n.stampshopcta,amount:this.item.pricestamps+"",currency:n.market.currency,url:"https://shop.postnord.se/ebutik/default.aspx",service:this.item.name+"-eshop",note:n.i18n.message}):null)))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"]}},enumerable:false,configurable:true});return t}());r.style=l}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as e,a as n}from"./p-dde0c959.js";let i=class{constructor(e){t(this,e)}render(){return e(n,null,e("slot",{name:"illustration"}),e("div",{class:"cardcontent"},e("div",{class:"details"},e("slot",{name:"title"}),e("slot",{name:"content"}),e("div",{class:"info"},e("slot",null)),e("slot",{name:"note"}),e("slot",{name:"additionalUSP"})),e("div",null,e("slot",{name:"cardprice"}))))}};i.style="pn-product-card{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.5em}pn-product-card [slot=title]>[slot=Biligast]{color:#005E41;background:#DCF6E7;border-radius:0.37em;width:6.3em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Biligast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92;border-radius:0.37em;width:7em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Snabbast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card [slot=cardprice]{display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 2em 0.5em 0}";let l=class{constructor(e){t(this,e)}render(){return e(n,null,this.label?e("div",{class:"cardinfocontent"},this.text?e("pre",{slot:"formatPre"},this.text):null):e("div",{class:"cardinfocontent"},e("div",null,e("strong",null,"Paket:"),this.paket.split("/").map((t=>t.split(":").length>0?e("p",null,e("strong",null,t.split(":")[0]+": ")," ",t.split(":")[1]):e("p",null,t)))),e("div",{id:"sp"}),this.rulle?e("div",null,e("strong",null,"Rulle:"),this.rulle.split("/").map((t=>t.split(":").length>0?e("p",null,e("strong",null,t.split(":")[0]+": ")," ",t.split(":")[1]):e("p",null,t)))):null))}};e("pn-icon",{symbol:"align-center",small:"false",color:"black"}),l.style='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent #sp{width:5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';let r=class{constructor(e){t(this,e)}render(){if(this.amount)return this.url?e(n,null,e("h3",null,this.amount?e("span",null,this.amount):null,this.currency?e("span",null," "+this.currency):null),this.note?e("p",null,this.note):null,this.label?e("pn-button",{small:"true",icon:"arrow-right",appearance:"secondary",href:this.url,target:"_blank",id:this.service.split(" ").join("-").toLocaleLowerCase()},this.label):null):e(n,null,e("h3",null,this.amount?e("span",null,this.amount):null,this.currency?e("span",null,this.currency):null))}};r.style="pn-product-card-price{margin-top:1em;white-space:nowrap;text-align:center}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price pn-button{width:12.8em;margin-bottom:1em;margin-top:0.5em;font-size:1.25}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.5em}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";export{i as pn_product_card,l as pn_product_card_info,r as pn_product_card_price}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(M,i,I,N){function e(M){return M instanceof I?M:new I((function(i){i(M)}))}return new(I||(I=Promise))((function(I,g){function D(M){try{z(N.next(M))}catch(i){g(i)}}function j(M){try{z(N["throw"](M))}catch(i){g(i)}}function z(M){M.done?I(M.value):e(M.value).then(D,j)}z((N=N.apply(M,i||[])).next())}))};var __generator=this&&this.__generator||function(M,i){var I={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},N,e,g,D;return D={next:j(0),throw:j(1),return:j(2)},typeof Symbol==="function"&&(D[Symbol.iterator]=function(){return this}),D;function j(M){return function(i){return z([M,i])}}function z(D){if(N)throw new TypeError("Generator is already executing.");while(I)try{if(N=1,e&&(g=D[0]&2?e["return"]:D[0]?e["throw"]||((g=e["return"])&&g.call(e),0):e.next)&&!(g=g.call(e,D[1])).done)return g;if(e=0,g)D=[D[0]&2,g.value];switch(D[0]){case 0:case 1:g=D;break;case 4:I.label++;return{value:D[1],done:false};case 5:I.label++;e=D[1];D=[0];continue;case 7:D=I.ops.pop();I.trys.pop();continue;default:if(!(g=I.trys,g=g.length>0&&g[g.length-1])&&(D[0]===6||D[0]===2)){I=0;continue}if(D[0]===3&&(!g||D[1]>g[0]&&D[1]<g[3])){I.label=D[1];break}if(D[0]===6&&I.label<g[1]){I.label=g[1];g=D;break}if(g&&I.label<g[2]){I.label=g[2];I.ops.push(D);break}if(g[2])I.ops.pop();I.trys.pop();continue}D=i.call(M,I)}catch(j){D=[6,j];e=0}finally{N=g=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(M,i,I){if(I||arguments.length===2)for(var N=0,e=i.length,g;N<e;N++){if(g||!(N in i)){if(!g)g=Array.prototype.slice.call(i,0,N);g[N]=i[N]}}return M.concat(g||Array.prototype.slice.call(i))};System.register(["./p-b429c99d.system.js","./p-0ea97ca0.system.js","./p-d944756c.system.js","./p-aa625cb0.system.js"],(function(M){"use strict";var i,I,N,e;return{setters:[function(M){i=M.r;I=M.h},function(M){N=M.c},function(M){e=M.s},function(){}],execute:function(){var g={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",sizeheading:"Uppskatta storlek och vikt på din försändelse",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp portokod online",stampshopcta:"Beställ fysiska frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök brevlåda eller serviceställe"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",sizeheading:"Estimate the size and weight of your shipment",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy postcode online",stampshopcta:"Order physical stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",sizeheading:"How much does it weigh?",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",sizeheading:"How much does it weigh?",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",sizeheading:"How much does it weigh?",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}};var D={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}};var j=[{name:"Small",value:"Small",illustration:"eli1n",unit:"small",maxWeight:2,img:"./small-package.svg"},{name:"Medium",value:"Medium",illustration:"medium-package",unit:"medium",maxWeight:5,img:"./medium-package.svg"},{name:"Large",value:"Large",illustration:"large-package",unit:"large",maxWeight:20,img:"./large-package.svg"}];var z={small:[{name:"50 g",abbreviation:"g",value:50},{name:"100 g",abbreviation:"g",value:100},{name:"250 g",abbreviation:"g",value:250},{name:"500 g",abbreviation:"g",value:500},{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2}],medium:[{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2},{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}],large:[{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}]};var u="https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-first.xlsx";var T="https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle";var t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCA1NCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ0LjM4NDggMzhINTAuMzAxN0M1MS45MzM5IDM4IDUzLjMxMTEgMzYuMjM1NyA1My4zMTExIDMzLjk5NjRWNC4wMDM1N0M1My4zMTExIDEuODMyMTQgNTEuOTg0OSAwIDUwLjMwMTcgMEg0NC4zODQ4VjM4WiIgZmlsbD0iIzAwNUQ5MiIvPgo8cGF0aCBkPSJNNDcuMzQzMyAzOEgxMy4zMjFDMTEuNjg4NyAzOCAxMC4zMTE1IDM2LjIzNTcgMTAuMzExNSAzMy45OTY0VjQuMDAzNTdDMTAuMzExNSAxLjgzMjE0IDExLjYzNzcgMCAxMy4zMjEgMEg0NC44NDM5QzQ2LjIyMTEgMCA0Ny4zNDMzIDEuNDkyODYgNDcuMzQzMyAzLjMyNVYzOFoiIGZpbGw9IiMwMEEwRDYiLz4KPHBhdGggZD0iTTQzLjMxNDMgMTAuNzg5NUM0My4zMTQzIDEyLjk2MDkgNDEuOTg4MSAxNC43MjUyIDQwLjM1NTkgMTQuNzI1MkgzNS45NjkyQzM0LjMzNjkgMTQuNzI1MiAzMy4wMTA3IDEyLjk2MDkgMzMuMDEwNyAxMC43ODk1QzMzLjAxMDcgOC42MTgwNCAzNC4zMzY5IDYuODUzNzYgMzUuOTY5MiA2Ljg1Mzc2SDQwLjM1NTlDNDIuMDM5MSA2LjkyMTYyIDQzLjMxNDMgOC42MTgwNCA0My4zMTQzIDEwLjc4OTVaIiBmaWxsPSIjOEVEREY5Ii8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMjQ2XzM0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nPgo=";var c='@charset "UTF-8";pn-find-price .sizeTable{border-style:none !important;border:0 !important}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:0 auto 3em auto}pn-find-price h2,pn-find-price .heading,pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .sizeheading{text-align:center;font-size:1.25em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .sizecategory{margin-top:5em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:"Max  ";font-weight:lighter}pn-find-price .resultlist{margin:3em 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:1.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92}';var A=M("pn_find_price",function(){function M(M){i(this,M);this.source=u;this.language="sv";this.market="se";this.filteredItems=[];this.weight={value:0,name:""};this.weightvalue=0;this.sourceData={types:[],data:[]};this.sizecategory={value:"",name:"",icon:"",unit:""}}M.prototype.componentWillLoad=function(){this.setState();this.getDataSource()};M.prototype.getDataSource=function(){return __awaiter(this,void 0,void 0,(function(){var M,i,I,e,g;return __generator(this,(function(D){switch(D.label){case 0:M="?cache=".concat(Math.floor(Math.random()*(1e4-1)+1));return[4,fetch(this.source+M)];case 1:i=D.sent();return[4,i.blob()];case 2:I=D.sent();D.label=3;case 3:D.trys.push([3,5,,6]);return[4,N(I)];case 4:e=D.sent();this.sourceData=e;this.sizecategory=j.filter((function(M){return M.value==="Small"}))[0];this.filterItems();return[3,6];case 5:g=D.sent();console.log("Unable to parse data");return[3,6];case 6:return[2]}}))}))};M.prototype.setState=function(){if(this.market){e.market=D[this.market]}if(this.language&&g[this.language]){e.i18n=g[this.language]}};M.prototype.filterItems=function(){var M=this;var i;if(!((i=this.sourceData)===null||i===void 0?void 0:i.data)){console.log("Data has not yet been loaded");return}var I=this.sourceData.data.filter((function(M){return M.deliveryscope.toLocaleLowerCase()==="sweden"}));if(!this.sizecategory){return}var N=I.filter((function(i){return i.sizecategory.toLocaleLowerCase()===M.sizecategory.value.toLocaleLowerCase()}));if(!this.weight){return}var e=this.weight.value<=20?this.weight.value*1e3:this.weight.value;var g=N.filter((function(M){return(M.maxweight<=20?M.maxweight*1e3:M.maxweight)===e}));if(g.length===0&&this.weightvalue!==0){g=N.filter((function(M){return(M.maxweight<=20?M.maxweight*1e3:M.maxweight)>=e}));if(g.length>0){g.sort((function(M,i){return M.maxweight-i.maxweight}));var D=__spreadArray([],new Map(g.reverse().map((function(M){return[M["id"],M]}))).values(),true);if(D.length>0){g=D}}}g.sort((function(M,i){var I=M.highestrankusp?M.highestrankusp.toLowerCase():"z";var N=i.highestrankusp?i.highestrankusp.toLowerCase():"z";return I.localeCompare(N)}));this.filteredItems=g};M.prototype.render=function(){var M=this;return I("div",{class:"findprice-form"},I("div",null,I("div",{class:"sizeheading"},e.i18n.sizeheading),I("div",{class:"sizecategory"},I("table",{class:"sizeTable"},I("tr",null,I("td",null,I("img",{class:"firstCell",src:n})),I("td",null,I("img",{src:t})),I("td",null,I("img",{src:a})),I("td",null,I("img",{src:y}))),I("tr",null,I("td",null),j.map((function(i){return I("td",null,I("pn-radio-button",{radioid:i.value,value:i.value,name:"sizecategory",checked:i.value===M.sizecategory.value,onChange:function(){M.sizecategory=j.filter((function(M){return M.value===i.value}))[0];M.weight={value:0,name:""};M.weightvalue=M.weight.value}}))})))))),this.sizecategory.value&&z[this.sizecategory.unit]?I("div",{class:"weightoption"},I("div",{class:"weightoption-content"},z[this.sizecategory.unit].map((function(i){return I("pn-choice-button",{choiceid:M.sizecategory.value+i.value,name:"weight",type:"radio",value:!M.weight.value?0:z[M.sizecategory.unit].findIndex((function(i){return i.value===M.weightvalue})),checked:i.value===M.weight.value,onChange:function(){M.weight=z[M.sizecategory.unit].filter((function(M){return M.value===i.value}))[0];M.weightvalue=M.weight.value}},i.name)})))):null,this.filteredItems&&this.filteredItems.length>0?I("div",{class:"resultlist"},e.i18n.resultlistheading?I("div",{class:"resultHeading"},e.i18n.resultlistheading):null,this.filteredItems.map((function(M){return I("div",null,I("pn-find-price-result",{item:M}))})),I("div",{class:"servicePoint"},I("pn-illustration",{illustration:"character-box-letters-house"}),I("h3",null,e.i18n.servicePointHeader),I("a",{href:T,target:"_blank"},e.i18n.servicePointLink,I("pn-icon",{symbol:"map-marker",color:"blue700"})))):null)};Object.defineProperty(M,"watchers",{get:function(){return{market:["setState"],language:["setState"],sizecategory:["filterItems"],weightvalue:["filterItems"]}},enumerable:false,configurable:true});return M}());A.style=c}}}));
@@ -1 +0,0 @@
1
- import{c as e}from"./p-af1ac826.js";const{state:a}=e({i18n:{componentheading:"",deliveryscopeheading:"",sizeheading:"",resultlistheading:"",weightlabel:"",maxweightlabel:"",maxmeasurementlabel:"",senddirectcta:"",stampshopcta:"",message:"",servicePointHeader:"",servicePointLink:""},market:{currency:""}});export{a as s}