@htmlbricks/hb-player-live-camera-ptz 0.17.18 → 0.17.19
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/package.json +7 -7
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
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.
|
|
5
|
+
"version": "0.17.19",
|
|
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.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.17.19",
|
|
34
34
|
"@htmlbricks/manifester": "^0.0.22",
|
|
35
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
36
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"html5-webcomponents"
|
|
77
77
|
],
|
|
78
78
|
"contributors": [],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b35a9c68a8d3fcf161c19aea6f6f911bb0f7c59a",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@htmlbricks/hb-dialog": "^0.17.
|
|
82
|
-
"@htmlbricks/hb-pad-joystick": "^0.17.
|
|
83
|
-
"@htmlbricks/hb-player-live": "^0.17.
|
|
84
|
-
"@htmlbricks/hb-table": "^0.17.
|
|
81
|
+
"@htmlbricks/hb-dialog": "^0.17.19",
|
|
82
|
+
"@htmlbricks/hb-pad-joystick": "^0.17.19",
|
|
83
|
+
"@htmlbricks/hb-player-live": "^0.17.19",
|
|
84
|
+
"@htmlbricks/hb-table": "^0.17.19",
|
|
85
85
|
"style-to-object": "^0.3.0"
|
|
86
86
|
}
|
|
87
87
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e){t.appendChild(e)}function a(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,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:f(t,e,n)}function h(t){return""===t?null:+t}function m(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function g(t,e){t.value=null==e?"":e}function y(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}let w;function x(t){w=t}function k(){if(!w)throw new Error("Function called outside component initialization");return w}function $(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const _=[],T=[],C=[],E=[],P=Promise.resolve();let j=!1;function z(t){C.push(t)}const S=new Set;let D=0;function A(){const t=w;do{for(;D<_.length;){const t=_[D];D++,x(t),L(t.$$)}for(x(null),_.length=0,D=0;T.length;)T.pop()();for(let t=0;t<C.length;t+=1){const e=C[t];S.has(e)||(S.add(e),e())}C.length=0}while(_.length);for(;E.length;)E.pop()();j=!1,S.clear(),x(t)}function L(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}const N=new Set;function O(t,e){-1===t.$$.dirty[0]&&(_.push(t),j||(j=!0,P.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function V(r,s,a,d,c,u,p,f=[-1]){const b=w;x(r);const h=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(s.context||(b?b.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:s.target||b.$$.root};p&&p(h.root);let m=!1;if(h.ctx=a?a(r,s.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),m&&O(r,t)),e})):[],h.update(),m=!0,o(h.before_update),h.fragment=!!d&&d(h.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);h.fragment&&h.fragment.l(t),t.forEach(l)}else h.fragment&&h.fragment.c();s.intro&&((g=r.$$.fragment)&&g.i&&(N.delete(g),g.i(y))),function(t,n,r,s){const{fragment:a,on_mount:l,on_destroy:d,after_update:c}=t.$$;a&&a.m(n,r),s||z((()=>{const n=l.map(e).filter(i);d?d.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(z)}(r,s.target,s.anchor,s.customElement),A()}var g,y;x(b)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(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 I="0.17.18",J=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G=/\n/g,H=/^\s*/,R=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Y=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,W=/^[;\s]*/,F=/^\s+|\s+$/g,X="";function q(t){return t?t.replace(F,X):X}var Z=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,s=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,o=1;function i(t){var e=t.match(G);e&&(n+=e.length);var i=t.lastIndexOf("\n");o=~i?t.length-i:o+t.length}function r(){var t={line:n,column:o};return function(e){return e.position=new s(t),d(),e}}function s(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function a(i){var r=new Error(e.source+":"+n+":"+o+": "+i);if(r.reason=i,r.filename=e.source,r.line=n,r.column=o,r.source=t,!e.silent)throw r}function l(e){var n=e.exec(t);if(n){var o=n[0];return i(o),t=t.slice(o.length),n}}function d(){l(H)}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;X!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,X===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return o+=2,i(s),t=t.slice(n),o+=2,e({type:"comment",comment:s})}}function p(){var t=r(),e=l(R);if(e){if(u(),!l(Y))return a("property missing ':'");var n=l(B),o=t({type:"declaration",property:q(e[0].replace(J,X)),value:n?q(n[0].replace(J,X)):X});return l(W),o}}return s.prototype.content=t,d(),function(){var t,e=[];for(c(e);t=p();)!1!==t&&(e.push(t),c(e));return e}()}(t),a="function"==typeof e,l=0,d=s.length;l<d;l++)i=(n=s[l]).property,r=n.value,a?e(i,r,n):r&&(o||(o={}),o[i]=r);return o};var K,Q=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,i="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(o=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===o?void 0:o.length))for(var r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++)r(a[s]);return i},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 o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}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,o){return t.formatDate(e,n,o||this.lang)},t.getDefaultLang=function(){var t,e,n,o,i,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===(i=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===i?void 0:i.toLowerCase()),r},t.getDictionaryWord=function(e,n,o){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(i=n[o])||void 0===i?void 0:i[e]))return n[o][e];var r="",s=t.getDefaultLang();if(!o||s!==o){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(r=a[e])}return r},t.formatDate=function(e,n,o){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(K={exports:{}},K.exports),K.exports),U={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 ot(t){let e,n,o,i,r,s,c;return{c(){e=d("hb-table"),b(e,"style",t[8]),b(e,"rows",n=JSON.stringify(t[4])),b(e,"headers",o=JSON.stringify(t[22])),b(e,"actions",i=JSON.stringify(t[23])),b(e,"size","12"),b(e,"disablepagination",r=t[4].length<12?"yes":"no")},m(n,o){a(n,e,o),s||(c=p(e,"tableaction",t[43]),s=!0)},p(t,o){256&o[0]&&b(e,"style",t[8]),16&o[0]&&n!==(n=JSON.stringify(t[4]))&&b(e,"rows",n),16&o[0]&&r!==(r=t[4].length<12?"yes":"no")&&b(e,"disablepagination",r)},d(t){t&&l(e),s=!1,c()}}}function it(t){let e,n,o,i;return{c(){e=d("hb-pad-joystick"),b(e,"id",n="pad_"+t[18]),b(e,"pad_or_joystick","joystick"),b(e,"size","60px"),b(e,"style",t[7])},m(n,r){a(n,e,r),o||(i=p(e,"sendJoystickPosition",t[59]),o=!0)},p(t,o){262144&o[0]&&n!==(n="pad_"+t[18])&&b(e,"id",n),128&o[0]&&b(e,"style",t[7])},d(t){t&&l(e),o=!1,i()}}}function rt(t){let e,n,o,i;return{c(){e=d("hb-pad-joystick"),b(e,"id",n="pad_"+t[18]),b(e,"pad_or_joystick","dpad"),b(e,"size","60px"),b(e,"style",t[7])},m(n,r){a(n,e,r),o||(i=p(e,"sendDirection",t[58]),o=!0)},p(t,o){262144&o[0]&&n!==(n="pad_"+t[18])&&b(e,"id",n),128&o[0]&&b(e,"style",t[7])},d(t){t&&l(e),o=!1,i()}}}function st(e){let n,i,r,h,v,w,x,k,$,_,T,C,E,P,j,z,S,D,A,L,N,O,V,M,I,J,G,H,R,Y,B,W,F,X,q,Z,K,Q,U,tt,et,nt,st,at,lt,dt,ct,ut,pt,ft,bt,ht,mt,gt,yt,vt,wt,xt,kt,$t,_t,Tt,Ct,Et,Pt,jt,zt,St,Dt,At,Lt,Nt,Ot,Vt,Mt,It,Jt,Gt,Ht,Rt,Yt,Bt,Wt,Ft,Xt,qt,Zt,Kt,Qt,Ut,te,ee,ne,oe,ie,re,se,ae,le,de,ce,ue,pe,fe,be,he,me,ge=(e[9]?e[1].find(e[49])?.id:"")+"",ye=(e[9]?e[1].find(e[53])?.id:"")+"",ve=e[4]?.length&&ot(e);function we(t,e){return"dpad"===t[18]?rt:it}let xe=we(e),ke=xe(e);return{c(){n=d("link"),i=u(),r=d("hb-dialog"),h=d("div"),ve&&ve.c(),w=u(),x=d("hb-dialog"),k=d("div"),k.textContent="Are You sure to add this scene to the preset?",_=u(),T=d("hb-dialog"),C=d("div"),C.textContent="Are You sure to go To Home?",P=u(),j=d("hb-dialog"),z=d("div"),S=c("Are You sure to DELETE preset "),D=c(ge),A=c("?"),V=u(),M=d("hb-dialog"),I=d("div"),J=c('Are You sure to GO to preset "'),G=c(ye),H=c('"?'),W=u(),F=d("div"),X=d("hb-player-live"),q=u(),Z=d("div"),K=u(),Q=d("div"),U=d("table"),U.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>",tt=u(),et=d("div"),nt=d("div"),st=d("div"),ke.c(),at=u(),lt=d("div"),dt=d("div"),ct=d("button"),ut=d("i"),ft=u(),bt=d("button"),ht=d("i"),gt=u(),yt=d("button"),vt=d("i"),xt=u(),kt=d("button"),$t=d("i"),Ct=u(),Et=d("div"),Pt=d("span"),Pt.textContent="speed:",jt=u(),zt=d("input"),St=u(),Dt=d("div"),At=d("span"),At.textContent="precision:",Lt=u(),Nt=d("input"),Ot=u(),Vt=d("div"),Mt=d("button"),It=d("i"),Gt=u(),Ht=d("button"),Rt=d("i"),Wt=u(),Ft=d("button"),Xt=d("i"),Zt=u(),Kt=d("div"),Qt=d("button"),Ut=d("i"),ee=u(),ne=d("button"),oe=c(e[3]),ie=u(),re=d("i"),le=u(),de=d("div"),ce=d("span"),ue=d("i"),pe=u(),fe=d("span"),be=c(e[11]),this.c=t,f(n,"rel","stylesheet"),f(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),f(h,"slot","body-content"),b(r,"title","Presets"),b(r,"show",v=e[12]?"yes":"no"),b(r,"hide_confirm","yes"),f(k,"slot","body-content"),b(x,"title","Add Scene to Preset"),b(x,"show",$=e[13]?"yes":"no"),f(C,"slot","body-content"),b(T,"title","Go to Home"),b(T,"show",E=e[16]?"yes":"no"),f(z,"slot","body-content"),b(j,"id",L="del_"+e[9]),b(j,"title",N="Go to Preset "+(e[9]?e[1].find(e[50])?.id:"")),b(j,"show",O=e[14]?"yes":"no"),b(j,"confirmlabel","delete"),b(j,"confirm_btn_class","danger"),f(I,"slot","body-content"),b(M,"id",R="goto_"+e[9]),b(M,"title",Y="Go to Preset "+(e[9]?e[1].find(e[54])?.id:"")),b(M,"show",B=e[15]?"yes":"no"),b(M,"confirmlabel","go"),b(M,"confirm_btn_class","light"),b(X,"no_controls","yes"),b(X,"id","player"),b(X,"mediauri",e[0]),b(X,"style",e[6]),f(Z,"id","area_selector"),y(Z,"display",e[19]?"inherit":"none"),y(Z,"width",e[20].width+"px"),y(Z,"height",e[20].height+"px"),y(Z,"top",e[20].top+"px"),y(Z,"left",e[20].left+"px"),f(U,"id","grid_table"),f(Q,"id","grid"),y(Q,"display",e[17]?"inherit":"none"),f(st,"id","joystick"),f(ut,"class","bi bi-zoom-in"),ct.disabled=pt=!e[2]?.zoom?.in,f(ct,"class","btn btn-sm btn-light"),f(ht,"class","bi bi-zoom-out"),bt.disabled=mt=!e[2]?.zoom?.out,f(bt,"class","btn btn-sm btn-light"),f(dt,"class","btn-group"),y(dt,"margin-right","10px"),f(vt,"class","bi bi-house-door-fill"),yt.disabled=wt=!e[2]?.home,f(yt,"class","btn btn-sm btn-light"),f($t,"class","bi bi-square"),kt.disabled=_t=!e[2]?.clickToCenter,f(kt,"class",Tt="btn btn-sm btn-"+(e[19]?"primary":"light")),f(lt,"id","buttons"),f(Pt,"class","slider_label"),f(zt,"type","range"),f(Et,"id","speed"),f(At,"class","slider_label"),f(Nt,"type","range"),f(Dt,"id","precision"),f(It,"class","bi bi-grid-3x3"),f(Mt,"class",Jt="btn btn-"+(e[17]?"primary":"light")),f(Rt,"class","bi bi-joystick"),Ht.disabled=Yt=!e[2]?.joystick,f(Ht,"class",Bt="btn btn-"+(e[18]&&"dpad"===e[18]?"light":"primary")),f(Xt,"class","bi bi-sliders"),Ft.disabled=qt=!e[2]?.settings,f(Ft,"class","btn btn-light"),f(Vt,"id","presets_view"),f(Ut,"class","bi bi-plus-circle-fill"),Qt.disabled=te=!e[2]?.addPreset,f(Qt,"class","btn btn-sm btn-light"),y(re,"float","right"),f(re,"class","bi bi-arrow-down-up"),ne.disabled=se=!e[2]?.presets,y(ne,"width","120px",1),y(ne,"display","inline-block",1),f(ne,"class",ae="btn btn-sm btn-"+(e[3]?"primary":"light")),f(Kt,"id","presets_select"),f(ue,"class","bi bi-clock"),f(ce,"class","timecell"),f(de,"id","presets_buttons"),f(nt,"id","panel"),f(et,"id","controller"),f(F,"id","container"),y(F,"cursor",e[19]?"crosshair":"")},m(t,o){s(document.head,n),a(t,i,o),a(t,r,o),s(r,h),ve&&ve.m(h,null),a(t,w,o),a(t,x,o),s(x,k),a(t,_,o),a(t,T,o),s(T,C),a(t,P,o),a(t,j,o),s(j,z),s(z,S),s(z,D),s(z,A),a(t,V,o),a(t,M,o),s(M,I),s(I,J),s(I,G),s(I,H),a(t,W,o),a(t,F,o),s(F,X),s(F,q),s(F,Z),s(F,K),s(F,Q),s(Q,U),s(F,tt),s(F,et),s(et,nt),s(nt,st),ke.m(st,null),s(nt,at),s(nt,lt),s(lt,dt),s(dt,ct),s(ct,ut),s(dt,ft),s(dt,bt),s(bt,ht),s(lt,gt),s(lt,yt),s(yt,vt),s(lt,xt),s(lt,kt),s(kt,$t),s(nt,Ct),s(nt,Et),s(Et,Pt),s(Et,jt),s(Et,zt),g(zt,e[10].speed),s(nt,St),s(nt,Dt),s(Dt,At),s(Dt,Lt),s(Dt,Nt),g(Nt,e[10].precision),s(nt,Ot),s(nt,Vt),s(Vt,Mt),s(Mt,It),s(Vt,Gt),s(Vt,Ht),s(Ht,Rt),s(Vt,Wt),s(Vt,Ft),s(Ft,Xt),s(nt,Zt),s(nt,Kt),s(Kt,Qt),s(Qt,Ut),s(Kt,ee),s(Kt,ne),s(ne,oe),s(ne,ie),s(ne,re),s(nt,le),s(nt,de),s(de,ce),s(ce,ue),s(ce,pe),s(ce,fe),s(fe,be),he||(me=[p(r,"modalShow",e[44]),p(x,"modalShow",e[45]),p(x,"modalConfirm",e[46]),p(T,"modalShow",e[47]),p(T,"modalConfirm",e[48]),p(j,"modalShow",e[51]),p(j,"modalConfirm",e[52]),p(M,"modalShow",e[55]),p(M,"modalConfirm",e[56]),p(X,"htmlVideoInit",e[57]),p(ct,"click",e[60]),p(bt,"click",e[61]),p(yt,"click",e[62]),p(kt,"click",e[63]),p(zt,"change",e[64]),p(zt,"input",e[64]),p(Nt,"change",e[65]),p(Nt,"input",e[65]),p(Mt,"click",e[66]),p(Ht,"click",e[67]),p(Ft,"click",e[68]),p(Qt,"click",e[69]),p(ne,"click",e[70]),p(F,"mousemove",e[71])],he=!0)},p(t,e){t[4]?.length?ve?ve.p(t,e):(ve=ot(t),ve.c(),ve.m(h,null)):ve&&(ve.d(1),ve=null),4096&e[0]&&v!==(v=t[12]?"yes":"no")&&b(r,"show",v),8192&e[0]&&$!==($=t[13]?"yes":"no")&&b(x,"show",$),65536&e[0]&&E!==(E=t[16]?"yes":"no")&&b(T,"show",E),514&e[0]&&ge!==(ge=(t[9]?t[1].find(t[49])?.id:"")+"")&&m(D,ge),512&e[0]&&L!==(L="del_"+t[9])&&b(j,"id",L),514&e[0]&&N!==(N="Go to Preset "+(t[9]?t[1].find(t[50])?.id:""))&&b(j,"title",N),16384&e[0]&&O!==(O=t[14]?"yes":"no")&&b(j,"show",O),514&e[0]&&ye!==(ye=(t[9]?t[1].find(t[53])?.id:"")+"")&&m(G,ye),512&e[0]&&R!==(R="goto_"+t[9])&&b(M,"id",R),514&e[0]&&Y!==(Y="Go to Preset "+(t[9]?t[1].find(t[54])?.id:""))&&b(M,"title",Y),32768&e[0]&&B!==(B=t[15]?"yes":"no")&&b(M,"show",B),1&e[0]&&b(X,"mediauri",t[0]),64&e[0]&&b(X,"style",t[6]),524288&e[0]&&y(Z,"display",t[19]?"inherit":"none"),1048576&e[0]&&y(Z,"width",t[20].width+"px"),1048576&e[0]&&y(Z,"height",t[20].height+"px"),1048576&e[0]&&y(Z,"top",t[20].top+"px"),1048576&e[0]&&y(Z,"left",t[20].left+"px"),131072&e[0]&&y(Q,"display",t[17]?"inherit":"none"),xe===(xe=we(t))&&ke?ke.p(t,e):(ke.d(1),ke=xe(t),ke&&(ke.c(),ke.m(st,null))),4&e[0]&&pt!==(pt=!t[2]?.zoom?.in)&&(ct.disabled=pt),4&e[0]&&mt!==(mt=!t[2]?.zoom?.out)&&(bt.disabled=mt),4&e[0]&&wt!==(wt=!t[2]?.home)&&(yt.disabled=wt),4&e[0]&&_t!==(_t=!t[2]?.clickToCenter)&&(kt.disabled=_t),524288&e[0]&&Tt!==(Tt="btn btn-sm btn-"+(t[19]?"primary":"light"))&&f(kt,"class",Tt),1024&e[0]&&g(zt,t[10].speed),1024&e[0]&&g(Nt,t[10].precision),131072&e[0]&&Jt!==(Jt="btn btn-"+(t[17]?"primary":"light"))&&f(Mt,"class",Jt),4&e[0]&&Yt!==(Yt=!t[2]?.joystick)&&(Ht.disabled=Yt),262144&e[0]&&Bt!==(Bt="btn btn-"+(t[18]&&"dpad"===t[18]?"light":"primary"))&&f(Ht,"class",Bt),4&e[0]&&qt!==(qt=!t[2]?.settings)&&(Ft.disabled=qt),4&e[0]&&te!==(te=!t[2]?.addPreset)&&(Qt.disabled=te),8&e[0]&&m(oe,t[3]),4&e[0]&&se!==(se=!t[2]?.presets)&&(ne.disabled=se),8&e[0]&&ae!==(ae="btn btn-sm btn-"+(t[3]?"primary":"light"))&&f(ne,"class",ae),2048&e[0]&&m(be,t[11]),524288&e[0]&&y(F,"cursor",t[19]?"crosshair":"")},i:t,o:t,d(t){l(n),t&&l(i),t&&l(r),ve&&ve.d(),t&&l(w),t&&l(x),t&&l(_),t&&l(T),t&&l(P),t&&l(j),t&&l(V),t&&l(M),t&&l(W),t&&l(F),ke.d(),he=!1,o(me)}}}function at(t,e,n){const o=k(),i=$();function r(t,e){i(t,e),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:e}))}let s,a,{id:l}=e,{style:d}=e,{live_uri:c}=e,{presets:u}=e,{position:p}=e,{configuration:f}=e,{current_preset:b}=e,m="",g="",y="",v="";const w={precision:50,speed:50},x={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let _,T=(new Date).toLocaleTimeString();let C=!1,E=!1,P=!1,j=!1,z=!1,S=!1,D="dpad",A=!1,L={top:0,left:0,width:0,height:0},N={};function O(t){if(!f.zoom)return console.error("Zoom is not enabled in the configuration");if(!f.zoom[t])return console.error(`Zoom ${t} is not enabled in the configuration`);r("zoomAction",{time:new Date,id:l,movementSettings:w,direction:t})}function V(){if(!f.home)return console.error("Go to home is not enabled in the configuration");r("goToHome",{id:l,movementSettings:w})}function M(){if(!f.addPreset)return console.error("Add scene to preset is not enabled in the configuration");r("addSceneAsPreset",{time:new Date,id:l})}function J(){if(!(null==f?void 0:f.clickToCenter))return console.error("Click to center is not enabled in the configuration");const t=s.getBoundingClientRect();r("sendRect",Object.assign({time:new Date,id:l,movementSettings:w,htmlVideoElementWidth:t.width,htmlVideoElementHeight:t.height},L)),n(19,A=!1),n(20,L={top:0,left:0,width:0,height:0}),n(21,N={})}function G(){if(!f.presets)return console.error("Presets is not enabled in the configuration");n(12,C=!C)}function H(){if(!f.addPreset)return console.error("Add scene to preset is not enabled in the configuration");n(13,E=!E)}function R(){if(!f.home)return console.error("Go to home is not enabled in the configuration");n(16,z=!z)}function Y(t){if(!f.switchPreset)return console.error("Switch preset is not enabled in the configuration");const e=u.find((e=>e.id===t));if(e){r("changePreset",Object.assign({time:new Date,playerId:l,movementSettings:w},e))}else console.error("Preset not found")}function B(t){if(!f.deletePreset)return console.error("Delete preset is not enabled in the configuration");const e=u.find((e=>e.id===t));if(e){r("deletePreset",Object.assign({time:new Date,playerId:l},e))}else console.error("Preset not found")}function W(t){if(!(null==f?void 0:f.joystick)||(null==f?void 0:f.pan)||(null==f?void 0:f.tilt))return console.error("Pan and Tilt on joystick are not enabled in the configuration");r("sendJoystickPosition",{id:l,x:t.x,y:t.y,cardinalDirection:t.cardinalDirection,joyId:t.id,movementSettings:w})}function F(t){f.pan&&f.tilt?r("sendDirection",{id:l,movementSettings:w,direction:t.direction,joyId:t.id}):console.error("Pan and Tilt are not enabled in the configuration")}function X(){n(17,S=!S)}function q(){if(!(null==f?void 0:f.clickToCenter))return console.error("Click to center is not enabled in the configuration");n(19,A=!A)}function K(){if("dpad"===D){if(!(null==f?void 0:f.joystick))return console.error("Joystick is not enabled in the configuration");n(18,D="joystick")}else n(18,D="dpad")}function ot(t){switch(n(12,C=!1),n(9,v=t.itemId),t.action){case"goto":n(15,j=!0);break;case"delete":n(14,P=!0);break;default:return console.error("Action not found")}}setInterval((()=>{n(11,T=(new Date).toLocaleTimeString())}),1e3),Q.addComponent({repoName:"@htmlbricks/hb-player-live",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-pad-joystick",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-table",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-dialog",version:I});return t.$$set=t=>{"id"in t&&n(39,l=t.id),"style"in t&&n(41,d=t.style),"live_uri"in t&&n(0,c=t.live_uri),"presets"in t&&n(1,u=t.presets),"position"in t&&n(40,p=t.position),"configuration"in t&&n(2,f=t.configuration),"current_preset"in t&&n(3,b=t.current_preset)},t.$$.update=()=>{31&t.$$.dirty[0]|3840&t.$$.dirty[1]&&(c||n(0,c=""),l||n(39,l=""),d&&(n(42,a=Z(d)),n(6,m=Q.getChildStyleToPass(a,null==U?void 0:U.vars)),n(7,g=Q.getChildStyleToPass(a,null==tt?void 0:tt.vars)),n(8,y=Q.getChildStyleToPass(a,null==et?void 0:et.vars)),Q.getChildStyleToPass(a,null==nt?void 0:nt.vars)),f?"string"==typeof f&&n(2,f=JSON.parse(f)):n(2,f=x),b||n(3,b=""),u?"string"==typeof u&&n(1,u=JSON.parse(u)):n(1,u=[]),!(null==_?void 0:_.length)&&u.length&&n(4,_=u.map((t=>({_id:t.id,name:t.name,number:t.number})))),p||n(40,p="right-bottom"))},[c,u,f,b,_,s,m,g,y,v,w,T,C,E,P,j,z,S,D,A,L,N,[{label:"Name",key:"name",copyTxt:!0},{label:"Number",key:"number",type:"number",copyTxt:!0}],[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}],O,V,M,J,G,H,R,Y,B,W,F,X,q,K,ot,l,p,d,a,t=>{ot(t.detail)},t=>{n(12,C=t.detail.show)},t=>{n(13,E=t.detail.show)},t=>{t?.detail?.confirm&&M()},t=>{n(16,z=t.detail.show)},t=>{t?.detail?.confirm&&V()},t=>t.id===v,t=>t.id===v,t=>{n(14,P=t.detail.show)},t=>{console.log(t.detail,"detail"),t?.detail?.confirm&&B(t.detail.id.split("del_")[1])},t=>t.id===v,t=>t.id===v,t=>{n(15,j=t.detail.show)},t=>{console.log(t.detail.id.split("goto")[1],"detail"),t?.detail?.confirm&&Y(t.detail.id.split("goto_")[1])},t=>{console.log(t.detail,"detailvid"),n(5,s=t.detail.htmlVideoElement),n(5,s.onclick=t=>{if(A){const e=s.getBoundingClientRect(),o={x:t.clientX-e.left,y:t.clientY-e.top,width:0,height:0};N.start?(n(21,N={start:N.start,end:o}),J()):n(21,N={start:o})}},s),n(5,s.onmousemove=t=>{if(A){const e={x:t.clientX,y:t.clientY};N.start&&(n(21,N={start:N.start,end:e}),n(20,L={top:N.start.y>N.end.y?N.end.y:N.start.y,left:N.start.x>N.end.x?N.end.x:N.start.x,width:Math.abs((N?.start?.x||0)-(N?.end?.x||0)),height:Math.abs((N?.start?.y||0)-(N?.end?.y||0))}))}},s)},t=>{F(t.detail)},t=>{W(t.detail)},()=>O("in"),()=>O("out"),()=>R(),()=>q(),function(){w.speed=h(this.value),n(10,w)},function(){w.precision=h(this.value),n(10,w)},()=>X(),()=>K(),()=>{},()=>H(),()=>{G()},t=>{if(A){const e=s.getBoundingClientRect(),o={x:t.clientX-e.left,y:t.clientY-e.top};N.start&&(n(21,N={start:N.start,end:o}),n(20,L={top:N.start.y>N.end.y?N.end.y:N.start.y,left:N.start.x>N.end.x?N.end.x:N.start.x,width:Math.abs((N?.start?.x||0)-(N?.end?.x||0)),height:Math.abs((N?.start?.y||0)-(N?.end?.y||0))}))}}]}class lt extends M{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%}#area_selector{position:absolute;z-index:2;border:solid 2px red}#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-light{color:#000;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#000;background-color:#f9fafb;border-color:#f9fafb}.btn-light:focus{color:#000;background-color:#f9fafb;border-color:#f9fafb;box-shadow:0 0 0 0.25rem rgba(211, 212, 213, 0.5)}.btn-light:active{color:#000;background-color:#f9fafb;border-color:#f9fafb}.btn-light:active:focus{box-shadow:0 0 0 0.25rem rgba(211, 212, 213, 0.5)}.btn-light:disabled{color:#000;background-color:#f8f9fa;border-color:#f8f9fa}.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>',V(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},at,st,r,{id:39,style:41,live_uri:0,presets:1,position:40,configuration:2,current_preset:3},null,[-1,-1,-1]),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","style","live_uri","presets","position","configuration","current_preset"]}get id(){return this.$$.ctx[39]}set id(t){this.$$set({id:t}),A()}get style(){return this.$$.ctx[41]}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[1]}set presets(t){this.$$set({presets:t}),A()}get position(){return this.$$.ctx[40]}set position(t){this.$$set({position:t}),A()}get configuration(){return this.$$.ctx[2]}set configuration(t){this.$$set({configuration:t}),A()}get current_preset(){return this.$$.ctx[3]}set current_preset(t){this.$$set({current_preset:t}),A()}}return customElements.define("hb-player-live-camera-ptz",lt),lt}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e){t.appendChild(e)}function a(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,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:f(t,e,n)}function h(t){return""===t?null:+t}function m(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function g(t,e){t.value=null==e?"":e}function y(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}let w;function x(t){w=t}function k(){if(!w)throw new Error("Function called outside component initialization");return w}function $(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const _=[],T=[],C=[],E=[],P=Promise.resolve();let j=!1;function z(t){C.push(t)}const S=new Set;let D=0;function A(){const t=w;do{for(;D<_.length;){const t=_[D];D++,x(t),L(t.$$)}for(x(null),_.length=0,D=0;T.length;)T.pop()();for(let t=0;t<C.length;t+=1){const e=C[t];S.has(e)||(S.add(e),e())}C.length=0}while(_.length);for(;E.length;)E.pop()();j=!1,S.clear(),x(t)}function L(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}const N=new Set;function O(t,e){-1===t.$$.dirty[0]&&(_.push(t),j||(j=!0,P.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function V(r,s,a,d,c,u,p,f=[-1]){const b=w;x(r);const h=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(s.context||(b?b.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:s.target||b.$$.root};p&&p(h.root);let m=!1;if(h.ctx=a?a(r,s.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),m&&O(r,t)),e})):[],h.update(),m=!0,o(h.before_update),h.fragment=!!d&&d(h.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);h.fragment&&h.fragment.l(t),t.forEach(l)}else h.fragment&&h.fragment.c();s.intro&&((g=r.$$.fragment)&&g.i&&(N.delete(g),g.i(y))),function(t,n,r,s){const{fragment:a,on_mount:l,on_destroy:d,after_update:c}=t.$$;a&&a.m(n,r),s||z((()=>{const n=l.map(e).filter(i);d?d.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(z)}(r,s.target,s.anchor,s.customElement),A()}var g,y;x(b)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(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 I="0.17.19",J=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G=/\n/g,H=/^\s*/,R=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Y=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,W=/^[;\s]*/,F=/^\s+|\s+$/g,X="";function q(t){return t?t.replace(F,X):X}var Z=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,s=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,o=1;function i(t){var e=t.match(G);e&&(n+=e.length);var i=t.lastIndexOf("\n");o=~i?t.length-i:o+t.length}function r(){var t={line:n,column:o};return function(e){return e.position=new s(t),d(),e}}function s(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function a(i){var r=new Error(e.source+":"+n+":"+o+": "+i);if(r.reason=i,r.filename=e.source,r.line=n,r.column=o,r.source=t,!e.silent)throw r}function l(e){var n=e.exec(t);if(n){var o=n[0];return i(o),t=t.slice(o.length),n}}function d(){l(H)}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;X!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,X===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return o+=2,i(s),t=t.slice(n),o+=2,e({type:"comment",comment:s})}}function p(){var t=r(),e=l(R);if(e){if(u(),!l(Y))return a("property missing ':'");var n=l(B),o=t({type:"declaration",property:q(e[0].replace(J,X)),value:n?q(n[0].replace(J,X)):X});return l(W),o}}return s.prototype.content=t,d(),function(){var t,e=[];for(c(e);t=p();)!1!==t&&(e.push(t),c(e));return e}()}(t),a="function"==typeof e,l=0,d=s.length;l<d;l++)i=(n=s[l]).property,r=n.value,a?e(i,r,n):r&&(o||(o={}),o[i]=r);return o};var K,Q=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,i="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(o=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===o?void 0:o.length))for(var r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++)r(a[s]);return i},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 o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}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,o){return t.formatDate(e,n,o||this.lang)},t.getDefaultLang=function(){var t,e,n,o,i,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===(i=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===i?void 0:i.toLowerCase()),r},t.getDictionaryWord=function(e,n,o){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(i=n[o])||void 0===i?void 0:i[e]))return n[o][e];var r="",s=t.getDefaultLang();if(!o||s!==o){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(r=a[e])}return r},t.formatDate=function(e,n,o){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(K={exports:{}},K.exports),K.exports),U={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 ot(t){let e,n,o,i,r,s,c;return{c(){e=d("hb-table"),b(e,"style",t[8]),b(e,"rows",n=JSON.stringify(t[4])),b(e,"headers",o=JSON.stringify(t[22])),b(e,"actions",i=JSON.stringify(t[23])),b(e,"size","12"),b(e,"disablepagination",r=t[4].length<12?"yes":"no")},m(n,o){a(n,e,o),s||(c=p(e,"tableaction",t[43]),s=!0)},p(t,o){256&o[0]&&b(e,"style",t[8]),16&o[0]&&n!==(n=JSON.stringify(t[4]))&&b(e,"rows",n),16&o[0]&&r!==(r=t[4].length<12?"yes":"no")&&b(e,"disablepagination",r)},d(t){t&&l(e),s=!1,c()}}}function it(t){let e,n,o,i;return{c(){e=d("hb-pad-joystick"),b(e,"id",n="pad_"+t[18]),b(e,"pad_or_joystick","joystick"),b(e,"size","60px"),b(e,"style",t[7])},m(n,r){a(n,e,r),o||(i=p(e,"sendJoystickPosition",t[59]),o=!0)},p(t,o){262144&o[0]&&n!==(n="pad_"+t[18])&&b(e,"id",n),128&o[0]&&b(e,"style",t[7])},d(t){t&&l(e),o=!1,i()}}}function rt(t){let e,n,o,i;return{c(){e=d("hb-pad-joystick"),b(e,"id",n="pad_"+t[18]),b(e,"pad_or_joystick","dpad"),b(e,"size","60px"),b(e,"style",t[7])},m(n,r){a(n,e,r),o||(i=p(e,"sendDirection",t[58]),o=!0)},p(t,o){262144&o[0]&&n!==(n="pad_"+t[18])&&b(e,"id",n),128&o[0]&&b(e,"style",t[7])},d(t){t&&l(e),o=!1,i()}}}function st(e){let n,i,r,h,v,w,x,k,$,_,T,C,E,P,j,z,S,D,A,L,N,O,V,M,I,J,G,H,R,Y,B,W,F,X,q,Z,K,Q,U,tt,et,nt,st,at,lt,dt,ct,ut,pt,ft,bt,ht,mt,gt,yt,vt,wt,xt,kt,$t,_t,Tt,Ct,Et,Pt,jt,zt,St,Dt,At,Lt,Nt,Ot,Vt,Mt,It,Jt,Gt,Ht,Rt,Yt,Bt,Wt,Ft,Xt,qt,Zt,Kt,Qt,Ut,te,ee,ne,oe,ie,re,se,ae,le,de,ce,ue,pe,fe,be,he,me,ge=(e[9]?e[1].find(e[49])?.id:"")+"",ye=(e[9]?e[1].find(e[53])?.id:"")+"",ve=e[4]?.length&&ot(e);function we(t,e){return"dpad"===t[18]?rt:it}let xe=we(e),ke=xe(e);return{c(){n=d("link"),i=u(),r=d("hb-dialog"),h=d("div"),ve&&ve.c(),w=u(),x=d("hb-dialog"),k=d("div"),k.textContent="Are You sure to add this scene to the preset?",_=u(),T=d("hb-dialog"),C=d("div"),C.textContent="Are You sure to go To Home?",P=u(),j=d("hb-dialog"),z=d("div"),S=c("Are You sure to DELETE preset "),D=c(ge),A=c("?"),V=u(),M=d("hb-dialog"),I=d("div"),J=c('Are You sure to GO to preset "'),G=c(ye),H=c('"?'),W=u(),F=d("div"),X=d("hb-player-live"),q=u(),Z=d("div"),K=u(),Q=d("div"),U=d("table"),U.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>",tt=u(),et=d("div"),nt=d("div"),st=d("div"),ke.c(),at=u(),lt=d("div"),dt=d("div"),ct=d("button"),ut=d("i"),ft=u(),bt=d("button"),ht=d("i"),gt=u(),yt=d("button"),vt=d("i"),xt=u(),kt=d("button"),$t=d("i"),Ct=u(),Et=d("div"),Pt=d("span"),Pt.textContent="speed:",jt=u(),zt=d("input"),St=u(),Dt=d("div"),At=d("span"),At.textContent="precision:",Lt=u(),Nt=d("input"),Ot=u(),Vt=d("div"),Mt=d("button"),It=d("i"),Gt=u(),Ht=d("button"),Rt=d("i"),Wt=u(),Ft=d("button"),Xt=d("i"),Zt=u(),Kt=d("div"),Qt=d("button"),Ut=d("i"),ee=u(),ne=d("button"),oe=c(e[3]),ie=u(),re=d("i"),le=u(),de=d("div"),ce=d("span"),ue=d("i"),pe=u(),fe=d("span"),be=c(e[11]),this.c=t,f(n,"rel","stylesheet"),f(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),f(h,"slot","body-content"),b(r,"title","Presets"),b(r,"show",v=e[12]?"yes":"no"),b(r,"hide_confirm","yes"),f(k,"slot","body-content"),b(x,"title","Add Scene to Preset"),b(x,"show",$=e[13]?"yes":"no"),f(C,"slot","body-content"),b(T,"title","Go to Home"),b(T,"show",E=e[16]?"yes":"no"),f(z,"slot","body-content"),b(j,"id",L="del_"+e[9]),b(j,"title",N="Go to Preset "+(e[9]?e[1].find(e[50])?.id:"")),b(j,"show",O=e[14]?"yes":"no"),b(j,"confirmlabel","delete"),b(j,"confirm_btn_class","danger"),f(I,"slot","body-content"),b(M,"id",R="goto_"+e[9]),b(M,"title",Y="Go to Preset "+(e[9]?e[1].find(e[54])?.id:"")),b(M,"show",B=e[15]?"yes":"no"),b(M,"confirmlabel","go"),b(M,"confirm_btn_class","light"),b(X,"no_controls","yes"),b(X,"id","player"),b(X,"mediauri",e[0]),b(X,"style",e[6]),f(Z,"id","area_selector"),y(Z,"display",e[19]?"inherit":"none"),y(Z,"width",e[20].width+"px"),y(Z,"height",e[20].height+"px"),y(Z,"top",e[20].top+"px"),y(Z,"left",e[20].left+"px"),f(U,"id","grid_table"),f(Q,"id","grid"),y(Q,"display",e[17]?"inherit":"none"),f(st,"id","joystick"),f(ut,"class","bi bi-zoom-in"),ct.disabled=pt=!e[2]?.zoom?.in,f(ct,"class","btn btn-sm btn-light"),f(ht,"class","bi bi-zoom-out"),bt.disabled=mt=!e[2]?.zoom?.out,f(bt,"class","btn btn-sm btn-light"),f(dt,"class","btn-group"),y(dt,"margin-right","10px"),f(vt,"class","bi bi-house-door-fill"),yt.disabled=wt=!e[2]?.home,f(yt,"class","btn btn-sm btn-light"),f($t,"class","bi bi-square"),kt.disabled=_t=!e[2]?.clickToCenter,f(kt,"class",Tt="btn btn-sm btn-"+(e[19]?"primary":"light")),f(lt,"id","buttons"),f(Pt,"class","slider_label"),f(zt,"type","range"),f(Et,"id","speed"),f(At,"class","slider_label"),f(Nt,"type","range"),f(Dt,"id","precision"),f(It,"class","bi bi-grid-3x3"),f(Mt,"class",Jt="btn btn-"+(e[17]?"primary":"light")),f(Rt,"class","bi bi-joystick"),Ht.disabled=Yt=!e[2]?.joystick,f(Ht,"class",Bt="btn btn-"+(e[18]&&"dpad"===e[18]?"light":"primary")),f(Xt,"class","bi bi-sliders"),Ft.disabled=qt=!e[2]?.settings,f(Ft,"class","btn btn-light"),f(Vt,"id","presets_view"),f(Ut,"class","bi bi-plus-circle-fill"),Qt.disabled=te=!e[2]?.addPreset,f(Qt,"class","btn btn-sm btn-light"),y(re,"float","right"),f(re,"class","bi bi-arrow-down-up"),ne.disabled=se=!e[2]?.presets,y(ne,"width","120px",1),y(ne,"display","inline-block",1),f(ne,"class",ae="btn btn-sm btn-"+(e[3]?"primary":"light")),f(Kt,"id","presets_select"),f(ue,"class","bi bi-clock"),f(ce,"class","timecell"),f(de,"id","presets_buttons"),f(nt,"id","panel"),f(et,"id","controller"),f(F,"id","container"),y(F,"cursor",e[19]?"crosshair":"")},m(t,o){s(document.head,n),a(t,i,o),a(t,r,o),s(r,h),ve&&ve.m(h,null),a(t,w,o),a(t,x,o),s(x,k),a(t,_,o),a(t,T,o),s(T,C),a(t,P,o),a(t,j,o),s(j,z),s(z,S),s(z,D),s(z,A),a(t,V,o),a(t,M,o),s(M,I),s(I,J),s(I,G),s(I,H),a(t,W,o),a(t,F,o),s(F,X),s(F,q),s(F,Z),s(F,K),s(F,Q),s(Q,U),s(F,tt),s(F,et),s(et,nt),s(nt,st),ke.m(st,null),s(nt,at),s(nt,lt),s(lt,dt),s(dt,ct),s(ct,ut),s(dt,ft),s(dt,bt),s(bt,ht),s(lt,gt),s(lt,yt),s(yt,vt),s(lt,xt),s(lt,kt),s(kt,$t),s(nt,Ct),s(nt,Et),s(Et,Pt),s(Et,jt),s(Et,zt),g(zt,e[10].speed),s(nt,St),s(nt,Dt),s(Dt,At),s(Dt,Lt),s(Dt,Nt),g(Nt,e[10].precision),s(nt,Ot),s(nt,Vt),s(Vt,Mt),s(Mt,It),s(Vt,Gt),s(Vt,Ht),s(Ht,Rt),s(Vt,Wt),s(Vt,Ft),s(Ft,Xt),s(nt,Zt),s(nt,Kt),s(Kt,Qt),s(Qt,Ut),s(Kt,ee),s(Kt,ne),s(ne,oe),s(ne,ie),s(ne,re),s(nt,le),s(nt,de),s(de,ce),s(ce,ue),s(ce,pe),s(ce,fe),s(fe,be),he||(me=[p(r,"modalShow",e[44]),p(x,"modalShow",e[45]),p(x,"modalConfirm",e[46]),p(T,"modalShow",e[47]),p(T,"modalConfirm",e[48]),p(j,"modalShow",e[51]),p(j,"modalConfirm",e[52]),p(M,"modalShow",e[55]),p(M,"modalConfirm",e[56]),p(X,"htmlVideoInit",e[57]),p(ct,"click",e[60]),p(bt,"click",e[61]),p(yt,"click",e[62]),p(kt,"click",e[63]),p(zt,"change",e[64]),p(zt,"input",e[64]),p(Nt,"change",e[65]),p(Nt,"input",e[65]),p(Mt,"click",e[66]),p(Ht,"click",e[67]),p(Ft,"click",e[68]),p(Qt,"click",e[69]),p(ne,"click",e[70]),p(F,"mousemove",e[71])],he=!0)},p(t,e){t[4]?.length?ve?ve.p(t,e):(ve=ot(t),ve.c(),ve.m(h,null)):ve&&(ve.d(1),ve=null),4096&e[0]&&v!==(v=t[12]?"yes":"no")&&b(r,"show",v),8192&e[0]&&$!==($=t[13]?"yes":"no")&&b(x,"show",$),65536&e[0]&&E!==(E=t[16]?"yes":"no")&&b(T,"show",E),514&e[0]&&ge!==(ge=(t[9]?t[1].find(t[49])?.id:"")+"")&&m(D,ge),512&e[0]&&L!==(L="del_"+t[9])&&b(j,"id",L),514&e[0]&&N!==(N="Go to Preset "+(t[9]?t[1].find(t[50])?.id:""))&&b(j,"title",N),16384&e[0]&&O!==(O=t[14]?"yes":"no")&&b(j,"show",O),514&e[0]&&ye!==(ye=(t[9]?t[1].find(t[53])?.id:"")+"")&&m(G,ye),512&e[0]&&R!==(R="goto_"+t[9])&&b(M,"id",R),514&e[0]&&Y!==(Y="Go to Preset "+(t[9]?t[1].find(t[54])?.id:""))&&b(M,"title",Y),32768&e[0]&&B!==(B=t[15]?"yes":"no")&&b(M,"show",B),1&e[0]&&b(X,"mediauri",t[0]),64&e[0]&&b(X,"style",t[6]),524288&e[0]&&y(Z,"display",t[19]?"inherit":"none"),1048576&e[0]&&y(Z,"width",t[20].width+"px"),1048576&e[0]&&y(Z,"height",t[20].height+"px"),1048576&e[0]&&y(Z,"top",t[20].top+"px"),1048576&e[0]&&y(Z,"left",t[20].left+"px"),131072&e[0]&&y(Q,"display",t[17]?"inherit":"none"),xe===(xe=we(t))&&ke?ke.p(t,e):(ke.d(1),ke=xe(t),ke&&(ke.c(),ke.m(st,null))),4&e[0]&&pt!==(pt=!t[2]?.zoom?.in)&&(ct.disabled=pt),4&e[0]&&mt!==(mt=!t[2]?.zoom?.out)&&(bt.disabled=mt),4&e[0]&&wt!==(wt=!t[2]?.home)&&(yt.disabled=wt),4&e[0]&&_t!==(_t=!t[2]?.clickToCenter)&&(kt.disabled=_t),524288&e[0]&&Tt!==(Tt="btn btn-sm btn-"+(t[19]?"primary":"light"))&&f(kt,"class",Tt),1024&e[0]&&g(zt,t[10].speed),1024&e[0]&&g(Nt,t[10].precision),131072&e[0]&&Jt!==(Jt="btn btn-"+(t[17]?"primary":"light"))&&f(Mt,"class",Jt),4&e[0]&&Yt!==(Yt=!t[2]?.joystick)&&(Ht.disabled=Yt),262144&e[0]&&Bt!==(Bt="btn btn-"+(t[18]&&"dpad"===t[18]?"light":"primary"))&&f(Ht,"class",Bt),4&e[0]&&qt!==(qt=!t[2]?.settings)&&(Ft.disabled=qt),4&e[0]&&te!==(te=!t[2]?.addPreset)&&(Qt.disabled=te),8&e[0]&&m(oe,t[3]),4&e[0]&&se!==(se=!t[2]?.presets)&&(ne.disabled=se),8&e[0]&&ae!==(ae="btn btn-sm btn-"+(t[3]?"primary":"light"))&&f(ne,"class",ae),2048&e[0]&&m(be,t[11]),524288&e[0]&&y(F,"cursor",t[19]?"crosshair":"")},i:t,o:t,d(t){l(n),t&&l(i),t&&l(r),ve&&ve.d(),t&&l(w),t&&l(x),t&&l(_),t&&l(T),t&&l(P),t&&l(j),t&&l(V),t&&l(M),t&&l(W),t&&l(F),ke.d(),he=!1,o(me)}}}function at(t,e,n){const o=k(),i=$();function r(t,e){i(t,e),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:e}))}let s,a,{id:l}=e,{style:d}=e,{live_uri:c}=e,{presets:u}=e,{position:p}=e,{configuration:f}=e,{current_preset:b}=e,m="",g="",y="",v="";const w={precision:50,speed:50},x={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let _,T=(new Date).toLocaleTimeString();let C=!1,E=!1,P=!1,j=!1,z=!1,S=!1,D="dpad",A=!1,L={top:0,left:0,width:0,height:0},N={};function O(t){if(!f.zoom)return console.error("Zoom is not enabled in the configuration");if(!f.zoom[t])return console.error(`Zoom ${t} is not enabled in the configuration`);r("zoomAction",{time:new Date,id:l,movementSettings:w,direction:t})}function V(){if(!f.home)return console.error("Go to home is not enabled in the configuration");r("goToHome",{id:l,movementSettings:w})}function M(){if(!f.addPreset)return console.error("Add scene to preset is not enabled in the configuration");r("addSceneAsPreset",{time:new Date,id:l})}function J(){if(!(null==f?void 0:f.clickToCenter))return console.error("Click to center is not enabled in the configuration");const t=s.getBoundingClientRect();r("sendRect",Object.assign({time:new Date,id:l,movementSettings:w,htmlVideoElementWidth:t.width,htmlVideoElementHeight:t.height},L)),n(19,A=!1),n(20,L={top:0,left:0,width:0,height:0}),n(21,N={})}function G(){if(!f.presets)return console.error("Presets is not enabled in the configuration");n(12,C=!C)}function H(){if(!f.addPreset)return console.error("Add scene to preset is not enabled in the configuration");n(13,E=!E)}function R(){if(!f.home)return console.error("Go to home is not enabled in the configuration");n(16,z=!z)}function Y(t){if(!f.switchPreset)return console.error("Switch preset is not enabled in the configuration");const e=u.find((e=>e.id===t));if(e){r("changePreset",Object.assign({time:new Date,playerId:l,movementSettings:w},e))}else console.error("Preset not found")}function B(t){if(!f.deletePreset)return console.error("Delete preset is not enabled in the configuration");const e=u.find((e=>e.id===t));if(e){r("deletePreset",Object.assign({time:new Date,playerId:l},e))}else console.error("Preset not found")}function W(t){if(!(null==f?void 0:f.joystick)||(null==f?void 0:f.pan)||(null==f?void 0:f.tilt))return console.error("Pan and Tilt on joystick are not enabled in the configuration");r("sendJoystickPosition",{id:l,x:t.x,y:t.y,cardinalDirection:t.cardinalDirection,joyId:t.id,movementSettings:w})}function F(t){f.pan&&f.tilt?r("sendDirection",{id:l,movementSettings:w,direction:t.direction,joyId:t.id}):console.error("Pan and Tilt are not enabled in the configuration")}function X(){n(17,S=!S)}function q(){if(!(null==f?void 0:f.clickToCenter))return console.error("Click to center is not enabled in the configuration");n(19,A=!A)}function K(){if("dpad"===D){if(!(null==f?void 0:f.joystick))return console.error("Joystick is not enabled in the configuration");n(18,D="joystick")}else n(18,D="dpad")}function ot(t){switch(n(12,C=!1),n(9,v=t.itemId),t.action){case"goto":n(15,j=!0);break;case"delete":n(14,P=!0);break;default:return console.error("Action not found")}}setInterval((()=>{n(11,T=(new Date).toLocaleTimeString())}),1e3),Q.addComponent({repoName:"@htmlbricks/hb-player-live",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-pad-joystick",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-table",version:I}),Q.addComponent({repoName:"@htmlbricks/hb-dialog",version:I});return t.$$set=t=>{"id"in t&&n(39,l=t.id),"style"in t&&n(41,d=t.style),"live_uri"in t&&n(0,c=t.live_uri),"presets"in t&&n(1,u=t.presets),"position"in t&&n(40,p=t.position),"configuration"in t&&n(2,f=t.configuration),"current_preset"in t&&n(3,b=t.current_preset)},t.$$.update=()=>{31&t.$$.dirty[0]|3840&t.$$.dirty[1]&&(c||n(0,c=""),l||n(39,l=""),d&&(n(42,a=Z(d)),n(6,m=Q.getChildStyleToPass(a,null==U?void 0:U.vars)),n(7,g=Q.getChildStyleToPass(a,null==tt?void 0:tt.vars)),n(8,y=Q.getChildStyleToPass(a,null==et?void 0:et.vars)),Q.getChildStyleToPass(a,null==nt?void 0:nt.vars)),f?"string"==typeof f&&n(2,f=JSON.parse(f)):n(2,f=x),b||n(3,b=""),u?"string"==typeof u&&n(1,u=JSON.parse(u)):n(1,u=[]),!(null==_?void 0:_.length)&&u.length&&n(4,_=u.map((t=>({_id:t.id,name:t.name,number:t.number})))),p||n(40,p="right-bottom"))},[c,u,f,b,_,s,m,g,y,v,w,T,C,E,P,j,z,S,D,A,L,N,[{label:"Name",key:"name",copyTxt:!0},{label:"Number",key:"number",type:"number",copyTxt:!0}],[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}],O,V,M,J,G,H,R,Y,B,W,F,X,q,K,ot,l,p,d,a,t=>{ot(t.detail)},t=>{n(12,C=t.detail.show)},t=>{n(13,E=t.detail.show)},t=>{t?.detail?.confirm&&M()},t=>{n(16,z=t.detail.show)},t=>{t?.detail?.confirm&&V()},t=>t.id===v,t=>t.id===v,t=>{n(14,P=t.detail.show)},t=>{console.log(t.detail,"detail"),t?.detail?.confirm&&B(t.detail.id.split("del_")[1])},t=>t.id===v,t=>t.id===v,t=>{n(15,j=t.detail.show)},t=>{console.log(t.detail.id.split("goto")[1],"detail"),t?.detail?.confirm&&Y(t.detail.id.split("goto_")[1])},t=>{console.log(t.detail,"detailvid"),n(5,s=t.detail.htmlVideoElement),n(5,s.onclick=t=>{if(A){const e=s.getBoundingClientRect(),o={x:t.clientX-e.left,y:t.clientY-e.top,width:0,height:0};N.start?(n(21,N={start:N.start,end:o}),J()):n(21,N={start:o})}},s),n(5,s.onmousemove=t=>{if(A){const e={x:t.clientX,y:t.clientY};N.start&&(n(21,N={start:N.start,end:e}),n(20,L={top:N.start.y>N.end.y?N.end.y:N.start.y,left:N.start.x>N.end.x?N.end.x:N.start.x,width:Math.abs((N?.start?.x||0)-(N?.end?.x||0)),height:Math.abs((N?.start?.y||0)-(N?.end?.y||0))}))}},s)},t=>{F(t.detail)},t=>{W(t.detail)},()=>O("in"),()=>O("out"),()=>R(),()=>q(),function(){w.speed=h(this.value),n(10,w)},function(){w.precision=h(this.value),n(10,w)},()=>X(),()=>K(),()=>{},()=>H(),()=>{G()},t=>{if(A){const e=s.getBoundingClientRect(),o={x:t.clientX-e.left,y:t.clientY-e.top};N.start&&(n(21,N={start:N.start,end:o}),n(20,L={top:N.start.y>N.end.y?N.end.y:N.start.y,left:N.start.x>N.end.x?N.end.x:N.start.x,width:Math.abs((N?.start?.x||0)-(N?.end?.x||0)),height:Math.abs((N?.start?.y||0)-(N?.end?.y||0))}))}}]}class lt extends M{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%}#area_selector{position:absolute;z-index:2;border:solid 2px red}#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-light{color:#000;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#000;background-color:#f9fafb;border-color:#f9fafb}.btn-light:focus{color:#000;background-color:#f9fafb;border-color:#f9fafb;box-shadow:0 0 0 0.25rem rgba(211, 212, 213, 0.5)}.btn-light:active{color:#000;background-color:#f9fafb;border-color:#f9fafb}.btn-light:active:focus{box-shadow:0 0 0 0.25rem rgba(211, 212, 213, 0.5)}.btn-light:disabled{color:#000;background-color:#f8f9fa;border-color:#f8f9fa}.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>',V(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},at,st,r,{id:39,style:41,live_uri:0,presets:1,position:40,configuration:2,current_preset:3},null,[-1,-1,-1]),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","style","live_uri","presets","position","configuration","current_preset"]}get id(){return this.$$.ctx[39]}set id(t){this.$$set({id:t}),A()}get style(){return this.$$.ctx[41]}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[1]}set presets(t){this.$$set({presets:t}),A()}get position(){return this.$$.ctx[40]}set position(t){this.$$set({position:t}),A()}get configuration(){return this.$$.ctx[2]}set configuration(t){this.$$set({configuration:t}),A()}get current_preset(){return this.$$.ctx[3]}set current_preset(t){this.$$set({current_preset:t}),A()}}return customElements.define("hb-player-live-camera-ptz",lt),lt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|