hemfixarna-web-components 1.6.1 → 1.6.2
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.
- package/dist/{collection/utils/api.js → hemfixarna-components/api-36f73d0d.js} +6 -4
- package/dist/hemfixarna-components/api-36f73d0d.js.map +1 -0
- package/dist/hemfixarna-components/app-globals-0f993ce5.js +5 -0
- package/dist/hemfixarna-components/app-globals-0f993ce5.js.map +1 -0
- package/dist/{collection/utils/calc.js → hemfixarna-components/calc-4c79b798.js} +6 -3
- package/dist/hemfixarna-components/calc-4c79b798.js.map +1 -0
- package/dist/hemfixarna-components/css-shim-62d2171c.js +6 -0
- package/dist/hemfixarna-components/css-shim-62d2171c.js.map +1 -0
- package/dist/hemfixarna-components/dom-46a68c9b.js +75 -0
- package/dist/hemfixarna-components/dom-46a68c9b.js.map +1 -0
- package/dist/{collection/utils/form.js → hemfixarna-components/form-c53dca29.js} +4 -2
- package/dist/hemfixarna-components/form-c53dca29.js.map +1 -0
- package/dist/{collection/components/hemfixarna-address/hemfixarna-address.js → hemfixarna-components/hemfixarna-address.entry.js} +14 -20
- package/dist/hemfixarna-components/hemfixarna-address.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-box.entry.js +49 -0
- package/dist/hemfixarna-components/hemfixarna-box.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js → hemfixarna-components/hemfixarna-breadcrumbs.entry.js} +13 -84
- package/dist/hemfixarna-components/hemfixarna-breadcrumbs.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-byggmax.entry.js +27 -0
- package/dist/hemfixarna-components/hemfixarna-byggmax.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-cart/hemfixarna-cart.js → hemfixarna-components/hemfixarna-cart.entry.js} +11 -31
- package/dist/hemfixarna-components/hemfixarna-cart.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-category.tsx/hemfixarna-category.js → hemfixarna-components/hemfixarna-category.entry.js} +12 -6
- package/dist/hemfixarna-components/hemfixarna-category.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-checkout/hemfixarna-checkout.js → hemfixarna-components/hemfixarna-checkout.entry.js} +38 -33
- package/dist/hemfixarna-components/hemfixarna-checkout.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-component.entry.js +248 -0
- package/dist/hemfixarna-components/hemfixarna-component.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-components.esm.js +162 -1
- package/dist/hemfixarna-components/hemfixarna-components.esm.js.map +1 -1
- package/dist/{collection/components/hemfixarna-contact/hemfixarna-contact.js → hemfixarna-components/hemfixarna-contact.entry.js} +10 -28
- package/dist/hemfixarna-components/hemfixarna-contact.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-demo/hemfixarna-demo.js → hemfixarna-components/hemfixarna-demo.entry.js} +23 -46
- package/dist/hemfixarna-components/hemfixarna-demo.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-doro.entry.js +23 -0
- package/dist/hemfixarna-components/hemfixarna-doro.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-elfa.entry.js +24 -0
- package/dist/hemfixarna-components/hemfixarna-elfa.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-fargvaruhuset.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-fargvaruhuset.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-flyttsmart.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-flyttsmart.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-forebygg.entry.js +23 -0
- package/dist/hemfixarna-components/hemfixarna-forebygg.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-getuser.entry.js +770 -0
- package/dist/hemfixarna-components/hemfixarna-getuser.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-hornbach.entry.js +24 -0
- package/dist/hemfixarna-components/hemfixarna-hornbach.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-info/hemfixarna-info.js → hemfixarna-components/hemfixarna-info.entry.js} +11 -7
- package/dist/hemfixarna-components/hemfixarna-info.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-invoice/hemfixarna-invoice.js → hemfixarna-components/hemfixarna-invoice.entry.js} +16 -27
- package/dist/hemfixarna-components/hemfixarna-invoice.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-kbygg.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-kbygg.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-klint.entry.js +20 -0
- package/dist/hemfixarna-components/hemfixarna-klint.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-kund.entry.js +20 -0
- package/dist/hemfixarna-components/hemfixarna-kund.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-norrgavel.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-norrgavel.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-order/hemfixarna-order.js → hemfixarna-components/hemfixarna-order.entry.js} +11 -31
- package/dist/hemfixarna-components/hemfixarna-order.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js → hemfixarna-components/hemfixarna-orderrows.entry.js} +12 -50
- package/dist/hemfixarna-components/hemfixarna-orderrows.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-power.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-power.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-product/hemfixarna-product.js → hemfixarna-components/hemfixarna-product.entry.js} +18 -27
- package/dist/hemfixarna-components/hemfixarna-product.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-service/hemfixarna-service.js → hemfixarna-components/hemfixarna-service.entry.js} +12 -6
- package/dist/hemfixarna-components/hemfixarna-service.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-skanska.entry.js +24 -0
- package/dist/hemfixarna-components/hemfixarna-skanska.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-sparfonster.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-sparfonster.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-start/hemfixarna-start.js → hemfixarna-components/hemfixarna-start.entry.js} +11 -48
- package/dist/hemfixarna-components/hemfixarna-start.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-string-furniture.entry.js +23 -0
- package/dist/hemfixarna-components/hemfixarna-string-furniture.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-superfront.entry.js +20 -0
- package/dist/hemfixarna-components/hemfixarna-superfront.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-tesla.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-tesla.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-traningspartner.entry.js +20 -0
- package/dist/hemfixarna-components/hemfixarna-traningspartner.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-zaptec.entry.js +21 -0
- package/dist/hemfixarna-components/hemfixarna-zaptec.entry.js.map +1 -0
- package/dist/hemfixarna-components/index-b6a6e994.js +256 -0
- package/dist/hemfixarna-components/index-b6a6e994.js.map +1 -0
- package/dist/{collection/types/index.js → hemfixarna-components/index-d90ad11b.js} +7 -4
- package/dist/hemfixarna-components/index-d90ad11b.js.map +1 -0
- package/dist/hemfixarna-components/index-f1a87cf1.js +3397 -0
- package/dist/{cjs/hemfixarna-address_36.cjs.entry.js.map → hemfixarna-components/index-f1a87cf1.js.map} +1 -1
- package/dist/hemfixarna-components/index.esm.js +1 -0
- package/dist/hemfixarna-components/index.esm.js.map +1 -1
- package/dist/{collection/utils/scroll.js → hemfixarna-components/scroll-6c26b5da.js} +4 -2
- package/dist/hemfixarna-components/scroll-6c26b5da.js.map +1 -0
- package/dist/hemfixarna-components/shadow-css-05e0c1f4.js +389 -0
- package/dist/hemfixarna-components/shadow-css-05e0c1f4.js.map +1 -0
- package/dist/{collection/utils/types.js → hemfixarna-components/types-641c9a1c.js} +6 -3
- package/dist/hemfixarna-components/types-641c9a1c.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/hemfixarna-address_36.cjs.entry.js +0 -2763
- package/dist/cjs/hemfixarna-components.cjs.js +0 -28
- package/dist/cjs/hemfixarna-components.cjs.js.map +0 -1
- package/dist/cjs/index-b83343b9.js +0 -1687
- package/dist/cjs/index-b83343b9.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -24
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/assets/back.svg +0 -3
- package/dist/collection/assets/cart.svg +0 -10
- package/dist/collection/assets/checked.svg +0 -10
- package/dist/collection/assets/close.svg +0 -5
- package/dist/collection/assets/copy.png +0 -0
- package/dist/collection/assets/date.svg +0 -6
- package/dist/collection/assets/down.svg +0 -3
- package/dist/collection/assets/drag-drop.svg +0 -3
- package/dist/collection/assets/elfa.png +0 -0
- package/dist/collection/assets/gubbe-pensel.svg +0 -1
- package/dist/collection/assets/hemfixarna.svg +0 -11
- package/dist/collection/assets/hornbach/logo.svg +0 -42
- package/dist/collection/assets/hornbach/nav.jpg +0 -0
- package/dist/collection/assets/info.svg +0 -5
- package/dist/collection/assets/kbygg.svg +0 -29
- package/dist/collection/assets/minus.svg +0 -4
- package/dist/collection/assets/montering.svg +0 -15
- package/dist/collection/assets/norrgavel.svg +0 -1
- package/dist/collection/assets/pensel.svg +0 -1
- package/dist/collection/assets/plus.svg +0 -5
- package/dist/collection/assets/spinner.gif +0 -0
- package/dist/collection/assets/tesla.svg +0 -1
- package/dist/collection/assets/zaptec.svg +0 -1
- package/dist/collection/collection-manifest.json +0 -47
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.css +0 -0
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js +0 -184
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.css +0 -0
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js +0 -123
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.css +0 -0
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js +0 -142
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js +0 -132
- package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js +0 -132
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.css +0 -0
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js +0 -123
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.css +0 -0
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js +0 -142
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js +0 -132
- package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +0 -113
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js +0 -113
- package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js +0 -132
- package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js +0 -131
- package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.css +0 -0
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js +0 -141
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js +0 -131
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js +0 -123
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string.css +0 -0
- package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js +0 -113
- package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js +0 -132
- package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js +0 -113
- package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js +0 -132
- package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js.map +0 -1
- package/dist/collection/components/hemfixarna-address/hemfixarna-address.js.map +0 -1
- package/dist/collection/components/hemfixarna-box/hemfixarna-box.js +0 -138
- package/dist/collection/components/hemfixarna-box/hemfixarna-box.js.map +0 -1
- package/dist/collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js.map +0 -1
- package/dist/collection/components/hemfixarna-cart/hemfixarna-cart.js.map +0 -1
- package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js.map +0 -1
- package/dist/collection/components/hemfixarna-checkout/hemfixarna-checkout.js.map +0 -1
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +0 -483
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js.map +0 -1
- package/dist/collection/components/hemfixarna-component/hemfixarna.css +0 -1031
- package/dist/collection/components/hemfixarna-contact/hemfixarna-contact.js.map +0 -1
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.css +0 -135
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +0 -1
- package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js +0 -91
- package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js.map +0 -1
- package/dist/collection/components/hemfixarna-info/hemfixarna-info.js.map +0 -1
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.css +0 -76
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js.map +0 -1
- package/dist/collection/components/hemfixarna-order/hemfixarna-order.js.map +0 -1
- package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js.map +0 -1
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.css +0 -0
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.js.map +0 -1
- package/dist/collection/components/hemfixarna-service/hemfixarna-service.js.map +0 -1
- package/dist/collection/components/hemfixarna-start/hemfixarna-start.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/store/index.js +0 -62
- package/dist/collection/store/index.js.map +0 -1
- package/dist/collection/types/felixtypes.js +0 -3
- package/dist/collection/types/felixtypes.js.map +0 -1
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/api.js.map +0 -1
- package/dist/collection/utils/calc.js.map +0 -1
- package/dist/collection/utils/creditSafe.js +0 -18
- package/dist/collection/utils/creditSafe.js.map +0 -1
- package/dist/collection/utils/felixApi.js +0 -18
- package/dist/collection/utils/felixApi.js.map +0 -1
- package/dist/collection/utils/felixFunctions.js +0 -189
- package/dist/collection/utils/felixFunctions.js.map +0 -1
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/scroll.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/esm/hemfixarna-address_36.entry.js +0 -2724
- package/dist/esm/hemfixarna-address_36.entry.js.map +0 -1
- package/dist/esm/hemfixarna-components.js +0 -23
- package/dist/esm/hemfixarna-components.js.map +0 -1
- package/dist/esm/index-8c417125.js +0 -1656
- package/dist/esm/index-8c417125.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -20
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/hemfixarna-components/p-211cfa04.entry.js +0 -2
- package/dist/hemfixarna-components/p-211cfa04.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-852e7173.js +0 -3
- package/dist/hemfixarna-components/p-852e7173.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
@@ -0,0 +1,20 @@
|
|
1
|
+
import { r as registerInstance, h } from './index-f1a87cf1.js';
|
2
|
+
import { W as WidgetStyle, B as Business } from './index-d90ad11b.js';
|
3
|
+
|
4
|
+
const MyComponent = class {
|
5
|
+
constructor(hostRef) {
|
6
|
+
registerInstance(this, hostRef);
|
7
|
+
this.id = undefined;
|
8
|
+
this.loadFromQuery = undefined;
|
9
|
+
this.widgetStyle = WidgetStyle.standard;
|
10
|
+
this.buttonColor = undefined;
|
11
|
+
this.buttonBg = undefined;
|
12
|
+
}
|
13
|
+
render() {
|
14
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.superfront }));
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
export { MyComponent as hemfixarna_superfront };
|
19
|
+
|
20
|
+
//# sourceMappingURL=hemfixarna-superfront.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-superfront.entry.esm.js","mappings":";;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { r as registerInstance, h } from './index-f1a87cf1.js';
|
2
|
+
import { W as WidgetStyle, B as Business } from './index-d90ad11b.js';
|
3
|
+
|
4
|
+
const MyComponent = class {
|
5
|
+
constructor(hostRef) {
|
6
|
+
registerInstance(this, hostRef);
|
7
|
+
this.id = undefined;
|
8
|
+
this.loadFromQuery = 'true';
|
9
|
+
this.isDemo = false;
|
10
|
+
this.widgetStyle = WidgetStyle.standard;
|
11
|
+
this.buttonColor = undefined;
|
12
|
+
this.buttonBg = undefined;
|
13
|
+
}
|
14
|
+
render() {
|
15
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://www.tesla.com/sv_se/home-charging', logo: 'assets/tesla.svg' }, isDemo: this.isDemo, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.tesla }));
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
export { MyComponent as hemfixarna_tesla };
|
20
|
+
|
21
|
+
//# sourceMappingURL=hemfixarna-tesla.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-tesla.entry.esm.js","mappings":";;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { r as registerInstance, h } from './index-f1a87cf1.js';
|
2
|
+
import { W as WidgetStyle, B as Business } from './index-d90ad11b.js';
|
3
|
+
|
4
|
+
const MyComponent = class {
|
5
|
+
constructor(hostRef) {
|
6
|
+
registerInstance(this, hostRef);
|
7
|
+
this.id = undefined;
|
8
|
+
this.loadFromQuery = undefined;
|
9
|
+
this.widgetStyle = WidgetStyle.standard;
|
10
|
+
this.buttonColor = undefined;
|
11
|
+
this.buttonBg = undefined;
|
12
|
+
}
|
13
|
+
render() {
|
14
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.traningspartner }));
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
export { MyComponent as hemfixarna_traningspartner };
|
19
|
+
|
20
|
+
//# sourceMappingURL=hemfixarna-traningspartner.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-traningspartner.entry.esm.js","mappings":";;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { r as registerInstance, h } from './index-f1a87cf1.js';
|
2
|
+
import { W as WidgetStyle, B as Business } from './index-d90ad11b.js';
|
3
|
+
|
4
|
+
const MyComponent = class {
|
5
|
+
constructor(hostRef) {
|
6
|
+
registerInstance(this, hostRef);
|
7
|
+
this.id = undefined;
|
8
|
+
this.loadFromQuery = 'true';
|
9
|
+
this.isDemo = false;
|
10
|
+
this.widgetStyle = WidgetStyle.standard;
|
11
|
+
this.buttonColor = undefined;
|
12
|
+
this.buttonBg = undefined;
|
13
|
+
}
|
14
|
+
render() {
|
15
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://www.zaptec.com/sv/laddningslosningar/zaptec-go', logo: 'assets/zaptec.svg' }, isDemo: this.isDemo, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.zaptec }));
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
export { MyComponent as hemfixarna_zaptec };
|
20
|
+
|
21
|
+
//# sourceMappingURL=hemfixarna-zaptec.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-zaptec.entry.esm.js","mappings":";;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,256 @@
|
|
1
|
+
import { f as getRenderingRef, i as forceUpdate } from './index-f1a87cf1.js';
|
2
|
+
|
3
|
+
const appendToMap = (map, propName, value) => {
|
4
|
+
const items = map.get(propName);
|
5
|
+
if (!items) {
|
6
|
+
map.set(propName, [value]);
|
7
|
+
}
|
8
|
+
else if (!items.includes(value)) {
|
9
|
+
items.push(value);
|
10
|
+
}
|
11
|
+
};
|
12
|
+
const debounce = (fn, ms) => {
|
13
|
+
let timeoutId;
|
14
|
+
return (...args) => {
|
15
|
+
if (timeoutId) {
|
16
|
+
clearTimeout(timeoutId);
|
17
|
+
}
|
18
|
+
timeoutId = setTimeout(() => {
|
19
|
+
timeoutId = 0;
|
20
|
+
fn(...args);
|
21
|
+
}, ms);
|
22
|
+
};
|
23
|
+
};
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Check if a possible element isConnected.
|
27
|
+
* The property might not be there, so we check for it.
|
28
|
+
*
|
29
|
+
* We want it to return true if isConnected is not a property,
|
30
|
+
* otherwise we would remove these elements and would not update.
|
31
|
+
*
|
32
|
+
* Better leak in Edge than to be useless.
|
33
|
+
*/
|
34
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
35
|
+
const cleanupElements = debounce((map) => {
|
36
|
+
for (let key of map.keys()) {
|
37
|
+
map.set(key, map.get(key).filter(isConnected));
|
38
|
+
}
|
39
|
+
}, 2000);
|
40
|
+
const stencilSubscription = () => {
|
41
|
+
if (typeof getRenderingRef !== 'function') {
|
42
|
+
// If we are not in a stencil project, we do nothing.
|
43
|
+
// This function is not really exported by @stencil/core.
|
44
|
+
return {};
|
45
|
+
}
|
46
|
+
const elmsToUpdate = new Map();
|
47
|
+
return {
|
48
|
+
dispose: () => elmsToUpdate.clear(),
|
49
|
+
get: (propName) => {
|
50
|
+
const elm = getRenderingRef();
|
51
|
+
if (elm) {
|
52
|
+
appendToMap(elmsToUpdate, propName, elm);
|
53
|
+
}
|
54
|
+
},
|
55
|
+
set: (propName) => {
|
56
|
+
const elements = elmsToUpdate.get(propName);
|
57
|
+
if (elements) {
|
58
|
+
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
59
|
+
}
|
60
|
+
cleanupElements(elmsToUpdate);
|
61
|
+
},
|
62
|
+
reset: () => {
|
63
|
+
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
64
|
+
cleanupElements(elmsToUpdate);
|
65
|
+
},
|
66
|
+
};
|
67
|
+
};
|
68
|
+
|
69
|
+
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
70
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
71
|
+
const unwrappedState = unwrap(defaultState);
|
72
|
+
let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
|
73
|
+
const handlers = {
|
74
|
+
dispose: [],
|
75
|
+
get: [],
|
76
|
+
set: [],
|
77
|
+
reset: [],
|
78
|
+
};
|
79
|
+
const reset = () => {
|
80
|
+
var _a;
|
81
|
+
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
82
|
+
// otherwise, the state won't be properly reset
|
83
|
+
states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
|
84
|
+
handlers.reset.forEach((cb) => cb());
|
85
|
+
};
|
86
|
+
const dispose = () => {
|
87
|
+
// Call first dispose as resetting the state would
|
88
|
+
// cause less updates ;)
|
89
|
+
handlers.dispose.forEach((cb) => cb());
|
90
|
+
reset();
|
91
|
+
};
|
92
|
+
const get = (propName) => {
|
93
|
+
handlers.get.forEach((cb) => cb(propName));
|
94
|
+
return states.get(propName);
|
95
|
+
};
|
96
|
+
const set = (propName, value) => {
|
97
|
+
const oldValue = states.get(propName);
|
98
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
99
|
+
states.set(propName, value);
|
100
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
101
|
+
}
|
102
|
+
};
|
103
|
+
const state = (typeof Proxy === 'undefined'
|
104
|
+
? {}
|
105
|
+
: new Proxy(unwrappedState, {
|
106
|
+
get(_, propName) {
|
107
|
+
return get(propName);
|
108
|
+
},
|
109
|
+
ownKeys(_) {
|
110
|
+
return Array.from(states.keys());
|
111
|
+
},
|
112
|
+
getOwnPropertyDescriptor() {
|
113
|
+
return {
|
114
|
+
enumerable: true,
|
115
|
+
configurable: true,
|
116
|
+
};
|
117
|
+
},
|
118
|
+
has(_, propName) {
|
119
|
+
return states.has(propName);
|
120
|
+
},
|
121
|
+
set(_, propName, value) {
|
122
|
+
set(propName, value);
|
123
|
+
return true;
|
124
|
+
},
|
125
|
+
}));
|
126
|
+
const on = (eventName, callback) => {
|
127
|
+
handlers[eventName].push(callback);
|
128
|
+
return () => {
|
129
|
+
removeFromArray(handlers[eventName], callback);
|
130
|
+
};
|
131
|
+
};
|
132
|
+
const onChange = (propName, cb) => {
|
133
|
+
const unSet = on('set', (key, newValue) => {
|
134
|
+
if (key === propName) {
|
135
|
+
cb(newValue);
|
136
|
+
}
|
137
|
+
});
|
138
|
+
// We need to unwrap the defaultState because it might be a function.
|
139
|
+
// Otherwise we might not be sending the right reset value.
|
140
|
+
const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
|
141
|
+
return () => {
|
142
|
+
unSet();
|
143
|
+
unReset();
|
144
|
+
};
|
145
|
+
};
|
146
|
+
const use = (...subscriptions) => {
|
147
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
148
|
+
if (subscription.set) {
|
149
|
+
unsubs.push(on('set', subscription.set));
|
150
|
+
}
|
151
|
+
if (subscription.get) {
|
152
|
+
unsubs.push(on('get', subscription.get));
|
153
|
+
}
|
154
|
+
if (subscription.reset) {
|
155
|
+
unsubs.push(on('reset', subscription.reset));
|
156
|
+
}
|
157
|
+
if (subscription.dispose) {
|
158
|
+
unsubs.push(on('dispose', subscription.dispose));
|
159
|
+
}
|
160
|
+
return unsubs;
|
161
|
+
}, []);
|
162
|
+
return () => unsubs.forEach((unsub) => unsub());
|
163
|
+
};
|
164
|
+
const forceUpdate = (key) => {
|
165
|
+
const oldValue = states.get(key);
|
166
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
167
|
+
};
|
168
|
+
return {
|
169
|
+
state,
|
170
|
+
get,
|
171
|
+
set,
|
172
|
+
on,
|
173
|
+
onChange,
|
174
|
+
use,
|
175
|
+
dispose,
|
176
|
+
reset,
|
177
|
+
forceUpdate,
|
178
|
+
};
|
179
|
+
};
|
180
|
+
const removeFromArray = (array, item) => {
|
181
|
+
const index = array.indexOf(item);
|
182
|
+
if (index >= 0) {
|
183
|
+
array[index] = array[array.length - 1];
|
184
|
+
array.length--;
|
185
|
+
}
|
186
|
+
};
|
187
|
+
|
188
|
+
const createStore = (defaultState, shouldUpdate) => {
|
189
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
190
|
+
map.use(stencilSubscription());
|
191
|
+
return map;
|
192
|
+
};
|
193
|
+
|
194
|
+
const { state, onChange, } = createStore({
|
195
|
+
step: 1,
|
196
|
+
checkoutStep: 1,
|
197
|
+
checkoutEdit: false,
|
198
|
+
selectedCategory: null,
|
199
|
+
selectedService: null,
|
200
|
+
selectedProduct: null,
|
201
|
+
cart: [],
|
202
|
+
business: 'undefined',
|
203
|
+
options: null,
|
204
|
+
rut: true,
|
205
|
+
rot: true,
|
206
|
+
green: true,
|
207
|
+
token: null,
|
208
|
+
user: null,
|
209
|
+
modal: null,
|
210
|
+
rutOptions: null,
|
211
|
+
rotOptions: null,
|
212
|
+
greenOptions: null,
|
213
|
+
customer: null,
|
214
|
+
selectedCustomerCategory: null,
|
215
|
+
parentCategory: null,
|
216
|
+
creditSafeUser: null,
|
217
|
+
checkoutInvoice: false,
|
218
|
+
maleri: false,
|
219
|
+
sources: null,
|
220
|
+
});
|
221
|
+
onChange('cart', cart => {
|
222
|
+
window.sessionStorage.setItem(`hemfixarna-${state.business}-cart`, JSON.stringify(cart));
|
223
|
+
});
|
224
|
+
onChange('user', user => {
|
225
|
+
window.sessionStorage.setItem(`hemfixarna-${state.business}-user`, JSON.stringify(user));
|
226
|
+
});
|
227
|
+
onChange('creditSafeUser', user => {
|
228
|
+
window.sessionStorage.setItem(`hemfixarna-${state.business}-creditSafeUser`, JSON.stringify(user));
|
229
|
+
});
|
230
|
+
onChange('selectedProduct', product => {
|
231
|
+
if (!state.customer || !product)
|
232
|
+
return;
|
233
|
+
const categories = [...state.customer.categories, ...state.customer.categories.map(c => { var _a; return (_a = c.sub_categories) !== null && _a !== void 0 ? _a : []; })].flat();
|
234
|
+
const category = categories.find(c => c && c.id === product.category);
|
235
|
+
if (category) {
|
236
|
+
state.parentCategory = category;
|
237
|
+
return;
|
238
|
+
}
|
239
|
+
state.parentCategory = null;
|
240
|
+
});
|
241
|
+
onChange('selectedCustomerCategory', category => {
|
242
|
+
if (!state.customer || !category)
|
243
|
+
return;
|
244
|
+
if (category.parent) {
|
245
|
+
const parent = state.customer.categories.find(c => c.id === category.parent);
|
246
|
+
if (parent) {
|
247
|
+
state.parentCategory = parent;
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
state.parentCategory = null;
|
252
|
+
});
|
253
|
+
|
254
|
+
export { state as s };
|
255
|
+
|
256
|
+
//# sourceMappingURL=index-b6a6e994.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"index-b6a6e994.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var Business;
|
2
2
|
(function (Business) {
|
3
3
|
Business["kund"] = "kund";
|
4
4
|
Business["byggmax"] = "byggmax";
|
@@ -21,15 +21,18 @@ export var Business;
|
|
21
21
|
Business["traningspartner"] = "traningspartner";
|
22
22
|
Business["superfront"] = "superfront";
|
23
23
|
})(Business || (Business = {}));
|
24
|
-
|
24
|
+
var WidgetStyle;
|
25
25
|
(function (WidgetStyle) {
|
26
26
|
WidgetStyle["standard"] = "standard";
|
27
27
|
WidgetStyle["alternative"] = "alternative";
|
28
28
|
WidgetStyle["alternative_2"] = "alternative_2";
|
29
29
|
WidgetStyle["alternative_3"] = "alternative_3";
|
30
30
|
})(WidgetStyle || (WidgetStyle = {}));
|
31
|
-
|
31
|
+
var TopCategory;
|
32
32
|
(function (TopCategory) {
|
33
33
|
TopCategory["byggmax"] = "category/bygg";
|
34
34
|
})(TopCategory || (TopCategory = {}));
|
35
|
-
|
35
|
+
|
36
|
+
export { Business as B, TopCategory as T, WidgetStyle as W };
|
37
|
+
|
38
|
+
//# sourceMappingURL=index-d90ad11b.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"index-d90ad11b.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|