hemfixarna-web-components 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{hemfixarna-address_29.cjs.entry.js → hemfixarna-address_32.cjs.entry.js} +163 -59
- package/dist/{esm/hemfixarna-address_29.entry.js.map → cjs/hemfixarna-address_32.cjs.entry.js.map} +1 -1
- package/dist/cjs/hemfixarna-components.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js +132 -0
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map +1 -0
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +113 -0
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +1 -0
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js +131 -0
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map +1 -0
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +6 -4
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js.map +1 -1
- package/dist/collection/components/hemfixarna-component/hemfixarna.css +3 -0
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js +2 -2
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +1 -1
- package/dist/collection/components/hemfixarna-info/hemfixarna-info.js +1 -1
- package/dist/collection/components/hemfixarna-info/hemfixarna-info.js.map +1 -1
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js +2 -1
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js.map +1 -1
- package/dist/collection/components/hemfixarna-order/hemfixarna-order.js +1 -1
- package/dist/collection/components/hemfixarna-order/hemfixarna-order.js.map +1 -1
- package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js +23 -3
- package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js.map +1 -1
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.js +5 -4
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.js.map +1 -1
- package/dist/collection/store/index.js +2 -0
- package/dist/collection/store/index.js.map +1 -1
- package/dist/collection/types/index.js +4 -0
- package/dist/collection/types/index.js.map +1 -1
- package/dist/collection/utils/api.js +10 -1
- package/dist/collection/utils/api.js.map +1 -1
- package/dist/collection/utils/calc.js +32 -14
- package/dist/collection/utils/calc.js.map +1 -1
- package/dist/esm/{hemfixarna-address_29.entry.js → hemfixarna-address_32.entry.js} +150 -49
- package/dist/{cjs/hemfixarna-address_29.cjs.entry.js.map → esm/hemfixarna-address_32.entry.js.map} +1 -1
- package/dist/esm/hemfixarna-components.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-components.esm.js +1 -1
- package/dist/hemfixarna-components/p-d2942ebb.entry.js +2 -0
- package/dist/types/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.d.ts +10 -0
- package/dist/types/components/customers/hemfixarna-klint/hemfixarna-klint.d.ts +9 -0
- package/dist/types/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.d.ts +10 -0
- package/dist/types/components/hemfixarna-orderrows/hemfixarna-orderrows.d.ts +3 -1
- package/dist/types/components.d.ts +73 -0
- package/dist/types/store/index.d.ts +3 -1
- package/dist/types/types/index.d.ts +13 -2
- package/dist/types/utils/api.d.ts +2 -1
- package/dist/types/utils/calc.d.ts +5 -1
- package/package.json +1 -1
- package/dist/hemfixarna-components/p-5856205c.entry.js +0 -2
- /package/dist/hemfixarna-components/{p-5856205c.entry.js.map → p-d2942ebb.entry.js.map} +0 -0
package/dist/{esm/hemfixarna-address_29.entry.js.map → cjs/hemfixarna-address_32.cjs.entry.js.map}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
{"file":"hemfixarna-address.hemfixarna-box.hemfixarna-breadcrumbs.hemfixarna-byggmax.hemfixarna-cart.hemfixarna-category.hemfixarna-checkout.hemfixarna-component.hemfixarna-demo.hemfixarna-doro.hemfixarna-elfa.hemfixarna-fargvaruhuset.hemfixarna-forebygg.hemfixarna-getuser.hemfixarna-hornbach.hemfixarna-info.hemfixarna-invoice.hemfixarna-kbygg.hemfixarna-kund.hemfixarna-norrgavel.hemfixarna-order.hemfixarna-orderrows.hemfixarna-product.hemfixarna-service.hemfixarna-skanska.hemfixarna-start.hemfixarna-string-furniture.hemfixarna-tesla.hemfixarna-zaptec.entry.js","mappings":"
|
1
|
+
{"file":"hemfixarna-address.hemfixarna-box.hemfixarna-breadcrumbs.hemfixarna-byggmax.hemfixarna-cart.hemfixarna-category.hemfixarna-checkout.hemfixarna-component.hemfixarna-demo.hemfixarna-doro.hemfixarna-elfa.hemfixarna-fargvaruhuset.hemfixarna-flyttsmart.hemfixarna-forebygg.hemfixarna-getuser.hemfixarna-hornbach.hemfixarna-info.hemfixarna-invoice.hemfixarna-kbygg.hemfixarna-klint.hemfixarna-kund.hemfixarna-norrgavel.hemfixarna-order.hemfixarna-orderrows.hemfixarna-product.hemfixarna-service.hemfixarna-skanska.hemfixarna-sparfonster.hemfixarna-start.hemfixarna-string-furniture.hemfixarna-tesla.hemfixarna-zaptec.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -20,7 +20,7 @@ const patchBrowser = () => {
|
|
20
20
|
};
|
21
21
|
|
22
22
|
patchBrowser().then(options => {
|
23
|
-
return index.bootstrapLazy([["hemfixarna-
|
23
|
+
return index.bootstrapLazy([["hemfixarna-address_32.cjs",[[1,"hemfixarna-demo",{"selectedSlug":[32],"selectedID":[32],"tooltipText":[32],"tree":[32],"customer":[32],"widgetStyle":[32],"buttonBg":[32],"buttonColor":[32],"partner":[32],"colorAccessibility":[32]}],[1,"hemfixarna-byggmax",{"slug":[1],"id":[1],"forceOldTree":[4,"force-old-tree"],"loadFromQuery":[1,"load-from-query"],"customer":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"tree":[32]}],[1,"hemfixarna-doro",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-elfa",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-fargvaruhuset",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-flyttsmart",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-forebygg",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-hornbach",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-kbygg",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-klint",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-kund",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-norrgavel",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-skanska",{"id":[1],"customer":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-sparfonster",{"id":[1],"customer":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-string-furniture",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-tesla",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-zaptec",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-component",{"slug":[1],"id":[1],"business":[1],"topCategory":[1,"top-category"],"forceOldTree":[4,"force-old-tree"],"loadFromQuery":[4,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"nav":[16],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"modal":[32],"showModal":[32],"tree":[32],"product":[32],"proppedProduct":[32]},[[0,"click","handleClick"]]],[0,"hemfixarna-cart",{"tree":[16]}],[0,"hemfixarna-category"],[0,"hemfixarna-order",{"tree":[16]}],[0,"hemfixarna-product",{"amount":[32],"hideDescription":[32]}],[0,"hemfixarna-service"],[0,"hemfixarna-start",{"tree":[16],"slug":[1]}],[0,"hemfixarna-breadcrumbs",{"tree":[16],"closeModal":[16],"loadFromQuery":[4,"load-from-query"],"isDemo":[4,"is-demo"]}],[0,"hemfixarna-checkout",{"date":[32],"dateError":[32],"generalError":[32],"loading":[32]}],[0,"hemfixarna-invoice",{"formError":[32],"displayImages":[32],"formImages":[32],"formState":[32]}],[0,"hemfixarna-address",{"street":[32],"streetError":[32],"zip":[32],"zipError":[32],"town":[32],"townError":[32]}],[0,"hemfixarna-getuser",{"email":[32],"emailError":[32],"phone":[32],"phoneError":[32],"ssn":[32],"ssnError":[32]}],[0,"hemfixarna-orderrows",{"cart":[4],"tree":[16]}],[0,"hemfixarna-box",{"post":[16],"category":[16],"icon":[1],"postTitle":[1,"post-title"]}],[0,"hemfixarna-info",{"list":[16]}]]]], options);
|
24
24
|
});
|
25
25
|
|
26
26
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
16
16
|
return patchEsm().then(() => {
|
17
|
-
return index.bootstrapLazy([["hemfixarna-
|
17
|
+
return index.bootstrapLazy([["hemfixarna-address_32.cjs",[[1,"hemfixarna-demo",{"selectedSlug":[32],"selectedID":[32],"tooltipText":[32],"tree":[32],"customer":[32],"widgetStyle":[32],"buttonBg":[32],"buttonColor":[32],"partner":[32],"colorAccessibility":[32]}],[1,"hemfixarna-byggmax",{"slug":[1],"id":[1],"forceOldTree":[4,"force-old-tree"],"loadFromQuery":[1,"load-from-query"],"customer":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"tree":[32]}],[1,"hemfixarna-doro",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-elfa",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-fargvaruhuset",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-flyttsmart",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-forebygg",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-hornbach",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-kbygg",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-klint",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-kund",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-norrgavel",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"isDemo":[4,"is-demo"]}],[1,"hemfixarna-skanska",{"id":[1],"customer":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-sparfonster",{"id":[1],"customer":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-string-furniture",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-tesla",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-zaptec",{"id":[1],"loadFromQuery":[1,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}],[1,"hemfixarna-component",{"slug":[1],"id":[1],"business":[1],"topCategory":[1,"top-category"],"forceOldTree":[4,"force-old-tree"],"loadFromQuery":[4,"load-from-query"],"isDemo":[4,"is-demo"],"widgetStyle":[1,"widget-style"],"nav":[16],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"modal":[32],"showModal":[32],"tree":[32],"product":[32],"proppedProduct":[32]},[[0,"click","handleClick"]]],[0,"hemfixarna-cart",{"tree":[16]}],[0,"hemfixarna-category"],[0,"hemfixarna-order",{"tree":[16]}],[0,"hemfixarna-product",{"amount":[32],"hideDescription":[32]}],[0,"hemfixarna-service"],[0,"hemfixarna-start",{"tree":[16],"slug":[1]}],[0,"hemfixarna-breadcrumbs",{"tree":[16],"closeModal":[16],"loadFromQuery":[4,"load-from-query"],"isDemo":[4,"is-demo"]}],[0,"hemfixarna-checkout",{"date":[32],"dateError":[32],"generalError":[32],"loading":[32]}],[0,"hemfixarna-invoice",{"formError":[32],"displayImages":[32],"formImages":[32],"formState":[32]}],[0,"hemfixarna-address",{"street":[32],"streetError":[32],"zip":[32],"zipError":[32],"town":[32],"townError":[32]}],[0,"hemfixarna-getuser",{"email":[32],"emailError":[32],"phone":[32],"phoneError":[32],"ssn":[32],"ssnError":[32]}],[0,"hemfixarna-orderrows",{"cart":[4],"tree":[16]}],[0,"hemfixarna-box",{"post":[16],"category":[16],"icon":[1],"postTitle":[1,"post-title"]}],[0,"hemfixarna-info",{"list":[16]}]]]], options);
|
18
18
|
});
|
19
19
|
};
|
20
20
|
|
@@ -4,12 +4,15 @@
|
|
4
4
|
"./components/customers/hemfixarna-doro/hemfixarna-doro.js",
|
5
5
|
"./components/customers/hemfixarna-elfa/hemfixarna-elfa.js",
|
6
6
|
"./components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js",
|
7
|
+
"./components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js",
|
7
8
|
"./components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js",
|
8
9
|
"./components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js",
|
9
10
|
"./components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js",
|
11
|
+
"./components/customers/hemfixarna-klint/hemfixarna-klint.js",
|
10
12
|
"./components/customers/hemfixarna-kund/hemfixarna-kund.js",
|
11
13
|
"./components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js",
|
12
14
|
"./components/customers/hemfixarna-skanska/hemfixarna-skanska.js",
|
15
|
+
"./components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js",
|
13
16
|
"./components/customers/hemfixarna-string/hemfixarna-string-furniture.js",
|
14
17
|
"./components/customers/hemfixarna-tesla/hemfixarna-tesla.js",
|
15
18
|
"./components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js",
|
@@ -0,0 +1,132 @@
|
|
1
|
+
import { h } from '@stencil/core';
|
2
|
+
import { Business, WidgetStyle } from '../../../types';
|
3
|
+
export class MyComponent {
|
4
|
+
constructor() {
|
5
|
+
this.id = undefined;
|
6
|
+
this.loadFromQuery = undefined;
|
7
|
+
this.widgetStyle = WidgetStyle.standard;
|
8
|
+
this.buttonColor = undefined;
|
9
|
+
this.buttonBg = undefined;
|
10
|
+
this.isDemo = false;
|
11
|
+
}
|
12
|
+
render() {
|
13
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.flyttsmart, isDemo: this.isDemo }));
|
14
|
+
}
|
15
|
+
static get is() { return "hemfixarna-flyttsmart"; }
|
16
|
+
static get encapsulation() { return "shadow"; }
|
17
|
+
static get properties() {
|
18
|
+
return {
|
19
|
+
"id": {
|
20
|
+
"type": "string",
|
21
|
+
"mutable": false,
|
22
|
+
"complexType": {
|
23
|
+
"original": "string",
|
24
|
+
"resolved": "string",
|
25
|
+
"references": {}
|
26
|
+
},
|
27
|
+
"required": false,
|
28
|
+
"optional": true,
|
29
|
+
"docs": {
|
30
|
+
"tags": [],
|
31
|
+
"text": ""
|
32
|
+
},
|
33
|
+
"attribute": "id",
|
34
|
+
"reflect": false
|
35
|
+
},
|
36
|
+
"loadFromQuery": {
|
37
|
+
"type": "string",
|
38
|
+
"mutable": false,
|
39
|
+
"complexType": {
|
40
|
+
"original": "string",
|
41
|
+
"resolved": "string",
|
42
|
+
"references": {}
|
43
|
+
},
|
44
|
+
"required": false,
|
45
|
+
"optional": true,
|
46
|
+
"docs": {
|
47
|
+
"tags": [],
|
48
|
+
"text": ""
|
49
|
+
},
|
50
|
+
"attribute": "load-from-query",
|
51
|
+
"reflect": false,
|
52
|
+
"defaultValue": "undefined"
|
53
|
+
},
|
54
|
+
"widgetStyle": {
|
55
|
+
"type": "string",
|
56
|
+
"mutable": false,
|
57
|
+
"complexType": {
|
58
|
+
"original": "WidgetStyle",
|
59
|
+
"resolved": "WidgetStyle.alternative | WidgetStyle.alternative_2 | WidgetStyle.alternative_3 | WidgetStyle.standard",
|
60
|
+
"references": {
|
61
|
+
"WidgetStyle": {
|
62
|
+
"location": "import",
|
63
|
+
"path": "../../../types"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"required": false,
|
68
|
+
"optional": true,
|
69
|
+
"docs": {
|
70
|
+
"tags": [],
|
71
|
+
"text": ""
|
72
|
+
},
|
73
|
+
"attribute": "widget-style",
|
74
|
+
"reflect": false,
|
75
|
+
"defaultValue": "WidgetStyle.standard"
|
76
|
+
},
|
77
|
+
"buttonColor": {
|
78
|
+
"type": "string",
|
79
|
+
"mutable": false,
|
80
|
+
"complexType": {
|
81
|
+
"original": "string",
|
82
|
+
"resolved": "string",
|
83
|
+
"references": {}
|
84
|
+
},
|
85
|
+
"required": false,
|
86
|
+
"optional": true,
|
87
|
+
"docs": {
|
88
|
+
"tags": [],
|
89
|
+
"text": ""
|
90
|
+
},
|
91
|
+
"attribute": "button-color",
|
92
|
+
"reflect": false
|
93
|
+
},
|
94
|
+
"buttonBg": {
|
95
|
+
"type": "string",
|
96
|
+
"mutable": false,
|
97
|
+
"complexType": {
|
98
|
+
"original": "string",
|
99
|
+
"resolved": "string",
|
100
|
+
"references": {}
|
101
|
+
},
|
102
|
+
"required": false,
|
103
|
+
"optional": true,
|
104
|
+
"docs": {
|
105
|
+
"tags": [],
|
106
|
+
"text": ""
|
107
|
+
},
|
108
|
+
"attribute": "button-bg",
|
109
|
+
"reflect": false
|
110
|
+
},
|
111
|
+
"isDemo": {
|
112
|
+
"type": "boolean",
|
113
|
+
"mutable": false,
|
114
|
+
"complexType": {
|
115
|
+
"original": "boolean",
|
116
|
+
"resolved": "boolean",
|
117
|
+
"references": {}
|
118
|
+
},
|
119
|
+
"required": false,
|
120
|
+
"optional": true,
|
121
|
+
"docs": {
|
122
|
+
"tags": [],
|
123
|
+
"text": ""
|
124
|
+
},
|
125
|
+
"attribute": "is-demo",
|
126
|
+
"reflect": false,
|
127
|
+
"defaultValue": "false"
|
128
|
+
}
|
129
|
+
};
|
130
|
+
}
|
131
|
+
}
|
132
|
+
//# sourceMappingURL=hemfixarna-flyttsmart.js.map
|
package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hemfixarna-flyttsmart.js","sourceRoot":"","sources":["../../../../src/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMvD,MAAM,OAAO,WAAW;;;yBAEW,SAAS;uBACN,WAAW,CAAC,QAAQ;;;kBAG7B,KAAK;;EAEhC,MAAM;IACJ,OAAO,CACL,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAC1C,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,GACG,CACzB,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-flyttsmart',\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 @Prop() isDemo?: boolean = false;\n\n render() {\n return (\n <hemfixarna-component\n widgetStyle={this.widgetStyle}\n buttonBg={this.buttonBg}\n buttonColor={this.buttonColor}\n loadFromQuery={Boolean(this.loadFromQuery)}\n id={this.id}\n business={Business.flyttsmart}\n isDemo={this.isDemo}\n ></hemfixarna-component>\n );\n }\n}\n"]}
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import { h } from '@stencil/core';
|
2
|
+
import { Business, WidgetStyle } from '../../../types';
|
3
|
+
export class MyComponent {
|
4
|
+
constructor() {
|
5
|
+
this.id = undefined;
|
6
|
+
this.loadFromQuery = undefined;
|
7
|
+
this.widgetStyle = WidgetStyle.standard;
|
8
|
+
this.buttonColor = undefined;
|
9
|
+
this.buttonBg = undefined;
|
10
|
+
}
|
11
|
+
render() {
|
12
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.klint }));
|
13
|
+
}
|
14
|
+
static get is() { return "hemfixarna-klint"; }
|
15
|
+
static get encapsulation() { return "shadow"; }
|
16
|
+
static get properties() {
|
17
|
+
return {
|
18
|
+
"id": {
|
19
|
+
"type": "string",
|
20
|
+
"mutable": false,
|
21
|
+
"complexType": {
|
22
|
+
"original": "string",
|
23
|
+
"resolved": "string",
|
24
|
+
"references": {}
|
25
|
+
},
|
26
|
+
"required": false,
|
27
|
+
"optional": true,
|
28
|
+
"docs": {
|
29
|
+
"tags": [],
|
30
|
+
"text": ""
|
31
|
+
},
|
32
|
+
"attribute": "id",
|
33
|
+
"reflect": false
|
34
|
+
},
|
35
|
+
"loadFromQuery": {
|
36
|
+
"type": "string",
|
37
|
+
"mutable": false,
|
38
|
+
"complexType": {
|
39
|
+
"original": "string",
|
40
|
+
"resolved": "string",
|
41
|
+
"references": {}
|
42
|
+
},
|
43
|
+
"required": false,
|
44
|
+
"optional": true,
|
45
|
+
"docs": {
|
46
|
+
"tags": [],
|
47
|
+
"text": ""
|
48
|
+
},
|
49
|
+
"attribute": "load-from-query",
|
50
|
+
"reflect": false,
|
51
|
+
"defaultValue": "undefined"
|
52
|
+
},
|
53
|
+
"widgetStyle": {
|
54
|
+
"type": "string",
|
55
|
+
"mutable": false,
|
56
|
+
"complexType": {
|
57
|
+
"original": "WidgetStyle",
|
58
|
+
"resolved": "WidgetStyle.alternative | WidgetStyle.alternative_2 | WidgetStyle.alternative_3 | WidgetStyle.standard",
|
59
|
+
"references": {
|
60
|
+
"WidgetStyle": {
|
61
|
+
"location": "import",
|
62
|
+
"path": "../../../types"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"required": false,
|
67
|
+
"optional": true,
|
68
|
+
"docs": {
|
69
|
+
"tags": [],
|
70
|
+
"text": ""
|
71
|
+
},
|
72
|
+
"attribute": "widget-style",
|
73
|
+
"reflect": false,
|
74
|
+
"defaultValue": "WidgetStyle.standard"
|
75
|
+
},
|
76
|
+
"buttonColor": {
|
77
|
+
"type": "string",
|
78
|
+
"mutable": false,
|
79
|
+
"complexType": {
|
80
|
+
"original": "string",
|
81
|
+
"resolved": "string",
|
82
|
+
"references": {}
|
83
|
+
},
|
84
|
+
"required": false,
|
85
|
+
"optional": true,
|
86
|
+
"docs": {
|
87
|
+
"tags": [],
|
88
|
+
"text": ""
|
89
|
+
},
|
90
|
+
"attribute": "button-color",
|
91
|
+
"reflect": false
|
92
|
+
},
|
93
|
+
"buttonBg": {
|
94
|
+
"type": "string",
|
95
|
+
"mutable": false,
|
96
|
+
"complexType": {
|
97
|
+
"original": "string",
|
98
|
+
"resolved": "string",
|
99
|
+
"references": {}
|
100
|
+
},
|
101
|
+
"required": false,
|
102
|
+
"optional": true,
|
103
|
+
"docs": {
|
104
|
+
"tags": [],
|
105
|
+
"text": ""
|
106
|
+
},
|
107
|
+
"attribute": "button-bg",
|
108
|
+
"reflect": false
|
109
|
+
}
|
110
|
+
};
|
111
|
+
}
|
112
|
+
}
|
113
|
+
//# sourceMappingURL=hemfixarna-klint.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hemfixarna-klint.js","sourceRoot":"","sources":["../../../../src/components/customers/hemfixarna-klint/hemfixarna-klint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMvD,MAAM,OAAO,WAAW;;;yBAEW,SAAS;uBACN,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,OAAO,CACL,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAC1C,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,KAAK,GACF,CACzB,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-klint',\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 loadFromQuery={Boolean(this.loadFromQuery)}\n id={this.id}\n business={Business.klint}\n ></hemfixarna-component>\n );\n }\n}\n"]}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { h } from '@stencil/core';
|
2
|
+
import { Business, WidgetStyle } from '../../../types';
|
3
|
+
export class MyComponent {
|
4
|
+
constructor() {
|
5
|
+
this.id = undefined;
|
6
|
+
this.customer = undefined;
|
7
|
+
this.loadFromQuery = undefined;
|
8
|
+
this.widgetStyle = WidgetStyle.standard;
|
9
|
+
this.buttonColor = undefined;
|
10
|
+
this.buttonBg = undefined;
|
11
|
+
}
|
12
|
+
render() {
|
13
|
+
return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.sparfonster }));
|
14
|
+
}
|
15
|
+
static get is() { return "hemfixarna-sparfonster"; }
|
16
|
+
static get encapsulation() { return "shadow"; }
|
17
|
+
static get properties() {
|
18
|
+
return {
|
19
|
+
"id": {
|
20
|
+
"type": "string",
|
21
|
+
"mutable": false,
|
22
|
+
"complexType": {
|
23
|
+
"original": "string",
|
24
|
+
"resolved": "string",
|
25
|
+
"references": {}
|
26
|
+
},
|
27
|
+
"required": false,
|
28
|
+
"optional": true,
|
29
|
+
"docs": {
|
30
|
+
"tags": [],
|
31
|
+
"text": ""
|
32
|
+
},
|
33
|
+
"attribute": "id",
|
34
|
+
"reflect": false
|
35
|
+
},
|
36
|
+
"customer": {
|
37
|
+
"type": "string",
|
38
|
+
"mutable": false,
|
39
|
+
"complexType": {
|
40
|
+
"original": "string",
|
41
|
+
"resolved": "string",
|
42
|
+
"references": {}
|
43
|
+
},
|
44
|
+
"required": false,
|
45
|
+
"optional": true,
|
46
|
+
"docs": {
|
47
|
+
"tags": [],
|
48
|
+
"text": ""
|
49
|
+
},
|
50
|
+
"attribute": "customer",
|
51
|
+
"reflect": false
|
52
|
+
},
|
53
|
+
"loadFromQuery": {
|
54
|
+
"type": "string",
|
55
|
+
"mutable": false,
|
56
|
+
"complexType": {
|
57
|
+
"original": "string",
|
58
|
+
"resolved": "string",
|
59
|
+
"references": {}
|
60
|
+
},
|
61
|
+
"required": false,
|
62
|
+
"optional": true,
|
63
|
+
"docs": {
|
64
|
+
"tags": [],
|
65
|
+
"text": ""
|
66
|
+
},
|
67
|
+
"attribute": "load-from-query",
|
68
|
+
"reflect": false,
|
69
|
+
"defaultValue": "undefined"
|
70
|
+
},
|
71
|
+
"widgetStyle": {
|
72
|
+
"type": "string",
|
73
|
+
"mutable": false,
|
74
|
+
"complexType": {
|
75
|
+
"original": "WidgetStyle",
|
76
|
+
"resolved": "WidgetStyle.alternative | WidgetStyle.alternative_2 | WidgetStyle.alternative_3 | WidgetStyle.standard",
|
77
|
+
"references": {
|
78
|
+
"WidgetStyle": {
|
79
|
+
"location": "import",
|
80
|
+
"path": "../../../types"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"required": false,
|
85
|
+
"optional": true,
|
86
|
+
"docs": {
|
87
|
+
"tags": [],
|
88
|
+
"text": ""
|
89
|
+
},
|
90
|
+
"attribute": "widget-style",
|
91
|
+
"reflect": false,
|
92
|
+
"defaultValue": "WidgetStyle.standard"
|
93
|
+
},
|
94
|
+
"buttonColor": {
|
95
|
+
"type": "string",
|
96
|
+
"mutable": false,
|
97
|
+
"complexType": {
|
98
|
+
"original": "string",
|
99
|
+
"resolved": "string",
|
100
|
+
"references": {}
|
101
|
+
},
|
102
|
+
"required": false,
|
103
|
+
"optional": true,
|
104
|
+
"docs": {
|
105
|
+
"tags": [],
|
106
|
+
"text": ""
|
107
|
+
},
|
108
|
+
"attribute": "button-color",
|
109
|
+
"reflect": false
|
110
|
+
},
|
111
|
+
"buttonBg": {
|
112
|
+
"type": "string",
|
113
|
+
"mutable": false,
|
114
|
+
"complexType": {
|
115
|
+
"original": "string",
|
116
|
+
"resolved": "string",
|
117
|
+
"references": {}
|
118
|
+
},
|
119
|
+
"required": false,
|
120
|
+
"optional": true,
|
121
|
+
"docs": {
|
122
|
+
"tags": [],
|
123
|
+
"text": ""
|
124
|
+
},
|
125
|
+
"attribute": "button-bg",
|
126
|
+
"reflect": false
|
127
|
+
}
|
128
|
+
};
|
129
|
+
}
|
130
|
+
}
|
131
|
+
//# sourceMappingURL=hemfixarna-sparfonster.js.map
|
package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hemfixarna-sparfonster.js","sourceRoot":"","sources":["../../../../src/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMvD,MAAM,OAAO,WAAW;;;;yBAGW,SAAS;uBACN,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,OAAO,CACL,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAC1C,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,WAAW,GACR,CACzB,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-sparfonster',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() customer?: 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 loadFromQuery={Boolean(this.loadFromQuery)}\n id={this.id}\n business={Business.sparfonster}\n ></hemfixarna-component>\n );\n }\n}\n"]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Fragment, getAssetPath, h } from '@stencil/core';
|
2
2
|
import state from '../../store';
|
3
3
|
import { WidgetStyle } from '../../types';
|
4
|
-
import { getCustomer, getOptions, getRot, getRut, getTaxonomy } from '../../utils/api';
|
4
|
+
import { getCustomer, getGreenDiscount, getOptions, getRot, getRut, getTaxonomy } from '../../utils/api';
|
5
5
|
import { getProductPriceWithRotAndRut } from '../../utils/calc';
|
6
6
|
import { scrollToTop } from '../../utils/scroll';
|
7
7
|
export class HemfixarnaComponent {
|
@@ -104,12 +104,13 @@ export class HemfixarnaComponent {
|
|
104
104
|
if (creditSafeUser) {
|
105
105
|
state.creditSafeUser = JSON.parse(creditSafeUser);
|
106
106
|
}
|
107
|
-
const [tree, res, options, rut, rot] = await Promise.all([
|
107
|
+
const [tree, res, options, rut, rot, greenDiscount] = await Promise.all([
|
108
108
|
this.topCategory ? getTaxonomy(this.topCategory) : null,
|
109
109
|
this.slug ? getTaxonomy(this.slug) : Promise.resolve(null),
|
110
110
|
getOptions(),
|
111
111
|
getRut(),
|
112
112
|
getRot(),
|
113
|
+
getGreenDiscount(),
|
113
114
|
]);
|
114
115
|
if ((!this.slug || !this.slugIsOldFormat(this.slug)) && !this.forceOldTree) {
|
115
116
|
try {
|
@@ -161,6 +162,7 @@ export class HemfixarnaComponent {
|
|
161
162
|
}
|
162
163
|
state.rotOptions = rot;
|
163
164
|
state.rutOptions = rut;
|
165
|
+
state.greenOptions = greenDiscount;
|
164
166
|
state.options = options;
|
165
167
|
}
|
166
168
|
setTaxonomy(taxonomy) {
|
@@ -223,7 +225,7 @@ export class HemfixarnaComponent {
|
|
223
225
|
const monteringLogo = getAssetPath(`./assets/montering.svg`);
|
224
226
|
const navBackground = ((_a = this.nav) === null || _a === void 0 ? void 0 : _a.background) ? getAssetPath(this.nav.background) : '';
|
225
227
|
const navLogo = ((_b = this.nav) === null || _b === void 0 ? void 0 : _b.logo) ? getAssetPath(this.nav.logo) : '';
|
226
|
-
return (h("div", { class: `hemfixarna ${this.loadFromQuery ? 'hemfixarna_standalone' : ''}` }, this.loadFromQuery && !this.isDemo && this.nav ? (h("nav", { class: "hemfixarna_nav", style: { backgroundColor: (_c = this.nav.backgroundColor) !== null && _c !== void 0 ? _c : '' } }, h("div", null, h("div", { class: "hemfixarna_nav--logos" }, h("a", { href: this.nav.url, target: "_blank" }, h("img", { class: "hemfixarna_partnerlogo", src: navLogo, alt: `${this.business} logo` })), h("a", { href: "https://hemfixarna.se/", target: "_blank" }, h("p", { class: navBackground || this.nav.backgroundColor ? 'with-bg' : '' }, "I samarbete med:"), h("img", { src: logo, alt: "hemfixarna_logo", width: 104 }))), h("div", { class: "hemfixarna_nav--links" }, h("a", { href: this.nav.url, target: "_blank" }, "Till ", this.business), h("a", { href: "https://www.hemfixarna.se/", target: "_blank" }, "Till Hemfixarna")), navBackground ? h("img", { src: navBackground, class: "nav_background", alt: "nav_background" }) : null))) : null, !this.loadFromQuery || this.isDemo ? (h("div", { class: `hemfixarna_box hemfixarna_box--${this.widgetStyle}` }, [WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) ? (h("img", { src: this.id === 'maleri' ? pensel : monteringLogo, alt: "montering logo", width: 32, height: 32 })) : null, h("div", null, h("div", null, h("p", { onClick: () => this.openModal(), class: `pointer ${[WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) && state.selectedProduct ? 'underline' : ''}` }, this.id === 'maleri' ? (h("span", null, "Ber\u00E4kna fast pris p\u00E5 m\u00E5leri & tapetsering h\u00E4r")) : (h(Fragment, null, ((_d = this.product) === null || _d === void 0 ? void 0 : _d.
|
228
|
+
return (h("div", { class: `hemfixarna ${this.loadFromQuery ? 'hemfixarna_standalone' : ''}` }, this.loadFromQuery && !this.isDemo && this.nav ? (h("nav", { class: "hemfixarna_nav", style: { backgroundColor: (_c = this.nav.backgroundColor) !== null && _c !== void 0 ? _c : '' } }, h("div", null, h("div", { class: "hemfixarna_nav--logos" }, h("a", { href: this.nav.url, target: "_blank" }, h("img", { class: "hemfixarna_partnerlogo", src: navLogo, alt: `${this.business} logo` })), h("a", { href: "https://hemfixarna.se/", target: "_blank" }, h("p", { class: navBackground || this.nav.backgroundColor ? 'with-bg' : '' }, "I samarbete med:"), h("img", { src: logo, alt: "hemfixarna_logo", width: 104 }))), h("div", { class: "hemfixarna_nav--links" }, h("a", { href: this.nav.url, target: "_blank" }, "Till ", this.business), h("a", { href: "https://www.hemfixarna.se/", target: "_blank" }, "Till Hemfixarna")), navBackground ? h("img", { src: navBackground, class: "nav_background", alt: "nav_background" }) : null))) : null, !this.loadFromQuery || this.isDemo ? (h("div", { class: `hemfixarna_box hemfixarna_box--${this.widgetStyle}` }, [WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) ? (h("img", { src: this.id === 'maleri' ? pensel : monteringLogo, alt: "montering logo", width: 32, height: 32 })) : null, h("div", null, h("div", null, h("p", { onClick: () => this.openModal(), class: `pointer ${[WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) && state.selectedProduct ? 'underline' : ''}` }, this.id === 'maleri' ? (h("span", null, "Ber\u00E4kna fast pris p\u00E5 m\u00E5leri & tapetsering h\u00E4r")) : (h(Fragment, null, ((_d = this.product) === null || _d === void 0 ? void 0 : _d.title) || ((_e = this.proppedProduct) === null || _e === void 0 ? void 0 : _e.title) || (h("span", null, "Montering", h("wbr", null), "/Installation ", (_g = (_f = state.selectedCustomerCategory) === null || _f === void 0 ? void 0 : _f.name) !== null && _g !== void 0 ? _g : 'på plats', " - ", h("strong", { class: "underline" }, "se priser h\u00E4r"))), (this.product && ((_h = this.slug) === null || _h === void 0 ? void 0 : _h.includes('product'))) || (this.proppedProduct && !((_j = this.product) === null || _j === void 0 ? void 0 : _j.invoice) && !((_k = this.proppedProduct) === null || _k === void 0 ? void 0 : _k.invoice)) ? (h("span", null, ' från', " ", h("strong", null, getProductPriceWithRotAndRut(this.proppedProduct || this.product), "kr"))) : null, ((_l = this.product) === null || _l === void 0 ? void 0 : _l.invoice) || ((_m = this.proppedProduct) === null || _m === void 0 ? void 0 : _m.invoice) ? (h("span", null, ' - ', h("strong", { class: "underling" }, "se priser h\u00E4r"))) : null)))), this.widgetStyle === WidgetStyle.standard ? h("img", { src: logo, width: 104 }) : null, this.widgetStyle === WidgetStyle.alternative ? (h("span", { class: "p-s" }, "Utf\u00F6rs av ", h("strong", null, "Hemfixarna"))) : null), [WidgetStyle.standard, WidgetStyle.alternative].includes(this.widgetStyle) ? (h("button", { onClick: () => this.openModal(), class: "hemfixarna_btn", style: {
|
227
229
|
color: ((_o = this.buttonColor) === null || _o === void 0 ? void 0 : _o.startsWith('#')) || !((_p = this.buttonColor) === null || _p === void 0 ? void 0 : _p.length) ? this.buttonColor : `#${this.buttonColor}`,
|
228
230
|
backgroundColor: ((_q = this.buttonBg) === null || _q === void 0 ? void 0 : _q.startsWith('#')) || !((_r = this.buttonBg) === null || _r === void 0 ? void 0 : _r.length) ? this.buttonBg : `#${this.buttonBg}`,
|
229
231
|
} }, "Best\u00E4ll h\u00E4r", this.getCartLength() > 0 && h("span", null, this.getCartLength()))) : null, WidgetStyle.alternative_2 === this.widgetStyle ? (h("div", { class: "hemfixarna_altbtn" }, h("strong", { class: "p-s" }, "Utf\u00F6rs av"), h("img", { src: logo, alt: "hemfixarna logo", width: 98 }))) : null)) : null, this.modal && (h("div", null, h("div", { class: `hemfixarna_modal ${this.showModal ? 'hemfixarna_modal--open' : ''}` }, state.modal && (h("div", { class: "hemfixarna_infomodal" }, state.modal.title && h("h2", null, state.modal.title), state.modal.text.map((t) => (h("p", { innerHTML: t }))), h("div", null, h("button", { onClick: () => (state.modal = null) }, "St\u00E4ng")))), (this.tree || state.customer) && (h("hemfixarna-breadcrumbs", { isDemo: this.isDemo, loadFromQuery: this.loadFromQuery, closeModal: () => this.closeModal(), tree: this.tree })), !state.customer || this.slugIsOldFormat(this.slug) ? (h("div", { class: `hemfixarna_content hemfixarna_content--${state.step}` }, state.step === 1 && this.tree && h("hemfixarna-start", { tree: this.tree }), state.step === 2 && state.selectedCategory && h("hemfixarna-category", null), state.step === 3 && state.selectedService && h("hemfixarna-service", null), state.step === 4 && state.selectedProduct && h("hemfixarna-product", null), state.step === 5 && h("hemfixarna-cart", { tree: this.tree }), state.step === 6 && h("hemfixarna-order", { tree: this.tree }))) : (h("div", { class: `hemfixarna_content hemfixarna_content--${state.step} ${state.step === 4 && state.maleri ? 'hemfixarna_content--painting' : ''}` }, state.step < 4 && h("hemfixarna-start", null), state.step === 4 && h("hemfixarna-product", null), state.step === 5 && h("hemfixarna-cart", { tree: this.tree }), state.step === 6 && h("hemfixarna-order", { tree: this.tree })))), !this.isDemo ? h("div", { class: `hemfixarna_backdrop ${this.showModal ? 'hemfixarna_backdrop--open' : ''}` }) : null))));
|
@@ -282,7 +284,7 @@ export class HemfixarnaComponent {
|
|
282
284
|
"mutable": false,
|
283
285
|
"complexType": {
|
284
286
|
"original": "Business",
|
285
|
-
"resolved": "Business.byggmax | Business.doro | Business.elfa | Business.fargvaruhuset | Business.forebygg | Business.hornbach | Business.kbygg | Business.kund | Business.norrgavel | Business.skanska | Business.string | Business.tesla | Business.zaptec",
|
287
|
+
"resolved": "Business.byggmax | Business.doro | Business.elfa | Business.fargvaruhuset | Business.flyttsmart | Business.forebygg | Business.hornbach | Business.kbygg | Business.klint | Business.kund | Business.lg | Business.norrgavel | Business.skanska | Business.sparfonster | Business.string | Business.tesla | Business.zaptec",
|
286
288
|
"references": {
|
287
289
|
"Business": {
|
288
290
|
"location": "import",
|