@ppg_pl/tinting 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/cjs/index-0a139db0.js +1667 -0
- package/dist/cjs/index-0a139db0.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +24 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/modal-header_10.cjs.entry.js +12313 -0
- package/dist/cjs/modal-header_10.cjs.entry.js.map +1 -0
- package/dist/cjs/tinting.cjs.js +28 -0
- package/dist/cjs/tinting.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +21 -0
- package/dist/collection/components/api/index.js +23 -0
- package/dist/collection/components/api/index.js.map +1 -0
- package/dist/collection/components/api/services.js +96 -0
- package/dist/collection/components/api/services.js.map +1 -0
- package/dist/collection/components/backdrop/index.css +14 -0
- package/dist/collection/components/backdrop/index.js +17 -0
- package/dist/collection/components/backdrop/index.js.map +1 -0
- package/dist/collection/components/colorbox/index.css +53 -0
- package/dist/collection/components/colorbox/index.js +182 -0
- package/dist/collection/components/colorbox/index.js.map +1 -0
- package/dist/collection/components/colorinfo/index.js +239 -0
- package/dist/collection/components/colorinfo/index.js.map +1 -0
- package/dist/collection/components/component/index.css +6 -0
- package/dist/collection/components/component/index.js +220 -0
- package/dist/collection/components/component/index.js.map +1 -0
- package/dist/collection/components/header/assets/close.png +0 -0
- package/dist/collection/components/header/index.css +180 -0
- package/dist/collection/components/header/index.js +334 -0
- package/dist/collection/components/header/index.js.map +1 -0
- package/dist/collection/components/loader/index.css +85 -0
- package/dist/collection/components/loader/index.js +19 -0
- package/dist/collection/components/loader/index.js.map +1 -0
- package/dist/collection/components/modal/__mocks__/index.js +759 -0
- package/dist/collection/components/modal/__mocks__/index.js.map +1 -0
- package/dist/collection/components/modal/assets/arrow_down.png +0 -0
- package/dist/collection/components/modal/index.css +386 -0
- package/dist/collection/components/modal/index.js +646 -0
- package/dist/collection/components/modal/index.js.map +1 -0
- package/dist/collection/components/search/assets/search.svg +15 -0
- package/dist/collection/components/search/index.css +38 -0
- package/dist/collection/components/search/index.js +178 -0
- package/dist/collection/components/search/index.js.map +1 -0
- package/dist/collection/components/select/assets/chevron-down.webp +0 -0
- package/dist/collection/components/select/assets/chevron.png +0 -0
- package/dist/collection/components/select/index.css +77 -0
- package/dist/collection/components/select/index.js +231 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/slider/index.css +89 -0
- package/dist/collection/components/slider/index.js +145 -0
- package/dist/collection/components/slider/index.js.map +1 -0
- package/dist/collection/gtmUtils.js +4 -0
- package/dist/collection/gtmUtils.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types.js +2 -0
- package/dist/collection/types.js.map +1 -0
- package/dist/collection/utils/index.js +12 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/components/gtmUtils.js +7 -0
- package/dist/components/gtmUtils.js.map +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index10.js +31 -0
- package/dist/components/index10.js.map +1 -0
- package/dist/components/index11.js +3949 -0
- package/dist/components/index11.js.map +1 -0
- package/dist/components/index2.js +2726 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/index3.js +87 -0
- package/dist/components/index3.js.map +1 -0
- package/dist/components/index4.js +121 -0
- package/dist/components/index4.js.map +1 -0
- package/dist/components/index5.js +26 -0
- package/dist/components/index5.js.map +1 -0
- package/dist/components/index6.js +31 -0
- package/dist/components/index6.js.map +1 -0
- package/dist/components/index7.js +75 -0
- package/dist/components/index7.js.map +1 -0
- package/dist/components/index8.js +87 -0
- package/dist/components/index8.js.map +1 -0
- package/dist/components/index9.js +5306 -0
- package/dist/components/index9.js.map +1 -0
- package/dist/components/modal-header.d.ts +11 -0
- package/dist/components/modal-header.js +8 -0
- package/dist/components/modal-header.js.map +1 -0
- package/dist/components/my-backdrop.d.ts +11 -0
- package/dist/components/my-backdrop.js +8 -0
- package/dist/components/my-backdrop.js.map +1 -0
- package/dist/components/my-colorbox.d.ts +11 -0
- package/dist/components/my-colorbox.js +8 -0
- package/dist/components/my-colorbox.js.map +1 -0
- package/dist/components/my-colorinfo.d.ts +11 -0
- package/dist/components/my-colorinfo.js +8 -0
- package/dist/components/my-colorinfo.js.map +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +254 -0
- package/dist/components/my-component.js.map +1 -0
- package/dist/components/my-loader.d.ts +11 -0
- package/dist/components/my-loader.js +8 -0
- package/dist/components/my-loader.js.map +1 -0
- package/dist/components/my-modal.d.ts +11 -0
- package/dist/components/my-modal.js +8 -0
- package/dist/components/my-modal.js.map +1 -0
- package/dist/components/my-search.d.ts +11 -0
- package/dist/components/my-search.js +8 -0
- package/dist/components/my-search.js.map +1 -0
- package/dist/components/my-select.d.ts +11 -0
- package/dist/components/my-select.js +8 -0
- package/dist/components/my-select.js.map +1 -0
- package/dist/components/my-slider.d.ts +11 -0
- package/dist/components/my-slider.js +8 -0
- package/dist/components/my-slider.js.map +1 -0
- package/dist/esm/index-f3be6531.js +1638 -0
- package/dist/esm/index-f3be6531.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +20 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/modal-header_10.entry.js +12300 -0
- package/dist/esm/modal-header_10.entry.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/tinting.js +23 -0
- package/dist/esm/tinting.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/tinting/assets/arrow_down.png +0 -0
- package/dist/tinting/assets/chevron-down.webp +0 -0
- package/dist/tinting/assets/chevron.png +0 -0
- package/dist/tinting/assets/close.png +0 -0
- package/dist/tinting/assets/search.svg +15 -0
- package/dist/tinting/index.esm.js +2 -0
- package/dist/tinting/index.esm.js.map +1 -0
- package/dist/tinting/p-06cd865b.entry.js +15 -0
- package/dist/tinting/p-06cd865b.entry.js.map +1 -0
- package/dist/tinting/p-b135c76f.js +3 -0
- package/dist/tinting/p-b135c76f.js.map +1 -0
- package/dist/tinting/tinting.css +1 -0
- package/dist/tinting/tinting.esm.js +2 -0
- package/dist/tinting/tinting.esm.js.map +1 -0
- package/dist/types/components/api/index.d.ts +7 -0
- package/dist/types/components/api/services.d.ts +9 -0
- package/dist/types/components/backdrop/index.d.ts +3 -0
- package/dist/types/components/colorbox/index.d.ts +15 -0
- package/dist/types/components/colorinfo/index.d.ts +19 -0
- package/dist/types/components/component/index.d.ts +18 -0
- package/dist/types/components/header/index.d.ts +35 -0
- package/dist/types/components/loader/index.d.ts +3 -0
- package/dist/types/components/modal/__mocks__/index.d.ts +415 -0
- package/dist/types/components/modal/index.d.ts +77 -0
- package/dist/types/components/search/index.d.ts +15 -0
- package/dist/types/components/select/index.d.ts +31 -0
- package/dist/types/components/slider/index.d.ts +15 -0
- package/dist/types/components.d.ts +289 -0
- package/dist/types/gtmUtils.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/dist/types/types.d.ts +68 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +69 -0
- package/www/build/assets/arrow_down.png +0 -0
- package/www/build/assets/chevron-down.webp +0 -0
- package/www/build/assets/chevron.png +0 -0
- package/www/build/assets/close.png +0 -0
- package/www/build/assets/fonts/Galatea-Regular.eot +0 -0
- package/www/build/assets/fonts/Galatea-Regular.ttf +0 -0
- package/www/build/assets/fonts/Galatea-Regular.woff +0 -0
- package/www/build/assets/fonts/Galatea-Regular.woff2 +0 -0
- package/www/build/assets/search.svg +15 -0
- package/www/build/index.esm.js +2 -0
- package/www/build/index.esm.js.map +1 -0
- package/www/build/p-06cd865b.entry.js +15 -0
- package/www/build/p-06cd865b.entry.js.map +1 -0
- package/www/build/p-a4907f5e.css +4 -0
- package/www/build/p-b135c76f.js +3 -0
- package/www/build/p-b135c76f.js.map +1 -0
- package/www/build/p-e2322b6c.js +163 -0
- package/www/build/tinting.css +1 -0
- package/www/build/tinting.esm.js +2 -0
- package/www/build/tinting.esm.js.map +1 -0
- package/www/build/tinting.js +33 -0
- package/www/host.config.json +15 -0
- package/www/index.html +31 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { h, getAssetPath } from '@stencil/core';
|
|
2
|
+
import { setDataLayer } from '../../gtmUtils';
|
|
3
|
+
import { APIURL, accessToken } from '../api';
|
|
4
|
+
export class MyColorInfo {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.goToProduct = () => {
|
|
7
|
+
var _a;
|
|
8
|
+
this.onCurrentColor.emit(this.currentColor);
|
|
9
|
+
this.currentColor &&
|
|
10
|
+
setDataLayer({
|
|
11
|
+
event: 'GoToProduct',
|
|
12
|
+
shop: this.shop,
|
|
13
|
+
product: this.product,
|
|
14
|
+
color: (_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.name,
|
|
15
|
+
});
|
|
16
|
+
this.closeInfoBox.emit();
|
|
17
|
+
};
|
|
18
|
+
this.onCloseButtonClick = () => {
|
|
19
|
+
this.closeInfoBox.emit();
|
|
20
|
+
};
|
|
21
|
+
this.renderSliderOrImage = () => {
|
|
22
|
+
var _a;
|
|
23
|
+
if (this.currentColor.imageInsteadHex) {
|
|
24
|
+
return h("img", { class: 'color-big-image', src: `${APIURL}/assets/${this.currentColor.bigImage}?access_token=${accessToken}`, alt: "color-image" });
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
return h("my-slider", { color: this.currentColor.name, shop: this.shop, product: this.product, slides: (_a = this.data) === null || _a === void 0 ? void 0 : _a.images });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.capitalizeFirstLetter = (string) => {
|
|
31
|
+
return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();
|
|
32
|
+
};
|
|
33
|
+
this.currentColor = undefined;
|
|
34
|
+
this.shop = undefined;
|
|
35
|
+
this.product = undefined;
|
|
36
|
+
this.baselink = undefined;
|
|
37
|
+
this.data = null;
|
|
38
|
+
this.isMobile = false;
|
|
39
|
+
this.infoBoxWidth = undefined;
|
|
40
|
+
this.closeImage = 'close.png';
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h("div", { class: `boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`, style: {
|
|
44
|
+
background: this.currentColor.imageInsteadHex ? 'white' : this.currentColor.hex,
|
|
45
|
+
maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
|
|
46
|
+
} }, this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("div", { class: "boxes__box-content__info", style: {
|
|
47
|
+
maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
|
|
48
|
+
} }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.currentColor.name), !this.isMobile && h("h4", null, this.currentColor.number), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "boxes__box-content__info__value-product" }, this.isMobile && h("div", { class: 'divider' }), this.currentColor && (h("button", { onClick: this.goToProduct, class: `button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}` }, "wybierz kolor"))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
|
|
49
|
+
}
|
|
50
|
+
static get is() { return "my-colorinfo"; }
|
|
51
|
+
static get properties() {
|
|
52
|
+
return {
|
|
53
|
+
"currentColor": {
|
|
54
|
+
"type": "unknown",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "Color",
|
|
58
|
+
"resolved": "{ hex: string; image: Record<string, Image>; links: Link[]; name: string; position: number; buttonInverse: boolean; textWhite: boolean; id?: number | undefined; category?: Partial<Color> | undefined; number?: string | undefined; Category_id: Color; imageInsteadHex: boolean; bigImage: string; }",
|
|
59
|
+
"references": {
|
|
60
|
+
"Color": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "../../types"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"shop": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": ""
|
|
86
|
+
},
|
|
87
|
+
"attribute": "shop",
|
|
88
|
+
"reflect": false
|
|
89
|
+
},
|
|
90
|
+
"product": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "string",
|
|
95
|
+
"resolved": "string",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"attribute": "product",
|
|
105
|
+
"reflect": false
|
|
106
|
+
},
|
|
107
|
+
"baselink": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"attribute": "baselink",
|
|
122
|
+
"reflect": false
|
|
123
|
+
},
|
|
124
|
+
"data": {
|
|
125
|
+
"type": "unknown",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "Product | null",
|
|
129
|
+
"resolved": "null | { colors?: Color[] | undefined; modalDescription: string; modalLogo: string; modalName: string; name: string; Shop: ProductShopRelation[]; useColorImage: boolean; images: any; id?: string | undefined; Category: ProductCategoryRelation[]; productSamples: any[]; }",
|
|
130
|
+
"references": {
|
|
131
|
+
"Product": {
|
|
132
|
+
"location": "import",
|
|
133
|
+
"path": "../../types"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": ""
|
|
142
|
+
},
|
|
143
|
+
"defaultValue": "null"
|
|
144
|
+
},
|
|
145
|
+
"isMobile": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "boolean",
|
|
150
|
+
"resolved": "boolean",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
},
|
|
159
|
+
"attribute": "is-mobile",
|
|
160
|
+
"reflect": false,
|
|
161
|
+
"defaultValue": "false"
|
|
162
|
+
},
|
|
163
|
+
"infoBoxWidth": {
|
|
164
|
+
"type": "number",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "number | null",
|
|
168
|
+
"resolved": "null | number",
|
|
169
|
+
"references": {}
|
|
170
|
+
},
|
|
171
|
+
"required": false,
|
|
172
|
+
"optional": false,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": ""
|
|
176
|
+
},
|
|
177
|
+
"attribute": "info-box-width",
|
|
178
|
+
"reflect": false
|
|
179
|
+
},
|
|
180
|
+
"closeImage": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "string",
|
|
185
|
+
"resolved": "string",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": ""
|
|
193
|
+
},
|
|
194
|
+
"attribute": "close-image",
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "'close.png'"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static get events() {
|
|
201
|
+
return [{
|
|
202
|
+
"method": "onCurrentColor",
|
|
203
|
+
"name": "onCurrentColor",
|
|
204
|
+
"bubbles": true,
|
|
205
|
+
"cancelable": true,
|
|
206
|
+
"composed": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": ""
|
|
210
|
+
},
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "Color",
|
|
213
|
+
"resolved": "{ hex: string; image: Record<string, Image>; links: Link[]; name: string; position: number; buttonInverse: boolean; textWhite: boolean; id?: number | undefined; category?: Partial<Color> | undefined; number?: string | undefined; Category_id: Color; imageInsteadHex: boolean; bigImage: string; }",
|
|
214
|
+
"references": {
|
|
215
|
+
"Color": {
|
|
216
|
+
"location": "import",
|
|
217
|
+
"path": "../../types"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}, {
|
|
222
|
+
"method": "closeInfoBox",
|
|
223
|
+
"name": "closeInfoBox",
|
|
224
|
+
"bubbles": true,
|
|
225
|
+
"cancelable": true,
|
|
226
|
+
"composed": true,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "any",
|
|
233
|
+
"resolved": "any",
|
|
234
|
+
"references": {}
|
|
235
|
+
}
|
|
236
|
+
}];
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/colorinfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAK7C,MAAM,OAAO,WAAW;;IAatB,gBAAW,GAAG,GAAG,EAAE;;MACjB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;MAC5C,IAAI,CAAC,YAAY;QACf,YAAY,CAAC;UACX,KAAK,EAAE,aAAa;UACpB,IAAI,EAAE,IAAI,CAAC,IAAI;UACf,OAAO,EAAE,IAAI,CAAC,OAAO;UACrB,KAAK,EAAE,MAAA,IAAI,CAAC,YAAY,0CAAE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IAAI,CAAC,mBAAmB,EAAE,CAAO,CACtE,CACP,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, getAssetPath, Event, EventEmitter } from '@stencil/core';\nimport { setDataLayer } from '../../gtmUtils';\nimport { Color, Product } from '../../types';\nimport { APIURL, accessToken } from '../api';\n\n@Component({\n tag: 'my-colorinfo',\n})\nexport class MyColorInfo {\n @Prop() currentColor: Color;\n @Prop() shop: string;\n @Prop() product: string;\n @Prop() baselink: string;\n @Prop() data: Product | null = null;\n @Prop() isMobile: boolean = false;\n @Prop() infoBoxWidth: number | null;\n @Prop() closeImage = 'close.png';\n @Event({ bubbles: true, composed: true }) onCurrentColor: EventEmitter<Color>;\n\n @Event() closeInfoBox: EventEmitter;\n\n goToProduct = () => {\n this.onCurrentColor.emit(this.currentColor);\n this.currentColor &&\n setDataLayer({\n event: 'GoToProduct',\n shop: this.shop,\n product: this.product,\n color: this.currentColor?.name,\n });\n\n this.closeInfoBox.emit();\n };\n\n onCloseButtonClick = () => {\n this.closeInfoBox.emit();\n };\n\n renderSliderOrImage = () => {\n if (this.currentColor.imageInsteadHex) {\n return <img class={'color-big-image'} src={`${APIURL}/assets/${this.currentColor.bigImage}?access_token=${accessToken}`} alt=\"color-image\" />;\n } else {\n return <my-slider color={this.currentColor.name} shop={this.shop} product={this.product} slides={this.data?.images}></my-slider>;\n }\n };\n\n capitalizeFirstLetter = (string: string) => {\n return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();\n };\n\n render() {\n return (\n <div\n class={`boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`}\n style={{\n background: this.currentColor.imageInsteadHex ? 'white' : this.currentColor.hex,\n maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,\n }}\n >\n {this.isMobile && <img class={'closebtn'} onClick={this.onCloseButtonClick} src={getAssetPath(`./assets/${this.closeImage}`)} alt=\"closebtn\" />}\n <div\n class=\"boxes__box-content__info\"\n style={{\n maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,\n }}\n >\n {!this.isMobile && <img class={'closebtn'} onClick={this.onCloseButtonClick} src={getAssetPath(`./assets/${this.closeImage}`)} alt=\"closebtn\" />}\n <h2>{this.currentColor.name}</h2>\n {!this.isMobile && <h4>{this.currentColor.number}</h4>}\n\n <div class=\"boxes__box-content__info__value\">\n {/* <div class=\"boxes__box-content__info__value-image\">\n {this.currentColor?.image! && <img src={`${APIURL}/assets/${this.currentColor.image}?access_token=${accessToken}`} alt=\"color-image\" />}\n </div> */}\n <div class=\"boxes__box-content__info__value-product\">\n {/* <div>\n {!this.isMobile && <p>Produkt:</p>}\n {this.isMobile && <h2>{this.currentColor?.name}</h2>} <p>{this.product}</p>\n </div> */}\n\n {this.isMobile && <div class={'divider'}></div>}\n {this.currentColor && (\n <button onClick={this.goToProduct} class={`button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}`}>\n wybierz kolor\n </button>\n )}\n </div>\n </div>\n </div>\n <div class=\"boxes__box-content__slider\">{this.renderSliderOrImage()}</div>\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import Helmet from '@stencil/helmet';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
export class MyModalBundle {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.shop = undefined;
|
|
6
|
+
this.product = undefined;
|
|
7
|
+
this.baselink = undefined;
|
|
8
|
+
this.colorname = undefined;
|
|
9
|
+
this.show = false;
|
|
10
|
+
this.readyToClose = false;
|
|
11
|
+
}
|
|
12
|
+
async open() {
|
|
13
|
+
this.show = true;
|
|
14
|
+
}
|
|
15
|
+
async close() {
|
|
16
|
+
this.show = false;
|
|
17
|
+
}
|
|
18
|
+
setReadyToCloseHandler(value) {
|
|
19
|
+
this.readyToClose = value.detail.observable;
|
|
20
|
+
}
|
|
21
|
+
closeModalHandler() {
|
|
22
|
+
this.show = false;
|
|
23
|
+
this.readyToClose = false;
|
|
24
|
+
}
|
|
25
|
+
handleSelectedColor(event) {
|
|
26
|
+
this.onSelectedColor.emit(event.detail);
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
let content = null;
|
|
30
|
+
if (this.show) {
|
|
31
|
+
content = [h("my-backdrop", null), h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname })];
|
|
32
|
+
}
|
|
33
|
+
return (h("div", { onClick: () => {
|
|
34
|
+
if (this.readyToClose) {
|
|
35
|
+
this.closeModalHandler();
|
|
36
|
+
}
|
|
37
|
+
} }, h(Helmet, null, h("script", null, `(function (w, d, s, l, i) {
|
|
38
|
+
w[l] = w[l] || [];
|
|
39
|
+
w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });
|
|
40
|
+
var f = d.getElementsByTagName(s)[0],
|
|
41
|
+
j = d.createElement(s),
|
|
42
|
+
dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
43
|
+
j.async = true;
|
|
44
|
+
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
|
|
45
|
+
f.parentNode.insertBefore(j, f);
|
|
46
|
+
})(window, document, 'script', 'dataLayer', 'GTM-537BV9VT');`)), h("div", { class: "tinting-wrapper" }, content), h("noscript", null, h("iframe", { src: "https://www.googletagmanager.com/ns.html?id=GTM-537BV9VT", height: "0", width: "0", style: { display: 'none', visibility: 'hidden' } }))));
|
|
47
|
+
}
|
|
48
|
+
static get is() { return "my-component"; }
|
|
49
|
+
static get encapsulation() { return "scoped"; }
|
|
50
|
+
static get originalStyleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["index.scss"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get styleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["index.css"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get properties() {
|
|
61
|
+
return {
|
|
62
|
+
"shop": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "string",
|
|
67
|
+
"resolved": "string",
|
|
68
|
+
"references": {}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": ""
|
|
75
|
+
},
|
|
76
|
+
"attribute": "shop",
|
|
77
|
+
"reflect": false
|
|
78
|
+
},
|
|
79
|
+
"product": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "product",
|
|
94
|
+
"reflect": false
|
|
95
|
+
},
|
|
96
|
+
"baselink": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "baselink",
|
|
111
|
+
"reflect": false
|
|
112
|
+
},
|
|
113
|
+
"colorname": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "string | null",
|
|
118
|
+
"resolved": "null | string",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": false,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": ""
|
|
126
|
+
},
|
|
127
|
+
"attribute": "colorname",
|
|
128
|
+
"reflect": false
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
static get states() {
|
|
133
|
+
return {
|
|
134
|
+
"show": {},
|
|
135
|
+
"readyToClose": {}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
static get events() {
|
|
139
|
+
return [{
|
|
140
|
+
"method": "onSelectedColor",
|
|
141
|
+
"name": "onSelectedColor",
|
|
142
|
+
"bubbles": true,
|
|
143
|
+
"cancelable": true,
|
|
144
|
+
"composed": true,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": ""
|
|
148
|
+
},
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "Color",
|
|
151
|
+
"resolved": "{ hex: string; image: Record<string, Image>; links: Link[]; name: string; position: number; buttonInverse: boolean; textWhite: boolean; id?: number | undefined; category?: Partial<Color> | undefined; number?: string | undefined; Category_id: Color; imageInsteadHex: boolean; bigImage: string; }",
|
|
152
|
+
"references": {
|
|
153
|
+
"Color": {
|
|
154
|
+
"location": "import",
|
|
155
|
+
"path": "../../types"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}];
|
|
160
|
+
}
|
|
161
|
+
static get methods() {
|
|
162
|
+
return {
|
|
163
|
+
"open": {
|
|
164
|
+
"complexType": {
|
|
165
|
+
"signature": "() => Promise<void>",
|
|
166
|
+
"parameters": [],
|
|
167
|
+
"references": {
|
|
168
|
+
"Promise": {
|
|
169
|
+
"location": "global"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"return": "Promise<void>"
|
|
173
|
+
},
|
|
174
|
+
"docs": {
|
|
175
|
+
"text": "",
|
|
176
|
+
"tags": []
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"close": {
|
|
180
|
+
"complexType": {
|
|
181
|
+
"signature": "() => Promise<void>",
|
|
182
|
+
"parameters": [],
|
|
183
|
+
"references": {
|
|
184
|
+
"Promise": {
|
|
185
|
+
"location": "global"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"return": "Promise<void>"
|
|
189
|
+
},
|
|
190
|
+
"docs": {
|
|
191
|
+
"text": "",
|
|
192
|
+
"tags": []
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
static get elementRef() { return "modalEl"; }
|
|
198
|
+
static get listeners() {
|
|
199
|
+
return [{
|
|
200
|
+
"name": "readyToCLose",
|
|
201
|
+
"method": "setReadyToCloseHandler",
|
|
202
|
+
"target": undefined,
|
|
203
|
+
"capture": false,
|
|
204
|
+
"passive": false
|
|
205
|
+
}, {
|
|
206
|
+
"name": "close",
|
|
207
|
+
"method": "closeModalHandler",
|
|
208
|
+
"target": undefined,
|
|
209
|
+
"capture": false,
|
|
210
|
+
"passive": false
|
|
211
|
+
}, {
|
|
212
|
+
"name": "onSelectedColorEmit",
|
|
213
|
+
"method": "handleSelectedColor",
|
|
214
|
+
"target": undefined,
|
|
215
|
+
"capture": false,
|
|
216
|
+
"passive": false
|
|
217
|
+
}];
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC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AO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAW,CAC9I,CACP,CACP,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import Helmet from '@stencil/helmet';\nimport { Component, Prop, Method, Element, State, Listen, h, Event, EventEmitter } from '@stencil/core';\nimport { Color } from '../../types';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'index.scss',\n scoped: true,\n})\nexport class MyModalBundle {\n @Element() modalEl: HTMLElement;\n @Event({ bubbles: true, composed: true }) onSelectedColor: EventEmitter<Color>;\n @Prop() shop: string;\n @Prop() product: string;\n @Prop() baselink: string;\n @Prop() colorname: string | null;\n\n @State() show = false;\n @State() readyToClose = false;\n\n @Method()\n async open() {\n this.show = true;\n }\n\n @Method()\n async close() {\n this.show = false;\n }\n\n @Listen('readyToCLose')\n setReadyToCloseHandler(value: CustomEvent) {\n this.readyToClose = value.detail.observable;\n }\n\n @Listen('close')\n closeModalHandler() {\n this.show = false;\n this.readyToClose = false;\n }\n\n @Listen('onSelectedColorEmit')\n handleSelectedColor(event: CustomEvent<Color>) {\n this.onSelectedColor.emit(event.detail);\n }\n\n render() {\n let content = null;\n if (this.show) {\n content = [<my-backdrop></my-backdrop>, <my-modal shop={this.shop} product={this.product} baselink={this.baselink} selectedcolor={this.colorname}></my-modal>];\n }\n return (\n <div\n onClick={() => {\n if (this.readyToClose) {\n this.closeModalHandler();\n }\n }}\n >\n <Helmet>\n <script>\n {`(function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != 'dataLayer' ? '&l=' + l : '';\n j.async = true;\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, 'script', 'dataLayer', 'GTM-537BV9VT');`}\n </script>\n </Helmet>\n <div class=\"tinting-wrapper\">{content}</div>\n <noscript>\n <iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-537BV9VT\" height=\"0\" width=\"0\" style={{ display: 'none', visibility: 'hidden' }}></iframe>\n </noscript>\n </div>\n );\n }\n}\n"]}
|
|
Binary file
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
|
2
|
+
.tinting-wrapper * {
|
|
3
|
+
font-family: "Poppins", sans-serif;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.my-modal__header {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
margin-bottom: 16px;
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 905px) {
|
|
13
|
+
.my-modal__header {
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 1024px) {
|
|
18
|
+
.my-modal__header {
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-bottom: 12px;
|
|
21
|
+
align-items: center;
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.my-modal__header .image-wrapper {
|
|
26
|
+
display: flex;
|
|
27
|
+
margin-bottom: 17px;
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 768px) {
|
|
30
|
+
.my-modal__header .image-wrapper {
|
|
31
|
+
margin-bottom: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.my-modal__header .image-wrapper .modal-header__logo {
|
|
35
|
+
max-width: 400px;
|
|
36
|
+
position: relative;
|
|
37
|
+
max-height: 130px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
.my-modal__header .image-wrapper .modal-header__logo img {
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
object-fit: cover;
|
|
44
|
+
}
|
|
45
|
+
@media (max-width: 768px) {
|
|
46
|
+
.my-modal__header .image-wrapper .modal-header__logo {
|
|
47
|
+
max-width: 200px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.my-modal__header .my-modal__see-more {
|
|
51
|
+
margin-bottom: 16px;
|
|
52
|
+
text-align: left;
|
|
53
|
+
}
|
|
54
|
+
.my-modal__header .search-wrapper {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
align-items: flex-end;
|
|
59
|
+
gap: 55px;
|
|
60
|
+
align-items: center;
|
|
61
|
+
}
|
|
62
|
+
@media (max-width: 1024px) {
|
|
63
|
+
.my-modal__header .search-wrapper {
|
|
64
|
+
justify-content: center;
|
|
65
|
+
width: 92%;
|
|
66
|
+
margin: 0 auto;
|
|
67
|
+
gap: 21px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@media (max-width: 768px) {
|
|
71
|
+
.my-modal__header .search-wrapper {
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.my-modal__header .search-wrapper .color-families {
|
|
76
|
+
display: flex;
|
|
77
|
+
gap: 5px;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
overflow-x: auto;
|
|
81
|
+
padding-bottom: 5px;
|
|
82
|
+
scrollbar-width: thin;
|
|
83
|
+
scrollbar-color: #aaa transparent;
|
|
84
|
+
flex-wrap: wrap;
|
|
85
|
+
}
|
|
86
|
+
.my-modal__header .search-wrapper .color-families::-webkit-scrollbar {
|
|
87
|
+
height: 6px;
|
|
88
|
+
}
|
|
89
|
+
.my-modal__header .search-wrapper .color-families::-webkit-scrollbar-thumb {
|
|
90
|
+
background-color: #aaa;
|
|
91
|
+
border-radius: 3px;
|
|
92
|
+
}
|
|
93
|
+
@media (max-width: 1024px) {
|
|
94
|
+
.my-modal__header .search-wrapper .color-families {
|
|
95
|
+
flex-wrap: nowrap;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.my-modal__header .search-wrapper .color-families .color-family {
|
|
99
|
+
flex: 0 0 auto;
|
|
100
|
+
width: 125px;
|
|
101
|
+
height: 125px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
color: #fff;
|
|
106
|
+
position: relative;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
109
|
+
}
|
|
110
|
+
.my-modal__header .search-wrapper .color-families .color-family:hover {
|
|
111
|
+
transform: scale(0.93);
|
|
112
|
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
113
|
+
}
|
|
114
|
+
.my-modal__header .search-wrapper .color-families .color-family.active {
|
|
115
|
+
transform: scale(0.93);
|
|
116
|
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
117
|
+
}
|
|
118
|
+
@media (max-width: 1024px) {
|
|
119
|
+
.my-modal__header .search-wrapper .color-families .color-family {
|
|
120
|
+
width: 90px;
|
|
121
|
+
height: 90px;
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.my-modal__header .search-wrapper .color-families .color-family div {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
font-size: 15px;
|
|
130
|
+
z-index: -1;
|
|
131
|
+
opacity: 65%;
|
|
132
|
+
position: absolute;
|
|
133
|
+
}
|
|
134
|
+
.my-modal__header .search-wrapper .search-container {
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: baseline;
|
|
137
|
+
}
|
|
138
|
+
.my-modal__header .search-wrapper .search-container .filters {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 10px;
|
|
142
|
+
}
|
|
143
|
+
@media (max-width: 1024px) {
|
|
144
|
+
.my-modal__header .search-wrapper .search-container .filters {
|
|
145
|
+
width: 100%;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
@media (max-width: 1024px) {
|
|
149
|
+
.my-modal__header .search-wrapper .search-container {
|
|
150
|
+
width: 100%;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@media (max-width: 1024px) {
|
|
154
|
+
.my-modal__header .search-wrapper .sc-my-search-h {
|
|
155
|
+
width: 100%;
|
|
156
|
+
margin: 0 auto;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.my-modal__header .search-wrapper .my-modal__close {
|
|
160
|
+
position: absolute;
|
|
161
|
+
top: 50px;
|
|
162
|
+
right: 20px;
|
|
163
|
+
background: transparent;
|
|
164
|
+
border: none;
|
|
165
|
+
margin-top: -20px;
|
|
166
|
+
}
|
|
167
|
+
.my-modal__header .search-wrapper .my-modal__close > img {
|
|
168
|
+
width: 45px;
|
|
169
|
+
height: 45px;
|
|
170
|
+
object-fit: cover;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
@media (max-width: 1024px) {
|
|
174
|
+
.my-modal__header .search-wrapper .my-modal__close {
|
|
175
|
+
margin-top: 0px;
|
|
176
|
+
position: absolute;
|
|
177
|
+
right: 10px;
|
|
178
|
+
top: 10px;
|
|
179
|
+
}
|
|
180
|
+
}
|