hemfixarna-web-components 1.4.2 → 1.4.4

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 (42) hide show
  1. package/dist/cjs/{hemfixarna-address_27.cjs.entry.js → hemfixarna-address_30.cjs.entry.js} +122 -66
  2. package/dist/{esm/hemfixarna-address_27.entry.js.map → cjs/hemfixarna-address_30.cjs.entry.js.map} +1 -1
  3. package/dist/cjs/hemfixarna-components.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/assets/tesla.svg +1 -0
  6. package/dist/collection/assets/zaptec.svg +1 -0
  7. package/dist/collection/collection-manifest.json +3 -0
  8. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js +3 -3
  9. package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js.map +1 -1
  10. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +113 -0
  11. package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +1 -0
  12. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js +132 -0
  13. package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js.map +1 -0
  14. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js +132 -0
  15. package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js.map +1 -0
  16. package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +1 -1
  17. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js +9 -4
  18. package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +1 -1
  19. package/dist/collection/types/index.js +3 -0
  20. package/dist/collection/types/index.js.map +1 -1
  21. package/dist/collection/utils/types.js +5 -1
  22. package/dist/collection/utils/types.js.map +1 -1
  23. package/dist/esm/{hemfixarna-address_27.entry.js → hemfixarna-address_30.entry.js} +108 -55
  24. package/dist/{cjs/hemfixarna-address_27.cjs.entry.js.map → esm/hemfixarna-address_30.entry.js.map} +1 -1
  25. package/dist/esm/hemfixarna-components.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/hemfixarna-components/assets/tesla.svg +1 -0
  28. package/dist/hemfixarna-components/assets/zaptec.svg +1 -0
  29. package/dist/hemfixarna-components/hemfixarna-components.esm.js +1 -1
  30. package/dist/hemfixarna-components/p-b3077e3e.entry.js +2 -0
  31. package/dist/types/components/customers/hemfixarna-klint/hemfixarna-klint.d.ts +9 -0
  32. package/dist/types/components/customers/hemfixarna-tesla/hemfixarna-tesla.d.ts +10 -0
  33. package/dist/types/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.d.ts +10 -0
  34. package/dist/types/components/hemfixarna-demo/hemfixarna-demo.d.ts +2 -1
  35. package/dist/types/components.d.ts +73 -0
  36. package/dist/types/types/index.d.ts +4 -1
  37. package/dist/types/utils/types.d.ts +3 -2
  38. package/package.json +1 -1
  39. package/dist/collection/assets/fargvaruhuset.png +0 -0
  40. package/dist/hemfixarna-components/assets/fargvaruhuset.png +0 -0
  41. package/dist/hemfixarna-components/p-693d466c.entry.js +0 -2
  42. /package/dist/hemfixarna-components/{p-693d466c.entry.js.map → p-b3077e3e.entry.js.map} +0 -0
@@ -426,9 +426,41 @@ const getTotalPrice = () => {
426
426
  return state.cart.reduce((acc, curr) => acc + getItemPrice(curr), 0) + getStartFee().rot + getStartFee().rut;
427
427
  };
428
428
 
429
+ var Business;
430
+ (function (Business) {
431
+ Business["kund"] = "kund";
432
+ Business["byggmax"] = "byggmax";
433
+ Business["skanska"] = "skanska";
434
+ Business["string"] = "string-furniture";
435
+ Business["hornbach"] = "hornbach";
436
+ Business["forebygg"] = "forebygg";
437
+ Business["doro"] = "doro";
438
+ Business["elfa"] = "elfa";
439
+ Business["kbygg"] = "k-bygg";
440
+ Business["norrgavel"] = "norrgavel";
441
+ Business["fargvaruhuset"] = "fargvaruhuset";
442
+ Business["zaptec"] = "zaptec";
443
+ Business["tesla"] = "tesla";
444
+ Business["klint"] = "klint";
445
+ })(Business || (Business = {}));
446
+ var WidgetStyle;
447
+ (function (WidgetStyle) {
448
+ WidgetStyle["standard"] = "standard";
449
+ WidgetStyle["alternative"] = "alternative";
450
+ WidgetStyle["alternative_2"] = "alternative_2";
451
+ WidgetStyle["alternative_3"] = "alternative_3";
452
+ })(WidgetStyle || (WidgetStyle = {}));
453
+ var TopCategory;
454
+ (function (TopCategory) {
455
+ TopCategory["byggmax"] = "category/bygg";
456
+ })(TopCategory || (TopCategory = {}));
457
+
429
458
  const isProduct = (category) => {
430
459
  return category.post_name !== undefined;
431
460
  };
461
+ const isBusiness = (partner) => {
462
+ return Object.values(Business).includes(partner);
463
+ };
432
464
 
433
465
  const HemfixarnaBox = class {
434
466
  constructor(hostRef) {
@@ -520,35 +552,9 @@ const HemfixarnaBreadcrumbs = class {
520
552
  get el() { return index.getElement(this); }
521
553
  };
522
554
 
523
- var Business;
524
- (function (Business) {
525
- Business["kund"] = "kund";
526
- Business["byggmax"] = "byggmax";
527
- Business["skanska"] = "skanska";
528
- Business["string"] = "string-furniture";
529
- Business["hornbach"] = "hornbach";
530
- Business["forebygg"] = "forebygg";
531
- Business["doro"] = "doro";
532
- Business["elfa"] = "elfa";
533
- Business["kbygg"] = "k-bygg";
534
- Business["norrgavel"] = "norrgavel";
535
- Business["fargvaruhuset"] = "fargvaruhuset";
536
- })(Business || (Business = {}));
537
- var WidgetStyle;
538
- (function (WidgetStyle) {
539
- WidgetStyle["standard"] = "standard";
540
- WidgetStyle["alternative"] = "alternative";
541
- WidgetStyle["alternative_2"] = "alternative_2";
542
- WidgetStyle["alternative_3"] = "alternative_3";
543
- })(WidgetStyle || (WidgetStyle = {}));
544
- var TopCategory;
545
- (function (TopCategory) {
546
- TopCategory["byggmax"] = "category/bygg";
547
- })(TopCategory || (TopCategory = {}));
548
-
549
555
  const hemfixarnaByggmaxCss = "";
550
556
 
551
- const MyComponent$b = class {
557
+ const MyComponent$e = class {
552
558
  constructor(hostRef) {
553
559
  index.registerInstance(this, hostRef);
554
560
  this.tree = null;
@@ -565,7 +571,7 @@ const MyComponent$b = class {
565
571
  return (index.h("hemfixarna-component", { forceOldTree: this.forceOldTree, id: this.id, slug: this.slug, business: Business.byggmax, topCategory: TopCategory.byggmax, loadFromQuery: Boolean(this.loadFromQuery), widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor }));
566
572
  }
567
573
  };
568
- MyComponent$b.style = hemfixarnaByggmaxCss;
574
+ MyComponent$e.style = hemfixarnaByggmaxCss;
569
575
 
570
576
  const HemfixarnaCart = class {
571
577
  constructor(hostRef) {
@@ -1055,7 +1061,7 @@ HemfixarnaComponent.style = hemfixarnaCss;
1055
1061
 
1056
1062
  const hemfixarnaDemoCss = "@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap\"); :host{font-family:\"Inter\", sans-serif}:host .hemfixarna_widgetstyles label{cursor:pointer}:host .hemfixarna_widgetstyles>div{display:flex;gap:1rem}:host .hemfixarna_widgetstyles h5{margin:1rem 0}:host .hemfixarna_example{margin-bottom:16px;background:#000;padding:16px;color:#fff;display:flex;justify-content:space-between;cursor:pointer;max-width:500px;box-sizing:border-box;position:relative}:host .hemfixarna_example--tooltip{background:#000;top:-48px;font-size:16px;left:40%;color:white;padding:8px;position:absolute;opacity:0}:host .hemfixarna_example--tooltip::after{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}:host .hemfixarna_example:hover .hemfixarna_example--tooltip{opacity:1}:host .hemfixarna_example p{font-size:14px}:host .hemfixarna_example img{filter:invert(1)}:host .hemfixarna_install{display:grid;gap:8px;margin-top:16px}:host .hemfixarna_product--label{background:#e1e0f5}:host .hemfixarna_categories{max-height:100%;overflow:auto;position:relative}:host .hemfixarna_categories--label{display:flex;align-items:center;justify-content:space-between;padding:8px}:host .hemfixarna_categories--label button{background:#3f3a92;border:none;font-weight:600;padding:3.2px 9.6px;border-radius:10px;margin-right:8px;color:#ece8e8}:host .hemfixarna_categories--label button:active{transform:scale(0.95)}:host .hemfixarna_categories--label--big{font-weight:600;border-bottom:1px solid black}:host p{margin:0}:host span{color:darkolivegreen;font-size:10px}:host button{cursor:pointer}:host>div{display:grid;gap:32px;width:100%;grid-template-columns:1fr 1fr;height:100vh;place-items:center;overflow:hidden;padding:16px 32px;box-sizing:border-box}:host>div>*{width:100%}:host>div>div{max-width:500px}:host>div ul{margin:0;padding:0;list-style:none}:host>div ul ul{gap:1px;display:grid}:host>div ul li{padding-left:16px;background:#fff}";
1057
1063
 
1058
- const MyComponent$a = class {
1064
+ const MyComponent$d = class {
1059
1065
  constructor(hostRef) {
1060
1066
  index.registerInstance(this, hostRef);
1061
1067
  this.debounce = null;
@@ -1068,6 +1074,7 @@ const MyComponent$a = class {
1068
1074
  this.widgetStyle = WidgetStyle.standard;
1069
1075
  this.buttonBg = '';
1070
1076
  this.buttonColor = '';
1077
+ this.partner = undefined;
1071
1078
  this.colorAccessibility = undefined;
1072
1079
  }
1073
1080
  debouncedFunction() {
@@ -1092,7 +1099,6 @@ const MyComponent$a = class {
1092
1099
  })
1093
1100
  .then(response => response.json())
1094
1101
  .then(json => {
1095
- console.log(json);
1096
1102
  if (json && (json)) {
1097
1103
  this.colorAccessibility = json;
1098
1104
  }
@@ -1100,7 +1106,7 @@ const MyComponent$a = class {
1100
1106
  // Your color accessibility logic here
1101
1107
  }
1102
1108
  getTopLevelCategory() {
1103
- switch ("fargvaruhuset") {
1109
+ switch ("kund") {
1104
1110
  case Business.byggmax:
1105
1111
  return TopCategory.byggmax;
1106
1112
  default:
@@ -1122,6 +1128,7 @@ const MyComponent$a = class {
1122
1128
  }
1123
1129
  }
1124
1130
  async componentWillLoad() {
1131
+ var _a;
1125
1132
  if (process.env.FORCE_OLD_TREE) {
1126
1133
  const tree = await getTaxonomy(this.getTopLevelCategory());
1127
1134
  if ((tree === null || tree === void 0 ? void 0 : tree.code) === 'not_found') ;
@@ -1130,14 +1137,16 @@ const MyComponent$a = class {
1130
1137
  }
1131
1138
  }
1132
1139
  else {
1133
- const customer = await getCustomer("fargvaruhuset");
1140
+ const partner = window.location.pathname.replace('/', '');
1141
+ this.partner = isBusiness(partner) ? partner : (_a = "kund") !== null && _a !== void 0 ? _a : Business.kund;
1142
+ const customer = await getCustomer(this.partner);
1134
1143
  if (customer.code !== 'not_found' && customer) {
1135
1144
  this.customer = customer;
1136
1145
  }
1137
1146
  }
1138
1147
  }
1139
1148
  getExample() {
1140
- return `<hemfixarna-${"fargvaruhuset".replace('-', '')}${this.selectedSlug ? ` slug="${this.selectedSlug}" ` : ''}${this.selectedID ? ` id="${this.selectedID}" ` : ''} ${this.widgetStyle === WidgetStyle.standard ? '' : `widget-style="${this.widgetStyle}"`} ${this.buttonColor.length ? `button-color="${this.buttonColor}"` : ''} ${this.buttonBg.length ? `button-bg="${this.buttonBg}"` : ''}></hemfixarna-${"fargvaruhuset".replace('-', '')}>`;
1149
+ return `<hemfixarna-${this.partner}${this.selectedSlug ? ` slug="${this.selectedSlug}" ` : ''}${this.selectedID ? ` id="${this.selectedID}" ` : ''} ${this.widgetStyle === WidgetStyle.standard ? '' : `widget-style="${this.widgetStyle}"`} ${this.buttonColor.length ? `button-color="${this.buttonColor}"` : ''} ${this.buttonBg.length ? `button-bg="${this.buttonBg}"` : ''}></hemfixarna-${this.partner}>`;
1141
1150
  }
1142
1151
  copyExample() {
1143
1152
  navigator.clipboard.writeText(this.getExample());
@@ -1167,7 +1176,7 @@ const MyComponent$a = class {
1167
1176
  }
1168
1177
  render() {
1169
1178
  const copy = index.getAssetPath(`./assets/copy.png`);
1170
- return (index.h("div", null, index.h("div", null, index.h("div", { onClick: () => this.copyExample(), class: "hemfixarna_example" }, index.h("p", null, this.getExample()), index.h("img", { src: copy, height: 20 }), index.h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText)), "fargvaruhuset" === Business.byggmax && (index.h("hemfixarna-byggmax", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, forceOldTree: Boolean(process.env.FORCE_OLD_TREE), slug: this.selectedSlug, id: this.selectedID })), "fargvaruhuset" === Business.skanska && (index.h("hemfixarna-skanska", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.string && (index.h("hemfixarna-string-furniture", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.hornbach && (index.h("hemfixarna-hornbach", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.forebygg && (index.h("hemfixarna-forebygg", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.doro && (index.h("hemfixarna-doro", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.elfa && (index.h("hemfixarna-elfa", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.kbygg && (index.h("hemfixarna-kbygg", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.fargvaruhuset && (index.h("hemfixarna-fargvaruhuset", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.norrgavel && (index.h("hemfixarna-norrgavel", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), "fargvaruhuset" === Business.kund && (index.h("hemfixarna-kund", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), index.h("div", { class: "hemfixarna_install" }, index.h("div", { onClick: () => this.copyCdn(), class: "hemfixarna_example" }, index.h("p", null, this.cdnLink), index.h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText), index.h("img", { src: copy, height: 20 }))), index.h("div", { class: "hemfixarna_widgetstyles" }, index.h("h5", null, "Widget styles"), index.h("div", null, Object.values(WidgetStyle).map(style => (index.h("label", { key: style }, index.h("input", { type: "radio", value: style, checked: this.widgetStyle === style, onChange: () => (this.widgetStyle = style) }), style)))), index.h("div", null, index.h("div", null, index.h("h5", null, "Button background color"), index.h("input", { type: "text", value: this.buttonBg, onInput: e => (this.buttonBg = e.target.value) })), index.h("div", null, index.h("h5", null, "Button text color"), index.h("input", { type: "text", value: this.buttonColor, onInput: e => (this.buttonColor = e.target.value) })))), index.h("span", null, "Write an hexa code no # needed"), this.colorAccessibility ? (index.h("div", null, index.h("h5", null, "Tillg\u00E4nglighetsrapport"), index.h("div", null, index.h("strong", null, "Liten text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.small) } }, this.colorAccessibility.small), index.h("br", null), index.h("strong", null, "Fet text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.bold) } }, this.colorAccessibility.bold), index.h("br", null), index.h("strong", null, "Stor text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.large) } }, this.colorAccessibility.large), index.h("br", null), index.h("strong", null, "Kontrastf\u00F6rh\u00E5llande:"), " ", this.colorAccessibility.contrast))) : null), index.h("ul", { class: "hemfixarna_categories" }, this.customer ? (index.h("div", null, this.showMaleri() ? (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, index.h("div", null, index.h("p", null, "M\u00E5leriverktyget"), index.h("span", null, "maleri")), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText('maleri') }, "Kopiera slug"), index.h("button", { onClick: () => (this.selectedID = 'maleri') }, "Ladda m\u00E5leri"))))) : null, this.customer.categories.map(c => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, index.h("div", null, index.h("p", null, c.name), index.h("span", null, `c-${c.id}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`c-${c.id}`) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = `c-${c.id}`) }, "Ladda kategori"))), c.show_products && c.products ? (index.h("ul", null, c.products.map(p => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, index.h("div", null, index.h("p", null, p.fields.post_title), index.h("span", null, p.fields.ID)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt")))))))) : (index.h("ul", null, c.sub_categories &&
1179
+ return (index.h("div", null, index.h("div", null, index.h("div", { onClick: () => this.copyExample(), class: "hemfixarna_example" }, index.h("p", null, this.getExample()), index.h("img", { src: copy, height: 20 }), index.h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText)), this.partner === Business.byggmax && (index.h("hemfixarna-byggmax", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, forceOldTree: Boolean(process.env.FORCE_OLD_TREE), slug: this.selectedSlug, id: this.selectedID })), this.partner === Business.skanska && index.h("hemfixarna-skanska", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID }), this.partner === Business.string && (index.h("hemfixarna-string-furniture", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.hornbach && (index.h("hemfixarna-hornbach", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.zaptec && (index.h("hemfixarna-zaptec", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.tesla && (index.h("hemfixarna-tesla", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.forebygg && (index.h("hemfixarna-forebygg", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.doro && index.h("hemfixarna-doro", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID }), this.partner === Business.elfa && index.h("hemfixarna-elfa", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID }), this.partner === Business.kbygg && (index.h("hemfixarna-kbygg", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.fargvaruhuset && (index.h("hemfixarna-fargvaruhuset", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.norrgavel && (index.h("hemfixarna-norrgavel", { isDemo: true, buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID })), this.partner === Business.klint && index.h("hemfixarna-klint", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID }), this.partner === Business.kund && index.h("hemfixarna-kund", { buttonColor: this.buttonColor, buttonBg: this.buttonBg, widgetStyle: this.widgetStyle, id: this.selectedID }), index.h("div", { class: "hemfixarna_install" }, index.h("div", { onClick: () => this.copyCdn(), class: "hemfixarna_example" }, index.h("p", null, this.cdnLink), index.h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText), index.h("img", { src: copy, height: 20 }))), index.h("div", { class: "hemfixarna_widgetstyles" }, index.h("h5", null, "Widget styles"), index.h("div", null, Object.values(WidgetStyle).map(style => (index.h("label", { key: style }, index.h("input", { type: "radio", value: style, checked: this.widgetStyle === style, onChange: () => (this.widgetStyle = style) }), style)))), index.h("div", null, index.h("div", null, index.h("h5", null, "Button background color"), index.h("input", { type: "text", value: this.buttonBg, onInput: e => (this.buttonBg = e.target.value) })), index.h("div", null, index.h("h5", null, "Button text color"), index.h("input", { type: "text", value: this.buttonColor, onInput: e => (this.buttonColor = e.target.value) })))), index.h("span", null, "Write an hexa code no # needed"), this.colorAccessibility ? (index.h("div", null, index.h("h5", null, "Tillg\u00E4nglighetsrapport"), index.h("div", null, index.h("strong", null, "Liten text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.small) } }, this.colorAccessibility.small), index.h("br", null), index.h("strong", null, "Fet text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.bold) } }, this.colorAccessibility.bold), index.h("br", null), index.h("strong", null, "Stor text:"), index.h("span", { style: { color: this.getColor(this.colorAccessibility.large) } }, this.colorAccessibility.large), index.h("br", null), index.h("strong", null, "Kontrastf\u00F6rh\u00E5llande:"), " ", this.colorAccessibility.contrast))) : null), index.h("ul", { class: "hemfixarna_categories" }, this.customer ? (index.h("div", null, this.showMaleri() ? (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, index.h("div", null, index.h("p", null, "M\u00E5leriverktyget"), index.h("span", null, "maleri")), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText('maleri') }, "Kopiera slug"), index.h("button", { onClick: () => (this.selectedID = 'maleri') }, "Ladda m\u00E5leri"))))) : null, this.customer.categories.map(c => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, index.h("div", null, index.h("p", null, c.name), index.h("span", null, `c-${c.id}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`c-${c.id}`) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = `c-${c.id}`) }, "Ladda kategori"))), c.show_products && c.products ? (index.h("ul", null, c.products.map(p => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, index.h("div", null, index.h("p", null, p.fields.post_title), index.h("span", null, p.fields.ID)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt")))))))) : (index.h("ul", null, c.sub_categories &&
1171
1180
  c.sub_categories.map(sc => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label" }, index.h("div", null, index.h("p", null, sc.name), index.h("span", null, `c-${sc.id}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`c-${sc.id}`) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = `c-${sc.id}`) }, "Ladda kategori"))), index.h("ul", null, sc.products.map(p => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, index.h("div", null, index.h("p", null, p.fields.post_title), index.h("span", null, p.fields.ID)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), index.h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt"))))))))))))))))) : this.tree ? (index.h("div", null, this.tree.sub_cats.map(c => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, index.h("div", null, index.h("p", null, c.name), index.h("span", null, `category/${c.slug}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`category/${c.slug}`) }, "Kopiera slug"), index.h("button", { onClick: () => (this.selectedSlug = `category/${c.slug}`) }, "Ladda kategori"))), index.h("ul", null, c.services.map(sc => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label" }, index.h("div", null, index.h("p", null, sc.post_title), index.h("span", null, `service/${sc.post_name}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`service/${sc.post_name}`) }, "Kopiera slug"), index.h("button", { onClick: () => (this.selectedSlug = `service/${sc.post_name}`) }, "Ladda kategori"))), index.h("ul", null, sc.products.map(sc => (index.h("li", null, index.h("div", { class: "hemfixarna_categories--label" }, index.h("div", null, index.h("p", null, sc.post_title), index.h("span", null, `product/${sc.post_name}`)), index.h("div", null, index.h("button", { onClick: () => navigator.clipboard.writeText(`product/${sc.post_name}`) }, "Kopiera slug"), index.h("button", { onClick: () => (this.selectedSlug = `product/${sc.post_name}`) }, "Ladda produkt")))))))))))))))) : null)));
1172
1181
  }
1173
1182
  static get watchers() { return {
@@ -1175,11 +1184,11 @@ const MyComponent$a = class {
1175
1184
  "buttonColor": ["debouncedFunction"]
1176
1185
  }; }
1177
1186
  };
1178
- MyComponent$a.style = hemfixarnaDemoCss;
1187
+ MyComponent$d.style = hemfixarnaDemoCss;
1179
1188
 
1180
1189
  const hemfixarnaDoroCss = "";
1181
1190
 
1182
- const MyComponent$9 = class {
1191
+ const MyComponent$c = class {
1183
1192
  constructor(hostRef) {
1184
1193
  index.registerInstance(this, hostRef);
1185
1194
  this.id = undefined;
@@ -1192,11 +1201,11 @@ const MyComponent$9 = class {
1192
1201
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.doro }));
1193
1202
  }
1194
1203
  };
1195
- MyComponent$9.style = hemfixarnaDoroCss;
1204
+ MyComponent$c.style = hemfixarnaDoroCss;
1196
1205
 
1197
1206
  const hemfixarnaElfaCss = "";
1198
1207
 
1199
- const MyComponent$8 = class {
1208
+ const MyComponent$b = class {
1200
1209
  constructor(hostRef) {
1201
1210
  index.registerInstance(this, hostRef);
1202
1211
  this.id = undefined;
@@ -1210,26 +1219,26 @@ const MyComponent$8 = class {
1210
1219
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://elfa.com', logo: 'assets/elfa.png' }, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.elfa, isDemo: this.isDemo }));
1211
1220
  }
1212
1221
  };
1213
- MyComponent$8.style = hemfixarnaElfaCss;
1222
+ MyComponent$b.style = hemfixarnaElfaCss;
1214
1223
 
1215
- const MyComponent$7 = class {
1224
+ const MyComponent$a = class {
1216
1225
  constructor(hostRef) {
1217
1226
  index.registerInstance(this, hostRef);
1218
1227
  this.id = undefined;
1219
- this.loadFromQuery = 'true';
1228
+ this.loadFromQuery = undefined;
1220
1229
  this.widgetStyle = WidgetStyle.standard;
1221
1230
  this.buttonColor = undefined;
1222
1231
  this.buttonBg = undefined;
1223
1232
  this.isDemo = false;
1224
1233
  }
1225
1234
  render() {
1226
- return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://www.fargvaruhuset.se', logo: 'assets/fargvaruhuset.png' }, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.fargvaruhuset, isDemo: this.isDemo }));
1235
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.fargvaruhuset, isDemo: this.isDemo }));
1227
1236
  }
1228
1237
  };
1229
1238
 
1230
1239
  const hemfixarnaForebyggCss = "";
1231
1240
 
1232
- const MyComponent$6 = class {
1241
+ const MyComponent$9 = class {
1233
1242
  constructor(hostRef) {
1234
1243
  index.registerInstance(this, hostRef);
1235
1244
  this.id = undefined;
@@ -1242,7 +1251,7 @@ const MyComponent$6 = class {
1242
1251
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.forebygg }));
1243
1252
  }
1244
1253
  };
1245
- MyComponent$6.style = hemfixarnaForebyggCss;
1254
+ MyComponent$9.style = hemfixarnaForebyggCss;
1246
1255
 
1247
1256
  // src/errors.ts
1248
1257
  var PersonnummerError = class extends Error {
@@ -1971,7 +1980,7 @@ const HemfixarnaGetuser = class {
1971
1980
 
1972
1981
  const hemfixarnaHornbachCss = "";
1973
1982
 
1974
- const MyComponent$5 = class {
1983
+ const MyComponent$8 = class {
1975
1984
  constructor(hostRef) {
1976
1985
  index.registerInstance(this, hostRef);
1977
1986
  this.id = undefined;
@@ -1985,7 +1994,7 @@ const MyComponent$5 = class {
1985
1994
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://www.hornbach.se/', logo: 'assets/hornbach/logo.svg', background: './assets/hornbach/nav.jpg' }, isDemo: this.isDemo, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.hornbach }));
1986
1995
  }
1987
1996
  };
1988
- MyComponent$5.style = hemfixarnaHornbachCss;
1997
+ MyComponent$8.style = hemfixarnaHornbachCss;
1989
1998
 
1990
1999
  const HemfixarnaInfo = class {
1991
2000
  constructor(hostRef) {
@@ -2153,7 +2162,7 @@ const HemfixarnaInvoice = class {
2153
2162
  };
2154
2163
  HemfixarnaInvoice.style = hemfixarnaInvoiceCss;
2155
2164
 
2156
- const MyComponent$4 = class {
2165
+ const MyComponent$7 = class {
2157
2166
  constructor(hostRef) {
2158
2167
  index.registerInstance(this, hostRef);
2159
2168
  this.id = undefined;
@@ -2168,7 +2177,21 @@ const MyComponent$4 = class {
2168
2177
  }
2169
2178
  };
2170
2179
 
2171
- const MyComponent$3 = class {
2180
+ const MyComponent$6 = class {
2181
+ constructor(hostRef) {
2182
+ index.registerInstance(this, hostRef);
2183
+ this.id = undefined;
2184
+ this.loadFromQuery = undefined;
2185
+ this.widgetStyle = WidgetStyle.standard;
2186
+ this.buttonColor = undefined;
2187
+ this.buttonBg = undefined;
2188
+ }
2189
+ render() {
2190
+ return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.klint }));
2191
+ }
2192
+ };
2193
+
2194
+ const MyComponent$5 = class {
2172
2195
  constructor(hostRef) {
2173
2196
  index.registerInstance(this, hostRef);
2174
2197
  this.id = undefined;
@@ -2182,7 +2205,7 @@ const MyComponent$3 = class {
2182
2205
  }
2183
2206
  };
2184
2207
 
2185
- const MyComponent$2 = class {
2208
+ const MyComponent$4 = class {
2186
2209
  constructor(hostRef) {
2187
2210
  index.registerInstance(this, hostRef);
2188
2211
  this.id = undefined;
@@ -2435,7 +2458,7 @@ const HemfixarnaService = class {
2435
2458
 
2436
2459
  const hemfixarnaSkanskaCss = "";
2437
2460
 
2438
- const MyComponent$1 = class {
2461
+ const MyComponent$3 = class {
2439
2462
  constructor(hostRef) {
2440
2463
  index.registerInstance(this, hostRef);
2441
2464
  this.id = undefined;
@@ -2449,7 +2472,7 @@ const MyComponent$1 = class {
2449
2472
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.skanska }));
2450
2473
  }
2451
2474
  };
2452
- MyComponent$1.style = hemfixarnaSkanskaCss;
2475
+ MyComponent$3.style = hemfixarnaSkanskaCss;
2453
2476
 
2454
2477
  const HemfixarnaGrid = class {
2455
2478
  constructor(hostRef) {
@@ -2484,7 +2507,7 @@ const HemfixarnaGrid = class {
2484
2507
 
2485
2508
  const hemfixarnaStringCss = "";
2486
2509
 
2487
- const MyComponent = class {
2510
+ const MyComponent$2 = class {
2488
2511
  constructor(hostRef) {
2489
2512
  index.registerInstance(this, hostRef);
2490
2513
  this.id = undefined;
@@ -2497,34 +2520,67 @@ const MyComponent = class {
2497
2520
  return (index.h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.string }));
2498
2521
  }
2499
2522
  };
2500
- MyComponent.style = hemfixarnaStringCss;
2523
+ MyComponent$2.style = hemfixarnaStringCss;
2524
+
2525
+ const MyComponent$1 = class {
2526
+ constructor(hostRef) {
2527
+ index.registerInstance(this, hostRef);
2528
+ this.id = undefined;
2529
+ this.loadFromQuery = 'true';
2530
+ this.isDemo = false;
2531
+ this.widgetStyle = WidgetStyle.standard;
2532
+ this.buttonColor = undefined;
2533
+ this.buttonBg = undefined;
2534
+ }
2535
+ render() {
2536
+ return (index.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 }));
2537
+ }
2538
+ };
2539
+
2540
+ const MyComponent = class {
2541
+ constructor(hostRef) {
2542
+ index.registerInstance(this, hostRef);
2543
+ this.id = undefined;
2544
+ this.loadFromQuery = 'true';
2545
+ this.isDemo = false;
2546
+ this.widgetStyle = WidgetStyle.standard;
2547
+ this.buttonColor = undefined;
2548
+ this.buttonBg = undefined;
2549
+ }
2550
+ render() {
2551
+ return (index.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 }));
2552
+ }
2553
+ };
2501
2554
 
2502
2555
  exports.hemfixarna_address = HemfixarnaAddress;
2503
2556
  exports.hemfixarna_box = HemfixarnaBox;
2504
2557
  exports.hemfixarna_breadcrumbs = HemfixarnaBreadcrumbs;
2505
- exports.hemfixarna_byggmax = MyComponent$b;
2558
+ exports.hemfixarna_byggmax = MyComponent$e;
2506
2559
  exports.hemfixarna_cart = HemfixarnaCart;
2507
2560
  exports.hemfixarna_category = HemfixarnaCategory;
2508
2561
  exports.hemfixarna_checkout = HemfixarnaCheckout;
2509
2562
  exports.hemfixarna_component = HemfixarnaComponent;
2510
- exports.hemfixarna_demo = MyComponent$a;
2511
- exports.hemfixarna_doro = MyComponent$9;
2512
- exports.hemfixarna_elfa = MyComponent$8;
2513
- exports.hemfixarna_fargvaruhuset = MyComponent$7;
2514
- exports.hemfixarna_forebygg = MyComponent$6;
2563
+ exports.hemfixarna_demo = MyComponent$d;
2564
+ exports.hemfixarna_doro = MyComponent$c;
2565
+ exports.hemfixarna_elfa = MyComponent$b;
2566
+ exports.hemfixarna_fargvaruhuset = MyComponent$a;
2567
+ exports.hemfixarna_forebygg = MyComponent$9;
2515
2568
  exports.hemfixarna_getuser = HemfixarnaGetuser;
2516
- exports.hemfixarna_hornbach = MyComponent$5;
2569
+ exports.hemfixarna_hornbach = MyComponent$8;
2517
2570
  exports.hemfixarna_info = HemfixarnaInfo;
2518
2571
  exports.hemfixarna_invoice = HemfixarnaInvoice;
2519
- exports.hemfixarna_kbygg = MyComponent$4;
2520
- exports.hemfixarna_kund = MyComponent$3;
2521
- exports.hemfixarna_norrgavel = MyComponent$2;
2572
+ exports.hemfixarna_kbygg = MyComponent$7;
2573
+ exports.hemfixarna_klint = MyComponent$6;
2574
+ exports.hemfixarna_kund = MyComponent$5;
2575
+ exports.hemfixarna_norrgavel = MyComponent$4;
2522
2576
  exports.hemfixarna_order = HemfixarnaOrder;
2523
2577
  exports.hemfixarna_orderrows = HemfixarnaOrderrows;
2524
2578
  exports.hemfixarna_product = HemfixarnaProduct;
2525
2579
  exports.hemfixarna_service = HemfixarnaService;
2526
- exports.hemfixarna_skanska = MyComponent$1;
2580
+ exports.hemfixarna_skanska = MyComponent$3;
2527
2581
  exports.hemfixarna_start = HemfixarnaGrid;
2528
- exports.hemfixarna_string_furniture = MyComponent;
2582
+ exports.hemfixarna_string_furniture = MyComponent$2;
2583
+ exports.hemfixarna_tesla = MyComponent$1;
2584
+ exports.hemfixarna_zaptec = MyComponent;
2529
2585
 
2530
- //# sourceMappingURL=hemfixarna-address_27.cjs.entry.js.map
2586
+ //# sourceMappingURL=hemfixarna-address_30.cjs.entry.js.map
@@ -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.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
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-klint.hemfixarna-kund.hemfixarna-norrgavel.hemfixarna-order.hemfixarna-orderrows.hemfixarna-product.hemfixarna-service.hemfixarna-skanska.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-address_27.cjs",[[1,"hemfixarna-demo",{"selectedSlug":[32],"selectedID":[32],"tooltipText":[32],"tree":[32],"customer":[32],"widgetStyle":[32],"buttonBg":[32],"buttonColor":[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-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-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-string-furniture",{"id":[1],"loadFromQuery":[1,"load-from-query"],"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);
23
+ return index.bootstrapLazy([["hemfixarna-address_30.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-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-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;
@@ -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-address_27.cjs",[[1,"hemfixarna-demo",{"selectedSlug":[32],"selectedID":[32],"tooltipText":[32],"tree":[32],"customer":[32],"widgetStyle":[32],"buttonBg":[32],"buttonColor":[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-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-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-string-furniture",{"id":[1],"loadFromQuery":[1,"load-from-query"],"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);
17
+ return index.bootstrapLazy([["hemfixarna-address_30.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-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-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
 
@@ -0,0 +1 @@
1
+ <svg class="tds-icon tds-icon-logo-wordmark tds-site-logo-icon" viewBox="0 0 342 35" xmlns="http://www.w3.org/2000/svg"><path d="M0 .1a9.7 9.7 0 0 0 7 7h11l.5.1v27.6h6.8V7.3L26 7h11a9.8 9.8 0 0 0 7-7H0zm238.6 0h-6.8v34.8H263a9.7 9.7 0 0 0 6-6.8h-30.3V0zm-52.3 6.8c3.6-1 6.6-3.8 7.4-6.9l-38.1.1v20.6h31.1v7.2h-24.4a13.6 13.6 0 0 0-8.7 7h39.9v-21h-31.2v-7h24zm116.2 28h6.7v-14h24.6v14h6.7v-21h-38zM85.3 7h26a9.6 9.6 0 0 0 7.1-7H78.3a9.6 9.6 0 0 0 7 7zm0 13.8h26a9.6 9.6 0 0 0 7.1-7H78.3a9.6 9.6 0 0 0 7 7zm0 14.1h26a9.6 9.6 0 0 0 7.1-7H78.3a9.6 9.6 0 0 0 7 7zM308.5 7h26a9.6 9.6 0 0 0 7-7h-40a9.6 9.6 0 0 0 7 7z" fill="currentColor"></path></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 94 29" fill="000" xmlns="http://www.w3.org/2000/svg" class="logo r-w-[5.875] fill-asphalt transition-colors duration-300"><path d="M46.665 19.68v1.578H36.43v-1.39L44.328 9.32h-7.805V7.742h10.072v1.39L38.696 19.68h7.969ZM52.904 21.094a4.078 4.078 0 0 1-1.752.33 3.448 3.448 0 0 1-2.314-.777c-.607-.495-.934-1.248-.911-2.049-.023-.777.28-1.53.865-2.025.584-.518 1.519-.918 2.827-1.177l2.384-.518v-.424a1.726 1.726 0 0 0-.491-1.318c-.327-.306-.794-.448-1.449-.448a2.39 2.39 0 0 0-1.472.424 2.206 2.206 0 0 0-.794 1.271l-1.59-.423a3.546 3.546 0 0 1 1.426-2.002 4.056 4.056 0 0 1 2.477-.753c1.145 0 2.01.282 2.617.824.608.565.912 1.342.912 2.354v4.804a.686.686 0 0 0 .28.636c.234.117.514.14.771.07v1.366c-.771.094-1.355.047-1.776-.141-.42-.165-.7-.542-.794-.99-.28.424-.701.754-1.215.966Zm.351-1.648c.49-.353.771-.918.771-1.53V16.22l-1.916.424c-.935.188-1.59.424-1.963.73-.35.282-.56.73-.56 1.177-.024.424.14.848.466 1.13.374.283.818.448 1.286.424.7-.023 1.379-.235 1.916-.66ZM65.078 21.048a3.725 3.725 0 0 1-1.799.4 3.871 3.871 0 0 1-1.776-.424c-.514-.283-.958-.683-1.239-1.2v4.826h-1.682V11.394h1.682v1.436a3.383 3.383 0 0 1 1.262-1.177 3.539 3.539 0 0 1 1.776-.424c.631 0 1.239.141 1.823.4.561.283 1.028.683 1.402 1.178.35.494.608 1.036.771 1.6a7.222 7.222 0 0 1 0 3.862 4.887 4.887 0 0 1-.794 1.601c-.42.518-.888.919-1.426 1.178Zm-4.112-7.464c-.514.588-.772 1.389-.772 2.401v.707c0 1.012.258 1.813.772 2.401a2.682 2.682 0 0 0 3.809.165c.093-.094.187-.188.257-.282.514-.66.77-1.53.77-2.638 0-1.106-.256-1.977-.77-2.637a2.692 2.692 0 0 0-3.81-.353c-.07.07-.163.165-.256.236ZM70.525 20.764c-.397-.4-.608-1.013-.608-1.86v-6.052h-1.519v-1.46h1.52V8.52h1.658v2.872h2.22v1.46h-2.22v5.792c-.023.33.07.683.28.942.188.189.562.283 1.076.283.187 0 .374 0 .56-.024.164-.023.328-.047.491-.094v1.46a7.235 7.235 0 0 1-.7.118 8.452 8.452 0 0 1-.772.047c-.911-.024-1.565-.212-1.986-.613ZM77.98 21.069a3.952 3.952 0 0 1-1.495-1.13 4.679 4.679 0 0 1-.888-1.601 6.39 6.39 0 0 1-.304-2.002c0-.659.093-1.318.304-1.954.187-.589.49-1.154.888-1.625a4.127 4.127 0 0 1 1.472-1.153 4.572 4.572 0 0 1 1.846-.4c1.285 0 2.29.447 3.038 1.318.748.871 1.122 2.048 1.122 3.508v.565h-7.081c.047 1.036.35 1.86.888 2.473a2.69 2.69 0 0 0 2.103.918c.584.023 1.145-.165 1.636-.495.444-.33.771-.824.888-1.389l1.495.542a3.866 3.866 0 0 1-1.518 2.072 4.52 4.52 0 0 1-2.5.753 4.707 4.707 0 0 1-1.894-.4Zm-.023-7.7a3.376 3.376 0 0 0-.958 1.931h5.281a2.93 2.93 0 0 0-.701-1.93 2.253 2.253 0 0 0-1.8-.707c-.677 0-1.331.236-1.822.707ZM87.864 13.674c-.538.66-.795 1.554-.795 2.661s.257 1.978.795 2.637a2.593 2.593 0 0 0 2.126.99 2.274 2.274 0 0 0 1.566-.542c.444-.4.748-.942.865-1.555l1.495.707a3.852 3.852 0 0 1-1.425 2.096c-.725.518-1.613.8-2.5.777a4.88 4.88 0 0 1-1.917-.377 3.955 3.955 0 0 1-1.496-1.13 5.282 5.282 0 0 1-.911-1.625 6.507 6.507 0 0 1 0-4.003c.187-.588.49-1.154.911-1.625a3.954 3.954 0 0 1 1.496-1.13 4.493 4.493 0 0 1 1.916-.376 4.055 4.055 0 0 1 2.477.753c.678.518 1.192 1.224 1.402 2.072l-1.448.73a2.949 2.949 0 0 0-.865-1.554 2.274 2.274 0 0 0-1.566-.542c-.818.024-1.612.377-2.126 1.036ZM8.32 20.34l7.128-9.7h-4.09l-.934-1.413h7.734l-5.795 8.194 10.656-1.79c.023 0 .07.024.07.047 0 .024 0 .047-.023.071L8.32 20.34Z"></path><path d="M14.301 28.91C6.426 28.91 0 22.459 0 14.5 0 6.542 6.403.09 14.301.09c7.876 0 14.302 6.452 14.302 14.41 0 7.959-6.403 14.41-14.302 14.41Zm0-27.266c-7.057 0-12.782 5.769-12.782 12.88 0 7.11 5.725 12.88 12.782 12.88 7.058 0 12.783-5.77 12.783-12.88 0-7.111-5.725-12.88-12.783-12.88Z"></path></svg>
@@ -7,10 +7,13 @@
7
7
  "./components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js",
8
8
  "./components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js",
9
9
  "./components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js",
10
+ "./components/customers/hemfixarna-klint/hemfixarna-klint.js",
10
11
  "./components/customers/hemfixarna-kund/hemfixarna-kund.js",
11
12
  "./components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js",
12
13
  "./components/customers/hemfixarna-skanska/hemfixarna-skanska.js",
13
14
  "./components/customers/hemfixarna-string/hemfixarna-string-furniture.js",
15
+ "./components/customers/hemfixarna-tesla/hemfixarna-tesla.js",
16
+ "./components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js",
14
17
  "./components/hemfixarna-address/hemfixarna-address.js",
15
18
  "./components/hemfixarna-box/hemfixarna-box.js",
16
19
  "./components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js",
@@ -3,14 +3,14 @@ import { Business, WidgetStyle } from '../../../types';
3
3
  export class MyComponent {
4
4
  constructor() {
5
5
  this.id = undefined;
6
- this.loadFromQuery = 'true';
6
+ this.loadFromQuery = undefined;
7
7
  this.widgetStyle = WidgetStyle.standard;
8
8
  this.buttonColor = undefined;
9
9
  this.buttonBg = undefined;
10
10
  this.isDemo = false;
11
11
  }
12
12
  render() {
13
- return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, nav: { url: 'https://www.fargvaruhuset.se', logo: 'assets/fargvaruhuset.png' }, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.fargvaruhuset, isDemo: this.isDemo }));
13
+ return (h("hemfixarna-component", { widgetStyle: this.widgetStyle, buttonBg: this.buttonBg, buttonColor: this.buttonColor, loadFromQuery: Boolean(this.loadFromQuery), id: this.id, business: Business.fargvaruhuset, isDemo: this.isDemo }));
14
14
  }
15
15
  static get is() { return "hemfixarna-fargvaruhuset"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@ export class MyComponent {
49
49
  },
50
50
  "attribute": "load-from-query",
51
51
  "reflect": false,
52
- "defaultValue": "'true'"
52
+ "defaultValue": "undefined"
53
53
  },
54
54
  "widgetStyle": {
55
55
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"hemfixarna-fargvaruhuset.js","sourceRoot":"","sources":["../../../../src/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.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,MAAM;uBACH,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,GAAG,EAAE,EAAE,GAAG,EAAE,8BAA8B,EAAE,IAAI,EAAE,0BAA0B,EAAE,EAC9E,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAC1C,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,CAAC,aAAa,EAChC,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-fargvaruhuset',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() loadFromQuery?: string = 'true';\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 nav={{ url: 'https://www.fargvaruhuset.se', logo: 'assets/fargvaruhuset.png' }}\n loadFromQuery={Boolean(this.loadFromQuery)}\n id={this.id}\n business={Business.fargvaruhuset}\n isDemo={this.isDemo}\n ></hemfixarna-component>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"hemfixarna-fargvaruhuset.js","sourceRoot":"","sources":["../../../../src/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.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,aAAa,EAChC,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-fargvaruhuset',\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.fargvaruhuset}\n isDemo={this.isDemo}\n ></hemfixarna-component>\n );\n }\n}\n"]}