hemfixarna-web-components 1.8.5 → 1.8.7

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/cjs/hemfixarna-address_15.cjs.entry.js +2180 -0
  2. package/dist/cjs/hemfixarna-address_15.cjs.entry.js.map +1 -0
  3. package/dist/cjs/hemfixarna-byggmax.cjs.entry.js +27 -0
  4. package/dist/cjs/hemfixarna-byggmax.cjs.entry.js.map +1 -0
  5. package/dist/cjs/hemfixarna-category.cjs.entry.js +28 -0
  6. package/dist/cjs/hemfixarna-category.cjs.entry.js.map +1 -0
  7. package/dist/cjs/hemfixarna-components.cjs.js +28 -0
  8. package/dist/cjs/hemfixarna-components.cjs.js.map +1 -0
  9. package/dist/cjs/hemfixarna-doro.cjs.entry.js +26 -0
  10. package/dist/cjs/hemfixarna-doro.cjs.entry.js.map +1 -0
  11. package/dist/cjs/hemfixarna-elfa.cjs.entry.js +26 -0
  12. package/dist/cjs/hemfixarna-elfa.cjs.entry.js.map +1 -0
  13. package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js +23 -0
  14. package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js.map +1 -0
  15. package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js +23 -0
  16. package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js.map +1 -0
  17. package/dist/cjs/hemfixarna-forebygg.cjs.entry.js +26 -0
  18. package/dist/cjs/hemfixarna-forebygg.cjs.entry.js.map +1 -0
  19. package/dist/cjs/hemfixarna-hornbach.cjs.entry.js +26 -0
  20. package/dist/cjs/hemfixarna-hornbach.cjs.entry.js.map +1 -0
  21. package/dist/cjs/hemfixarna-kbygg.cjs.entry.js +23 -0
  22. package/dist/cjs/hemfixarna-kbygg.cjs.entry.js.map +1 -0
  23. package/dist/cjs/hemfixarna-klint.cjs.entry.js +23 -0
  24. package/dist/cjs/hemfixarna-klint.cjs.entry.js.map +1 -0
  25. package/dist/cjs/hemfixarna-kund.cjs.entry.js +23 -0
  26. package/dist/cjs/hemfixarna-kund.cjs.entry.js.map +1 -0
  27. package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js +23 -0
  28. package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js.map +1 -0
  29. package/dist/cjs/hemfixarna-power.cjs.entry.js +23 -0
  30. package/dist/cjs/hemfixarna-power.cjs.entry.js.map +1 -0
  31. package/dist/cjs/hemfixarna-service.cjs.entry.js +24 -0
  32. package/dist/cjs/hemfixarna-service.cjs.entry.js.map +1 -0
  33. package/dist/cjs/hemfixarna-skanska.cjs.entry.js +26 -0
  34. package/dist/cjs/hemfixarna-skanska.cjs.entry.js.map +1 -0
  35. package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js +23 -0
  36. package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js.map +1 -0
  37. package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js +26 -0
  38. package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js.map +1 -0
  39. package/dist/cjs/hemfixarna-superfront.cjs.entry.js +24 -0
  40. package/dist/cjs/hemfixarna-superfront.cjs.entry.js.map +1 -0
  41. package/dist/cjs/hemfixarna-tesla.cjs.entry.js +23 -0
  42. package/dist/cjs/hemfixarna-tesla.cjs.entry.js.map +1 -0
  43. package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js +23 -0
  44. package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js.map +1 -0
  45. package/dist/cjs/hemfixarna-zaptec.cjs.entry.js +23 -0
  46. package/dist/cjs/hemfixarna-zaptec.cjs.entry.js.map +1 -0
  47. package/dist/cjs/index-6cce99a1.js +264 -0
  48. package/dist/cjs/index-6cce99a1.js.map +1 -0
  49. package/dist/cjs/index-dc8e80e4.js +53 -0
  50. package/dist/cjs/index-dc8e80e4.js.map +1 -0
  51. package/dist/cjs/index-e6926623.js +1741 -0
  52. package/dist/cjs/index-e6926623.js.map +1 -0
  53. package/dist/cjs/index.cjs.js +4 -0
  54. package/dist/cjs/index.cjs.js.map +1 -0
  55. package/dist/cjs/loader.cjs.js +24 -0
  56. package/dist/cjs/loader.cjs.js.map +1 -0
  57. package/dist/collection/assets/back.svg +3 -0
  58. package/dist/collection/assets/cart.svg +10 -0
  59. package/dist/collection/assets/checked.svg +10 -0
  60. package/dist/collection/assets/close.svg +5 -0
  61. package/dist/collection/assets/copy.png +0 -0
  62. package/dist/collection/assets/date.svg +6 -0
  63. package/dist/collection/assets/down.svg +3 -0
  64. package/dist/collection/assets/drag-drop.svg +3 -0
  65. package/dist/collection/assets/elfa.png +0 -0
  66. package/dist/collection/assets/gubbe-pensel.svg +1 -0
  67. package/dist/collection/assets/hemfixarna.svg +11 -0
  68. package/dist/collection/assets/hornbach/logo.svg +42 -0
  69. package/dist/collection/assets/hornbach/nav.jpg +0 -0
  70. package/dist/collection/assets/info.svg +5 -0
  71. package/dist/collection/assets/kbygg.svg +29 -0
  72. package/dist/collection/assets/minus.svg +4 -0
  73. package/dist/collection/assets/montering.svg +15 -0
  74. package/dist/collection/assets/norrgavel.svg +1 -0
  75. package/dist/collection/assets/pensel.svg +1 -0
  76. package/dist/collection/assets/plus.svg +5 -0
  77. package/dist/collection/assets/spinner.gif +0 -0
  78. package/dist/collection/assets/tesla.svg +1 -0
  79. package/dist/collection/assets/zaptec.svg +1 -0
  80. package/dist/collection/collection-manifest.json +47 -0
  81. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.css +0 -0
  82. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js +122 -0
  83. package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js.map +1 -0
  84. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.css +0 -0
  85. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js +104 -0
  86. package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js.map +1 -0
  87. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.css +0 -0
  88. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js +104 -0
  89. package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js.map +1 -0
  90. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js +94 -0
  91. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js.map +1 -0
  92. package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js +94 -0
  93. package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map +1 -0
  94. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.css +0 -0
  95. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js +104 -0
  96. package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js.map +1 -0
  97. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.css +0 -0
  98. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js +104 -0
  99. package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js.map +1 -0
  100. package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js +94 -0
  101. package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js.map +1 -0
  102. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +94 -0
  103. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +1 -0
  104. package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js +94 -0
  105. package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js.map +1 -0
  106. package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js +94 -0
  107. package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js.map +1 -0
  108. package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js +94 -0
  109. package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js.map +1 -0
  110. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.css +0 -0
  111. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js +104 -0
  112. package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js.map +1 -0
  113. package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js +94 -0
  114. package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map +1 -0
  115. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js +104 -0
  116. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js.map +1 -0
  117. package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string.css +0 -0
  118. package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js +113 -0
  119. package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js.map +1 -0
  120. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js +94 -0
  121. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js.map +1 -0
  122. package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js +94 -0
  123. package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js.map +1 -0
  124. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js +94 -0
  125. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js.map +1 -0
  126. package/dist/{hemfixarna-components/hemfixarna-address.entry.js → collection/components/hemfixarna-address/hemfixarna-address.js} +20 -14
  127. package/dist/collection/components/hemfixarna-address/hemfixarna-address.js.map +1 -0
  128. package/dist/collection/components/hemfixarna-box/hemfixarna-box.js +138 -0
  129. package/dist/collection/components/hemfixarna-box/hemfixarna-box.js.map +1 -0
  130. package/dist/{hemfixarna-components/hemfixarna-breadcrumbs.entry.js → collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js} +28 -13
  131. package/dist/collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js.map +1 -0
  132. package/dist/{hemfixarna-components/hemfixarna-cart.entry.js → collection/components/hemfixarna-cart/hemfixarna-cart.js} +6 -12
  133. package/dist/collection/components/hemfixarna-cart/hemfixarna-cart.js.map +1 -0
  134. package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js +18 -0
  135. package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js.map +1 -0
  136. package/dist/{hemfixarna-components/hemfixarna-checkout.entry.js → collection/components/hemfixarna-checkout/hemfixarna-checkout.js} +26 -33
  137. package/dist/collection/components/hemfixarna-checkout/hemfixarna-checkout.js.map +1 -0
  138. package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +330 -0
  139. package/dist/collection/components/hemfixarna-component/hemfixarna-component.js.map +1 -0
  140. package/dist/collection/components/hemfixarna-component/hemfixarna.css +1061 -0
  141. package/dist/{hemfixarna-components/hemfixarna-contact.entry.js → collection/components/hemfixarna-contact/hemfixarna-contact.js} +29 -11
  142. package/dist/collection/components/hemfixarna-contact/hemfixarna-contact.js.map +1 -0
  143. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.css +135 -0
  144. package/dist/{hemfixarna-components/hemfixarna-demo.entry.js → collection/components/hemfixarna-demo/hemfixarna-demo.js} +46 -21
  145. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +1 -0
  146. package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js +91 -0
  147. package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js.map +1 -0
  148. package/dist/{hemfixarna-components/hemfixarna-info.entry.js → collection/components/hemfixarna-info/hemfixarna-info.js} +7 -11
  149. package/dist/collection/components/hemfixarna-info/hemfixarna-info.js.map +1 -0
  150. package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.css +76 -0
  151. package/dist/{hemfixarna-components/hemfixarna-invoice.entry.js → collection/components/hemfixarna-invoice/hemfixarna-invoice.js} +27 -16
  152. package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js.map +1 -0
  153. package/dist/{hemfixarna-components/hemfixarna-order.entry.js → collection/components/hemfixarna-order/hemfixarna-order.js} +7 -11
  154. package/dist/collection/components/hemfixarna-order/hemfixarna-order.js.map +1 -0
  155. package/dist/{hemfixarna-components/hemfixarna-orderrows.entry.js → collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js} +30 -12
  156. package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js.map +1 -0
  157. package/dist/collection/components/hemfixarna-product/hemfixarna-product.css +0 -0
  158. package/dist/{hemfixarna-components/hemfixarna-product.entry.js → collection/components/hemfixarna-product/hemfixarna-product.js} +27 -18
  159. package/dist/collection/components/hemfixarna-product/hemfixarna-product.js.map +1 -0
  160. package/dist/collection/components/hemfixarna-service/hemfixarna-service.js +14 -0
  161. package/dist/collection/components/hemfixarna-service/hemfixarna-service.js.map +1 -0
  162. package/dist/{hemfixarna-components/hemfixarna-start.entry.js → collection/components/hemfixarna-start/hemfixarna-start.js} +48 -11
  163. package/dist/collection/components/hemfixarna-start/hemfixarna-start.js.map +1 -0
  164. package/dist/collection/index.js +2 -0
  165. package/dist/collection/index.js.map +1 -0
  166. package/dist/collection/store/index.js +69 -0
  167. package/dist/collection/store/index.js.map +1 -0
  168. package/dist/collection/types/felixtypes.js +3 -0
  169. package/dist/collection/types/felixtypes.js.map +1 -0
  170. package/dist/collection/types/index.js +50 -0
  171. package/dist/collection/types/index.js.map +1 -0
  172. package/dist/{hemfixarna-components/api-e3c51cb3.js → collection/utils/api.js} +4 -7
  173. package/dist/collection/utils/api.js.map +1 -0
  174. package/dist/{hemfixarna-components/calc-b3b6593c.js → collection/utils/calc.js} +3 -6
  175. package/dist/collection/utils/calc.js.map +1 -0
  176. package/dist/collection/utils/creditSafe.js +18 -0
  177. package/dist/collection/utils/creditSafe.js.map +1 -0
  178. package/dist/{hemfixarna-components/enviroment-fd0a763a.js → collection/utils/enviroment.js} +6 -8
  179. package/dist/collection/utils/enviroment.js.map +1 -0
  180. package/dist/collection/utils/felixApi.js +19 -0
  181. package/dist/collection/utils/felixApi.js.map +1 -0
  182. package/dist/collection/utils/felixFunctions.js +188 -0
  183. package/dist/collection/utils/felixFunctions.js.map +1 -0
  184. package/dist/{hemfixarna-components/form-c53dca29.js → collection/utils/form.js} +2 -4
  185. package/dist/collection/utils/form.js.map +1 -0
  186. package/dist/{hemfixarna-components/scroll-6c26b5da.js → collection/utils/scroll.js} +2 -4
  187. package/dist/collection/utils/scroll.js.map +1 -0
  188. package/dist/{hemfixarna-components/types-6da209ae.js → collection/utils/types.js} +3 -6
  189. package/dist/collection/utils/types.js.map +1 -0
  190. package/dist/esm/hemfixarna-address_15.entry.js +2162 -0
  191. package/dist/esm/hemfixarna-address_15.entry.js.map +1 -0
  192. package/dist/{hemfixarna-components → esm}/hemfixarna-byggmax.entry.js +2 -2
  193. package/dist/esm/hemfixarna-byggmax.entry.js.map +1 -0
  194. package/dist/{hemfixarna-components → esm}/hemfixarna-category.entry.js +2 -2
  195. package/dist/esm/hemfixarna-category.entry.js.map +1 -0
  196. package/dist/esm/hemfixarna-components.js +23 -0
  197. package/dist/esm/hemfixarna-components.js.map +1 -0
  198. package/dist/{hemfixarna-components → esm}/hemfixarna-doro.entry.js +2 -2
  199. package/dist/esm/hemfixarna-doro.entry.js.map +1 -0
  200. package/dist/{hemfixarna-components → esm}/hemfixarna-elfa.entry.js +2 -2
  201. package/dist/esm/hemfixarna-elfa.entry.js.map +1 -0
  202. package/dist/{hemfixarna-components → esm}/hemfixarna-fargvaruhuset.entry.js +2 -2
  203. package/dist/esm/hemfixarna-fargvaruhuset.entry.js.map +1 -0
  204. package/dist/{hemfixarna-components → esm}/hemfixarna-flyttsmart.entry.js +2 -2
  205. package/dist/esm/hemfixarna-flyttsmart.entry.js.map +1 -0
  206. package/dist/{hemfixarna-components → esm}/hemfixarna-forebygg.entry.js +2 -2
  207. package/dist/esm/hemfixarna-forebygg.entry.js.map +1 -0
  208. package/dist/{hemfixarna-components → esm}/hemfixarna-hornbach.entry.js +2 -2
  209. package/dist/esm/hemfixarna-hornbach.entry.js.map +1 -0
  210. package/dist/{hemfixarna-components → esm}/hemfixarna-kbygg.entry.js +2 -2
  211. package/dist/esm/hemfixarna-kbygg.entry.js.map +1 -0
  212. package/dist/{hemfixarna-components → esm}/hemfixarna-klint.entry.js +2 -2
  213. package/dist/esm/hemfixarna-klint.entry.js.map +1 -0
  214. package/dist/{hemfixarna-components → esm}/hemfixarna-kund.entry.js +2 -2
  215. package/dist/esm/hemfixarna-kund.entry.js.map +1 -0
  216. package/dist/{hemfixarna-components → esm}/hemfixarna-norrgavel.entry.js +2 -2
  217. package/dist/esm/hemfixarna-norrgavel.entry.js.map +1 -0
  218. package/dist/{hemfixarna-components → esm}/hemfixarna-power.entry.js +2 -2
  219. package/dist/esm/hemfixarna-power.entry.js.map +1 -0
  220. package/dist/{hemfixarna-components → esm}/hemfixarna-service.entry.js +2 -2
  221. package/dist/esm/hemfixarna-service.entry.js.map +1 -0
  222. package/dist/{hemfixarna-components → esm}/hemfixarna-skanska.entry.js +2 -2
  223. package/dist/esm/hemfixarna-skanska.entry.js.map +1 -0
  224. package/dist/{hemfixarna-components → esm}/hemfixarna-sparfonster.entry.js +2 -2
  225. package/dist/esm/hemfixarna-sparfonster.entry.js.map +1 -0
  226. package/dist/{hemfixarna-components → esm}/hemfixarna-string-furniture.entry.js +2 -2
  227. package/dist/esm/hemfixarna-string-furniture.entry.js.map +1 -0
  228. package/dist/{hemfixarna-components → esm}/hemfixarna-superfront.entry.js +2 -2
  229. package/dist/esm/hemfixarna-superfront.entry.js.map +1 -0
  230. package/dist/{hemfixarna-components → esm}/hemfixarna-tesla.entry.js +2 -2
  231. package/dist/esm/hemfixarna-tesla.entry.js.map +1 -0
  232. package/dist/{hemfixarna-components → esm}/hemfixarna-traningspartner.entry.js +2 -2
  233. package/dist/esm/hemfixarna-traningspartner.entry.js.map +1 -0
  234. package/dist/{hemfixarna-components → esm}/hemfixarna-zaptec.entry.js +2 -2
  235. package/dist/esm/hemfixarna-zaptec.entry.js.map +1 -0
  236. package/dist/{hemfixarna-components/index-c8ce6f4b.js → esm/index-17dff2be.js} +5 -1
  237. package/dist/esm/index-17dff2be.js.map +1 -0
  238. package/dist/{hemfixarna-components/index-21ba2b05.js → esm/index-20d4c934.js} +5 -6
  239. package/dist/esm/index-20d4c934.js.map +1 -0
  240. package/dist/esm/index-ea1d222e.js +1710 -0
  241. package/dist/esm/index-ea1d222e.js.map +1 -0
  242. package/dist/esm/index.js +3 -0
  243. package/dist/esm/index.js.map +1 -0
  244. package/dist/esm/loader.js +20 -0
  245. package/dist/esm/loader.js.map +1 -0
  246. package/dist/esm/polyfills/core-js.js +11 -0
  247. package/dist/esm/polyfills/css-shim.js +1 -0
  248. package/dist/esm/polyfills/dom.js +79 -0
  249. package/dist/esm/polyfills/es5-html-element.js +1 -0
  250. package/dist/esm/polyfills/index.js +34 -0
  251. package/dist/esm/polyfills/system.js +6 -0
  252. package/dist/hemfixarna-components/hemfixarna-components.esm.js +1 -162
  253. package/dist/hemfixarna-components/hemfixarna-components.esm.js.map +1 -1
  254. package/dist/hemfixarna-components/index.esm.js +0 -1
  255. package/dist/hemfixarna-components/index.esm.js.map +1 -1
  256. package/dist/hemfixarna-components/p-13c814e5.entry.js +2 -0
  257. package/dist/hemfixarna-components/p-13c814e5.entry.js.map +1 -0
  258. package/dist/hemfixarna-components/p-22402dcd.entry.js +2 -0
  259. package/dist/hemfixarna-components/p-22402dcd.entry.js.map +1 -0
  260. package/dist/hemfixarna-components/p-2af882e6.entry.js +2 -0
  261. package/dist/hemfixarna-components/p-2af882e6.entry.js.map +1 -0
  262. package/dist/hemfixarna-components/p-3038b208.entry.js +2 -0
  263. package/dist/hemfixarna-components/p-3038b208.entry.js.map +1 -0
  264. package/dist/hemfixarna-components/p-45ab00f1.entry.js +2 -0
  265. package/dist/hemfixarna-components/p-45ab00f1.entry.js.map +1 -0
  266. package/dist/hemfixarna-components/p-5c9563b4.entry.js +2 -0
  267. package/dist/hemfixarna-components/p-5c9563b4.entry.js.map +1 -0
  268. package/dist/hemfixarna-components/p-6bd272c5.entry.js +2 -0
  269. package/dist/hemfixarna-components/p-6bd272c5.entry.js.map +1 -0
  270. package/dist/hemfixarna-components/p-6e20e1b0.js +2 -0
  271. package/dist/hemfixarna-components/p-6e20e1b0.js.map +1 -0
  272. package/dist/hemfixarna-components/p-7b495586.entry.js +2 -0
  273. package/dist/hemfixarna-components/p-7b495586.entry.js.map +1 -0
  274. package/dist/hemfixarna-components/p-7c0e45f5.entry.js +2 -0
  275. package/dist/hemfixarna-components/p-7c0e45f5.entry.js.map +1 -0
  276. package/dist/hemfixarna-components/p-7cb8e61f.entry.js +2 -0
  277. package/dist/hemfixarna-components/p-7cb8e61f.entry.js.map +1 -0
  278. package/dist/hemfixarna-components/p-7df046a3.entry.js +2 -0
  279. package/dist/hemfixarna-components/p-7df046a3.entry.js.map +1 -0
  280. package/dist/hemfixarna-components/p-81571614.entry.js +2 -0
  281. package/dist/hemfixarna-components/p-81571614.entry.js.map +1 -0
  282. package/dist/hemfixarna-components/p-82273497.entry.js +2 -0
  283. package/dist/hemfixarna-components/p-82273497.entry.js.map +1 -0
  284. package/dist/hemfixarna-components/p-8b7e8357.entry.js +2 -0
  285. package/dist/hemfixarna-components/p-8b7e8357.entry.js.map +1 -0
  286. package/dist/hemfixarna-components/p-9c484473.entry.js +2 -0
  287. package/dist/hemfixarna-components/p-9c484473.entry.js.map +1 -0
  288. package/dist/hemfixarna-components/p-9cf1fb6b.entry.js +2 -0
  289. package/dist/hemfixarna-components/p-9cf1fb6b.entry.js.map +1 -0
  290. package/dist/hemfixarna-components/p-b115aec3.entry.js +2 -0
  291. package/dist/hemfixarna-components/p-b115aec3.entry.js.map +1 -0
  292. package/dist/hemfixarna-components/p-c707b937.js +3 -0
  293. package/dist/hemfixarna-components/p-c707b937.js.map +1 -0
  294. package/dist/hemfixarna-components/p-cdc0d010.js +2 -0
  295. package/dist/hemfixarna-components/p-cdc0d010.js.map +1 -0
  296. package/dist/hemfixarna-components/p-de0582a4.entry.js +2 -0
  297. package/dist/hemfixarna-components/p-de0582a4.entry.js.map +1 -0
  298. package/dist/hemfixarna-components/p-e162b027.entry.js +2 -0
  299. package/dist/hemfixarna-components/p-e162b027.entry.js.map +1 -0
  300. package/dist/hemfixarna-components/p-ea31b5fc.entry.js +2 -0
  301. package/dist/hemfixarna-components/p-ea31b5fc.entry.js.map +1 -0
  302. package/dist/hemfixarna-components/p-f9fdaa51.entry.js +2 -0
  303. package/dist/hemfixarna-components/p-f9fdaa51.entry.js.map +1 -0
  304. package/dist/hemfixarna-components/p-fe40c699.entry.js +2 -0
  305. package/dist/hemfixarna-components/p-fe40c699.entry.js.map +1 -0
  306. package/dist/index.cjs.js +1 -0
  307. package/dist/index.js +1 -0
  308. package/dist/types/types/index.d.ts +5 -1
  309. package/package.json +1 -1
  310. package/dist/hemfixarna-components/api-e3c51cb3.js.map +0 -1
  311. package/dist/hemfixarna-components/app-globals-0f993ce5.js +0 -5
  312. package/dist/hemfixarna-components/app-globals-0f993ce5.js.map +0 -1
  313. package/dist/hemfixarna-components/calc-b3b6593c.js.map +0 -1
  314. package/dist/hemfixarna-components/css-shim-4fde41f0.js +0 -6
  315. package/dist/hemfixarna-components/css-shim-4fde41f0.js.map +0 -1
  316. package/dist/hemfixarna-components/dom-8de30773.js +0 -75
  317. package/dist/hemfixarna-components/dom-8de30773.js.map +0 -1
  318. package/dist/hemfixarna-components/enviroment-fd0a763a.js.map +0 -1
  319. package/dist/hemfixarna-components/form-c53dca29.js.map +0 -1
  320. package/dist/hemfixarna-components/hemfixarna-address.entry.js.map +0 -1
  321. package/dist/hemfixarna-components/hemfixarna-box.entry.js +0 -49
  322. package/dist/hemfixarna-components/hemfixarna-box.entry.js.map +0 -1
  323. package/dist/hemfixarna-components/hemfixarna-breadcrumbs.entry.js.map +0 -1
  324. package/dist/hemfixarna-components/hemfixarna-byggmax.entry.js.map +0 -1
  325. package/dist/hemfixarna-components/hemfixarna-cart.entry.js.map +0 -1
  326. package/dist/hemfixarna-components/hemfixarna-category.entry.js.map +0 -1
  327. package/dist/hemfixarna-components/hemfixarna-checkout.entry.js.map +0 -1
  328. package/dist/hemfixarna-components/hemfixarna-component.entry.js +0 -189
  329. package/dist/hemfixarna-components/hemfixarna-component.entry.js.map +0 -1
  330. package/dist/hemfixarna-components/hemfixarna-contact.entry.js.map +0 -1
  331. package/dist/hemfixarna-components/hemfixarna-demo.entry.js.map +0 -1
  332. package/dist/hemfixarna-components/hemfixarna-doro.entry.js.map +0 -1
  333. package/dist/hemfixarna-components/hemfixarna-elfa.entry.js.map +0 -1
  334. package/dist/hemfixarna-components/hemfixarna-fargvaruhuset.entry.js.map +0 -1
  335. package/dist/hemfixarna-components/hemfixarna-flyttsmart.entry.js.map +0 -1
  336. package/dist/hemfixarna-components/hemfixarna-forebygg.entry.js.map +0 -1
  337. package/dist/hemfixarna-components/hemfixarna-getuser.entry.js +0 -770
  338. package/dist/hemfixarna-components/hemfixarna-getuser.entry.js.map +0 -1
  339. package/dist/hemfixarna-components/hemfixarna-hornbach.entry.js.map +0 -1
  340. package/dist/hemfixarna-components/hemfixarna-info.entry.js.map +0 -1
  341. package/dist/hemfixarna-components/hemfixarna-invoice.entry.js.map +0 -1
  342. package/dist/hemfixarna-components/hemfixarna-kbygg.entry.js.map +0 -1
  343. package/dist/hemfixarna-components/hemfixarna-klint.entry.js.map +0 -1
  344. package/dist/hemfixarna-components/hemfixarna-kund.entry.js.map +0 -1
  345. package/dist/hemfixarna-components/hemfixarna-norrgavel.entry.js.map +0 -1
  346. package/dist/hemfixarna-components/hemfixarna-order.entry.js.map +0 -1
  347. package/dist/hemfixarna-components/hemfixarna-orderrows.entry.js.map +0 -1
  348. package/dist/hemfixarna-components/hemfixarna-power.entry.js.map +0 -1
  349. package/dist/hemfixarna-components/hemfixarna-product.entry.js.map +0 -1
  350. package/dist/hemfixarna-components/hemfixarna-service.entry.js.map +0 -1
  351. package/dist/hemfixarna-components/hemfixarna-skanska.entry.js.map +0 -1
  352. package/dist/hemfixarna-components/hemfixarna-sparfonster.entry.js.map +0 -1
  353. package/dist/hemfixarna-components/hemfixarna-start.entry.js.map +0 -1
  354. package/dist/hemfixarna-components/hemfixarna-string-furniture.entry.js.map +0 -1
  355. package/dist/hemfixarna-components/hemfixarna-superfront.entry.js.map +0 -1
  356. package/dist/hemfixarna-components/hemfixarna-tesla.entry.js.map +0 -1
  357. package/dist/hemfixarna-components/hemfixarna-traningspartner.entry.js.map +0 -1
  358. package/dist/hemfixarna-components/hemfixarna-zaptec.entry.js.map +0 -1
  359. package/dist/hemfixarna-components/index-21ba2b05.js.map +0 -1
  360. package/dist/hemfixarna-components/index-2ce8b901.js +0 -3461
  361. package/dist/hemfixarna-components/index-2ce8b901.js.map +0 -1
  362. package/dist/hemfixarna-components/index-c8ce6f4b.js.map +0 -1
  363. package/dist/hemfixarna-components/scroll-6c26b5da.js.map +0 -1
  364. package/dist/hemfixarna-components/shadow-css-af2290df.js +0 -389
  365. package/dist/hemfixarna-components/shadow-css-af2290df.js.map +0 -1
  366. package/dist/hemfixarna-components/types-6da209ae.js.map +0 -1
@@ -1,770 +0,0 @@
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