hemfixarna-web-components 1.8.3 → 1.8.5

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 (366) hide show
  1. package/dist/{collection/utils/api.js → hemfixarna-components/api-e3c51cb3.js} +7 -4
  2. package/dist/hemfixarna-components/api-e3c51cb3.js.map +1 -0
  3. package/dist/hemfixarna-components/app-globals-0f993ce5.js +5 -0
  4. package/dist/hemfixarna-components/app-globals-0f993ce5.js.map +1 -0
  5. package/dist/{collection/utils/calc.js → hemfixarna-components/calc-b3b6593c.js} +7 -13
  6. package/dist/hemfixarna-components/calc-b3b6593c.js.map +1 -0
  7. package/dist/hemfixarna-components/css-shim-4fde41f0.js +6 -0
  8. package/dist/hemfixarna-components/css-shim-4fde41f0.js.map +1 -0
  9. package/dist/hemfixarna-components/dom-8de30773.js +75 -0
  10. package/dist/hemfixarna-components/dom-8de30773.js.map +1 -0
  11. package/dist/{collection/utils/enviroment.js → hemfixarna-components/enviroment-fd0a763a.js} +8 -6
  12. package/dist/hemfixarna-components/enviroment-fd0a763a.js.map +1 -0
  13. package/dist/{collection/utils/form.js → hemfixarna-components/form-c53dca29.js} +4 -2
  14. package/dist/hemfixarna-components/form-c53dca29.js.map +1 -0
  15. package/dist/{collection/components/hemfixarna-address/hemfixarna-address.js → hemfixarna-components/hemfixarna-address.entry.js} +14 -20
  16. package/dist/hemfixarna-components/hemfixarna-address.entry.js.map +1 -0
  17. package/dist/hemfixarna-components/hemfixarna-box.entry.js +49 -0
  18. package/dist/hemfixarna-components/hemfixarna-box.entry.js.map +1 -0
  19. package/dist/{collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js → hemfixarna-components/hemfixarna-breadcrumbs.entry.js} +13 -28
  20. package/dist/hemfixarna-components/hemfixarna-breadcrumbs.entry.js.map +1 -0
  21. package/dist/{esm → hemfixarna-components}/hemfixarna-byggmax.entry.js +2 -2
  22. package/dist/hemfixarna-components/hemfixarna-byggmax.entry.js.map +1 -0
  23. package/dist/{collection/components/hemfixarna-cart/hemfixarna-cart.js → hemfixarna-components/hemfixarna-cart.entry.js} +12 -6
  24. package/dist/hemfixarna-components/hemfixarna-cart.entry.js.map +1 -0
  25. package/dist/{esm → hemfixarna-components}/hemfixarna-category.entry.js +2 -2
  26. package/dist/hemfixarna-components/hemfixarna-category.entry.js.map +1 -0
  27. package/dist/{collection/components/hemfixarna-checkout/hemfixarna-checkout.js → hemfixarna-components/hemfixarna-checkout.entry.js} +33 -26
  28. package/dist/hemfixarna-components/hemfixarna-checkout.entry.js.map +1 -0
  29. package/dist/hemfixarna-components/hemfixarna-component.entry.js +189 -0
  30. package/dist/hemfixarna-components/hemfixarna-component.entry.js.map +1 -0
  31. package/dist/hemfixarna-components/hemfixarna-components.esm.js +162 -1
  32. package/dist/hemfixarna-components/hemfixarna-components.esm.js.map +1 -1
  33. package/dist/{collection/components/hemfixarna-contact/hemfixarna-contact.js → hemfixarna-components/hemfixarna-contact.entry.js} +11 -29
  34. package/dist/hemfixarna-components/hemfixarna-contact.entry.js.map +1 -0
  35. package/dist/{collection/components/hemfixarna-demo/hemfixarna-demo.js → hemfixarna-components/hemfixarna-demo.entry.js} +21 -46
  36. package/dist/hemfixarna-components/hemfixarna-demo.entry.js.map +1 -0
  37. package/dist/{esm → hemfixarna-components}/hemfixarna-doro.entry.js +2 -2
  38. package/dist/hemfixarna-components/hemfixarna-doro.entry.js.map +1 -0
  39. package/dist/{esm → hemfixarna-components}/hemfixarna-elfa.entry.js +2 -2
  40. package/dist/hemfixarna-components/hemfixarna-elfa.entry.js.map +1 -0
  41. package/dist/{esm → hemfixarna-components}/hemfixarna-fargvaruhuset.entry.js +2 -2
  42. package/dist/hemfixarna-components/hemfixarna-fargvaruhuset.entry.js.map +1 -0
  43. package/dist/{esm → hemfixarna-components}/hemfixarna-flyttsmart.entry.js +2 -2
  44. package/dist/hemfixarna-components/hemfixarna-flyttsmart.entry.js.map +1 -0
  45. package/dist/{esm → hemfixarna-components}/hemfixarna-forebygg.entry.js +2 -2
  46. package/dist/hemfixarna-components/hemfixarna-forebygg.entry.js.map +1 -0
  47. package/dist/hemfixarna-components/hemfixarna-getuser.entry.js +770 -0
  48. package/dist/hemfixarna-components/hemfixarna-getuser.entry.js.map +1 -0
  49. package/dist/{esm → hemfixarna-components}/hemfixarna-hornbach.entry.js +2 -2
  50. package/dist/hemfixarna-components/hemfixarna-hornbach.entry.js.map +1 -0
  51. package/dist/{collection/components/hemfixarna-info/hemfixarna-info.js → hemfixarna-components/hemfixarna-info.entry.js} +11 -7
  52. package/dist/hemfixarna-components/hemfixarna-info.entry.js.map +1 -0
  53. package/dist/{collection/components/hemfixarna-invoice/hemfixarna-invoice.js → hemfixarna-components/hemfixarna-invoice.entry.js} +16 -27
  54. package/dist/hemfixarna-components/hemfixarna-invoice.entry.js.map +1 -0
  55. package/dist/{esm → hemfixarna-components}/hemfixarna-kbygg.entry.js +2 -2
  56. package/dist/hemfixarna-components/hemfixarna-kbygg.entry.js.map +1 -0
  57. package/dist/{esm → hemfixarna-components}/hemfixarna-klint.entry.js +2 -2
  58. package/dist/hemfixarna-components/hemfixarna-klint.entry.js.map +1 -0
  59. package/dist/{esm → hemfixarna-components}/hemfixarna-kund.entry.js +2 -2
  60. package/dist/hemfixarna-components/hemfixarna-kund.entry.js.map +1 -0
  61. package/dist/{esm → hemfixarna-components}/hemfixarna-norrgavel.entry.js +2 -2
  62. package/dist/hemfixarna-components/hemfixarna-norrgavel.entry.js.map +1 -0
  63. package/dist/{collection/components/hemfixarna-order/hemfixarna-order.js → hemfixarna-components/hemfixarna-order.entry.js} +11 -7
  64. package/dist/hemfixarna-components/hemfixarna-order.entry.js.map +1 -0
  65. package/dist/{collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js → hemfixarna-components/hemfixarna-orderrows.entry.js} +12 -30
  66. package/dist/hemfixarna-components/hemfixarna-orderrows.entry.js.map +1 -0
  67. package/dist/{esm → hemfixarna-components}/hemfixarna-power.entry.js +2 -2
  68. package/dist/hemfixarna-components/hemfixarna-power.entry.js.map +1 -0
  69. package/dist/{collection/components/hemfixarna-product/hemfixarna-product.js → hemfixarna-components/hemfixarna-product.entry.js} +18 -27
  70. package/dist/hemfixarna-components/hemfixarna-product.entry.js.map +1 -0
  71. package/dist/{esm → hemfixarna-components}/hemfixarna-service.entry.js +2 -2
  72. package/dist/hemfixarna-components/hemfixarna-service.entry.js.map +1 -0
  73. package/dist/{esm → hemfixarna-components}/hemfixarna-skanska.entry.js +2 -2
  74. package/dist/hemfixarna-components/hemfixarna-skanska.entry.js.map +1 -0
  75. package/dist/{esm → hemfixarna-components}/hemfixarna-sparfonster.entry.js +2 -2
  76. package/dist/hemfixarna-components/hemfixarna-sparfonster.entry.js.map +1 -0
  77. package/dist/{collection/components/hemfixarna-start/hemfixarna-start.js → hemfixarna-components/hemfixarna-start.entry.js} +11 -48
  78. package/dist/hemfixarna-components/hemfixarna-start.entry.js.map +1 -0
  79. package/dist/{esm → hemfixarna-components}/hemfixarna-string-furniture.entry.js +2 -2
  80. package/dist/hemfixarna-components/hemfixarna-string-furniture.entry.js.map +1 -0
  81. package/dist/{esm → hemfixarna-components}/hemfixarna-superfront.entry.js +2 -2
  82. package/dist/hemfixarna-components/hemfixarna-superfront.entry.js.map +1 -0
  83. package/dist/{esm → hemfixarna-components}/hemfixarna-tesla.entry.js +2 -2
  84. package/dist/hemfixarna-components/hemfixarna-tesla.entry.js.map +1 -0
  85. package/dist/{esm → hemfixarna-components}/hemfixarna-traningspartner.entry.js +2 -2
  86. package/dist/hemfixarna-components/hemfixarna-traningspartner.entry.js.map +1 -0
  87. package/dist/{esm → hemfixarna-components}/hemfixarna-zaptec.entry.js +2 -2
  88. package/dist/hemfixarna-components/hemfixarna-zaptec.entry.js.map +1 -0
  89. package/dist/{esm/index-8282f88e.js → hemfixarna-components/index-21ba2b05.js} +2 -2
  90. package/dist/{esm/index-8282f88e.js.map → hemfixarna-components/index-21ba2b05.js.map} +1 -1
  91. package/dist/hemfixarna-components/index-2ce8b901.js +3461 -0
  92. package/dist/hemfixarna-components/index-2ce8b901.js.map +1 -0
  93. package/dist/{esm/index-c8aebf0d.js → hemfixarna-components/index-c8ce6f4b.js} +6 -1
  94. package/dist/hemfixarna-components/index-c8ce6f4b.js.map +1 -0
  95. package/dist/hemfixarna-components/index.esm.js +1 -0
  96. package/dist/hemfixarna-components/index.esm.js.map +1 -1
  97. package/dist/{collection/utils/scroll.js → hemfixarna-components/scroll-6c26b5da.js} +4 -2
  98. package/dist/hemfixarna-components/scroll-6c26b5da.js.map +1 -0
  99. package/dist/hemfixarna-components/shadow-css-af2290df.js +389 -0
  100. package/dist/hemfixarna-components/shadow-css-af2290df.js.map +1 -0
  101. package/dist/{collection/utils/types.js → hemfixarna-components/types-6da209ae.js} +6 -3
  102. package/dist/hemfixarna-components/types-6da209ae.js.map +1 -0
  103. package/dist/types/stencil-public-runtime.d.ts +3 -0
  104. package/dist/types/types/index.d.ts +6 -1
  105. package/package.json +1 -1
  106. package/dist/cjs/hemfixarna-address_15.cjs.entry.js +0 -2180
  107. package/dist/cjs/hemfixarna-address_15.cjs.entry.js.map +0 -1
  108. package/dist/cjs/hemfixarna-byggmax.cjs.entry.js +0 -27
  109. package/dist/cjs/hemfixarna-byggmax.cjs.entry.js.map +0 -1
  110. package/dist/cjs/hemfixarna-category.cjs.entry.js +0 -28
  111. package/dist/cjs/hemfixarna-category.cjs.entry.js.map +0 -1
  112. package/dist/cjs/hemfixarna-components.cjs.js +0 -28
  113. package/dist/cjs/hemfixarna-components.cjs.js.map +0 -1
  114. package/dist/cjs/hemfixarna-doro.cjs.entry.js +0 -26
  115. package/dist/cjs/hemfixarna-doro.cjs.entry.js.map +0 -1
  116. package/dist/cjs/hemfixarna-elfa.cjs.entry.js +0 -26
  117. package/dist/cjs/hemfixarna-elfa.cjs.entry.js.map +0 -1
  118. package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js +0 -23
  119. package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js.map +0 -1
  120. package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js +0 -23
  121. package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js.map +0 -1
  122. package/dist/cjs/hemfixarna-forebygg.cjs.entry.js +0 -26
  123. package/dist/cjs/hemfixarna-forebygg.cjs.entry.js.map +0 -1
  124. package/dist/cjs/hemfixarna-hornbach.cjs.entry.js +0 -26
  125. package/dist/cjs/hemfixarna-hornbach.cjs.entry.js.map +0 -1
  126. package/dist/cjs/hemfixarna-kbygg.cjs.entry.js +0 -23
  127. package/dist/cjs/hemfixarna-kbygg.cjs.entry.js.map +0 -1
  128. package/dist/cjs/hemfixarna-klint.cjs.entry.js +0 -23
  129. package/dist/cjs/hemfixarna-klint.cjs.entry.js.map +0 -1
  130. package/dist/cjs/hemfixarna-kund.cjs.entry.js +0 -23
  131. package/dist/cjs/hemfixarna-kund.cjs.entry.js.map +0 -1
  132. package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js +0 -23
  133. package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js.map +0 -1
  134. package/dist/cjs/hemfixarna-power.cjs.entry.js +0 -23
  135. package/dist/cjs/hemfixarna-power.cjs.entry.js.map +0 -1
  136. package/dist/cjs/hemfixarna-service.cjs.entry.js +0 -24
  137. package/dist/cjs/hemfixarna-service.cjs.entry.js.map +0 -1
  138. package/dist/cjs/hemfixarna-skanska.cjs.entry.js +0 -26
  139. package/dist/cjs/hemfixarna-skanska.cjs.entry.js.map +0 -1
  140. package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js +0 -23
  141. package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js.map +0 -1
  142. package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js +0 -26
  143. package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js.map +0 -1
  144. package/dist/cjs/hemfixarna-superfront.cjs.entry.js +0 -24
  145. package/dist/cjs/hemfixarna-superfront.cjs.entry.js.map +0 -1
  146. package/dist/cjs/hemfixarna-tesla.cjs.entry.js +0 -23
  147. package/dist/cjs/hemfixarna-tesla.cjs.entry.js.map +0 -1
  148. package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js +0 -23
  149. package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js.map +0 -1
  150. package/dist/cjs/hemfixarna-zaptec.cjs.entry.js +0 -23
  151. package/dist/cjs/hemfixarna-zaptec.cjs.entry.js.map +0 -1
  152. package/dist/cjs/index-6af772cf.js +0 -265
  153. package/dist/cjs/index-6af772cf.js.map +0 -1
  154. package/dist/cjs/index-739bf321.js +0 -44
  155. package/dist/cjs/index-739bf321.js.map +0 -1
  156. package/dist/cjs/index-b83343b9.js +0 -1687
  157. package/dist/cjs/index-b83343b9.js.map +0 -1
  158. package/dist/cjs/index.cjs.js +0 -4
  159. package/dist/cjs/index.cjs.js.map +0 -1
  160. package/dist/cjs/loader.cjs.js +0 -24
  161. package/dist/cjs/loader.cjs.js.map +0 -1
  162. package/dist/collection/assets/back.svg +0 -3
  163. package/dist/collection/assets/cart.svg +0 -10
  164. package/dist/collection/assets/checked.svg +0 -10
  165. package/dist/collection/assets/close.svg +0 -5
  166. package/dist/collection/assets/copy.png +0 -0
  167. package/dist/collection/assets/date.svg +0 -6
  168. package/dist/collection/assets/down.svg +0 -3
  169. package/dist/collection/assets/drag-drop.svg +0 -3
  170. package/dist/collection/assets/elfa.png +0 -0
  171. package/dist/collection/assets/gubbe-pensel.svg +0 -1
  172. package/dist/collection/assets/hemfixarna.svg +0 -11
  173. package/dist/collection/assets/hornbach/logo.svg +0 -42
  174. package/dist/collection/assets/hornbach/nav.jpg +0 -0
  175. package/dist/collection/assets/info.svg +0 -5
  176. package/dist/collection/assets/kbygg.svg +0 -29
  177. package/dist/collection/assets/minus.svg +0 -4
  178. package/dist/collection/assets/montering.svg +0 -15
  179. package/dist/collection/assets/norrgavel.svg +0 -1
  180. package/dist/collection/assets/pensel.svg +0 -1
  181. package/dist/collection/assets/plus.svg +0 -5
  182. package/dist/collection/assets/spinner.gif +0 -0
  183. package/dist/collection/assets/tesla.svg +0 -1
  184. package/dist/collection/assets/zaptec.svg +0 -1
  185. package/dist/collection/collection-manifest.json +0 -47
  186. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.css +0 -0
  187. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js +0 -122
  188. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js.map +0 -1
  189. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.css +0 -0
  190. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js +0 -104
  191. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js.map +0 -1
  192. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.css +0 -0
  193. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js +0 -104
  194. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js.map +0 -1
  195. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js +0 -94
  196. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js.map +0 -1
  197. package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js +0 -94
  198. package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map +0 -1
  199. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.css +0 -0
  200. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js +0 -104
  201. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js.map +0 -1
  202. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.css +0 -0
  203. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js +0 -104
  204. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js.map +0 -1
  205. package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js +0 -94
  206. package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js.map +0 -1
  207. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +0 -94
  208. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +0 -1
  209. package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js +0 -94
  210. package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js.map +0 -1
  211. package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js +0 -94
  212. package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js.map +0 -1
  213. package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js +0 -94
  214. package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js.map +0 -1
  215. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.css +0 -0
  216. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js +0 -104
  217. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js.map +0 -1
  218. package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js +0 -94
  219. package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map +0 -1
  220. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js +0 -104
  221. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js.map +0 -1
  222. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string.css +0 -0
  223. package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js +0 -113
  224. package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js.map +0 -1
  225. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js +0 -94
  226. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js.map +0 -1
  227. package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js +0 -94
  228. package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js.map +0 -1
  229. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js +0 -94
  230. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js.map +0 -1
  231. package/dist/collection/components/hemfixarna-address/hemfixarna-address.js.map +0 -1
  232. package/dist/collection/components/hemfixarna-box/hemfixarna-box.js +0 -138
  233. package/dist/collection/components/hemfixarna-box/hemfixarna-box.js.map +0 -1
  234. package/dist/collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js.map +0 -1
  235. package/dist/collection/components/hemfixarna-cart/hemfixarna-cart.js.map +0 -1
  236. package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js +0 -18
  237. package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js.map +0 -1
  238. package/dist/collection/components/hemfixarna-checkout/hemfixarna-checkout.js.map +0 -1
  239. package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +0 -330
  240. package/dist/collection/components/hemfixarna-component/hemfixarna-component.js.map +0 -1
  241. package/dist/collection/components/hemfixarna-component/hemfixarna.css +0 -1061
  242. package/dist/collection/components/hemfixarna-contact/hemfixarna-contact.js.map +0 -1
  243. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.css +0 -135
  244. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +0 -1
  245. package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js +0 -91
  246. package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js.map +0 -1
  247. package/dist/collection/components/hemfixarna-info/hemfixarna-info.js.map +0 -1
  248. package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.css +0 -76
  249. package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js.map +0 -1
  250. package/dist/collection/components/hemfixarna-order/hemfixarna-order.js.map +0 -1
  251. package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js.map +0 -1
  252. package/dist/collection/components/hemfixarna-product/hemfixarna-product.css +0 -0
  253. package/dist/collection/components/hemfixarna-product/hemfixarna-product.js.map +0 -1
  254. package/dist/collection/components/hemfixarna-service/hemfixarna-service.js +0 -14
  255. package/dist/collection/components/hemfixarna-service/hemfixarna-service.js.map +0 -1
  256. package/dist/collection/components/hemfixarna-start/hemfixarna-start.js.map +0 -1
  257. package/dist/collection/index.js +0 -2
  258. package/dist/collection/index.js.map +0 -1
  259. package/dist/collection/store/index.js +0 -69
  260. package/dist/collection/store/index.js.map +0 -1
  261. package/dist/collection/types/felixtypes.js +0 -3
  262. package/dist/collection/types/felixtypes.js.map +0 -1
  263. package/dist/collection/types/index.js +0 -41
  264. package/dist/collection/types/index.js.map +0 -1
  265. package/dist/collection/utils/api.js.map +0 -1
  266. package/dist/collection/utils/calc.js.map +0 -1
  267. package/dist/collection/utils/creditSafe.js +0 -18
  268. package/dist/collection/utils/creditSafe.js.map +0 -1
  269. package/dist/collection/utils/enviroment.js.map +0 -1
  270. package/dist/collection/utils/felixApi.js +0 -19
  271. package/dist/collection/utils/felixApi.js.map +0 -1
  272. package/dist/collection/utils/felixFunctions.js +0 -188
  273. package/dist/collection/utils/felixFunctions.js.map +0 -1
  274. package/dist/collection/utils/form.js.map +0 -1
  275. package/dist/collection/utils/scroll.js.map +0 -1
  276. package/dist/collection/utils/types.js.map +0 -1
  277. package/dist/esm/hemfixarna-address_15.entry.js +0 -2162
  278. package/dist/esm/hemfixarna-address_15.entry.js.map +0 -1
  279. package/dist/esm/hemfixarna-byggmax.entry.js.map +0 -1
  280. package/dist/esm/hemfixarna-category.entry.js.map +0 -1
  281. package/dist/esm/hemfixarna-components.js +0 -23
  282. package/dist/esm/hemfixarna-components.js.map +0 -1
  283. package/dist/esm/hemfixarna-doro.entry.js.map +0 -1
  284. package/dist/esm/hemfixarna-elfa.entry.js.map +0 -1
  285. package/dist/esm/hemfixarna-fargvaruhuset.entry.js.map +0 -1
  286. package/dist/esm/hemfixarna-flyttsmart.entry.js.map +0 -1
  287. package/dist/esm/hemfixarna-forebygg.entry.js.map +0 -1
  288. package/dist/esm/hemfixarna-hornbach.entry.js.map +0 -1
  289. package/dist/esm/hemfixarna-kbygg.entry.js.map +0 -1
  290. package/dist/esm/hemfixarna-klint.entry.js.map +0 -1
  291. package/dist/esm/hemfixarna-kund.entry.js.map +0 -1
  292. package/dist/esm/hemfixarna-norrgavel.entry.js.map +0 -1
  293. package/dist/esm/hemfixarna-power.entry.js.map +0 -1
  294. package/dist/esm/hemfixarna-service.entry.js.map +0 -1
  295. package/dist/esm/hemfixarna-skanska.entry.js.map +0 -1
  296. package/dist/esm/hemfixarna-sparfonster.entry.js.map +0 -1
  297. package/dist/esm/hemfixarna-string-furniture.entry.js.map +0 -1
  298. package/dist/esm/hemfixarna-superfront.entry.js.map +0 -1
  299. package/dist/esm/hemfixarna-tesla.entry.js.map +0 -1
  300. package/dist/esm/hemfixarna-traningspartner.entry.js.map +0 -1
  301. package/dist/esm/hemfixarna-zaptec.entry.js.map +0 -1
  302. package/dist/esm/index-04bcf90e.js +0 -1656
  303. package/dist/esm/index-04bcf90e.js.map +0 -1
  304. package/dist/esm/index-c8aebf0d.js.map +0 -1
  305. package/dist/esm/index.js +0 -3
  306. package/dist/esm/index.js.map +0 -1
  307. package/dist/esm/loader.js +0 -20
  308. package/dist/esm/loader.js.map +0 -1
  309. package/dist/esm/polyfills/core-js.js +0 -11
  310. package/dist/esm/polyfills/css-shim.js +0 -1
  311. package/dist/esm/polyfills/dom.js +0 -79
  312. package/dist/esm/polyfills/es5-html-element.js +0 -1
  313. package/dist/esm/polyfills/index.js +0 -34
  314. package/dist/esm/polyfills/system.js +0 -6
  315. package/dist/hemfixarna-components/p-075a13b6.entry.js +0 -2
  316. package/dist/hemfixarna-components/p-075a13b6.entry.js.map +0 -1
  317. package/dist/hemfixarna-components/p-0aa722e7.entry.js +0 -2
  318. package/dist/hemfixarna-components/p-0aa722e7.entry.js.map +0 -1
  319. package/dist/hemfixarna-components/p-1cbfbf5a.entry.js +0 -2
  320. package/dist/hemfixarna-components/p-1cbfbf5a.entry.js.map +0 -1
  321. package/dist/hemfixarna-components/p-226a06bb.entry.js +0 -2
  322. package/dist/hemfixarna-components/p-226a06bb.entry.js.map +0 -1
  323. package/dist/hemfixarna-components/p-24b53f91.entry.js +0 -2
  324. package/dist/hemfixarna-components/p-24b53f91.entry.js.map +0 -1
  325. package/dist/hemfixarna-components/p-32a8152b.js +0 -3
  326. package/dist/hemfixarna-components/p-32a8152b.js.map +0 -1
  327. package/dist/hemfixarna-components/p-49c372d6.entry.js +0 -2
  328. package/dist/hemfixarna-components/p-49c372d6.entry.js.map +0 -1
  329. package/dist/hemfixarna-components/p-506c766c.entry.js +0 -2
  330. package/dist/hemfixarna-components/p-506c766c.entry.js.map +0 -1
  331. package/dist/hemfixarna-components/p-53edf50e.entry.js +0 -2
  332. package/dist/hemfixarna-components/p-53edf50e.entry.js.map +0 -1
  333. package/dist/hemfixarna-components/p-66515865.entry.js +0 -2
  334. package/dist/hemfixarna-components/p-66515865.entry.js.map +0 -1
  335. package/dist/hemfixarna-components/p-6c0e0f95.entry.js +0 -2
  336. package/dist/hemfixarna-components/p-6c0e0f95.entry.js.map +0 -1
  337. package/dist/hemfixarna-components/p-8cc96dd9.entry.js +0 -2
  338. package/dist/hemfixarna-components/p-8cc96dd9.entry.js.map +0 -1
  339. package/dist/hemfixarna-components/p-9b409902.entry.js +0 -2
  340. package/dist/hemfixarna-components/p-9b409902.entry.js.map +0 -1
  341. package/dist/hemfixarna-components/p-a09f4a5d.entry.js +0 -2
  342. package/dist/hemfixarna-components/p-a09f4a5d.entry.js.map +0 -1
  343. package/dist/hemfixarna-components/p-b397b966.js +0 -2
  344. package/dist/hemfixarna-components/p-b397b966.js.map +0 -1
  345. package/dist/hemfixarna-components/p-bf515028.entry.js +0 -2
  346. package/dist/hemfixarna-components/p-bf515028.entry.js.map +0 -1
  347. package/dist/hemfixarna-components/p-d013eeee.entry.js +0 -2
  348. package/dist/hemfixarna-components/p-d013eeee.entry.js.map +0 -1
  349. package/dist/hemfixarna-components/p-d281e9e3.entry.js +0 -2
  350. package/dist/hemfixarna-components/p-d281e9e3.entry.js.map +0 -1
  351. package/dist/hemfixarna-components/p-d297cb30.js +0 -2
  352. package/dist/hemfixarna-components/p-d297cb30.js.map +0 -1
  353. package/dist/hemfixarna-components/p-d6af83de.entry.js +0 -2
  354. package/dist/hemfixarna-components/p-d6af83de.entry.js.map +0 -1
  355. package/dist/hemfixarna-components/p-e8800c3b.entry.js +0 -2
  356. package/dist/hemfixarna-components/p-e8800c3b.entry.js.map +0 -1
  357. package/dist/hemfixarna-components/p-eaa3e1c0.entry.js +0 -2
  358. package/dist/hemfixarna-components/p-eaa3e1c0.entry.js.map +0 -1
  359. package/dist/hemfixarna-components/p-ee6d1a35.entry.js +0 -2
  360. package/dist/hemfixarna-components/p-ee6d1a35.entry.js.map +0 -1
  361. package/dist/hemfixarna-components/p-f6de66c8.entry.js +0 -2
  362. package/dist/hemfixarna-components/p-f6de66c8.entry.js.map +0 -1
  363. package/dist/hemfixarna-components/p-facaf951.entry.js +0 -2
  364. package/dist/hemfixarna-components/p-facaf951.entry.js.map +0 -1
  365. package/dist/index.cjs.js +0 -1
  366. package/dist/index.js +0 -1
@@ -0,0 +1,770 @@
1
+ import { r as registerInstance, h, i as getElement } from './index-2ce8b901.js';
2
+ import { s as state } from './index-21ba2b05.js';
3
+ import { a as getCreditSafeApiUrl } from './enviroment-fd0a763a.js';
4
+ import { s as scrollToTop } from './scroll-6c26b5da.js';
5
+
6
+ // src/errors.ts
7
+ var PersonnummerError = class extends Error {
8
+ constructor() {
9
+ super("Invalid swedish personal identity number");
10
+ }
11
+ };
12
+
13
+ // src/utils.ts
14
+ var compareAsc = (dateLeft, dateRight) => {
15
+ const diff = dateLeft.getTime() - dateRight.getTime();
16
+ return diff < 0 ? -1 : diff > 0 ? 1 : diff;
17
+ };
18
+ var diffInYears = (dateLeft, dateRight) => {
19
+ const sign = compareAsc(dateLeft, dateRight);
20
+ const yearDiff = Math.abs(dateLeft.getFullYear() - dateRight.getFullYear());
21
+ dateLeft.setFullYear(dateLeft.getFullYear() - sign * yearDiff);
22
+ const isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign;
23
+ const result = sign * (yearDiff - +isLastYearNotFull);
24
+ return result === 0 ? 0 : result;
25
+ };
26
+ var luhn = (str) => {
27
+ let sum = 0;
28
+ str += "";
29
+ for (let i = 0, l = str.length; i < l; i++) {
30
+ let v = parseInt(str[i]);
31
+ v *= 2 - i % 2;
32
+ if (v > 9) {
33
+ v -= 9;
34
+ }
35
+ sum += v;
36
+ }
37
+ return Math.ceil(sum / 10) * 10 - sum;
38
+ };
39
+ var testDate = (year, month, day) => {
40
+ month -= 1;
41
+ const date = new Date(year, month, day);
42
+ return !(date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day);
43
+ };
44
+
45
+ // src/index.ts
46
+ var Personnummer = class {
47
+ /**
48
+ * Personnummer constructor.
49
+ *
50
+ * @param {string} pin
51
+ * @param {object} options
52
+ */
53
+ constructor(pin, options) {
54
+ /**
55
+ * Personnummer century.
56
+ *
57
+ * @var {string}
58
+ */
59
+ this._century = "";
60
+ /**
61
+ * Personnummer full year.
62
+ *
63
+ * @var {string}
64
+ */
65
+ this._fullYear = "";
66
+ /**
67
+ * Personnummer year.
68
+ *
69
+ * @var {string}
70
+ */
71
+ this._year = "";
72
+ /**
73
+ * Personnummer month.
74
+ *
75
+ * @var {string}
76
+ */
77
+ this._month = "";
78
+ /**
79
+ * Personnummer day.
80
+ *
81
+ * @var {string}
82
+ */
83
+ this._day = "";
84
+ /**
85
+ * Personnummer seperator.
86
+ *
87
+ * @var {string}
88
+ */
89
+ this._sep = "";
90
+ /**
91
+ * Personnumer first three of the last four numbers.
92
+ *
93
+ * @var {string}
94
+ */
95
+ this._num = "";
96
+ /**
97
+ * The last number of the personnummer.
98
+ *
99
+ * @var {string}
100
+ */
101
+ this._check = "";
102
+ this.parse(pin, {
103
+ allowCoordinationNumber: true,
104
+ allowInterimNumber: false,
105
+ ...options
106
+ });
107
+ }
108
+ /**
109
+ * Get century.
110
+ *
111
+ * @return {string}
112
+ */
113
+ get century() {
114
+ return this._century;
115
+ }
116
+ /**
117
+ * Get age.
118
+ *
119
+ * @return {string}
120
+ */
121
+ get fullYear() {
122
+ return this._fullYear;
123
+ }
124
+ /**
125
+ * Get age.
126
+ *
127
+ * @return {string}
128
+ */
129
+ get year() {
130
+ return this._year;
131
+ }
132
+ /**
133
+ * Get month.
134
+ *
135
+ * @return {string}
136
+ */
137
+ get month() {
138
+ return this._month;
139
+ }
140
+ /**
141
+ * Get day.
142
+ *
143
+ * @return {string}
144
+ */
145
+ get day() {
146
+ return this._day;
147
+ }
148
+ /**
149
+ * Get sep.
150
+ *
151
+ * @return {string}
152
+ */
153
+ get sep() {
154
+ return this._sep;
155
+ }
156
+ /**
157
+ * Get num.
158
+ *
159
+ * @return {string}
160
+ */
161
+ get num() {
162
+ return this._num;
163
+ }
164
+ /**
165
+ * Get check.
166
+ *
167
+ * @return {string}
168
+ */
169
+ get check() {
170
+ return this._check;
171
+ }
172
+ /**
173
+ * Parse personnummer.
174
+ *
175
+ * @param {string} pin
176
+ * @param {object} options
177
+ *
178
+ * @return {Personnummer}
179
+ */
180
+ static parse(pin, options) {
181
+ return new Personnummer(pin, options);
182
+ }
183
+ /**
184
+ * Validate a Swedish personal identity number.
185
+ *
186
+ * @param {string} str
187
+ * @param {object} options
188
+ *
189
+ * @return {boolean}
190
+ */
191
+ static valid(pin, options) {
192
+ try {
193
+ Personnummer.parse(pin, options);
194
+ return true;
195
+ } catch (e) {
196
+ return false;
197
+ }
198
+ }
199
+ /**
200
+ * Parse personnummer and set class properties.
201
+ *
202
+ * @param {string} pin
203
+ * @param {object} options
204
+ */
205
+ parse(pin, options) {
206
+ if (pin.length < 10 || pin.length > 13) {
207
+ throw new PersonnummerError();
208
+ }
209
+ const reg = /^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([+-]?)((?!000)\d{3}|[TRSUWXJKLMN]\d{2})(\d)$/;
210
+ const match = reg.exec(pin);
211
+ if (!match) {
212
+ throw new PersonnummerError();
213
+ }
214
+ const century = match[1];
215
+ const year = match[2];
216
+ const month = match[3];
217
+ const day = match[4];
218
+ const sep = match[5];
219
+ const num = match[6];
220
+ const check = match[7];
221
+ if (typeof century === "undefined" || !century.length) {
222
+ const d = /* @__PURE__ */ new Date();
223
+ let baseYear = 0;
224
+ if (sep === "+") {
225
+ this._sep = "+";
226
+ baseYear = d.getFullYear() - 100;
227
+ } else {
228
+ this._sep = "-";
229
+ baseYear = d.getFullYear();
230
+ }
231
+ this._century = ("" + (baseYear - (baseYear - parseInt(year)) % 100)).substr(0, 2);
232
+ } else {
233
+ this._century = century;
234
+ if ((/* @__PURE__ */ new Date()).getFullYear() - parseInt(century + year, 10) < 100) {
235
+ this._sep = "-";
236
+ } else {
237
+ this._sep = "+";
238
+ }
239
+ }
240
+ this._year = year;
241
+ this._fullYear = this._century + year;
242
+ this._month = month;
243
+ this._day = day;
244
+ this._num = num;
245
+ this._check = check;
246
+ if (!this.valid()) {
247
+ throw new PersonnummerError();
248
+ }
249
+ if (!(options == null ? void 0 : options.allowCoordinationNumber) && this.isCoordinationNumber()) {
250
+ throw new PersonnummerError();
251
+ }
252
+ if (!(options == null ? void 0 : options.allowInterimNumber) && this.isInterimNumber()) {
253
+ throw new PersonnummerError();
254
+ }
255
+ }
256
+ /**
257
+ * Validate a Swedish personal identity number.
258
+ *
259
+ * @return {boolean}
260
+ */
261
+ valid() {
262
+ const valid = luhn(
263
+ this.year + this.month + this.day + this.num.replace(/[TRSUWXJKLMN]/, "1")
264
+ ) === +this.check && !!this.check;
265
+ if (valid && testDate(parseInt(this.century + this.year), +this.month, +this.day)) {
266
+ return valid;
267
+ }
268
+ return valid && testDate(parseInt(this.century + this.year), +this.month, +this.day - 60);
269
+ }
270
+ /**
271
+ * Format a Swedish personal identity number as one of the official formats,
272
+ * A long format or a short format.
273
+ *
274
+ * If the input number could not be parsed a empty string will be returned.
275
+ *
276
+ * @param {boolean} longFormat
277
+ *
278
+ * @return {string}
279
+ */
280
+ format(longFormat = false) {
281
+ if (longFormat) {
282
+ return `${this.century}${this.year}${this.month}${this.day}${this.num}${this.check}`;
283
+ }
284
+ return `${this.year}${this.month}${this.day}${this.sep}${this.num}${this.check}`;
285
+ }
286
+ /**
287
+ * Get age from a Swedish personal identity number.
288
+ *
289
+ * @return {number}
290
+ */
291
+ getAge() {
292
+ const date = this.getDate();
293
+ return diffInYears(new Date(Date.now()), date);
294
+ }
295
+ /**
296
+ * Get date from a Swedish personal identity number.
297
+ *
298
+ * @return {Date}
299
+ */
300
+ getDate() {
301
+ let ageDay = +this.day;
302
+ if (this.isCoordinationNumber()) {
303
+ ageDay -= 60;
304
+ }
305
+ const ageDate = this.century + this.year + "-" + this.month + "-" + (ageDay < 10 ? "0" + ageDay : ageDay);
306
+ return new Date(ageDate);
307
+ }
308
+ /**
309
+ * Check if a Swedish personal identity number is a interim number or not.
310
+ *
311
+ * @return {boolean}
312
+ */
313
+ isInterimNumber() {
314
+ return /[TRSUWXJKLMN]/.test(this.num[0]);
315
+ }
316
+ /**
317
+ * Check if a Swedish personal identity number is a coordination number or not.
318
+ *
319
+ * @return {boolean}
320
+ */
321
+ isCoordinationNumber() {
322
+ return testDate(
323
+ parseInt(this.century + this.year),
324
+ +this.month,
325
+ +this.day - 60
326
+ );
327
+ }
328
+ /**
329
+ * Check if a Swedish personal identity number is for a female.
330
+ *
331
+ * @return {boolean}
332
+ */
333
+ isFemale() {
334
+ return !this.isMale();
335
+ }
336
+ /**
337
+ * Check if a Swedish personal identity number is for a male.
338
+ *
339
+ * @return {boolean}
340
+ */
341
+ isMale() {
342
+ const sexDigit = parseInt(this.num.substr(-1));
343
+ return sexDigit % 2 === 1;
344
+ }
345
+ };
346
+ var src_default = Personnummer;
347
+
348
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
349
+
350
+ function getDefaultExportFromCjs (x) {
351
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
352
+ }
353
+
354
+ function createCommonjsModule(fn, basedir, module) {
355
+ return module = {
356
+ path: basedir,
357
+ exports: {},
358
+ require: function (path, base) {
359
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
360
+ }
361
+ }, fn(module, module.exports), module.exports;
362
+ }
363
+
364
+ function getDefaultExportFromNamespaceIfPresent (n) {
365
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
366
+ }
367
+
368
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
369
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
370
+ }
371
+
372
+ function getAugmentedNamespace(n) {
373
+ if (n.__esModule) return n;
374
+ var a = Object.defineProperty({}, '__esModule', {value: true});
375
+ Object.keys(n).forEach(function (k) {
376
+ var d = Object.getOwnPropertyDescriptor(n, k);
377
+ Object.defineProperty(a, k, d.get ? d : {
378
+ enumerable: true,
379
+ get: function () {
380
+ return n[k];
381
+ }
382
+ });
383
+ });
384
+ return a;
385
+ }
386
+
387
+ function commonjsRequire () {
388
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
389
+ }
390
+
391
+ var utf8 = createCommonjsModule(function (module, exports) {
392
+ "use strict";
393
+ // tslint:disable:no-bitwise
394
+ Object.defineProperty(exports, "__esModule", { value: true });
395
+ exports.utf8 = void 0;
396
+ exports.utf8 = {
397
+ encode: encode,
398
+ decode: decode,
399
+ };
400
+ function encode(unicodeText) {
401
+ unicodeText = unicodeText.replace(/\r\n/g, "\n");
402
+ var result = "";
403
+ for (var i = 0; i < unicodeText.length; i++) {
404
+ var char = unicodeText.charCodeAt(i);
405
+ if (char < 128) {
406
+ result += String.fromCharCode(char);
407
+ }
408
+ else if (char > 127 && char < 2048) {
409
+ result += String.fromCharCode((char >> 6) | 192);
410
+ result += String.fromCharCode((char & 63) | 128);
411
+ }
412
+ else {
413
+ result += String.fromCharCode((char >> 12) | 224);
414
+ result += String.fromCharCode(((char >> 6) & 63) | 128);
415
+ result += String.fromCharCode((char & 63) | 128);
416
+ }
417
+ }
418
+ return result;
419
+ }
420
+ function decode(utf8Text) {
421
+ var result = "";
422
+ var i = 0;
423
+ var char1 = 0;
424
+ var char2 = 0;
425
+ var char3 = 0;
426
+ while (i < utf8Text.length) {
427
+ char1 = utf8Text.charCodeAt(i);
428
+ if (char1 < 128) {
429
+ result += String.fromCharCode(char1);
430
+ i++;
431
+ }
432
+ else if (char1 > 191 && char1 < 224) {
433
+ char2 = utf8Text.charCodeAt(i + 1);
434
+ result += String.fromCharCode(((char1 & 31) << 6) | (char2 & 63));
435
+ i += 2;
436
+ }
437
+ else {
438
+ char2 = utf8Text.charCodeAt(i + 1);
439
+ char3 = utf8Text.charCodeAt(i + 2);
440
+ result += String.fromCharCode(((char1 & 15) << 12) | ((char2 & 63) << 6) | (char3 & 63));
441
+ i += 3;
442
+ }
443
+ }
444
+ return result;
445
+ }
446
+ });
447
+
448
+ const utf8$1 = /*@__PURE__*/getDefaultExportFromCjs(utf8);
449
+
450
+ var md5 = createCommonjsModule(function (module, exports) {
451
+ "use strict";
452
+ // tslint:disable:no-bitwise
453
+ Object.defineProperty(exports, "__esModule", { value: true });
454
+ exports.generate = void 0;
455
+
456
+ function generate(unicodeText) {
457
+ var x = [];
458
+ var k;
459
+ var AA;
460
+ var BB;
461
+ var CC;
462
+ var DD;
463
+ var a;
464
+ var b;
465
+ var c;
466
+ var d;
467
+ var S11 = 7;
468
+ var S12 = 12;
469
+ var S13 = 17;
470
+ var S14 = 22;
471
+ var S21 = 5;
472
+ var S22 = 9;
473
+ var S23 = 14;
474
+ var S24 = 20;
475
+ var S31 = 4;
476
+ var S32 = 11;
477
+ var S33 = 16;
478
+ var S34 = 23;
479
+ var S41 = 6;
480
+ var S42 = 10;
481
+ var S43 = 15;
482
+ var S44 = 21;
483
+ var utf8Text = utf8.utf8.encode(unicodeText);
484
+ x = convertToWordArray(utf8Text);
485
+ a = 0x67452301;
486
+ b = 0xefcdab89;
487
+ c = 0x98badcfe;
488
+ d = 0x10325476;
489
+ for (k = 0; k < x.length; k += 16) {
490
+ AA = a;
491
+ BB = b;
492
+ CC = c;
493
+ DD = d;
494
+ a = FF(a, b, c, d, x[k + 0], S11, 0xd76aa478);
495
+ d = FF(d, a, b, c, x[k + 1], S12, 0xe8c7b756);
496
+ c = FF(c, d, a, b, x[k + 2], S13, 0x242070db);
497
+ b = FF(b, c, d, a, x[k + 3], S14, 0xc1bdceee);
498
+ a = FF(a, b, c, d, x[k + 4], S11, 0xf57c0faf);
499
+ d = FF(d, a, b, c, x[k + 5], S12, 0x4787c62a);
500
+ c = FF(c, d, a, b, x[k + 6], S13, 0xa8304613);
501
+ b = FF(b, c, d, a, x[k + 7], S14, 0xfd469501);
502
+ a = FF(a, b, c, d, x[k + 8], S11, 0x698098d8);
503
+ d = FF(d, a, b, c, x[k + 9], S12, 0x8b44f7af);
504
+ c = FF(c, d, a, b, x[k + 10], S13, 0xffff5bb1);
505
+ b = FF(b, c, d, a, x[k + 11], S14, 0x895cd7be);
506
+ a = FF(a, b, c, d, x[k + 12], S11, 0x6b901122);
507
+ d = FF(d, a, b, c, x[k + 13], S12, 0xfd987193);
508
+ c = FF(c, d, a, b, x[k + 14], S13, 0xa679438e);
509
+ b = FF(b, c, d, a, x[k + 15], S14, 0x49b40821);
510
+ a = GG(a, b, c, d, x[k + 1], S21, 0xf61e2562);
511
+ d = GG(d, a, b, c, x[k + 6], S22, 0xc040b340);
512
+ c = GG(c, d, a, b, x[k + 11], S23, 0x265e5a51);
513
+ b = GG(b, c, d, a, x[k + 0], S24, 0xe9b6c7aa);
514
+ a = GG(a, b, c, d, x[k + 5], S21, 0xd62f105d);
515
+ d = GG(d, a, b, c, x[k + 10], S22, 0x2441453);
516
+ c = GG(c, d, a, b, x[k + 15], S23, 0xd8a1e681);
517
+ b = GG(b, c, d, a, x[k + 4], S24, 0xe7d3fbc8);
518
+ a = GG(a, b, c, d, x[k + 9], S21, 0x21e1cde6);
519
+ d = GG(d, a, b, c, x[k + 14], S22, 0xc33707d6);
520
+ c = GG(c, d, a, b, x[k + 3], S23, 0xf4d50d87);
521
+ b = GG(b, c, d, a, x[k + 8], S24, 0x455a14ed);
522
+ a = GG(a, b, c, d, x[k + 13], S21, 0xa9e3e905);
523
+ d = GG(d, a, b, c, x[k + 2], S22, 0xfcefa3f8);
524
+ c = GG(c, d, a, b, x[k + 7], S23, 0x676f02d9);
525
+ b = GG(b, c, d, a, x[k + 12], S24, 0x8d2a4c8a);
526
+ a = HH(a, b, c, d, x[k + 5], S31, 0xfffa3942);
527
+ d = HH(d, a, b, c, x[k + 8], S32, 0x8771f681);
528
+ c = HH(c, d, a, b, x[k + 11], S33, 0x6d9d6122);
529
+ b = HH(b, c, d, a, x[k + 14], S34, 0xfde5380c);
530
+ a = HH(a, b, c, d, x[k + 1], S31, 0xa4beea44);
531
+ d = HH(d, a, b, c, x[k + 4], S32, 0x4bdecfa9);
532
+ c = HH(c, d, a, b, x[k + 7], S33, 0xf6bb4b60);
533
+ b = HH(b, c, d, a, x[k + 10], S34, 0xbebfbc70);
534
+ a = HH(a, b, c, d, x[k + 13], S31, 0x289b7ec6);
535
+ d = HH(d, a, b, c, x[k + 0], S32, 0xeaa127fa);
536
+ c = HH(c, d, a, b, x[k + 3], S33, 0xd4ef3085);
537
+ b = HH(b, c, d, a, x[k + 6], S34, 0x4881d05);
538
+ a = HH(a, b, c, d, x[k + 9], S31, 0xd9d4d039);
539
+ d = HH(d, a, b, c, x[k + 12], S32, 0xe6db99e5);
540
+ c = HH(c, d, a, b, x[k + 15], S33, 0x1fa27cf8);
541
+ b = HH(b, c, d, a, x[k + 2], S34, 0xc4ac5665);
542
+ a = II(a, b, c, d, x[k + 0], S41, 0xf4292244);
543
+ d = II(d, a, b, c, x[k + 7], S42, 0x432aff97);
544
+ c = II(c, d, a, b, x[k + 14], S43, 0xab9423a7);
545
+ b = II(b, c, d, a, x[k + 5], S44, 0xfc93a039);
546
+ a = II(a, b, c, d, x[k + 12], S41, 0x655b59c3);
547
+ d = II(d, a, b, c, x[k + 3], S42, 0x8f0ccc92);
548
+ c = II(c, d, a, b, x[k + 10], S43, 0xffeff47d);
549
+ b = II(b, c, d, a, x[k + 1], S44, 0x85845dd1);
550
+ a = II(a, b, c, d, x[k + 8], S41, 0x6fa87e4f);
551
+ d = II(d, a, b, c, x[k + 15], S42, 0xfe2ce6e0);
552
+ c = II(c, d, a, b, x[k + 6], S43, 0xa3014314);
553
+ b = II(b, c, d, a, x[k + 13], S44, 0x4e0811a1);
554
+ a = II(a, b, c, d, x[k + 4], S41, 0xf7537e82);
555
+ d = II(d, a, b, c, x[k + 11], S42, 0xbd3af235);
556
+ c = II(c, d, a, b, x[k + 2], S43, 0x2ad7d2bb);
557
+ b = II(b, c, d, a, x[k + 9], S44, 0xeb86d391);
558
+ a = addUnsigned(a, AA);
559
+ b = addUnsigned(b, BB);
560
+ c = addUnsigned(c, CC);
561
+ d = addUnsigned(d, DD);
562
+ }
563
+ return wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
564
+ }
565
+ exports.generate = generate;
566
+ function rotateLeft(lValue, iShiftBits) {
567
+ return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
568
+ }
569
+ function addUnsigned(lX, lY) {
570
+ var lX4;
571
+ var lY4;
572
+ var lX8;
573
+ var lY8;
574
+ var lResult;
575
+ lX8 = lX & 0x80000000;
576
+ lY8 = lY & 0x80000000;
577
+ lX4 = lX & 0x40000000;
578
+ lY4 = lY & 0x40000000;
579
+ lResult = (lX & 0x3fffffff) + (lY & 0x3fffffff);
580
+ if (lX4 & lY4) {
581
+ return lResult ^ 0x80000000 ^ lX8 ^ lY8;
582
+ }
583
+ if (lX4 | lY4) {
584
+ if (lResult & 0x40000000) {
585
+ return lResult ^ 0xc0000000 ^ lX8 ^ lY8;
586
+ }
587
+ else {
588
+ return lResult ^ 0x40000000 ^ lX8 ^ lY8;
589
+ }
590
+ }
591
+ else {
592
+ return lResult ^ lX8 ^ lY8;
593
+ }
594
+ }
595
+ function F(x, y, z) {
596
+ return (x & y) | (~x & z);
597
+ }
598
+ function G(x, y, z) {
599
+ return (x & z) | (y & ~z);
600
+ }
601
+ function H(x, y, z) {
602
+ return x ^ y ^ z;
603
+ }
604
+ function I(x, y, z) {
605
+ return y ^ (x | ~z);
606
+ }
607
+ function FF(a, b, c, d, x, s, ac) {
608
+ a = addUnsigned(a, addUnsigned(addUnsigned(F(b, c, d), x), ac));
609
+ return addUnsigned(rotateLeft(a, s), b);
610
+ }
611
+ function GG(a, b, c, d, x, s, ac) {
612
+ a = addUnsigned(a, addUnsigned(addUnsigned(G(b, c, d), x), ac));
613
+ return addUnsigned(rotateLeft(a, s), b);
614
+ }
615
+ function HH(a, b, c, d, x, s, ac) {
616
+ a = addUnsigned(a, addUnsigned(addUnsigned(H(b, c, d), x), ac));
617
+ return addUnsigned(rotateLeft(a, s), b);
618
+ }
619
+ function II(a, b, c, d, x, s, ac) {
620
+ a = addUnsigned(a, addUnsigned(addUnsigned(I(b, c, d), x), ac));
621
+ return addUnsigned(rotateLeft(a, s), b);
622
+ }
623
+ function convertToWordArray(value) {
624
+ var lWordCount;
625
+ var lMessageLength = value.length;
626
+ var lNumberOfWordsTemp1 = lMessageLength + 8;
627
+ var lNumberOfWordsTemp2 = (lNumberOfWordsTemp1 - (lNumberOfWordsTemp1 % 64)) / 64;
628
+ var lNumberOfWords = (lNumberOfWordsTemp2 + 1) * 16;
629
+ var lWordArray = Array(lNumberOfWords - 1);
630
+ var lBytePosition = 0;
631
+ var lByteCount = 0;
632
+ while (lByteCount < lMessageLength) {
633
+ lWordCount = (lByteCount - (lByteCount % 4)) / 4;
634
+ lBytePosition = (lByteCount % 4) * 8;
635
+ lWordArray[lWordCount] =
636
+ lWordArray[lWordCount] | (value.charCodeAt(lByteCount) << lBytePosition);
637
+ lByteCount++;
638
+ }
639
+ lWordCount = (lByteCount - (lByteCount % 4)) / 4;
640
+ lBytePosition = (lByteCount % 4) * 8;
641
+ lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);
642
+ lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
643
+ lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
644
+ return lWordArray;
645
+ }
646
+ function wordToHex(lValue) {
647
+ var wordToHexValue = "";
648
+ var wordToHexValueTemp = "";
649
+ var lByte;
650
+ var lCount;
651
+ for (lCount = 0; lCount <= 3; lCount++) {
652
+ lByte = (lValue >>> (lCount * 8)) & 255;
653
+ wordToHexValueTemp = "0" + lByte.toString(16);
654
+ wordToHexValue =
655
+ wordToHexValue + wordToHexValueTemp.substr(wordToHexValueTemp.length - 2, 2);
656
+ }
657
+ return wordToHexValue;
658
+ }
659
+ });
660
+
661
+ const md5$1 = /*@__PURE__*/getDefaultExportFromCjs(md5);
662
+
663
+ var lib = createCommonjsModule(function (module, exports) {
664
+ "use strict";
665
+ Object.defineProperty(exports, "__esModule", { value: true });
666
+ exports.MD5 = exports.generate = void 0;
667
+
668
+ var md5_2 = md5;
669
+ Object.defineProperty(exports, "generate", { enumerable: true, get: function () { return md5_2.generate; } });
670
+ exports.MD5 = {
671
+ generate: md5.generate,
672
+ };
673
+ });
674
+
675
+ const index = /*@__PURE__*/getDefaultExportFromCjs(lib);
676
+
677
+ const apiSearch = async (query) => {
678
+ const res = await fetch(getCreditSafeApiUrl(), {
679
+ method: 'POST',
680
+ headers: {
681
+ 'Content-Type': 'application/json',
682
+ },
683
+ body: JSON.stringify({
684
+ query,
685
+ hash: lib.MD5.generate(String.fromCharCode(83, 101, 67, 82, 101, 116) + query),
686
+ }),
687
+ });
688
+ const data = await res.json();
689
+ return data;
690
+ };
691
+
692
+ const HemfixarnaGetuser = class {
693
+ constructor(hostRef) {
694
+ registerInstance(this, hostRef);
695
+ this.handleChangeEmail = (e) => {
696
+ this.emailError = null;
697
+ this.email = e.target.value;
698
+ };
699
+ this.handleChangePhone = (e) => {
700
+ this.phoneError = null;
701
+ this.phone = e.target.value;
702
+ };
703
+ this.handleChangessn = (e) => {
704
+ this.ssnError = null;
705
+ this.ssn = e.target.value;
706
+ };
707
+ this.handleSubmit = async (e) => {
708
+ e.preventDefault();
709
+ const emailRegex = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
710
+ const validEmail = emailRegex.test(this.email);
711
+ if (!validEmail) {
712
+ this.emailError = 'Ange en giltig e-postadress';
713
+ }
714
+ const validPhone = /^[\d\s()+-]{6,}$/.test(this.phone);
715
+ if (!validPhone) {
716
+ this.phoneError = 'Ange ett giltigt telefonnummer';
717
+ }
718
+ const validssn = src_default.valid(this.ssn);
719
+ if (!validssn) {
720
+ this.ssnError = 'Ange ett giltigt personnummer';
721
+ }
722
+ else if (validssn) {
723
+ const pn = src_default.parse(this.ssn).format(true);
724
+ this.ssn = [pn.slice(0, 8), '-', pn.slice(8)].join('');
725
+ }
726
+ if (validEmail && validPhone && validssn) {
727
+ try {
728
+ const creditSafeData = await apiSearch(this.ssn);
729
+ if (creditSafeData) {
730
+ state.creditSafeUser = creditSafeData;
731
+ state.checkoutStep = 2;
732
+ state.user = Object.assign(Object.assign({}, creditSafeData), { email: this.email, phone: this.phone, ssn: this.ssn });
733
+ }
734
+ else {
735
+ this.ssnError = 'Vi kunde tyvärr inte hitta en address med ditt angivna personnummer';
736
+ }
737
+ }
738
+ catch (e) {
739
+ this.ssnError = 'Vi kunde tyvärr inte hitta en address med ditt angivna personnummer';
740
+ console.log(e);
741
+ }
742
+ finally {
743
+ const el = this.el.closest('.hemfixarna_content');
744
+ scrollToTop(el);
745
+ }
746
+ }
747
+ };
748
+ this.render = () => {
749
+ return (h("form", { class: "mb-2", onSubmit: e => this.handleSubmit(e) }, h("div", null, h("input", { class: `${this.email.length ? 'input_active' : ''}`, onChange: e => this.handleChangeEmail(e), type: "email", name: "email", value: this.email }), h("label", { htmlFor: "email" }, "E-post ")), this.emailError && h("span", null, this.emailError), h("div", null, h("input", { class: `${this.phone.length ? 'input_active' : ''}`, onChange: e => this.handleChangePhone(e), type: "tel", name: "phone", value: this.phone }), h("label", { htmlFor: "phone" }, "Mobiltelefon ")), this.phoneError && h("span", null, this.phoneError), h("div", null, h("input", { class: `${this.ssn.length ? 'input_active' : ''}`, onChange: e => this.handleChangessn(e), type: "tel", name: "ssn", value: this.ssn }), h("label", { htmlFor: "phone" }, "Personnummer*")), this.ssnError && h("span", null, this.ssnError), h("input", { type: "submit", value: "Forts\u00E4tt*" }), h("p", null, "*Vi h\u00E4mtar din adress")));
750
+ };
751
+ this.email = '';
752
+ this.emailError = null;
753
+ this.phone = '';
754
+ this.phoneError = null;
755
+ this.ssn = '';
756
+ this.ssnError = null;
757
+ }
758
+ componentWillLoad() {
759
+ if (state.user) {
760
+ this.email = state.user.email;
761
+ this.phone = state.user.phone;
762
+ this.ssn = state.user.ssn;
763
+ }
764
+ }
765
+ get el() { return getElement(this); }
766
+ };
767
+
768
+ export { HemfixarnaGetuser as hemfixarna_getuser };
769
+
770
+ //# sourceMappingURL=hemfixarna-getuser.entry.js.map