iobroker.mywebui 1.76.0 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default-controls/controls/gauges/setpoint-gauge.control +1 -0
- package/dist/backend/3d-editor-integration.js +1 -1
- package/dist/backend/ImportmapCreator.js +1 -1
- package/dist/backend/UploadHelper.js +1 -1
- package/dist/backend/main.js +1 -1
- package/io-package.json +1 -1
- package/package.json +1 -1
- package/www/3d-editor/js/Animation.js +1 -1
- package/www/3d-editor/js/AnimationResizer.js +1 -1
- package/www/3d-editor/js/Command.js +1 -1
- package/www/3d-editor/js/Config.js +1 -1
- package/www/3d-editor/js/Editor.js +1 -1
- package/www/3d-editor/js/EditorControls.js +1 -1
- package/www/3d-editor/js/GLTFImportDialog.js +1 -1
- package/www/3d-editor/js/History.js +1 -1
- package/www/3d-editor/js/Loader.js +1 -1
- package/www/3d-editor/js/LoaderUtils.js +1 -1
- package/www/3d-editor/js/Menubar.Add.js +1 -1
- package/www/3d-editor/js/Menubar.Edit.js +1 -1
- package/www/3d-editor/js/Menubar.File.js +1 -1
- package/www/3d-editor/js/Menubar.Help.js +1 -1
- package/www/3d-editor/js/Menubar.Render.js +1 -1
- package/www/3d-editor/js/Menubar.Status.js +1 -1
- package/www/3d-editor/js/Menubar.View.js +1 -1
- package/www/3d-editor/js/Menubar.js +1 -1
- package/www/3d-editor/js/Player.js +1 -1
- package/www/3d-editor/js/Resizer.js +1 -1
- package/www/3d-editor/js/Script.js +1 -1
- package/www/3d-editor/js/Selector.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.js +1 -1
- package/www/3d-editor/js/Sidebar.Object.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.js +1 -1
- package/www/3d-editor/js/Sidebar.Properties.js +1 -1
- package/www/3d-editor/js/Sidebar.Scene.js +1 -1
- package/www/3d-editor/js/Sidebar.Script.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.js +1 -1
- package/www/3d-editor/js/Sidebar.js +1 -1
- package/www/3d-editor/js/Storage.js +1 -1
- package/www/3d-editor/js/Strings.js +1 -1
- package/www/3d-editor/js/TextureParametersDialog.js +1 -1
- package/www/3d-editor/js/Toolbar.js +1 -1
- package/www/3d-editor/js/Viewport.Controls.js +1 -1
- package/www/3d-editor/js/Viewport.Info.js +1 -1
- package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
- package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
- package/www/3d-editor/js/Viewport.XR.js +1 -1
- package/www/3d-editor/js/Viewport.js +1 -1
- package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
- package/www/3d-editor/js/commands/Commands.js +1 -1
- package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
- package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
- package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
- package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
- package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
- package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
- package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
- package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
- package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
- package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
- package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
- package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
- package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
- package/www/dist/frontend/bundle/chunk-43HEBO5G.js +2 -2
- package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
- package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +3 -3
- package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
- package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +3 -3
- package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +3 -3
- package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +2 -2
- package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +3 -3
- package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
- package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
- package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
- package/www/dist/frontend/bundle/chunk-CHDKROX5.js +3 -3
- package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +3 -3
- package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
- package/www/dist/frontend/bundle/chunk-FO56TEZH.js +3 -3
- package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +3 -3
- package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
- package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
- package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
- package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
- package/www/dist/frontend/bundle/chunk-KY73TL6O.js +2 -2
- package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
- package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
- package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
- package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
- package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
- package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
- package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +3 -3
- package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
- package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
- package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +3 -3
- package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +3 -3
- package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
- package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
- package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +3 -3
- package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +3 -3
- package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
- package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
- package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
- package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +2 -2
- package/www/dist/frontend/bundle/chunk-WED7CGWA.js +2 -2
- package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
- package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
- package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
- package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
- package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
- package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +3 -3
- package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
- package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
- package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
- package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
- package/www/dist/frontend/bundle/runtime/controls.js +4 -4
- package/www/dist/frontend/bundle/runtime/init.js +2 -2
- package/www/dist/frontend/common/Common.globals.js +1 -1
- package/www/dist/frontend/common/IobrokerHandler.js +1 -1
- package/www/dist/frontend/common/Runtime.js +1 -1
- package/www/dist/frontend/config/CommandHandling.js +1 -1
- package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
- package/www/dist/frontend/config/DockHelper.js +1 -1
- package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
- package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +3 -3
- package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
- package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiAppShell.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiIconsView.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +3 -3
- package/www/dist/frontend/helper/DialogHelper.js +2 -2
- package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
- package/www/dist/frontend/helper/Helper.js +1 -1
- package/www/dist/frontend/helper/LayoutHelper.js +1 -1
- package/www/dist/frontend/helper/XmlHelper.js +1 -1
- package/www/dist/frontend/helper/ZipHelper.js +1 -1
- package/www/dist/frontend/runtime/AnimationService.js +1 -1
- package/www/dist/frontend/runtime/CustomControls.js +1 -1
- package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
- package/www/dist/frontend/runtime/HabPanelLikeMenu.js +3 -3
- package/www/dist/frontend/runtime/NavigationShell.js +1 -1
- package/www/dist/frontend/runtime/ScreenViewer.js +3 -3
- package/www/dist/frontend/runtime/TranslateableText.js +2 -2
- package/www/dist/frontend/runtime/VisibilityService.js +1 -1
- package/www/dist/frontend/runtime/controls.js +1 -1
- package/www/dist/frontend/runtime/init.js +1 -1
- package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
- package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
- package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
- package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
- package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
- package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
- package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
- package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
- package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
- package/www/dist/frontend/widgets/layout-components.js +1 -1
- package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
- package/www/dist/frontend/widgets/testElement.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const as=c;(function(S,U){const ar=c,X=S();while(!![]){try{const Y=-parseInt(ar(
|
|
1
|
+
const as=c;function c(b,d){b=b-0xd4;const e=a();let f=e[b];return f;}(function(S,U){const ar=c,X=S();while(!![]){try{const Y=-parseInt(ar(0x14e))/0x1*(-parseInt(ar(0x13a))/0x2)+parseInt(ar(0xd8))/0x3*(parseInt(ar(0xe5))/0x4)+-parseInt(ar(0x14b))/0x5*(-parseInt(ar(0x123))/0x6)+parseInt(ar(0x150))/0x7+-parseInt(ar(0x117))/0x8*(-parseInt(ar(0x129))/0x9)+parseInt(ar(0x105))/0xa*(parseInt(ar(0xec))/0xb)+-parseInt(ar(0x134))/0xc;if(Y===U)break;else X['push'](X['shift']());}catch(Z){X['push'](X['shift']());}}}(a,0xc39f0));import{a as e,b as h,c as i,d as j,e as l,f as n,g as o,h as p,i as q,j as r,q as t}from'./chunk-JSC66ZLQ.js';import{__decorate as v}from'tslib';import{BaseCustomWebComponentConstructorAppend as z,css as D,cssFromString as E,customElement as G,DomHelper as I,html as J,property as K}from'@gokturk413/base-custom-webcomponent';import{convertCssUnitToPixel as M}from'@gokturk413/web-component-designer/dist/elements/helper/CssUnitConverter.js';import{isFirefox as Q}from'@gokturk413/web-component-designer/dist/elements/helper/Browser.js';import{PropertiesHelper as R}from'@gokturk413/web-component-designer/dist/elements/services/propertiesService/services/PropertiesHelper.js';function a(){const aU=['iobrokerWebuiRootUrl','_resizeObserver','loadScreenData','catch','childElementCount','data-visibility-groups','transformOrigin','_applyEditorAnimationState','dispose','properties','uniform','10hcJiqq','connectedCallback','enabled','3271UNRkYg','splice','10088036aemHSg','screenName','_iobBindings','appShell','<div\x20style=\x22padding:20px;color:red;\x22>Error\x20loading\x20screen:\x20','_rootShadow','_loadScreen','_stretch','_root','📥\x20[ScreenViewer]\x20Getting\x20screen\x20object\x20for:','_stretchWidth','_loading','settings','offsetWidth','getElementById','parseHTMLUnsafe','sendTo','appendChild','querySelectorAll','9033gLsDfX','-changed','disconnectedCallback','getAttribute','_isEditorAnimationsPaused','prototype','html','stretchWidth','log','camelToDashCase','shadowRoot','template','globalStylesheet','152NBdHpy','_navRevealTimer','style','setHTMLUnsafe','layout','type','_restoreCachedInititalValues','22roNxFu','none','defineProperty','parseFromString','redirect','disable','YES','stretch','objectsChanged','read','opacity','🔄\x20[ScreenViewer]\x20Starting\x20to\x20load\x20screen:','text/html','useStyleFromScreenForViewer','_timeout','childNodes','runtime.html','opacity\x20.15s\x20ease','_screenName','styleIfFromScreen','dispatchEvent','iobroker-webui-screen-viewer','[ScreenViewer]\x20Group\x20visibility\x20check\x20error:','removeAllChildnodes','relativeSignalsPath','6973030rPhQZF','_useStyleFromScreenForViewer','waitForReady','head','bindingsHelper','disconnect','*,\x20::before,\x20::after\x20{\x20animation-play-state:\x20paused\x20!important;\x20transition:\x20none\x20!important;\x20}','hidden','includes','❌\x20[ScreenViewer]\x20Error\x20loading\x20screen\x20\x22','_stretchView','_screensChangedSubscription','innerHTML','push','error','_stretchHeight','</div>','[bind-prop\x5c:hidden]','8BrqxtI','namespace','parseCssBindings','observe','name','_onEditorAnimationsChanged','globalStyle','screen','race','scriptSystem','config','[data-visibility-groups]','2826102KGBTjL','hide','redirectScreen','_getDomElement','✅\x20[ScreenViewer]\x20Screen\x20loaded\x20successfully:','width','12806334XOTgPc','⛔\x20[Screen\x20Visibility]\x20Server\x20denied\x20access\x20to:','_scriptObject','split','default','removeBindings','message','querySelector','_editorPauseSheet','error\x20loading\x203d\x20viewer','location','59151420ckUCsZ','iobroker-webui-3dscreen-viewer','adoptedStyleSheets','warn','ready','removeEventListener','254RYRxNI','objects','userName','body','offsetHeight','_relativeSignalsPath'];a=function(){return aU;};return a();}var _;window['ensureGSAP']=e;var d=class extends z{static{_=this;}static ['style']=D`
|
|
2
2
|
:host {
|
|
3
3
|
height: 100%;
|
|
4
4
|
position: relative;
|
|
@@ -7,7 +7,7 @@ const as=c;(function(S,U){const ar=c,X=S();while(!![]){try{const Y=-parseInt(ar(
|
|
|
7
7
|
|
|
8
8
|
*[node-projects-hide-at-run-time] {
|
|
9
9
|
display: none !important;
|
|
10
|
-
}`;static [
|
|
10
|
+
}`;static [as(0xff)]=D`
|
|
11
11
|
:host {
|
|
12
12
|
background: transparent;
|
|
13
13
|
border: none;
|
|
@@ -18,4 +18,4 @@ const as=c;(function(S,U){const ar=c,X=S();while(!![]){try{const Y=-parseInt(ar(
|
|
|
18
18
|
|
|
19
19
|
*[node-projects-hide-at-run-time] {
|
|
20
20
|
display: none !important;
|
|
21
|
-
}`;static ['template']=J`<div id="root"></div>`;[as(0x166)];[as(0x19d)];['_refreshViewSubscription'];['_screensChangedSubscription'];[as(0x1a0)];['_resizeObserver'];[as(0x161)];[as(0x187)];#e=[];[as(0x15c)];get[as(0x146)](){const at=as;return this[at(0x15c)];}set[as(0x146)](S){const au=as;this[au(0x15c)]!=S&&(this[au(0x15c)]=S,this[au(0x15d)]());}[as(0x1c5)];get['stretchWidth'](){return this['_stretchWidth'];}set[as(0x176)](S){const av=as;this[av(0x1c5)]!=S&&(this[av(0x1c5)]=S,this['_loadScreen']());}[as(0x1c4)];get[as(0x17f)](){const aw=as;return this[aw(0x1c4)];}set[as(0x17f)](S){const ax=as;this['_stretchHeight']!=S&&(this[ax(0x1c4)]=S,this[ax(0x15d)]());}[as(0x196)];get[as(0x17a)](){const ay=as;return this[ay(0x196)];}set['relativeSignalsPath'](S){const az=as;this[az(0x196)]!=S&&(this['_relativeSignalsPath']=S);}[as(0x1a8)];get['screenName'](){const aA=as;return this[aA(0x1a8)];}set[as(0x1a9)](S){const aB=as;this[aB(0x1a8)]!=S&&(this['_screenName']=S,this[aB(0x15d)]());}async['setScreenNameAndLoad'](S){const aC=as;this[aC(0x1a8)]!=S&&(this['_screenName']=S,await this['_loadScreen']());}[as(0x17b)];['_useStyleFromScreenForViewer'];get['useStyleFromScreenForViewer'](){return this['_useStyleFromScreenForViewer'];}set['useStyleFromScreenForViewer'](S){const aD=as;this['_useStyleFromScreenForViewer']!=S&&(this[aD(0x148)]=S,this['_loadScreen']());}constructor(){const aE=as;super(),this[aE(0x161)]=super[aE(0x153)]('root'),this['_rootShadow']=this['_root'][aE(0x1c9)]({'mode':'open'}),this[aE(0x1a1)]();}['_getDomElement'](S){const aF=as;return this['_rootShadow'][aF(0x178)](S);}[as(0x192)](S){const aG=as;return this[aG(0x187)]['querySelectorAll'](S);}[as(0x188)](){const aH=as;this[aH(0x14a)](),this['_screenName']&&this[aH(0x15d)]();}[as(0x189)](){const aI=as;this['_iobBindings']&&this[aI(0x166)]['forEach'](S=>S()),this[aI(0x166)]=null,i(this[aI(0x187)]),l(this[aI(0x187)]);}async[as(0x15d)](){const aJ=as;if(console['log'](aJ(0x185),this['screenName']),this['screenName']&&!this[aJ(0x19d)]){this[aJ(0x19d)]=!0x0,console[aJ(0x1ae)]('🔄\x20[ScreenViewer]\x20Starting\x20to\x20load\x20screen:',this[aJ(0x1a9)]),await t[aJ(0x162)](),this['_loading']=!0x1,this['removeBindings']();try{console['log']('📥\x20[ScreenViewer]\x20Getting\x20screen\x20object\x20for:',this[aJ(0x1a9)]);let S=await t[aJ(0x1b6)](aJ(0x1aa),this['screenName']);console['log']('📥\x20[ScreenViewer]\x20Screen\x20object\x20received:',S?'YES':'NO'),I[aJ(0x17d)](this['_rootShadow']),S?(console[aJ(0x1ae)]('🚀\x20[ScreenViewer]\x20Loading\x20screen\x20data...'),await this['loadScreenData'](S[aJ(0x164)],S[aJ(0x154)],S[aJ(0x14b)],S[aJ(0x170)],S['properties']),console['log']('✅\x20[ScreenViewer]\x20Screen\x20loaded\x20successfully:',this[aJ(0x1a9)])):console[aJ(0x1cd)](aJ(0x175),this[aJ(0x1a9)]);}catch(U){console['error']('❌\x20[ScreenViewer]\x20Error\x20loading\x20screen\x20\x22'+this[aJ(0x1a9)]+'\x22:',U),this['_rootShadow'][aJ(0x1af)]=aJ(0x165)+U[aJ(0x15f)]+'</div>';}}}async[as(0x1c0)](U,X,Y,Z,a0){const aK=as;if(this['screenName'])try{let a6=t[aK(0x168)]||(await t['getCurrentUser']())?.[aK(0x14d)],a7=t['connection']['sendTo'](t['namespace'],aK(0x1ba),{'screenName':this['screenName'],'username':a6,'project':t['currentProject'],'mode':'read','type':'screen'}),a8=new Promise(aa=>setTimeout(()=>aa({'allowed':!0x0,'_timeout':!0x0}),0x1388)),a9=await Promise[aK(0x1c1)]([a7,a8]);if(!a9[aK(0x179)]){if(console[aK(0x1cd)](aK(0x15b),this[aK(0x1a9)]),(a9[aK(0x1bf)]||aK(0x1ce))==='redirect'&&a9[aK(0x19f)]){this['screenName']=a9['redirectScreen'],this['_loadScreen']();return;}this['_rootShadow']['innerHTML']=aK(0x155);return;}a9[aK(0x15a)]?console['warn'](aK(0x18e)):console[aK(0x1ae)]('✅\x20[Screen\x20Visibility]\x20Server\x20granted\x20access\x20to:',this[aK(0x1a9)]);}catch(aa){console[aK(0x1a6)](aK(0x18a),aa);}if(a0)for(let ab in a0){let ac=a0[ab];Object['defineProperty'](this,ab,{'get'(){return this['_'+ab];},'set'(ad){const aL=aK;this['_'+ab]!==ad&&(this['_'+ab]=ad,this[aL(0x172)](new CustomEvent(R['camelToDashCase'](ab)+aL(0x14c),{'detail':{'newValue':ad}})));},'enumerable':!0x0,'configurable':!0x0}),ac['default']&&(this['_'+ab]=ac['default']);}let a1=t[aK(0x149)]?.[aK(0x15e)]??'';this['_stretchView'](Z);let a2=null;if(X)try{let ad=await window[aK(0x171)][aK(0x152)][aK(0x1b5)](X,this,this['relativeSignalsPath'],this);a2=ad[0x0],this[aK(0x166)]=ad[0x1];}catch(ae){console['warn'](ae),a2=E(X);}else this['_iobBindings']=null;a1&&X?this['_rootShadow'][aK(0x1a5)]=[_[aK(0x154)],t['globalStylesheet'],a2]:a1?this['_rootShadow'][aK(0x1a5)]=[_[aK(0x154)],t['globalStylesheet']]:X?this[aK(0x187)]['adoptedStyleSheets']=[_[aK(0x154)],a2]:this[aK(0x187)][aK(0x1a5)]=[_['style']],this['_useStyleFromScreenForViewer']&&(this['shadowRoot']['adoptedStyleSheets']=[_['styleIfFromScreen'],...this[aK(0x187)][aK(0x1a5)]]),p(Z?.[aK(0x1b9)])||(U=q(U));let a3;if(Document['parseHTMLUnsafe']&&!Q)this[aK(0x187)]['setHTMLUnsafe'](U);else{a3=new DOMParser()[aK(0x1b2)](U,aK(0x194),{'includeShadowRoots':!0x0});let af=document[aK(0x17e)]();for(let ag of a3[aK(0x163)]['childNodes'])af['appendChild'](ag);for(let ah of a3['body']['childNodes'])af['appendChild'](ah);this[aK(0x187)][aK(0x193)](af);}try{this['_root']['style']['transition']=aK(0x156),this[aK(0x161)]['style'][aK(0x1a3)]='0',clearTimeout(this['_navRevealTimer']),this[aK(0x184)]=setTimeout(()=>{const aM=aK;try{this[aM(0x161)]['style']['opacity']='1';}catch{}},0x5dc);}catch{}try{o(this['_root'],Z?.[aK(0x1b9)]),p(Z?.[aK(0x1b9)])&&r(this[aK(0x187)],Z[aK(0x1b9)],this['_root']);}catch(ai){console[aK(0x1cd)]('layout\x20apply\x20failed',ai);}let a4=[...this['_rootShadow'][aK(0x19a)](aK(0x18d))];for(let aj of a4){let ak=aj['getAttribute']('data-visibility-groups')?.['split'](',')[aK(0x19b)](am=>am)||[],al=aj['getAttribute'](aK(0x1bb))||'hide';if(ak['length']>0x0)try{let am=await t[aK(0x160)]({'enabled':!0x0,'groups':ak,'action':al});al===aK(0x191)&&!am[aK(0x1c8)]?(aj['style']['pointerEvents']='none',aj[aK(0x154)]['opacity']='0.5'):al!==aK(0x191)&&!am['visible']&&aj[aK(0x183)]();}catch(an){console['error'](aK(0x1c6),an);}}for(let ao of this[aK(0x187)][aK(0x19a)]('[bind-prop\x5c:hidden]'))Object['defineProperty'](ao,'hidden',{'configurable':!0x0,'set'(ap){ao['style']['display']=ap?'none':'';},'get'(){return ao['style']['display']==='none';}});for(let ap of this['_rootShadow']['querySelectorAll'](aK(0x14e)))Object[aK(0x145)](ap,'disable',{'configurable':!0x0,'set'(aq){const aN=aK;ap[aN(0x154)]['pointerEvents']=aq?'none':'',ap['style']['opacity']=aq?aN(0x1cf):'';},'get'(){const aO=aK;return ap['style'][aO(0x1cc)]==='none';}});!customElements['get']('iobroker-webui-3dscreen-viewer')&&this['_rootShadow']['querySelector']('iobroker-webui-3dscreen-viewer')&&importShim(window[aK(0x190)]+'dist/frontend/config/IobrokerWebui3DScreenViewer.js')['catch'](aq=>console['warn']('error\x20loading\x203d\x20viewer',aq)),n(this['_rootShadow']);let a5=window[aK(0x171)]['bindingsHelper'][aK(0x16b)](this[aK(0x187)],this['relativeSignalsPath'],this);if(this[aK(0x166)]?this['_iobBindings']['push'](...a5):this[aK(0x166)]=a5,requestAnimationFrame(()=>requestAnimationFrame(()=>{const aP=aK;try{clearTimeout(this['_navRevealTimer']),this[aP(0x161)][aP(0x154)][aP(0x1a3)]='1';}catch{}})),this[aK(0x1a0)]=await window['appShell'][aK(0x16e)]['assignAllScripts'](aK(0x1b7)+this[aK(0x1a9)],Y,this[aK(0x187)],this,t),this[aK(0x1a0)]?.[aK(0x1b1)]&&!this[aK(0x1a0)]?.[aK(0x18f)]&&(this['_scriptObject']=this['_scriptObject']['default']),this[aK(0x1a0)]?.[aK(0x18f)])try{this[aK(0x1a0)][aK(0x18f)](this,this[aK(0x187)]);}catch(aq){console[aK(0x1a6)]('connectedCallback\x20error\x20for\x20\x22'+this['screenName']+'\x22:',aq);}this['_isEditorAnimationsPaused']()||(h(this['_rootShadow'])[aK(0x1a7)](()=>{}),j(this[aK(0x187)])[aK(0x1a7)](()=>{})),this[aK(0x1b8)](),requestAnimationFrame(()=>requestAnimationFrame(()=>{const aQ=aK;try{clearTimeout(this['_navRevealTimer']),this[aQ(0x161)]['style']['opacity']='1';}catch{}}));}[as(0x14f)](U){const aR=as;let X=this[aR(0x146)]??U?.[aR(0x146)];if(!X||X===aR(0x17c))return;let Y=this[aR(0x1c5)]??M(U['width'],this,'width'),Z=this['_stretchHeight']??M(U[aR(0x181)],this,'height');this[aR(0x161)][aR(0x154)]['width']=Y+'px',this[aR(0x161)]['style']['height']=Z+'px';let a0=this['offsetWidth']/Y,a1=this['offsetHeight']/Z,a2=0x0,a3=0x0;X==aR(0x18c)?a0>a1?(a0=a1,a2=(this[aR(0x197)]-Y*a0)/0x2):(a1=a0,a3=(this[aR(0x16d)]-Z*a1)/0x2):X==aR(0x1bc)&&(a0>a1?(a1=a0,a3=(this['offsetHeight']-Z*a1)/0x2):(a0=a1,a2=(this['offsetWidth']-Y*a0)/0x2)),this['_root']['style']['transformOrigin']=aR(0x1b4),this['_root']['style']['scale']=a0+'\x20'+a1,this['_root'][aR(0x154)][aR(0x1ca)]=a2+'px\x20'+a3+'px',this[aR(0x1a2)]||(this['_resizeObserver']=new ResizeObserver(()=>{const aS=aR;this[aS(0x14f)](U);}),this['_resizeObserver']['observe'](this));}[as(0x177)](){return this['_relativeSignalsPath'];}['_isEditorAnimationsPaused'](){const aT=as;return!window[aT(0x1c3)][aT(0x16f)][aT(0x151)](aT(0x1a4))&&window['appShell']?.['_editorAnimationsEnabled']===!0x0;}[as(0x158)]=null;[as(0x1b8)](){const aU=as;if(window['location']['href']['includes']('runtime.html'))return;window['appShell']?.[aU(0x1ad)]===!0x0?(i(this['_rootShadow']),l(this['_rootShadow']),this[aU(0x158)]||(this['_editorPauseSheet']=new CSSStyleSheet(),this[aU(0x158)][aU(0x1ab)]('*,\x20::before,\x20::after\x20{\x20animation-play-state:\x20paused\x20!important;\x20transition:\x20none\x20!important;\x20}')),this[aU(0x187)]['adoptedStyleSheets'][aU(0x151)](this[aU(0x158)])||(this['_rootShadow']['adoptedStyleSheets']=[...this[aU(0x187)][aU(0x1a5)],this['_editorPauseSheet']])):(this['_editorPauseSheet']&&(this['_rootShadow'][aU(0x1a5)]=this['_rootShadow']['adoptedStyleSheets']['filter'](S=>S!==this[aU(0x158)])),this['_rootShadow'][aU(0x1bd)]>0x0&&(h(this['_rootShadow'])[aU(0x1a7)](()=>{}),j(this['_rootShadow'])[aU(0x1a7)](()=>{})));}['_onEditorAnimationsChanged']=S=>this['_applyEditorAnimationState']();['connectedCallback'](){const aV=as;window['addEventListener']('webui-editor-animations-changed',this[aV(0x1b3)]),this[aV(0x19e)]=t[aV(0x1ac)]['on'](()=>this[aV(0x15d)]()),this[aV(0x167)]=t[aV(0x1c7)]['on'](U=>{const aW=aV;this[aW(0x1a8)]&&U[aW(0x1be)]==aW(0x1aa)&&U['name']===this['_screenName']&&this[aW(0x15d)]();});let S=this[aV(0x1a0)];S?.[aV(0x1b1)]&&!S?.[aV(0x18f)]&&(S=S[aV(0x1b1)]),S?.[aV(0x18f)]&&S['connectedCallback'](this,this[aV(0x187)]);for(let U of this.#e)this[aV(0x169)](U[0x0],U[0x1]);this[aV(0x1a2)]&&this['_resizeObserver'][aV(0x16c)](this);}['disconnectedCallback'](){const aX=as;window['removeEventListener'](aX(0x16a),this[aX(0x1b3)]);for(let S of this.#e)this['removeEventListener'](S[0x0],S[0x1]);this['_refreshViewSubscription']?.['dispose'](),this['_screensChangedSubscription']?.[aX(0x150)](),this[aX(0x1a0)]?.['disconnectedCallback']?.(this,this['_rootShadow']),this['_resizeObserver']&&this['_resizeObserver']['disconnect']();}['_assignEvent'](S,U){let X=[S,U];return this.#e['push'](X),this['addEventListener'](S,U),{'remove':()=>{const aY=c;let Y=this.#e[aY(0x195)](X);this.#e[aY(0x19c)](Y,0x1),this['removeEventListener'](S,U);}};}};v([K()],d['prototype'],as(0x146),null),v([K()],d[as(0x18b)],as(0x176),null),v([K()],d['prototype'],'stretchHeight',null),v([K()],d[as(0x18b)],'relativeSignalsPath',null),v([K()],d['prototype'],'screenName',null),v([K(Boolean)],d['prototype'],'useStyleFromScreenForViewer',null),d=_=v([G(as(0x1cb))],d),window[as(0x180)]=d;export{d as a};
|
|
21
|
+
}`;static [as(0xe3)]=J`<div id="root"></div>`;[as(0x152)];['_loading'];['_refreshViewSubscription'];[as(0x110)];[as(0x12b)];[as(0x141)];['_root'];['_rootShadow'];#e=[];['_stretch'];get['stretch'](){return this['_stretch'];}set[as(0xf3)](S){const at=as;this[at(0x157)]!=S&&(this[at(0x157)]=S,this[at(0x156)]());}['_stretchWidth'];get['stretchWidth'](){return this['_stretchWidth'];}set[as(0xdf)](S){const au=as;this['_stretchWidth']!=S&&(this[au(0x15a)]=S,this[au(0x156)]());}[as(0x114)];get['stretchHeight'](){return this['_stretchHeight'];}set['stretchHeight'](S){const av=as;this[av(0x114)]!=S&&(this['_stretchHeight']=S,this['_loadScreen']());}['_relativeSignalsPath'];get[as(0x104)](){return this['_relativeSignalsPath'];}set['relativeSignalsPath'](S){const aw=as;this[aw(0x13f)]!=S&&(this['_relativeSignalsPath']=S);}[as(0xfe)];get[as(0x151)](){return this['_screenName'];}set['screenName'](S){this['_screenName']!=S&&(this['_screenName']=S,this['_loadScreen']());}async['setScreenNameAndLoad'](S){this['_screenName']!=S&&(this['_screenName']=S,await this['_loadScreen']());}[as(0x13b)];['_useStyleFromScreenForViewer'];get['useStyleFromScreenForViewer'](){return this['_useStyleFromScreenForViewer'];}set[as(0xf9)](S){const ax=as;this[ax(0x106)]!=S&&(this['_useStyleFromScreenForViewer']=S,this['_loadScreen']());}constructor(){const ay=as;super(),this[ay(0x158)]=super[ay(0x126)]('root'),this[ay(0x155)]=this[ay(0x158)]['attachShadow']({'mode':'open'}),this[ay(0xeb)]();}[as(0x126)](S){const az=as;return this[az(0x155)][az(0x15e)](S);}['_getDomElements'](S){const aA=as;return this[aA(0x155)][aA(0xd7)](S);}[as(0x138)](){this['_parseAttributesToProperties'](),this['_screenName']&&this['_loadScreen']();}[as(0x12e)](){const aB=as;this['_iobBindings']&&this[aB(0x152)]['forEach'](S=>S()),this[aB(0x152)]=null,i(this[aB(0x155)]),l(this['_rootShadow']);}async['_loadScreen'](){const aC=as;if(console['log']('🔄\x20[ScreenViewer]\x20_loadScreen\x20called\x20for:',this['screenName']),this[aC(0x151)]&&!this[aC(0x15b)]){this['_loading']=!0x0,console[aC(0xe0)](aC(0xf7),this[aC(0x151)]),await t[aC(0x107)](),this[aC(0x15b)]=!0x1,this['removeBindings']();try{console['log'](aC(0x159),this['screenName']);let S=await t['getWebuiObject']('screen',this[aC(0x151)]);console['log']('📥\x20[ScreenViewer]\x20Screen\x20object\x20received:',S?aC(0xf2):'NO'),I[aC(0x103)](this[aC(0x155)]),S?(console[aC(0xe0)]('🚀\x20[ScreenViewer]\x20Loading\x20screen\x20data...'),await this['loadScreenData'](S[aC(0xde)],S['style'],S['script'],S[aC(0x15c)],S[aC(0x149)]),console[aC(0xe0)](aC(0x127),this['screenName'])):console[aC(0x137)]('⚠️\x20[ScreenViewer]\x20Screen\x20object\x20is\x20null\x20for:',this['screenName']);}catch(U){console[aC(0x113)](aC(0x10e)+this['screenName']+'\x22:',U),this['_rootShadow'][aC(0x111)]=aC(0x154)+U[aC(0x12f)]+aC(0x115);}}}async[as(0x142)](U,X,Y,Z,a0){const aD=as;if(this[aD(0x151)])try{let a6=t[aD(0x13c)]||(await t['getCurrentUser']())?.[aD(0x11b)],a7=t['connection'][aD(0xd5)](t[aD(0x118)],'checkScreenAccess',{'screenName':this[aD(0x151)],'username':a6,'project':t['currentProject'],'mode':aD(0xf5),'type':aD(0x11e)}),a8=new Promise(aa=>setTimeout(()=>aa({'allowed':!0x0,'_timeout':!0x0}),0x1388)),a9=await Promise[aD(0x11f)]([a7,a8]);if(!a9['allowed']){if(console[aD(0x137)](aD(0x12a),this['screenName']),(a9['action']||'hide')===aD(0xf0)&&a9['redirectScreen']){this['screenName']=a9[aD(0x125)],this['_loadScreen']();return;}this[aD(0x155)][aD(0x111)]='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;align-items:center;justify-content:center;height:100%;font-family:sans-serif;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:center;padding:40px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:48px;margin-bottom:20px;\x22>🔒</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h2\x20style=\x22margin:0\x200\x2010px\x200;color:#666;\x22>Access\x20Denied</h2>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x22color:#999;\x22>You\x20don\x27t\x20have\x20permission\x20to\x20view\x20this\x20screen.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';return;}a9[aD(0xfa)]?console[aD(0x137)]('[Screen\x20Visibility]\x20Backend\x20timeout\x20—\x20fail-open'):console['log']('✅\x20[Screen\x20Visibility]\x20Server\x20granted\x20access\x20to:',this['screenName']);}catch(aa){console['error']('❌\x20[Screen\x20Visibility]\x20Server\x20check\x20failed:',aa);}if(a0)for(let ab in a0){let ac=a0[ab];Object['defineProperty'](this,ab,{'get'(){return this['_'+ab];},'set'(ad){const aE=aD;this['_'+ab]!==ad&&(this['_'+ab]=ad,this[aE(0x100)](new CustomEvent(R[aE(0xe1)](ab)+aE(0xd9),{'detail':{'newValue':ad}})));},'enumerable':!0x0,'configurable':!0x0}),ac['default']&&(this['_'+ab]=ac['default']);}let a1=t[aD(0x121)]?.[aD(0x11d)]??'';this['_stretchView'](Z);let a2=null;if(X)try{let ad=await window[aD(0x153)]['bindingsHelper'][aD(0x119)](X,this,this[aD(0x104)],this);a2=ad[0x0],this[aD(0x152)]=ad[0x1];}catch(ae){console['warn'](ae),a2=E(X);}else this[aD(0x152)]=null;a1&&X?this[aD(0x155)][aD(0x136)]=[_[aD(0xe7)],t[aD(0xe4)],a2]:a1?this['_rootShadow']['adoptedStyleSheets']=[_[aD(0xe7)],t['globalStylesheet']]:X?this[aD(0x155)]['adoptedStyleSheets']=[_['style'],a2]:this['_rootShadow']['adoptedStyleSheets']=[_[aD(0xe7)]],this[aD(0x106)]&&(this[aD(0xe2)]['adoptedStyleSheets']=[_['styleIfFromScreen'],...this[aD(0x155)]['adoptedStyleSheets']]),p(Z?.['layout'])||(U=q(U));let a3;if(Document[aD(0xd4)]&&!Q)this[aD(0x155)][aD(0xe8)](U);else{a3=new DOMParser()[aD(0xef)](U,aD(0xf8),{'includeShadowRoots':!0x0});let af=document['createDocumentFragment']();for(let ag of a3[aD(0x108)]['childNodes'])af['appendChild'](ag);for(let ah of a3[aD(0x13d)][aD(0xfb)])af['appendChild'](ah);this[aD(0x155)][aD(0xd6)](af);}try{this['_root']['style']['transition']=aD(0xfd),this['_root']['style']['opacity']='0',clearTimeout(this[aD(0xe6)]),this['_navRevealTimer']=setTimeout(()=>{const aF=aD;try{this['_root']['style'][aF(0xf6)]='1';}catch{}},0x5dc);}catch{}try{o(this['_root'],Z?.[aD(0xe9)]),p(Z?.['layout'])&&r(this['_rootShadow'],Z[aD(0xe9)],this[aD(0x158)]);}catch(ai){console['warn']('layout\x20apply\x20failed',ai);}let a4=[...this['_rootShadow'][aD(0xd7)](aD(0x122))];for(let aj of a4){let ak=aj['getAttribute'](aD(0x145))?.[aD(0x12c)](',')['filter'](am=>am)||[],al=aj[aD(0xdb)]('data-visibility-action')||aD(0x124);if(ak['length']>0x0)try{let am=await t['checkVisibility']({'enabled':!0x0,'groups':ak,'action':al});al===aD(0xf1)&&!am[aD(0x14d)]?(aj[aD(0xe7)]['pointerEvents']='none',aj[aD(0xe7)][aD(0xf6)]='0.5'):al!==aD(0xf1)&&!am['visible']&&aj['remove']();}catch(an){console['error'](aD(0x102),an);}}for(let ao of this['_rootShadow'][aD(0xd7)](aD(0x116)))Object[aD(0xee)](ao,aD(0x10c),{'configurable':!0x0,'set'(ap){const aG=aD;ao[aG(0xe7)]['display']=ap?aG(0xed):'';},'get'(){const aH=aD;return ao['style']['display']===aH(0xed);}});for(let ap of this[aD(0x155)][aD(0xd7)]('[bind-prop\x5c:disable]'))Object[aD(0xee)](ap,'disable',{'configurable':!0x0,'set'(aq){const aI=aD;ap[aI(0xe7)]['pointerEvents']=aq?aI(0xed):'',ap[aI(0xe7)]['opacity']=aq?'0.5':'';},'get'(){const aJ=aD;return ap[aJ(0xe7)]['pointerEvents']==='none';}});!customElements['get'](aD(0x135))&&this[aD(0x155)][aD(0x130)](aD(0x135))&&importShim(window[aD(0x140)]+'dist/frontend/config/IobrokerWebui3DScreenViewer.js')[aD(0x143)](aq=>console[aD(0x137)](aD(0x132),aq)),n(this[aD(0x155)]);let a5=window[aD(0x153)][aD(0x109)]['applyAllBindings'](this[aD(0x155)],this[aD(0x104)],this);if(this['_iobBindings']?this[aD(0x152)][aD(0x112)](...a5):this[aD(0x152)]=a5,requestAnimationFrame(()=>requestAnimationFrame(()=>{const aK=aD;try{clearTimeout(this[aK(0xe6)]),this[aK(0x158)]['style']['opacity']='1';}catch{}})),this['_scriptObject']=await window[aD(0x153)][aD(0x120)]['assignAllScripts']('screenviewer\x20-\x20'+this[aD(0x151)],Y,this['_rootShadow'],this,t),this[aD(0x12b)]?.[aD(0x12d)]&&!this['_scriptObject']?.['connectedCallback']&&(this['_scriptObject']=this[aD(0x12b)][aD(0x12d)]),this['_scriptObject']?.['connectedCallback'])try{this['_scriptObject']['connectedCallback'](this,this['_rootShadow']);}catch(aq){console[aD(0x113)]('connectedCallback\x20error\x20for\x20\x22'+this[aD(0x151)]+'\x22:',aq);}this[aD(0xdc)]()||(h(this['_rootShadow'])[aD(0x143)](()=>{}),j(this[aD(0x155)])['catch'](()=>{})),this[aD(0x147)](),requestAnimationFrame(()=>requestAnimationFrame(()=>{const aL=aD;try{clearTimeout(this['_navRevealTimer']),this['_root']['style'][aL(0xf6)]='1';}catch{}}));}[as(0x10f)](U){const aM=as;let X=this[aM(0xf3)]??U?.['stretch'];if(!X||X===aM(0xed))return;let Y=this[aM(0x15a)]??M(U[aM(0x128)],this,'width'),Z=this[aM(0x114)]??M(U['height'],this,'height');this[aM(0x158)][aM(0xe7)][aM(0x128)]=Y+'px',this[aM(0x158)]['style']['height']=Z+'px';let a0=this['offsetWidth']/Y,a1=this[aM(0x13e)]/Z,a2=0x0,a3=0x0;X==aM(0x14a)?a0>a1?(a0=a1,a2=(this['offsetWidth']-Y*a0)/0x2):(a1=a0,a3=(this[aM(0x13e)]-Z*a1)/0x2):X=='uniformToFill'&&(a0>a1?(a1=a0,a3=(this[aM(0x13e)]-Z*a1)/0x2):(a0=a1,a2=(this[aM(0x15d)]-Y*a0)/0x2)),this['_root']['style'][aM(0x146)]='0\x200',this[aM(0x158)][aM(0xe7)]['scale']=a0+'\x20'+a1,this[aM(0x158)][aM(0xe7)]['translate']=a2+'px\x20'+a3+'px',this[aM(0x141)]||(this[aM(0x141)]=new ResizeObserver(()=>{this['_stretchView'](U);}),this['_resizeObserver'][aM(0x11a)](this));}['_getRelativeSignalsPath'](){return this['_relativeSignalsPath'];}['_isEditorAnimationsPaused'](){const aN=as;return!window[aN(0x133)]['href'][aN(0x10d)](aN(0xfc))&&window[aN(0x153)]?.['_editorAnimationsEnabled']===!0x0;}[as(0x131)]=null;[as(0x147)](){const aO=as;if(window['location']['href'][aO(0x10d)](aO(0xfc)))return;window[aO(0x153)]?.['_editorAnimationsEnabled']===!0x0?(i(this['_rootShadow']),l(this['_rootShadow']),this['_editorPauseSheet']||(this[aO(0x131)]=new CSSStyleSheet(),this['_editorPauseSheet']['replaceSync'](aO(0x10b))),this[aO(0x155)][aO(0x136)][aO(0x10d)](this['_editorPauseSheet'])||(this['_rootShadow']['adoptedStyleSheets']=[...this[aO(0x155)][aO(0x136)],this['_editorPauseSheet']])):(this['_editorPauseSheet']&&(this[aO(0x155)][aO(0x136)]=this[aO(0x155)]['adoptedStyleSheets']['filter'](S=>S!==this[aO(0x131)])),this[aO(0x155)][aO(0x144)]>0x0&&(h(this[aO(0x155)])[aO(0x143)](()=>{}),j(this['_rootShadow'])['catch'](()=>{})));}[as(0x11c)]=S=>this['_applyEditorAnimationState']();[as(0x14c)](){const aP=as;window['addEventListener']('webui-editor-animations-changed',this[aP(0x11c)]),this['_refreshViewSubscription']=t['refreshView']['on'](()=>this[aP(0x156)]()),this[aP(0x110)]=t[aP(0xf4)]['on'](U=>{const aQ=aP;this[aQ(0xfe)]&&U[aQ(0xea)]=='screen'&&U['name']===this[aQ(0xfe)]&&this[aQ(0x156)]();});let S=this[aP(0x12b)];S?.['default']&&!S?.[aP(0x14c)]&&(S=S[aP(0x12d)]),S?.[aP(0x14c)]&&S['connectedCallback'](this,this[aP(0x155)]);for(let U of this.#e)this['addEventListener'](U[0x0],U[0x1]);this[aP(0x141)]&&this['_resizeObserver']['observe'](this);}[as(0xda)](){const aR=as;window[aR(0x139)]('webui-editor-animations-changed',this[aR(0x11c)]);for(let S of this.#e)this[aR(0x139)](S[0x0],S[0x1]);this['_refreshViewSubscription']?.['dispose'](),this['_screensChangedSubscription']?.[aR(0x148)](),this['_scriptObject']?.[aR(0xda)]?.(this,this['_rootShadow']),this['_resizeObserver']&&this['_resizeObserver'][aR(0x10a)]();}['_assignEvent'](S,U){const aS=as;let X=[S,U];return this.#e[aS(0x112)](X),this['addEventListener'](S,U),{'remove':()=>{const aT=aS;let Y=this.#e['indexOf'](X);this.#e[aT(0x14f)](Y,0x1),this['removeEventListener'](S,U);}};}};v([K()],d['prototype'],as(0xf3),null),v([K()],d[as(0xdd)],'stretchWidth',null),v([K()],d['prototype'],'stretchHeight',null),v([K()],d['prototype'],'relativeSignalsPath',null),v([K()],d['prototype'],'screenName',null),v([K(Boolean)],d[as(0xdd)],as(0xf9),null),d=_=v([G(as(0x101))],d),window['ScreenViewer']=d;export{d as a};
|