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
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const hemfixarnaSkanskaCss = "";
5
5
 
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-skanska.entry.esm.js","mappings":";;;AAAA,MAAM,oBAAoB,GAAG,EAAE;;MCQlB,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,GAAyB,EAC7K;GACH;;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-skanska/hemfixarna-skanska.scss?tag=hemfixarna-skanska&encapsulation=shadow","./src/components/customers/hemfixarna-skanska/hemfixarna-skanska.tsx"],"sourcesContent":["","import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-skanska',\n styleUrl: 'hemfixarna-skanska.scss',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.skanska}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const MyComponent = class {
5
5
  constructor(hostRef) {
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-sparfonster.entry.esm.js","mappings":";;;MAOa,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,WAAW,GACR,EACxB;GACH;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-sparfonster',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component\n widgetStyle={this.widgetStyle}\n buttonBg={this.buttonBg}\n buttonColor={this.buttonColor}\n id={this.id}\n business={Business.sparfonster}\n ></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,9 @@
1
- import { getAssetPath, h } from '@stencil/core';
2
- import state from '../../store';
3
- export class HemfixarnaGrid {
4
- constructor() {
1
+ import { r as registerInstance, e as getAssetPath, h } from './index-2ce8b901.js';
2
+ import { s as state } from './index-21ba2b05.js';
3
+
4
+ const HemfixarnaGrid = class {
5
+ constructor(hostRef) {
6
+ registerInstance(this, hostRef);
5
7
  this.tree = undefined;
6
8
  this.slug = undefined;
7
9
  }
@@ -28,47 +30,8 @@ export class HemfixarnaGrid {
28
30
  return (h("hemfixarna-box", { post: c, icon: (_a = c.icon.url) !== null && _a !== void 0 ? _a : c.icon, postTitle: c.name }));
29
31
  })), h("hemfixarna-info", null))));
30
32
  }
31
- static get is() { return "hemfixarna-start"; }
32
- static get properties() {
33
- return {
34
- "tree": {
35
- "type": "unknown",
36
- "mutable": false,
37
- "complexType": {
38
- "original": "Category",
39
- "resolved": "Category",
40
- "references": {
41
- "Category": {
42
- "location": "import",
43
- "path": "../../types"
44
- }
45
- }
46
- },
47
- "required": false,
48
- "optional": true,
49
- "docs": {
50
- "tags": [],
51
- "text": ""
52
- }
53
- },
54
- "slug": {
55
- "type": "string",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "string",
59
- "resolved": "string",
60
- "references": {}
61
- },
62
- "required": false,
63
- "optional": true,
64
- "docs": {
65
- "tags": [],
66
- "text": ""
67
- },
68
- "attribute": "slug",
69
- "reflect": false
70
- }
71
- };
72
- }
73
- }
74
- //# sourceMappingURL=hemfixarna-start.js.map
33
+ };
34
+
35
+ export { HemfixarnaGrid as hemfixarna_start };
36
+
37
+ //# sourceMappingURL=hemfixarna-start.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-start.entry.esm.js","mappings":";;;MAQa,cAAc;;;;;;EAIzB,cAAc,CAAC,QAAgD;IAC7D,OAAQ,QAA6B,CAAC,aAAa,KAAK,SAAS,CAAC;GACnE;EAED,iBAAiB;IACf,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IACf,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;GACrB;EAED,MAAM;;IACJ,MAAM,UAAU,GAAG,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAC7D,OAAO,KAAK,CAAC,QAAQ,IACnB,eACE,cAAK,KAAK,CAAC,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,GAAG,eAAe,CAAM,EACjG,WAAK,KAAK,EAAC,gCAAgC,IACzC,UAAI,KAAK,EAAC,uBAAuB,IAC9B,CAAA,MAAA,KAAK,CAAC,wBAAwB,0CAAE,YAAY,KAC3C,cAAQ,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAC,sBAAsB,IAC3E,WAAK,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAC,qBAAgB,GAAG,EACzD,iFAAoD,CAC7C,IACP,IAAI,EACP,KAAK,CAAC,wBAAwB;QAC3B,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,KAAK,CAAC,wBAAwB,CAAC,cAAc,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,aAAa;UACnJ,KAAK,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,sBAAgB,QAAQ,EAAE,CAAC,GAAmB,CAAC;UACtG,KAAK,CAAC,wBAAwB,CAAC,QAAQ;YACrC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,sBAAgB,QAAQ,EAAE,CAAC,CAAC,MAAM,GAAmB,CAAC;YACvG,IAAI;QACR,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,sBAAgB,QAAQ,EAAE,CAAC,GAAmB,CAAC,CACnF,EACL,0BAAmB,CACf,CACF,KAEN,eACE,mCAAsB,EACtB,WAAK,KAAK,EAAC,gCAAgC,IACzC,UAAI,KAAK,EAAC,uBAAuB,IAC9B,IAAI,CAAC,IAAI,CAAC,QAAQ;OAChB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;OAC1C,GAAG,CAAC,CAAC;;MAAI,QACR,sBAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAC,CAAC,CAAC,IAAa,CAAC,GAAG,mCAAK,CAAC,CAAC,IAAe,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,GAAmB,EAChH;KAAA,CAAC,CACD,EACL,0BAAmB,CACf,CACF,CACP,CAAC;GACH;;;;;","names":[],"sources":["./src/components/hemfixarna-start/hemfixarna-start.tsx"],"sourcesContent":["import { Component, Prop, getAssetPath, h } from '@stencil/core';\nimport state from '../../store';\nimport { Category, CustomerCategory, CustomerSubCategory, Icon } from '../../types';\n\n@Component({\n tag: 'hemfixarna-start',\n shadow: false,\n})\nexport class HemfixarnaGrid {\n @Prop() tree?: Category;\n @Prop() slug?: string;\n\n isMainCategory(category: CustomerCategory | CustomerSubCategory): category is CustomerCategory {\n return (category as CustomerCategory).show_products !== undefined;\n }\n\n handleMaleriClick() {\n state.step = 4;\n state.maleri = true;\n }\n\n render() {\n const maleriLogo = getAssetPath('./assets/gubbe-pensel.svg');\n return state.customer ? (\n <div>\n <h2>{state.selectedCustomerCategory ? state.selectedCustomerCategory.name : 'Alla tjänster'}</h2>\n <div class=\"hemfixarna_categories--wrapper\">\n <ul class=\"hemfixarna_categories\">\n {state.selectedCustomerCategory?.add_painting ? (\n <button onClick={() => this.handleMaleriClick()} class=\"hemfixarna_maleribox\">\n <img height={64} src={maleriLogo} alt=\"Måleri Logotyp\" />\n <p>Beräkna fast pris på måleri & tapetsering här</p>\n </button>\n ) : null}\n {state.selectedCustomerCategory\n ? this.isMainCategory(state.selectedCustomerCategory) && state.selectedCustomerCategory.sub_categories && !state.selectedCustomerCategory.show_products\n ? state.selectedCustomerCategory.sub_categories.map(c => <hemfixarna-box category={c}></hemfixarna-box>)\n : state.selectedCustomerCategory.products\n ? state.selectedCustomerCategory.products.map(c => <hemfixarna-box category={c.fields}></hemfixarna-box>)\n : null\n : state.customer.categories.map(c => <hemfixarna-box category={c}></hemfixarna-box>)}\n </ul>\n <hemfixarna-info />\n </div>\n </div>\n ) : (\n <div>\n <h2>Alla tjänster</h2>\n <div class=\"hemfixarna_categories--wrapper\">\n <ul class=\"hemfixarna_categories\">\n {this.tree.sub_cats\n .sort((a, b) => (a.name < b.name ? -1 : 1))\n .map(c => (\n <hemfixarna-box post={c} icon={(c.icon as Icon).url ?? (c.icon as string)} postTitle={c.name}></hemfixarna-box>\n ))}\n </ul>\n <hemfixarna-info />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const hemfixarnaStringCss = "";
5
5
 
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-string-furniture.entry.esm.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,EAAE;;MCQjB,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,GAAyB,EAC5K;GACH;;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-string/hemfixarna-string.scss?tag=hemfixarna-string-furniture&encapsulation=shadow","./src/components/customers/hemfixarna-string/hemfixarna-string-furniture.tsx"],"sourcesContent":["","import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-string-furniture',\n styleUrl: 'hemfixarna-string.scss',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.string}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const MyComponent = class {
5
5
  constructor(hostRef) {
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-superfront.entry.esm.js","mappings":";;;MAOa,WAAW;;;;yBAEW,SAAS;uBACN,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,UAAU,GACP,EACxB;GACH;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-superfront',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() loadFromQuery?: string = undefined;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component\n widgetStyle={this.widgetStyle}\n buttonBg={this.buttonBg}\n buttonColor={this.buttonColor}\n id={this.id}\n business={Business.superfront}\n ></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const MyComponent = class {
5
5
  constructor(hostRef) {
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-tesla.entry.esm.js","mappings":";;;MAOa,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,KAAK,GAAyB,EAC3K;GACH;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-tesla/hemfixarna-tesla.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-tesla',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.tesla}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const MyComponent = class {
5
5
  constructor(hostRef) {
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-traningspartner.entry.esm.js","mappings":";;;MAOa,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,eAAe,GACZ,EACxB;GACH;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-traningspartner',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component\n widgetStyle={this.widgetStyle}\n buttonBg={this.buttonBg}\n buttonColor={this.buttonColor}\n id={this.id}\n business={Business.traningspartner}\n ></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-04bcf90e.js';
2
- import { W as WidgetStyle, B as Business } from './index-c8aebf0d.js';
1
+ import { r as registerInstance, h } from './index-2ce8b901.js';
2
+ import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
3
3
 
4
4
  const MyComponent = class {
5
5
  constructor(hostRef) {
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-zaptec.entry.esm.js","mappings":";;;MAOa,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,GAAyB,EAC5K;GACH;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-zaptec',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.zaptec}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { c as getRenderingRef, f as forceUpdate } from './index-04bcf90e.js';
1
+ import { g as getRenderingRef, f as forceUpdate } from './index-2ce8b901.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);
@@ -260,4 +260,4 @@ onChange('selectedCustomerCategory', category => {
260
260
 
261
261
  export { state as s };
262
262
 
263
- //# sourceMappingURL=index-8282f88e.js.map
263
+ //# sourceMappingURL=index-21ba2b05.js.map
@@ -1 +1 @@
1
- {"file":"index-8282f88e.js","mappings":";;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;AAC7B,IAAI,IAAI,SAAS,CAAC;AAClB,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK;AACxB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,YAAY,CAAC,SAAS,CAAC,CAAC;AACpC,SAAS;AACT,QAAQ,SAAS,GAAG,UAAU,CAAC,MAAM;AACrC,YAAY,SAAS,GAAG,CAAC,CAAC;AAC1B,YAAY,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AACxB,SAAS,EAAE,EAAE,CAAC,CAAC;AACf,KAAK,CAAC;AACN,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,GAAG,CAAC,YAAY,KAAK,EAAE,aAAa,IAAI,YAAY,CAAC,IAAI,YAAY,CAAC,WAAW,CAAC;AACnG,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,GAAG,KAAK;AAC1C,I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C,CAAC;EACtE,IAAI,QAAQ,EAAE;IACZ,KAAK,CAAC,cAAc,GAAG,QAAQ,CAAC;IAChC,OAAO;GACR;EACD,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE,QAAQ;EAC3C,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,QAAQ;IAAE,OAAO;EACzC,IAAK,QAAgC,CAAC,MAAM,EAAE;IAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAM,QAAgC,CAAC,MAAM,CAAC,CAAC;IACtG,IAAI,MAAM,EAAE;MACV,KAAK,CAAC,cAAc,GAAG,MAAM,CAAC;MAC9B,OAAO;KACR;GACF;EACD,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC;;;;","names":[],"sources":["./node_modules/@stencil/store/dist/index.mjs","./src/store/index.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { OnChangeHandler } from '@stencil/store/dist/types';\nimport { Business, CartItem, Category, Customer, CustomerCategory, CustomerSubCategory, GreenOptions, Product, RotOptions, RutOptions, Service, User, WpOptions } from '../types';\nimport { CreditSafeUser } from '../types/felixtypes';\n\ntype StateType = {\n step: number;\n selectedCategory: Category | null;\n selectedService: Service | null;\n selectedProduct: Product | null;\n cart: Array<CartItem>;\n business: Business | 'undefined';\n options: WpOptions | null;\n rut: boolean;\n rot: boolean;\n green: boolean;\n token: string | null;\n checkoutStep: number;\n checkoutEdit: boolean;\n user: User | null;\n creditSafeUser: CreditSafeUser | null;\n modal: {\n title?: string;\n text: string;\n } | null;\n rutOptions: RutOptions | null;\n rotOptions: RotOptions | null;\n greenOptions: GreenOptions | null;\n customer: Customer | null;\n selectedCustomerCategory: CustomerCategory | CustomerSubCategory | null;\n parentCategory: CustomerCategory | CustomerSubCategory;\n checkoutInvoice: boolean;\n maleri: boolean;\n selectSource: boolean;\n showSourcePasswordPrompt: boolean;\n};\n\nconst {\n state,\n onChange,\n}: {\n state: StateType;\n onChange: OnChangeHandler<StateType>;\n} = createStore({\n step: 1,\n checkoutStep: 1,\n checkoutEdit: false,\n selectedCategory: null,\n selectedService: null,\n selectedProduct: null,\n cart: [],\n business: 'undefined',\n options: null,\n rut: true,\n rot: true,\n green: true,\n token: null,\n user: null,\n modal: null,\n rutOptions: null,\n rotOptions: null,\n greenOptions: null,\n customer: null,\n selectedCustomerCategory: null,\n parentCategory: null,\n creditSafeUser: null,\n checkoutInvoice: false,\n maleri: false,\n sources: null,\n selectSource: false,\n showSourcePasswordPrompt: false,\n});\n\nonChange('cart', cart => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-cart`, JSON.stringify(cart));\n});\n\nonChange('user', user => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-user`, JSON.stringify(user));\n});\n\nonChange('creditSafeUser', user => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-creditSafeUser`, JSON.stringify(user));\n});\n\nonChange('selectSource', selectSource => {\n if (selectSource) {\n localStorage.setItem('select_source', 'true');\n }\n});\n\nonChange('selectedProduct', product => {\n if (!state.customer || !product) return;\n const categories = [...state.customer.categories, ...state.customer.categories.map(c => c.sub_categories ?? [])].flat();\n const category = categories.find(c => c && c.id === product.category);\n if (category) {\n state.parentCategory = category;\n return;\n }\n state.parentCategory = null;\n});\n\nonChange('selectedCustomerCategory', category => {\n if (!state.customer || !category) return;\n if ((category as CustomerSubCategory).parent) {\n const parent = state.customer.categories.find(c => c.id === (category as CustomerSubCategory).parent);\n if (parent) {\n state.parentCategory = parent;\n return;\n }\n }\n state.parentCategory = null;\n});\n\nexport default state;\n"],"version":3}
1
+ {"file":"index-21ba2b05.js","mappings":";;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;AAC7B,IAAI,IAAI,SAAS,CAAC;AAClB,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK;AACxB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,YAAY,CAAC,SAAS,CAAC,CAAC;AACpC,SAAS;AACT,QAAQ,SAAS,GAAG,UAAU,CAAC,MAAM;AACrC,YAAY,SAAS,GAAG,CAAC,CAAC;AAC1B,YAAY,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AACxB,SAAS,EAAE,EAAE,CAAC,CAAC;AACf,KAAK,CAAC;AACN,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,GAAG,CAAC,YAAY,KAAK,EAAE,aAAa,IAAI,YAAY,CAAC,IAAI,YAAY,CAAC,WAAW,CAAC;AACnG,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,GAAG,KAAK;AAC1C,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE;AAChC,QAAQ,GAA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;IAChC,OAAO;GACR;EACD,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE,QAAQ;EAC3C,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,QAAQ;IAAE,OAAO;EACzC,IAAK,QAAgC,CAAC,MAAM,EAAE;IAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAM,QAAgC,CAAC,MAAM,CAAC,CAAC;IACtG,IAAI,MAAM,EAAE;MACV,KAAK,CAAC,cAAc,GAAG,MAAM,CAAC;MAC9B,OAAO;KACR;GACF;EACD,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC;;;;","names":[],"sources":["./node_modules/@stencil/store/dist/index.mjs","./src/store/index.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { OnChangeHandler } from '@stencil/store/dist/types';\nimport { Business, CartItem, Category, Customer, CustomerCategory, CustomerSubCategory, GreenOptions, Product, RotOptions, RutOptions, Service, User, WpOptions } from '../types';\nimport { CreditSafeUser } from '../types/felixtypes';\n\ntype StateType = {\n step: number;\n selectedCategory: Category | null;\n selectedService: Service | null;\n selectedProduct: Product | null;\n cart: Array<CartItem>;\n business: Business | 'undefined';\n options: WpOptions | null;\n rut: boolean;\n rot: boolean;\n green: boolean;\n token: string | null;\n checkoutStep: number;\n checkoutEdit: boolean;\n user: User | null;\n creditSafeUser: CreditSafeUser | null;\n modal: {\n title?: string;\n text: string;\n } | null;\n rutOptions: RutOptions | null;\n rotOptions: RotOptions | null;\n greenOptions: GreenOptions | null;\n customer: Customer | null;\n selectedCustomerCategory: CustomerCategory | CustomerSubCategory | null;\n parentCategory: CustomerCategory | CustomerSubCategory;\n checkoutInvoice: boolean;\n maleri: boolean;\n selectSource: boolean;\n showSourcePasswordPrompt: boolean;\n};\n\nconst {\n state,\n onChange,\n}: {\n state: StateType;\n onChange: OnChangeHandler<StateType>;\n} = createStore({\n step: 1,\n checkoutStep: 1,\n checkoutEdit: false,\n selectedCategory: null,\n selectedService: null,\n selectedProduct: null,\n cart: [],\n business: 'undefined',\n options: null,\n rut: true,\n rot: true,\n green: true,\n token: null,\n user: null,\n modal: null,\n rutOptions: null,\n rotOptions: null,\n greenOptions: null,\n customer: null,\n selectedCustomerCategory: null,\n parentCategory: null,\n creditSafeUser: null,\n checkoutInvoice: false,\n maleri: false,\n sources: null,\n selectSource: false,\n showSourcePasswordPrompt: false,\n});\n\nonChange('cart', cart => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-cart`, JSON.stringify(cart));\n});\n\nonChange('user', user => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-user`, JSON.stringify(user));\n});\n\nonChange('creditSafeUser', user => {\n window.sessionStorage.setItem(`hemfixarna-${state.business}-creditSafeUser`, JSON.stringify(user));\n});\n\nonChange('selectSource', selectSource => {\n if (selectSource) {\n localStorage.setItem('select_source', 'true');\n }\n});\n\nonChange('selectedProduct', product => {\n if (!state.customer || !product) return;\n const categories = [...state.customer.categories, ...state.customer.categories.map(c => c.sub_categories ?? [])].flat();\n const category = categories.find(c => c && c.id === product.category);\n if (category) {\n state.parentCategory = category;\n return;\n }\n state.parentCategory = null;\n});\n\nonChange('selectedCustomerCategory', category => {\n if (!state.customer || !category) return;\n if ((category as CustomerSubCategory).parent) {\n const parent = state.customer.categories.find(c => c.id === (category as CustomerSubCategory).parent);\n if (parent) {\n state.parentCategory = parent;\n return;\n }\n }\n state.parentCategory = null;\n});\n\nexport default state;\n"],"version":3}