veleta-templates 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -3
  2. package/dist/cjs/index-rvPH40G4.js +0 -3
  3. package/dist/cjs/index.cjs.js +0 -3
  4. package/dist/cjs/loader.cjs.js +1 -4
  5. package/dist/cjs/veleta-boston-template.cjs.entry.js +15 -5
  6. package/dist/cjs/veleta-templates.cjs.js +1 -4
  7. package/dist/cjs/webfontloader-CDgRDOZ3.js +0 -3
  8. package/dist/collection/components/boston-template/boston-template.js +43 -7
  9. package/dist/collection/components.js +0 -1
  10. package/dist/collection/index.js +0 -1
  11. package/dist/collection/types/index.js +0 -1
  12. package/dist/collection/types/interfaces.js +0 -1
  13. package/dist/collection/utils/data-helpers.js +0 -1
  14. package/dist/collection/utils/font-loader.js +0 -1
  15. package/dist/collection/utils/prop-parser.js +0 -1
  16. package/dist/components/index.js +0 -3
  17. package/dist/components/p-DjUJwx0S.js +0 -3
  18. package/dist/components/veleta-boston-template.js +17 -8
  19. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  20. package/dist/esm/index-zOTWMTLj.js +0 -3
  21. package/dist/esm/index.js +0 -3
  22. package/dist/esm/loader.js +1 -4
  23. package/dist/esm/veleta-boston-template.entry.js +15 -5
  24. package/dist/esm/veleta-templates.js +1 -4
  25. package/dist/esm/webfontloader-DjUJwx0S.js +0 -3
  26. package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -2
  27. package/dist/esm-es5/index-zOTWMTLj.js +1 -2
  28. package/dist/esm-es5/index.js +0 -2
  29. package/dist/esm-es5/loader.js +1 -2
  30. package/dist/esm-es5/veleta-boston-template.entry.js +1 -2
  31. package/dist/esm-es5/veleta-templates.js +1 -2
  32. package/dist/esm-es5/webfontloader-DjUJwx0S.js +1 -2
  33. package/dist/types/components/boston-template/boston-template.d.ts +10 -0
  34. package/dist/types/components.d.ts +14 -0
  35. package/dist/veleta-templates/index.esm.js +0 -2
  36. package/dist/veleta-templates/{p-620b67d2.system.entry.js → p-2a61ffe8.system.entry.js} +1 -2
  37. package/dist/veleta-templates/p-64db36d4.entry.js +1 -0
  38. package/dist/veleta-templates/p-6tMTQRgb.system.js +1 -2
  39. package/dist/veleta-templates/p-BbPAtVJG.system.js +1 -2
  40. package/dist/veleta-templates/p-D1BkLoGd.system.js +1 -2
  41. package/dist/veleta-templates/p-D3ESHVSd.system.js +1 -2
  42. package/dist/veleta-templates/p-DQuL1Twl.js +1 -2
  43. package/dist/veleta-templates/p-DjUJwx0S.js +1 -2
  44. package/dist/veleta-templates/p-YWpyar7R.system.js +1 -2
  45. package/dist/veleta-templates/p-zOTWMTLj.js +2 -3
  46. package/dist/veleta-templates/veleta-templates.esm.js +1 -2
  47. package/package.json +1 -1
  48. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  49. package/dist/cjs/index-rvPH40G4.js.map +0 -1
  50. package/dist/cjs/index.cjs.js.map +0 -1
  51. package/dist/cjs/loader.cjs.js.map +0 -1
  52. package/dist/cjs/veleta-templates.cjs.js.map +0 -1
  53. package/dist/cjs/webfontloader-CDgRDOZ3.js.map +0 -1
  54. package/dist/collection/components/boston-template/boston-template.js.map +0 -1
  55. package/dist/collection/components.js.map +0 -1
  56. package/dist/collection/index.js.map +0 -1
  57. package/dist/collection/types/index.js.map +0 -1
  58. package/dist/collection/types/interfaces.js.map +0 -1
  59. package/dist/collection/utils/data-helpers.js.map +0 -1
  60. package/dist/collection/utils/font-loader.js.map +0 -1
  61. package/dist/collection/utils/prop-parser.js.map +0 -1
  62. package/dist/components/index.js.map +0 -1
  63. package/dist/components/p-DjUJwx0S.js.map +0 -1
  64. package/dist/components/veleta-boston-template.js.map +0 -1
  65. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  66. package/dist/esm/index-zOTWMTLj.js.map +0 -1
  67. package/dist/esm/index.js.map +0 -1
  68. package/dist/esm/loader.js.map +0 -1
  69. package/dist/esm/veleta-boston-template.entry.js.map +0 -1
  70. package/dist/esm/veleta-templates.js.map +0 -1
  71. package/dist/esm/webfontloader-DjUJwx0S.js.map +0 -1
  72. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +0 -1
  73. package/dist/esm-es5/index-zOTWMTLj.js.map +0 -1
  74. package/dist/esm-es5/index.js.map +0 -1
  75. package/dist/esm-es5/loader.js.map +0 -1
  76. package/dist/esm-es5/veleta-boston-template.entry.js.map +0 -1
  77. package/dist/esm-es5/veleta-templates.js.map +0 -1
  78. package/dist/esm-es5/webfontloader-DjUJwx0S.js.map +0 -1
  79. package/dist/veleta-templates/index.esm.js.map +0 -1
  80. package/dist/veleta-templates/loader.esm.js.map +0 -1
  81. package/dist/veleta-templates/p-05409397.entry.js +0 -2
  82. package/dist/veleta-templates/p-05409397.entry.js.map +0 -1
  83. package/dist/veleta-templates/p-620b67d2.system.entry.js.map +0 -1
  84. package/dist/veleta-templates/p-6tMTQRgb.system.js.map +0 -1
  85. package/dist/veleta-templates/p-BbPAtVJG.system.js.map +0 -1
  86. package/dist/veleta-templates/p-D1BkLoGd.system.js.map +0 -1
  87. package/dist/veleta-templates/p-D3ESHVSd.system.js.map +0 -1
  88. package/dist/veleta-templates/p-DQuL1Twl.js.map +0 -1
  89. package/dist/veleta-templates/p-DjUJwx0S.js.map +0 -1
  90. package/dist/veleta-templates/p-YWpyar7R.system.js.map +0 -1
  91. package/dist/veleta-templates/p-zOTWMTLj.js.map +0 -1
  92. package/dist/veleta-templates/veleta-templates.esm.js.map +0 -1
@@ -3,6 +3,3 @@
3
3
  const globalScripts = () => {};
4
4
 
5
5
  exports.globalScripts = globalScripts;
6
- //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
7
-
8
- //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
@@ -1357,6 +1357,3 @@ exports.h = h;
1357
1357
  exports.promiseResolve = promiseResolve;
1358
1358
  exports.registerInstance = registerInstance;
1359
1359
  exports.setNonce = setNonce;
1360
- //# sourceMappingURL=index-rvPH40G4.js.map
1361
-
1362
- //# sourceMappingURL=index-rvPH40G4.js.map
@@ -1,5 +1,2 @@
1
1
  'use strict';
2
2
 
3
- //# sourceMappingURL=index.cjs.js.map
4
-
5
- //# sourceMappingURL=index.cjs.js.map
@@ -6,11 +6,8 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["veleta-boston-template.cjs",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"]}]]]], options);
9
+ return index.bootstrapLazy([["veleta-boston-template.cjs",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"],"data":[16]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
13
13
  exports.defineCustomElements = defineCustomElements;
14
- //# sourceMappingURL=loader.cjs.js.map
15
-
16
- //# sourceMappingURL=loader.cjs.js.map
@@ -70,6 +70,10 @@ const bostonTemplateCss = () => `.menu-wrapper{min-height:100vh;width:100%;paddi
70
70
  const BostonTemplate = class {
71
71
  constructor(hostRef) {
72
72
  index.registerInstance(this, hostRef);
73
+ /**
74
+ * Menu data as JSON string (for compatibility with HTML attributes)
75
+ * @deprecated Use `data` prop instead for better type safety
76
+ */
73
77
  this.dataJson = '{}';
74
78
  this.fontConfig = {
75
79
  google: {
@@ -115,11 +119,18 @@ const BostonTemplate = class {
115
119
  render() {
116
120
  var _a;
117
121
  let menuData = null;
118
- try {
119
- menuData = JSON.parse(this.dataJson);
122
+ // Priority 1: Use object data if provided
123
+ if (this.data) {
124
+ menuData = this.data;
120
125
  }
121
- catch (e) {
122
- console.warn('Invalid dataJson provided to veleta-boston-template');
126
+ // Priority 2: Parse JSON string
127
+ else if (this.dataJson && this.dataJson !== '{}') {
128
+ try {
129
+ menuData = JSON.parse(this.dataJson);
130
+ }
131
+ catch (e) {
132
+ console.warn('Invalid dataJson provided to veleta-boston-template:', e);
133
+ }
123
134
  }
124
135
  const theme = (_a = menuData === null || menuData === void 0 ? void 0 : menuData.templateData) === null || _a === void 0 ? void 0 : _a.theme;
125
136
  const primary = (theme === null || theme === void 0 ? void 0 : theme.primaryColor) || '#1a365d';
@@ -144,4 +155,3 @@ const BostonTemplate = class {
144
155
  BostonTemplate.style = bostonTemplateCss();
145
156
 
146
157
  exports.veleta_boston_template = BostonTemplate;
147
- //# sourceMappingURL=veleta-boston-template.entry.cjs.js.map
@@ -19,10 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["veleta-boston-template.cjs",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"]}]]]], options);
22
+ return index.bootstrapLazy([["veleta-boston-template.cjs",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"],"data":[16]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
26
- //# sourceMappingURL=veleta-templates.cjs.js.map
27
-
28
- //# sourceMappingURL=veleta-templates.cjs.js.map
@@ -59,6 +59,3 @@ var webfontloader$1 = /*#__PURE__*/_mergeNamespaces({
59
59
  }, [webfontloaderExports]);
60
60
 
61
61
  exports.webfontloader = webfontloader$1;
62
- //# sourceMappingURL=webfontloader-CDgRDOZ3.js.map
63
-
64
- //# sourceMappingURL=webfontloader-CDgRDOZ3.js.map
@@ -3,6 +3,10 @@ import { loadFonts, applyFontFamily } from "../../utils/font-loader";
3
3
  import { formatPrice } from "../../utils/data-helpers";
4
4
  export class BostonTemplate {
5
5
  constructor() {
6
+ /**
7
+ * Menu data as JSON string (for compatibility with HTML attributes)
8
+ * @deprecated Use `data` prop instead for better type safety
9
+ */
6
10
  this.dataJson = '{}';
7
11
  this.fontConfig = {
8
12
  google: {
@@ -48,11 +52,18 @@ export class BostonTemplate {
48
52
  render() {
49
53
  var _a;
50
54
  let menuData = null;
51
- try {
52
- menuData = JSON.parse(this.dataJson);
55
+ // Priority 1: Use object data if provided
56
+ if (this.data) {
57
+ menuData = this.data;
53
58
  }
54
- catch (e) {
55
- console.warn('Invalid dataJson provided to veleta-boston-template');
59
+ // Priority 2: Parse JSON string
60
+ else if (this.dataJson && this.dataJson !== '{}') {
61
+ try {
62
+ menuData = JSON.parse(this.dataJson);
63
+ }
64
+ catch (e) {
65
+ console.warn('Invalid dataJson provided to veleta-boston-template:', e);
66
+ }
56
67
  }
57
68
  const theme = (_a = menuData === null || menuData === void 0 ? void 0 : menuData.templateData) === null || _a === void 0 ? void 0 : _a.theme;
58
69
  const primary = (theme === null || theme === void 0 ? void 0 : theme.primaryColor) || '#1a365d';
@@ -96,17 +107,42 @@ export class BostonTemplate {
96
107
  "required": false,
97
108
  "optional": false,
98
109
  "docs": {
99
- "tags": [],
100
- "text": ""
110
+ "tags": [{
111
+ "name": "deprecated",
112
+ "text": "Use `data` prop instead for better type safety"
113
+ }],
114
+ "text": "Menu data as JSON string (for compatibility with HTML attributes)"
101
115
  },
102
116
  "getter": false,
103
117
  "setter": false,
104
118
  "reflect": false,
105
119
  "attribute": "data-json",
106
120
  "defaultValue": "'{}'"
121
+ },
122
+ "data": {
123
+ "type": "unknown",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "Menu",
127
+ "resolved": "Menu",
128
+ "references": {
129
+ "Menu": {
130
+ "location": "import",
131
+ "path": "../../types/interfaces",
132
+ "id": "src/types/interfaces.ts::Menu"
133
+ }
134
+ }
135
+ },
136
+ "required": false,
137
+ "optional": true,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Menu data as object (recommended for frameworks like Angular, React, Vue)\nThis takes precedence over dataJson if both are provided"
141
+ },
142
+ "getter": false,
143
+ "setter": false
107
144
  }
108
145
  };
109
146
  }
110
147
  static get elementRef() { return "el"; }
111
148
  }
112
- //# sourceMappingURL=boston-template.js.map
@@ -1,2 +1 @@
1
1
  export * from './components/boston-template/boston-template';
2
- //# sourceMappingURL=components.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export * from './interfaces';
2
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -5,4 +5,3 @@
5
5
  export function formatPrice(price) {
6
6
  return (price % 1 === 0 ? price.toString() : price.toFixed(2)) + '€';
7
7
  }
8
- //# sourceMappingURL=data-helpers.js.map
@@ -52,4 +52,3 @@ export function applyFontFamily(element, fontFamily) {
52
52
  element.style.fontFamily = fontFamily;
53
53
  }
54
54
  }
55
- //# sourceMappingURL=font-loader.js.map
@@ -62,4 +62,3 @@ export function parseTheme(themeJson) {
62
62
  return null;
63
63
  }
64
64
  }
65
- //# sourceMappingURL=prop-parser.js.map
@@ -1121,6 +1121,3 @@ function transformTag(tag) {
1121
1121
  }
1122
1122
 
1123
1123
  export { H, getAssetPath, h, proxyCustomElement as p, render, setAssetPath, setNonce, setPlatformOptions, transformTag as t };
1124
- //# sourceMappingURL=index.js.map
1125
-
1126
- //# sourceMappingURL=index.js.map
@@ -57,6 +57,3 @@ var webfontloader$1 = /*#__PURE__*/_mergeNamespaces({
57
57
  }, [webfontloaderExports]);
58
58
 
59
59
  export { webfontloader$1 as w };
60
- //# sourceMappingURL=p-DjUJwx0S.js.map
61
-
62
- //# sourceMappingURL=p-DjUJwx0S.js.map
@@ -71,6 +71,10 @@ const BostonTemplate = /*@__PURE__*/ proxyCustomElement(class BostonTemplate ext
71
71
  if (registerHost !== false) {
72
72
  this.__registerHost();
73
73
  }
74
+ /**
75
+ * Menu data as JSON string (for compatibility with HTML attributes)
76
+ * @deprecated Use `data` prop instead for better type safety
77
+ */
74
78
  this.dataJson = '{}';
75
79
  this.fontConfig = {
76
80
  google: {
@@ -116,11 +120,18 @@ const BostonTemplate = /*@__PURE__*/ proxyCustomElement(class BostonTemplate ext
116
120
  render() {
117
121
  var _a;
118
122
  let menuData = null;
119
- try {
120
- menuData = JSON.parse(this.dataJson);
123
+ // Priority 1: Use object data if provided
124
+ if (this.data) {
125
+ menuData = this.data;
121
126
  }
122
- catch (e) {
123
- console.warn('Invalid dataJson provided to veleta-boston-template');
127
+ // Priority 2: Parse JSON string
128
+ else if (this.dataJson && this.dataJson !== '{}') {
129
+ try {
130
+ menuData = JSON.parse(this.dataJson);
131
+ }
132
+ catch (e) {
133
+ console.warn('Invalid dataJson provided to veleta-boston-template:', e);
134
+ }
124
135
  }
125
136
  const theme = (_a = menuData === null || menuData === void 0 ? void 0 : menuData.templateData) === null || _a === void 0 ? void 0 : _a.theme;
126
137
  const primary = (theme === null || theme === void 0 ? void 0 : theme.primaryColor) || '#1a365d';
@@ -143,7 +154,8 @@ const BostonTemplate = /*@__PURE__*/ proxyCustomElement(class BostonTemplate ext
143
154
  get el() { return this; }
144
155
  static get style() { return bostonTemplateCss(); }
145
156
  }, [256, "veleta-boston-template", {
146
- "dataJson": [1, "data-json"]
157
+ "dataJson": [1, "data-json"],
158
+ "data": [16]
147
159
  }]);
148
160
  function defineCustomElement$1() {
149
161
  if (typeof customElements === "undefined") {
@@ -164,6 +176,3 @@ const VeletaBostonTemplate = BostonTemplate;
164
176
  const defineCustomElement = defineCustomElement$1;
165
177
 
166
178
  export { VeletaBostonTemplate, defineCustomElement };
167
- //# sourceMappingURL=veleta-boston-template.js.map
168
-
169
- //# sourceMappingURL=veleta-boston-template.js.map
@@ -1,6 +1,3 @@
1
1
  const globalScripts = () => {};
2
2
 
3
3
  export { globalScripts as g };
4
- //# sourceMappingURL=app-globals-DQuL1Twl.js.map
5
-
6
- //# sourceMappingURL=app-globals-DQuL1Twl.js.map
@@ -1332,6 +1332,3 @@ function transformTag(tag) {
1332
1332
  }
1333
1333
 
1334
1334
  export { bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1335
- //# sourceMappingURL=index-zOTWMTLj.js.map
1336
-
1337
- //# sourceMappingURL=index-zOTWMTLj.js.map
package/dist/esm/index.js CHANGED
@@ -1,4 +1 @@
1
1
 
2
- //# sourceMappingURL=index.js.map
3
-
4
- //# sourceMappingURL=index.js.map
@@ -5,10 +5,7 @@ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"]}]]]], options);
8
+ return bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"],"data":[16]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
12
- //# sourceMappingURL=loader.js.map
13
-
14
- //# sourceMappingURL=loader.js.map
@@ -68,6 +68,10 @@ const bostonTemplateCss = () => `.menu-wrapper{min-height:100vh;width:100%;paddi
68
68
  const BostonTemplate = class {
69
69
  constructor(hostRef) {
70
70
  registerInstance(this, hostRef);
71
+ /**
72
+ * Menu data as JSON string (for compatibility with HTML attributes)
73
+ * @deprecated Use `data` prop instead for better type safety
74
+ */
71
75
  this.dataJson = '{}';
72
76
  this.fontConfig = {
73
77
  google: {
@@ -113,11 +117,18 @@ const BostonTemplate = class {
113
117
  render() {
114
118
  var _a;
115
119
  let menuData = null;
116
- try {
117
- menuData = JSON.parse(this.dataJson);
120
+ // Priority 1: Use object data if provided
121
+ if (this.data) {
122
+ menuData = this.data;
118
123
  }
119
- catch (e) {
120
- console.warn('Invalid dataJson provided to veleta-boston-template');
124
+ // Priority 2: Parse JSON string
125
+ else if (this.dataJson && this.dataJson !== '{}') {
126
+ try {
127
+ menuData = JSON.parse(this.dataJson);
128
+ }
129
+ catch (e) {
130
+ console.warn('Invalid dataJson provided to veleta-boston-template:', e);
131
+ }
121
132
  }
122
133
  const theme = (_a = menuData === null || menuData === void 0 ? void 0 : menuData.templateData) === null || _a === void 0 ? void 0 : _a.theme;
123
134
  const primary = (theme === null || theme === void 0 ? void 0 : theme.primaryColor) || '#1a365d';
@@ -142,4 +153,3 @@ const BostonTemplate = class {
142
153
  BostonTemplate.style = bostonTemplateCss();
143
154
 
144
155
  export { BostonTemplate as veleta_boston_template };
145
- //# sourceMappingURL=veleta-boston-template.entry.js.map
@@ -17,8 +17,5 @@ var patchBrowser = () => {
17
17
 
18
18
  patchBrowser().then(async (options) => {
19
19
  await globalScripts();
20
- return bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"]}]]]], options);
20
+ return bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{"dataJson":[1,"data-json"],"data":[16]}]]]], options);
21
21
  });
22
- //# sourceMappingURL=veleta-templates.js.map
23
-
24
- //# sourceMappingURL=veleta-templates.js.map
@@ -57,6 +57,3 @@ var webfontloader$1 = /*#__PURE__*/_mergeNamespaces({
57
57
  }, [webfontloaderExports]);
58
58
 
59
59
  export { webfontloader$1 as w };
60
- //# sourceMappingURL=webfontloader-DjUJwx0S.js.map
61
-
62
- //# sourceMappingURL=webfontloader-DjUJwx0S.js.map
@@ -1,2 +1 @@
1
- var globalScripts=function(){};export{globalScripts as g};
2
- //# sourceMappingURL=app-globals-DQuL1Twl.js.map
1
+ var globalScripts=function(){};export{globalScripts as g};
@@ -1,2 +1 @@
1
- var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="veleta-templates";var BUILD={hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var reWireGetterSetter=function(e,r){var t;var n=r.t;var i=Object.entries((t=n.i)!=null?t:{});i.map((function(t){var n=t[0],i=t[1][0];if(i&31||i&32){var a=e[n];var o=getPropertyDescriptor(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get:function(){return o.get.call(this)},set:function(e){o.set.call(this,e)},configurable:true,enumerable:true})}e[n]=r.o.has(n)?r.o.get(n):a}}))};function getPropertyDescriptor(e,r){while(e){var t=Object.getOwnPropertyDescriptor(e,r);if(t==null?void 0:t.get)return t;e=Object.getPrototypeOf(e)}return void 0}var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){if(!r)return;e.__stencil__getHostRef=function(){return r};r.u=e;if(r.t.l&512&&BUILD.prop){reWireGetterSetter(e,r)}};var registerHost=function(e,r){var t={l:0,$hostElement$:e,t:r,o:new Map,v:new Map};{t.p=new Promise((function(e){return t.m=e}));e["s-p"]=[];e["s-rc"]=[]}{t.h=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.S.replace(/-/g,"_");var i=e.C;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[n]};switch(i){case"veleta-boston-template":return import("./veleta-boston-template.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var win=typeof window!=="undefined"?window:{};var plt={l:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var supportsMutableAdoptedStyleSheets=supportsConstructableStylesheets?function(){return!!win.document&&Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets,"length").writable}():false;var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.l&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var escapeRegExpSpecialCharacters=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=win.document.createElement("style");u.innerHTML=a;var s=(n=plt.T)!=null?n:queryNonceMetaTagContent(win.document);if(s!=null){u.setAttribute("nonce",s)}if(!(r.l&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.unshift(c)}else{e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(u)}}}else{e.append(u)}}if(r.l&1){e.insertBefore(u,null)}}if(r.l&4){u.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.push(a)}else{e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}}return i};var attachStyles=function(e){var r=e.t;var t=e.$hostElement$;var n=createTime("attachStyles",r.S);addStyle(t.getRootNode(),r);n()};var getScopeId=function(e,r){return"sc-"+e.S};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}if(typeof e==="string"){e=transformTag(e)}var i=null;var a=null;var o=false;var u=false;var s=[];var l=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(o&&u){s[s.length-1].k+=i}else{s.push(o?newVNode(null,i):i)}u=o}}};l(t);if(r){if(r.key){a=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.A=r;if(s.length>0){c.R=s}{c.j=a}return c};var newVNode=function(e,r){var t={l:0,$:e,k:r,O:null,R:null};{t.A=null}{t.j=null}return t};var Host={};var isHost=function(e){return e&&e.$===Host};var createSupportsRuleRe=function(e){var r=escapeRegExpSpecialCharacters(e);return new RegExp("(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?".concat(r,"))(").concat(r,"\\b)"),"g")};createSupportsRuleRe("::slotted");createSupportsRuleRe(":host");createSupportsRuleRe(":host-context");var parsePropertyValue=function(e,r,t){if(e!=null&&!isComplexType(e)){if(r&1){return String(e)}return e}return e};var getElement=function(e){var r;return(r=getHostRef(e))==null?void 0:r.$hostElement$};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var setAccessor=function(e,r,t,n,i,a,o){if(t===n){return}r.toLowerCase();if(r==="class"){var u=e.classList;var s=parseClassList(t);var l=parseClassList(n);{u.remove.apply(u,s.filter((function(e){return e&&!l.includes(e)})));u.add.apply(u,l.filter((function(e){return e&&!s.includes(e)})))}}else if(r==="style"){{for(var f in t){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!t||n[f]!==t[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else;};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var updateElement=function(e,r,t,n){var i=r.O.nodeType===11&&r.O.host?r.O.host:r.O;var a=e&&e.A||{};var o=r.A||{};{for(var u=0,s=sortedAttrNames(Object.keys(a));u<s.length;u++){var l=s[u];if(!(l in o)){setAccessor(i,l,a[l],void 0)}}}for(var f=0,c=sortedAttrNames(Object.keys(o));f<c.length;f++){var l=c[f];setAccessor(i,l,a[l],o[l])}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var createElm=function(e,r,t){var n=r.R[t];var i=0;var a;var o;if(n.k!==null){a=n.O=win.document.createTextNode(n.k)}else{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=n.O=win.document.createElement(n.$);{updateElement(null,n)}if(n.R){for(i=0;i<n.R.length;++i){o=createElm(e,n,i);if(o){a.appendChild(o)}}}}a["s-hn"]=hostTagName;return a};var addVnodes=function(e,r,t,n,i,a){var o=e;var u;for(;i<=a;++i){if(n[i]){u=createElm(null,t,i);if(u){n[i].O=u;insertBefore(o,u,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.O;if(a){a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var u=0;var s=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var p=n[0];var d=n[v];var m;var h;while(a<=l&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--l]}else if(p==null){p=n[++o]}else if(d==null){d=n[--v]}else if(isSameVnode(f,p,i)){patch(f,p,i);f=r[++a];p=n[++o]}else if(isSameVnode(c,d,i)){patch(c,d,i);c=r[--l];d=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);insertBefore(e,f.O,c.O.nextSibling);f=r[++a];d=n[--v]}else if(isSameVnode(c,p,i)){patch(c,p,i);insertBefore(e,c.O,f.O);c=r[--l];p=n[++o]}else{u=-1;{for(s=a;s<=l;++s){if(r[s]&&r[s].j!==null&&r[s].j===p.j){u=s;break}}}if(u>=0){h=r[u];if(h.$!==p.$){m=createElm(r&&r[o],t,u)}else{patch(h,p,i);r[u]=void 0;m=h.O}p=n[++o]}else{m=createElm(r&&r[o],t,o);p=n[++o]}if(m){{insertBefore(f.O.parentNode,m,f.O)}}}}if(a>l){addVnodes(e,n[v+1]==null?null:n[v+1].O,t,n,o,v)}else if(o>v){removeVnodes(r,a,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.$===r.$){if(!t){return e.j===r.j}if(t&&!e.j&&r.j){e.j=r.j}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.O=e.O;var i=e.R;var a=r.R;var o=r.k;if(o===null){{updateElement(e,r)}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){if(e.k!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}else;}else if(e.k!==o){n.data=o}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.V||newVNode(null,null);var a=isHost(r);var o=a?r:h(null,null,r);hostTagName=n.tagName;if(t&&o.A){for(var u=0,s=Object.keys(o.A);u<s.length;u++){var l=s[u];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.A[l]=n[l]}}}o.$=null;o.l|=4;e.V=o;o.O=i.O=n;patch(i,o,t)};var attachToAncestor=function(e,r){if(r&&!e.D&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.D=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.l|=16}if(e.l&4){e.l|=512;return}attachToAncestor(e,e.H);var t=function(){return dispatchHooks(e,r)};if(r){queueMicrotask((function(){t()}));return}return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.t.S);var i=e.u;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{if(e.h.length){e.h.forEach((function(e){return e(t)}))}}a=safeCall(i,"componentWillLoad",void 0,t)}else{a=safeCall(i,"componentWillUpdate",void 0,t)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.t.S);o=i["s-rc"];if(t){attachStyles(e)}u=createTime("render",e.t.S);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}u();a();{s=(n=i["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(s.length===0){l()}else{Promise.all(s).then(l);e.l|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.l&=-17}{e.l|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.t.S;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.u;var a=e.H;safeCall(i,"componentDidRender",void 0,t);if(!(e.l&64)){e.l|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.m(t);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{if(e.D){e.D();e.D=void 0}if(e.l&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.l&=-517}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).o.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(n.S,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.o.get(r);var o=i.l;var u=i.u;t=parsePropertyValue(t,n.i[r][0]);var s=Number.isNaN(a)&&Number.isNaN(t);var l=t!==a&&!s;if((!(o&8)||a===void 0)&&l){i.o.set(r,t);if(u){if((o&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(t,a,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.i||BUILD.propChangeCallback){var o=Object.entries((n=r.i)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},u=o.get,s=o.set;if(u)r.i[n][0]|=2048;if(s)r.i[n][0]|=4096;if(t&1||!u){Object.defineProperty(a,n,{get:function(){{if((r.i[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.u:a;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(!o){return}if(s){var u=i&32?this[n]:o.$hostElement$[n];if(typeof u==="undefined"&&o.o.get(n)){e=o.o.get(n)}s.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.i[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!o.u){o.h.push((function(){if(r.i[n][0]&4096&&o.u[n]!==o.o.get(n)){o.u[n]=e}}))}return}var l=function(){var t=o.u[n];if(!o.o.get(n)&&t){o.o.set(n,t)}o.u[n]=parsePropertyValue(e,i);setValue(a,n,o.u[n],r)};if(o.u){l()}else{o.h.push((function(){l()}))}}}})}}));if(t&1){var u=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var s;var l=u.get(e);var f=getHostRef(i);if(i.hasOwnProperty(l)&&BUILD.lazyLoad){n=i[l];delete i[l]}if(a.hasOwnProperty(l)&&typeof i[l]==="number"&&i[l]==n){return}else if(l==null){var c=f==null?void 0:f.l;if(f&&c&&!(c&8)&&c&128&&n!==t){var v=f.u;var p=(s=r.M)==null?void 0:s[e];p==null?void 0:p.forEach((function(r){if(v[r]!=null){v[r].call(v,n,t,e)}}))}return}var d=o.find((function(e){var r=e[0];return r===l}));if(d&&d[1][0]&4){n=n===null||n==="false"?false:true}var m=Object.getOwnPropertyDescriptor(a,l);if(n!=i[l]&&(!m.get||!!m.set)){i[l]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.M)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&31})).map((function(e){var r=e[0],t=e[1];var n=t[1]||r;u.set(n,r);return n})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l,f,c,v,p;return __generator(this,(function(d){switch(d.label){case 0:if(!((r.l&32)===0))return[3,6];r.l|=32;i=t.C;if(!i)return[3,4];a=loadModule(t,r);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=d.sent();o();return[3,3];case 2:n=a;d.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.S,"#").concat(r.L,'" was not found'))}if(!n.isProxied){proxyComponent(n,t,2);n.isProxied=true}u=createTime("createInstance",t.S);{r.l|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.l&=-9}u();fireConnectedCallback(r.u,e);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return r.l|=128}));d.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.S);registerStyle(f,l,!!(t.l&1));c()}}d.label=6;case 6:v=r.H;p=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(p)}else{p()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.l&1)===0){var r=getHostRef(e);if(!r){return}var t=r.t;var n=createTime("connectedCallback",t.S);if(!(r.l&1)){r.l|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.H=i);break}}}if(t.i){Object.entries(t.i).map((function(r){var t=r[0],n=r[1][0];if(n&31&&t in e&&e[t]!==Object.prototype[t]){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{if(r==null?void 0:r.u){fireConnectedCallback(r.u,e)}else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback(r.u,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.l&1)===0){r=getHostRef(e);if(r==null?void 0:r.u){disconnectInstance(r.u,e)}else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance(r.u,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var u=win.document.head;var s=u.querySelector("meta[charset]");var l=win.document.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt._=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var p=false;e.map((function(e){e[1].map((function(r){var t={l:r[0],S:r[1],i:r[2],P:r[3]};if(t.l&4){p=true}{t.i=r[2]}var n=transformTag(t.S);var u=function(e){__extends(r,e);function r(r){var n=e.call(this,r)||this;n.hasRegisteredEventListeners=false;r=n;registerHost(r,t);return n}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!r){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);if(!t){return}var n=f.findIndex((function(r){return r===e}));if(n>-1){f.splice(n,1)}if(((r=t==null?void 0:t.V)==null?void 0:r.O)instanceof Node&&!t.V.O.isConnected){delete t.V.O}}))};r.prototype.componentOnReady=function(){var e;return(e=getHostRef(this))==null?void 0:e.p};return r}(HTMLElement);t.C=e[0];if(!a.includes(n)&&!o.get(n)){i.push(n);o.define(n,proxyComponent(u,t,1))}}))}));if(i.length>0){if(p){l.textContent+=SLOT_FB_CSS}{l.textContent+=i.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var d=(t=plt.T)!=null?t:queryNonceMetaTagContent(win.document);if(d!=null){l.setAttribute("nonce",d)}u.insertBefore(l,s?s.nextSibling:u.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.T=e};function transformTag(e){return e}export{bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
2
- //# sourceMappingURL=index-zOTWMTLj.js.map
1
+ var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="veleta-templates";var BUILD={hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var reWireGetterSetter=function(e,r){var t;var n=r.t;var i=Object.entries((t=n.i)!=null?t:{});i.map((function(t){var n=t[0],i=t[1][0];if(i&31||i&32){var a=e[n];var o=getPropertyDescriptor(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get:function(){return o.get.call(this)},set:function(e){o.set.call(this,e)},configurable:true,enumerable:true})}e[n]=r.o.has(n)?r.o.get(n):a}}))};function getPropertyDescriptor(e,r){while(e){var t=Object.getOwnPropertyDescriptor(e,r);if(t==null?void 0:t.get)return t;e=Object.getPrototypeOf(e)}return void 0}var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){if(!r)return;e.__stencil__getHostRef=function(){return r};r.u=e;if(r.t.l&512&&BUILD.prop){reWireGetterSetter(e,r)}};var registerHost=function(e,r){var t={l:0,$hostElement$:e,t:r,o:new Map,v:new Map};{t.p=new Promise((function(e){return t.m=e}));e["s-p"]=[];e["s-rc"]=[]}{t.h=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.S.replace(/-/g,"_");var i=e.C;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[n]};switch(i){case"veleta-boston-template":return import("./veleta-boston-template.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var win=typeof window!=="undefined"?window:{};var plt={l:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var supportsMutableAdoptedStyleSheets=supportsConstructableStylesheets?function(){return!!win.document&&Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets,"length").writable}():false;var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.l&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var escapeRegExpSpecialCharacters=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=win.document.createElement("style");u.innerHTML=a;var s=(n=plt.T)!=null?n:queryNonceMetaTagContent(win.document);if(s!=null){u.setAttribute("nonce",s)}if(!(r.l&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.unshift(c)}else{e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(u)}}}else{e.append(u)}}if(r.l&1){e.insertBefore(u,null)}}if(r.l&4){u.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.push(a)}else{e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}}return i};var attachStyles=function(e){var r=e.t;var t=e.$hostElement$;var n=createTime("attachStyles",r.S);addStyle(t.getRootNode(),r);n()};var getScopeId=function(e,r){return"sc-"+e.S};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}if(typeof e==="string"){e=transformTag(e)}var i=null;var a=null;var o=false;var u=false;var s=[];var l=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(o&&u){s[s.length-1].k+=i}else{s.push(o?newVNode(null,i):i)}u=o}}};l(t);if(r){if(r.key){a=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.A=r;if(s.length>0){c.R=s}{c.j=a}return c};var newVNode=function(e,r){var t={l:0,$:e,k:r,O:null,R:null};{t.A=null}{t.j=null}return t};var Host={};var isHost=function(e){return e&&e.$===Host};var createSupportsRuleRe=function(e){var r=escapeRegExpSpecialCharacters(e);return new RegExp("(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?".concat(r,"))(").concat(r,"\\b)"),"g")};createSupportsRuleRe("::slotted");createSupportsRuleRe(":host");createSupportsRuleRe(":host-context");var parsePropertyValue=function(e,r,t){if(e!=null&&!isComplexType(e)){if(r&1){return String(e)}return e}return e};var getElement=function(e){var r;return(r=getHostRef(e))==null?void 0:r.$hostElement$};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var setAccessor=function(e,r,t,n,i,a,o){if(t===n){return}r.toLowerCase();if(r==="class"){var u=e.classList;var s=parseClassList(t);var l=parseClassList(n);{u.remove.apply(u,s.filter((function(e){return e&&!l.includes(e)})));u.add.apply(u,l.filter((function(e){return e&&!s.includes(e)})))}}else if(r==="style"){{for(var f in t){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!t||n[f]!==t[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else;};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var updateElement=function(e,r,t,n){var i=r.O.nodeType===11&&r.O.host?r.O.host:r.O;var a=e&&e.A||{};var o=r.A||{};{for(var u=0,s=sortedAttrNames(Object.keys(a));u<s.length;u++){var l=s[u];if(!(l in o)){setAccessor(i,l,a[l],void 0)}}}for(var f=0,c=sortedAttrNames(Object.keys(o));f<c.length;f++){var l=c[f];setAccessor(i,l,a[l],o[l])}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var createElm=function(e,r,t){var n=r.R[t];var i=0;var a;var o;if(n.k!==null){a=n.O=win.document.createTextNode(n.k)}else{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=n.O=win.document.createElement(n.$);{updateElement(null,n)}if(n.R){for(i=0;i<n.R.length;++i){o=createElm(e,n,i);if(o){a.appendChild(o)}}}}a["s-hn"]=hostTagName;return a};var addVnodes=function(e,r,t,n,i,a){var o=e;var u;for(;i<=a;++i){if(n[i]){u=createElm(null,t,i);if(u){n[i].O=u;insertBefore(o,u,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.O;if(a){a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var u=0;var s=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var p=n[0];var d=n[v];var m;var h;while(a<=l&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--l]}else if(p==null){p=n[++o]}else if(d==null){d=n[--v]}else if(isSameVnode(f,p,i)){patch(f,p,i);f=r[++a];p=n[++o]}else if(isSameVnode(c,d,i)){patch(c,d,i);c=r[--l];d=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);insertBefore(e,f.O,c.O.nextSibling);f=r[++a];d=n[--v]}else if(isSameVnode(c,p,i)){patch(c,p,i);insertBefore(e,c.O,f.O);c=r[--l];p=n[++o]}else{u=-1;{for(s=a;s<=l;++s){if(r[s]&&r[s].j!==null&&r[s].j===p.j){u=s;break}}}if(u>=0){h=r[u];if(h.$!==p.$){m=createElm(r&&r[o],t,u)}else{patch(h,p,i);r[u]=void 0;m=h.O}p=n[++o]}else{m=createElm(r&&r[o],t,o);p=n[++o]}if(m){{insertBefore(f.O.parentNode,m,f.O)}}}}if(a>l){addVnodes(e,n[v+1]==null?null:n[v+1].O,t,n,o,v)}else if(o>v){removeVnodes(r,a,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.$===r.$){if(!t){return e.j===r.j}if(t&&!e.j&&r.j){e.j=r.j}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.O=e.O;var i=e.R;var a=r.R;var o=r.k;if(o===null){{updateElement(e,r)}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){if(e.k!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}else;}else if(e.k!==o){n.data=o}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.V||newVNode(null,null);var a=isHost(r);var o=a?r:h(null,null,r);hostTagName=n.tagName;if(t&&o.A){for(var u=0,s=Object.keys(o.A);u<s.length;u++){var l=s[u];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.A[l]=n[l]}}}o.$=null;o.l|=4;e.V=o;o.O=i.O=n;patch(i,o,t)};var attachToAncestor=function(e,r){if(r&&!e.D&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.D=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.l|=16}if(e.l&4){e.l|=512;return}attachToAncestor(e,e.H);var t=function(){return dispatchHooks(e,r)};if(r){queueMicrotask((function(){t()}));return}return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.t.S);var i=e.u;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{if(e.h.length){e.h.forEach((function(e){return e(t)}))}}a=safeCall(i,"componentWillLoad",void 0,t)}else{a=safeCall(i,"componentWillUpdate",void 0,t)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.t.S);o=i["s-rc"];if(t){attachStyles(e)}u=createTime("render",e.t.S);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}u();a();{s=(n=i["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(s.length===0){l()}else{Promise.all(s).then(l);e.l|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.l&=-17}{e.l|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.t.S;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.u;var a=e.H;safeCall(i,"componentDidRender",void 0,t);if(!(e.l&64)){e.l|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.m(t);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{if(e.D){e.D();e.D=void 0}if(e.l&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.l&=-517}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).o.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(n.S,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.o.get(r);var o=i.l;var u=i.u;t=parsePropertyValue(t,n.i[r][0]);var s=Number.isNaN(a)&&Number.isNaN(t);var l=t!==a&&!s;if((!(o&8)||a===void 0)&&l){i.o.set(r,t);if(u){if((o&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(t,a,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.i||BUILD.propChangeCallback){var o=Object.entries((n=r.i)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},u=o.get,s=o.set;if(u)r.i[n][0]|=2048;if(s)r.i[n][0]|=4096;if(t&1||!u){Object.defineProperty(a,n,{get:function(){{if((r.i[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.u:a;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(!o){return}if(s){var u=i&32?this[n]:o.$hostElement$[n];if(typeof u==="undefined"&&o.o.get(n)){e=o.o.get(n)}s.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.i[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!o.u){o.h.push((function(){if(r.i[n][0]&4096&&o.u[n]!==o.o.get(n)){o.u[n]=e}}))}return}var l=function(){var t=o.u[n];if(!o.o.get(n)&&t){o.o.set(n,t)}o.u[n]=parsePropertyValue(e,i);setValue(a,n,o.u[n],r)};if(o.u){l()}else{o.h.push((function(){l()}))}}}})}}));if(t&1){var u=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var s;var l=u.get(e);var f=getHostRef(i);if(i.hasOwnProperty(l)&&BUILD.lazyLoad){n=i[l];delete i[l]}if(a.hasOwnProperty(l)&&typeof i[l]==="number"&&i[l]==n){return}else if(l==null){var c=f==null?void 0:f.l;if(f&&c&&!(c&8)&&c&128&&n!==t){var v=f.u;var p=(s=r.M)==null?void 0:s[e];p==null?void 0:p.forEach((function(r){if(v[r]!=null){v[r].call(v,n,t,e)}}))}return}var d=o.find((function(e){var r=e[0];return r===l}));if(d&&d[1][0]&4){n=n===null||n==="false"?false:true}var m=Object.getOwnPropertyDescriptor(a,l);if(n!=i[l]&&(!m.get||!!m.set)){i[l]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.M)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&31})).map((function(e){var r=e[0],t=e[1];var n=t[1]||r;u.set(n,r);return n})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l,f,c,v,p;return __generator(this,(function(d){switch(d.label){case 0:if(!((r.l&32)===0))return[3,6];r.l|=32;i=t.C;if(!i)return[3,4];a=loadModule(t,r);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=d.sent();o();return[3,3];case 2:n=a;d.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.S,"#").concat(r.L,'" was not found'))}if(!n.isProxied){proxyComponent(n,t,2);n.isProxied=true}u=createTime("createInstance",t.S);{r.l|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.l&=-9}u();fireConnectedCallback(r.u,e);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return r.l|=128}));d.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.S);registerStyle(f,l,!!(t.l&1));c()}}d.label=6;case 6:v=r.H;p=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(p)}else{p()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.l&1)===0){var r=getHostRef(e);if(!r){return}var t=r.t;var n=createTime("connectedCallback",t.S);if(!(r.l&1)){r.l|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.H=i);break}}}if(t.i){Object.entries(t.i).map((function(r){var t=r[0],n=r[1][0];if(n&31&&t in e&&e[t]!==Object.prototype[t]){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{if(r==null?void 0:r.u){fireConnectedCallback(r.u,e)}else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback(r.u,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.l&1)===0){r=getHostRef(e);if(r==null?void 0:r.u){disconnectInstance(r.u,e)}else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance(r.u,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var u=win.document.head;var s=u.querySelector("meta[charset]");var l=win.document.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt._=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var p=false;e.map((function(e){e[1].map((function(r){var t={l:r[0],S:r[1],i:r[2],P:r[3]};if(t.l&4){p=true}{t.i=r[2]}var n=transformTag(t.S);var u=function(e){__extends(r,e);function r(r){var n=e.call(this,r)||this;n.hasRegisteredEventListeners=false;r=n;registerHost(r,t);return n}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!r){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);if(!t){return}var n=f.findIndex((function(r){return r===e}));if(n>-1){f.splice(n,1)}if(((r=t==null?void 0:t.V)==null?void 0:r.O)instanceof Node&&!t.V.O.isConnected){delete t.V.O}}))};r.prototype.componentOnReady=function(){var e;return(e=getHostRef(this))==null?void 0:e.p};return r}(HTMLElement);t.C=e[0];if(!a.includes(n)&&!o.get(n)){i.push(n);o.define(n,proxyComponent(u,t,1))}}))}));if(i.length>0){if(p){l.textContent+=SLOT_FB_CSS}{l.textContent+=i.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var d=(t=plt.T)!=null?t:queryNonceMetaTagContent(win.document);if(d!=null){l.setAttribute("nonce",d)}u.insertBefore(l,s?s.nextSibling:u.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.T=e};function transformTag(e){return e}export{bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(a,u)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return c([t,e])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(n=0)),n)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-zOTWMTLj.js";export{s as setNonce}from"./index-zOTWMTLj.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var defineCustomElements=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{dataJson:[1,"data-json"]}]]]],e)]}}))}))};export{defineCustomElements};
2
- //# sourceMappingURL=loader.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(a,u)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return c([t,e])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(n=0)),n)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-zOTWMTLj.js";export{s as setNonce}from"./index-zOTWMTLj.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var defineCustomElements=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{dataJson:[1,"data-json"],data:[16]}]]]],e)]}}))}))};export{defineCustomElements};
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,n){function r(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{m(n.next(e))}catch(e){a(e)}}function s(e){try{m(n["throw"](e))}catch(e){a(e)}}function m(e){e.done?t(e.value):r(e.value).then(o,s)}m((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(i){return m([e,i])}}function m(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(t=0)),t)try{if(n=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;r=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=i.call(e,t)}catch(e){s=[6,e];r=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement}from"./index-zOTWMTLj.js";function loadFonts(e){return __awaiter(this,void 0,void 0,(function(){var i,t,n;return __generator(this,(function(r){switch(r.label){case 0:if(!e||!e.google&&!e.custom){return[2,Promise.resolve()]}r.label=1;case 1:r.trys.push([1,3,,4]);return[4,import("./webfontloader-DjUJwx0S.js").then((function(e){return e.w}))];case 2:i=r.sent();t=i.default||i;if(!t||typeof t.load!=="function"){console.warn("webfontloader no está disponible o no tiene el método load");return[2,Promise.resolve()]}return[2,new Promise((function(i){var n=Object.assign(Object.assign({},e),{active:function(){if(e.active){e.active()}i()},inactive:function(){if(e.inactive){e.inactive()}i()}});t.load(n)}))];case 3:n=r.sent();console.error("Error loading webfontloader:",n);return[2,Promise.resolve()];case 4:return[2]}}))}))}function applyFontFamily(e,i){if(e){e.style.fontFamily=i}}function formatPrice(e){return(e%1===0?e.toString():e.toFixed(2))+"€"}var bostonTemplateCss=function(){return".menu-wrapper{min-height:100vh;width:100%;padding:1.5rem 1rem;font-family:'Merriweather', serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;display:block}.menu-wrapper *,.menu-wrapper *::before,.menu-wrapper *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.animate-item{opacity:0;-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity 0.8s ease-out, -webkit-transform 0.8s ease-out;transition:opacity 0.8s ease-out, -webkit-transform 0.8s ease-out;transition:opacity 0.8s ease-out, transform 0.8s ease-out;transition:opacity 0.8s ease-out, transform 0.8s ease-out, -webkit-transform 0.8s ease-out;will-change:opacity, transform}.animate-item.is-visible{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.menu-wrapper h1,.menu-wrapper h2,.menu-wrapper h3,.menu-wrapper h4,.menu-wrapper h5,.menu-wrapper h6,.menu-wrapper p,.menu-wrapper ul,.menu-wrapper ol,.menu-wrapper li,.menu-wrapper header,.menu-wrapper section,.menu-wrapper article,.menu-wrapper aside,.menu-wrapper nav,.menu-wrapper blockquote,.menu-wrapper figure,.menu-wrapper figcaption{margin:0;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0}.menu-wrapper ul,.menu-wrapper ol{padding:0}@media (min-width: 640px){.menu-wrapper{padding:2rem 1.5rem}}@media (min-width: 768px){.menu-wrapper{padding:2rem 1rem}}.menu-container{max-width:1280px;margin:0 auto}.menu-header{text-align:center}@media (min-width: 768px){.menu-header{margin-bottom:3rem}}.restaurant-title{font-size:2rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;line-height:1.1;margin:0 0 1.5rem 0 !important}@media (min-width: 640px){.restaurant-title{font-size:2.5rem;margin:0 0 3rem 0 !important}}@media (min-width: 768px){.restaurant-title{font-size:3rem}}@media (min-width: 1024px){.restaurant-title{font-size:3.5rem}}.sections-container{display:grid;grid-template-columns:1fr;gap:4rem}@media (min-width: 768px){.sections-container{grid-template-columns:repeat(2, 1fr);gap:3rem}}.menu-section{display:-ms-flexbox;display:flex;width:100%;position:relative}.section-label-wrapper{position:relative;width:3rem;-ms-flex-negative:0;flex-shrink:0;margin-right:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.section-label-line{position:absolute;right:0;top:0;bottom:0;width:1px;border-right:1px solid}.section-label{font-weight:700;font-size:1.125rem;text-transform:uppercase;letter-spacing:0.15em;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;-webkit-transform:rotate(180deg);transform:rotate(180deg);text-align:right;white-space:nowrap;margin:0 0 0.5rem 0;-webkit-margin-after:0.5rem;margin-block-end:0.5rem;position:absolute;top:0}@media (min-width: 640px){.section-label{font-size:1.2375rem}}@media (min-width: 768px){.section-label{font-size:1.35rem}}@media (min-width: 1024px){.section-label{font-size:1.51875rem}}.section-content{-ms-flex:1;flex:1;padding-top:0.25rem}.section-description{font-size:0.875rem;font-style:italic;margin:0 0 1rem 0 !important;-webkit-margin-after:1rem;margin-block-end:1rem;opacity:0.75;color:inherit}@media (min-width: 640px){.section-description{font-size:0.9625rem}}@media (min-width: 768px){.section-description{font-size:1.05rem}}@media (min-width: 1024px){.section-description{font-size:1.18125rem}}.dishes-list{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1rem}.dish-item{position:relative}.dish-header{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;width:100%;gap:0.5rem}.dish-name{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;-ms-flex-negative:1;flex-shrink:1;min-width:0;overflow-wrap:break-word}@media (min-width: 640px){.dish-name{font-size:1.1rem}}@media (min-width: 768px){.dish-name{font-size:1.2rem}}@media (min-width: 1024px){.dish-name{font-size:1.35rem}}.dish-dots{-ms-flex:1;flex:1;opacity:0.25;border-bottom:2px dotted;margin:0 0.55rem;position:relative;-webkit-transform:translateY(-5px);transform:translateY(-5px);border-color:currentColor;min-width:1rem}.dish-price{font-size:1rem;font-weight:700;-ms-flex-negative:0;flex-shrink:0;text-align:right;min-width:3ch}@media (min-width: 640px){.dish-price{font-size:1.1rem}}@media (min-width: 768px){.dish-price{font-size:1.2rem}}@media (min-width: 1024px){.dish-price{font-size:1.35rem}}.dish-description{font-size:0.8125rem;margin-top:0.25rem;line-height:1.4;opacity:0.7;color:inherit;width:100%}@media (min-width: 640px){.dish-description{font-size:0.9425rem}}"};var BostonTemplate=function(){function e(e){registerInstance(this,e);this.dataJson="{}";this.fontConfig={google:{families:["Oswald:400,600,700","Merriweather:300,400,700"]}}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,loadFonts(this.fontConfig)];case 1:e.sent();applyFontFamily(this.el,"Merriweather, serif");return[2]}}))}))};e.prototype.componentDidLoad=function(){this.initObserver()};e.prototype.componentDidUpdate=function(){this.initObserver()};e.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};e.prototype.initObserver=function(){var e=this;if(this.observer){this.observer.disconnect()}this.observer=new IntersectionObserver((function(i){i.forEach((function(i){if(i.isIntersecting){var t=i.target;t.classList.add("is-visible");e.observer.unobserve(t)}}))}),{threshold:.1,rootMargin:"0px 0px -50px 0px"});var i=this.el.querySelectorAll(".animate-item");i.forEach((function(i){return e.observer.observe(i)}))};e.prototype.render=function(){var e;var i=null;try{i=JSON.parse(this.dataJson)}catch(e){console.warn("Invalid dataJson provided to veleta-boston-template")}var t=(e=i===null||i===void 0?void 0:i.templateData)===null||e===void 0?void 0:e.theme;var n=(t===null||t===void 0?void 0:t.primaryColor)||"#1a365d";var r=(t===null||t===void 0?void 0:t.backgroundColor)||"#FFFFFF";var a="Merriweather, serif";var o="Oswald, sans-serif";if(!i){return h("div",{class:"menu-wrapper",style:{color:n,backgroundColor:r}})}var s=i.sections,m=i.business;var l=(s||[]).sort((function(e,i){return e.order-i.order}));return h("div",{class:"menu-wrapper",style:{color:n,backgroundColor:r}},h("div",{class:"menu-container"},(m===null||m===void 0?void 0:m.name)&&h("header",{class:"menu-header"},h("h1",{class:"restaurant-title animate-item",style:{fontFamily:o}},m.name)),h("div",{class:"sections-container"},l.map((function(e){var i=(e.dishes||[]).sort((function(e,i){return e.order-i.order}));if(!i.length)return null;return h("section",{key:e.id,class:"menu-section animate-item"},h("div",{class:"section-label-wrapper"},h("div",{class:"section-label-line",style:{borderColor:n}}),h("h2",{class:"section-label",style:{fontFamily:o,color:n}},e.title)),h("div",{class:"section-content"},e.description&&h("p",{class:"section-description",style:{fontFamily:a}},e.description),h("ul",{class:"dishes-list"},i.map((function(e,i){return h("li",{key:e.id,class:"dish-item animate-item",style:{transitionDelay:"".concat(i*50,"ms")}},h("div",{class:"dish-header"},h("h3",{class:"dish-name",style:{fontFamily:o,color:n}},e.name),h("div",{class:"dish-dots"}),h("span",{class:"dish-price",style:{fontFamily:o,color:n}},formatPrice(e.price))),e.description&&h("p",{class:"dish-description",style:{fontFamily:a}},e.description))})))))})))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();BostonTemplate.style=bostonTemplateCss();export{BostonTemplate as veleta_boston_template};
2
- //# sourceMappingURL=veleta-boston-template.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,n){function r(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{m(n.next(e))}catch(e){a(e)}}function s(e){try{m(n["throw"](e))}catch(e){a(e)}}function m(e){e.done?t(e.value):r(e.value).then(o,s)}m((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(i){return m([e,i])}}function m(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(t=0)),t)try{if(n=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;r=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=i.call(e,t)}catch(e){s=[6,e];r=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement}from"./index-zOTWMTLj.js";function loadFonts(e){return __awaiter(this,void 0,void 0,(function(){var i,t,n;return __generator(this,(function(r){switch(r.label){case 0:if(!e||!e.google&&!e.custom){return[2,Promise.resolve()]}r.label=1;case 1:r.trys.push([1,3,,4]);return[4,import("./webfontloader-DjUJwx0S.js").then((function(e){return e.w}))];case 2:i=r.sent();t=i.default||i;if(!t||typeof t.load!=="function"){console.warn("webfontloader no está disponible o no tiene el método load");return[2,Promise.resolve()]}return[2,new Promise((function(i){var n=Object.assign(Object.assign({},e),{active:function(){if(e.active){e.active()}i()},inactive:function(){if(e.inactive){e.inactive()}i()}});t.load(n)}))];case 3:n=r.sent();console.error("Error loading webfontloader:",n);return[2,Promise.resolve()];case 4:return[2]}}))}))}function applyFontFamily(e,i){if(e){e.style.fontFamily=i}}function formatPrice(e){return(e%1===0?e.toString():e.toFixed(2))+"€"}var bostonTemplateCss=function(){return".menu-wrapper{min-height:100vh;width:100%;padding:1.5rem 1rem;font-family:'Merriweather', serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;display:block}.menu-wrapper *,.menu-wrapper *::before,.menu-wrapper *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.animate-item{opacity:0;-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity 0.8s ease-out, -webkit-transform 0.8s ease-out;transition:opacity 0.8s ease-out, -webkit-transform 0.8s ease-out;transition:opacity 0.8s ease-out, transform 0.8s ease-out;transition:opacity 0.8s ease-out, transform 0.8s ease-out, -webkit-transform 0.8s ease-out;will-change:opacity, transform}.animate-item.is-visible{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.menu-wrapper h1,.menu-wrapper h2,.menu-wrapper h3,.menu-wrapper h4,.menu-wrapper h5,.menu-wrapper h6,.menu-wrapper p,.menu-wrapper ul,.menu-wrapper ol,.menu-wrapper li,.menu-wrapper header,.menu-wrapper section,.menu-wrapper article,.menu-wrapper aside,.menu-wrapper nav,.menu-wrapper blockquote,.menu-wrapper figure,.menu-wrapper figcaption{margin:0;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0}.menu-wrapper ul,.menu-wrapper ol{padding:0}@media (min-width: 640px){.menu-wrapper{padding:2rem 1.5rem}}@media (min-width: 768px){.menu-wrapper{padding:2rem 1rem}}.menu-container{max-width:1280px;margin:0 auto}.menu-header{text-align:center}@media (min-width: 768px){.menu-header{margin-bottom:3rem}}.restaurant-title{font-size:2rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;line-height:1.1;margin:0 0 1.5rem 0 !important}@media (min-width: 640px){.restaurant-title{font-size:2.5rem;margin:0 0 3rem 0 !important}}@media (min-width: 768px){.restaurant-title{font-size:3rem}}@media (min-width: 1024px){.restaurant-title{font-size:3.5rem}}.sections-container{display:grid;grid-template-columns:1fr;gap:4rem}@media (min-width: 768px){.sections-container{grid-template-columns:repeat(2, 1fr);gap:3rem}}.menu-section{display:-ms-flexbox;display:flex;width:100%;position:relative}.section-label-wrapper{position:relative;width:3rem;-ms-flex-negative:0;flex-shrink:0;margin-right:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.section-label-line{position:absolute;right:0;top:0;bottom:0;width:1px;border-right:1px solid}.section-label{font-weight:700;font-size:1.125rem;text-transform:uppercase;letter-spacing:0.15em;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;-webkit-transform:rotate(180deg);transform:rotate(180deg);text-align:right;white-space:nowrap;margin:0 0 0.5rem 0;-webkit-margin-after:0.5rem;margin-block-end:0.5rem;position:absolute;top:0}@media (min-width: 640px){.section-label{font-size:1.2375rem}}@media (min-width: 768px){.section-label{font-size:1.35rem}}@media (min-width: 1024px){.section-label{font-size:1.51875rem}}.section-content{-ms-flex:1;flex:1;padding-top:0.25rem}.section-description{font-size:0.875rem;font-style:italic;margin:0 0 1rem 0 !important;-webkit-margin-after:1rem;margin-block-end:1rem;opacity:0.75;color:inherit}@media (min-width: 640px){.section-description{font-size:0.9625rem}}@media (min-width: 768px){.section-description{font-size:1.05rem}}@media (min-width: 1024px){.section-description{font-size:1.18125rem}}.dishes-list{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1rem}.dish-item{position:relative}.dish-header{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;width:100%;gap:0.5rem}.dish-name{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;-ms-flex-negative:1;flex-shrink:1;min-width:0;overflow-wrap:break-word}@media (min-width: 640px){.dish-name{font-size:1.1rem}}@media (min-width: 768px){.dish-name{font-size:1.2rem}}@media (min-width: 1024px){.dish-name{font-size:1.35rem}}.dish-dots{-ms-flex:1;flex:1;opacity:0.25;border-bottom:2px dotted;margin:0 0.55rem;position:relative;-webkit-transform:translateY(-5px);transform:translateY(-5px);border-color:currentColor;min-width:1rem}.dish-price{font-size:1rem;font-weight:700;-ms-flex-negative:0;flex-shrink:0;text-align:right;min-width:3ch}@media (min-width: 640px){.dish-price{font-size:1.1rem}}@media (min-width: 768px){.dish-price{font-size:1.2rem}}@media (min-width: 1024px){.dish-price{font-size:1.35rem}}.dish-description{font-size:0.8125rem;margin-top:0.25rem;line-height:1.4;opacity:0.7;color:inherit;width:100%}@media (min-width: 640px){.dish-description{font-size:0.9425rem}}"};var BostonTemplate=function(){function e(e){registerInstance(this,e);this.dataJson="{}";this.fontConfig={google:{families:["Oswald:400,600,700","Merriweather:300,400,700"]}}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,loadFonts(this.fontConfig)];case 1:e.sent();applyFontFamily(this.el,"Merriweather, serif");return[2]}}))}))};e.prototype.componentDidLoad=function(){this.initObserver()};e.prototype.componentDidUpdate=function(){this.initObserver()};e.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};e.prototype.initObserver=function(){var e=this;if(this.observer){this.observer.disconnect()}this.observer=new IntersectionObserver((function(i){i.forEach((function(i){if(i.isIntersecting){var t=i.target;t.classList.add("is-visible");e.observer.unobserve(t)}}))}),{threshold:.1,rootMargin:"0px 0px -50px 0px"});var i=this.el.querySelectorAll(".animate-item");i.forEach((function(i){return e.observer.observe(i)}))};e.prototype.render=function(){var e;var i=null;if(this.data){i=this.data}else if(this.dataJson&&this.dataJson!=="{}"){try{i=JSON.parse(this.dataJson)}catch(e){console.warn("Invalid dataJson provided to veleta-boston-template:",e)}}var t=(e=i===null||i===void 0?void 0:i.templateData)===null||e===void 0?void 0:e.theme;var n=(t===null||t===void 0?void 0:t.primaryColor)||"#1a365d";var r=(t===null||t===void 0?void 0:t.backgroundColor)||"#FFFFFF";var a="Merriweather, serif";var o="Oswald, sans-serif";if(!i){return h("div",{class:"menu-wrapper",style:{color:n,backgroundColor:r}})}var s=i.sections,m=i.business;var l=(s||[]).sort((function(e,i){return e.order-i.order}));return h("div",{class:"menu-wrapper",style:{color:n,backgroundColor:r}},h("div",{class:"menu-container"},(m===null||m===void 0?void 0:m.name)&&h("header",{class:"menu-header"},h("h1",{class:"restaurant-title animate-item",style:{fontFamily:o}},m.name)),h("div",{class:"sections-container"},l.map((function(e){var i=(e.dishes||[]).sort((function(e,i){return e.order-i.order}));if(!i.length)return null;return h("section",{key:e.id,class:"menu-section animate-item"},h("div",{class:"section-label-wrapper"},h("div",{class:"section-label-line",style:{borderColor:n}}),h("h2",{class:"section-label",style:{fontFamily:o,color:n}},e.title)),h("div",{class:"section-content"},e.description&&h("p",{class:"section-description",style:{fontFamily:a}},e.description),h("ul",{class:"dishes-list"},i.map((function(e,i){return h("li",{key:e.id,class:"dish-item animate-item",style:{transitionDelay:"".concat(i*50,"ms")}},h("div",{class:"dish-header"},h("h3",{class:"dish-name",style:{fontFamily:o,color:n}},e.name),h("div",{class:"dish-dots"}),h("span",{class:"dish-price",style:{fontFamily:o,color:n}},formatPrice(e.price))),e.description&&h("p",{class:"dish-description",style:{fontFamily:a}},e.description))})))))})))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();BostonTemplate.style=bostonTemplateCss();export{BostonTemplate as veleta_boston_template};
@@ -1,2 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r["throw"](t))}catch(t){i(t)}}function s(t){t.done?n(t.value):o(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(r=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;o=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-zOTWMTLj.js";export{s as setNonce}from"./index-zOTWMTLj.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var patchBrowser=function(){var t=import.meta.url;var e={};if(t!==""){e.resourcesUrl=new URL(".",t).href}return promiseResolve(e)};patchBrowser().then((function(t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{dataJson:[1,"data-json"]}]]]],t)]}}))}))}));
2
- //# sourceMappingURL=veleta-templates.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{s(r.next(t))}catch(t){a(t)}}function c(t){try{s(r["throw"](t))}catch(t){a(t)}}function s(t){t.done?n(t.value):o(t.value).then(i,c)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(n=0)),n)try{if(r=1,o&&(a=c[0]&2?o["return"]:c[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;if(o=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;o=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1];a=c;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(c);break}if(a[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];o=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-zOTWMTLj.js";export{s as setNonce}from"./index-zOTWMTLj.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var patchBrowser=function(){var t=import.meta.url;var e={};if(t!==""){e.resourcesUrl=new URL(".",t).href}return promiseResolve(e)};patchBrowser().then((function(t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["veleta-boston-template",[[256,"veleta-boston-template",{dataJson:[1,"data-json"],data:[16]}]]]],t)]}}))}))}));