@c15t/dev-tools 1.8.3 → 2.0.0-rc.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/CHANGELOG.md +12 -0
- package/README.md +155 -71
- package/dist/__tests__/components/ui.test.d.ts +2 -0
- package/dist/__tests__/components/ui.test.d.ts.map +1 -0
- package/dist/__tests__/core/renderer.test.d.ts +2 -0
- package/dist/__tests__/core/renderer.test.d.ts.map +1 -0
- package/dist/__tests__/core/reset-consents.test.d.ts +2 -0
- package/dist/__tests__/core/reset-consents.test.d.ts.map +1 -0
- package/dist/__tests__/core/state-manager.test.d.ts +2 -0
- package/dist/__tests__/core/state-manager.test.d.ts.map +1 -0
- package/dist/__tests__/panels/dom-scanner.test.d.ts +2 -0
- package/dist/__tests__/panels/dom-scanner.test.d.ts.map +1 -0
- package/dist/components/dropdown-menu.d.ts +46 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/panel.d.ts +28 -0
- package/dist/components/panel.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +21 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/ui.d.ts +65 -0
- package/dist/components/ui.d.ts.map +1 -0
- package/dist/core/devtools.d.ts +60 -0
- package/dist/core/devtools.d.ts.map +1 -0
- package/dist/core/draggable.d.ts +81 -0
- package/dist/core/draggable.d.ts.map +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/panel-renderer.d.ts +41 -0
- package/dist/core/panel-renderer.d.ts.map +1 -0
- package/dist/core/renderer.d.ts +126 -0
- package/dist/core/renderer.d.ts.map +1 -0
- package/dist/core/reset-consents.d.ts +24 -0
- package/dist/core/reset-consents.d.ts.map +1 -0
- package/dist/core/state-manager.d.ts +73 -0
- package/dist/core/state-manager.d.ts.map +1 -0
- package/dist/core/store-connector.d.ts +69 -0
- package/dist/core/store-connector.d.ts.map +1 -0
- package/dist/index.cjs +4813 -10
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4803 -2
- package/dist/panels/actions.d.ts +18 -0
- package/dist/panels/actions.d.ts.map +1 -0
- package/dist/panels/consents.d.ts +18 -0
- package/dist/panels/consents.d.ts.map +1 -0
- package/dist/panels/dom-scanner.d.ts +29 -0
- package/dist/panels/dom-scanner.d.ts.map +1 -0
- package/dist/panels/events.d.ts +14 -0
- package/dist/panels/events.d.ts.map +1 -0
- package/dist/panels/iab.d.ts +14 -0
- package/dist/panels/iab.d.ts.map +1 -0
- package/dist/panels/index.d.ts +11 -0
- package/dist/panels/index.d.ts.map +1 -0
- package/dist/panels/location.d.ts +19 -0
- package/dist/panels/location.d.ts.map +1 -0
- package/dist/panels/scripts.d.ts +13 -0
- package/dist/panels/scripts.d.ts.map +1 -0
- package/dist/react.cjs +4696 -0
- package/dist/react.d.ts +76 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +4672 -0
- package/dist/styles/index.d.ts +7 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/tanstack.cjs +3819 -0
- package/dist/tanstack.d.ts +46 -0
- package/dist/tanstack.d.ts.map +1 -0
- package/dist/tanstack.js +3795 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/preference-trigger.d.ts +27 -0
- package/dist/utils/preference-trigger.d.ts.map +1 -0
- package/package.json +74 -57
- package/tsconfig.json +1 -1
- package/LICENSE.md +0 -595
- package/dist/components/error-state.cjs +0 -98
- package/dist/components/error-state.css +0 -51
- package/dist/components/error-state.d.ts +0 -5
- package/dist/components/error-state.d.ts.map +0 -1
- package/dist/components/error-state.js +0 -64
- package/dist/components/header.cjs +0 -65
- package/dist/components/header.css +0 -29
- package/dist/components/header.d.ts +0 -7
- package/dist/components/header.d.ts.map +0 -1
- package/dist/components/header.js +0 -31
- package/dist/components/ui/accordion.cjs +0 -82
- package/dist/components/ui/accordion.css +0 -72
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -39
- package/dist/components/ui/alert.cjs +0 -77
- package/dist/components/ui/alert.css +0 -59
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/alert.js +0 -37
- package/dist/components/ui/badge.cjs +0 -63
- package/dist/components/ui/badge.css +0 -52
- package/dist/components/ui/badge.d.ts +0 -11
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -26
- package/dist/components/ui/button.cjs +0 -77
- package/dist/components/ui/button.css +0 -87
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -40
- package/dist/components/ui/card.cjs +0 -89
- package/dist/components/ui/card.css +0 -41
- package/dist/components/ui/card.d.ts +0 -10
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -40
- package/dist/components/ui/error-state.css +0 -34
- package/dist/components/ui/expandable-tabs.cjs +0 -136
- package/dist/components/ui/expandable-tabs.css +0 -57
- package/dist/components/ui/expandable-tabs.d.ts +0 -23
- package/dist/components/ui/expandable-tabs.d.ts.map +0 -1
- package/dist/components/ui/expandable-tabs.js +0 -102
- package/dist/components/ui/logo.cjs +0 -101
- package/dist/components/ui/logo.d.ts +0 -8
- package/dist/components/ui/logo.d.ts.map +0 -1
- package/dist/components/ui/logo.js +0 -67
- package/dist/components/ui/scroll-area.cjs +0 -67
- package/dist/components/ui/scroll-area.css +0 -41
- package/dist/components/ui/scroll-area.d.ts +0 -6
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -30
- package/dist/components/ui/switch.cjs +0 -49
- package/dist/components/ui/switch.css +0 -49
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -15
- package/dist/components/ui/tooltip.cjs +0 -61
- package/dist/components/ui/tooltip.css +0 -101
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -18
- package/dist/components/wrapper.cjs +0 -158
- package/dist/components/wrapper.css +0 -90
- package/dist/components/wrapper.d.ts +0 -20
- package/dist/components/wrapper.d.ts.map +0 -1
- package/dist/components/wrapper.js +0 -121
- package/dist/dev-tool.cjs +0 -124
- package/dist/dev-tool.d.ts +0 -15
- package/dist/dev-tool.d.ts.map +0 -1
- package/dist/dev-tool.js +0 -74
- package/dist/libs/utils.cjs +0 -50
- package/dist/libs/utils.d.ts +0 -3
- package/dist/libs/utils.d.ts.map +0 -1
- package/dist/libs/utils.js +0 -6
- package/dist/router/router.cjs +0 -158
- package/dist/router/router.d.ts +0 -6
- package/dist/router/router.d.ts.map +0 -1
- package/dist/router/router.js +0 -124
- package/dist/styles/theme.css +0 -42
|
@@ -0,0 +1,3819 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/animations.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
4
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
5
|
+
A: ()=>__rspack_default_export
|
|
6
|
+
});
|
|
7
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
9
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
10
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
11
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
12
|
+
___CSS_LOADER_EXPORT___.push([
|
|
13
|
+
module.id,
|
|
14
|
+
`@keyframes devtoolsEnter-Jgl1Uz {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
transform: scale(.95)translateY(8px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
to {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transform: scale(1)translateY(0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes devtoolsExit-GVem79 {
|
|
27
|
+
from {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
transform: scale(1)translateY(0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
to {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transform: scale(.95)translateY(8px);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes buttonPulse-thl_xD {
|
|
39
|
+
0%, 100% {
|
|
40
|
+
transform: scale(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
50% {
|
|
44
|
+
transform: scale(1.05);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes buttonEnter-nmbQm7 {
|
|
49
|
+
from {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transform: scale(.8);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
to {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
transform: scale(1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes buttonExit-pxOnsy {
|
|
61
|
+
from {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
transform: scale(1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
to {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
transform: scale(.8);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@keyframes accordionDown-N6mY7b {
|
|
73
|
+
from {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
height: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
to {
|
|
79
|
+
height: var(--accordion-content-height);
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes accordionUp-NUVQrz {
|
|
85
|
+
from {
|
|
86
|
+
height: var(--accordion-content-height);
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
to {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
height: 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes fadeIn-M9eDrv {
|
|
97
|
+
from {
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
to {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes fadeOut-feL7tl {
|
|
107
|
+
from {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
to {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes slideInFromRight-F7lMwz {
|
|
117
|
+
from {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
transform: translateX(16px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
to {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
transform: translateX(0);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes slideInFromBottom-_z3hvX {
|
|
129
|
+
from {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: translateY(16px);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
to {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
transform: translateY(0);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.animateEnter-detbYr {
|
|
141
|
+
animation: devtoolsEnter-Jgl1Uz var(--c15t-duration-normal, .2s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)) forwards;
|
|
142
|
+
transform-origin: 100% 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.animateExit-qZjCsw {
|
|
146
|
+
animation: devtoolsExit-GVem79 var(--c15t-duration-fast, .1s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)) forwards;
|
|
147
|
+
transform-origin: 100% 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.animateButtonEnter-amkZhT {
|
|
151
|
+
animation: buttonEnter-nmbQm7 var(--c15t-duration-normal, .2s) var(--c15t-easing-spring, cubic-bezier(.34, 1.56, .64, 1)) forwards;
|
|
152
|
+
transform-origin: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.animateButtonExit-fMVAL4 {
|
|
156
|
+
animation: buttonExit-pxOnsy var(--c15t-duration-fast, .1s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)) forwards;
|
|
157
|
+
transform-origin: center;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.animateFadeIn-TrkV7T {
|
|
161
|
+
animation: fadeIn-M9eDrv var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)) forwards;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.animateFadeOut-sS4sE4 {
|
|
165
|
+
animation: fadeOut-feL7tl var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)) forwards;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.animateSlideIn-ccDCyI {
|
|
169
|
+
animation: slideInFromBottom-_z3hvX var(--c15t-duration-normal, .2s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)) forwards;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.staggerItem-tzBuCo {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
animation: slideInFromRight-F7lMwz var(--c15t-duration-normal, .2s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)) forwards;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.staggerItem-tzBuCo:first-child {
|
|
178
|
+
animation-delay: 0s;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.staggerItem-tzBuCo:nth-child(2) {
|
|
182
|
+
animation-delay: 30ms;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.staggerItem-tzBuCo:nth-child(3) {
|
|
186
|
+
animation-delay: 60ms;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.staggerItem-tzBuCo:nth-child(4) {
|
|
190
|
+
animation-delay: 90ms;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.staggerItem-tzBuCo:nth-child(5) {
|
|
194
|
+
animation-delay: .12s;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.staggerItem-tzBuCo:nth-child(6) {
|
|
198
|
+
animation-delay: .15s;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.staggerItem-tzBuCo:nth-child(7) {
|
|
202
|
+
animation-delay: .18s;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.staggerItem-tzBuCo:nth-child(8) {
|
|
206
|
+
animation-delay: .21s;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.staggerItem-tzBuCo:nth-child(9) {
|
|
210
|
+
animation-delay: .24s;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.staggerItem-tzBuCo:nth-child(10) {
|
|
214
|
+
animation-delay: .27s;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (prefers-reduced-motion: reduce) {
|
|
218
|
+
.animateEnter-detbYr, .animateExit-qZjCsw, .animateButtonEnter-amkZhT, .animateButtonExit-fMVAL4, .animateFadeIn-TrkV7T, .animateFadeOut-sS4sE4, .animateSlideIn-ccDCyI, .staggerItem-tzBuCo {
|
|
219
|
+
opacity: 1;
|
|
220
|
+
animation: none;
|
|
221
|
+
transform: none;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
`,
|
|
225
|
+
""
|
|
226
|
+
]);
|
|
227
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
228
|
+
animateEnter: "animateEnter-detbYr",
|
|
229
|
+
devtoolsEnter: "devtoolsEnter-Jgl1Uz",
|
|
230
|
+
animateExit: "animateExit-qZjCsw",
|
|
231
|
+
devtoolsExit: "devtoolsExit-GVem79",
|
|
232
|
+
animateButtonEnter: "animateButtonEnter-amkZhT",
|
|
233
|
+
buttonEnter: "buttonEnter-nmbQm7",
|
|
234
|
+
animateButtonExit: "animateButtonExit-fMVAL4",
|
|
235
|
+
buttonExit: "buttonExit-pxOnsy",
|
|
236
|
+
animateFadeIn: "animateFadeIn-TrkV7T",
|
|
237
|
+
fadeIn: "fadeIn-M9eDrv",
|
|
238
|
+
animateFadeOut: "animateFadeOut-sS4sE4",
|
|
239
|
+
fadeOut: "fadeOut-feL7tl",
|
|
240
|
+
animateSlideIn: "animateSlideIn-ccDCyI",
|
|
241
|
+
slideInFromBottom: "slideInFromBottom-_z3hvX",
|
|
242
|
+
staggerItem: "staggerItem-tzBuCo",
|
|
243
|
+
slideInFromRight: "slideInFromRight-F7lMwz",
|
|
244
|
+
buttonPulse: "buttonPulse-thl_xD",
|
|
245
|
+
accordionDown: "accordionDown-N6mY7b",
|
|
246
|
+
accordionUp: "accordionUp-NUVQrz"
|
|
247
|
+
};
|
|
248
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
249
|
+
},
|
|
250
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/components.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
251
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
252
|
+
A: ()=>__rspack_default_export
|
|
253
|
+
});
|
|
254
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
255
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
256
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
257
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
258
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
259
|
+
___CSS_LOADER_EXPORT___.push([
|
|
260
|
+
module.id,
|
|
261
|
+
`.toggle-bPZtik {
|
|
262
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
263
|
+
background-color: var(--c15t-switch-track, #ccc);
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
width: 36px;
|
|
266
|
+
height: 20px;
|
|
267
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
268
|
+
border: none;
|
|
269
|
+
align-items: center;
|
|
270
|
+
padding: 0;
|
|
271
|
+
display: inline-flex;
|
|
272
|
+
position: relative;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.toggle-bPZtik:focus-visible {
|
|
276
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
277
|
+
outline-offset: 2px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.toggleActive-Ldlasg {
|
|
281
|
+
background-color: var(--c15t-switch-track-active, #335cff);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.toggleThumb-hjGfoX {
|
|
285
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
286
|
+
background-color: var(--c15t-switch-thumb, #fff);
|
|
287
|
+
width: 16px;
|
|
288
|
+
height: 16px;
|
|
289
|
+
transition: transform var(--c15t-duration-fast, .1s) var(--c15t-easing-spring, cubic-bezier(.34, 1.56, .64, 1));
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 2px;
|
|
292
|
+
box-shadow: 0 1px 2px #0003;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.toggleActive-Ldlasg .toggleThumb-hjGfoX {
|
|
296
|
+
transform: translateX(16px);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.toggle-bPZtik:disabled, .toggleDisabled-ZcD8nZ {
|
|
300
|
+
opacity: .5;
|
|
301
|
+
cursor: not-allowed;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.toggle-bPZtik:disabled .toggleThumb-hjGfoX, .toggleDisabled-ZcD8nZ .toggleThumb-hjGfoX {
|
|
305
|
+
box-shadow: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.badge-yA0giZ {
|
|
309
|
+
border-radius: var(--c15t-radius-sm, .25rem);
|
|
310
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
311
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
align-items: center;
|
|
314
|
+
padding: 2px 6px;
|
|
315
|
+
line-height: 1;
|
|
316
|
+
display: inline-flex;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.badgeSuccess-mA76a4 {
|
|
320
|
+
background-color: var(--c15t-devtools-badge-success-bg, #e4fbed);
|
|
321
|
+
color: var(--c15t-devtools-badge-success, #21c45d);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.badgeError-Agsq7I {
|
|
325
|
+
background-color: var(--c15t-devtools-badge-error-bg, #fde7e7);
|
|
326
|
+
color: var(--c15t-devtools-badge-error, #ef4343);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.badgeWarning-xpdwMQ {
|
|
330
|
+
background-color: var(--c15t-devtools-badge-warning-bg, #fef7dc);
|
|
331
|
+
color: var(--c15t-devtools-badge-warning, #f59f0a);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.badgeInfo-uWdPCK {
|
|
335
|
+
background-color: var(--c15t-devtools-badge-info-bg, #dcebfe);
|
|
336
|
+
color: var(--c15t-devtools-badge-info, #2463eb);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.badgeNeutral-j3EsE0 {
|
|
340
|
+
background-color: var(--c15t-devtools-badge-neutral-bg, #f0f0f0);
|
|
341
|
+
color: var(--c15t-devtools-badge-neutral, #737373);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.btn-evRVlh {
|
|
345
|
+
justify-content: center;
|
|
346
|
+
align-items: center;
|
|
347
|
+
gap: var(--c15t-space-xs, .25rem);
|
|
348
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-sm, .5rem);
|
|
349
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
350
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
351
|
+
background-color: var(--c15t-surface, #fff);
|
|
352
|
+
color: var(--c15t-text, #171717);
|
|
353
|
+
font-family: inherit;
|
|
354
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
355
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)), border-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
358
|
+
display: inline-flex;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.btn-evRVlh:hover {
|
|
362
|
+
background-color: var(--c15t-surface-hover, #f7f7f7);
|
|
363
|
+
border-color: var(--c15t-border-hover, #c9c9c9);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.btn-evRVlh:focus-visible {
|
|
367
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
368
|
+
outline-offset: 1px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.btn-evRVlh:disabled {
|
|
372
|
+
opacity: .5;
|
|
373
|
+
cursor: not-allowed;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.btnPrimary-dA6nqY {
|
|
377
|
+
background-color: var(--c15t-primary, #335cff);
|
|
378
|
+
border-color: var(--c15t-primary, #335cff);
|
|
379
|
+
color: var(--c15t-text-on-primary, #fff);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.btnPrimary-dA6nqY:hover {
|
|
383
|
+
background-color: var(--c15t-primary-hover, #03f);
|
|
384
|
+
border-color: var(--c15t-primary-hover, #03f);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.btnDanger-eDnqOX {
|
|
388
|
+
background-color: var(--c15t-devtools-badge-error, #ef4343);
|
|
389
|
+
border-color: var(--c15t-devtools-badge-error, #ef4343);
|
|
390
|
+
color: var(--c15t-text-on-primary, #fff);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.btnDanger-eDnqOX:hover {
|
|
394
|
+
background-color: #eb1414;
|
|
395
|
+
border-color: #eb1414;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.btnSmall-TjXoqZ {
|
|
399
|
+
padding: 2px var(--c15t-space-xs, .25rem);
|
|
400
|
+
font-size: 10px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.btnIcon-fiYQAh {
|
|
404
|
+
flex-shrink: 0;
|
|
405
|
+
width: 14px;
|
|
406
|
+
height: 14px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.input-IeTcCs {
|
|
410
|
+
width: 100%;
|
|
411
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-sm, .5rem);
|
|
412
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
413
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
414
|
+
background-color: var(--c15t-surface, #fff);
|
|
415
|
+
color: var(--c15t-text, #171717);
|
|
416
|
+
font-family: inherit;
|
|
417
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
418
|
+
transition: border-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.input-IeTcCs:focus {
|
|
422
|
+
border-color: var(--c15t-primary, #335cff);
|
|
423
|
+
outline: none;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.input-IeTcCs::placeholder {
|
|
427
|
+
color: var(--c15t-text-muted, #737373);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.inputSmall-pJyXcL {
|
|
431
|
+
padding: 2px var(--c15t-space-xs, .25rem);
|
|
432
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.select-byJ1WM {
|
|
436
|
+
width: 100%;
|
|
437
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-sm, .5rem);
|
|
438
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
439
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
440
|
+
background-color: var(--c15t-surface, #fff);
|
|
441
|
+
color: var(--c15t-text, #171717);
|
|
442
|
+
font-family: inherit;
|
|
443
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
444
|
+
cursor: pointer;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.select-byJ1WM:focus {
|
|
448
|
+
border-color: var(--c15t-primary, #335cff);
|
|
449
|
+
outline: none;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.grid-LlrmEz {
|
|
453
|
+
gap: var(--c15t-space-sm, .5rem);
|
|
454
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, 1rem);
|
|
455
|
+
display: grid;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.gridCols2-UgcIqI {
|
|
459
|
+
grid-template-columns: repeat(2, 1fr);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.gridCols3-OmMIq6 {
|
|
463
|
+
grid-template-columns: repeat(3, 1fr);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.gridCard-Qm5xxI {
|
|
467
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, .75rem);
|
|
468
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
469
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
470
|
+
background-color: var(--c15t-surface, #fff);
|
|
471
|
+
transition: border-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
472
|
+
justify-content: space-between;
|
|
473
|
+
align-items: center;
|
|
474
|
+
display: flex;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.gridCard-Qm5xxI:hover {
|
|
478
|
+
border-color: var(--c15t-border-hover, #c9c9c9);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.gridCardTitle-HjXETp {
|
|
482
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
483
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
484
|
+
color: var(--c15t-text, #171717);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.listItem-XUKGIo {
|
|
488
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-md, 1rem);
|
|
489
|
+
border-bottom: 1px solid var(--c15t-border, #e3e3e3);
|
|
490
|
+
justify-content: space-between;
|
|
491
|
+
align-items: center;
|
|
492
|
+
display: flex;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.listItem-XUKGIo:last-child {
|
|
496
|
+
border-bottom: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.listItemContent-WDBF1N {
|
|
500
|
+
flex-direction: column;
|
|
501
|
+
flex: 1;
|
|
502
|
+
gap: 2px;
|
|
503
|
+
min-width: 0;
|
|
504
|
+
display: flex;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.listItemTitle-N89OkC {
|
|
508
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
509
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
510
|
+
color: var(--c15t-text, #171717);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.listItemDescription-E6JHyZ {
|
|
514
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
515
|
+
color: var(--c15t-text-muted, #737373);
|
|
516
|
+
text-overflow: ellipsis;
|
|
517
|
+
white-space: nowrap;
|
|
518
|
+
overflow: hidden;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.listItemActions-F1BfOm {
|
|
522
|
+
align-items: center;
|
|
523
|
+
gap: var(--c15t-space-sm, .5rem);
|
|
524
|
+
flex-shrink: 0;
|
|
525
|
+
display: flex;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.section-a197cB {
|
|
529
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, 1rem);
|
|
530
|
+
border-bottom: 1px solid var(--c15t-border, #e3e3e3);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.section-a197cB:last-child {
|
|
534
|
+
border-bottom: none;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.sectionHeader-Xcljcw {
|
|
538
|
+
margin-bottom: var(--c15t-space-sm, .5rem);
|
|
539
|
+
justify-content: space-between;
|
|
540
|
+
align-items: center;
|
|
541
|
+
display: flex;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.sectionTitle-RUiFld {
|
|
545
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
546
|
+
font-weight: var(--c15t-font-weight-semibold, 600);
|
|
547
|
+
color: var(--c15t-text-muted, #737373);
|
|
548
|
+
text-transform: uppercase;
|
|
549
|
+
letter-spacing: .5px;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.infoRow-RlB_0h {
|
|
553
|
+
padding: var(--c15t-space-xs, .25rem) 0;
|
|
554
|
+
justify-content: space-between;
|
|
555
|
+
align-items: center;
|
|
556
|
+
display: flex;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.infoLabel-_pbK33 {
|
|
560
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
561
|
+
color: var(--c15t-text-muted, #737373);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.infoValue-flMl_e {
|
|
565
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
566
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
567
|
+
color: var(--c15t-text, #171717);
|
|
568
|
+
font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.emptyState-QcmzTQ {
|
|
572
|
+
padding: var(--c15t-space-xl, 2rem);
|
|
573
|
+
text-align: center;
|
|
574
|
+
color: var(--c15t-text-muted, #737373);
|
|
575
|
+
flex-direction: column;
|
|
576
|
+
justify-content: center;
|
|
577
|
+
align-items: center;
|
|
578
|
+
display: flex;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.emptyStateIcon-WHFkX8 {
|
|
582
|
+
width: 32px;
|
|
583
|
+
height: 32px;
|
|
584
|
+
margin-bottom: var(--c15t-space-sm, .5rem);
|
|
585
|
+
opacity: .5;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.emptyStateText-TaLvAJ {
|
|
589
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
@media (prefers-reduced-motion: reduce) {
|
|
593
|
+
.toggle-bPZtik, .toggleThumb-hjGfoX, .btn-evRVlh, .input-IeTcCs, .select-byJ1WM {
|
|
594
|
+
transition: none;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
@media (hover: none) {
|
|
599
|
+
.btn-evRVlh:hover {
|
|
600
|
+
background-color: var(--c15t-surface, #fff);
|
|
601
|
+
border-color: var(--c15t-border, #e3e3e3);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.btnPrimary-dA6nqY:hover {
|
|
605
|
+
background-color: var(--c15t-primary, #335cff);
|
|
606
|
+
border-color: var(--c15t-primary, #335cff);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
`,
|
|
610
|
+
""
|
|
611
|
+
]);
|
|
612
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
613
|
+
toggle: "toggle-bPZtik",
|
|
614
|
+
toggleActive: "toggleActive-Ldlasg",
|
|
615
|
+
toggleThumb: "toggleThumb-hjGfoX",
|
|
616
|
+
toggleDisabled: "toggleDisabled-ZcD8nZ",
|
|
617
|
+
badge: "badge-yA0giZ",
|
|
618
|
+
badgeSuccess: "badgeSuccess-mA76a4",
|
|
619
|
+
badgeError: "badgeError-Agsq7I",
|
|
620
|
+
badgeWarning: "badgeWarning-xpdwMQ",
|
|
621
|
+
badgeInfo: "badgeInfo-uWdPCK",
|
|
622
|
+
badgeNeutral: "badgeNeutral-j3EsE0",
|
|
623
|
+
btn: "btn-evRVlh",
|
|
624
|
+
btnPrimary: "btnPrimary-dA6nqY",
|
|
625
|
+
btnDanger: "btnDanger-eDnqOX",
|
|
626
|
+
btnSmall: "btnSmall-TjXoqZ",
|
|
627
|
+
btnIcon: "btnIcon-fiYQAh",
|
|
628
|
+
input: "input-IeTcCs",
|
|
629
|
+
inputSmall: "inputSmall-pJyXcL",
|
|
630
|
+
select: "select-byJ1WM",
|
|
631
|
+
grid: "grid-LlrmEz",
|
|
632
|
+
gridCols2: "gridCols2-UgcIqI",
|
|
633
|
+
gridCols3: "gridCols3-OmMIq6",
|
|
634
|
+
gridCard: "gridCard-Qm5xxI",
|
|
635
|
+
gridCardTitle: "gridCardTitle-HjXETp",
|
|
636
|
+
listItem: "listItem-XUKGIo",
|
|
637
|
+
listItemContent: "listItemContent-WDBF1N",
|
|
638
|
+
listItemTitle: "listItemTitle-N89OkC",
|
|
639
|
+
listItemDescription: "listItemDescription-E6JHyZ",
|
|
640
|
+
listItemActions: "listItemActions-F1BfOm",
|
|
641
|
+
section: "section-a197cB",
|
|
642
|
+
sectionHeader: "sectionHeader-Xcljcw",
|
|
643
|
+
sectionTitle: "sectionTitle-RUiFld",
|
|
644
|
+
infoRow: "infoRow-RlB_0h",
|
|
645
|
+
infoLabel: "infoLabel-_pbK33",
|
|
646
|
+
infoValue: "infoValue-flMl_e",
|
|
647
|
+
emptyState: "emptyState-QcmzTQ",
|
|
648
|
+
emptyStateIcon: "emptyStateIcon-WHFkX8",
|
|
649
|
+
emptyStateText: "emptyStateText-TaLvAJ"
|
|
650
|
+
};
|
|
651
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
652
|
+
},
|
|
653
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/panel.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
654
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
655
|
+
A: ()=>__rspack_default_export
|
|
656
|
+
});
|
|
657
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
658
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
659
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
660
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
661
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
662
|
+
___CSS_LOADER_EXPORT___.push([
|
|
663
|
+
module.id,
|
|
664
|
+
`.container-XiXwoL {
|
|
665
|
+
z-index: var(--c15t-devtools-z-index, 99999);
|
|
666
|
+
font-family: var(--c15t-font-family, system-ui, -apple-system, sans-serif);
|
|
667
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
668
|
+
line-height: var(--c15t-line-height-normal, 1.5);
|
|
669
|
+
color: var(--c15t-text, #171717);
|
|
670
|
+
-webkit-font-smoothing: antialiased;
|
|
671
|
+
-moz-osx-font-smoothing: grayscale;
|
|
672
|
+
position: fixed;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.floatingButton-Gw8MtJ {
|
|
676
|
+
width: var(--c15t-devtools-button-size, 40px);
|
|
677
|
+
height: var(--c15t-devtools-button-size, 40px);
|
|
678
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
679
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
680
|
+
background-color: var(--c15t-surface, #fff);
|
|
681
|
+
box-shadow: var(--c15t-shadow-lg, 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a);
|
|
682
|
+
cursor: grab;
|
|
683
|
+
z-index: var(--c15t-devtools-z-index, 99999);
|
|
684
|
+
transition: transform var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)), box-shadow var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)), background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
685
|
+
transform-origin: center;
|
|
686
|
+
touch-action: none;
|
|
687
|
+
user-select: none;
|
|
688
|
+
-webkit-tap-highlight-color: transparent;
|
|
689
|
+
justify-content: center;
|
|
690
|
+
align-items: center;
|
|
691
|
+
padding: 0;
|
|
692
|
+
display: flex;
|
|
693
|
+
position: fixed;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
@media (hover: hover) and (pointer: fine) {
|
|
697
|
+
.floatingButton-Gw8MtJ:hover {
|
|
698
|
+
background-color: var(--c15t-surface-hover, #f2f2f2);
|
|
699
|
+
box-shadow: var(--c15t-shadow-xl, 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.floatingButton-Gw8MtJ:focus {
|
|
704
|
+
outline: none;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.floatingButton-Gw8MtJ:focus-visible {
|
|
708
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
709
|
+
outline-offset: 2px;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.floatingButton-Gw8MtJ:active {
|
|
713
|
+
cursor: grabbing;
|
|
714
|
+
transform: scale(1.02);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.floatingButtonIcon-cHWefk {
|
|
718
|
+
width: 50%;
|
|
719
|
+
height: 50%;
|
|
720
|
+
color: var(--c15t-text, #171717);
|
|
721
|
+
pointer-events: none;
|
|
722
|
+
flex-shrink: 0;
|
|
723
|
+
justify-content: center;
|
|
724
|
+
align-items: center;
|
|
725
|
+
display: flex;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.floatingButtonIcon-cHWefk svg {
|
|
729
|
+
width: 100%;
|
|
730
|
+
height: 100%;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.positionBottomRight-ZPD58v {
|
|
734
|
+
bottom: 20px;
|
|
735
|
+
right: 20px;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.positionBottomLeft-MDd6AY {
|
|
739
|
+
bottom: 20px;
|
|
740
|
+
left: 20px;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.positionTopRight-L6yusU {
|
|
744
|
+
top: 20px;
|
|
745
|
+
right: 20px;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.positionTopLeft-C65boy {
|
|
749
|
+
top: 20px;
|
|
750
|
+
left: 20px;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.backdrop-LhVMB5 {
|
|
754
|
+
background-color: var(--c15t-overlay, #00000080);
|
|
755
|
+
z-index: calc(var(--c15t-devtools-z-index, 99999) + 1);
|
|
756
|
+
position: fixed;
|
|
757
|
+
inset: 0;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.panel-jtWove {
|
|
761
|
+
width: var(--c15t-devtools-panel-width, 480px);
|
|
762
|
+
max-height: var(--c15t-devtools-panel-max-height, 560px);
|
|
763
|
+
background-color: var(--c15t-surface, #fff);
|
|
764
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
765
|
+
border-radius: var(--c15t-radius-lg, .75rem);
|
|
766
|
+
box-shadow: var(--c15t-shadow-lg, 0 8px 24px #0000001f);
|
|
767
|
+
z-index: calc(var(--c15t-devtools-z-index, 99999) + 2);
|
|
768
|
+
flex-direction: column;
|
|
769
|
+
display: flex;
|
|
770
|
+
position: fixed;
|
|
771
|
+
overflow: hidden;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.panel-jtWove.positionBottomRight-ZPD58v {
|
|
775
|
+
transform-origin: 100% 100%;
|
|
776
|
+
bottom: 80px;
|
|
777
|
+
right: 20px;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.panel-jtWove.positionBottomLeft-MDd6AY {
|
|
781
|
+
transform-origin: 0 100%;
|
|
782
|
+
bottom: 80px;
|
|
783
|
+
left: 20px;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.panel-jtWove.positionTopRight-L6yusU {
|
|
787
|
+
transform-origin: 100% 0;
|
|
788
|
+
top: 80px;
|
|
789
|
+
right: 20px;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.panel-jtWove.positionTopLeft-C65boy {
|
|
793
|
+
transform-origin: 0 0;
|
|
794
|
+
top: 80px;
|
|
795
|
+
left: 20px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.header-xluoTr {
|
|
799
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, 1rem);
|
|
800
|
+
border-bottom: 1px solid var(--c15t-border, #e3e3e3);
|
|
801
|
+
background-color: var(--c15t-devtools-surface-muted, #f5f5f5);
|
|
802
|
+
justify-content: space-between;
|
|
803
|
+
align-items: center;
|
|
804
|
+
display: flex;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.headerTitle-kJ9XjK {
|
|
808
|
+
align-items: center;
|
|
809
|
+
gap: var(--c15t-space-sm, .5rem);
|
|
810
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
811
|
+
font-weight: var(--c15t-font-weight-semibold, 600);
|
|
812
|
+
color: var(--c15t-text, #171717);
|
|
813
|
+
display: flex;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.headerLogo-PxJ_w1 {
|
|
817
|
+
width: 20px;
|
|
818
|
+
height: 20px;
|
|
819
|
+
color: var(--c15t-primary, #335cff);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.closeButton-Yto0Nb {
|
|
823
|
+
border-radius: var(--c15t-radius-sm, .25rem);
|
|
824
|
+
width: 28px;
|
|
825
|
+
height: 28px;
|
|
826
|
+
color: var(--c15t-text-muted, #737373);
|
|
827
|
+
cursor: pointer;
|
|
828
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)), color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
829
|
+
background-color: #0000;
|
|
830
|
+
border: none;
|
|
831
|
+
justify-content: center;
|
|
832
|
+
align-items: center;
|
|
833
|
+
padding: 0;
|
|
834
|
+
display: flex;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.closeButton-Yto0Nb:hover {
|
|
838
|
+
background-color: var(--c15t-surface-hover, #f7f7f7);
|
|
839
|
+
color: var(--c15t-text, #171717);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.closeButton-Yto0Nb:focus-visible {
|
|
843
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
844
|
+
outline-offset: 1px;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.closeButtonIcon-fVlR1I {
|
|
848
|
+
width: 16px;
|
|
849
|
+
height: 16px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.content-yDMYfG {
|
|
853
|
+
overscroll-behavior: contain;
|
|
854
|
+
-webkit-overflow-scrolling: touch;
|
|
855
|
+
flex: auto;
|
|
856
|
+
min-height: 200px;
|
|
857
|
+
overflow: hidden auto;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.footer-ESbmwQ {
|
|
861
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-md, 1rem);
|
|
862
|
+
border-top: 1px solid var(--c15t-border, #e3e3e3);
|
|
863
|
+
background-color: var(--c15t-devtools-surface-muted, #f5f5f5);
|
|
864
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
865
|
+
color: var(--c15t-text-muted, #737373);
|
|
866
|
+
justify-content: space-between;
|
|
867
|
+
align-items: center;
|
|
868
|
+
display: flex;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.footerStatus-rlb99A {
|
|
872
|
+
align-items: center;
|
|
873
|
+
gap: var(--c15t-space-xs, .25rem);
|
|
874
|
+
display: flex;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.statusDot-hYJoej {
|
|
878
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
879
|
+
width: 6px;
|
|
880
|
+
height: 6px;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.statusConnected-hPSUgS {
|
|
884
|
+
background-color: var(--c15t-devtools-badge-success, #21c45d);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.statusDisconnected-HIpcee {
|
|
888
|
+
background-color: var(--c15t-devtools-badge-error, #ef4343);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.errorState-DRtU3f {
|
|
892
|
+
padding: var(--c15t-space-xl, 2rem);
|
|
893
|
+
text-align: center;
|
|
894
|
+
justify-content: center;
|
|
895
|
+
align-items: center;
|
|
896
|
+
gap: var(--c15t-space-md, 1rem);
|
|
897
|
+
flex-direction: column;
|
|
898
|
+
display: flex;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.errorIcon-_o6Vta {
|
|
902
|
+
width: 48px;
|
|
903
|
+
height: 48px;
|
|
904
|
+
color: var(--c15t-devtools-badge-warning, #f59f0a);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.errorTitle-tkOy1H {
|
|
908
|
+
font-size: var(--c15t-font-size-base, 1rem);
|
|
909
|
+
font-weight: var(--c15t-font-weight-semibold, 600);
|
|
910
|
+
color: var(--c15t-text, #171717);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.errorMessage-MPRZNN {
|
|
914
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
915
|
+
color: var(--c15t-text-muted, #737373);
|
|
916
|
+
max-width: 280px;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
@media (prefers-reduced-motion: reduce) {
|
|
920
|
+
.floatingButton-Gw8MtJ, .closeButton-Yto0Nb {
|
|
921
|
+
transition: none;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
@media (hover: none) {
|
|
926
|
+
.floatingButton-Gw8MtJ:hover {
|
|
927
|
+
box-shadow: var(--c15t-shadow-md, 0 4px 12px #00000014);
|
|
928
|
+
transform: none;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.dropdownMenu-aKK18l {
|
|
933
|
+
min-width: 200px;
|
|
934
|
+
padding: var(--c15t-space-xs, .25rem);
|
|
935
|
+
border: 1px solid var(--c15t-border, #e3e3e3);
|
|
936
|
+
border-radius: var(--c15t-radius-lg, .75rem);
|
|
937
|
+
background-color: var(--c15t-surface, #fff);
|
|
938
|
+
box-shadow: var(--c15t-shadow-lg, 0 8px 24px #0000001f);
|
|
939
|
+
z-index: calc(var(--c15t-devtools-z-index, 99999) + 1);
|
|
940
|
+
opacity: 0;
|
|
941
|
+
transform-origin: 0 100%;
|
|
942
|
+
pointer-events: none;
|
|
943
|
+
transition: opacity var(--c15t-duration-fast, .1s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1)), transform var(--c15t-duration-fast, .1s) var(--c15t-easing-out, cubic-bezier(.215, .61, .355, 1));
|
|
944
|
+
position: fixed;
|
|
945
|
+
transform: scale(.95)translateY(8px);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.dropdownMenu-aKK18l[data-state="open"] {
|
|
949
|
+
opacity: 1;
|
|
950
|
+
pointer-events: auto;
|
|
951
|
+
transform: scale(1)translateY(0);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.dropdownMenuBottomLeft-MKUEpC {
|
|
955
|
+
transform-origin: 0 100%;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.dropdownMenuBottomRight-nXiRRF {
|
|
959
|
+
transform-origin: 100% 100%;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.dropdownMenuTopLeft-YlFVSe {
|
|
963
|
+
transform-origin: 0 0;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.dropdownMenuTopRight-OpvmUO {
|
|
967
|
+
transform-origin: 100% 0;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.menuItem-kBbHRP {
|
|
971
|
+
align-items: center;
|
|
972
|
+
gap: var(--c15t-space-sm, .5rem);
|
|
973
|
+
width: 100%;
|
|
974
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, .75rem);
|
|
975
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
976
|
+
color: var(--c15t-text, #171717);
|
|
977
|
+
font-size: var(--c15t-font-size-sm, .875rem);
|
|
978
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
979
|
+
text-align: left;
|
|
980
|
+
cursor: pointer;
|
|
981
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
982
|
+
background: none;
|
|
983
|
+
border: none;
|
|
984
|
+
display: flex;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.menuItem-kBbHRP:hover {
|
|
988
|
+
background-color: var(--c15t-surface-hover, #f2f2f2);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.menuItem-kBbHRP:focus-visible {
|
|
992
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
993
|
+
outline-offset: -2px;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.menuItemIcon-P3pP5K {
|
|
997
|
+
width: 20px;
|
|
998
|
+
height: 20px;
|
|
999
|
+
color: var(--c15t-text-muted, #737373);
|
|
1000
|
+
flex-shrink: 0;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.menuItemLabel-d_d7sD {
|
|
1004
|
+
flex: 1;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.menuItemDescription-hqdfJA {
|
|
1008
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
1009
|
+
color: var(--c15t-text-muted, #737373);
|
|
1010
|
+
font-weight: var(--c15t-font-weight-normal, 400);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.menuItemContent-hBlruV {
|
|
1014
|
+
flex: 1;
|
|
1015
|
+
min-width: 0;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.menuItemToggle-RHrCAX {
|
|
1019
|
+
flex-shrink: 0;
|
|
1020
|
+
margin-left: auto;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.menuItemToggleTrack-gDp_f3 {
|
|
1024
|
+
background-color: var(--c15t-switch-track, #d9d9d9);
|
|
1025
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
1026
|
+
width: 36px;
|
|
1027
|
+
height: 20px;
|
|
1028
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
1029
|
+
position: relative;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.menuItemToggleThumb-ioqqyc {
|
|
1033
|
+
background-color: var(--c15t-switch-thumb, #fff);
|
|
1034
|
+
border-radius: var(--c15t-radius-full, 9999px);
|
|
1035
|
+
width: 16px;
|
|
1036
|
+
height: 16px;
|
|
1037
|
+
box-shadow: var(--c15t-shadow-sm, 0 1px 2px #0000001a);
|
|
1038
|
+
transition: transform var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
1039
|
+
position: absolute;
|
|
1040
|
+
top: 2px;
|
|
1041
|
+
left: 2px;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.menuItemToggleChecked-K3BPtk .menuItemToggleTrack-gDp_f3 {
|
|
1045
|
+
background-color: var(--c15t-switch-track-checked, #335cff);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.menuItemToggleChecked-K3BPtk .menuItemToggleThumb-ioqqyc {
|
|
1049
|
+
transform: translateX(16px);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.menuDivider-JIBdhU {
|
|
1053
|
+
height: 1px;
|
|
1054
|
+
margin: var(--c15t-space-xs, .25rem) 0;
|
|
1055
|
+
background-color: var(--c15t-border, #e3e3e3);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.unifiedButtonWrapper-d3Frwt {
|
|
1059
|
+
display: contents;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1063
|
+
.dropdownMenu-aKK18l {
|
|
1064
|
+
transition: none;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
`,
|
|
1068
|
+
""
|
|
1069
|
+
]);
|
|
1070
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1071
|
+
container: "container-XiXwoL",
|
|
1072
|
+
floatingButton: "floatingButton-Gw8MtJ",
|
|
1073
|
+
floatingButtonIcon: "floatingButtonIcon-cHWefk",
|
|
1074
|
+
positionBottomRight: "positionBottomRight-ZPD58v",
|
|
1075
|
+
positionBottomLeft: "positionBottomLeft-MDd6AY",
|
|
1076
|
+
positionTopRight: "positionTopRight-L6yusU",
|
|
1077
|
+
positionTopLeft: "positionTopLeft-C65boy",
|
|
1078
|
+
backdrop: "backdrop-LhVMB5",
|
|
1079
|
+
panel: "panel-jtWove",
|
|
1080
|
+
header: "header-xluoTr",
|
|
1081
|
+
headerTitle: "headerTitle-kJ9XjK",
|
|
1082
|
+
headerLogo: "headerLogo-PxJ_w1",
|
|
1083
|
+
closeButton: "closeButton-Yto0Nb",
|
|
1084
|
+
closeButtonIcon: "closeButtonIcon-fVlR1I",
|
|
1085
|
+
content: "content-yDMYfG",
|
|
1086
|
+
footer: "footer-ESbmwQ",
|
|
1087
|
+
footerStatus: "footerStatus-rlb99A",
|
|
1088
|
+
statusDot: "statusDot-hYJoej",
|
|
1089
|
+
statusConnected: "statusConnected-hPSUgS",
|
|
1090
|
+
statusDisconnected: "statusDisconnected-HIpcee",
|
|
1091
|
+
errorState: "errorState-DRtU3f",
|
|
1092
|
+
errorIcon: "errorIcon-_o6Vta",
|
|
1093
|
+
errorTitle: "errorTitle-tkOy1H",
|
|
1094
|
+
errorMessage: "errorMessage-MPRZNN",
|
|
1095
|
+
dropdownMenu: "dropdownMenu-aKK18l",
|
|
1096
|
+
dropdownMenuBottomLeft: "dropdownMenuBottomLeft-MKUEpC",
|
|
1097
|
+
dropdownMenuBottomRight: "dropdownMenuBottomRight-nXiRRF",
|
|
1098
|
+
dropdownMenuTopLeft: "dropdownMenuTopLeft-YlFVSe",
|
|
1099
|
+
dropdownMenuTopRight: "dropdownMenuTopRight-OpvmUO",
|
|
1100
|
+
menuItem: "menuItem-kBbHRP",
|
|
1101
|
+
menuItemIcon: "menuItemIcon-P3pP5K",
|
|
1102
|
+
menuItemLabel: "menuItemLabel-d_d7sD",
|
|
1103
|
+
menuItemDescription: "menuItemDescription-hqdfJA",
|
|
1104
|
+
menuItemContent: "menuItemContent-hBlruV",
|
|
1105
|
+
menuItemToggle: "menuItemToggle-RHrCAX",
|
|
1106
|
+
menuItemToggleTrack: "menuItemToggleTrack-gDp_f3",
|
|
1107
|
+
menuItemToggleThumb: "menuItemToggleThumb-ioqqyc",
|
|
1108
|
+
menuItemToggleChecked: "menuItemToggleChecked-K3BPtk",
|
|
1109
|
+
menuDivider: "menuDivider-JIBdhU",
|
|
1110
|
+
unifiedButtonWrapper: "unifiedButtonWrapper-d3Frwt"
|
|
1111
|
+
};
|
|
1112
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1113
|
+
},
|
|
1114
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/tabs.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
1115
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1116
|
+
A: ()=>__rspack_default_export
|
|
1117
|
+
});
|
|
1118
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
1119
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
1120
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
1121
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
1122
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
1123
|
+
___CSS_LOADER_EXPORT___.push([
|
|
1124
|
+
module.id,
|
|
1125
|
+
`.tabList-IyuiBE {
|
|
1126
|
+
gap: var(--c15t-space-xs, .25rem);
|
|
1127
|
+
padding: var(--c15t-space-sm, .5rem) var(--c15t-space-md, 1rem);
|
|
1128
|
+
border-bottom: 1px solid var(--c15t-border, #e3e3e3);
|
|
1129
|
+
background-color: var(--c15t-surface, #fff);
|
|
1130
|
+
scrollbar-width: none;
|
|
1131
|
+
-ms-overflow-style: none;
|
|
1132
|
+
display: flex;
|
|
1133
|
+
overflow-x: auto;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.tabList-IyuiBE::-webkit-scrollbar {
|
|
1137
|
+
display: none;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.tab-yfDEqg {
|
|
1141
|
+
align-items: center;
|
|
1142
|
+
gap: var(--c15t-space-xs, .25rem);
|
|
1143
|
+
padding: var(--c15t-space-xs, .25rem) var(--c15t-space-sm, .5rem);
|
|
1144
|
+
border-radius: var(--c15t-radius-md, .5rem);
|
|
1145
|
+
color: var(--c15t-text-muted, #737373);
|
|
1146
|
+
font-family: inherit;
|
|
1147
|
+
font-size: var(--c15t-devtools-font-size-xs, .75rem);
|
|
1148
|
+
font-weight: var(--c15t-font-weight-medium, 500);
|
|
1149
|
+
cursor: pointer;
|
|
1150
|
+
white-space: nowrap;
|
|
1151
|
+
transition: background-color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1)), color var(--c15t-duration-fast, .1s) var(--c15t-easing, cubic-bezier(.4, 0, .2, 1));
|
|
1152
|
+
background-color: #0000;
|
|
1153
|
+
border: none;
|
|
1154
|
+
display: flex;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.tab-yfDEqg:hover {
|
|
1158
|
+
background-color: var(--c15t-surface-hover, #f7f7f7);
|
|
1159
|
+
color: var(--c15t-text, #171717);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.tab-yfDEqg:focus-visible {
|
|
1163
|
+
outline: 2px solid var(--c15t-primary, #335cff);
|
|
1164
|
+
outline-offset: 1px;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.tabActive-r4hing {
|
|
1168
|
+
background-color: var(--c15t-primary, #335cff);
|
|
1169
|
+
color: var(--c15t-text-on-primary, #fff);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.tabActive-r4hing:hover {
|
|
1173
|
+
background-color: var(--c15t-primary-hover, #03f);
|
|
1174
|
+
color: var(--c15t-text-on-primary, #fff);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
.tabIcon-U9tnu0 {
|
|
1178
|
+
flex-shrink: 0;
|
|
1179
|
+
width: 14px;
|
|
1180
|
+
height: 14px;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.tabDisabled-lDuv5l {
|
|
1184
|
+
opacity: .5;
|
|
1185
|
+
cursor: not-allowed;
|
|
1186
|
+
pointer-events: none;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.tabDisabled-lDuv5l:hover {
|
|
1190
|
+
color: var(--c15t-text-muted, #737373);
|
|
1191
|
+
background-color: #0000;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.tabPanel-QKO8FX {
|
|
1195
|
+
display: none;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.tabPanelActive-mrNlGE {
|
|
1199
|
+
display: block;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1203
|
+
.tab-yfDEqg {
|
|
1204
|
+
transition: none;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
@media (hover: none) {
|
|
1209
|
+
.tab-yfDEqg:hover:not(.tabActive-r4hing) {
|
|
1210
|
+
color: var(--c15t-text-muted, #737373);
|
|
1211
|
+
background-color: #0000;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
`,
|
|
1215
|
+
""
|
|
1216
|
+
]);
|
|
1217
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1218
|
+
tabList: "tabList-IyuiBE",
|
|
1219
|
+
tab: "tab-yfDEqg",
|
|
1220
|
+
tabActive: "tabActive-r4hing",
|
|
1221
|
+
tabIcon: "tabIcon-U9tnu0",
|
|
1222
|
+
tabDisabled: "tabDisabled-lDuv5l",
|
|
1223
|
+
tabPanel: "tabPanel-QKO8FX",
|
|
1224
|
+
tabPanelActive: "tabPanelActive-mrNlGE"
|
|
1225
|
+
};
|
|
1226
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1227
|
+
},
|
|
1228
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/tokens.css" (module, __webpack_exports__, __webpack_require__) {
|
|
1229
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1230
|
+
A: ()=>__rspack_default_export
|
|
1231
|
+
});
|
|
1232
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
1233
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
1234
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
1235
|
+
var _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
1236
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_bun_rsbuild_core_1_6_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
1237
|
+
___CSS_LOADER_EXPORT___.push([
|
|
1238
|
+
module.id,
|
|
1239
|
+
`:root {
|
|
1240
|
+
--c15t-devtools-panel-width: 480px;
|
|
1241
|
+
--c15t-devtools-panel-max-height: 560px;
|
|
1242
|
+
--c15t-devtools-button-size: 40px;
|
|
1243
|
+
--c15t-devtools-z-index: 99999;
|
|
1244
|
+
--c15t-devtools-surface-muted: var(--c15t-surface-hover, #f7f7f7);
|
|
1245
|
+
--c15t-devtools-font-size-xs: .75rem;
|
|
1246
|
+
--c15t-devtools-badge-success: #21c45d;
|
|
1247
|
+
--c15t-devtools-badge-success-bg: #e4fbed;
|
|
1248
|
+
--c15t-devtools-badge-error: #ef4343;
|
|
1249
|
+
--c15t-devtools-badge-error-bg: #fde7e7;
|
|
1250
|
+
--c15t-devtools-badge-warning: #f59f0a;
|
|
1251
|
+
--c15t-devtools-badge-warning-bg: #fef7dc;
|
|
1252
|
+
--c15t-devtools-badge-info: #2463eb;
|
|
1253
|
+
--c15t-devtools-badge-info-bg: #dcebfe;
|
|
1254
|
+
--c15t-devtools-badge-neutral: #737373;
|
|
1255
|
+
--c15t-devtools-badge-neutral-bg: #f0f0f0;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
:is(:global(.c15t-dark), :global(.dark)) {
|
|
1259
|
+
--c15t-devtools-surface-muted: var(--c15t-surface-hover, #292929);
|
|
1260
|
+
--c15t-devtools-badge-success-bg: #21c45d33;
|
|
1261
|
+
--c15t-devtools-badge-error-bg: #ef434333;
|
|
1262
|
+
--c15t-devtools-badge-warning-bg: #f59f0a33;
|
|
1263
|
+
--c15t-devtools-badge-info-bg: #2463eb33;
|
|
1264
|
+
--c15t-devtools-badge-neutral-bg: #383838;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
@media (prefers-color-scheme: dark) {
|
|
1268
|
+
:root {
|
|
1269
|
+
--c15t-devtools-surface-muted: var(--c15t-surface-hover, #292929);
|
|
1270
|
+
--c15t-devtools-badge-success-bg: #21c45d33;
|
|
1271
|
+
--c15t-devtools-badge-error-bg: #ef434333;
|
|
1272
|
+
--c15t-devtools-badge-warning-bg: #f59f0a33;
|
|
1273
|
+
--c15t-devtools-badge-info-bg: #2463eb33;
|
|
1274
|
+
--c15t-devtools-badge-neutral-bg: #383838;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
`,
|
|
1278
|
+
""
|
|
1279
|
+
]);
|
|
1280
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1281
|
+
},
|
|
1282
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
|
|
1283
|
+
module.exports = function(cssWithMappingToString) {
|
|
1284
|
+
var list = [];
|
|
1285
|
+
list.toString = function() {
|
|
1286
|
+
return this.map(function(item) {
|
|
1287
|
+
var content = "";
|
|
1288
|
+
var needLayer = void 0 !== item[5];
|
|
1289
|
+
if (item[4]) content += "@supports (".concat(item[4], ") {");
|
|
1290
|
+
if (item[2]) content += "@media ".concat(item[2], " {");
|
|
1291
|
+
if (needLayer) content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
|
1292
|
+
content += cssWithMappingToString(item);
|
|
1293
|
+
if (needLayer) content += "}";
|
|
1294
|
+
if (item[2]) content += "}";
|
|
1295
|
+
if (item[4]) content += "}";
|
|
1296
|
+
return content;
|
|
1297
|
+
}).join("");
|
|
1298
|
+
};
|
|
1299
|
+
list.i = function(modules, media, dedupe, supports, layer) {
|
|
1300
|
+
if ("string" == typeof modules) modules = [
|
|
1301
|
+
[
|
|
1302
|
+
null,
|
|
1303
|
+
modules,
|
|
1304
|
+
void 0
|
|
1305
|
+
]
|
|
1306
|
+
];
|
|
1307
|
+
var alreadyImportedModules = {};
|
|
1308
|
+
if (dedupe) for(var k = 0; k < this.length; k++){
|
|
1309
|
+
var id = this[k][0];
|
|
1310
|
+
if (null != id) alreadyImportedModules[id] = true;
|
|
1311
|
+
}
|
|
1312
|
+
for(var _k = 0; _k < modules.length; _k++){
|
|
1313
|
+
var item = [].concat(modules[_k]);
|
|
1314
|
+
if (!dedupe || !alreadyImportedModules[item[0]]) {
|
|
1315
|
+
if (void 0 !== layer) if (void 0 === item[5]) item[5] = layer;
|
|
1316
|
+
else {
|
|
1317
|
+
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
1318
|
+
item[5] = layer;
|
|
1319
|
+
}
|
|
1320
|
+
if (media) if (item[2]) {
|
|
1321
|
+
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
1322
|
+
item[2] = media;
|
|
1323
|
+
} else item[2] = media;
|
|
1324
|
+
if (supports) if (item[4]) {
|
|
1325
|
+
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
1326
|
+
item[4] = supports;
|
|
1327
|
+
} else item[4] = "".concat(supports);
|
|
1328
|
+
list.push(item);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
return list;
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
|
|
1336
|
+
module.exports = function(i) {
|
|
1337
|
+
return i[1];
|
|
1338
|
+
};
|
|
1339
|
+
},
|
|
1340
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
|
|
1341
|
+
var stylesInDOM = [];
|
|
1342
|
+
function getIndexByIdentifier(identifier) {
|
|
1343
|
+
var result = -1;
|
|
1344
|
+
for(var i = 0; i < stylesInDOM.length; i++)if (stylesInDOM[i].identifier === identifier) {
|
|
1345
|
+
result = i;
|
|
1346
|
+
break;
|
|
1347
|
+
}
|
|
1348
|
+
return result;
|
|
1349
|
+
}
|
|
1350
|
+
function modulesToDom(list, options) {
|
|
1351
|
+
var idCountMap = {};
|
|
1352
|
+
var identifiers = [];
|
|
1353
|
+
for(var i = 0; i < list.length; i++){
|
|
1354
|
+
var item = list[i];
|
|
1355
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
1356
|
+
var count = idCountMap[id] || 0;
|
|
1357
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
1358
|
+
idCountMap[id] = count + 1;
|
|
1359
|
+
var indexByIdentifier = getIndexByIdentifier(identifier);
|
|
1360
|
+
var obj = {
|
|
1361
|
+
css: item[1],
|
|
1362
|
+
media: item[2],
|
|
1363
|
+
sourceMap: item[3],
|
|
1364
|
+
supports: item[4],
|
|
1365
|
+
layer: item[5]
|
|
1366
|
+
};
|
|
1367
|
+
if (-1 !== indexByIdentifier) {
|
|
1368
|
+
stylesInDOM[indexByIdentifier].references++;
|
|
1369
|
+
stylesInDOM[indexByIdentifier].updater(obj);
|
|
1370
|
+
} else {
|
|
1371
|
+
var updater = addElementStyle(obj, options);
|
|
1372
|
+
options.byIndex = i;
|
|
1373
|
+
stylesInDOM.splice(i, 0, {
|
|
1374
|
+
identifier: identifier,
|
|
1375
|
+
updater: updater,
|
|
1376
|
+
references: 1
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
identifiers.push(identifier);
|
|
1380
|
+
}
|
|
1381
|
+
return identifiers;
|
|
1382
|
+
}
|
|
1383
|
+
function addElementStyle(obj, options) {
|
|
1384
|
+
var api = options.domAPI(options);
|
|
1385
|
+
api.update(obj);
|
|
1386
|
+
var updater = function(newObj) {
|
|
1387
|
+
if (newObj) {
|
|
1388
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) return;
|
|
1389
|
+
api.update(obj = newObj);
|
|
1390
|
+
} else api.remove();
|
|
1391
|
+
};
|
|
1392
|
+
return updater;
|
|
1393
|
+
}
|
|
1394
|
+
module.exports = function(list, options) {
|
|
1395
|
+
options = options || {};
|
|
1396
|
+
list = list || [];
|
|
1397
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
1398
|
+
return function(newList) {
|
|
1399
|
+
newList = newList || [];
|
|
1400
|
+
for(var i = 0; i < lastIdentifiers.length; i++){
|
|
1401
|
+
var identifier = lastIdentifiers[i];
|
|
1402
|
+
var index = getIndexByIdentifier(identifier);
|
|
1403
|
+
stylesInDOM[index].references--;
|
|
1404
|
+
}
|
|
1405
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
1406
|
+
for(var _i = 0; _i < lastIdentifiers.length; _i++){
|
|
1407
|
+
var _identifier = lastIdentifiers[_i];
|
|
1408
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
1409
|
+
if (0 === stylesInDOM[_index].references) {
|
|
1410
|
+
stylesInDOM[_index].updater();
|
|
1411
|
+
stylesInDOM.splice(_index, 1);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
lastIdentifiers = newLastIdentifiers;
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
},
|
|
1418
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module) {
|
|
1419
|
+
var memo = {};
|
|
1420
|
+
function getTarget(target) {
|
|
1421
|
+
if (void 0 === memo[target]) {
|
|
1422
|
+
var styleTarget = document.querySelector(target);
|
|
1423
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) try {
|
|
1424
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
1425
|
+
} catch (e) {
|
|
1426
|
+
styleTarget = null;
|
|
1427
|
+
}
|
|
1428
|
+
memo[target] = styleTarget;
|
|
1429
|
+
}
|
|
1430
|
+
return memo[target];
|
|
1431
|
+
}
|
|
1432
|
+
function insertBySelector(insert, style) {
|
|
1433
|
+
var target = getTarget(insert);
|
|
1434
|
+
if (!target) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
1435
|
+
target.appendChild(style);
|
|
1436
|
+
}
|
|
1437
|
+
module.exports = insertBySelector;
|
|
1438
|
+
},
|
|
1439
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module) {
|
|
1440
|
+
function insertStyleElement(options) {
|
|
1441
|
+
var element = document.createElement("style");
|
|
1442
|
+
options.setAttributes(element, options.attributes);
|
|
1443
|
+
options.insert(element, options.options);
|
|
1444
|
+
return element;
|
|
1445
|
+
}
|
|
1446
|
+
module.exports = insertStyleElement;
|
|
1447
|
+
},
|
|
1448
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module, __unused_webpack_exports, __webpack_require__) {
|
|
1449
|
+
function setAttributesWithoutAttributes(styleElement) {
|
|
1450
|
+
var nonce = __webpack_require__.nc;
|
|
1451
|
+
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
1452
|
+
}
|
|
1453
|
+
module.exports = setAttributesWithoutAttributes;
|
|
1454
|
+
},
|
|
1455
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module) {
|
|
1456
|
+
function apply(styleElement, options, obj) {
|
|
1457
|
+
var css = "";
|
|
1458
|
+
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
1459
|
+
if (obj.media) css += "@media ".concat(obj.media, " {");
|
|
1460
|
+
var needLayer = void 0 !== obj.layer;
|
|
1461
|
+
if (needLayer) css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
|
|
1462
|
+
css += obj.css;
|
|
1463
|
+
if (needLayer) css += "}";
|
|
1464
|
+
if (obj.media) css += "}";
|
|
1465
|
+
if (obj.supports) css += "}";
|
|
1466
|
+
var sourceMap = obj.sourceMap;
|
|
1467
|
+
if (sourceMap && "undefined" != typeof btoa) css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
1468
|
+
options.styleTagTransform(css, styleElement, options.options);
|
|
1469
|
+
}
|
|
1470
|
+
function removeStyleElement(styleElement) {
|
|
1471
|
+
if (null === styleElement.parentNode) return false;
|
|
1472
|
+
styleElement.parentNode.removeChild(styleElement);
|
|
1473
|
+
}
|
|
1474
|
+
function domAPI(options) {
|
|
1475
|
+
if ("undefined" == typeof document) return {
|
|
1476
|
+
update: function() {},
|
|
1477
|
+
remove: function() {}
|
|
1478
|
+
};
|
|
1479
|
+
var styleElement = options.insertStyleElement(options);
|
|
1480
|
+
return {
|
|
1481
|
+
update: function(obj) {
|
|
1482
|
+
apply(styleElement, options, obj);
|
|
1483
|
+
},
|
|
1484
|
+
remove: function() {
|
|
1485
|
+
removeStyleElement(styleElement);
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
module.exports = domAPI;
|
|
1490
|
+
},
|
|
1491
|
+
"../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module) {
|
|
1492
|
+
function styleTagTransform(css, styleElement) {
|
|
1493
|
+
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
1494
|
+
else {
|
|
1495
|
+
while(styleElement.firstChild)styleElement.removeChild(styleElement.firstChild);
|
|
1496
|
+
styleElement.appendChild(document.createTextNode(css));
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
module.exports = styleTagTransform;
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1502
|
+
var __webpack_module_cache__ = {};
|
|
1503
|
+
function __webpack_require__(moduleId) {
|
|
1504
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1505
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
1506
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
1507
|
+
id: moduleId,
|
|
1508
|
+
exports: {}
|
|
1509
|
+
};
|
|
1510
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1511
|
+
return module.exports;
|
|
1512
|
+
}
|
|
1513
|
+
(()=>{
|
|
1514
|
+
__webpack_require__.n = (module)=>{
|
|
1515
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
1516
|
+
__webpack_require__.d(getter, {
|
|
1517
|
+
a: getter
|
|
1518
|
+
});
|
|
1519
|
+
return getter;
|
|
1520
|
+
};
|
|
1521
|
+
})();
|
|
1522
|
+
(()=>{
|
|
1523
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
1524
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
1525
|
+
enumerable: true,
|
|
1526
|
+
get: definition[key]
|
|
1527
|
+
});
|
|
1528
|
+
};
|
|
1529
|
+
})();
|
|
1530
|
+
(()=>{
|
|
1531
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1532
|
+
})();
|
|
1533
|
+
(()=>{
|
|
1534
|
+
__webpack_require__.r = (exports1)=>{
|
|
1535
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
1536
|
+
value: 'Module'
|
|
1537
|
+
});
|
|
1538
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
1539
|
+
value: true
|
|
1540
|
+
});
|
|
1541
|
+
};
|
|
1542
|
+
})();
|
|
1543
|
+
(()=>{
|
|
1544
|
+
__webpack_require__.nc = void 0;
|
|
1545
|
+
})();
|
|
1546
|
+
var __webpack_exports__ = {};
|
|
1547
|
+
(()=>{
|
|
1548
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1549
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1550
|
+
c15tDevtoolsPlugin: ()=>c15tDevtoolsPlugin
|
|
1551
|
+
});
|
|
1552
|
+
var injectStylesIntoStyleTag = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
1553
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
1554
|
+
var styleDomAPI = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
1555
|
+
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
1556
|
+
var insertBySelector = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
1557
|
+
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
1558
|
+
var setAttributesWithoutAttributes = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
1559
|
+
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
1560
|
+
var insertStyleElement = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
1561
|
+
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
1562
|
+
var styleTagTransform = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
1563
|
+
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
1564
|
+
var animations_module = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/animations.module.css");
|
|
1565
|
+
var animations_module_options = {};
|
|
1566
|
+
animations_module_options.styleTagTransform = styleTagTransform_default();
|
|
1567
|
+
animations_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
1568
|
+
animations_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
1569
|
+
animations_module_options.domAPI = styleDomAPI_default();
|
|
1570
|
+
animations_module_options.insertStyleElement = insertStyleElement_default();
|
|
1571
|
+
injectStylesIntoStyleTag_default()(animations_module.A, animations_module_options);
|
|
1572
|
+
animations_module.A && animations_module.A.locals && animations_module.A.locals;
|
|
1573
|
+
var panel_module = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/panel.module.css");
|
|
1574
|
+
var panel_module_options = {};
|
|
1575
|
+
panel_module_options.styleTagTransform = styleTagTransform_default();
|
|
1576
|
+
panel_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
1577
|
+
panel_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
1578
|
+
panel_module_options.domAPI = styleDomAPI_default();
|
|
1579
|
+
panel_module_options.insertStyleElement = insertStyleElement_default();
|
|
1580
|
+
injectStylesIntoStyleTag_default()(panel_module.A, panel_module_options);
|
|
1581
|
+
panel_module.A && panel_module.A.locals && panel_module.A.locals;
|
|
1582
|
+
'[data-c15t-trigger], [aria-label*="privacy settings"], [aria-label*="preference"]';
|
|
1583
|
+
function createElement(options = {}) {
|
|
1584
|
+
const { tag = 'div', text, html, children, className, id, style, dataset, onClick, onMouseEnter, onMouseLeave, onKeyDown, onKeyUp, onFocus, onBlur, onChange, onInput, onAnimationEnd, onTransitionEnd, ...attrs } = options;
|
|
1585
|
+
const element = document.createElement(tag);
|
|
1586
|
+
if (className) element.className = className;
|
|
1587
|
+
if (id) element.id = id;
|
|
1588
|
+
if (style) {
|
|
1589
|
+
for (const [key, value] of Object.entries(style))if (void 0 !== value) element.style.setProperty(key.replace(/([A-Z])/g, '-$1').toLowerCase(), String(value));
|
|
1590
|
+
}
|
|
1591
|
+
if (dataset) for (const [key, value] of Object.entries(dataset))element.dataset[key] = value;
|
|
1592
|
+
if (text) element.textContent = text;
|
|
1593
|
+
if (html) element.innerHTML = html;
|
|
1594
|
+
if (children) {
|
|
1595
|
+
for (const child of children)if (null != child) if ('string' == typeof child) element.appendChild(document.createTextNode(child));
|
|
1596
|
+
else element.appendChild(child);
|
|
1597
|
+
}
|
|
1598
|
+
if (void 0 !== attrs.ariaLabel) element.setAttribute('aria-label', attrs.ariaLabel);
|
|
1599
|
+
if (void 0 !== attrs.ariaExpanded) element.setAttribute('aria-expanded', attrs.ariaExpanded);
|
|
1600
|
+
if (void 0 !== attrs.ariaHidden) element.setAttribute('aria-hidden', attrs.ariaHidden);
|
|
1601
|
+
if (void 0 !== attrs.ariaSelected) element.setAttribute('aria-selected', attrs.ariaSelected);
|
|
1602
|
+
if (void 0 !== attrs.ariaControls) element.setAttribute('aria-controls', attrs.ariaControls);
|
|
1603
|
+
if (void 0 !== attrs.ariaChecked) element.setAttribute('aria-checked', attrs.ariaChecked);
|
|
1604
|
+
for (const [key, value] of Object.entries(attrs))if (void 0 !== value && !key.startsWith('aria')) if ('boolean' == typeof value) {
|
|
1605
|
+
if (value) element.setAttribute(key, '');
|
|
1606
|
+
} else element.setAttribute(key, String(value));
|
|
1607
|
+
if (onClick) element.addEventListener('click', onClick);
|
|
1608
|
+
if (onMouseEnter) element.addEventListener('mouseenter', onMouseEnter);
|
|
1609
|
+
if (onMouseLeave) element.addEventListener('mouseleave', onMouseLeave);
|
|
1610
|
+
if (onKeyDown) element.addEventListener('keydown', onKeyDown);
|
|
1611
|
+
if (onKeyUp) element.addEventListener('keyup', onKeyUp);
|
|
1612
|
+
if (onFocus) element.addEventListener('focus', onFocus);
|
|
1613
|
+
if (onBlur) element.addEventListener('blur', onBlur);
|
|
1614
|
+
if (onChange) element.addEventListener('change', onChange);
|
|
1615
|
+
if (onInput) element.addEventListener('input', onInput);
|
|
1616
|
+
if (onAnimationEnd) element.addEventListener('animationend', onAnimationEnd);
|
|
1617
|
+
if (onTransitionEnd) element.addEventListener('transitionend', onTransitionEnd);
|
|
1618
|
+
return element;
|
|
1619
|
+
}
|
|
1620
|
+
function renderer_div(options = {}) {
|
|
1621
|
+
return createElement({
|
|
1622
|
+
...options,
|
|
1623
|
+
tag: 'div'
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
function renderer_button(options = {}) {
|
|
1627
|
+
return createElement({
|
|
1628
|
+
...options,
|
|
1629
|
+
tag: 'button',
|
|
1630
|
+
type: options.type ?? 'button'
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
function renderer_span(options = {}) {
|
|
1634
|
+
return createElement({
|
|
1635
|
+
...options,
|
|
1636
|
+
tag: 'span'
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
function input(options = {}) {
|
|
1640
|
+
return createElement({
|
|
1641
|
+
...options,
|
|
1642
|
+
tag: 'input'
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
function renderer_select(options = {}) {
|
|
1646
|
+
const { options: selectOptions, selectedValue, ...rest } = options;
|
|
1647
|
+
const selectElement = createElement({
|
|
1648
|
+
...rest,
|
|
1649
|
+
tag: 'select'
|
|
1650
|
+
});
|
|
1651
|
+
if (selectOptions) for (const opt of selectOptions){
|
|
1652
|
+
const optionElement = document.createElement('option');
|
|
1653
|
+
optionElement.value = opt.value;
|
|
1654
|
+
optionElement.textContent = opt.label;
|
|
1655
|
+
if (selectedValue === opt.value) optionElement.selected = true;
|
|
1656
|
+
selectElement.appendChild(optionElement);
|
|
1657
|
+
}
|
|
1658
|
+
return selectElement;
|
|
1659
|
+
}
|
|
1660
|
+
function renderer_createSvgElement(svgContent, options = {}) {
|
|
1661
|
+
const { className, ariaHidden = true, width = 24, height = 24 } = options;
|
|
1662
|
+
const wrapper = document.createElement('div');
|
|
1663
|
+
wrapper.innerHTML = svgContent.trim();
|
|
1664
|
+
const svg = wrapper.firstElementChild;
|
|
1665
|
+
if (svg) {
|
|
1666
|
+
if (className) svg.setAttribute('class', className);
|
|
1667
|
+
if (ariaHidden) svg.setAttribute('aria-hidden', 'true');
|
|
1668
|
+
svg.setAttribute('width', String(width));
|
|
1669
|
+
svg.setAttribute('height', String(height));
|
|
1670
|
+
}
|
|
1671
|
+
return svg;
|
|
1672
|
+
}
|
|
1673
|
+
function renderer_clearElement(element) {
|
|
1674
|
+
while(element.firstChild)element.removeChild(element.firstChild);
|
|
1675
|
+
}
|
|
1676
|
+
var tabs_module = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/tabs.module.css");
|
|
1677
|
+
var tabs_module_options = {};
|
|
1678
|
+
tabs_module_options.styleTagTransform = styleTagTransform_default();
|
|
1679
|
+
tabs_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
1680
|
+
tabs_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
1681
|
+
tabs_module_options.domAPI = styleDomAPI_default();
|
|
1682
|
+
tabs_module_options.insertStyleElement = insertStyleElement_default();
|
|
1683
|
+
injectStylesIntoStyleTag_default()(tabs_module.A, tabs_module_options);
|
|
1684
|
+
const styles_tabs_module = tabs_module.A && tabs_module.A.locals ? tabs_module.A.locals : void 0;
|
|
1685
|
+
const CONSENTS_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1686
|
+
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
|
|
1687
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
|
|
1688
|
+
</svg>`;
|
|
1689
|
+
const LOCATION_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1690
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
1691
|
+
<line x1="2" y1="12" x2="22" y2="12"></line>
|
|
1692
|
+
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
|
|
1693
|
+
</svg>`;
|
|
1694
|
+
const SCRIPTS_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1695
|
+
<polyline points="16 18 22 12 16 6"></polyline>
|
|
1696
|
+
<polyline points="8 6 2 12 8 18"></polyline>
|
|
1697
|
+
</svg>`;
|
|
1698
|
+
const ACTIONS_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1699
|
+
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path>
|
|
1700
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
1701
|
+
</svg>`;
|
|
1702
|
+
const IAB_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1703
|
+
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
1704
|
+
<path d="m9 12 2 2 4-4"></path>
|
|
1705
|
+
</svg>`;
|
|
1706
|
+
const EVENTS_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1707
|
+
<path d="M12 20h9"></path>
|
|
1708
|
+
<path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"></path>
|
|
1709
|
+
</svg>`;
|
|
1710
|
+
const TABS = [
|
|
1711
|
+
{
|
|
1712
|
+
id: 'location',
|
|
1713
|
+
label: 'Location',
|
|
1714
|
+
icon: LOCATION_ICON
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
id: 'consents',
|
|
1718
|
+
label: 'Consents',
|
|
1719
|
+
icon: CONSENTS_ICON
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
id: "scripts",
|
|
1723
|
+
label: 'Scripts',
|
|
1724
|
+
icon: SCRIPTS_ICON
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
id: 'iab',
|
|
1728
|
+
label: 'IAB',
|
|
1729
|
+
icon: IAB_ICON
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
id: 'actions',
|
|
1733
|
+
label: 'Actions',
|
|
1734
|
+
icon: ACTIONS_ICON
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
id: 'events',
|
|
1738
|
+
label: 'Events',
|
|
1739
|
+
icon: EVENTS_ICON
|
|
1740
|
+
}
|
|
1741
|
+
];
|
|
1742
|
+
function tabs_createTabs(options) {
|
|
1743
|
+
const { onTabChange, disabledTabs = [] } = options;
|
|
1744
|
+
let activeTab = options.activeTab;
|
|
1745
|
+
const tabButtons = new Map();
|
|
1746
|
+
const tabList = renderer_div({
|
|
1747
|
+
className: styles_tabs_module.tabList,
|
|
1748
|
+
role: 'tablist',
|
|
1749
|
+
ariaLabel: 'DevTools tabs'
|
|
1750
|
+
});
|
|
1751
|
+
for (const tab of TABS){
|
|
1752
|
+
const isActive = tab.id === activeTab;
|
|
1753
|
+
const isDisabled = disabledTabs.includes(tab.id);
|
|
1754
|
+
const tabButton = renderer_button({
|
|
1755
|
+
className: `${styles_tabs_module.tab} ${isActive ? styles_tabs_module.tabActive : ''} ${isDisabled ? styles_tabs_module.tabDisabled : ''}`,
|
|
1756
|
+
role: 'tab',
|
|
1757
|
+
ariaSelected: isActive ? 'true' : 'false',
|
|
1758
|
+
ariaControls: `panel-${tab.id}`,
|
|
1759
|
+
ariaDisabled: isDisabled ? 'true' : void 0,
|
|
1760
|
+
tabIndex: isActive ? 0 : -1,
|
|
1761
|
+
disabled: isDisabled,
|
|
1762
|
+
onClick: ()=>{
|
|
1763
|
+
if (!isDisabled) {
|
|
1764
|
+
setActiveTab(tab.id);
|
|
1765
|
+
onTabChange(tab.id);
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
onKeyDown: (e)=>handleKeyDown(e, tab.id)
|
|
1769
|
+
});
|
|
1770
|
+
const iconWrapper = renderer_div({
|
|
1771
|
+
className: styles_tabs_module.tabIcon
|
|
1772
|
+
});
|
|
1773
|
+
iconWrapper.appendChild(renderer_createSvgElement(tab.icon, {
|
|
1774
|
+
width: 14,
|
|
1775
|
+
height: 14
|
|
1776
|
+
}));
|
|
1777
|
+
tabButton.appendChild(iconWrapper);
|
|
1778
|
+
tabButton.appendChild(document.createTextNode(tab.label));
|
|
1779
|
+
tabButtons.set(tab.id, tabButton);
|
|
1780
|
+
tabList.appendChild(tabButton);
|
|
1781
|
+
}
|
|
1782
|
+
function handleKeyDown(e, currentTab) {
|
|
1783
|
+
const tabIds = TABS.map((t)=>t.id);
|
|
1784
|
+
const enabledTabIds = tabIds.filter((id)=>!disabledTabs.includes(id));
|
|
1785
|
+
const currentIndex = enabledTabIds.indexOf(currentTab);
|
|
1786
|
+
let newIndex = currentIndex;
|
|
1787
|
+
switch(e.key){
|
|
1788
|
+
case 'ArrowLeft':
|
|
1789
|
+
newIndex = currentIndex > 0 ? currentIndex - 1 : enabledTabIds.length - 1;
|
|
1790
|
+
break;
|
|
1791
|
+
case 'ArrowRight':
|
|
1792
|
+
newIndex = currentIndex < enabledTabIds.length - 1 ? currentIndex + 1 : 0;
|
|
1793
|
+
break;
|
|
1794
|
+
case 'Home':
|
|
1795
|
+
newIndex = 0;
|
|
1796
|
+
break;
|
|
1797
|
+
case 'End':
|
|
1798
|
+
newIndex = enabledTabIds.length - 1;
|
|
1799
|
+
break;
|
|
1800
|
+
default:
|
|
1801
|
+
return;
|
|
1802
|
+
}
|
|
1803
|
+
e.preventDefault();
|
|
1804
|
+
const newTab = enabledTabIds[newIndex];
|
|
1805
|
+
if (newTab) {
|
|
1806
|
+
setActiveTab(newTab);
|
|
1807
|
+
onTabChange(newTab);
|
|
1808
|
+
tabButtons.get(newTab)?.focus();
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
function setActiveTab(tab) {
|
|
1812
|
+
activeTab = tab;
|
|
1813
|
+
for (const [tabId, tabButton] of tabButtons){
|
|
1814
|
+
const isActive = tabId === tab;
|
|
1815
|
+
if (styles_tabs_module.tabActive) tabButton.classList.toggle(styles_tabs_module.tabActive, isActive);
|
|
1816
|
+
tabButton.setAttribute('aria-selected', isActive ? 'true' : 'false');
|
|
1817
|
+
tabButton.tabIndex = isActive ? 0 : -1;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
return {
|
|
1821
|
+
element: tabList,
|
|
1822
|
+
setActiveTab,
|
|
1823
|
+
destroy: ()=>{
|
|
1824
|
+
tabButtons.clear();
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
var components_module = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/components.module.css");
|
|
1829
|
+
var components_module_options = {};
|
|
1830
|
+
components_module_options.styleTagTransform = styleTagTransform_default();
|
|
1831
|
+
components_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
1832
|
+
components_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
1833
|
+
components_module_options.domAPI = styleDomAPI_default();
|
|
1834
|
+
components_module_options.insertStyleElement = insertStyleElement_default();
|
|
1835
|
+
injectStylesIntoStyleTag_default()(components_module.A, components_module_options);
|
|
1836
|
+
const styles_components_module = components_module.A && components_module.A.locals ? components_module.A.locals : void 0;
|
|
1837
|
+
function createToggle(options) {
|
|
1838
|
+
const { checked, onChange, ariaLabel, disabled = false } = options;
|
|
1839
|
+
const toggle = renderer_button({
|
|
1840
|
+
className: `${styles_components_module.toggle} ${checked ? styles_components_module.toggleActive : ''}`,
|
|
1841
|
+
role: 'switch',
|
|
1842
|
+
ariaLabel,
|
|
1843
|
+
ariaChecked: checked ? 'true' : 'false',
|
|
1844
|
+
disabled,
|
|
1845
|
+
onClick: ()=>{
|
|
1846
|
+
if (!disabled) onChange(!checked);
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
const thumb = renderer_div({
|
|
1850
|
+
className: styles_components_module.toggleThumb
|
|
1851
|
+
});
|
|
1852
|
+
toggle.appendChild(thumb);
|
|
1853
|
+
return toggle;
|
|
1854
|
+
}
|
|
1855
|
+
function createBadge(options) {
|
|
1856
|
+
const { text, variant = 'neutral' } = options;
|
|
1857
|
+
const variantClass = {
|
|
1858
|
+
success: styles_components_module.badgeSuccess,
|
|
1859
|
+
error: styles_components_module.badgeError,
|
|
1860
|
+
warning: styles_components_module.badgeWarning,
|
|
1861
|
+
info: styles_components_module.badgeInfo,
|
|
1862
|
+
neutral: styles_components_module.badgeNeutral
|
|
1863
|
+
}[variant];
|
|
1864
|
+
return renderer_span({
|
|
1865
|
+
className: `${styles_components_module.badge} ${variantClass}`,
|
|
1866
|
+
text
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
function createButton(options) {
|
|
1870
|
+
const { text, variant = 'default', small = false, icon, disabled = false, onClick } = options;
|
|
1871
|
+
const variantClass = {
|
|
1872
|
+
default: '',
|
|
1873
|
+
primary: styles_components_module.btnPrimary,
|
|
1874
|
+
danger: styles_components_module.btnDanger
|
|
1875
|
+
}[variant];
|
|
1876
|
+
const sizeClass = small ? styles_components_module.btnSmall : '';
|
|
1877
|
+
const btn = renderer_button({
|
|
1878
|
+
className: `${styles_components_module.btn} ${variantClass} ${sizeClass}`.trim(),
|
|
1879
|
+
disabled,
|
|
1880
|
+
onClick
|
|
1881
|
+
});
|
|
1882
|
+
if (icon) {
|
|
1883
|
+
const iconWrapper = renderer_div({
|
|
1884
|
+
className: styles_components_module.btnIcon
|
|
1885
|
+
});
|
|
1886
|
+
iconWrapper.appendChild(renderer_createSvgElement(icon, {
|
|
1887
|
+
width: 14,
|
|
1888
|
+
height: 14
|
|
1889
|
+
}));
|
|
1890
|
+
btn.appendChild(iconWrapper);
|
|
1891
|
+
}
|
|
1892
|
+
btn.appendChild(document.createTextNode(text));
|
|
1893
|
+
return btn;
|
|
1894
|
+
}
|
|
1895
|
+
function createListItem(options) {
|
|
1896
|
+
const { title, description, actions = [] } = options;
|
|
1897
|
+
const content = renderer_div({
|
|
1898
|
+
className: styles_components_module.listItemContent,
|
|
1899
|
+
children: [
|
|
1900
|
+
renderer_span({
|
|
1901
|
+
className: styles_components_module.listItemTitle,
|
|
1902
|
+
text: title
|
|
1903
|
+
}),
|
|
1904
|
+
description ? renderer_span({
|
|
1905
|
+
className: styles_components_module.listItemDescription,
|
|
1906
|
+
text: description
|
|
1907
|
+
}) : null
|
|
1908
|
+
]
|
|
1909
|
+
});
|
|
1910
|
+
const actionsContainer = renderer_div({
|
|
1911
|
+
className: styles_components_module.listItemActions,
|
|
1912
|
+
children: actions
|
|
1913
|
+
});
|
|
1914
|
+
return renderer_div({
|
|
1915
|
+
className: styles_components_module.listItem,
|
|
1916
|
+
children: [
|
|
1917
|
+
content,
|
|
1918
|
+
actionsContainer
|
|
1919
|
+
]
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
function createSection(options) {
|
|
1923
|
+
const { title, actions = [], children } = options;
|
|
1924
|
+
const header = renderer_div({
|
|
1925
|
+
className: styles_components_module.sectionHeader,
|
|
1926
|
+
children: [
|
|
1927
|
+
renderer_span({
|
|
1928
|
+
className: styles_components_module.sectionTitle,
|
|
1929
|
+
text: title
|
|
1930
|
+
}),
|
|
1931
|
+
...actions
|
|
1932
|
+
]
|
|
1933
|
+
});
|
|
1934
|
+
return renderer_div({
|
|
1935
|
+
className: styles_components_module.section,
|
|
1936
|
+
children: [
|
|
1937
|
+
header,
|
|
1938
|
+
...children
|
|
1939
|
+
]
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
function createInfoRow(options) {
|
|
1943
|
+
const { label, value } = options;
|
|
1944
|
+
return renderer_div({
|
|
1945
|
+
className: styles_components_module.infoRow,
|
|
1946
|
+
children: [
|
|
1947
|
+
renderer_span({
|
|
1948
|
+
className: styles_components_module.infoLabel,
|
|
1949
|
+
text: label
|
|
1950
|
+
}),
|
|
1951
|
+
renderer_span({
|
|
1952
|
+
className: styles_components_module.infoValue,
|
|
1953
|
+
text: value
|
|
1954
|
+
})
|
|
1955
|
+
]
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
function createEmptyState(options) {
|
|
1959
|
+
const { icon, text } = options;
|
|
1960
|
+
const children = [];
|
|
1961
|
+
if (icon) {
|
|
1962
|
+
const iconWrapper = renderer_div({
|
|
1963
|
+
className: styles_components_module.emptyStateIcon
|
|
1964
|
+
});
|
|
1965
|
+
iconWrapper.appendChild(renderer_createSvgElement(icon, {
|
|
1966
|
+
width: 32,
|
|
1967
|
+
height: 32
|
|
1968
|
+
}));
|
|
1969
|
+
children.push(iconWrapper);
|
|
1970
|
+
}
|
|
1971
|
+
children.push(renderer_span({
|
|
1972
|
+
className: styles_components_module.emptyStateText,
|
|
1973
|
+
text
|
|
1974
|
+
}));
|
|
1975
|
+
return renderer_div({
|
|
1976
|
+
className: styles_components_module.emptyState,
|
|
1977
|
+
children: children.filter(Boolean)
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
function createGrid(options) {
|
|
1981
|
+
const { columns = 2, children } = options;
|
|
1982
|
+
const colsClass = 3 === columns ? styles_components_module.gridCols3 : styles_components_module.gridCols2;
|
|
1983
|
+
return renderer_div({
|
|
1984
|
+
className: `${styles_components_module.grid} ${colsClass}`,
|
|
1985
|
+
children
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
function createGridCard(options) {
|
|
1989
|
+
const { title, action } = options;
|
|
1990
|
+
const children = [
|
|
1991
|
+
renderer_span({
|
|
1992
|
+
className: styles_components_module.gridCardTitle,
|
|
1993
|
+
text: title
|
|
1994
|
+
})
|
|
1995
|
+
];
|
|
1996
|
+
if (action) children.push(action);
|
|
1997
|
+
return renderer_div({
|
|
1998
|
+
className: styles_components_module.gridCard,
|
|
1999
|
+
children
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
const REFRESH_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2003
|
+
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path>
|
|
2004
|
+
<path d="M21 3v5h-5"></path>
|
|
2005
|
+
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path>
|
|
2006
|
+
<path d="M8 16H3v5"></path>
|
|
2007
|
+
</svg>`;
|
|
2008
|
+
const TRASH_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2009
|
+
<path d="M3 6h18"></path>
|
|
2010
|
+
<path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path>
|
|
2011
|
+
<path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path>
|
|
2012
|
+
</svg>`;
|
|
2013
|
+
const COPY_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2014
|
+
<rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
|
|
2015
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>
|
|
2016
|
+
</svg>`;
|
|
2017
|
+
const actions_EYE_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2018
|
+
<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path>
|
|
2019
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
2020
|
+
</svg>`;
|
|
2021
|
+
const SETTINGS_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2022
|
+
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path>
|
|
2023
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
2024
|
+
</svg>`;
|
|
2025
|
+
const TERMINAL_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2026
|
+
<polyline points="4 17 10 11 4 5"></polyline>
|
|
2027
|
+
<line x1="12" y1="19" x2="20" y2="19"></line>
|
|
2028
|
+
</svg>`;
|
|
2029
|
+
function actions_renderActionsPanel(container, options) {
|
|
2030
|
+
const { getState, onResetConsents, onRefetchBanner, onShowBanner, onOpenPreferences, onCopyState } = options;
|
|
2031
|
+
renderer_clearElement(container);
|
|
2032
|
+
const state = getState();
|
|
2033
|
+
if (!state) return void container.appendChild(renderer_div({
|
|
2034
|
+
style: {
|
|
2035
|
+
padding: '24px',
|
|
2036
|
+
textAlign: 'center',
|
|
2037
|
+
color: 'var(--c15t-text-muted)',
|
|
2038
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2039
|
+
},
|
|
2040
|
+
text: 'Store not connected'
|
|
2041
|
+
}));
|
|
2042
|
+
const actionCards = [
|
|
2043
|
+
createActionCard({
|
|
2044
|
+
icon: actions_EYE_ICON,
|
|
2045
|
+
label: 'Show Banner',
|
|
2046
|
+
onClick: onShowBanner
|
|
2047
|
+
}),
|
|
2048
|
+
createActionCard({
|
|
2049
|
+
icon: SETTINGS_ICON,
|
|
2050
|
+
label: 'Preferences',
|
|
2051
|
+
onClick: onOpenPreferences
|
|
2052
|
+
}),
|
|
2053
|
+
createActionCard({
|
|
2054
|
+
icon: REFRESH_ICON,
|
|
2055
|
+
label: 'Re-fetch',
|
|
2056
|
+
onClick: onRefetchBanner
|
|
2057
|
+
}),
|
|
2058
|
+
createActionCard({
|
|
2059
|
+
icon: COPY_ICON,
|
|
2060
|
+
label: 'Copy State',
|
|
2061
|
+
onClick: onCopyState
|
|
2062
|
+
})
|
|
2063
|
+
];
|
|
2064
|
+
const grid = createGrid({
|
|
2065
|
+
columns: 2,
|
|
2066
|
+
children: actionCards
|
|
2067
|
+
});
|
|
2068
|
+
container.appendChild(grid);
|
|
2069
|
+
const dangerZone = renderer_div({
|
|
2070
|
+
style: {
|
|
2071
|
+
padding: '12px 16px',
|
|
2072
|
+
borderTop: '1px solid var(--c15t-border)'
|
|
2073
|
+
},
|
|
2074
|
+
children: [
|
|
2075
|
+
createButton({
|
|
2076
|
+
text: 'Reset All Consents',
|
|
2077
|
+
icon: TRASH_ICON,
|
|
2078
|
+
variant: 'danger',
|
|
2079
|
+
onClick: onResetConsents
|
|
2080
|
+
})
|
|
2081
|
+
]
|
|
2082
|
+
});
|
|
2083
|
+
container.appendChild(dangerZone);
|
|
2084
|
+
const consoleSection = renderer_div({
|
|
2085
|
+
style: {
|
|
2086
|
+
padding: '12px 16px',
|
|
2087
|
+
borderTop: '1px solid var(--c15t-border)'
|
|
2088
|
+
},
|
|
2089
|
+
children: [
|
|
2090
|
+
renderer_div({
|
|
2091
|
+
style: {
|
|
2092
|
+
display: 'flex',
|
|
2093
|
+
alignItems: 'center',
|
|
2094
|
+
gap: '6px',
|
|
2095
|
+
marginBottom: '8px'
|
|
2096
|
+
},
|
|
2097
|
+
children: [
|
|
2098
|
+
createIconWrapper(TERMINAL_ICON, 14),
|
|
2099
|
+
renderer_span({
|
|
2100
|
+
style: {
|
|
2101
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2102
|
+
fontWeight: '600',
|
|
2103
|
+
color: 'var(--c15t-text)'
|
|
2104
|
+
},
|
|
2105
|
+
text: 'Console API'
|
|
2106
|
+
})
|
|
2107
|
+
]
|
|
2108
|
+
}),
|
|
2109
|
+
renderer_div({
|
|
2110
|
+
style: {
|
|
2111
|
+
display: 'flex',
|
|
2112
|
+
flexDirection: 'column',
|
|
2113
|
+
gap: '4px',
|
|
2114
|
+
padding: '8px',
|
|
2115
|
+
borderRadius: 'var(--c15t-radius-md)',
|
|
2116
|
+
backgroundColor: 'var(--c15t-surface-muted)',
|
|
2117
|
+
fontFamily: 'ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace',
|
|
2118
|
+
fontSize: '11px',
|
|
2119
|
+
color: 'var(--c15t-text-muted)'
|
|
2120
|
+
},
|
|
2121
|
+
children: [
|
|
2122
|
+
renderer_span({
|
|
2123
|
+
text: `window.${getNamespace(state)}.getState()`
|
|
2124
|
+
}),
|
|
2125
|
+
renderer_span({
|
|
2126
|
+
text: 'window.__c15tDevTools.open()'
|
|
2127
|
+
})
|
|
2128
|
+
]
|
|
2129
|
+
})
|
|
2130
|
+
]
|
|
2131
|
+
});
|
|
2132
|
+
container.appendChild(consoleSection);
|
|
2133
|
+
}
|
|
2134
|
+
function createActionCard(options) {
|
|
2135
|
+
const { icon, label, onClick } = options;
|
|
2136
|
+
const card = renderer_div({
|
|
2137
|
+
className: styles_components_module.gridCard ?? '',
|
|
2138
|
+
style: {
|
|
2139
|
+
display: 'flex',
|
|
2140
|
+
flexDirection: 'column',
|
|
2141
|
+
alignItems: 'center',
|
|
2142
|
+
justifyContent: 'center',
|
|
2143
|
+
gap: '6px',
|
|
2144
|
+
padding: '16px 8px',
|
|
2145
|
+
cursor: 'pointer',
|
|
2146
|
+
transition: 'background-color var(--c15t-duration-fast) var(--c15t-easing)'
|
|
2147
|
+
},
|
|
2148
|
+
children: [
|
|
2149
|
+
createIconWrapper(icon, 20),
|
|
2150
|
+
renderer_span({
|
|
2151
|
+
style: {
|
|
2152
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2153
|
+
fontWeight: '500',
|
|
2154
|
+
color: 'var(--c15t-text)',
|
|
2155
|
+
textAlign: 'center'
|
|
2156
|
+
},
|
|
2157
|
+
text: label
|
|
2158
|
+
})
|
|
2159
|
+
]
|
|
2160
|
+
});
|
|
2161
|
+
card.addEventListener('click', onClick);
|
|
2162
|
+
card.addEventListener('mouseenter', ()=>{
|
|
2163
|
+
card.style.backgroundColor = 'var(--c15t-surface-hover)';
|
|
2164
|
+
});
|
|
2165
|
+
card.addEventListener('mouseleave', ()=>{
|
|
2166
|
+
card.style.backgroundColor = '';
|
|
2167
|
+
});
|
|
2168
|
+
return card;
|
|
2169
|
+
}
|
|
2170
|
+
function createIconWrapper(icon, size) {
|
|
2171
|
+
const wrapper = renderer_div({
|
|
2172
|
+
style: {
|
|
2173
|
+
display: 'flex',
|
|
2174
|
+
alignItems: 'center',
|
|
2175
|
+
justifyContent: 'center',
|
|
2176
|
+
color: 'var(--c15t-text-muted)'
|
|
2177
|
+
}
|
|
2178
|
+
});
|
|
2179
|
+
wrapper.appendChild(renderer_createSvgElement(icon, {
|
|
2180
|
+
width: size,
|
|
2181
|
+
height: size
|
|
2182
|
+
}));
|
|
2183
|
+
return wrapper;
|
|
2184
|
+
}
|
|
2185
|
+
function getNamespace(state) {
|
|
2186
|
+
return state.config?.meta?.namespace || 'c15tStore';
|
|
2187
|
+
}
|
|
2188
|
+
function consents_renderConsentsPanel(container, options) {
|
|
2189
|
+
const { getState, onConsentChange, onSave, onAcceptAll, onRejectAll, onReset } = options;
|
|
2190
|
+
renderer_clearElement(container);
|
|
2191
|
+
const state = getState();
|
|
2192
|
+
if (!state) return void container.appendChild(renderer_div({
|
|
2193
|
+
style: {
|
|
2194
|
+
padding: '24px',
|
|
2195
|
+
textAlign: 'center',
|
|
2196
|
+
color: 'var(--c15t-text-muted)',
|
|
2197
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2198
|
+
},
|
|
2199
|
+
text: 'Store not connected'
|
|
2200
|
+
}));
|
|
2201
|
+
const isIabMode = 'iab' === state.model;
|
|
2202
|
+
const savedConsents = state.consents || {};
|
|
2203
|
+
const selectedConsents = state.selectedConsents || {};
|
|
2204
|
+
const displayConsents = {
|
|
2205
|
+
...savedConsents
|
|
2206
|
+
};
|
|
2207
|
+
for (const [key, value] of Object.entries(selectedConsents))displayConsents[key] = value;
|
|
2208
|
+
const hasUnsavedChanges = !isIabMode && Object.entries(displayConsents).some(([key, value])=>savedConsents[key] !== value);
|
|
2209
|
+
const consentTypes = state.consentTypes || [];
|
|
2210
|
+
const consentTypeMap = new Map(consentTypes.map((ct)=>[
|
|
2211
|
+
ct.name,
|
|
2212
|
+
ct
|
|
2213
|
+
]));
|
|
2214
|
+
const consentEntries = Object.entries(displayConsents);
|
|
2215
|
+
if (0 === consentEntries.length) container.appendChild(renderer_div({
|
|
2216
|
+
style: {
|
|
2217
|
+
padding: '24px',
|
|
2218
|
+
textAlign: 'center',
|
|
2219
|
+
color: 'var(--c15t-devtools-text-muted)',
|
|
2220
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2221
|
+
},
|
|
2222
|
+
text: 'No consents configured'
|
|
2223
|
+
}));
|
|
2224
|
+
else {
|
|
2225
|
+
if (isIabMode) {
|
|
2226
|
+
const iabNotice = renderer_div({
|
|
2227
|
+
style: {
|
|
2228
|
+
padding: '8px 12px',
|
|
2229
|
+
margin: '0 0 8px',
|
|
2230
|
+
backgroundColor: 'var(--c15t-devtools-badge-info-bg)',
|
|
2231
|
+
borderRadius: '4px',
|
|
2232
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2233
|
+
color: 'var(--c15t-devtools-badge-info)'
|
|
2234
|
+
},
|
|
2235
|
+
text: 'IAB TCF mode: Consents are managed via the IAB framework'
|
|
2236
|
+
});
|
|
2237
|
+
container.appendChild(iabNotice);
|
|
2238
|
+
}
|
|
2239
|
+
const gridCards = [];
|
|
2240
|
+
for (const [name, value] of consentEntries){
|
|
2241
|
+
const consentType = consentTypeMap.get(name);
|
|
2242
|
+
const isNecessary = 'necessary' === name;
|
|
2243
|
+
const displayName = consentType?.name || name;
|
|
2244
|
+
const isSaved = savedConsents[name] === value;
|
|
2245
|
+
const toggle = createToggle({
|
|
2246
|
+
checked: Boolean(value),
|
|
2247
|
+
disabled: isNecessary || isIabMode,
|
|
2248
|
+
ariaLabel: `Toggle ${displayName} consent`,
|
|
2249
|
+
onChange: (newValue)=>onConsentChange(String(name), newValue)
|
|
2250
|
+
});
|
|
2251
|
+
const card = createGridCard({
|
|
2252
|
+
title: formatConsentName(displayName) + (isIabMode || isSaved ? '' : ' •'),
|
|
2253
|
+
action: toggle
|
|
2254
|
+
});
|
|
2255
|
+
gridCards.push(card);
|
|
2256
|
+
}
|
|
2257
|
+
const grid = createGrid({
|
|
2258
|
+
columns: 2,
|
|
2259
|
+
children: gridCards
|
|
2260
|
+
});
|
|
2261
|
+
container.appendChild(grid);
|
|
2262
|
+
}
|
|
2263
|
+
if (isIabMode) {
|
|
2264
|
+
const footer = renderer_div({
|
|
2265
|
+
style: {
|
|
2266
|
+
display: 'flex',
|
|
2267
|
+
alignItems: 'center',
|
|
2268
|
+
justifyContent: 'flex-end',
|
|
2269
|
+
padding: '12px 16px',
|
|
2270
|
+
marginTop: 'auto',
|
|
2271
|
+
borderTop: '1px solid var(--c15t-border)',
|
|
2272
|
+
backgroundColor: 'var(--c15t-surface)'
|
|
2273
|
+
},
|
|
2274
|
+
children: [
|
|
2275
|
+
createButton({
|
|
2276
|
+
text: 'Reset All',
|
|
2277
|
+
variant: 'danger',
|
|
2278
|
+
small: true,
|
|
2279
|
+
onClick: onReset
|
|
2280
|
+
})
|
|
2281
|
+
]
|
|
2282
|
+
});
|
|
2283
|
+
container.appendChild(footer);
|
|
2284
|
+
return;
|
|
2285
|
+
}
|
|
2286
|
+
const footer = renderer_div({
|
|
2287
|
+
style: {
|
|
2288
|
+
display: 'flex',
|
|
2289
|
+
alignItems: 'center',
|
|
2290
|
+
justifyContent: 'space-between',
|
|
2291
|
+
padding: '12px 16px',
|
|
2292
|
+
marginTop: 'auto',
|
|
2293
|
+
borderTop: '1px solid var(--c15t-border)',
|
|
2294
|
+
backgroundColor: hasUnsavedChanges ? 'var(--c15t-devtools-badge-warning-bg)' : 'var(--c15t-surface)'
|
|
2295
|
+
},
|
|
2296
|
+
children: [
|
|
2297
|
+
renderer_div({
|
|
2298
|
+
style: {
|
|
2299
|
+
display: 'flex',
|
|
2300
|
+
gap: '6px'
|
|
2301
|
+
},
|
|
2302
|
+
children: [
|
|
2303
|
+
createButton({
|
|
2304
|
+
text: 'All',
|
|
2305
|
+
variant: 'primary',
|
|
2306
|
+
small: true,
|
|
2307
|
+
onClick: onAcceptAll
|
|
2308
|
+
}),
|
|
2309
|
+
createButton({
|
|
2310
|
+
text: 'None',
|
|
2311
|
+
variant: 'default',
|
|
2312
|
+
small: true,
|
|
2313
|
+
onClick: onRejectAll
|
|
2314
|
+
}),
|
|
2315
|
+
createButton({
|
|
2316
|
+
text: 'Reset',
|
|
2317
|
+
variant: 'danger',
|
|
2318
|
+
small: true,
|
|
2319
|
+
onClick: onReset
|
|
2320
|
+
})
|
|
2321
|
+
]
|
|
2322
|
+
}),
|
|
2323
|
+
hasUnsavedChanges ? renderer_div({
|
|
2324
|
+
style: {
|
|
2325
|
+
display: 'flex',
|
|
2326
|
+
alignItems: 'center',
|
|
2327
|
+
gap: '8px'
|
|
2328
|
+
},
|
|
2329
|
+
children: [
|
|
2330
|
+
renderer_span({
|
|
2331
|
+
style: {
|
|
2332
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2333
|
+
color: 'var(--c15t-devtools-badge-warning)'
|
|
2334
|
+
},
|
|
2335
|
+
text: 'Unsaved'
|
|
2336
|
+
}),
|
|
2337
|
+
createButton({
|
|
2338
|
+
text: 'Save',
|
|
2339
|
+
variant: 'primary',
|
|
2340
|
+
small: true,
|
|
2341
|
+
onClick: onSave
|
|
2342
|
+
})
|
|
2343
|
+
]
|
|
2344
|
+
}) : renderer_span({
|
|
2345
|
+
style: {
|
|
2346
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2347
|
+
color: 'var(--c15t-text-muted)'
|
|
2348
|
+
},
|
|
2349
|
+
text: 'No changes'
|
|
2350
|
+
})
|
|
2351
|
+
]
|
|
2352
|
+
});
|
|
2353
|
+
container.appendChild(footer);
|
|
2354
|
+
}
|
|
2355
|
+
function formatConsentName(name) {
|
|
2356
|
+
return name.replace(/_/g, ' ').replace(/\b\w/g, (l)=>l.toUpperCase());
|
|
2357
|
+
}
|
|
2358
|
+
function events_renderEventsPanel(container, options) {
|
|
2359
|
+
const { getEvents, onClear } = options;
|
|
2360
|
+
renderer_clearElement(container);
|
|
2361
|
+
const events = getEvents();
|
|
2362
|
+
const header = renderer_div({
|
|
2363
|
+
style: {
|
|
2364
|
+
display: 'flex',
|
|
2365
|
+
alignItems: 'center',
|
|
2366
|
+
justifyContent: 'space-between',
|
|
2367
|
+
padding: '12px 16px 8px'
|
|
2368
|
+
},
|
|
2369
|
+
children: [
|
|
2370
|
+
renderer_span({
|
|
2371
|
+
style: {
|
|
2372
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2373
|
+
fontWeight: '600',
|
|
2374
|
+
color: 'var(--c15t-text-muted)',
|
|
2375
|
+
textTransform: 'uppercase',
|
|
2376
|
+
letterSpacing: '0.5px'
|
|
2377
|
+
},
|
|
2378
|
+
text: `Events (${events.length})`
|
|
2379
|
+
}),
|
|
2380
|
+
createButton({
|
|
2381
|
+
text: 'Clear',
|
|
2382
|
+
small: true,
|
|
2383
|
+
onClick: onClear
|
|
2384
|
+
})
|
|
2385
|
+
]
|
|
2386
|
+
});
|
|
2387
|
+
container.appendChild(header);
|
|
2388
|
+
const eventList = renderer_div({
|
|
2389
|
+
style: {
|
|
2390
|
+
display: 'flex',
|
|
2391
|
+
flexDirection: 'column',
|
|
2392
|
+
gap: '4px',
|
|
2393
|
+
padding: '0 12px 12px',
|
|
2394
|
+
maxHeight: '400px',
|
|
2395
|
+
overflowY: 'auto'
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
if (0 === events.length) {
|
|
2399
|
+
const emptyState = renderer_div({
|
|
2400
|
+
style: {
|
|
2401
|
+
padding: '32px 16px',
|
|
2402
|
+
textAlign: 'center',
|
|
2403
|
+
color: 'var(--c15t-text-muted)',
|
|
2404
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2405
|
+
},
|
|
2406
|
+
text: 'No events recorded yet'
|
|
2407
|
+
});
|
|
2408
|
+
eventList.appendChild(emptyState);
|
|
2409
|
+
} else for (const event of events){
|
|
2410
|
+
const eventItem = createEventItem(event);
|
|
2411
|
+
eventList.appendChild(eventItem);
|
|
2412
|
+
}
|
|
2413
|
+
container.appendChild(eventList);
|
|
2414
|
+
}
|
|
2415
|
+
function createEventItem(event) {
|
|
2416
|
+
const time = formatTime(event.timestamp);
|
|
2417
|
+
const icon = getEventIcon(event.type);
|
|
2418
|
+
const color = getEventColor(event.type);
|
|
2419
|
+
return renderer_div({
|
|
2420
|
+
className: styles_components_module.gridCard ?? '',
|
|
2421
|
+
style: {
|
|
2422
|
+
display: 'flex',
|
|
2423
|
+
alignItems: 'center',
|
|
2424
|
+
gap: '8px',
|
|
2425
|
+
padding: '6px 10px',
|
|
2426
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)'
|
|
2427
|
+
},
|
|
2428
|
+
children: [
|
|
2429
|
+
renderer_span({
|
|
2430
|
+
style: {
|
|
2431
|
+
color,
|
|
2432
|
+
fontSize: '8px',
|
|
2433
|
+
lineHeight: '1'
|
|
2434
|
+
},
|
|
2435
|
+
text: icon
|
|
2436
|
+
}),
|
|
2437
|
+
renderer_span({
|
|
2438
|
+
style: {
|
|
2439
|
+
color: 'var(--c15t-text-muted)',
|
|
2440
|
+
fontFamily: 'monospace',
|
|
2441
|
+
fontSize: '10px',
|
|
2442
|
+
flexShrink: '0'
|
|
2443
|
+
},
|
|
2444
|
+
text: time
|
|
2445
|
+
}),
|
|
2446
|
+
renderer_span({
|
|
2447
|
+
style: {
|
|
2448
|
+
color: 'var(--c15t-text)',
|
|
2449
|
+
flex: '1'
|
|
2450
|
+
},
|
|
2451
|
+
text: event.message
|
|
2452
|
+
})
|
|
2453
|
+
]
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
function formatTime(timestamp) {
|
|
2457
|
+
const date = new Date(timestamp);
|
|
2458
|
+
return date.toLocaleTimeString('en-US', {
|
|
2459
|
+
hour12: false,
|
|
2460
|
+
hour: '2-digit',
|
|
2461
|
+
minute: '2-digit',
|
|
2462
|
+
second: '2-digit'
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
function getEventIcon(type) {
|
|
2466
|
+
switch(type){
|
|
2467
|
+
case 'consent_set':
|
|
2468
|
+
case 'consent_save':
|
|
2469
|
+
return '●';
|
|
2470
|
+
case 'consent_reset':
|
|
2471
|
+
return '○';
|
|
2472
|
+
case 'error':
|
|
2473
|
+
return '✕';
|
|
2474
|
+
case 'info':
|
|
2475
|
+
default:
|
|
2476
|
+
return '○';
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
function getEventColor(type) {
|
|
2480
|
+
switch(type){
|
|
2481
|
+
case 'consent_set':
|
|
2482
|
+
case 'consent_save':
|
|
2483
|
+
return 'var(--c15t-devtools-badge-success, #10b981)';
|
|
2484
|
+
case 'consent_reset':
|
|
2485
|
+
return 'var(--c15t-devtools-badge-warning, #f59e0b)';
|
|
2486
|
+
case 'error':
|
|
2487
|
+
return 'var(--c15t-devtools-badge-error, #ef4444)';
|
|
2488
|
+
case 'info':
|
|
2489
|
+
default:
|
|
2490
|
+
return 'var(--c15t-text-muted)';
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
function iab_renderIabPanel(container, options) {
|
|
2494
|
+
const { getState, onReset } = options;
|
|
2495
|
+
renderer_clearElement(container);
|
|
2496
|
+
const state = getState();
|
|
2497
|
+
if (!state) return void container.appendChild(renderer_div({
|
|
2498
|
+
style: {
|
|
2499
|
+
padding: '24px',
|
|
2500
|
+
textAlign: 'center',
|
|
2501
|
+
color: 'var(--c15t-text-muted)',
|
|
2502
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2503
|
+
},
|
|
2504
|
+
text: 'Store not connected'
|
|
2505
|
+
}));
|
|
2506
|
+
if ('iab' !== state.model) return void container.appendChild(renderer_div({
|
|
2507
|
+
style: {
|
|
2508
|
+
padding: '24px',
|
|
2509
|
+
textAlign: 'center',
|
|
2510
|
+
color: 'var(--c15t-text-muted)',
|
|
2511
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2512
|
+
},
|
|
2513
|
+
text: 'IAB TCF mode is not configured'
|
|
2514
|
+
}));
|
|
2515
|
+
const iabState = state.iab;
|
|
2516
|
+
if (!iabState) return void container.appendChild(renderer_div({
|
|
2517
|
+
style: {
|
|
2518
|
+
padding: '24px',
|
|
2519
|
+
textAlign: 'center',
|
|
2520
|
+
color: 'var(--c15t-text-muted)',
|
|
2521
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2522
|
+
},
|
|
2523
|
+
text: 'IAB state not available'
|
|
2524
|
+
}));
|
|
2525
|
+
const tcString = iabState.tcString;
|
|
2526
|
+
const tcStringSection = createSection({
|
|
2527
|
+
title: 'TC String',
|
|
2528
|
+
actions: tcString ? [
|
|
2529
|
+
createButton({
|
|
2530
|
+
text: 'Copy',
|
|
2531
|
+
small: true,
|
|
2532
|
+
onClick: ()=>{
|
|
2533
|
+
navigator.clipboard.writeText(tcString);
|
|
2534
|
+
}
|
|
2535
|
+
})
|
|
2536
|
+
] : [],
|
|
2537
|
+
children: [
|
|
2538
|
+
renderer_div({
|
|
2539
|
+
style: {
|
|
2540
|
+
padding: '8px',
|
|
2541
|
+
backgroundColor: 'var(--c15t-surface-muted)',
|
|
2542
|
+
borderRadius: '4px',
|
|
2543
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2544
|
+
fontFamily: 'monospace',
|
|
2545
|
+
wordBreak: 'break-all',
|
|
2546
|
+
maxHeight: '80px',
|
|
2547
|
+
overflowY: 'auto',
|
|
2548
|
+
color: tcString ? 'var(--c15t-text)' : 'var(--c15t-text-muted)'
|
|
2549
|
+
},
|
|
2550
|
+
text: tcString || 'No TC String generated yet'
|
|
2551
|
+
})
|
|
2552
|
+
]
|
|
2553
|
+
});
|
|
2554
|
+
container.appendChild(tcStringSection);
|
|
2555
|
+
const gvl = iabState.gvl;
|
|
2556
|
+
const purposeConsents = iabState.purposeConsents || {};
|
|
2557
|
+
const purposes = gvl?.purposes || {};
|
|
2558
|
+
const purposeEntries = Object.entries(purposeConsents);
|
|
2559
|
+
if (purposeEntries.length > 0) {
|
|
2560
|
+
const purposeList = renderer_div({
|
|
2561
|
+
style: {
|
|
2562
|
+
display: 'flex',
|
|
2563
|
+
flexDirection: 'column',
|
|
2564
|
+
gap: '4px',
|
|
2565
|
+
maxHeight: '120px',
|
|
2566
|
+
overflowY: 'auto'
|
|
2567
|
+
}
|
|
2568
|
+
});
|
|
2569
|
+
for (const [purposeId, consent] of purposeEntries){
|
|
2570
|
+
const purposeInfo = purposes[purposeId];
|
|
2571
|
+
const purposeName = purposeInfo?.name || `Purpose ${purposeId}`;
|
|
2572
|
+
purposeList.appendChild(createPurposeRow(purposeId, purposeName, Boolean(consent)));
|
|
2573
|
+
}
|
|
2574
|
+
const purposesSection = createSection({
|
|
2575
|
+
title: `Purposes (${purposeEntries.length})`,
|
|
2576
|
+
children: [
|
|
2577
|
+
purposeList
|
|
2578
|
+
]
|
|
2579
|
+
});
|
|
2580
|
+
container.appendChild(purposesSection);
|
|
2581
|
+
}
|
|
2582
|
+
const specialFeatureOptIns = iabState.specialFeatureOptIns || {};
|
|
2583
|
+
const specialFeatures = gvl?.specialFeatures || {};
|
|
2584
|
+
const specialFeatureEntries = Object.entries(specialFeatureOptIns);
|
|
2585
|
+
if (specialFeatureEntries.length > 0) {
|
|
2586
|
+
const specialFeatureList = renderer_div({
|
|
2587
|
+
style: {
|
|
2588
|
+
display: 'flex',
|
|
2589
|
+
flexDirection: 'column',
|
|
2590
|
+
gap: '4px',
|
|
2591
|
+
maxHeight: '100px',
|
|
2592
|
+
overflowY: 'auto'
|
|
2593
|
+
}
|
|
2594
|
+
});
|
|
2595
|
+
for (const [featureId, optIn] of specialFeatureEntries){
|
|
2596
|
+
const featureInfo = specialFeatures[featureId];
|
|
2597
|
+
const featureName = featureInfo?.name || `Special Feature ${featureId}`;
|
|
2598
|
+
specialFeatureList.appendChild(createPurposeRow(featureId, featureName, Boolean(optIn)));
|
|
2599
|
+
}
|
|
2600
|
+
const specialFeaturesSection = createSection({
|
|
2601
|
+
title: `Special Features (${specialFeatureEntries.length})`,
|
|
2602
|
+
children: [
|
|
2603
|
+
specialFeatureList
|
|
2604
|
+
]
|
|
2605
|
+
});
|
|
2606
|
+
container.appendChild(specialFeaturesSection);
|
|
2607
|
+
}
|
|
2608
|
+
const vendorConsents = iabState.vendorConsents || {};
|
|
2609
|
+
const vendors = gvl?.vendors || {};
|
|
2610
|
+
const vendorEntries = Object.entries(vendorConsents);
|
|
2611
|
+
const iabVendors = [];
|
|
2612
|
+
const customVendors = [];
|
|
2613
|
+
for (const [vendorId, consent] of vendorEntries){
|
|
2614
|
+
const vendorInfo = vendors[vendorId];
|
|
2615
|
+
const vendorName = vendorInfo?.name || `Vendor ${vendorId}`;
|
|
2616
|
+
const isIabVendor = void 0 !== vendorInfo;
|
|
2617
|
+
if (isIabVendor) iabVendors.push([
|
|
2618
|
+
vendorId,
|
|
2619
|
+
Boolean(consent),
|
|
2620
|
+
vendorName
|
|
2621
|
+
]);
|
|
2622
|
+
else customVendors.push([
|
|
2623
|
+
vendorId,
|
|
2624
|
+
Boolean(consent),
|
|
2625
|
+
vendorName
|
|
2626
|
+
]);
|
|
2627
|
+
}
|
|
2628
|
+
if (iabVendors.length > 0) {
|
|
2629
|
+
const vendorList = renderer_div({
|
|
2630
|
+
style: {
|
|
2631
|
+
display: 'flex',
|
|
2632
|
+
flexDirection: 'column',
|
|
2633
|
+
gap: '4px',
|
|
2634
|
+
maxHeight: '120px',
|
|
2635
|
+
overflowY: 'auto'
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
for (const [vendorId, consent, vendorName] of iabVendors)vendorList.appendChild(createVendorRow(vendorId, vendorName, consent, 'iab'));
|
|
2639
|
+
const vendorsSection = createSection({
|
|
2640
|
+
title: `IAB Vendors (${iabVendors.length})`,
|
|
2641
|
+
children: [
|
|
2642
|
+
vendorList
|
|
2643
|
+
]
|
|
2644
|
+
});
|
|
2645
|
+
container.appendChild(vendorsSection);
|
|
2646
|
+
}
|
|
2647
|
+
if (customVendors.length > 0) {
|
|
2648
|
+
const customVendorList = renderer_div({
|
|
2649
|
+
style: {
|
|
2650
|
+
display: 'flex',
|
|
2651
|
+
flexDirection: 'column',
|
|
2652
|
+
gap: '4px',
|
|
2653
|
+
maxHeight: '100px',
|
|
2654
|
+
overflowY: 'auto'
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
for (const [vendorId, consent, vendorName] of customVendors)customVendorList.appendChild(createVendorRow(vendorId, vendorName, consent, 'custom'));
|
|
2658
|
+
const customVendorsSection = createSection({
|
|
2659
|
+
title: `Custom Vendors (${customVendors.length})`,
|
|
2660
|
+
children: [
|
|
2661
|
+
customVendorList
|
|
2662
|
+
]
|
|
2663
|
+
});
|
|
2664
|
+
container.appendChild(customVendorsSection);
|
|
2665
|
+
}
|
|
2666
|
+
if (0 === purposeEntries.length && 0 === specialFeatureEntries.length && 0 === vendorEntries.length) container.appendChild(renderer_div({
|
|
2667
|
+
style: {
|
|
2668
|
+
padding: '16px',
|
|
2669
|
+
textAlign: 'center',
|
|
2670
|
+
color: 'var(--c15t-text-muted)',
|
|
2671
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2672
|
+
},
|
|
2673
|
+
text: 'No purposes or vendors configured'
|
|
2674
|
+
}));
|
|
2675
|
+
const footer = renderer_div({
|
|
2676
|
+
style: {
|
|
2677
|
+
display: 'flex',
|
|
2678
|
+
alignItems: 'center',
|
|
2679
|
+
justifyContent: 'flex-end',
|
|
2680
|
+
padding: '12px 16px',
|
|
2681
|
+
marginTop: 'auto',
|
|
2682
|
+
borderTop: '1px solid var(--c15t-border)',
|
|
2683
|
+
backgroundColor: 'var(--c15t-surface)'
|
|
2684
|
+
},
|
|
2685
|
+
children: [
|
|
2686
|
+
createButton({
|
|
2687
|
+
text: 'Reset All',
|
|
2688
|
+
variant: 'danger',
|
|
2689
|
+
small: true,
|
|
2690
|
+
onClick: onReset
|
|
2691
|
+
})
|
|
2692
|
+
]
|
|
2693
|
+
});
|
|
2694
|
+
container.appendChild(footer);
|
|
2695
|
+
}
|
|
2696
|
+
function createPurposeRow(id, name, consent) {
|
|
2697
|
+
return renderer_div({
|
|
2698
|
+
style: {
|
|
2699
|
+
display: 'flex',
|
|
2700
|
+
alignItems: 'center',
|
|
2701
|
+
justifyContent: 'space-between',
|
|
2702
|
+
padding: '4px 0',
|
|
2703
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2704
|
+
borderBottom: '1px solid var(--c15t-border)'
|
|
2705
|
+
},
|
|
2706
|
+
children: [
|
|
2707
|
+
renderer_span({
|
|
2708
|
+
style: {
|
|
2709
|
+
color: 'var(--c15t-text)',
|
|
2710
|
+
overflow: 'hidden',
|
|
2711
|
+
textOverflow: 'ellipsis',
|
|
2712
|
+
whiteSpace: 'nowrap',
|
|
2713
|
+
flex: '1',
|
|
2714
|
+
marginRight: '8px'
|
|
2715
|
+
},
|
|
2716
|
+
text: `${id}. ${name}`,
|
|
2717
|
+
title: name
|
|
2718
|
+
}),
|
|
2719
|
+
createBadge({
|
|
2720
|
+
text: consent ? '✓' : '✕',
|
|
2721
|
+
variant: consent ? 'success' : 'error'
|
|
2722
|
+
})
|
|
2723
|
+
]
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
function createVendorRow(id, name, consent, type) {
|
|
2727
|
+
return renderer_div({
|
|
2728
|
+
style: {
|
|
2729
|
+
display: 'flex',
|
|
2730
|
+
alignItems: 'center',
|
|
2731
|
+
justifyContent: 'space-between',
|
|
2732
|
+
padding: '4px 0',
|
|
2733
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2734
|
+
borderBottom: '1px solid var(--c15t-border)'
|
|
2735
|
+
},
|
|
2736
|
+
children: [
|
|
2737
|
+
renderer_div({
|
|
2738
|
+
style: {
|
|
2739
|
+
display: 'flex',
|
|
2740
|
+
alignItems: 'center',
|
|
2741
|
+
gap: '6px',
|
|
2742
|
+
overflow: 'hidden',
|
|
2743
|
+
flex: '1',
|
|
2744
|
+
marginRight: '8px'
|
|
2745
|
+
},
|
|
2746
|
+
children: [
|
|
2747
|
+
'custom' === type ? renderer_span({
|
|
2748
|
+
style: {
|
|
2749
|
+
fontSize: '9px',
|
|
2750
|
+
padding: '1px 4px',
|
|
2751
|
+
backgroundColor: 'var(--c15t-devtools-badge-info-bg)',
|
|
2752
|
+
color: 'var(--c15t-devtools-badge-info)',
|
|
2753
|
+
borderRadius: '2px',
|
|
2754
|
+
flexShrink: '0'
|
|
2755
|
+
},
|
|
2756
|
+
text: 'CUSTOM'
|
|
2757
|
+
}) : null,
|
|
2758
|
+
renderer_span({
|
|
2759
|
+
style: {
|
|
2760
|
+
color: 'var(--c15t-text)',
|
|
2761
|
+
overflow: 'hidden',
|
|
2762
|
+
textOverflow: 'ellipsis',
|
|
2763
|
+
whiteSpace: 'nowrap'
|
|
2764
|
+
},
|
|
2765
|
+
text: `${id}. ${truncateText(name, 25)}`,
|
|
2766
|
+
title: name
|
|
2767
|
+
})
|
|
2768
|
+
].filter(Boolean)
|
|
2769
|
+
}),
|
|
2770
|
+
createBadge({
|
|
2771
|
+
text: consent ? '✓' : '✕',
|
|
2772
|
+
variant: consent ? 'success' : 'error'
|
|
2773
|
+
})
|
|
2774
|
+
]
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2777
|
+
function truncateText(text, maxLength) {
|
|
2778
|
+
if (text.length <= maxLength) return text;
|
|
2779
|
+
return text.slice(0, maxLength - 3) + '...';
|
|
2780
|
+
}
|
|
2781
|
+
function location_renderLocationPanel(container, options) {
|
|
2782
|
+
const { getState, onSetOverrides, onClearOverrides } = options;
|
|
2783
|
+
renderer_clearElement(container);
|
|
2784
|
+
const state = getState();
|
|
2785
|
+
if (!state) return void container.appendChild(renderer_div({
|
|
2786
|
+
style: {
|
|
2787
|
+
padding: '24px',
|
|
2788
|
+
textAlign: 'center',
|
|
2789
|
+
color: 'var(--c15t-text-muted)',
|
|
2790
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
2791
|
+
},
|
|
2792
|
+
text: 'Store not connected'
|
|
2793
|
+
}));
|
|
2794
|
+
const locationInfo = state.locationInfo;
|
|
2795
|
+
const overrides = state.overrides;
|
|
2796
|
+
const translationConfig = state.translationConfig;
|
|
2797
|
+
const gridItems = [
|
|
2798
|
+
createCompactInfoCard('Country', locationInfo?.countryCode || '—'),
|
|
2799
|
+
createCompactInfoCard('Region', locationInfo?.regionCode || '—'),
|
|
2800
|
+
createCompactInfoCard('Jurisdiction', locationInfo?.jurisdiction || '—'),
|
|
2801
|
+
createCompactInfoCard('Language', translationConfig?.defaultLanguage || '—')
|
|
2802
|
+
];
|
|
2803
|
+
if (state.model) gridItems.push(createCompactInfoCard('Model', getModelLabel(state.model)));
|
|
2804
|
+
const locationGrid = createGrid({
|
|
2805
|
+
columns: 2,
|
|
2806
|
+
children: gridItems
|
|
2807
|
+
});
|
|
2808
|
+
container.appendChild(locationGrid);
|
|
2809
|
+
const overrideSection = createSection({
|
|
2810
|
+
title: 'Override Settings',
|
|
2811
|
+
actions: [
|
|
2812
|
+
createButton({
|
|
2813
|
+
text: 'Clear',
|
|
2814
|
+
small: true,
|
|
2815
|
+
onClick: onClearOverrides
|
|
2816
|
+
})
|
|
2817
|
+
],
|
|
2818
|
+
children: [
|
|
2819
|
+
createOverrideSelect({
|
|
2820
|
+
label: 'Country',
|
|
2821
|
+
selectOptions: COUNTRY_OPTIONS,
|
|
2822
|
+
value: overrides?.country || '',
|
|
2823
|
+
onChange: (value)=>onSetOverrides({
|
|
2824
|
+
country: value || void 0
|
|
2825
|
+
})
|
|
2826
|
+
}),
|
|
2827
|
+
createOverrideInput({
|
|
2828
|
+
label: 'Region',
|
|
2829
|
+
placeholder: 'e.g., CA, NY, BE',
|
|
2830
|
+
value: overrides?.region || '',
|
|
2831
|
+
onChange: (value)=>onSetOverrides({
|
|
2832
|
+
region: value || void 0
|
|
2833
|
+
})
|
|
2834
|
+
}),
|
|
2835
|
+
createOverrideInput({
|
|
2836
|
+
label: 'Language',
|
|
2837
|
+
placeholder: 'e.g., de, fr, en',
|
|
2838
|
+
value: overrides?.language || '',
|
|
2839
|
+
onChange: (value)=>onSetOverrides({
|
|
2840
|
+
language: value || void 0
|
|
2841
|
+
})
|
|
2842
|
+
})
|
|
2843
|
+
]
|
|
2844
|
+
});
|
|
2845
|
+
container.appendChild(overrideSection);
|
|
2846
|
+
const hasOverrides = overrides && (overrides.country || overrides.region || overrides.language);
|
|
2847
|
+
if (hasOverrides) {
|
|
2848
|
+
const overrideBanner = renderer_div({
|
|
2849
|
+
style: {
|
|
2850
|
+
padding: '8px 16px',
|
|
2851
|
+
backgroundColor: 'var(--c15t-devtools-badge-info-bg)',
|
|
2852
|
+
color: 'var(--c15t-devtools-badge-info)',
|
|
2853
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2854
|
+
borderTop: '1px solid var(--c15t-devtools-border)'
|
|
2855
|
+
},
|
|
2856
|
+
text: 'Overrides are active. This may affect consent behavior.'
|
|
2857
|
+
});
|
|
2858
|
+
container.appendChild(overrideBanner);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
function createOverrideInput(options) {
|
|
2862
|
+
const { label, placeholder, value, onChange } = options;
|
|
2863
|
+
let debounceTimer = null;
|
|
2864
|
+
const inputField = input({
|
|
2865
|
+
className: `${styles_components_module.input ?? ''} ${styles_components_module.inputSmall ?? ''}`.trim(),
|
|
2866
|
+
placeholder,
|
|
2867
|
+
value,
|
|
2868
|
+
onInput: (e)=>{
|
|
2869
|
+
const target = e.target;
|
|
2870
|
+
if (debounceTimer) clearTimeout(debounceTimer);
|
|
2871
|
+
debounceTimer = setTimeout(()=>{
|
|
2872
|
+
onChange(target.value);
|
|
2873
|
+
}, 500);
|
|
2874
|
+
}
|
|
2875
|
+
});
|
|
2876
|
+
return renderer_div({
|
|
2877
|
+
style: {
|
|
2878
|
+
display: 'flex',
|
|
2879
|
+
alignItems: 'center',
|
|
2880
|
+
justifyContent: 'space-between',
|
|
2881
|
+
gap: '8px',
|
|
2882
|
+
marginBottom: '8px'
|
|
2883
|
+
},
|
|
2884
|
+
children: [
|
|
2885
|
+
renderer_div({
|
|
2886
|
+
style: {
|
|
2887
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2888
|
+
color: 'var(--c15t-devtools-text-muted)',
|
|
2889
|
+
minWidth: '60px'
|
|
2890
|
+
},
|
|
2891
|
+
text: label
|
|
2892
|
+
}),
|
|
2893
|
+
renderer_div({
|
|
2894
|
+
style: {
|
|
2895
|
+
flex: '1'
|
|
2896
|
+
},
|
|
2897
|
+
children: [
|
|
2898
|
+
inputField
|
|
2899
|
+
]
|
|
2900
|
+
})
|
|
2901
|
+
]
|
|
2902
|
+
});
|
|
2903
|
+
}
|
|
2904
|
+
function createOverrideSelect(options) {
|
|
2905
|
+
const { label, selectOptions, value, onChange } = options;
|
|
2906
|
+
const selectField = renderer_select({
|
|
2907
|
+
className: `${styles_components_module.input ?? ''} ${styles_components_module.inputSmall ?? ''}`.trim(),
|
|
2908
|
+
options: selectOptions,
|
|
2909
|
+
selectedValue: value,
|
|
2910
|
+
onChange: (e)=>{
|
|
2911
|
+
const target = e.target;
|
|
2912
|
+
onChange(target.value);
|
|
2913
|
+
}
|
|
2914
|
+
});
|
|
2915
|
+
return renderer_div({
|
|
2916
|
+
style: {
|
|
2917
|
+
display: 'flex',
|
|
2918
|
+
alignItems: 'center',
|
|
2919
|
+
justifyContent: 'space-between',
|
|
2920
|
+
gap: '8px',
|
|
2921
|
+
marginBottom: '8px'
|
|
2922
|
+
},
|
|
2923
|
+
children: [
|
|
2924
|
+
renderer_div({
|
|
2925
|
+
style: {
|
|
2926
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
2927
|
+
color: 'var(--c15t-devtools-text-muted)',
|
|
2928
|
+
minWidth: '60px'
|
|
2929
|
+
},
|
|
2930
|
+
text: label
|
|
2931
|
+
}),
|
|
2932
|
+
renderer_div({
|
|
2933
|
+
style: {
|
|
2934
|
+
flex: '1'
|
|
2935
|
+
},
|
|
2936
|
+
children: [
|
|
2937
|
+
selectField
|
|
2938
|
+
]
|
|
2939
|
+
})
|
|
2940
|
+
]
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
const COUNTRY_OPTIONS = [
|
|
2944
|
+
{
|
|
2945
|
+
value: '',
|
|
2946
|
+
label: '-- Select --'
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
value: 'US',
|
|
2950
|
+
label: 'US - United States'
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
value: 'CA',
|
|
2954
|
+
label: 'CA - Canada'
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
value: 'GB',
|
|
2958
|
+
label: 'GB - United Kingdom'
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
value: 'DE',
|
|
2962
|
+
label: 'DE - Germany'
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
value: 'FR',
|
|
2966
|
+
label: 'FR - France'
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
value: 'IT',
|
|
2970
|
+
label: 'IT - Italy'
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
value: 'ES',
|
|
2974
|
+
label: 'ES - Spain'
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
value: 'NL',
|
|
2978
|
+
label: 'NL - Netherlands'
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
value: 'BE',
|
|
2982
|
+
label: 'BE - Belgium'
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
value: 'AT',
|
|
2986
|
+
label: 'AT - Austria'
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
value: 'CH',
|
|
2990
|
+
label: 'CH - Switzerland'
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
value: 'PL',
|
|
2994
|
+
label: 'PL - Poland'
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
value: 'SE',
|
|
2998
|
+
label: 'SE - Sweden'
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
value: 'NO',
|
|
3002
|
+
label: 'NO - Norway'
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
value: 'DK',
|
|
3006
|
+
label: 'DK - Denmark'
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
value: 'FI',
|
|
3010
|
+
label: 'FI - Finland'
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
value: 'IE',
|
|
3014
|
+
label: 'IE - Ireland'
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
value: 'PT',
|
|
3018
|
+
label: 'PT - Portugal'
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
value: 'AU',
|
|
3022
|
+
label: 'AU - Australia'
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
value: 'NZ',
|
|
3026
|
+
label: 'NZ - New Zealand'
|
|
3027
|
+
},
|
|
3028
|
+
{
|
|
3029
|
+
value: 'JP',
|
|
3030
|
+
label: 'JP - Japan'
|
|
3031
|
+
},
|
|
3032
|
+
{
|
|
3033
|
+
value: 'BR',
|
|
3034
|
+
label: 'BR - Brazil'
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
value: 'MX',
|
|
3038
|
+
label: 'MX - Mexico'
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
value: 'IN',
|
|
3042
|
+
label: 'IN - India'
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
value: 'CN',
|
|
3046
|
+
label: 'CN - China'
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
value: 'KR',
|
|
3050
|
+
label: 'KR - South Korea'
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
value: 'SG',
|
|
3054
|
+
label: 'SG - Singapore'
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
value: 'HK',
|
|
3058
|
+
label: 'HK - Hong Kong'
|
|
3059
|
+
},
|
|
3060
|
+
{
|
|
3061
|
+
value: 'ZA',
|
|
3062
|
+
label: 'ZA - South Africa'
|
|
3063
|
+
}
|
|
3064
|
+
];
|
|
3065
|
+
function getModelLabel(model) {
|
|
3066
|
+
switch(model){
|
|
3067
|
+
case 'opt-in':
|
|
3068
|
+
return 'Opt-In';
|
|
3069
|
+
case 'opt-out':
|
|
3070
|
+
return 'Opt-Out';
|
|
3071
|
+
case 'iab':
|
|
3072
|
+
return 'IAB TCF';
|
|
3073
|
+
default:
|
|
3074
|
+
return 'None';
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
function createCompactInfoCard(label, value) {
|
|
3078
|
+
return renderer_div({
|
|
3079
|
+
className: styles_components_module.gridCard ?? '',
|
|
3080
|
+
style: {
|
|
3081
|
+
flexDirection: 'column',
|
|
3082
|
+
alignItems: 'flex-start',
|
|
3083
|
+
gap: '2px'
|
|
3084
|
+
},
|
|
3085
|
+
children: [
|
|
3086
|
+
renderer_span({
|
|
3087
|
+
style: {
|
|
3088
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3089
|
+
color: 'var(--c15t-text-muted)'
|
|
3090
|
+
},
|
|
3091
|
+
text: label
|
|
3092
|
+
}),
|
|
3093
|
+
renderer_span({
|
|
3094
|
+
style: {
|
|
3095
|
+
fontSize: 'var(--c15t-font-size-sm)',
|
|
3096
|
+
fontWeight: '500',
|
|
3097
|
+
fontFamily: 'ui-monospace, monospace'
|
|
3098
|
+
},
|
|
3099
|
+
text: value
|
|
3100
|
+
})
|
|
3101
|
+
]
|
|
3102
|
+
});
|
|
3103
|
+
}
|
|
3104
|
+
const dismissedResources = new Set();
|
|
3105
|
+
function scanDOM(state) {
|
|
3106
|
+
const results = [];
|
|
3107
|
+
const configuredScripts = state.scripts || [];
|
|
3108
|
+
const managedDomains = new Map();
|
|
3109
|
+
for (const script of configuredScripts)if (script.src) try {
|
|
3110
|
+
const url = new URL(script.src, window.location.origin);
|
|
3111
|
+
if (url.hostname !== window.location.hostname) managedDomains.set(url.hostname, script.id);
|
|
3112
|
+
} catch {}
|
|
3113
|
+
const scriptElements = document.querySelectorAll("script[src]");
|
|
3114
|
+
for (const el of scriptElements){
|
|
3115
|
+
const src = el.getAttribute('src');
|
|
3116
|
+
if (!src) continue;
|
|
3117
|
+
const resource = checkResource(src, "script", managedDomains);
|
|
3118
|
+
if (resource) results.push(resource);
|
|
3119
|
+
}
|
|
3120
|
+
const iframeElements = document.querySelectorAll('iframe[src]');
|
|
3121
|
+
for (const el of iframeElements){
|
|
3122
|
+
const src = el.getAttribute('src');
|
|
3123
|
+
if (!src) continue;
|
|
3124
|
+
const resource = checkResource(src, 'iframe', managedDomains);
|
|
3125
|
+
if (resource) results.push(resource);
|
|
3126
|
+
}
|
|
3127
|
+
return results;
|
|
3128
|
+
}
|
|
3129
|
+
function checkResource(src, type, managedDomains) {
|
|
3130
|
+
try {
|
|
3131
|
+
const url = new URL(src, window.location.origin);
|
|
3132
|
+
const domain = url.hostname;
|
|
3133
|
+
if (domain === window.location.hostname) return null;
|
|
3134
|
+
if ('data:' === url.protocol || 'blob:' === url.protocol) return null;
|
|
3135
|
+
const managedBy = managedDomains.get(domain);
|
|
3136
|
+
const isManaged = Boolean(managedBy);
|
|
3137
|
+
return {
|
|
3138
|
+
type,
|
|
3139
|
+
src,
|
|
3140
|
+
domain,
|
|
3141
|
+
status: isManaged ? 'managed' : 'unmanaged',
|
|
3142
|
+
managedBy
|
|
3143
|
+
};
|
|
3144
|
+
} catch {}
|
|
3145
|
+
return null;
|
|
3146
|
+
}
|
|
3147
|
+
function createDomScannerSection(state) {
|
|
3148
|
+
let resultsContainer = null;
|
|
3149
|
+
let lastScanResults = [];
|
|
3150
|
+
const doRender = ()=>{
|
|
3151
|
+
if (!resultsContainer) return;
|
|
3152
|
+
renderScanResults(resultsContainer, lastScanResults, (src)=>{
|
|
3153
|
+
dismissedResources.add(src);
|
|
3154
|
+
doRender();
|
|
3155
|
+
});
|
|
3156
|
+
};
|
|
3157
|
+
const handleScan = ()=>{
|
|
3158
|
+
if (!state || !resultsContainer) return;
|
|
3159
|
+
lastScanResults = scanDOM(state);
|
|
3160
|
+
doRender();
|
|
3161
|
+
};
|
|
3162
|
+
const section = createSection({
|
|
3163
|
+
title: 'DOM Scanner',
|
|
3164
|
+
actions: [
|
|
3165
|
+
createButton({
|
|
3166
|
+
text: 'Scan DOM',
|
|
3167
|
+
small: true,
|
|
3168
|
+
onClick: handleScan
|
|
3169
|
+
})
|
|
3170
|
+
],
|
|
3171
|
+
children: []
|
|
3172
|
+
});
|
|
3173
|
+
resultsContainer = renderer_div({});
|
|
3174
|
+
const placeholder = renderer_div({
|
|
3175
|
+
style: {
|
|
3176
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3177
|
+
color: 'var(--c15t-text-muted)',
|
|
3178
|
+
textAlign: 'center',
|
|
3179
|
+
padding: '8px 0'
|
|
3180
|
+
},
|
|
3181
|
+
text: 'Click "Scan DOM" to check for external scripts and iframes'
|
|
3182
|
+
});
|
|
3183
|
+
resultsContainer.appendChild(placeholder);
|
|
3184
|
+
section.appendChild(resultsContainer);
|
|
3185
|
+
return section;
|
|
3186
|
+
}
|
|
3187
|
+
function renderScanResults(container, results, onDismiss) {
|
|
3188
|
+
while(container.firstChild)container.removeChild(container.firstChild);
|
|
3189
|
+
const activeResults = results.filter((r)=>!dismissedResources.has(r.src));
|
|
3190
|
+
if (0 === activeResults.length && 0 === results.length) return void container.appendChild(renderer_div({
|
|
3191
|
+
style: {
|
|
3192
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3193
|
+
color: 'var(--c15t-text-muted)',
|
|
3194
|
+
textAlign: 'center',
|
|
3195
|
+
padding: '8px 0'
|
|
3196
|
+
},
|
|
3197
|
+
text: "No external scripts or iframes found"
|
|
3198
|
+
}));
|
|
3199
|
+
if (0 === activeResults.length && results.length > 0) return void container.appendChild(renderer_div({
|
|
3200
|
+
style: {
|
|
3201
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3202
|
+
color: 'var(--c15t-text-muted)',
|
|
3203
|
+
textAlign: 'center',
|
|
3204
|
+
padding: '8px 0'
|
|
3205
|
+
},
|
|
3206
|
+
text: `All ${results.length} alerts dismissed`
|
|
3207
|
+
}));
|
|
3208
|
+
const unmanaged = activeResults.filter((r)=>'unmanaged' === r.status);
|
|
3209
|
+
const managed = activeResults.filter((r)=>'managed' === r.status);
|
|
3210
|
+
const dismissedCount = results.length - activeResults.length;
|
|
3211
|
+
const summaryText = dismissedCount > 0 ? `Found: ${managed.length} managed, ${unmanaged.length} unmanaged (${dismissedCount} dismissed)` : `Found: ${managed.length} managed, ${unmanaged.length} unmanaged`;
|
|
3212
|
+
const summary = renderer_div({
|
|
3213
|
+
style: {
|
|
3214
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3215
|
+
color: 'var(--c15t-text-muted)',
|
|
3216
|
+
marginBottom: '8px'
|
|
3217
|
+
},
|
|
3218
|
+
text: summaryText
|
|
3219
|
+
});
|
|
3220
|
+
container.appendChild(summary);
|
|
3221
|
+
if (unmanaged.length > 0) for (const resource of unmanaged)container.appendChild(createResourceRow(resource, 'warning', onDismiss));
|
|
3222
|
+
if (managed.length > 0) {
|
|
3223
|
+
const managedHeader = renderer_div({
|
|
3224
|
+
style: {
|
|
3225
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3226
|
+
fontWeight: '600',
|
|
3227
|
+
color: 'var(--c15t-devtools-badge-success)',
|
|
3228
|
+
marginBottom: '4px',
|
|
3229
|
+
marginTop: '8px'
|
|
3230
|
+
},
|
|
3231
|
+
text: 'MANAGED'
|
|
3232
|
+
});
|
|
3233
|
+
container.appendChild(managedHeader);
|
|
3234
|
+
for (const resource of managed)container.appendChild(createResourceRow(resource, 'success', onDismiss));
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
function createResourceRow(resource, variant, onDismiss) {
|
|
3238
|
+
const icon = 'warning' === variant ? '⚠' : '✓';
|
|
3239
|
+
const iconColor = 'warning' === variant ? 'var(--c15t-devtools-badge-warning)' : 'var(--c15t-devtools-badge-success)';
|
|
3240
|
+
const row = renderer_div({
|
|
3241
|
+
style: {
|
|
3242
|
+
display: 'flex',
|
|
3243
|
+
alignItems: 'center',
|
|
3244
|
+
gap: '6px',
|
|
3245
|
+
padding: '4px 0',
|
|
3246
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3247
|
+
borderBottom: '1px solid var(--c15t-border)'
|
|
3248
|
+
},
|
|
3249
|
+
children: [
|
|
3250
|
+
renderer_span({
|
|
3251
|
+
style: {
|
|
3252
|
+
color: iconColor,
|
|
3253
|
+
flexShrink: '0'
|
|
3254
|
+
},
|
|
3255
|
+
text: icon
|
|
3256
|
+
}),
|
|
3257
|
+
renderer_span({
|
|
3258
|
+
style: {
|
|
3259
|
+
color: 'var(--c15t-text-muted)',
|
|
3260
|
+
flexShrink: '0'
|
|
3261
|
+
},
|
|
3262
|
+
text: `${resource.type}:`
|
|
3263
|
+
}),
|
|
3264
|
+
renderer_span({
|
|
3265
|
+
style: {
|
|
3266
|
+
fontWeight: '500',
|
|
3267
|
+
color: 'var(--c15t-text)',
|
|
3268
|
+
overflow: 'hidden',
|
|
3269
|
+
textOverflow: 'ellipsis',
|
|
3270
|
+
whiteSpace: 'nowrap',
|
|
3271
|
+
flex: '1'
|
|
3272
|
+
},
|
|
3273
|
+
text: resource.domain,
|
|
3274
|
+
title: resource.src
|
|
3275
|
+
}),
|
|
3276
|
+
'warning' === variant ? (()=>{
|
|
3277
|
+
const dismissBtn = document.createElement('button');
|
|
3278
|
+
dismissBtn.textContent = '✕';
|
|
3279
|
+
dismissBtn.title = 'Dismiss this alert';
|
|
3280
|
+
dismissBtn.style.cssText = `
|
|
3281
|
+
background: none;
|
|
3282
|
+
border: none;
|
|
3283
|
+
color: var(--c15t-text-muted);
|
|
3284
|
+
cursor: pointer;
|
|
3285
|
+
padding: 2px 4px;
|
|
3286
|
+
font-size: 10px;
|
|
3287
|
+
opacity: 0.6;
|
|
3288
|
+
flex-shrink: 0;
|
|
3289
|
+
`;
|
|
3290
|
+
dismissBtn.onmouseenter = ()=>{
|
|
3291
|
+
dismissBtn.style.opacity = '1';
|
|
3292
|
+
};
|
|
3293
|
+
dismissBtn.onmouseleave = ()=>{
|
|
3294
|
+
dismissBtn.style.opacity = '0.6';
|
|
3295
|
+
};
|
|
3296
|
+
dismissBtn.onclick = (e)=>{
|
|
3297
|
+
e.stopPropagation();
|
|
3298
|
+
onDismiss(resource.src);
|
|
3299
|
+
};
|
|
3300
|
+
return dismissBtn;
|
|
3301
|
+
})() : null
|
|
3302
|
+
].filter(Boolean)
|
|
3303
|
+
});
|
|
3304
|
+
return row;
|
|
3305
|
+
}
|
|
3306
|
+
const CODE_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
3307
|
+
<polyline points="16 18 22 12 16 6"></polyline>
|
|
3308
|
+
<polyline points="8 6 2 12 8 18"></polyline>
|
|
3309
|
+
</svg>`;
|
|
3310
|
+
function scripts_renderScriptsPanel(container, options) {
|
|
3311
|
+
const { getState } = options;
|
|
3312
|
+
renderer_clearElement(container);
|
|
3313
|
+
const state = getState();
|
|
3314
|
+
if (!state) return void container.appendChild(renderer_div({
|
|
3315
|
+
style: {
|
|
3316
|
+
padding: '24px',
|
|
3317
|
+
textAlign: 'center',
|
|
3318
|
+
color: 'var(--c15t-text-muted)',
|
|
3319
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)'
|
|
3320
|
+
},
|
|
3321
|
+
text: 'Store not connected'
|
|
3322
|
+
}));
|
|
3323
|
+
const scripts = state.scripts || [];
|
|
3324
|
+
const loadedScripts = state.loadedScripts || {};
|
|
3325
|
+
const networkBlocker = state.networkBlocker;
|
|
3326
|
+
if (0 === scripts.length) {
|
|
3327
|
+
const scriptsSection = createSection({
|
|
3328
|
+
title: 'Configured Scripts',
|
|
3329
|
+
children: [
|
|
3330
|
+
createEmptyState({
|
|
3331
|
+
icon: CODE_ICON,
|
|
3332
|
+
text: "No scripts configured"
|
|
3333
|
+
})
|
|
3334
|
+
]
|
|
3335
|
+
});
|
|
3336
|
+
container.appendChild(scriptsSection);
|
|
3337
|
+
} else {
|
|
3338
|
+
const scriptsList = renderer_div({
|
|
3339
|
+
style: {
|
|
3340
|
+
display: 'flex',
|
|
3341
|
+
flexDirection: 'column',
|
|
3342
|
+
gap: '4px'
|
|
3343
|
+
}
|
|
3344
|
+
});
|
|
3345
|
+
for (const script of scripts){
|
|
3346
|
+
const scriptId = script.id;
|
|
3347
|
+
const isLoaded = true === loadedScripts[scriptId];
|
|
3348
|
+
const category = script.category;
|
|
3349
|
+
const categoryDisplay = 'string' == typeof category ? category : JSON.stringify(category);
|
|
3350
|
+
let status = 'pending';
|
|
3351
|
+
let statusVariant = 'neutral';
|
|
3352
|
+
if (isLoaded) {
|
|
3353
|
+
status = 'loaded';
|
|
3354
|
+
statusVariant = 'success';
|
|
3355
|
+
} else {
|
|
3356
|
+
const hasConsent = checkScriptConsent(state, category);
|
|
3357
|
+
if (hasConsent) {
|
|
3358
|
+
status = 'pending';
|
|
3359
|
+
statusVariant = 'warning';
|
|
3360
|
+
} else {
|
|
3361
|
+
status = 'blocked';
|
|
3362
|
+
statusVariant = 'neutral';
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
const badge = createBadge({
|
|
3366
|
+
text: status.charAt(0).toUpperCase() + status.slice(1),
|
|
3367
|
+
variant: statusVariant
|
|
3368
|
+
});
|
|
3369
|
+
const item = createListItem({
|
|
3370
|
+
title: scriptId,
|
|
3371
|
+
description: `Category: ${categoryDisplay}`,
|
|
3372
|
+
actions: [
|
|
3373
|
+
badge
|
|
3374
|
+
]
|
|
3375
|
+
});
|
|
3376
|
+
scriptsList.appendChild(item);
|
|
3377
|
+
}
|
|
3378
|
+
const scriptsSection = createSection({
|
|
3379
|
+
title: `Configured Scripts (${scripts.length})`,
|
|
3380
|
+
children: [
|
|
3381
|
+
scriptsList
|
|
3382
|
+
]
|
|
3383
|
+
});
|
|
3384
|
+
container.appendChild(scriptsSection);
|
|
3385
|
+
}
|
|
3386
|
+
const networkSection = createSection({
|
|
3387
|
+
title: 'Network Blocker',
|
|
3388
|
+
children: networkBlocker ? [
|
|
3389
|
+
createInfoRow({
|
|
3390
|
+
label: 'Status',
|
|
3391
|
+
value: 'Active'
|
|
3392
|
+
}),
|
|
3393
|
+
createInfoRow({
|
|
3394
|
+
label: 'Blocked Domains',
|
|
3395
|
+
value: String(networkBlocker.rules?.length || 0)
|
|
3396
|
+
})
|
|
3397
|
+
] : [
|
|
3398
|
+
renderer_div({
|
|
3399
|
+
style: {
|
|
3400
|
+
fontSize: 'var(--c15t-devtools-font-size-xs)',
|
|
3401
|
+
color: 'var(--c15t-devtools-text-muted)'
|
|
3402
|
+
},
|
|
3403
|
+
text: 'Network blocker not configured'
|
|
3404
|
+
})
|
|
3405
|
+
]
|
|
3406
|
+
});
|
|
3407
|
+
container.appendChild(networkSection);
|
|
3408
|
+
const loadedCount = Object.values(loadedScripts).filter(Boolean).length;
|
|
3409
|
+
const totalCount = scripts.length;
|
|
3410
|
+
const summarySection = createSection({
|
|
3411
|
+
title: 'Summary',
|
|
3412
|
+
children: [
|
|
3413
|
+
createInfoRow({
|
|
3414
|
+
label: 'Total Scripts',
|
|
3415
|
+
value: String(totalCount)
|
|
3416
|
+
}),
|
|
3417
|
+
createInfoRow({
|
|
3418
|
+
label: 'Loaded',
|
|
3419
|
+
value: String(loadedCount)
|
|
3420
|
+
}),
|
|
3421
|
+
createInfoRow({
|
|
3422
|
+
label: 'Pending/Blocked',
|
|
3423
|
+
value: String(totalCount - loadedCount)
|
|
3424
|
+
})
|
|
3425
|
+
]
|
|
3426
|
+
});
|
|
3427
|
+
container.appendChild(summarySection);
|
|
3428
|
+
const scannerSection = createDomScannerSection(state);
|
|
3429
|
+
container.appendChild(scannerSection);
|
|
3430
|
+
}
|
|
3431
|
+
function checkScriptConsent(state, category) {
|
|
3432
|
+
if (!category) return true;
|
|
3433
|
+
if ('string' == typeof category) {
|
|
3434
|
+
const consents = state.consents || {};
|
|
3435
|
+
return true === consents[category];
|
|
3436
|
+
}
|
|
3437
|
+
return false;
|
|
3438
|
+
}
|
|
3439
|
+
const STORAGE_KEYS = {
|
|
3440
|
+
C15T: 'c15t',
|
|
3441
|
+
PENDING_SYNC: 'c15t:pending-consent-sync',
|
|
3442
|
+
PENDING_SUBMISSIONS: 'c15t-pending-consent-submissions',
|
|
3443
|
+
EUCONSENT: 'euconsent-v2'
|
|
3444
|
+
};
|
|
3445
|
+
const COOKIE_NAMES = {
|
|
3446
|
+
C15T: 'c15t',
|
|
3447
|
+
EUCONSENT: 'euconsent-v2'
|
|
3448
|
+
};
|
|
3449
|
+
function clearCookie(name) {
|
|
3450
|
+
document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
3451
|
+
}
|
|
3452
|
+
function clearAllCookies() {
|
|
3453
|
+
clearCookie(COOKIE_NAMES.C15T);
|
|
3454
|
+
clearCookie(COOKIE_NAMES.EUCONSENT);
|
|
3455
|
+
}
|
|
3456
|
+
function clearAllLocalStorage() {
|
|
3457
|
+
try {
|
|
3458
|
+
localStorage.removeItem(STORAGE_KEYS.C15T);
|
|
3459
|
+
localStorage.removeItem(STORAGE_KEYS.PENDING_SYNC);
|
|
3460
|
+
localStorage.removeItem(STORAGE_KEYS.PENDING_SUBMISSIONS);
|
|
3461
|
+
localStorage.removeItem(STORAGE_KEYS.EUCONSENT);
|
|
3462
|
+
} catch {}
|
|
3463
|
+
}
|
|
3464
|
+
async function reset_consents_resetAllConsents(store, stateManager) {
|
|
3465
|
+
const storeState = store.getState();
|
|
3466
|
+
storeState.resetConsents();
|
|
3467
|
+
clearAllCookies();
|
|
3468
|
+
clearAllLocalStorage();
|
|
3469
|
+
await storeState.initConsentManager();
|
|
3470
|
+
stateManager?.addEvent({
|
|
3471
|
+
type: 'consent_reset',
|
|
3472
|
+
message: 'All consents reset (storage cleared)'
|
|
3473
|
+
});
|
|
3474
|
+
}
|
|
3475
|
+
const STORAGE_KEY = 'c15t-devtools-events';
|
|
3476
|
+
function loadPersistedEvents() {
|
|
3477
|
+
if ('undefined' == typeof window) return [];
|
|
3478
|
+
try {
|
|
3479
|
+
const stored = sessionStorage.getItem(STORAGE_KEY);
|
|
3480
|
+
if (stored) return JSON.parse(stored);
|
|
3481
|
+
} catch {}
|
|
3482
|
+
return [];
|
|
3483
|
+
}
|
|
3484
|
+
function persistEvents(events) {
|
|
3485
|
+
if ('undefined' == typeof window) return;
|
|
3486
|
+
try {
|
|
3487
|
+
sessionStorage.setItem(STORAGE_KEY, JSON.stringify(events));
|
|
3488
|
+
} catch {}
|
|
3489
|
+
}
|
|
3490
|
+
function state_manager_createStateManager(initialState = {}) {
|
|
3491
|
+
const persistedEvents = loadPersistedEvents();
|
|
3492
|
+
let state = {
|
|
3493
|
+
isOpen: false,
|
|
3494
|
+
activeTab: 'location',
|
|
3495
|
+
position: 'bottom-right',
|
|
3496
|
+
isConnected: false,
|
|
3497
|
+
eventLog: persistedEvents,
|
|
3498
|
+
maxEventLogSize: 100,
|
|
3499
|
+
...initialState
|
|
3500
|
+
};
|
|
3501
|
+
const listeners = new Set();
|
|
3502
|
+
function notify(prevState) {
|
|
3503
|
+
for (const listener of listeners)listener(state, prevState);
|
|
3504
|
+
}
|
|
3505
|
+
function setState(partial) {
|
|
3506
|
+
const prevState = state;
|
|
3507
|
+
state = {
|
|
3508
|
+
...state,
|
|
3509
|
+
...partial
|
|
3510
|
+
};
|
|
3511
|
+
notify(prevState);
|
|
3512
|
+
}
|
|
3513
|
+
return {
|
|
3514
|
+
getState: ()=>state,
|
|
3515
|
+
subscribe: (listener)=>{
|
|
3516
|
+
listeners.add(listener);
|
|
3517
|
+
return ()=>{
|
|
3518
|
+
listeners.delete(listener);
|
|
3519
|
+
};
|
|
3520
|
+
},
|
|
3521
|
+
setOpen: (isOpen)=>{
|
|
3522
|
+
setState({
|
|
3523
|
+
isOpen
|
|
3524
|
+
});
|
|
3525
|
+
},
|
|
3526
|
+
toggle: ()=>{
|
|
3527
|
+
setState({
|
|
3528
|
+
isOpen: !state.isOpen
|
|
3529
|
+
});
|
|
3530
|
+
},
|
|
3531
|
+
setActiveTab: (tab)=>{
|
|
3532
|
+
setState({
|
|
3533
|
+
activeTab: tab
|
|
3534
|
+
});
|
|
3535
|
+
},
|
|
3536
|
+
setPosition: (position)=>{
|
|
3537
|
+
setState({
|
|
3538
|
+
position
|
|
3539
|
+
});
|
|
3540
|
+
},
|
|
3541
|
+
setConnected: (isConnected)=>{
|
|
3542
|
+
setState({
|
|
3543
|
+
isConnected
|
|
3544
|
+
});
|
|
3545
|
+
},
|
|
3546
|
+
addEvent: (entry)=>{
|
|
3547
|
+
const newEvent = {
|
|
3548
|
+
...entry,
|
|
3549
|
+
id: `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
3550
|
+
timestamp: Date.now()
|
|
3551
|
+
};
|
|
3552
|
+
const eventLog = [
|
|
3553
|
+
newEvent,
|
|
3554
|
+
...state.eventLog
|
|
3555
|
+
].slice(0, state.maxEventLogSize);
|
|
3556
|
+
setState({
|
|
3557
|
+
eventLog
|
|
3558
|
+
});
|
|
3559
|
+
persistEvents(eventLog);
|
|
3560
|
+
},
|
|
3561
|
+
clearEventLog: ()=>{
|
|
3562
|
+
setState({
|
|
3563
|
+
eventLog: []
|
|
3564
|
+
});
|
|
3565
|
+
persistEvents([]);
|
|
3566
|
+
},
|
|
3567
|
+
destroy: ()=>{
|
|
3568
|
+
listeners.clear();
|
|
3569
|
+
}
|
|
3570
|
+
};
|
|
3571
|
+
}
|
|
3572
|
+
function store_connector_createStoreConnector(options = {}) {
|
|
3573
|
+
const { namespace = 'c15tStore', onConnect, onStateChange, onDisconnect } = options;
|
|
3574
|
+
let store = null;
|
|
3575
|
+
let unsubscribe = null;
|
|
3576
|
+
let pollInterval = null;
|
|
3577
|
+
const listeners = new Set();
|
|
3578
|
+
function tryConnect() {
|
|
3579
|
+
if ('undefined' == typeof window) return false;
|
|
3580
|
+
const storeInstance = window[namespace];
|
|
3581
|
+
if (storeInstance && 'function' == typeof storeInstance.getState) {
|
|
3582
|
+
store = storeInstance;
|
|
3583
|
+
unsubscribe = store.subscribe((state)=>{
|
|
3584
|
+
onStateChange?.(state);
|
|
3585
|
+
for (const listener of listeners)listener(state);
|
|
3586
|
+
});
|
|
3587
|
+
const currentState = store.getState();
|
|
3588
|
+
onConnect?.(currentState, store);
|
|
3589
|
+
if (pollInterval) {
|
|
3590
|
+
clearInterval(pollInterval);
|
|
3591
|
+
pollInterval = null;
|
|
3592
|
+
}
|
|
3593
|
+
return true;
|
|
3594
|
+
}
|
|
3595
|
+
return false;
|
|
3596
|
+
}
|
|
3597
|
+
function startPolling() {
|
|
3598
|
+
if (pollInterval) return;
|
|
3599
|
+
if (tryConnect()) return;
|
|
3600
|
+
let attempts = 0;
|
|
3601
|
+
const maxAttempts = 50;
|
|
3602
|
+
pollInterval = setInterval(()=>{
|
|
3603
|
+
attempts++;
|
|
3604
|
+
if (tryConnect()) return;
|
|
3605
|
+
if (attempts >= maxAttempts) {
|
|
3606
|
+
if (pollInterval) {
|
|
3607
|
+
clearInterval(pollInterval);
|
|
3608
|
+
pollInterval = null;
|
|
3609
|
+
}
|
|
3610
|
+
onDisconnect?.();
|
|
3611
|
+
}
|
|
3612
|
+
}, 100);
|
|
3613
|
+
}
|
|
3614
|
+
startPolling();
|
|
3615
|
+
return {
|
|
3616
|
+
getState: ()=>store?.getState() ?? null,
|
|
3617
|
+
getStore: ()=>store,
|
|
3618
|
+
isConnected: ()=>null !== store,
|
|
3619
|
+
subscribe: (listener)=>{
|
|
3620
|
+
listeners.add(listener);
|
|
3621
|
+
if (store) listener(store.getState());
|
|
3622
|
+
return ()=>{
|
|
3623
|
+
listeners.delete(listener);
|
|
3624
|
+
};
|
|
3625
|
+
},
|
|
3626
|
+
destroy: ()=>{
|
|
3627
|
+
if (pollInterval) {
|
|
3628
|
+
clearInterval(pollInterval);
|
|
3629
|
+
pollInterval = null;
|
|
3630
|
+
}
|
|
3631
|
+
if (unsubscribe) {
|
|
3632
|
+
unsubscribe();
|
|
3633
|
+
unsubscribe = null;
|
|
3634
|
+
}
|
|
3635
|
+
store = null;
|
|
3636
|
+
listeners.clear();
|
|
3637
|
+
}
|
|
3638
|
+
};
|
|
3639
|
+
}
|
|
3640
|
+
var tokens = __webpack_require__("../../node_modules/.bun/@rsbuild+core@1.6.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/styles/tokens.css");
|
|
3641
|
+
var tokens_options = {};
|
|
3642
|
+
tokens_options.styleTagTransform = styleTagTransform_default();
|
|
3643
|
+
tokens_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
3644
|
+
tokens_options.insert = insertBySelector_default().bind(null, "head");
|
|
3645
|
+
tokens_options.domAPI = styleDomAPI_default();
|
|
3646
|
+
tokens_options.insertStyleElement = insertStyleElement_default();
|
|
3647
|
+
injectStylesIntoStyleTag_default()(tokens.A, tokens_options);
|
|
3648
|
+
tokens.A && tokens.A.locals && tokens.A.locals;
|
|
3649
|
+
function createDevToolsPanel(options) {
|
|
3650
|
+
const { namespace = 'c15tStore' } = options;
|
|
3651
|
+
const stateManager = state_manager_createStateManager({
|
|
3652
|
+
isOpen: true
|
|
3653
|
+
});
|
|
3654
|
+
const storeConnector = store_connector_createStoreConnector({
|
|
3655
|
+
namespace,
|
|
3656
|
+
onConnect: ()=>stateManager.setConnected(true),
|
|
3657
|
+
onDisconnect: ()=>stateManager.setConnected(false)
|
|
3658
|
+
});
|
|
3659
|
+
const container = renderer_div({
|
|
3660
|
+
style: {
|
|
3661
|
+
display: 'flex',
|
|
3662
|
+
flexDirection: 'column',
|
|
3663
|
+
height: '100%',
|
|
3664
|
+
fontFamily: 'var(--c15t-devtools-font-family)',
|
|
3665
|
+
fontSize: 'var(--c15t-devtools-font-size-sm)',
|
|
3666
|
+
color: 'var(--c15t-devtools-text)',
|
|
3667
|
+
backgroundColor: 'var(--c15t-devtools-surface)'
|
|
3668
|
+
}
|
|
3669
|
+
});
|
|
3670
|
+
const contentArea = renderer_div({
|
|
3671
|
+
style: {
|
|
3672
|
+
flex: '1',
|
|
3673
|
+
overflowY: 'auto',
|
|
3674
|
+
overscrollBehavior: 'contain'
|
|
3675
|
+
}
|
|
3676
|
+
});
|
|
3677
|
+
function renderActivePanel() {
|
|
3678
|
+
const state = stateManager.getState();
|
|
3679
|
+
const getStoreState = ()=>storeConnector.getState();
|
|
3680
|
+
switch(state.activeTab){
|
|
3681
|
+
case 'consents':
|
|
3682
|
+
consents_renderConsentsPanel(contentArea, {
|
|
3683
|
+
getState: getStoreState,
|
|
3684
|
+
onConsentChange: (name, value)=>{
|
|
3685
|
+
storeConnector.getStore()?.getState().setSelectedConsent(name, value);
|
|
3686
|
+
},
|
|
3687
|
+
onSave: ()=>{
|
|
3688
|
+
storeConnector.getStore()?.getState().saveConsents('custom');
|
|
3689
|
+
},
|
|
3690
|
+
onAcceptAll: ()=>{
|
|
3691
|
+
storeConnector.getStore()?.getState().saveConsents('all');
|
|
3692
|
+
},
|
|
3693
|
+
onRejectAll: ()=>{
|
|
3694
|
+
storeConnector.getStore()?.getState().saveConsents('necessary');
|
|
3695
|
+
},
|
|
3696
|
+
onReset: async ()=>{
|
|
3697
|
+
const store = storeConnector.getStore();
|
|
3698
|
+
if (store) await reset_consents_resetAllConsents(store);
|
|
3699
|
+
}
|
|
3700
|
+
});
|
|
3701
|
+
break;
|
|
3702
|
+
case 'location':
|
|
3703
|
+
location_renderLocationPanel(contentArea, {
|
|
3704
|
+
getState: getStoreState,
|
|
3705
|
+
onSetOverrides: async (overrides)=>{
|
|
3706
|
+
const store = storeConnector.getStore();
|
|
3707
|
+
if (store) {
|
|
3708
|
+
const current = store.getState().overrides || {};
|
|
3709
|
+
await store.getState().setOverrides({
|
|
3710
|
+
...current,
|
|
3711
|
+
...overrides
|
|
3712
|
+
});
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
onClearOverrides: async ()=>{
|
|
3716
|
+
await storeConnector.getStore()?.getState().setOverrides(void 0);
|
|
3717
|
+
}
|
|
3718
|
+
});
|
|
3719
|
+
break;
|
|
3720
|
+
case "scripts":
|
|
3721
|
+
scripts_renderScriptsPanel(contentArea, {
|
|
3722
|
+
getState: getStoreState
|
|
3723
|
+
});
|
|
3724
|
+
break;
|
|
3725
|
+
case 'iab':
|
|
3726
|
+
iab_renderIabPanel(contentArea, {
|
|
3727
|
+
getState: getStoreState,
|
|
3728
|
+
onReset: async ()=>{
|
|
3729
|
+
const store = storeConnector.getStore();
|
|
3730
|
+
if (store) await reset_consents_resetAllConsents(store);
|
|
3731
|
+
}
|
|
3732
|
+
});
|
|
3733
|
+
break;
|
|
3734
|
+
case 'events':
|
|
3735
|
+
events_renderEventsPanel(contentArea, {
|
|
3736
|
+
getEvents: ()=>stateManager.getState().eventLog,
|
|
3737
|
+
onClear: ()=>{
|
|
3738
|
+
stateManager.clearEventLog();
|
|
3739
|
+
}
|
|
3740
|
+
});
|
|
3741
|
+
break;
|
|
3742
|
+
case 'actions':
|
|
3743
|
+
actions_renderActionsPanel(contentArea, {
|
|
3744
|
+
getState: getStoreState,
|
|
3745
|
+
onResetConsents: async ()=>{
|
|
3746
|
+
const store = storeConnector.getStore();
|
|
3747
|
+
if (store) await reset_consents_resetAllConsents(store);
|
|
3748
|
+
},
|
|
3749
|
+
onRefetchBanner: async ()=>{
|
|
3750
|
+
await storeConnector.getStore()?.getState().initConsentManager();
|
|
3751
|
+
},
|
|
3752
|
+
onShowBanner: ()=>{
|
|
3753
|
+
storeConnector.getStore()?.getState().setActiveUI('banner', {
|
|
3754
|
+
force: true
|
|
3755
|
+
});
|
|
3756
|
+
},
|
|
3757
|
+
onOpenPreferences: ()=>{
|
|
3758
|
+
storeConnector.getStore()?.getState().setActiveUI('dialog');
|
|
3759
|
+
},
|
|
3760
|
+
onCopyState: ()=>{
|
|
3761
|
+
const state = storeConnector.getState();
|
|
3762
|
+
if (state) navigator.clipboard.writeText(JSON.stringify(state, null, 2));
|
|
3763
|
+
}
|
|
3764
|
+
});
|
|
3765
|
+
break;
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
const storeState = storeConnector.getState();
|
|
3769
|
+
const disabledTabs = [];
|
|
3770
|
+
if (!storeState || 'iab' !== storeState.model) disabledTabs.push('iab');
|
|
3771
|
+
const tabsInstance = tabs_createTabs({
|
|
3772
|
+
activeTab: stateManager.getState().activeTab,
|
|
3773
|
+
onTabChange: (tab)=>{
|
|
3774
|
+
stateManager.setActiveTab(tab);
|
|
3775
|
+
renderActivePanel();
|
|
3776
|
+
},
|
|
3777
|
+
disabledTabs
|
|
3778
|
+
});
|
|
3779
|
+
container.appendChild(tabsInstance.element);
|
|
3780
|
+
container.appendChild(contentArea);
|
|
3781
|
+
renderActivePanel();
|
|
3782
|
+
const unsubscribe = storeConnector.subscribe(()=>{
|
|
3783
|
+
renderActivePanel();
|
|
3784
|
+
});
|
|
3785
|
+
return {
|
|
3786
|
+
element: container,
|
|
3787
|
+
destroy: ()=>{
|
|
3788
|
+
unsubscribe();
|
|
3789
|
+
tabsInstance.destroy();
|
|
3790
|
+
storeConnector.destroy();
|
|
3791
|
+
stateManager.destroy();
|
|
3792
|
+
}
|
|
3793
|
+
};
|
|
3794
|
+
}
|
|
3795
|
+
function c15tDevtoolsPlugin(options = {}) {
|
|
3796
|
+
const { namespace = 'c15tStore' } = options;
|
|
3797
|
+
return {
|
|
3798
|
+
name: 'c15t',
|
|
3799
|
+
label: 'Consent',
|
|
3800
|
+
render: (container)=>{
|
|
3801
|
+
const panel = createDevToolsPanel({
|
|
3802
|
+
namespace,
|
|
3803
|
+
mode: 'embedded'
|
|
3804
|
+
});
|
|
3805
|
+
container.appendChild(panel.element);
|
|
3806
|
+
return ()=>{
|
|
3807
|
+
panel.destroy();
|
|
3808
|
+
};
|
|
3809
|
+
}
|
|
3810
|
+
};
|
|
3811
|
+
}
|
|
3812
|
+
})();
|
|
3813
|
+
exports.c15tDevtoolsPlugin = __webpack_exports__.c15tDevtoolsPlugin;
|
|
3814
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
3815
|
+
"c15tDevtoolsPlugin"
|
|
3816
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
3817
|
+
Object.defineProperty(exports, '__esModule', {
|
|
3818
|
+
value: true
|
|
3819
|
+
});
|