hemfixarna-web-components 1.8.5 → 1.8.8

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-669f8efa.js +55 -0
  48. package/dist/cjs/index-669f8efa.js.map +1 -0
  49. package/dist/cjs/index-6cce99a1.js +264 -0
  50. package/dist/cjs/index-6cce99a1.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 +1077 -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} +28 -19
  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 +52 -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-10f224fb.js} +7 -1
  237. package/dist/esm/index-10f224fb.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-07fcb3fc.entry.js +2 -0
  257. package/dist/hemfixarna-components/p-07fcb3fc.entry.js.map +1 -0
  258. package/dist/hemfixarna-components/p-14c97338.entry.js +2 -0
  259. package/dist/hemfixarna-components/p-14c97338.entry.js.map +1 -0
  260. package/dist/hemfixarna-components/p-19f6d847.entry.js +2 -0
  261. package/dist/hemfixarna-components/p-19f6d847.entry.js.map +1 -0
  262. package/dist/hemfixarna-components/p-23fc8b0d.entry.js +2 -0
  263. package/dist/hemfixarna-components/p-23fc8b0d.entry.js.map +1 -0
  264. package/dist/hemfixarna-components/p-2b9a21bc.entry.js +2 -0
  265. package/dist/hemfixarna-components/p-2b9a21bc.entry.js.map +1 -0
  266. package/dist/hemfixarna-components/p-4a026720.entry.js +2 -0
  267. package/dist/hemfixarna-components/p-4a026720.entry.js.map +1 -0
  268. package/dist/hemfixarna-components/p-4ea7af02.entry.js +2 -0
  269. package/dist/hemfixarna-components/p-4ea7af02.entry.js.map +1 -0
  270. package/dist/hemfixarna-components/p-5c9563b4.entry.js +2 -0
  271. package/dist/hemfixarna-components/p-5c9563b4.entry.js.map +1 -0
  272. package/dist/hemfixarna-components/p-6b1fb908.entry.js +2 -0
  273. package/dist/hemfixarna-components/p-6b1fb908.entry.js.map +1 -0
  274. package/dist/hemfixarna-components/p-6cec6885.entry.js +2 -0
  275. package/dist/hemfixarna-components/p-6cec6885.entry.js.map +1 -0
  276. package/dist/hemfixarna-components/p-7c0e45f5.entry.js +2 -0
  277. package/dist/hemfixarna-components/p-7c0e45f5.entry.js.map +1 -0
  278. package/dist/hemfixarna-components/p-7cfe7396.entry.js +2 -0
  279. package/dist/hemfixarna-components/p-7cfe7396.entry.js.map +1 -0
  280. package/dist/hemfixarna-components/p-87ddafde.entry.js +2 -0
  281. package/dist/hemfixarna-components/p-87ddafde.entry.js.map +1 -0
  282. package/dist/hemfixarna-components/p-8db25ce8.entry.js +2 -0
  283. package/dist/hemfixarna-components/p-8db25ce8.entry.js.map +1 -0
  284. package/dist/hemfixarna-components/p-8ec15c26.js +2 -0
  285. package/dist/hemfixarna-components/p-8ec15c26.js.map +1 -0
  286. package/dist/hemfixarna-components/p-9f8f105b.entry.js +2 -0
  287. package/dist/hemfixarna-components/p-9f8f105b.entry.js.map +1 -0
  288. package/dist/hemfixarna-components/p-bd9b6f5e.entry.js +2 -0
  289. package/dist/hemfixarna-components/p-bd9b6f5e.entry.js.map +1 -0
  290. package/dist/hemfixarna-components/p-c707b937.js +3 -0
  291. package/dist/hemfixarna-components/p-c707b937.js.map +1 -0
  292. package/dist/hemfixarna-components/p-cdc0d010.js +2 -0
  293. package/dist/hemfixarna-components/p-cdc0d010.js.map +1 -0
  294. package/dist/hemfixarna-components/p-d2f1b07d.entry.js +2 -0
  295. package/dist/hemfixarna-components/p-d2f1b07d.entry.js.map +1 -0
  296. package/dist/hemfixarna-components/p-db0ee919.entry.js +2 -0
  297. package/dist/hemfixarna-components/p-db0ee919.entry.js.map +1 -0
  298. package/dist/hemfixarna-components/p-e55c9df2.entry.js +2 -0
  299. package/dist/hemfixarna-components/p-e55c9df2.entry.js.map +1 -0
  300. package/dist/hemfixarna-components/p-e9e21b7a.entry.js +2 -0
  301. package/dist/hemfixarna-components/p-e9e21b7a.entry.js.map +1 -0
  302. package/dist/hemfixarna-components/p-ecc84ceb.entry.js +2 -0
  303. package/dist/hemfixarna-components/p-ecc84ceb.entry.js.map +1 -0
  304. package/dist/hemfixarna-components/p-eedfa2a6.entry.js +2 -0
  305. package/dist/hemfixarna-components/p-eedfa2a6.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 +8 -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
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e6926623.js');
6
+ const index$1 = require('./index-669f8efa.js');
7
+
8
+ const MyComponent = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.id = undefined;
12
+ this.loadFromQuery = undefined;
13
+ this.widgetStyle = index$1.WidgetStyle.standard;
14
+ this.buttonColor = undefined;
15
+ this.buttonBg = undefined;
16
+ }
17
+ render() {
18
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, id: this.id, business: index$1.Business.superfront }));
19
+ }
20
+ };
21
+
22
+ exports.hemfixarna_superfront = MyComponent;
23
+
24
+ //# sourceMappingURL=hemfixarna-superfront.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-superfront.entry.cjs.js","mappings":";;;;;;;MAOa,WAAW;;;;yBAEW,SAAS;uBACNA,mBAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACEC,kCACE,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,EAAEC,gBAAQ,CAAC,UAAU,GACP,EACxB;GACH;;;;;","names":["WidgetStyle","h","Business"],"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}
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e6926623.js');
6
+ const index$1 = require('./index-669f8efa.js');
7
+
8
+ const MyComponent = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.id = undefined;
12
+ this.widgetStyle = index$1.WidgetStyle.standard;
13
+ this.buttonColor = undefined;
14
+ this.buttonBg = undefined;
15
+ }
16
+ render() {
17
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, id: this.id, business: index$1.Business.tesla }));
18
+ }
19
+ };
20
+
21
+ exports.hemfixarna_tesla = MyComponent;
22
+
23
+ //# sourceMappingURL=hemfixarna-tesla.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-tesla.entry.cjs.js","mappings":";;;;;;;MAOa,WAAW;;;;uBAEcA,mBAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACEC,kCAAsB,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,EAAEC,gBAAQ,CAAC,KAAK,GAAyB,EAC3K;GACH;;;;;","names":["WidgetStyle","h","Business"],"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}
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e6926623.js');
6
+ const index$1 = require('./index-669f8efa.js');
7
+
8
+ const MyComponent = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.id = undefined;
12
+ this.widgetStyle = index$1.WidgetStyle.standard;
13
+ this.buttonColor = undefined;
14
+ this.buttonBg = undefined;
15
+ }
16
+ render() {
17
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, id: this.id, business: index$1.Business.traningspartner }));
18
+ }
19
+ };
20
+
21
+ exports.hemfixarna_traningspartner = MyComponent;
22
+
23
+ //# sourceMappingURL=hemfixarna-traningspartner.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-traningspartner.entry.cjs.js","mappings":";;;;;;;MAOa,WAAW;;;;uBAEcA,mBAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACEC,kCACE,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,EAAEC,gBAAQ,CAAC,eAAe,GACZ,EACxB;GACH;;;;;","names":["WidgetStyle","h","Business"],"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}
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e6926623.js');
6
+ const index$1 = require('./index-669f8efa.js');
7
+
8
+ const MyComponent = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.id = undefined;
12
+ this.widgetStyle = index$1.WidgetStyle.standard;
13
+ this.buttonColor = undefined;
14
+ this.buttonBg = undefined;
15
+ }
16
+ render() {
17
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, id: this.id, business: index$1.Business.zaptec }));
18
+ }
19
+ };
20
+
21
+ exports.hemfixarna_zaptec = MyComponent;
22
+
23
+ //# sourceMappingURL=hemfixarna-zaptec.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hemfixarna-zaptec.entry.cjs.js","mappings":";;;;;;;MAOa,WAAW;;;;uBAEcA,mBAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACEC,kCAAsB,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,EAAEC,gBAAQ,CAAC,MAAM,GAAyB,EAC5K;GACH;;;;;","names":["WidgetStyle","h","Business"],"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}
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ // Match slug with partner slug in wp admin
4
+ // Dont forget to add the partners url to cors for creditsafe
5
+ // https://bitbucket.org/afonso-sweden/creditsafe-lookup/src/main/api/index.ts
6
+ exports.Business = void 0;
7
+ (function (Business) {
8
+ Business["kund"] = "kund";
9
+ Business["byggmax"] = "byggmax";
10
+ Business["skanska"] = "skanska";
11
+ Business["string"] = "string-furniture";
12
+ Business["hornbach"] = "hornbach";
13
+ Business["forebygg"] = "forebygg";
14
+ Business["doro"] = "doro";
15
+ Business["elfa"] = "elfa";
16
+ Business["kbygg"] = "k-bygg";
17
+ Business["norrgavel"] = "norrgavel";
18
+ Business["fargvaruhuset"] = "fargvaruhuset";
19
+ Business["zaptec"] = "zaptec";
20
+ Business["tesla"] = "tesla";
21
+ Business["klint"] = "klint";
22
+ Business["flyttsmart"] = "flyttsmart";
23
+ Business["lg"] = "lg";
24
+ Business["sparfonster"] = "sparfonster";
25
+ Business["power"] = "power";
26
+ Business["traningspartner"] = "traningspartner";
27
+ Business["superfront"] = "superfront";
28
+ Business["inet"] = "inet";
29
+ Business["design24"] = "design24";
30
+ Business["netatonce"] = "netatonce";
31
+ Business["bygghemma"] = "bygghemma";
32
+ Business["badshop"] = "badshop";
33
+ Business["byggshop"] = "byggshop";
34
+ Business["golvshop"] = "golvshop";
35
+ Business["golvpoolen"] = "golvpoolen";
36
+ Business["webhallen"] = "webhallen";
37
+ Business["homeroom"] = "homeroom";
38
+ Business["pickyliving"] = "picky-living";
39
+ Business["amina"] = "amina";
40
+ Business["stgeorgesecuritystore"] = "st-george-security-store";
41
+ Business["whiteawaygroup"] = "whiteawaygroup";
42
+ })(exports.Business || (exports.Business = {}));
43
+ exports.WidgetStyle = void 0;
44
+ (function (WidgetStyle) {
45
+ WidgetStyle["standard"] = "standard";
46
+ WidgetStyle["alternative"] = "alternative";
47
+ WidgetStyle["alternative_2"] = "alternative_2";
48
+ WidgetStyle["alternative_3"] = "alternative_3";
49
+ })(exports.WidgetStyle || (exports.WidgetStyle = {}));
50
+ var TopCategory;
51
+ (function (TopCategory) {
52
+ TopCategory["byggmax"] = "category/bygg";
53
+ })(TopCategory || (TopCategory = {}));
54
+
55
+ //# sourceMappingURL=index-669f8efa.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-669f8efa.js","mappings":";;AAAA;AACA;AACA;AAEYA;AAAZ,WAAY,QAAQ;EAClB,yBAAa,CAAA;EACb,+BAAmB,CAAA;EACnB,+BAAmB,CAAA;EACnB,uCAA2B,CAAA;EAC3B,iCAAqB,CAAA;EACrB,iCAAqB,CAAA;EACrB,yBAAa,CAAA;EACb,yBAAa,CAAA;EACb,4BAAgB,CAAA;EAChB,mCAAuB,CAAA;EACvB,2CAA+B,CAAA;EAC/B,6BAAiB,CAAA;EACjB,2BAAe,CAAA;EACf,2BAAe,CAAA;EACf,qCAAyB,CAAA;EACzB,qBAAS,CAAA;EACT,uCAA2B,CAAA;EAC3B,2BAAe,CAAA;EACf,+CAAmC,CAAA;EACnC,qCAAyB,CAAA;EACzB,yBAAa,CAAA;EACb,iCAAqB,CAAA;EACrB,mCAAuB,CAAA;EACvB,mCAAuB,CAAA;EACvB,+BAAmB,CAAA;EACnB,iCAAqB,CAAA;EACrB,iCAAqB,CAAA;EACrB,qCAAyB,CAAA;EACzB,mCAAuB,CAAA;EACvB,iCAAqB,CAAA;EACrB,wCAA4B,CAAA;EAC5B,2BAAe,CAAA;EACf,8DAAkD,CAAA;EAClD,6CAAiC,CAAA;AACnC,CAAC,EAnCWA,gBAAQ,KAARA,gBAAQ,QAmCnB;AAsMWC;AAAZ,WAAY,WAAW;EACrB,oCAAqB,CAAA;EACrB,0CAA2B,CAAA;EAC3B,8CAA+B,CAAA;EAC/B,8CAA+B,CAAA;AACjC,CAAC,EALWA,mBAAW,KAAXA,mBAAW,QAKtB;AAED,IAAY,WAEX;AAFD,WAAY,WAAW;EACrB,wCAAyB,CAAA;AAC3B,CAAC,EAFW,WAAW,KAAX,WAAW;;","names":["Business","WidgetStyle"],"sources":["./src/types/index.ts"],"sourcesContent":["// Match slug with partner slug in wp admin\n// Dont forget to add the partners url to cors for creditsafe\n// https://bitbucket.org/afonso-sweden/creditsafe-lookup/src/main/api/index.ts\n\nexport enum Business {\n kund = 'kund',\n byggmax = 'byggmax',\n skanska = 'skanska',\n string = 'string-furniture',\n hornbach = 'hornbach',\n forebygg = 'forebygg',\n doro = 'doro',\n elfa = 'elfa',\n kbygg = 'k-bygg',\n norrgavel = 'norrgavel',\n fargvaruhuset = 'fargvaruhuset',\n zaptec = 'zaptec',\n tesla = 'tesla',\n klint = 'klint',\n flyttsmart = 'flyttsmart',\n lg = 'lg',\n sparfonster = 'sparfonster',\n power = 'power',\n traningspartner = 'traningspartner',\n superfront = 'superfront',\n inet = 'inet',\n design24 = 'design24',\n netatonce = 'netatonce',\n bygghemma = 'bygghemma',\n badshop = 'badshop',\n byggshop = 'byggshop',\n golvshop = 'golvshop',\n golvpoolen = 'golvpoolen',\n webhallen = 'webhallen',\n homeroom = 'homeroom',\n pickyliving = 'picky-living',\n amina = 'amina',\n stgeorgesecuritystore = 'st-george-security-store',\n whiteawaygroup = 'whiteawaygroup'\n}\n\ntype Icon = {\n url: string;\n};\n\ninterface Customer {\n ID: number;\n post_title: string;\n post_name: string;\n post_type: string;\n filter: string;\n categories: CustomerCategory[];\n logo?: Icon;\n partner_url?: string;\n at_hemfixarna: boolean;\n info_title: string;\n widget_title?: string;\n info_text: string;\n checkout_title: string;\n checkout_trust_badges: { text: string }[];\n trust_badges: { text: string }[];\n source?: Source;\n password_protected: boolean;\n}\n\ninterface CustomerCategory {\n id: string;\n name: string;\n widget_title?: string;\n icon: string;\n show_products: boolean;\n products: { fields: Product }[] | false;\n sub_categories: CustomerSubCategory[] | false;\n add_painting: boolean;\n}\n\ninterface CustomerSubCategory {\n id: string;\n name: string;\n widget_title?: string;\n icon: string;\n products: { fields: Product }[];\n parent: string;\n add_painting: boolean;\n}\n\ninterface Part {\n ID: number;\n post_author: number;\n post_date: Date;\n post_date_gmt: Date;\n post_content: string;\n post_title: string;\n post_excerpt: string;\n post_status: string;\n comment_status: string;\n ping_status: string;\n post_password: string;\n post_name: string;\n to_ping: string;\n pinged: string;\n post_modified: Date;\n post_modified_gmt: Date;\n post_content_filtered: string;\n post_parent: 0 | 1;\n guid: string;\n menu_order: 0;\n post_type: string;\n post_mime_type: string;\n comment_count: number;\n filter: string;\n price: number;\n title: string;\n}\n\ninterface Product {\n ID: number;\n show_pdf: string;\n post_author: string;\n post_date: Date;\n post_date_gmt: Date;\n post_content: string;\n post_title: string;\n post_excerpt: string;\n post_status: string;\n comment_status: string;\n ping_status: string;\n post_password: string;\n post_name: string;\n to_ping: string;\n pinged: string;\n post_modified: Date;\n post_modified_gmt: Date;\n post_content_filtered: string;\n post_parent: 0;\n guid: string;\n menu_order: 0;\n post_type: string;\n post_mime_type: string;\n comment_count: 0;\n filter: string;\n price: number;\n icon?: Icon | string;\n parts?: Array<Part>;\n list: Array<{ bullet: string }>;\n terms: string;\n terms_checkout: string;\n terms_show_checkbox: boolean;\n rut: boolean;\n rot: boolean;\n green: boolean;\n hide_start_fee: boolean;\n description: string;\n category: string;\n title: string;\n invoice: string;\n invoice_price: string;\n invoice_description?: string;\n start_fee_obj: StartFee | null;\n}\n\ninterface Service {\n ID: 41857;\n icon?: Icon | string;\n post_author: 34419;\n post_date: Date;\n post_date_gmt: Date;\n post_content: string;\n post_title: string;\n post_excerpt: string;\n post_status: string;\n comment_status: string;\n ping_status: string;\n post_password: string;\n post_name: string;\n to_ping: string;\n pinged: string;\n post_modified: Date;\n post_modified_gmt: Date;\n post_content_filtered: string;\n post_parent: 0;\n guid: string;\n menu_order: 0;\n post_type: 'service';\n post_mime_type: string;\n comment_count: 0;\n filter: string;\n products: Array<Product>;\n}\n\ninterface Category {\n count: number;\n description: string;\n name: string;\n icon?: Icon | string;\n parent: 0 | 1;\n slug: string;\n taxonomy: 'service_cat';\n term_group: 0 | 1;\n term_id: number;\n term_order: string;\n term_taxonomy_id: number;\n sub_cats?: Array<Category>;\n services?: Array<Service>;\n}\n\ninterface WpOptions {\n link: { title: string; url: string };\n trust: { trust_badge: string }[];\n thank_you_image: string;\n start_fee: number;\n terms: string;\n maleri_title: string;\n maleri_text: string;\n}\ninterface CartPart {\n id: number;\n amount: number;\n price: number;\n name: string;\n}\n\ninterface CartItem {\n id: number;\n price: number;\n name: string;\n amount: number;\n parts: CartPart[];\n rut: boolean;\n rot: boolean;\n green: boolean;\n start_fee: boolean;\n terms_checkout: string;\n icon?: Icon | string;\n start_fee_obj: StartFee | null;\n}\n\nexport enum WidgetStyle {\n standard = 'standard',\n alternative = 'alternative',\n alternative_2 = 'alternative_2',\n alternative_3 = 'alternative_3',\n}\n\nexport enum TopCategory {\n byggmax = 'category/bygg',\n}\n\ninterface User {\n email: string;\n phone: string;\n ssn: string;\n firstName: string;\n lastName: string;\n street: string;\n zip: string;\n town: string;\n}\n\ninterface RutOptions {\n rut_start_fee_heading: string;\n rut_start_fee_text: string;\n rut_start_fee_text_secondary: string;\n}\n\ninterface RotOptions {\n rot_start_fee_heading: string;\n rot_start_fee_text: string;\n rot_start_fee_text_secondary: string;\n}\n\ninterface GreenOptions {\n green_start_fee_heading: string;\n green_start_fee_text: string;\n green_start_fee_text_secondary: string;\n}\n\ninterface SubSource {\n 'recordId': string;\n 'So_SubSource::Sus01_Name': string;\n 'So_SubSource::_id': string;\n 'So_SubSource::_id_Source': string;\n 'modId': string;\n}\n\ninterface FieldData {\n _id: string;\n So01_Name: string;\n So457_Aktiv_ac: number;\n So40_WebSubSource: string | number;\n So39_WebSource: number;\n rec_id: number;\n}\n\ninterface Source {\n fieldData: FieldData;\n sub_sources: SubSource[];\n}\n\ninterface SourcesRespone {\n dataInfo: {\n database: string;\n layout: string;\n table: string;\n totalRecordCount: number;\n foundCount: number;\n returnedCount: number;\n };\n data: Source[];\n}\n\ninterface StartFee {\n ID: number;\n title: string;\n price: number;\n pop_up: string | null;\n discount_type: string | null;\n description: string;\n}\n\nexport type {\n CartItem,\n CartPart,\n Category,\n Customer,\n CustomerCategory,\n CustomerSubCategory,\n GreenOptions,\n Icon,\n Part,\n Product,\n RotOptions,\n RutOptions,\n Service,\n Source,\n SourcesRespone,\n StartFee,\n User,\n WpOptions,\n};\n"],"version":3}
@@ -0,0 +1,264 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-e6926623.js');
4
+
5
+ const appendToMap = (map, propName, value) => {
6
+ const items = map.get(propName);
7
+ if (!items) {
8
+ map.set(propName, [value]);
9
+ }
10
+ else if (!items.includes(value)) {
11
+ items.push(value);
12
+ }
13
+ };
14
+ const debounce = (fn, ms) => {
15
+ let timeoutId;
16
+ return (...args) => {
17
+ if (timeoutId) {
18
+ clearTimeout(timeoutId);
19
+ }
20
+ timeoutId = setTimeout(() => {
21
+ timeoutId = 0;
22
+ fn(...args);
23
+ }, ms);
24
+ };
25
+ };
26
+
27
+ /**
28
+ * Check if a possible element isConnected.
29
+ * The property might not be there, so we check for it.
30
+ *
31
+ * We want it to return true if isConnected is not a property,
32
+ * otherwise we would remove these elements and would not update.
33
+ *
34
+ * Better leak in Edge than to be useless.
35
+ */
36
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
37
+ const cleanupElements = debounce((map) => {
38
+ for (let key of map.keys()) {
39
+ map.set(key, map.get(key).filter(isConnected));
40
+ }
41
+ }, 2_000);
42
+ const stencilSubscription = () => {
43
+ if (typeof index.getRenderingRef !== 'function') {
44
+ // If we are not in a stencil project, we do nothing.
45
+ // This function is not really exported by @stencil/core.
46
+ return {};
47
+ }
48
+ const elmsToUpdate = new Map();
49
+ return {
50
+ dispose: () => elmsToUpdate.clear(),
51
+ get: (propName) => {
52
+ const elm = index.getRenderingRef();
53
+ if (elm) {
54
+ appendToMap(elmsToUpdate, propName, elm);
55
+ }
56
+ },
57
+ set: (propName) => {
58
+ const elements = elmsToUpdate.get(propName);
59
+ if (elements) {
60
+ elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
61
+ }
62
+ cleanupElements(elmsToUpdate);
63
+ },
64
+ reset: () => {
65
+ elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
66
+ cleanupElements(elmsToUpdate);
67
+ },
68
+ };
69
+ };
70
+
71
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
72
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
73
+ const unwrappedState = unwrap(defaultState);
74
+ let states = new Map(Object.entries(unwrappedState ?? {}));
75
+ const handlers = {
76
+ dispose: [],
77
+ get: [],
78
+ set: [],
79
+ reset: [],
80
+ };
81
+ const reset = () => {
82
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
83
+ // otherwise, the state won't be properly reset
84
+ states = new Map(Object.entries(unwrap(defaultState) ?? {}));
85
+ handlers.reset.forEach((cb) => cb());
86
+ };
87
+ const dispose = () => {
88
+ // Call first dispose as resetting the state would
89
+ // cause less updates ;)
90
+ handlers.dispose.forEach((cb) => cb());
91
+ reset();
92
+ };
93
+ const get = (propName) => {
94
+ handlers.get.forEach((cb) => cb(propName));
95
+ return states.get(propName);
96
+ };
97
+ const set = (propName, value) => {
98
+ const oldValue = states.get(propName);
99
+ if (shouldUpdate(value, oldValue, propName)) {
100
+ states.set(propName, value);
101
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
102
+ }
103
+ };
104
+ const state = (typeof Proxy === 'undefined'
105
+ ? {}
106
+ : new Proxy(unwrappedState, {
107
+ get(_, propName) {
108
+ return get(propName);
109
+ },
110
+ ownKeys(_) {
111
+ return Array.from(states.keys());
112
+ },
113
+ getOwnPropertyDescriptor() {
114
+ return {
115
+ enumerable: true,
116
+ configurable: true,
117
+ };
118
+ },
119
+ has(_, propName) {
120
+ return states.has(propName);
121
+ },
122
+ set(_, propName, value) {
123
+ set(propName, value);
124
+ return true;
125
+ },
126
+ }));
127
+ const on = (eventName, callback) => {
128
+ handlers[eventName].push(callback);
129
+ return () => {
130
+ removeFromArray(handlers[eventName], callback);
131
+ };
132
+ };
133
+ const onChange = (propName, cb) => {
134
+ const unSet = on('set', (key, newValue) => {
135
+ if (key === propName) {
136
+ cb(newValue);
137
+ }
138
+ });
139
+ // We need to unwrap the defaultState because it might be a function.
140
+ // Otherwise we might not be sending the right reset value.
141
+ const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
142
+ return () => {
143
+ unSet();
144
+ unReset();
145
+ };
146
+ };
147
+ const use = (...subscriptions) => {
148
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
149
+ if (subscription.set) {
150
+ unsubs.push(on('set', subscription.set));
151
+ }
152
+ if (subscription.get) {
153
+ unsubs.push(on('get', subscription.get));
154
+ }
155
+ if (subscription.reset) {
156
+ unsubs.push(on('reset', subscription.reset));
157
+ }
158
+ if (subscription.dispose) {
159
+ unsubs.push(on('dispose', subscription.dispose));
160
+ }
161
+ return unsubs;
162
+ }, []);
163
+ return () => unsubs.forEach((unsub) => unsub());
164
+ };
165
+ const forceUpdate = (key) => {
166
+ const oldValue = states.get(key);
167
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
168
+ };
169
+ return {
170
+ state,
171
+ get,
172
+ set,
173
+ on,
174
+ onChange,
175
+ use,
176
+ dispose,
177
+ reset,
178
+ forceUpdate,
179
+ };
180
+ };
181
+ const removeFromArray = (array, item) => {
182
+ const index = array.indexOf(item);
183
+ if (index >= 0) {
184
+ array[index] = array[array.length - 1];
185
+ array.length--;
186
+ }
187
+ };
188
+
189
+ const createStore = (defaultState, shouldUpdate) => {
190
+ const map = createObservableMap(defaultState, shouldUpdate);
191
+ map.use(stencilSubscription());
192
+ return map;
193
+ };
194
+
195
+ const { state, onChange, } = createStore({
196
+ step: 1,
197
+ checkoutStep: 1,
198
+ checkoutEdit: false,
199
+ selectedCategory: null,
200
+ selectedService: null,
201
+ selectedProduct: null,
202
+ cart: [],
203
+ business: 'undefined',
204
+ options: null,
205
+ rut: true,
206
+ rot: true,
207
+ green: true,
208
+ token: null,
209
+ user: null,
210
+ modal: null,
211
+ rutOptions: null,
212
+ rotOptions: null,
213
+ greenOptions: null,
214
+ customer: null,
215
+ selectedCustomerCategory: null,
216
+ parentCategory: null,
217
+ creditSafeUser: null,
218
+ checkoutInvoice: false,
219
+ maleri: false,
220
+ sources: null,
221
+ selectSource: false,
222
+ showSourcePasswordPrompt: false,
223
+ });
224
+ onChange('cart', cart => {
225
+ window.sessionStorage.setItem(`hemfixarna-${state.business}-cart`, JSON.stringify(cart));
226
+ });
227
+ onChange('user', user => {
228
+ window.sessionStorage.setItem(`hemfixarna-${state.business}-user`, JSON.stringify(user));
229
+ });
230
+ onChange('creditSafeUser', user => {
231
+ window.sessionStorage.setItem(`hemfixarna-${state.business}-creditSafeUser`, JSON.stringify(user));
232
+ });
233
+ onChange('selectSource', selectSource => {
234
+ if (selectSource) {
235
+ localStorage.setItem('select_source', 'true');
236
+ }
237
+ });
238
+ onChange('selectedProduct', product => {
239
+ if (!state.customer || !product)
240
+ return;
241
+ const categories = [...state.customer.categories, ...state.customer.categories.map(c => { var _a; return (_a = c.sub_categories) !== null && _a !== void 0 ? _a : []; })].flat();
242
+ const category = categories.find(c => c && c.id === product.category);
243
+ if (category) {
244
+ state.parentCategory = category;
245
+ return;
246
+ }
247
+ state.parentCategory = null;
248
+ });
249
+ onChange('selectedCustomerCategory', category => {
250
+ if (!state.customer || !category)
251
+ return;
252
+ if (category.parent) {
253
+ const parent = state.customer.categories.find(c => c.id === category.parent);
254
+ if (parent) {
255
+ state.parentCategory = parent;
256
+ return;
257
+ }
258
+ }
259
+ state.parentCategory = null;
260
+ });
261
+
262
+ exports.state = state;
263
+
264
+ //# sourceMappingURL=index-6cce99a1.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-6cce99a1.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,E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,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC;;;;","names":["getRenderingRef","forceUpdate"],"sources":["./node_modules/@stencil/store/dist/index.js","./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}, 2_000);\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 ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\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(unwrap(defaultState) ?? {}));\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}