@htmlbricks/hb-player-live-camera-ptz 0.17.13 → 0.17.16

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/extra/docs.ts CHANGED
@@ -2,9 +2,15 @@ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup }
2
2
  import type { Component } from "../app/types/webcomponent.type";
3
3
 
4
4
  export const storybookArgs = {
5
- // width: { control: { type: "text" } },
5
+ presets: { control: { type: "object" } },
6
+ live_uri: { control: { type: "text" } },
6
7
  // height: { control: { type: "text" } },
7
- // liveStatus: { action: "liveStatusEvent" },
8
+ zoomAction: { action: "zoomActionEvent" },
9
+ goToHome: { action: "goToHomeEvent" },
10
+ sendJoystickPosition: { action: "sendJoystickPositionEvent" },
11
+ sendDirection: { action: "sendDirectionEvent" },
12
+ addSceneAsPreset: { action: "addSceneAsPresetEvent" },
13
+ changePreset: { action: "changePresetEvent" },
8
14
  };
9
15
 
10
16
  const cssVars: CssVar[] = [];
@@ -20,7 +26,27 @@ export const styleSetup: StyleSetup = {
20
26
  const examples: { name: string; description?: string; data: Component }[] = [
21
27
  {
22
28
  name: "default",
23
- data: {},
29
+ data: {
30
+ live_uri: "wss://testenv-installatori.movia.biz/vvwebrtc/vdeo_52089/ws",
31
+ },
32
+ },
33
+
34
+ {
35
+ name: "withPresets",
36
+ data: {
37
+ live_uri: "",
38
+
39
+ presets: [
40
+ {
41
+ label: "Preset 1",
42
+ id: "preset1",
43
+ },
44
+ {
45
+ label: "Preset 2",
46
+ id: "preset2",
47
+ },
48
+ ],
49
+ },
24
50
  },
25
51
  ];
26
52
  export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-player-live-camera-ptz",
3
3
  "displayName": "Svelte Boostrap Pagination WebComponent",
4
4
  "description": "Svelte Boostrap Pagination WebComponent",
5
- "version": "0.17.13",
5
+ "version": "0.17.16",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "prepublish": "npm run build:release"
31
31
  },
32
32
  "devDependencies": {
33
- "@htmlbricks/hb-jsutils": "^0.17.13",
33
+ "@htmlbricks/hb-jsutils": "^0.17.16",
34
34
  "@htmlbricks/manifester": "^0.0.22",
35
35
  "@rollup/plugin-alias": "^3.1.2",
36
36
  "@rollup/plugin-commonjs": "^18.0.0",
@@ -76,9 +76,12 @@
76
76
  "html5-webcomponents"
77
77
  ],
78
78
  "contributors": [],
79
- "gitHead": "4e4817c35d2fa32ec72949c8584365094031a4ea",
79
+ "gitHead": "11d3f9fb8e35c39739e626dd7aaa1b4e3b1eb36a",
80
80
  "dependencies": {
81
- "@htmlbricks/hb-player-live": "^0.17.13",
81
+ "@htmlbricks/hb-dialog": "^0.17.16",
82
+ "@htmlbricks/hb-pad-joystick": "^0.17.16",
83
+ "@htmlbricks/hb-player-live": "^0.17.16",
84
+ "@htmlbricks/hb-table": "^0.17.16",
82
85
  "style-to-object": "^0.3.0"
83
86
  }
84
87
  }
package/release/docs.js CHANGED
@@ -1,7 +1,13 @@
1
1
  export var storybookArgs = {
2
- // width: { control: { type: "text" } },
3
- // height: { control: { type: "text" } },
4
- // liveStatus: { action: "liveStatusEvent" },
2
+ presets: { control: { type: "object" } },
3
+ live_uri: { control: { type: "text" } },
4
+ // height: { control: { type: "text" } },
5
+ zoomAction: { action: "zoomActionEvent" },
6
+ goToHome: { action: "goToHomeEvent" },
7
+ sendJoystickPosition: { action: "sendJoystickPositionEvent" },
8
+ sendDirection: { action: "sendDirectionEvent" },
9
+ addSceneAsPreset: { action: "addSceneAsPresetEvent" },
10
+ changePreset: { action: "changePresetEvent" }
5
11
  };
6
12
  var cssVars = [];
7
13
  export var cssParts = [];
@@ -14,7 +20,25 @@ export var styleSetup = {
14
20
  var examples = [
15
21
  {
16
22
  name: "default",
17
- data: {}
23
+ data: {
24
+ live_uri: "wss://testenv-installatori.movia.biz/vvwebrtc/vdeo_52089/ws"
25
+ }
26
+ },
27
+ {
28
+ name: "withPresets",
29
+ data: {
30
+ live_uri: "",
31
+ presets: [
32
+ {
33
+ label: "Preset 1",
34
+ id: "preset1"
35
+ },
36
+ {
37
+ label: "Preset 2",
38
+ id: "preset2"
39
+ },
40
+ ]
41
+ }
18
42
  },
19
43
  ];
20
44
  export var componentSetup = {
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;AAC5B,wCAAwC;AACxC,yCAAyC;AACzC,6CAA6C;CAC7C,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAA8D;IAC3E;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,EAAE;KACR;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA6F;IACvH,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,uCAAuC;IACjD,OAAO,EAAE,IAAW;CACpB,CAAC"}
1
+ {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,yCAAyC;IACzC,UAAU,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;IACzC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;IACrC,oBAAoB,EAAE,EAAE,MAAM,EAAE,2BAA2B,EAAE;IAC7D,aAAa,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE;IAC/C,gBAAgB,EAAE,EAAE,MAAM,EAAE,uBAAuB,EAAE;IACrD,YAAY,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE;CAC7C,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAA8D;IAC3E;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,6DAA6D;SACvE;KACD;IAED;QACC,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE;YACL,QAAQ,EAAE,EAAE;YAEZ,OAAO,EAAE;gBACR;oBACC,KAAK,EAAE,UAAU;oBACjB,EAAE,EAAE,SAAS;iBACb;gBACD;oBACC,KAAK,EAAE,UAAU;oBACjB,EAAE,EAAE,SAAS;iBACb;aACD;SACD;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA6F;IACvH,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,uCAAuC;IACjD,OAAO,EAAE,IAAW;CACpB,CAAC"}
package/release/docs.ts CHANGED
@@ -2,9 +2,15 @@ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup }
2
2
  import type { Component } from "../app/types/webcomponent.type";
3
3
 
4
4
  export const storybookArgs = {
5
- // width: { control: { type: "text" } },
5
+ presets: { control: { type: "object" } },
6
+ live_uri: { control: { type: "text" } },
6
7
  // height: { control: { type: "text" } },
7
- // liveStatus: { action: "liveStatusEvent" },
8
+ zoomAction: { action: "zoomActionEvent" },
9
+ goToHome: { action: "goToHomeEvent" },
10
+ sendJoystickPosition: { action: "sendJoystickPositionEvent" },
11
+ sendDirection: { action: "sendDirectionEvent" },
12
+ addSceneAsPreset: { action: "addSceneAsPresetEvent" },
13
+ changePreset: { action: "changePresetEvent" },
8
14
  };
9
15
 
10
16
  const cssVars: CssVar[] = [];
@@ -20,7 +26,27 @@ export const styleSetup: StyleSetup = {
20
26
  const examples: { name: string; description?: string; data: Component }[] = [
21
27
  {
22
28
  name: "default",
23
- data: {},
29
+ data: {
30
+ live_uri: "wss://testenv-installatori.movia.biz/vvwebrtc/vdeo_52089/ws",
31
+ },
32
+ },
33
+
34
+ {
35
+ name: "withPresets",
36
+ data: {
37
+ live_uri: "",
38
+
39
+ presets: [
40
+ {
41
+ label: "Preset 1",
42
+ id: "preset1",
43
+ },
44
+ {
45
+ label: "Preset 2",
46
+ id: "preset2",
47
+ },
48
+ ],
49
+ },
24
50
  },
25
51
  ];
26
52
  export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
@@ -4,8 +4,187 @@
4
4
  "$ref": "#/definitions/Events",
5
5
  "$schema": "http://json-schema.org/draft-07/schema#",
6
6
  "definitions": {
7
+ "CardinalDirection": {
8
+ "enum": [
9
+ "C",
10
+ "N",
11
+ "S",
12
+ "NE",
13
+ "SE",
14
+ "NW",
15
+ "SW",
16
+ "NO",
17
+ "SO",
18
+ "W",
19
+ "O"
20
+ ],
21
+ "type": "string"
22
+ },
7
23
  "Events": {
8
24
  "additionalProperties": false,
25
+ "properties": {
26
+ "addSceneAsPreset": {
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "id": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "required": [
34
+ "id"
35
+ ],
36
+ "type": "object"
37
+ },
38
+ "changePreset": {
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "id": {
42
+ "type": "string"
43
+ },
44
+ "label": {
45
+ "type": "string"
46
+ },
47
+ "movementSettings": {
48
+ "$ref": "#/definitions/TMovementSettings"
49
+ },
50
+ "playerId": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "required": [
55
+ "id",
56
+ "movementSettings",
57
+ "playerId"
58
+ ],
59
+ "type": "object"
60
+ },
61
+ "goToHome": {
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "id": {
65
+ "type": "string"
66
+ },
67
+ "movementSettings": {
68
+ "$ref": "#/definitions/TMovementSettings"
69
+ }
70
+ },
71
+ "required": [
72
+ "movementSettings",
73
+ "id"
74
+ ],
75
+ "type": "object"
76
+ },
77
+ "sendDirection": {
78
+ "additionalProperties": false,
79
+ "properties": {
80
+ "direction": {
81
+ "enum": [
82
+ "up",
83
+ "right",
84
+ "down",
85
+ "left"
86
+ ],
87
+ "type": "string"
88
+ },
89
+ "id": {
90
+ "type": "string"
91
+ },
92
+ "joyId": {
93
+ "type": "string"
94
+ },
95
+ "movementSettings": {
96
+ "$ref": "#/definitions/TMovementSettings"
97
+ }
98
+ },
99
+ "required": [
100
+ "movementSettings",
101
+ "direction",
102
+ "id",
103
+ "joyId"
104
+ ],
105
+ "type": "object"
106
+ },
107
+ "sendJoystickPosition": {
108
+ "additionalProperties": false,
109
+ "properties": {
110
+ "cardinalDirection": {
111
+ "$ref": "#/definitions/CardinalDirection"
112
+ },
113
+ "id": {
114
+ "type": "string"
115
+ },
116
+ "joyId": {
117
+ "type": "string"
118
+ },
119
+ "movementSettings": {
120
+ "$ref": "#/definitions/TMovementSettings"
121
+ },
122
+ "x": {
123
+ "type": "number"
124
+ },
125
+ "y": {
126
+ "type": "number"
127
+ }
128
+ },
129
+ "required": [
130
+ "movementSettings",
131
+ "x",
132
+ "y",
133
+ "cardinalDirection",
134
+ "id",
135
+ "joyId"
136
+ ],
137
+ "type": "object"
138
+ },
139
+ "zoomAction": {
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "direction": {
143
+ "enum": [
144
+ "in",
145
+ "out"
146
+ ],
147
+ "type": "string"
148
+ },
149
+ "id": {
150
+ "type": "string"
151
+ },
152
+ "movementSettings": {
153
+ "$ref": "#/definitions/TMovementSettings"
154
+ }
155
+ },
156
+ "required": [
157
+ "movementSettings",
158
+ "direction",
159
+ "id"
160
+ ],
161
+ "type": "object"
162
+ }
163
+ },
164
+ "required": [
165
+ "zoomAction",
166
+ "goToHome",
167
+ "addSceneAsPreset",
168
+ "changePreset",
169
+ "sendJoystickPosition",
170
+ "sendDirection"
171
+ ],
172
+ "type": "object"
173
+ },
174
+ "TMovementSettings": {
175
+ "additionalProperties": false,
176
+ "properties": {
177
+ "precision": {
178
+ "type": "number"
179
+ },
180
+ "speed": {
181
+ "type": "number"
182
+ }
183
+ },
184
+ "required": [
185
+ "speed",
186
+ "precision"
187
+ ],
9
188
  "type": "object"
10
189
  }
11
190
  }
@@ -17,19 +196,116 @@
17
196
  "Component": {
18
197
  "additionalProperties": false,
19
198
  "properties": {
199
+ "configuration": {
200
+ "additionalProperties": false,
201
+ "properties": {
202
+ "home": {
203
+ "type": "boolean"
204
+ },
205
+ "joystick": {
206
+ "type": "boolean"
207
+ },
208
+ "presets": {
209
+ "type": "boolean"
210
+ },
211
+ "zoom": {
212
+ "additionalProperties": false,
213
+ "properties": {
214
+ "in": {
215
+ "type": "boolean"
216
+ },
217
+ "out": {
218
+ "type": "boolean"
219
+ }
220
+ },
221
+ "type": "object"
222
+ }
223
+ },
224
+ "type": "object"
225
+ },
226
+ "current_preset": {
227
+ "type": "string"
228
+ },
20
229
  "id": {
21
230
  "type": "string"
22
231
  },
232
+ "live_uri": {
233
+ "type": "string"
234
+ },
235
+ "position": {
236
+ "enum": [
237
+ "top",
238
+ "right-bottom",
239
+ "left-bottom",
240
+ "bottom",
241
+ "right-top",
242
+ "left-top"
243
+ ],
244
+ "type": "string"
245
+ },
246
+ "presets": {
247
+ "items": {
248
+ "$ref": "#/definitions/TPreset"
249
+ },
250
+ "type": "array"
251
+ },
23
252
  "style": {
24
253
  "type": "string"
25
254
  }
26
255
  },
256
+ "required": [
257
+ "live_uri"
258
+ ],
259
+ "type": "object"
260
+ },
261
+ "TPreset": {
262
+ "additionalProperties": false,
263
+ "properties": {
264
+ "id": {
265
+ "type": "string"
266
+ },
267
+ "label": {
268
+ "type": "string"
269
+ }
270
+ },
271
+ "required": [
272
+ "id"
273
+ ],
27
274
  "type": "object"
28
275
  }
29
276
  }
30
277
  }
31
278
  },
32
- "storybookArgs": {},
279
+ "storybookArgs": {
280
+ "presets": {
281
+ "control": {
282
+ "type": "object"
283
+ }
284
+ },
285
+ "live_uri": {
286
+ "control": {
287
+ "type": "text"
288
+ }
289
+ },
290
+ "zoomAction": {
291
+ "action": "zoomActionEvent"
292
+ },
293
+ "goToHome": {
294
+ "action": "goToHomeEvent"
295
+ },
296
+ "sendJoystickPosition": {
297
+ "action": "sendJoystickPositionEvent"
298
+ },
299
+ "sendDirection": {
300
+ "action": "sendDirectionEvent"
301
+ },
302
+ "addSceneAsPreset": {
303
+ "action": "addSceneAsPresetEvent"
304
+ },
305
+ "changePreset": {
306
+ "action": "changePresetEvent"
307
+ }
308
+ },
33
309
  "styleSetup": {
34
310
  "vars": [],
35
311
  "parts": []
@@ -42,7 +318,25 @@
42
318
  "examples": [
43
319
  {
44
320
  "name": "default",
45
- "data": {}
321
+ "data": {
322
+ "live_uri": "wss://testenv-installatori.movia.biz/vvwebrtc/vdeo_52089/ws"
323
+ }
324
+ },
325
+ {
326
+ "name": "withPresets",
327
+ "data": {
328
+ "live_uri": "",
329
+ "presets": [
330
+ {
331
+ "label": "Preset 1",
332
+ "id": "preset1"
333
+ },
334
+ {
335
+ "label": "Preset 2",
336
+ "id": "preset2"
337
+ }
338
+ ]
339
+ }
46
340
  }
47
341
  ],
48
342
  "screenshots": [],
@@ -63,5 +357,5 @@
63
357
  "size": {},
64
358
  "iifePath": "release/release.js",
65
359
  "repoName": "@htmlbricks/hb-player-live-camera-ptz",
66
- "version": "0.17.13"
360
+ "version": "0.17.16"
67
361
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function i(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(t,n,e){t.insertBefore(n,e||null)}function s(t){t.parentNode.removeChild(t)}function l(t,n,e){n in t?t[n]="boolean"==typeof t[n]&&""===e||e:function(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}(t,n,e)}function c(t){const n={};for(const e of t)n[e.name]=e.value;return n}let u;function d(t){u=t}function f(){if(!u)throw new Error("Function called outside component initialization");return u}function h(){const t=f();return(n,e,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[n];if(r){const i=function(t,n,{bubbles:e=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e,o,n),r}(n,e,{cancelable:o});return r.slice().forEach((n=>{n.call(t,i)})),!i.defaultPrevented}return!0}}const p=[],v=[],g=[],m=[],y=Promise.resolve();let $=!1;function b(t){g.push(t)}const w=new Set;let E=0;function _(){const t=u;do{for(;E<p.length;){const t=p[E];E++,d(t),x(t.$$)}for(d(null),p.length=0,E=0;v.length;)v.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];w.has(n)||(w.add(n),n())}g.length=0}while(p.length);for(;m.length;)m.pop()();$=!1,w.clear(),d(t)}function x(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(b)}}const C=new Set;function k(t,n){-1===t.$$.dirty[0]&&(p.push(t),$||($=!0,y.then(_)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function L(i,a,l,c,f,h,p,v=[-1]){const g=u;d(i);const m=i.$$={fragment:null,ctx:null,props:h,update:t,not_equal:f,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:e(),dirty:v,skip_bound:!1,root:a.target||g.$$.root};p&&p(m.root);let y=!1;if(m.ctx=l?l(i,a.props||{},((t,n,...e)=>{const o=e.length?e[0]:n;return m.ctx&&f(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),y&&k(i,t)),n})):[],m.update(),y=!0,o(m.before_update),m.fragment=!!c&&c(m.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);m.fragment&&m.fragment.l(t),t.forEach(s)}else m.fragment&&m.fragment.c();a.intro&&(($=i.$$.fragment)&&$.i&&(C.delete($),$.i(w))),function(t,e,i,a){const{fragment:s,on_mount:l,on_destroy:c,after_update:u}=t.$$;s&&s.m(e,i),a||b((()=>{const e=l.map(n).filter(r);c?c.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(b)}(i,a.target,a.anchor,a.customElement),_()}var $,w;d(g)}let A;"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var D="0.17.13",T=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,j=/\n/g,N=/^\s*/,O=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,P=/^:\s*/,M=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,S=/^[;\s]*/,R=/^\s+|\s+$/g,F="";function H(t){return t?t.replace(R,F):F}var I=function(t,n){var e,o=null;if(!t||"string"!=typeof t)return o;for(var r,i,a=function(t,n){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,o=1;function r(t){var n=t.match(j);n&&(e+=n.length);var r=t.lastIndexOf("\n");o=~r?t.length-r:o+t.length}function i(){var t={line:e,column:o};return function(n){return n.position=new a(t),c(),n}}function a(t){this.start=t,this.end={line:e,column:o},this.source=n.source}function s(r){var i=new Error(n.source+":"+e+":"+o+": "+r);if(i.reason=r,i.filename=n.source,i.line=e,i.column=o,i.source=t,!n.silent)throw i}function l(n){var e=n.exec(t);if(e){var o=e[0];return r(o),t=t.slice(o.length),e}}function c(){l(N)}function u(t){var n;for(t=t||[];n=d();)!1!==n&&t.push(n);return t}function d(){var n=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var e=2;F!=t.charAt(e)&&("*"!=t.charAt(e)||"/"!=t.charAt(e+1));)++e;if(e+=2,F===t.charAt(e-1))return s("End of comment missing");var a=t.slice(2,e-2);return o+=2,r(a),t=t.slice(e),o+=2,n({type:"comment",comment:a})}}function f(){var t=i(),n=l(O);if(n){if(d(),!l(P))return s("property missing ':'");var e=l(M),o=t({type:"declaration",property:H(n[0].replace(T,F)),value:e?H(e[0].replace(T,F)):F});return l(S),o}}return a.prototype.content=t,c(),function(){var t,n=[];for(u(n);t=f();)!1!==t&&(n.push(t),u(n));return n}()}(t),s="function"==typeof n,l=0,c=a.length;l<c;l++)r=(e=a[l]).property,i=e.value,s?n(r,i,e):i&&(o||(o={}),o[r]=i);return o};var W,z=(function(t,n){n.__esModule=!0,n.LanguageTranslator=n.addComponent=n.getChildStyleToPass=void 0,n.getChildStyleToPass=function(t,n){var e,o,r="";if(t&&(null==n?void 0:n.length)&&(null===(e=Object.keys(t))||void 0===e?void 0:e.length)&&(null===(o=null==n?void 0:n.filter((function(n){return Object.keys(t).includes(n.name)})))||void 0===o?void 0:o.length))for(var i=function(e){(null==n?void 0:n.filter((function(n){return n.name===e&&n.defaultValue!==t[e]})))&&(r+="".concat(e,":").concat(t[e],";"))},a=0,s=Object.keys(t);a<s.length;a++)i(s[a]);return r},n.addComponent=function(t){var n,e=(null===(n=null==t?void 0:t.repoName.split("/"))||void 0===n?void 0:n[1])||(null==t?void 0:t.repoName);if(!e)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(e+"-script"))try{var r=document.createElement("script");r.id=e+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(r.src="".concat(t.local)),document.head.appendChild(r)}catch(t){console.warn(t)}};var e=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(n){n||(n=t.getDefaultLang()),this.lang=n},t.prototype.translateWord=function(n,e){return t.getDictionaryWord(n,this.dictionary,e||this.lang)},t.prototype.translateDate=function(n,e,o){return t.formatDate(n,e,o||this.lang)},t.getDefaultLang=function(){var t,n,e,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(e=null===(n=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===n?void 0:n.toLowerCase())||void 0===e?void 0:e.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},t.getDictionaryWord=function(n,e,o){var r;if(!n)throw new Error("no wordKey provided");if(!e)throw new Error("no dictionary provided");if(o&&(null===(r=e[o])||void 0===r?void 0:r[n]))return e[o][n];var i="",a=t.getDefaultLang();if(!o||a!==o){var s=null==e?void 0:e[a];(null==s?void 0:s[n])&&(i=s[n])}return i},t.formatDate=function(n,e,o){if(!n)throw new Error("no date provided");if("function"!=typeof n.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),e).format(n)},t}();n.LanguageTranslator=e}(W={exports:{}},W.exports),W.exports),B={vars:[],parts:[{name:"container",description:""},{name:"replacewithtext",description:""},{name:"video",description:""}]};function q(n){let e;return{c(){e=function(t){return document.createElement(t)}("hb-player-live"),this.c=t,l(e,"style",n[0])},m(t,n){a(t,e,n)},p(t,[n]){1&n&&l(e,"style",t[0])},i:t,o:t,d(t){t&&s(e)}}}function K(t,n,e){f(),h();let o,{id:r}=n,{style:i}=n,a="";return z.addComponent({repoName:"@htmlbricks/hb-player-live",version:D}),t.$$set=t=>{"id"in t&&e(1,r=t.id),"style"in t&&e(2,i=t.style)},t.$$.update=()=>{14&t.$$.dirty&&(r||e(1,r=""),i&&(e(3,o=I(i)),e(0,a=z.getChildStyleToPass(o,null==B?void 0:B.vars))))},[a,r,i,o]}class V extends A{constructor(t){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',L(this,{target:this.shadowRoot,props:c(this.attributes),customElement:!0},K,q,i,{id:1,style:2},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["id","style"]}get id(){return this.$$.ctx[1]}set id(t){this.$$set({id:t}),_()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),_()}}return customElements.define("hb-messages-box",V),V}();
1
+ var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function p(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function f(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function m(t){return""===t?null:+t}function h(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function g(t,e){t.value=null==e?"":e}function v(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function y(t){const e={};for(const n of t)e[n.name]=n.value;return e}let w;function x(t){w=t}function $(){if(!w)throw new Error("Function called outside component initialization");return w}function k(){const t=$();return(e,n,{cancelable:i=!1}={})=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,i,e),o}(e,n,{cancelable:i});return o.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const _=[],T=[],E=[],C=[],L=Promise.resolve();let j=!1;function z(t){E.push(t)}const S=new Set;let P=0;function A(){const t=w;do{for(;P<_.length;){const t=_[P];P++,x(t),D(t.$$)}for(x(null),_.length=0,P=0;T.length;)T.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];S.has(e)||(S.add(e),e())}E.length=0}while(_.length);for(;C.length;)C.pop()();j=!1,S.clear(),x(t)}function D(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}const H=new Set;function M(t,e){-1===t.$$.dirty[0]&&(_.push(t),j||(j=!0,L.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function N(r,a,s,d,c,u,p,b=[-1]){const f=w;x(r);const m=r.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(f?f.$$.context:[])),callbacks:n(),dirty:b,skip_bound:!1,root:a.target||f.$$.root};p&&p(m.root);let h=!1;if(m.ctx=s?s(r,a.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return m.ctx&&c(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),h&&M(r,t)),e})):[],m.update(),h=!0,i(m.before_update),m.fragment=!!d&&d(m.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);m.fragment&&m.fragment.l(t),t.forEach(l)}else m.fragment&&m.fragment.c();a.intro&&((g=r.$$.fragment)&&g.i&&(H.delete(g),g.i(v))),function(t,n,r,a){const{fragment:s,on_mount:l,on_destroy:d,after_update:c}=t.$$;s&&s.m(n,r),a||z((()=>{const n=l.map(e).filter(o);d?d.push(...n):i(n),t.$$.on_mount=[]})),c.forEach(z)}(r,a.target,a.anchor,a.customElement),A()}var g,v;x(f)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var O="0.17.16",I=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,R=/^\s*/,F=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,W=/^:\s*/,q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,B=/^[;\s]*/,Y=/^\s+|\s+$/g,G="";function K(t){return t?t.replace(Y,G):G}var Q=function(t,e){var n,i=null;if(!t||"string"!=typeof t)return i;for(var o,r,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,i=1;function o(t){var e=t.match(J);e&&(n+=e.length);var o=t.lastIndexOf("\n");i=~o?t.length-o:i+t.length}function r(){var t={line:n,column:i};return function(e){return e.position=new a(t),d(),e}}function a(t){this.start=t,this.end={line:n,column:i},this.source=e.source}function s(o){var r=new Error(e.source+":"+n+":"+i+": "+o);if(r.reason=o,r.filename=e.source,r.line=n,r.column=i,r.source=t,!e.silent)throw r}function l(e){var n=e.exec(t);if(n){var i=n[0];return o(i),t=t.slice(i.length),n}}function d(){l(R)}function c(t){var e;for(t=t||[];e=u();)!1!==e&&t.push(e);return t}function u(){var e=r();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;G!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,G===t.charAt(n-1))return s("End of comment missing");var a=t.slice(2,n-2);return i+=2,o(a),t=t.slice(n),i+=2,e({type:"comment",comment:a})}}function p(){var t=r(),e=l(F);if(e){if(u(),!l(W))return s("property missing ':'");var n=l(q),i=t({type:"declaration",property:K(e[0].replace(I,G)),value:n?K(n[0].replace(I,G)):G});return l(B),i}}return a.prototype.content=t,d(),function(){var t,e=[];for(c(e);t=p();)!1!==t&&(e.push(t),c(e));return e}()}(t),s="function"==typeof e,l=0,d=a.length;l<d;l++)o=(n=a[l]).property,r=n.value,s?e(o,r,n):r&&(i||(i={}),i[o]=r);return i};var U,X=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,i,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(i=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===i?void 0:i.length))for(var r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},a=0,s=Object.keys(t);a<s.length;a++)r(s[a]);return o},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var i=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(i),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(o.src="".concat(t.local)),document.head.appendChild(o)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,i){return t.formatDate(e,n,i||this.lang)},t.getDefaultLang=function(){var t,e,n,i,o,r="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(r=null===(o=null===(i=navigator.languages[0])||void 0===i?void 0:i.split("-")[0])||void 0===o?void 0:o.toLowerCase()),r},t.getDictionaryWord=function(e,n,i){var o;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(i&&(null===(o=n[i])||void 0===o?void 0:o[e]))return n[i][e];var r="",a=t.getDefaultLang();if(!i||a!==i){var s=null==n?void 0:n[a];(null==s?void 0:s[e])&&(r=s[e])}return r},t.formatDate=function(e,n,i){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(i||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(U={exports:{}},U.exports),U.exports),Z={vars:[],parts:[{name:"container",description:""},{name:"replacewithtext",description:""},{name:"video",description:""}]},tt={vars:[{name:"--hb-pad-joystick-size",description:"pad/joystick size",defaultValue:"200px",valueType:"htmlsize"}],parts:[]},et={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[]},nt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}],parts:[{name:"modal-dialog",description:"The modal dialog"}]};function it(t){let e,n,i,o;return{c(){e=d("hb-table"),f(e,"style",t[6]),f(e,"rows",n=JSON.stringify(t[2])),f(e,"headers",i=JSON.stringify(t[13])),f(e,"size","12"),f(e,"disablepagination",o=t[2].length<12?"yes":"no")},m(t,n){s(t,e,n)},p(t,i){64&i[0]&&f(e,"style",t[6]),4&i[0]&&n!==(n=JSON.stringify(t[2]))&&f(e,"rows",n),4&i[0]&&o!==(o=t[2].length<12?"yes":"no")&&f(e,"disablepagination",o)},d(t){t&&l(e)}}}function ot(e){let n,o,r,m,y,w,x,$,k,_,T,E,C,L,j,z,S,P,A,D,H,M,N,V,O,I,J,R,F,W,q,B,Y,G,K,Q,U,X,Z,tt,et,nt,ot,rt,at,st,lt,dt,ct,ut,pt,bt,ft,mt,ht,gt,vt,yt,wt,xt,$t,kt,_t,Tt,Et,Ct,Lt,jt,zt=e[2]?.length&&it(e);return{c(){n=d("link"),o=u(),r=d("hb-dialog"),m=d("div"),zt&&zt.c(),w=u(),x=d("hb-dialog"),$=d("div"),$.textContent="Are You sure to add this scene to the preset?",_=u(),T=d("hb-dialog"),E=d("div"),E.textContent="Are You sure to go To Home?",L=u(),j=d("div"),z=d("hb-player-live"),S=u(),P=d("div"),A=d("table"),A.innerHTML="<tr><td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td></tr> \n\t\t\t<tr><td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td></tr> \n\t\t\t<tr><td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td></tr> \n\t\t\t<tr><td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td> \n\t\t\t\t<td></td></tr>",D=u(),H=d("div"),M=d("div"),N=d("div"),V=d("hb-pad-joystick"),O=u(),I=d("div"),J=d("div"),R=d("button"),R.innerHTML='<i class="bi bi-zoom-in"></i>',F=u(),W=d("button"),W.innerHTML='<i class="bi bi-zoom-out"></i>',q=u(),B=d("button"),B.innerHTML='<i class="bi bi-house-door-fill"></i>',Y=u(),G=d("button"),G.innerHTML='<i class="bi bi-square"></i>',K=u(),Q=d("div"),U=d("span"),U.textContent="speed:",X=u(),Z=d("input"),tt=u(),et=d("div"),nt=d("span"),nt.textContent="precision:",ot=u(),rt=d("input"),at=u(),st=d("div"),lt=d("button"),lt.innerHTML='<i class="bi bi-grid-3x3"></i>',dt=u(),ct=d("button"),ct.innerHTML='<i class="bi bi-joystick"></i>',ut=u(),pt=d("button"),pt.innerHTML='<i class="bi bi-sliders"></i>',bt=u(),ft=d("div"),mt=d("button"),mt.innerHTML='<i class="bi bi-plus-circle-fill"></i>',ht=u(),gt=d("button"),vt=c(e[1]),yt=u(),wt=d("i"),xt=u(),$t=d("div"),kt=d("span"),_t=d("i"),Tt=u(),Et=d("span"),Ct=c(e[8]),this.c=t,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),b(m,"slot","body-content"),f(r,"title","Presets"),f(r,"show",y=e[9]?"yes":"no"),b($,"slot","body-content"),f(x,"title","Add Scene to Preset"),f(x,"show",k=e[10]?"yes":"no"),b(E,"slot","body-content"),f(T,"title","Go to Home"),f(T,"show",C=e[11]?"yes":"no"),f(z,"no_controls","yes"),f(z,"id","player"),f(z,"mediauri",e[0]),f(z,"style",e[4]),b(A,"id","grid_table"),b(P,"id","grid"),v(P,"display",e[12]?"inherit":"none"),f(V,"pad_or_joystick",e[3]),f(V,"size","60px"),f(V,"style",e[5]),b(N,"id","joystick"),b(R,"class","btn btn-sm btn-primary"),b(W,"class","btn btn-sm btn-primary"),b(J,"class","btn-group"),v(J,"margin-right","10px"),b(B,"class","btn btn-sm btn-primary"),b(G,"class","btn btn-sm btn-primary"),b(I,"id","buttons"),b(U,"class","slider_label"),b(Z,"type","range"),b(Q,"id","speed"),b(nt,"class","slider_label"),b(rt,"type","range"),b(et,"id","precision"),b(lt,"class","btn btn-primary"),b(ct,"class","btn btn-primary"),b(pt,"class","btn btn-primary"),b(st,"id","presets_view"),b(mt,"class","btn btn-sm btn-primary"),v(wt,"float","right"),b(wt,"class","bi bi-arrow-down-up"),v(gt,"width","120px",1),v(gt,"display","inline-block",1),b(gt,"class","btn btn-sm btn-primary"),b(ft,"id","presets_select"),b(_t,"class","bi bi-clock"),b(kt,"class","timecell"),b($t,"id","presets_buttons"),b(M,"id","panel"),b(H,"id","controller"),b(j,"id","container")},m(t,i){a(document.head,n),s(t,o,i),s(t,r,i),a(r,m),zt&&zt.m(m,null),s(t,w,i),s(t,x,i),a(x,$),s(t,_,i),s(t,T,i),a(T,E),s(t,L,i),s(t,j,i),a(j,z),a(j,S),a(j,P),a(P,A),a(j,D),a(j,H),a(H,M),a(M,N),a(N,V),a(M,O),a(M,I),a(I,J),a(J,R),a(J,F),a(J,W),a(I,q),a(I,B),a(I,Y),a(I,G),a(M,K),a(M,Q),a(Q,U),a(Q,X),a(Q,Z),g(Z,e[7].speed),a(M,tt),a(M,et),a(et,nt),a(et,ot),a(et,rt),g(rt,e[7].precision),a(M,at),a(M,st),a(st,lt),a(st,dt),a(st,ct),a(st,ut),a(st,pt),a(M,bt),a(M,ft),a(ft,mt),a(ft,ht),a(ft,gt),a(gt,vt),a(gt,yt),a(gt,wt),a(M,xt),a(M,$t),a($t,kt),a(kt,_t),a(kt,Tt),a(kt,Et),a(Et,Ct),Lt||(jt=[p(r,"modalShow",e[29]),p(x,"modalShow",e[30]),p(x,"modalConfirm",e[31]),p(T,"modalShow",e[32]),p(T,"modalConfirm",e[33]),p(V,"sendJoystickPosition",e[34]),p(V,"sendDirection",e[35]),p(R,"click",e[36]),p(W,"click",e[37]),p(B,"click",e[38]),p(G,"click",e[39]),p(Z,"change",e[40]),p(Z,"input",e[40]),p(rt,"change",e[41]),p(rt,"input",e[41]),p(lt,"click",e[42]),p(ct,"click",e[43]),p(pt,"click",e[44]),p(mt,"click",e[45]),p(gt,"click",e[46])],Lt=!0)},p(t,e){t[2]?.length?zt?zt.p(t,e):(zt=it(t),zt.c(),zt.m(m,null)):zt&&(zt.d(1),zt=null),512&e[0]&&y!==(y=t[9]?"yes":"no")&&f(r,"show",y),1024&e[0]&&k!==(k=t[10]?"yes":"no")&&f(x,"show",k),2048&e[0]&&C!==(C=t[11]?"yes":"no")&&f(T,"show",C),1&e[0]&&f(z,"mediauri",t[0]),16&e[0]&&f(z,"style",t[4]),4096&e[0]&&v(P,"display",t[12]?"inherit":"none"),8&e[0]&&f(V,"pad_or_joystick",t[3]),32&e[0]&&f(V,"style",t[5]),128&e[0]&&g(Z,t[7].speed),128&e[0]&&g(rt,t[7].precision),2&e[0]&&h(vt,t[1]),256&e[0]&&h(Ct,t[8])},i:t,o:t,d(t){l(n),t&&l(o),t&&l(r),zt&&zt.d(),t&&l(w),t&&l(x),t&&l(_),t&&l(T),t&&l(L),t&&l(j),Lt=!1,i(jt)}}}function rt(t,e,n){const i=$(),o=k();function r(t,e){o(t,e),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(t,{detail:e}))}let a,{id:s}=e,{style:l}=e,{live_uri:d}=e,{presets:c}=e,{position:u}=e,{current_preset:p}=e,b="",f="",h="";const g={precision:50,speed:50};let v,y=(new Date).toLocaleTimeString();let w,x=!1,_=!1,T=!1,E=!1;function C(t){r("zoomAction",{id:s,movementSettings:g,direction:t})}function L(){r("goToHome",{id:s,movementSettings:g})}function j(){r("addSceneAsPreset",{id:s})}function z(){n(9,x=!x)}function S(){n(10,_=!_)}function P(){n(11,T=!T)}function A(t){r("sendJoystickPosition",{id:s,x:t.x,y:t.y,cardinalDirection:t.cardinalDirection,joyId:t.id,movementSettings:g})}function D(t){r("sendDirection",{id:s,movementSettings:g,direction:t.direction,joyId:t.id})}function H(){n(12,E=!E)}function M(){n(3,w="dpad"===w?"joystick":"dpad")}setInterval((()=>{n(8,y=(new Date).toLocaleTimeString())}),1e3),X.addComponent({repoName:"@htmlbricks/hb-player-live",version:O}),X.addComponent({repoName:"@htmlbricks/hb-pad-joystick",version:O}),X.addComponent({repoName:"@htmlbricks/hb-table",version:O}),X.addComponent({repoName:"@htmlbricks/hb-dialog",version:O});return t.$$set=t=>{"id"in t&&n(24,s=t.id),"style"in t&&n(27,l=t.style),"live_uri"in t&&n(0,d=t.live_uri),"presets"in t&&n(25,c=t.presets),"position"in t&&n(26,u=t.position),"current_preset"in t&&n(1,p=t.current_preset)},t.$$.update=()=>{520093711&t.$$.dirty[0]&&(d||n(0,d=""),s||n(24,s=""),l&&(n(28,a=Q(l)),n(4,b=X.getChildStyleToPass(a,null==Z?void 0:Z.vars)),n(5,f=X.getChildStyleToPass(a,null==tt?void 0:tt.vars)),n(6,h=X.getChildStyleToPass(a,null==et?void 0:et.vars)),X.getChildStyleToPass(a,null==nt?void 0:nt.vars)),p||n(1,p=""),w||n(3,w="dpad"),c?"string"==typeof c&&n(25,c=JSON.parse(c)):n(25,c=[]),!(null==v?void 0:v.length)&&c.length&&n(2,v=c.map((t=>({_id:t.id,label:t.label})))),u||n(26,u="right-bottom"))},[d,p,v,w,b,f,h,g,y,x,_,T,E,[{label:"Label",key:"label"}],C,L,j,z,S,P,A,D,H,M,s,c,u,l,a,t=>{n(9,x=t.detail.show)},t=>{n(10,_=t.detail.show)},t=>{t?.detail?.confirm&&j()},t=>{n(11,T=t.detail.show)},t=>{t?.detail?.confirm&&L()},t=>{A(t.detail)},t=>{D(t.detail)},()=>C("in"),()=>C("out"),()=>P(),()=>{},function(){g.speed=m(this.value),n(7,g)},function(){g.precision=m(this.value),n(7,g)},()=>H(),()=>M(),()=>{},()=>S(),()=>{z()}]}class at extends V{constructor(t){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{font-family:"Roboto", sans-serif}#grid_table{width:100%;height:100%}#grid{position:absolute;top:0px;z-index:2;width:100%;height:100%}#grid td{border:2px solid black}#container{position:relative;width:100%;height:100%;display:block;min-height:160px}hb-pad-joystick{--hb-pad-joystick-size:100px}#joystick{grid-area:pad;margin-top:10px;display:block;width:100%;text-align:center}#buttons{grid-area:buttons;padding:5px}#presets_buttons{grid-area:presets_buttons;padding:5px}#speed{grid-area:speed;padding:5px;text-align:center}#precision{grid-area:precision;padding:5px;text-align:center}#presets_select{grid-area:presets_select;padding:5px}#presets_view{grid-area:presets_view;padding:5px}#controller{position:absolute;top:calc(100% - 160px);width:100%;height:100%;z-index:3}#panel{display:grid;width:500px;height:120px;background-color:rgba(127, 127, 127, 0.8);grid-template-areas:"pad buttons presets_view" "pad speed presets_select" "pad precision presets_buttons";grid-template-columns:120px 200px 200px;grid-template-rows:1fr 1fr 1fr}.slider_label{font-size:0.6em;width:50px;display:inline-block;vertical-align:super;font-weight:bold}#player{z-index:1}.timecell{font-size:0.8em}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}table{caption-side:bottom;border-collapse:collapse}tr,td{border-color:inherit;border-style:solid;border-width:0}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-primary{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-primary:hover{color:#fff;background-color:#0b5ed7;border-color:#0a58ca}.btn-primary:focus{color:#fff;background-color:#0b5ed7;border-color:#0a58ca;box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:active{color:#fff;background-color:#0a58ca;border-color:#0a53be}.btn-primary:active:focus{box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:disabled{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-sm{padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem}.btn-group{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active{z-index:1}.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}</style>',N(this,{target:this.shadowRoot,props:y(this.attributes),customElement:!0},rt,ot,r,{id:24,style:27,live_uri:0,presets:25,position:26,current_preset:1},null,[-1,-1]),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","style","live_uri","presets","position","current_preset"]}get id(){return this.$$.ctx[24]}set id(t){this.$$set({id:t}),A()}get style(){return this.$$.ctx[27]}set style(t){this.$$set({style:t}),A()}get live_uri(){return this.$$.ctx[0]}set live_uri(t){this.$$set({live_uri:t}),A()}get presets(){return this.$$.ctx[25]}set presets(t){this.$$set({presets:t}),A()}get position(){return this.$$.ctx[26]}set position(t){this.$$set({position:t}),A()}get current_preset(){return this.$$.ctx[1]}set current_preset(t){this.$$set({current_preset:t}),A()}}return customElements.define("hb-player-live-camera-ptz",at),at}();
2
2
  //# sourceMappingURL=release.js.map