@camera.ui/server 0.0.13-alpha.8 → 0.0.13-alpha.9
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/dist/interface/assets/{@mdi-DdmeckA1.js → @mdi-jq8isxax.js} +1 -1
- package/dist/interface/assets/{Account-ZiKqQHX6.js → Account-BfQIYSY9.js} +1 -1
- package/dist/interface/assets/{Adminpanel-Cg18OqW-.js → Adminpanel-D-IRPo9j.js} +1 -1
- package/dist/interface/assets/{Appearance-C7Ndxx_B.js → Appearance-B6KmagNC.js} +1 -1
- package/dist/interface/assets/{Backup-Bv_3SH2Z.js → Backup-DAQ5i5CX.js} +1 -1
- package/dist/interface/assets/{Camera-DK9kXD1O.js → Camera-Bi6_ARja.js} +1 -1
- package/dist/interface/assets/{Cameras-gnINcipz.js → Cameras-Bnyqxi_V.js} +1 -1
- package/dist/interface/assets/{Camview-ChB4TxwO.js → Camview-ChqbnO3e.js} +1 -1
- package/dist/interface/assets/{Config-CoCKV5Be.js → Config-BjrMRwfT.js} +1 -1
- package/dist/interface/assets/{Console-pBrl68Lm.js → Console-DvDVSn1k.js} +1 -1
- package/dist/interface/assets/{FirstSteps-BpRbkRcl.js → FirstSteps-Dxd9rz8L.js} +1 -1
- package/dist/interface/assets/{NewCamera-Zu8RFyo6.js → NewCamera-Cok5A6i_.js} +18 -18
- package/dist/interface/assets/NewCamera-DJ3tUBT_.css +1 -0
- package/dist/interface/assets/{Plugin-5bCp3WWh.js → Plugin-BDQynqPw.js} +1 -1
- package/dist/interface/assets/{Plugins-CRX_4x4v.js → Plugins-BmMHP2A8.js} +1 -1
- package/dist/interface/assets/{Recordings-DcdGNthn.js → Recordings-DXXeJXrx.js} +1 -1
- package/dist/interface/assets/{Recordings-CRkD0oFF.js → Recordings-ZTql-w8N.js} +1 -1
- package/dist/interface/assets/{Settings-DFvCIOU_.js → Settings-B9yGAOhD.js} +1 -1
- package/dist/interface/assets/System-1z5qZSaJ.js +4 -0
- package/dist/interface/assets/{User-CqO0vCkm.js → User-8xO4LUlf.js} +1 -1
- package/dist/interface/assets/{VConfigEditor.vue_vue_type_script_setup_true_lang-DoYWC5QN.js → VConfigEditor.vue_vue_type_script_setup_true_lang-DDxLGgGL.js} +1 -1
- package/dist/interface/assets/{VConsole-B5SAtszq.js → VConsole-D85lNxwk.js} +1 -1
- package/dist/interface/assets/VPlayer-B53-f3Ad.js +1 -0
- package/dist/interface/assets/{VPlayer-4vWU8KqJ.css → VPlayer-H4sGdlHU.css} +1 -1
- package/dist/interface/assets/VPluginCard--4QV9IM6.css +1 -0
- package/dist/interface/assets/VPluginCard-Cl6Zw1Dg.js +4 -0
- package/dist/interface/assets/main-C2N2tbw_.js +9 -0
- package/dist/interface/assets/main-CKofdZVi.css +1 -0
- package/dist/interface/assets/{plugins-Cij0rj3_.js → plugins-Cs7BJHj-.js} +1 -1
- package/dist/interface/assets/{system--ZtvyuQf.js → system-C1OmXhti.js} +1 -1
- package/dist/interface/index.html +3 -3
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +2 -2
- package/dist/server/src/api/schemas/cameras.schema.d.ts +5 -4
- package/dist/server/src/api/schemas/cameras.schema.js +44 -2
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
- package/dist/server/src/camera/streaming/peer-connection.js +1 -0
- package/dist/server/src/camera/streaming/peer-connection.js.map +1 -1
- package/package.json +2 -2
- package/dist/interface/assets/NewCamera-C7naTyF1.css +0 -1
- package/dist/interface/assets/System-DM54C-lb.js +0 -4
- package/dist/interface/assets/VPlayer-DxUydCDj.js +0 -1
- package/dist/interface/assets/VPluginCard-CgebF8Ml.js +0 -4
- package/dist/interface/assets/VPluginCard-DsbuLNH9.css +0 -1
- package/dist/interface/assets/main-CXQ__khI.css +0 -1
- package/dist/interface/assets/main-GKvN044v.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
var H="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M16.5,16.25C16.5,14.75 13.5,14 12,14C10.5,14 7.5,14.75 7.5,16.25V17H16.5M12,12.25A2.25,2.25 0 0,0 14.25,10A2.25,2.25 0 0,0 12,7.75A2.25,2.25 0 0,0 9.75,10A2.25,2.25 0 0,0 12,12.25Z",V="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",L="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.09 20.21,11.09 20.42,11.3L21.7,12.58C21.91,12.79 21.91,13.14 21.7,13.35M12,18.94L18.06,12.88L20.11,14.93L14.06,21H12V18.94M12,14C7.58,14 4,15.79 4,18V20H10V18.11L14,14.11C13.34,14.03 12.67,14 12,14M12,4A4,4 0 0,0 8,8A4,4 0 0,0 12,12A4,4 0 0,0 16,8A4,4 0 0,0 12,4Z",C="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",M="M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z",a="M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",A="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z",i="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",r="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",s="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",d="M20,4H16.83L15,2H9L7.17,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6A2,2 0 0,0 20,4M20,18H4V6H8.05L9.88,4H14.12L15.95,6H20V18M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15Z",e="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",m="M21 15V18H24V20H21V23H19V20H16V18H19V15H21M14 18H3V6H19V13H21V6C21 4.89 20.11 4 19 4H3C1.9 4 1 4.89 1 6V18C1 19.11 1.9 20 3 20H14V18Z",v="M14.5 12C14.5 10.62 13.38 9.5 12 9.5C10.62 9.5 9.5 10.62 9.5 12C9.5 13 10.09 13.84 10.93 14.25L9.82 15.35C8.73 14.64 8 13.41 8 12C8 9.79 9.79 8 12 8C14.21 8 16 9.79 16 12C16 13.41 15.27 14.64 14.18 15.35L13.08 14.25C13.92 13.84 14.5 13 14.5 12M12 2C6.5 2 2 6.5 2 12C2 15.06 3.38 17.8 5.54 19.63L6.61 18.57C4.71 17 3.5 14.64 3.5 12C3.5 7.31 7.31 3.5 12 3.5C16.69 3.5 20.5 7.31 20.5 12C20.5 14.64 19.29 17 17.39 18.57L18.46 19.63C20.62 17.79 22 15.06 22 12C22 6.5 17.5 2 12 2M19 12C19 8.13 15.87 5 12 5C8.13 5 5 8.13 5 12C5 14.23 6.05 16.22 7.68 17.5L8.75 16.43C7.39 15.42 6.5 13.82 6.5 12C6.5 8.97 8.97 6.5 12 6.5C15.03 6.5 17.5 8.97 17.5 12C17.5 13.82 16.61 15.42 15.25 16.43L16.33 17.5C17.95 16.22 19 14.23 19 12M6 22H18L12 16L6 22Z",Z="M6.03 12.03L8.03 15.5L5.5 18.68L2 12.62L6.03 12.03M17 18V15.29C17.88 14.9 18.5 14.03 18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L8.31 9C7.36 9.53 7.03 10.75 7.58 11.71L9.08 14.31C9.63 15.26 10.86 15.59 11.81 15.04L13.69 13.96C13.94 14.55 14.41 15.03 15 15.29V18C15 19.1 15.9 20 17 20H22V18H17Z",o="M20.84 22.73L18.11 20H17C15.9 20 15 19.1 15 18V16.89L12.66 14.55L11.81 15.04C10.86 15.59 9.63 15.26 9.08 14.31L7.58 11.71C7.18 11 7.25 10.18 7.68 9.57L1.11 3L2.39 1.73L22.11 21.46L20.84 22.73M18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L10.77 7.57L17.86 14.66C18.26 14.22 18.5 13.64 18.5 13M2 12.62L5.5 18.68L8.03 15.5L6.03 12.03L2 12.62Z",t="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",n="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",l="M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V5H19V19M17,17H7V7H17V17Z",c="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",u="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",S="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",h="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",f="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z",g="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",O="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",p="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z",P="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",R="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",k="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",w="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",y="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",B="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",D="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",U="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",E="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",I="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",T="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",x="M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14M11.5,3C14.15,3 16.55,4 18.4,5.6L21,3V10H14L16.62,7.38C15.23,6.22 13.46,5.5 11.5,5.5C7.96,5.5 4.95,7.81 3.9,11L1.53,10.22C2.92,6.03 6.85,3 11.5,3Z",z="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",b="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",F="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",G="M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z",W="M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6",N="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",j="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",q="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",Q="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",J="M14.08,15.59L16.67,13H7V11H16.67L14.08,8.41L15.5,7L20.5,12L15.5,17L14.08,15.59M19,3A2,2 0 0,1 21,5V9.67L19,7.67V5H5V19H19V16.33L21,14.33V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19Z",K="M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",X="M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",Y="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",_="M19,11C19,12.19 18.66,13.3 18.1,14.28L16.87,13.05C17.14,12.43 17.3,11.74 17.3,11H19M15,11.16L9,5.18V5A3,3 0 0,1 12,2A3,3 0 0,1 15,5V11L15,11.16M4.27,3L21,19.73L19.73,21L15.54,16.81C14.77,17.27 13.91,17.58 13,17.72V21H11V17.72C7.72,17.23 5,14.41 5,11H6.7C6.7,14 9.24,16.1 12,16.1C12.81,16.1 13.6,15.91 14.31,15.58L12.65,13.92L12,14A3,3 0 0,1 9,11V10.28L3,4.27L4.27,3Z",$="M19,13H5V11H19V13Z",H1="M21,16V4H3V16H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14V20H16V22H8V20H10V18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M5,6H14V11H5V6M15,6H19V8H15V6M19,9V14H15V9H19M5,12H9V14H5V12M10,12H14V14H10V12Z",V1="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",L1="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",C1="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",M1="M14,19H18V5H14M6,19H10V5H6V19Z",a1="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",A1="M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z",i1="M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z",r1="M8,5.14V19.14L19,12.14L8,5.14Z",s1="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",d1="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",e1="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",m1="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",v1="M20.5,11H19V7C19,5.89 18.1,5 17,5H13V3.5A2.5,2.5 0 0,0 10.5,1A2.5,2.5 0 0,0 8,3.5V5H4A2,2 0 0,0 2,7V10.8H3.5C5,10.8 6.2,12 6.2,13.5C6.2,15 5,16.2 3.5,16.2H2V20A2,2 0 0,0 4,22H7.8V20.5C7.8,19 9,17.8 10.5,17.8C12,17.8 13.2,19 13.2,20.5V22H17A2,2 0 0,0 19,20V16H20.5A2.5,2.5 0 0,0 23,13.5A2.5,2.5 0 0,0 20.5,11Z",Z1="M4,6V19H20V6H4Z",o1="M4,6V19H20V6H4M18,17H6V8H18V17Z",t1="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",n1="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",l1="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",c1="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z",u1="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9",S1="M20 2H4C2.9 2 2 2.9 2 4V16C2 17.11 2.9 18 4 18H8L12 22L16 18H20C21.11 18 22 17.11 22 16V4C22 2.9 21.11 2 20 2M10.46 14L6.96 10.5L8.37 9.08L10.46 11.17L15.64 6L17.05 7.41L10.46 14Z",h1="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M11,6V9H8V11H11V14H13V11H16V9H13V6H11Z",f1="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",g1="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",O1="M8 13C6.14 13 4.59 14.28 4.14 16H2V18H4.14C4.59 19.72 6.14 21 8 21S11.41 19.72 11.86 18H22V16H11.86C11.41 14.28 9.86 13 8 13M8 19C6.9 19 6 18.1 6 17C6 15.9 6.9 15 8 15S10 15.9 10 17C10 18.1 9.1 19 8 19M19.86 6C19.41 4.28 17.86 3 16 3S12.59 4.28 12.14 6H2V8H12.14C12.59 9.72 14.14 11 16 11S19.41 9.72 19.86 8H22V6H19.86M16 9C14.9 9 14 8.1 14 7C14 5.9 14.9 5 16 5S18 5.9 18 7C18 8.1 17.1 9 16 9Z",p1="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",P1="M5.41,7.41L10,12L5.41,16.59L4,15.17L7.17,12L4,8.83L5.41,7.41M18.59,16.59L14,12L18.59,7.42L20,8.83L16.83,12L20,15.17L18.59,16.59Z",R1="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",k1="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",w1="M3.14,1A2.14,2.14 0 0,0 1,3.14V5H3V3H5V1H3.14M7,1V3H10V1H7M12,1V3H14V5H16V3.14C16,1.96 15.04,1 13.86,1H12M1,7V10H3V7H1M9,7C7.89,7 7,7.89 7,9C7,11.33 7,16 7,16C7,16 11.57,16 13.86,16A2.14,2.14 0 0,0 16,13.86C16,11.57 16,7 16,7C16,7 11.33,7 9,7M18,7V9H20V11H22V9C22,7.89 21.11,7 20,7H18M9,9H14V14H9V9M1,12V13.86C1,15.04 1.96,16 3.14,16H5V14H3V12H1M20,13V16H22V13H20M7,18V20C7,21.11 7.89,22 9,22H11V20H9V18H7M20,18V20H18V22H20C21.11,22 22,21.11 22,20V18H20M13,20V22H16V20H13Z",y1="M2,4H8V6H16V4H22V10H20V14H22V20H16V18H8V20H2V14H4V10H2V4M16,10V8H8V10H6V14H8V16H16V14H18V10H16M4,6V8H6V6H4M18,6V8H20V6H18M4,16V18H6V16H4M18,16V18H20V16H18Z",B1="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",D1="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",U1="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",E1="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",I1="M2.28,3L1,4.27L2.47,5.74C2.04,6 1.61,6.29 1.2,6.6L3,9C3.53,8.6 4.08,8.25 4.66,7.93L6.89,10.16C6.15,10.5 5.44,10.91 4.8,11.4L6.6,13.8C7.38,13.22 8.26,12.77 9.2,12.47L11.75,15C10.5,15.07 9.34,15.5 8.4,16.2L12,21L14.46,17.73L17.74,21L19,19.72M12,3C9.85,3 7.8,3.38 5.9,4.07L8.29,6.47C9.5,6.16 10.72,6 12,6C15.38,6 18.5,7.11 21,9L22.8,6.6C19.79,4.34 16.06,3 12,3M12,9C11.62,9 11.25,9 10.88,9.05L14.07,12.25C15.29,12.53 16.43,13.07 17.4,13.8L19.2,11.4C17.2,9.89 14.7,9 12,9Z";export{t as $,R1 as A,u as B,I1 as C,c1 as D,h as E,c as F,S as G,K as H,X as I,Y as J,E as K,n as L,d1 as M,j as N,q as O,U1 as P,D1 as Q,b as R,z as S,w as T,a1 as U,m as V,B1 as W,O as X,s as Y,N as Z,D as _,I as a,U as a0,y as a1,f1 as a2,p1 as a3,e as a4,o as a5,Z1 as a6,o1 as a7,w1 as a8,l as a9,p as aA,R as aa,O1 as ab,C1 as ac,l1 as ad,M1 as ae,r1 as af,x as ag,_ as ah,v as ai,M as aj,i1 as ak,f as al,d as am,r as an,H as ao,y1 as ap,S1 as aq,h1 as ar,a as as,n1 as at,B as au,k1 as av,s1 as aw,u1 as ax,J as ay,L as az,F as b,Z as c,G as d,e1 as e,W as f,L1 as g,k as h,v1 as i,H1 as j,P as k,V as l,T as m,A1 as n,C as o,A as p,g1 as q,m1 as r,g as s,i as t,V1 as u,E1 as v,t1 as w,Q as x,$ as y,P1 as z};
|
|
1
|
+
var H="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M16.5,16.25C16.5,14.75 13.5,14 12,14C10.5,14 7.5,14.75 7.5,16.25V17H16.5M12,12.25A2.25,2.25 0 0,0 14.25,10A2.25,2.25 0 0,0 12,7.75A2.25,2.25 0 0,0 9.75,10A2.25,2.25 0 0,0 12,12.25Z",V="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",L="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.09 20.21,11.09 20.42,11.3L21.7,12.58C21.91,12.79 21.91,13.14 21.7,13.35M12,18.94L18.06,12.88L20.11,14.93L14.06,21H12V18.94M12,14C7.58,14 4,15.79 4,18V20H10V18.11L14,14.11C13.34,14.03 12.67,14 12,14M12,4A4,4 0 0,0 8,8A4,4 0 0,0 12,12A4,4 0 0,0 16,8A4,4 0 0,0 12,4Z",C="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",M="M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z",a="M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",A="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z",i="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",r="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",s="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",d="M20,4H16.83L15,2H9L7.17,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6A2,2 0 0,0 20,4M20,18H4V6H8.05L9.88,4H14.12L15.95,6H20V18M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15Z",e="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",m="M21 15V18H24V20H21V23H19V20H16V18H19V15H21M14 18H3V6H19V13H21V6C21 4.89 20.11 4 19 4H3C1.9 4 1 4.89 1 6V18C1 19.11 1.9 20 3 20H14V18Z",v="M14.5 12C14.5 10.62 13.38 9.5 12 9.5C10.62 9.5 9.5 10.62 9.5 12C9.5 13 10.09 13.84 10.93 14.25L9.82 15.35C8.73 14.64 8 13.41 8 12C8 9.79 9.79 8 12 8C14.21 8 16 9.79 16 12C16 13.41 15.27 14.64 14.18 15.35L13.08 14.25C13.92 13.84 14.5 13 14.5 12M12 2C6.5 2 2 6.5 2 12C2 15.06 3.38 17.8 5.54 19.63L6.61 18.57C4.71 17 3.5 14.64 3.5 12C3.5 7.31 7.31 3.5 12 3.5C16.69 3.5 20.5 7.31 20.5 12C20.5 14.64 19.29 17 17.39 18.57L18.46 19.63C20.62 17.79 22 15.06 22 12C22 6.5 17.5 2 12 2M19 12C19 8.13 15.87 5 12 5C8.13 5 5 8.13 5 12C5 14.23 6.05 16.22 7.68 17.5L8.75 16.43C7.39 15.42 6.5 13.82 6.5 12C6.5 8.97 8.97 6.5 12 6.5C15.03 6.5 17.5 8.97 17.5 12C17.5 13.82 16.61 15.42 15.25 16.43L16.33 17.5C17.95 16.22 19 14.23 19 12M6 22H18L12 16L6 22Z",Z="M6.03 12.03L8.03 15.5L5.5 18.68L2 12.62L6.03 12.03M17 18V15.29C17.88 14.9 18.5 14.03 18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L8.31 9C7.36 9.53 7.03 10.75 7.58 11.71L9.08 14.31C9.63 15.26 10.86 15.59 11.81 15.04L13.69 13.96C13.94 14.55 14.41 15.03 15 15.29V18C15 19.1 15.9 20 17 20H22V18H17Z",o="M20.84 22.73L18.11 20H17C15.9 20 15 19.1 15 18V16.89L12.66 14.55L11.81 15.04C10.86 15.59 9.63 15.26 9.08 14.31L7.58 11.71C7.18 11 7.25 10.18 7.68 9.57L1.11 3L2.39 1.73L22.11 21.46L20.84 22.73M18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L10.77 7.57L17.86 14.66C18.26 14.22 18.5 13.64 18.5 13M2 12.62L5.5 18.68L8.03 15.5L6.03 12.03L2 12.62Z",t="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",n="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",l="M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V5H19V19M17,17H7V7H17V17Z",c="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",u="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",S="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",h="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",f="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z",O="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",g="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",p="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z",P="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",R="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",k="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",w="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",y="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",B="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",D="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",E="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",U="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",x="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",I="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",T="M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14M11.5,3C14.15,3 16.55,4 18.4,5.6L21,3V10H14L16.62,7.38C15.23,6.22 13.46,5.5 11.5,5.5C7.96,5.5 4.95,7.81 3.9,11L1.53,10.22C2.92,6.03 6.85,3 11.5,3Z",z="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",b="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",F="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",G="M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z",W="M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6",N="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",j="M22 12L18 8V11H10V13H18V16M20 18A10 10 0 1 1 20 6H17.27A8 8 0 1 0 17.27 18Z",q="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",Q="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",J="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",K="M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",X="M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",Y="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",_="M19,11C19,12.19 18.66,13.3 18.1,14.28L16.87,13.05C17.14,12.43 17.3,11.74 17.3,11H19M15,11.16L9,5.18V5A3,3 0 0,1 12,2A3,3 0 0,1 15,5V11L15,11.16M4.27,3L21,19.73L19.73,21L15.54,16.81C14.77,17.27 13.91,17.58 13,17.72V21H11V17.72C7.72,17.23 5,14.41 5,11H6.7C6.7,14 9.24,16.1 12,16.1C12.81,16.1 13.6,15.91 14.31,15.58L12.65,13.92L12,14A3,3 0 0,1 9,11V10.28L3,4.27L4.27,3Z",$="M19,13H5V11H19V13Z",H1="M21,16V4H3V16H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14V20H16V22H8V20H10V18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M5,6H14V11H5V6M15,6H19V8H15V6M19,9V14H15V9H19M5,12H9V14H5V12M10,12H14V14H10V12Z",V1="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",L1="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",C1="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",M1="M14,19H18V5H14M6,19H10V5H6V19Z",a1="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",A1="M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z",i1="M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z",r1="M8,5.14V19.14L19,12.14L8,5.14Z",s1="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",d1="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",e1="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",m1="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",v1="M20.5,11H19V7C19,5.89 18.1,5 17,5H13V3.5A2.5,2.5 0 0,0 10.5,1A2.5,2.5 0 0,0 8,3.5V5H4A2,2 0 0,0 2,7V10.8H3.5C5,10.8 6.2,12 6.2,13.5C6.2,15 5,16.2 3.5,16.2H2V20A2,2 0 0,0 4,22H7.8V20.5C7.8,19 9,17.8 10.5,17.8C12,17.8 13.2,19 13.2,20.5V22H17A2,2 0 0,0 19,20V16H20.5A2.5,2.5 0 0,0 23,13.5A2.5,2.5 0 0,0 20.5,11Z",Z1="M4,6V19H20V6H4Z",o1="M4,6V19H20V6H4M18,17H6V8H18V17Z",t1="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",n1="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",l1="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",c1="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z",u1="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9",S1="M20 2H4C2.9 2 2 2.9 2 4V16C2 17.11 2.9 18 4 18H8L12 22L16 18H20C21.11 18 22 17.11 22 16V4C22 2.9 21.11 2 20 2M10.46 14L6.96 10.5L8.37 9.08L10.46 11.17L15.64 6L17.05 7.41L10.46 14Z",h1="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M11,6V9H8V11H11V14H13V11H16V9H13V6H11Z",f1="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",O1="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",g1="M8 13C6.14 13 4.59 14.28 4.14 16H2V18H4.14C4.59 19.72 6.14 21 8 21S11.41 19.72 11.86 18H22V16H11.86C11.41 14.28 9.86 13 8 13M8 19C6.9 19 6 18.1 6 17C6 15.9 6.9 15 8 15S10 15.9 10 17C10 18.1 9.1 19 8 19M19.86 6C19.41 4.28 17.86 3 16 3S12.59 4.28 12.14 6H2V8H12.14C12.59 9.72 14.14 11 16 11S19.41 9.72 19.86 8H22V6H19.86M16 9C14.9 9 14 8.1 14 7C14 5.9 14.9 5 16 5S18 5.9 18 7C18 8.1 17.1 9 16 9Z",p1="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",P1="M5.41,7.41L10,12L5.41,16.59L4,15.17L7.17,12L4,8.83L5.41,7.41M18.59,16.59L14,12L18.59,7.42L20,8.83L16.83,12L20,15.17L18.59,16.59Z",R1="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",k1="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",w1="M3.14,1A2.14,2.14 0 0,0 1,3.14V5H3V3H5V1H3.14M7,1V3H10V1H7M12,1V3H14V5H16V3.14C16,1.96 15.04,1 13.86,1H12M1,7V10H3V7H1M9,7C7.89,7 7,7.89 7,9C7,11.33 7,16 7,16C7,16 11.57,16 13.86,16A2.14,2.14 0 0,0 16,13.86C16,11.57 16,7 16,7C16,7 11.33,7 9,7M18,7V9H20V11H22V9C22,7.89 21.11,7 20,7H18M9,9H14V14H9V9M1,12V13.86C1,15.04 1.96,16 3.14,16H5V14H3V12H1M20,13V16H22V13H20M7,18V20C7,21.11 7.89,22 9,22H11V20H9V18H7M20,18V20H18V22H20C21.11,22 22,21.11 22,20V18H20M13,20V22H16V20H13Z",y1="M2,4H8V6H16V4H22V10H20V14H22V20H16V18H8V20H2V14H4V10H2V4M16,10V8H8V10H6V14H8V16H16V14H18V10H16M4,6V8H6V6H4M18,6V8H20V6H18M4,16V18H6V16H4M18,16V18H20V16H18Z",B1="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",D1="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",E1="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",U1="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",x1="M2.28,3L1,4.27L2.47,5.74C2.04,6 1.61,6.29 1.2,6.6L3,9C3.53,8.6 4.08,8.25 4.66,7.93L6.89,10.16C6.15,10.5 5.44,10.91 4.8,11.4L6.6,13.8C7.38,13.22 8.26,12.77 9.2,12.47L11.75,15C10.5,15.07 9.34,15.5 8.4,16.2L12,21L14.46,17.73L17.74,21L19,19.72M12,3C9.85,3 7.8,3.38 5.9,4.07L8.29,6.47C9.5,6.16 10.72,6 12,6C15.38,6 18.5,7.11 21,9L22.8,6.6C19.79,4.34 16.06,3 12,3M12,9C11.62,9 11.25,9 10.88,9.05L14.07,12.25C15.29,12.53 16.43,13.07 17.4,13.8L19.2,11.4C17.2,9.89 14.7,9 12,9Z";export{t as $,R1 as A,u as B,x1 as C,c1 as D,h as E,c as F,S as G,K as H,X as I,Y as J,U as K,n as L,d1 as M,q as N,Q as O,E1 as P,D1 as Q,b as R,z as S,w as T,a1 as U,m as V,B1 as W,N as X,g as Y,s as Z,D as _,x as a,E as a0,y as a1,f1 as a2,p1 as a3,e as a4,o as a5,Z1 as a6,o1 as a7,w1 as a8,l as a9,p as aA,R as aa,g1 as ab,C1 as ac,l1 as ad,M1 as ae,r1 as af,T as ag,_ as ah,v as ai,M as aj,i1 as ak,f as al,d as am,r as an,H as ao,y1 as ap,S1 as aq,h1 as ar,a as as,n1 as at,B as au,k1 as av,s1 as aw,u1 as ax,j as ay,L as az,F as b,Z as c,G as d,e1 as e,W as f,L1 as g,k as h,v1 as i,H1 as j,P as k,V as l,I as m,A1 as n,C as o,A as p,O1 as q,m1 as r,O as s,i as t,V1 as u,U1 as v,t1 as w,J as x,$ as y,P1 as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main-
|
|
1
|
+
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main-C2N2tbw_.js";import{F as le,r as _,J as ie,e as j,O as me,R as n,u as e,j as s,T as d,M as o,m as g,f as de,l as ce,V as $,q as ue,n as E,ai as pe,aj as ve}from"./@vue-CIFymae3.js";import{m as N,a as R,X as D}from"./@mdi-jq8isxax.js";import{F as v,a as fe}from"./vee-validate-DHjm38DY.js";import{i as U}from"./vue3-toastify-Cy6dUyKO.js";import{s as _e}from"./pinia-B_gX_pHL.js";import{c as O,d as q,e as J,z as X,V as G,b as H}from"./vuetify-B_vGZaGi.js";import{u as ge}from"./vue-i18n-CHUfunSC.js";import"./vue-inline-svg-DDdr3aAz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-DPd4-F0t.js";import"./vue-router-C55prZ5l.js";import"./@vueuse-DbPVvJxZ.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";import"./@intlify-YW_pt133.js";const b=k=>(pe("data-v-d0553a5c"),k=k(),ve(),k),be={class:"relative"},he={class:"subview-title text-color"},ye={class:"image-upload ml-auto"},we={for:"file-input"},xe={class:"inner-component p-4"},ke={class:"relative"},Ce={for:"username",class:"v-label"},Me=b(()=>s("div",{class:"py-1"},null,-1)),Ve={class:"relative"},$e={for:"password",class:"v-label"},Se=b(()=>s("div",{class:"py-1"},null,-1)),Ie={class:"relative"},Le={for:"passwordConfirm",class:"v-label"},Fe=b(()=>s("div",{class:"py-1"},null,-1)),Te={class:"relative"},ze={for:"sessionTimer",class:"v-label"},Oe=b(()=>s("div",{class:"py-1"},null,-1)),Ae={key:0,style:{"padding-top":"22px"}},Be={class:"relative"},Pe={class:"flex flex-row"},je={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Ee={class:"text-sm"},Ne=b(()=>s("div",{class:"py-2"},null,-1)),Re={class:"relative"},De={class:"flex flex-row"},Ue={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},qe={class:"text-sm"},Je=b(()=>s("div",{class:"py-2"},null,-1)),Xe=le({__name:"Account",setup(k){var B,P;const{smallMobileActive:A}=se(),S=oe(),K=ge(),{loginState:r}=_e(S),I=_("avatar"),C=_(),L=_(),h=_(!1),M=_(!1),V=_(!1);let F=((B=r.value.user)==null?void 0:B.rememberMe)??!1,T=((P=r.value.user)==null?void 0:P.oneLogin)??!1;const Q=()=>{r.value.user&&(r.value.user.rememberMe=!r.value.user.rememberMe)},W=()=>{r.value.user&&(r.value.user.oneLogin=!r.value.user.oneLogin)},Y=()=>{L.value&&(L.value.resetForm(),I.value="avatar",C.value=void 0),r.value.user&&(r.value.user.rememberMe=F,r.value.user.oneLogin=T)},Z=async l=>{var c;const a=(c=l.target)==null?void 0:c.files;C.value=a==null?void 0:a[0],I.value=await ae(l)},ee=async l=>{var y,w,t,i,m,u,x;h.value=!0;let a;const c={...l};delete c.upload;const z=((y=r.value.user)==null?void 0:y.username)!==c.username||c.password&&c.passwordConfirm,f=Object.entries(c).some(([,p])=>p!==void 0);if(C.value&&(a=new FormData,a.append("upload",C.value)),!f&&!a){h.value=!1;return}try{await S.updateUser(c,a,!0),U.success(K.t("components.toast.profile_updated")),F=((w=r.value.user)==null?void 0:w.rememberMe)??F,T=((t=r.value.user)==null?void 0:t.oneLogin)??T,z&&S.logout()}catch(p){U.error(((m=(i=p.response)==null?void 0:i.data)==null?void 0:m.message)??p.message??p),console.error(((x=(u=p.response)==null?void 0:u.data)==null?void 0:x.message)??p.message??p)}h.value=!1};return(l,a)=>{const c=te,z=ie("v-number-input");return j(),me(e(fe),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(re),onSubmit:a[3]||(a[3]=f=>ee(f))},{default:n(()=>{var f,y,w;return[s("div",be,[s("span",he,d(l.$t("views.settings.profile")),1),s("div",ye,[s("label",we,[o(c,{src:e(I),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),o(e(v),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:a[0]||(a[0]=t=>Z(t))})])]),s("div",xe,[s("div",ke,[s("label",Ce,d(l.$t("components.form.label.username")),1),o(e(v),{name:"username",value:(f=e(r).user)==null?void 0:f.username},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"username",variant:"outlined",density:"compact"},t,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),Me,s("div",Ve,[s("label",$e,d(l.$t("components.form.label.new_password")),1),o(e(v),{name:"password"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"password",variant:"outlined",density:"compact"},t,{type:e(M)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(M)?e(N):e(R),"onClick:appendInner":a[1]||(a[1]=u=>M.value=!e(M))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Se,s("div",Ie,[s("label",Le,d(l.$t("components.form.label.new_password_confirm")),1),o(e(v),{name:"passwordConfirm"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"passwordConfirm",variant:"outlined",density:"compact"},t,{type:e(V)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(V)?e(N):e(R),"onClick:appendInner":a[2]||(a[2]=u=>V.value=!e(V))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Fe,s("div",Te,[s("label",ze,d(l.$t("components.form.label.session_timer")),1),o(e(v),{name:"sessionTimer",value:(y=e(r).user)==null?void 0:y.sessionTimer},{default:n(({field:t,errorMessage:i,errors:m})=>{var u,x;return[o(z,g({"model-value":t.value,name:"sessionTimer",variant:"outlined",density:"compact"},t,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(u=e(r).user)==null?void 0:u.rememberMe,"hide-details":(x=e(r).user)==null?void 0:x.rememberMe}),null,16,["model-value","error","error-messages","disabled","hide-details"])]}),_:1},8,["value"])]),Oe,(w=e(r).user)!=null&&w.rememberMe?(j(),de("div",Ae)):ce("",!0),s("div",Be,[o(e(v),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>[s("div",Pe,[o(q,g({"model-value":e(r).user.rememberMe,name:"rememberMe"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),s("label",je,d(l.$t("components.form.label.remember_me")),1)])]),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",Ee,d(l.$t("components.form.hint.remember_me")),1)]),_:1})]),Ne,s("div",Re,[o(e(v),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>{var u;return[s("div",De,[o(q,g({"model-value":(u=e(r).user)==null?void 0:u.oneLogin,name:"oneLogin"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:W}),null,16,["model-value","error","error-messages"]),s("label",Ue,d(l.$t("components.form.label.one_login")),1)])]}),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",qe,d(l.$t("components.form.hint.one_login")),1)]),_:1})]),Je])]),s("div",{class:E(["flex flex-row my-5",{"mr-3":e(A)}])},[o(H,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(h),onClick:ue(Y,["prevent"])},{loader:n(()=>[o(G,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),o(H,{class:E(["text-white bg-color-primary",{"mr-2":e(A)}]),loading:e(h),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:n(()=>[o(G,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ws=ne(Xe,[["__scopeId","data-v-d0553a5c"]]);export{ws as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue3-apexcharts-BMpXn58Z.js","assets/@vue-CIFymae3.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var he=Object.defineProperty;var ye=(g,a,c)=>a in g?he(g,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[a]=c;var ie=(g,a,c)=>ye(g,typeof a!="symbol"?a+"":a,c);import{F as q,t as de,r as v,b as Y,c as A,J as ve,e as k,O as T,R as n,j as b,u as s,V as E,T as x,f as M,l as be,g as J,q as z,M as f,at as ke,B as fe,w as G,a3 as X,m as le,ar as B,U as xe,n as pe}from"./@vue-CIFymae3.js";import{ay as we,at as ce}from"./@mdi-DdmeckA1.js";import{i as U,u as We,s as H,O as Le,Q as Ne,d as Z,a as Se,N as Te,z as ee,P as d,x as ge,f as Pe}from"./main-GKvN044v.js";import{s as _e}from"./pinia-B_gX_pHL.js";import{l as te,T as se,b as ae,e as oe,a0 as Ce,a1 as re,X as ue,m as K}from"./vuetify-B_vGZaGi.js";import{i as ne}from"./vue3-toastify-Cy6dUyKO.js";import{P as Oe}from"./plugins-Cij0rj3_.js";import{u as Re,a as De,b as Ee}from"./@tanstack-DPd4-F0t.js";import{S as $e}from"./system--ZtvyuQf.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./vue-router-C55prZ5l.js";import"./@vueuse-DbPVvJxZ.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";var $=(g=>(g.READY="ready",g.RESTARTING="restarting",g.STARTING="starting",g.STARTED="started",g.STOPPED="stopped",g.ERROR="error",g.UNKNOWN="unknown",g))($||{});const Ae={class:"flex items-center first-item"},Ie={key:1},Fe={class:"text-center pt-2"},Ve=q({__name:"VUserTable",props:{loading:{type:Boolean,default:!1}},setup(g){const a=g,{t:c}=U.global,N=new Ne,S=We(),{isTouch:w}=H(),{loginState:p}=_e(S),{loading:h}=de(a),i=v({pageSize:5,page:1}),W=Y([{title:c("components.user_table.title_username"),align:"start",key:"username",value:"decoded.username",sortable:!0},{title:c("components.user_table.title_role"),align:"start",key:"role",value:"decoded.role",sortable:!0},{title:c("components.user_table.title_address"),align:"start",key:"address",value:"clientData.address",sortable:!0},{title:c("components.user_table.title_device"),align:"start",key:"device",value:"clientData.device",sortable:!0},{title:"",align:"end",key:"delete",value:"delete",width:"120px",sortable:!1}]),y=A(()=>F.value||l.value||h.value),R=A(()=>{var P;const O=Math.ceil((((P=u.value)==null?void 0:P.pagination.totalItems)||0)/i.value.pageSize);return O===1&&(i.value.page=1),O}),L=A(()=>{var O;return(O=u.value)==null?void 0:O.result.map(P=>({encoded:P.token,decoded:Le(P.token.access_token),clientData:P.clientData}))}),{data:u,isLoading:l,isPlaceholderData:I}=N.listQuery(i,!0),{mutate:D,isPending:F}=N.logoutTokenQuery(),V=()=>{i.value.page=Math.max(i.value.page-1,1)},Q=()=>{I.value||(i.value.page=i.value.page+1)};return(O,P)=>{const j=ve("router-link");return k(),T(re,{"items-per-page":s(i).pageSize,headers:s(W),items:s(L),class:"elevation-0","item-value":"username","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.username":n(({item:C})=>[b("div",Ae,[C.encoded.access_token===s(p).access_token?(k(),T(j,{key:0,to:"/settings/account"},{default:n(()=>[E(x(C.decoded.username),1)]),_:2},1024)):(k(),M("div",Ie,x(C.decoded.username),1)),C.encoded.access_token===s(p).access_token?(k(),T(te,{key:2,color:"#df2a4c",class:"ml-2",inline:"",content:O.$t("components.user_table.you")},null,8,["content"])):be("",!0)])]),"item.delete":n(({item:C})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(y),icon:"",onClick:z(e=>s(D)({id:C.encoded._id,access_token:C.encoded.access_token}),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[E(x(s(we)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(w),text:O.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[b("div",Fe,[f(Ce,{modelValue:s(i).page,"onUpdate:modelValue":P[0]||(P[0]=C=>s(i).page=C),length:s(R),onPrev:z(V,["prevent"]),onNext:z(Q,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items"])}}}),Qe=Z(Ve,[["__scopeId","data-v-21bd6466"]]),je={key:0,class:"text-disabled"},me=q({__name:"VMetricCharts",props:{type:{},processInfo:{},maxDataPoints:{default:30},width:{default:200},height:{default:25},chartType:{default:"bar"}},async setup(g){let a,c;const N=([a,c]=ke(()=>Te(()=>import("./vue3-apexcharts-BMpXn58Z.js"),__vite__mapDeps([0,1]))),a=await a,c(),a).default,S=Se(),w=g,{theme:p}=_e(S),{type:h,processInfo:i,maxDataPoints:W,chartType:y}=de(w),R=A(()=>{const l=(i.value||[]).map(D=>h.value==="cpu"?D.cpuLoad:D.memLoad).slice(-W.value);return[{data:[...l,...Array(W.value-l.length).fill(0)].map(D=>parseFloat(D))}]}),L=A(()=>[{data:(i.value||[]).map(l=>l.timestamp)}]),u=A(()=>({chart:{type:y.value,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"80%"}},colors:[({value:l})=>l>=90?"#FA5252":l>=50?"#FF9966":"#df2a4c"],xaxis:{crosshairs:{width:1},axisBorder:{show:!1},axisTicks:{show:!1},categories:L.value[0].data},yaxis:{show:!1,labels:{formatter:l=>Math.ceil(l).toString()},min:0},tooltip:{theme:p.value,fixed:{enabled:!1},marker:{show:!1},y:{title:{formatter:function(){return""}},formatter:l=>`${l} %`},x:{formatter:l=>new Date(l).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}}}));return(l,I)=>(k(),M("div",null,[!s(i)||!s(i).length?(k(),M("span",je,x(l.$t("components.charts.no_data")),1)):(k(),T(s(N),{key:1,type:s(y),options:s(u),series:s(R),height:l.height,width:l.width,"data-no-clone":""},null,8,["type","options","series","height","width"]))]))}}),ze={class:"flex items-center first-item"},Be=q({__name:"VPluginTable",setup(g){const{t:a}=U.global,{isTouch:c}=H(),N=ee(),S=new Oe,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:D,isLoading:F,suspense:V}=S.getPluginsQuery(fe({page:1,pageSize:-1})),{mutateAsync:Q}=S.restartPluginQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(D,e=>{if(e)for(const r of e.result)r.disabled||(u.value[r.pluginName]||(u.value[r.pluginName]=[]),h.value[r.pluginName]||(h.value[r.pluginName]={name:r.pluginName,status:d.UNKNOWN}))},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await Q({pluginName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=N.getExistingNamespace("/metrics"),p.value=N.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await V(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-plugin-process-status"),p.value.socket.on("plugin-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-plugins-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.plugins;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=ve("router-link"),o=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:m})=>[b("div",ze,[f(ue,{location:"top",text:j(m.name)},{activator:n(({props:_})=>[f(te,le(_,{color:P(m.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),f(t,{to:`/plugins/${m.name}`,class:"ml-1"},{default:n(()=>[E(x(m.name),1)]),_:2},1032,["to"])])]),"item.cpuLoad":n(({item:m})=>[f(K,{color:parseFloat(m.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(m.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"cpu","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:m})=>[f(K,{color:parseFloat(m.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(m.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"memory","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:m})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(m.name),icon:"",onClick:z(_=>C(m.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[E(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(c),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Ke=Z(Be,[["__scopeId","data-v-5af279b1"]]),qe=async({parameter:g,signal:a})=>(await ge.get("/frameworkers",{params:g,signal:a})).data,Ge=async({frameWorkerName:g})=>(await ge.put(`/frameworkers/${g}/restart`)).data;class Ue{constructor(){ie(this,"_queryClient",Re());ie(this,"queryActivator",v([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(a){return De({queryKey:["frameWorkerList",a],queryFn:({signal:c})=>qe({parameter:s(a),signal:c}),placeholderData:c=>c,enabled:()=>this.queryActivator.value.some(c=>c.name==="getFrameWorkersQuery"&&c.enabled)})}restartFrameWorkerQuery(){return Ee({mutationFn:Ge,onSuccess:async(a,c)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",c.frameWorkerName]}),ne.success(U.global.t("components.toast.frame_worker_restarted"))}})}toggleQueryActivator(a,c){const N=this.queryActivator.value.find(S=>S.name===a);N&&(N.enabled=c)}}const Me={class:"flex items-center first-item"},Ye={class:"ml-1"},Je=q({__name:"VFrameWorkerTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new Ue,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:D,isLoading:F,suspense:V}=S.getFrameWorkersQuery(fe({page:1,pageSize:-1})),{mutateAsync:Q}=S.restartFrameWorkerQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(D,e=>{if(e)for(const r of e.result)u.value[r.name]||(u.value[r.name]=[]),h.value[r.name]||(h.value[r.name]={name:r.name,status:d.UNKNOWN})},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await Q({frameWorkerName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await V(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-frameworker-process-status"),p.value.socket.on("frameworker-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-frameworker-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.workers;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",Me,[f(ue,{location:"top",text:j(o.name)},{activator:n(({props:m})=>[f(te,le(m,{color:P(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ye,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(o.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(o.name),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[E(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Xe=Z(Je,[["__scopeId","data-v-6a64f1d1"]]),He={class:"flex items-center first-item"},Ze={class:"ml-1"},et=q({__name:"VProcessTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new $e,w=v(),p=v(),h=v(30),i=v(200),W=v($.UNKNOWN),y=v($.UNKNOWN),R=v($.UNKNOWN),L={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},u=v({server:{name:"server",...L},go2rtc:{name:"go2rtc",...L},nats:{name:"nats",...L}}),l=v({server:[],go2rtc:[],nats:[]}),I=A(()=>Object.values(u.value).filter(Boolean)),D=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{mutateAsync:F,isPending:V}=S.restartGo2Rtc(),{mutateAsync:Q,isPending:O}=S.restartSystem();G(l,e=>{u.value.server=e.server[e.server.length-1]??{...L,name:"server"},u.value.go2rtc=e.go2rtc[e.go2rtc.length-1]??{...L,name:"go2rtc"},u.value.nats=e.nats[e.nats.length-1]??{...L,name:"nats"}},{deep:!0,immediate:!0});const P=e=>{switch(e){case"server":return W.value;case"go2rtc":return y.value;case"nats":return R.value;default:return $.UNKNOWN}},j=e=>{switch(P(e)){case $.ERROR:return"#9d5752";case $.STARTING:return"orange";case $.READY:return"yellow";case $.STARTED:return"green";case $.STOPPED:return"red";case $.UNKNOWN:return"gray";default:return"gray"}},C=async e=>{var r,t,o,m;try{e==="server"?await Q():await F()}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-process-status"),p.value.socket.on("process-status",e=>{e.server&&(W.value=e.server.status),e.go2rtc&&(y.value=e.go2rtc.status),e.nats&&(R.value=e.nats.status)}),w.value.request("get-server-process-info").subscribe(e=>{l.value=e}),w.value.socket.on("process-infos",e=>{const r=e.server,t=e.go2rtc,o=e.nats;l.value.server.push(r),l.value.server.slice(-h.value),l.value.go2rtc.push(t),l.value.go2rtc.slice(-h.value),l.value.nats.push(o),l.value.nats.slice(-h.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(D),items:s(I),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",He,[f(ue,{location:"top",text:e.$t(`components.process_table.status_${P(o.name)}`)},{activator:n(({props:m})=>[f(te,le(m,{color:j(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ze,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[E(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:o.name==="server"?s(O):s(V),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[E(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items"])}}}),tt=Z(et,[["__scopeId","data-v-c52ac04d"]]),st={class:"h-full w-full inline-size mb-safe"},at={class:"page-title"},ot={class:"subview-title text-color"},rt={class:"inner-component p-4"},nt={class:"mt-10"},it={class:"subview-title text-color"},lt={class:"inner-component p-4"},ct={class:"mt-10"},ut={class:"subview-title text-color"},mt={class:"inner-component p-4"},pt={class:"mt-10"},dt={class:"subview-title text-color"},vt={class:"inner-component p-4"},Gt=q({__name:"Adminpanel",setup(g){const a=ee(),{smallMobileActive:c}=Pe(),N=v(),S=v(),w=v(!1);return X(()=>{N.value=a.connectToNamespace("/metrics"),S.value=a.connectToNamespace("/status")}),xe(()=>{var p,h,i,W;(h=(p=N.value)==null?void 0:p.end)==null||h.call(p),(W=(i=S.value)==null?void 0:i.end)==null||W.call(i)}),(p,h)=>{const i=tt,W=Xe,y=Ke,R=Qe;return k(),M("main",{class:pe(["w-full h-full",{"px-0":s(c)}])},[b("div",st,[b("div",{class:pe(["mb-3 flex w-full items-center",{"px-2":s(c)}]),style:{height:"30px"}},[b("h1",at,x(p.$t(`views.${String(p.$route.name).toLowerCase()}.title`)),1)],2),b("div",null,[b("span",ot,x(p.$t("views.adminpanel.system")),1),b("div",rt,[f(i)])]),b("div",nt,[b("span",it,x(p.$t("views.adminpanel.frameworker")),1),b("div",lt,[f(W)])]),b("div",ct,[b("span",ut,x(p.$t("views.adminpanel.plugins")),1),b("div",mt,[f(y)])]),b("div",pt,[b("span",dt,x(p.$t("views.adminpanel.currently_loggedin_users")),1),b("div",vt,[f(R,{loading:s(w)},null,8,["loading"])])])])],2)}}});export{Gt as default};
|
|
2
|
+
var he=Object.defineProperty;var ye=(g,a,c)=>a in g?he(g,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[a]=c;var ie=(g,a,c)=>ye(g,typeof a!="symbol"?a+"":a,c);import{F as q,t as de,r as v,b as Y,c as A,J as ve,e as k,O as T,R as n,j as b,u as s,V as D,T as x,f as M,l as be,g as J,q as z,M as f,at as ke,B as fe,w as G,a3 as X,m as le,ar as B,U as xe,n as pe}from"./@vue-CIFymae3.js";import{ay as we,at as ce}from"./@mdi-jq8isxax.js";import{i as U,u as We,s as H,Q as Le,R as Ne,d as Z,a as Se,O as Te,z as ee,P as d,x as ge,f as Pe}from"./main-C2N2tbw_.js";import{s as _e}from"./pinia-B_gX_pHL.js";import{l as te,T as se,b as ae,e as oe,a0 as Ce,a1 as re,X as ue,m as K}from"./vuetify-B_vGZaGi.js";import{i as ne}from"./vue3-toastify-Cy6dUyKO.js";import{P as Oe}from"./plugins-Cs7BJHj-.js";import{u as Re,a as Ee,b as De}from"./@tanstack-DPd4-F0t.js";import{S as $e}from"./system-C1OmXhti.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./vue-router-C55prZ5l.js";import"./@vueuse-DbPVvJxZ.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";var $=(g=>(g.READY="ready",g.RESTARTING="restarting",g.STARTING="starting",g.STARTED="started",g.STOPPED="stopped",g.ERROR="error",g.UNKNOWN="unknown",g))($||{});const Ae={class:"flex items-center first-item"},Ie={key:1},Fe={class:"text-center pt-2"},Ve=q({__name:"VUserTable",props:{loading:{type:Boolean,default:!1}},setup(g){const a=g,{t:c}=U.global,N=new Ne,S=We(),{isTouch:w}=H(),{loginState:p}=_e(S),{loading:h}=de(a),i=v({pageSize:5,page:1}),W=Y([{title:c("components.user_table.title_username"),align:"start",key:"username",value:"decoded.username",sortable:!0},{title:c("components.user_table.title_role"),align:"start",key:"role",value:"decoded.role",sortable:!0},{title:c("components.user_table.title_address"),align:"start",key:"address",value:"clientData.address",sortable:!0},{title:c("components.user_table.title_device"),align:"start",key:"device",value:"clientData.device",sortable:!0},{title:"",align:"end",key:"delete",value:"delete",width:"120px",sortable:!1}]),y=A(()=>F.value||l.value||h.value),R=A(()=>{var P;const O=Math.ceil((((P=u.value)==null?void 0:P.pagination.totalItems)||0)/i.value.pageSize);return O===1&&(i.value.page=1),O}),L=A(()=>{var O;return(O=u.value)==null?void 0:O.result.map(P=>({encoded:P.token,decoded:Le(P.token.access_token),clientData:P.clientData}))}),{data:u,isLoading:l,isPlaceholderData:I}=N.listQuery(i,!0),{mutate:E,isPending:F}=N.logoutTokenQuery(),V=()=>{i.value.page=Math.max(i.value.page-1,1)},Q=()=>{I.value||(i.value.page=i.value.page+1)};return(O,P)=>{const j=ve("router-link");return k(),T(re,{"items-per-page":s(i).pageSize,headers:s(W),items:s(L),class:"elevation-0","item-value":"username","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.username":n(({item:C})=>[b("div",Ae,[C.encoded.access_token===s(p).access_token?(k(),T(j,{key:0,to:"/settings/account"},{default:n(()=>[D(x(C.decoded.username),1)]),_:2},1024)):(k(),M("div",Ie,x(C.decoded.username),1)),C.encoded.access_token===s(p).access_token?(k(),T(te,{key:2,color:"#df2a4c",class:"ml-2",inline:"",content:O.$t("components.user_table.you")},null,8,["content"])):be("",!0)])]),"item.delete":n(({item:C})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(y),icon:"",onClick:z(e=>s(E)({id:C.encoded._id,access_token:C.encoded.access_token}),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(we)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(w),text:O.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[b("div",Fe,[f(Ce,{modelValue:s(i).page,"onUpdate:modelValue":P[0]||(P[0]=C=>s(i).page=C),length:s(R),onPrev:z(V,["prevent"]),onNext:z(Q,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items"])}}}),Qe=Z(Ve,[["__scopeId","data-v-0f04954a"]]),je={key:0,class:"text-disabled"},me=q({__name:"VMetricCharts",props:{type:{},processInfo:{},maxDataPoints:{default:30},width:{default:200},height:{default:25},chartType:{default:"bar"}},async setup(g){let a,c;const N=([a,c]=ke(()=>Te(()=>import("./vue3-apexcharts-BMpXn58Z.js"),__vite__mapDeps([0,1]))),a=await a,c(),a).default,S=Se(),w=g,{theme:p}=_e(S),{type:h,processInfo:i,maxDataPoints:W,chartType:y}=de(w),R=A(()=>{const l=(i.value||[]).map(E=>h.value==="cpu"?E.cpuLoad:E.memLoad).slice(-W.value);return[{data:[...l,...Array(W.value-l.length).fill(0)].map(E=>parseFloat(E))}]}),L=A(()=>[{data:(i.value||[]).map(l=>l.timestamp)}]),u=A(()=>({chart:{type:y.value,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"80%"}},colors:[({value:l})=>l>=90?"#FA5252":l>=50?"#FF9966":"#df2a4c"],xaxis:{crosshairs:{width:1},axisBorder:{show:!1},axisTicks:{show:!1},categories:L.value[0].data},yaxis:{show:!1,labels:{formatter:l=>Math.ceil(l).toString()},min:0},tooltip:{theme:p.value,fixed:{enabled:!1},marker:{show:!1},y:{title:{formatter:function(){return""}},formatter:l=>`${l} %`},x:{formatter:l=>new Date(l).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}}}));return(l,I)=>(k(),M("div",null,[!s(i)||!s(i).length?(k(),M("span",je,x(l.$t("components.charts.no_data")),1)):(k(),T(s(N),{key:1,type:s(y),options:s(u),series:s(R),height:l.height,width:l.width,"data-no-clone":""},null,8,["type","options","series","height","width"]))]))}}),ze={class:"flex items-center first-item"},Be=q({__name:"VPluginTable",setup(g){const{t:a}=U.global,{isTouch:c}=H(),N=ee(),S=new Oe,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:E,isLoading:F,suspense:V}=S.getPluginsQuery(fe({page:1,pageSize:-1})),{mutateAsync:Q}=S.restartPluginQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(E,e=>{if(e)for(const r of e.result)r.disabled||(u.value[r.pluginName]||(u.value[r.pluginName]=[]),h.value[r.pluginName]||(h.value[r.pluginName]={name:r.pluginName,status:d.UNKNOWN}))},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await Q({pluginName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=N.getExistingNamespace("/metrics"),p.value=N.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await V(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-plugin-process-status"),p.value.socket.on("plugin-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-plugins-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.plugins;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=ve("router-link"),o=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:m})=>[b("div",ze,[f(ue,{location:"top",text:j(m.name)},{activator:n(({props:_})=>[f(te,le(_,{color:P(m.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),f(t,{to:`/plugins/${m.name}`,class:"ml-1"},{default:n(()=>[D(x(m.name),1)]),_:2},1032,["to"])])]),"item.cpuLoad":n(({item:m})=>[f(K,{color:parseFloat(m.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(m.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"cpu","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:m})=>[f(K,{color:parseFloat(m.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(m.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"memory","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:m})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(m.name),icon:"",onClick:z(_=>C(m.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(c),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Ke=Z(Be,[["__scopeId","data-v-5af279b1"]]),qe=async({parameter:g,signal:a})=>(await ge.get("/frameworkers",{params:g,signal:a})).data,Ge=async({frameWorkerName:g})=>(await ge.put(`/frameworkers/${g}/restart`)).data;class Ue{constructor(){ie(this,"_queryClient",Re());ie(this,"queryActivator",v([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(a){return Ee({queryKey:["frameWorkerList",a],queryFn:({signal:c})=>qe({parameter:s(a),signal:c}),placeholderData:c=>c,enabled:()=>this.queryActivator.value.some(c=>c.name==="getFrameWorkersQuery"&&c.enabled)})}restartFrameWorkerQuery(){return De({mutationFn:Ge,onSuccess:async(a,c)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",c.frameWorkerName]}),ne.success(U.global.t("components.toast.frame_worker_restarted"))}})}toggleQueryActivator(a,c){const N=this.queryActivator.value.find(S=>S.name===a);N&&(N.enabled=c)}}const Me={class:"flex items-center first-item"},Ye={class:"ml-1"},Je=q({__name:"VFrameWorkerTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new Ue,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:E,isLoading:F,suspense:V}=S.getFrameWorkersQuery(fe({page:1,pageSize:-1})),{mutateAsync:Q}=S.restartFrameWorkerQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(E,e=>{if(e)for(const r of e.result)u.value[r.name]||(u.value[r.name]=[]),h.value[r.name]||(h.value[r.name]={name:r.name,status:d.UNKNOWN})},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await Q({frameWorkerName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await V(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-frameworker-process-status"),p.value.socket.on("frameworker-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-frameworker-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.workers;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",Me,[f(ue,{location:"top",text:j(o.name)},{activator:n(({props:m})=>[f(te,le(m,{color:P(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ye,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(o.name),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Xe=Z(Je,[["__scopeId","data-v-6a64f1d1"]]),He={class:"flex items-center first-item"},Ze={class:"ml-1"},et=q({__name:"VProcessTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new $e,w=v(),p=v(),h=v(30),i=v(200),W=v($.UNKNOWN),y=v($.UNKNOWN),R=v($.UNKNOWN),L={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},u=v({server:{name:"server",...L},go2rtc:{name:"go2rtc",...L},nats:{name:"nats",...L}}),l=v({server:[],go2rtc:[],nats:[]}),I=A(()=>Object.values(u.value).filter(Boolean)),E=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:a("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{mutateAsync:F,isPending:V}=S.restartGo2Rtc(),{mutateAsync:Q,isPending:O}=S.restartSystem();G(l,e=>{u.value.server=e.server[e.server.length-1]??{...L,name:"server"},u.value.go2rtc=e.go2rtc[e.go2rtc.length-1]??{...L,name:"go2rtc"},u.value.nats=e.nats[e.nats.length-1]??{...L,name:"nats"}},{deep:!0,immediate:!0});const P=e=>{switch(e){case"server":return W.value;case"go2rtc":return y.value;case"nats":return R.value;default:return $.UNKNOWN}},j=e=>{switch(P(e)){case $.ERROR:return"#9d5752";case $.STARTING:return"orange";case $.READY:return"yellow";case $.STARTED:return"green";case $.STOPPED:return"red";case $.UNKNOWN:return"gray";default:return"gray"}},C=async e=>{var r,t,o,m;try{e==="server"?await Q():await F()}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-process-status"),p.value.socket.on("process-status",e=>{e.server&&(W.value=e.server.status),e.go2rtc&&(y.value=e.go2rtc.status),e.nats&&(R.value=e.nats.status)}),w.value.request("get-server-process-info").subscribe(e=>{l.value=e}),w.value.socket.on("process-infos",e=>{const r=e.server,t=e.go2rtc,o=e.nats;l.value.server.push(r),l.value.server.slice(-h.value),l.value.go2rtc.push(t),l.value.go2rtc.slice(-h.value),l.value.nats.push(o),l.value.nats.slice(-h.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(E),items:s(I),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",He,[f(ue,{location:"top",text:e.$t(`components.process_table.status_${P(o.name)}`)},{activator:n(({props:m})=>[f(te,le(m,{color:j(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ze,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:o.name==="server"?s(O):s(V),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items"])}}}),tt=Z(et,[["__scopeId","data-v-c52ac04d"]]),st={class:"h-full w-full inline-size mb-safe"},at={class:"page-title"},ot={class:"subview-title text-color"},rt={class:"inner-component p-4"},nt={class:"mt-10"},it={class:"subview-title text-color"},lt={class:"inner-component p-4"},ct={class:"mt-10"},ut={class:"subview-title text-color"},mt={class:"inner-component p-4"},pt={class:"mt-10"},dt={class:"subview-title text-color"},vt={class:"inner-component p-4"},Gt=q({__name:"Adminpanel",setup(g){const a=ee(),{smallMobileActive:c}=Pe(),N=v(),S=v(),w=v(!1);return X(()=>{N.value=a.connectToNamespace("/metrics"),S.value=a.connectToNamespace("/status")}),xe(()=>{var p,h,i,W;(h=(p=N.value)==null?void 0:p.end)==null||h.call(p),(W=(i=S.value)==null?void 0:i.end)==null||W.call(i)}),(p,h)=>{const i=tt,W=Xe,y=Ke,R=Qe;return k(),M("main",{class:pe(["w-full h-full",{"px-0":s(c)}])},[b("div",st,[b("div",{class:pe(["mb-3 flex w-full items-center",{"px-2":s(c)}]),style:{height:"30px"}},[b("h1",at,x(p.$t(`views.${String(p.$route.name).toLowerCase()}.title`)),1)],2),b("div",null,[b("span",ot,x(p.$t("views.adminpanel.system")),1),b("div",rt,[f(i)])]),b("div",nt,[b("span",it,x(p.$t("views.adminpanel.frameworker")),1),b("div",lt,[f(W)])]),b("div",ct,[b("span",ut,x(p.$t("views.adminpanel.plugins")),1),b("div",mt,[f(y)])]),b("div",pt,[b("span",dt,x(p.$t("views.adminpanel.currently_loggedin_users")),1),b("div",vt,[f(R,{loading:s(w)},null,8,["loading"])])])])],2)}}});export{Gt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as _,a as f}from"./main-
|
|
1
|
+
import{b as _,a as f}from"./main-C2N2tbw_.js";import{s as p}from"./pinia-B_gX_pHL.js";import{y as c,d as h}from"./vuetify-B_vGZaGi.js";import{F as b,e as V,f as g,j as e,T as i,M as r,u as t,i as d}from"./@vue-CIFymae3.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue3-toastify-Cy6dUyKO.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./@tanstack-DPd4-F0t.js";import"./vue-router-C55prZ5l.js";import"./@vueuse-DbPVvJxZ.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./@mdi-jq8isxax.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";const y={class:"subview-title text-color"},w={class:"inner-component p-4"},$={class:"relative"},k={for:"theme",class:"v-label"},x=e("div",{class:"py-2"},null,-1),S={class:"ml-auto flex"},B={class:"flex flex-row"},T={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},U=e("div",{class:"my-8"},null,-1),C={class:"subview-title text-color"},L={class:"inner-component p-4"},M={class:"relative"},N={for:"language",class:"v-label"},re=b({__name:"Appearance",setup(R){const{locale:n,languages:u}=p(_()),{colors:v,theme:m,autoMode:a}=p(f());return(l,o)=>(V(),g("div",null,[e("div",null,[e("span",y,i(l.$t("views.settings.theme")),1),e("div",w,[e("div",$,[e("label",k,i(l.$t("components.form.label.theme")),1),r(c,{modelValue:t(m),"onUpdate:modelValue":o[0]||(o[0]=s=>d(m)?m.value=s:null),variant:"outlined",density:"compact",name:"theme","hide-details":"",items:t(v),disabled:t(a)},null,8,["modelValue","items","disabled"])]),x,e("div",null,[e("div",S,[e("div",B,[r(h,{modelValue:t(a),"onUpdate:modelValue":o[1]||(o[1]=s=>d(a)?a.value=s:null),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",T,i(l.$t("components.form.label.system_preference")),1)])])])])]),U,e("div",null,[e("span",C,i(l.$t("views.settings.locale")),1),e("div",L,[e("div",M,[e("label",N,i(l.$t("components.form.label.language")),1),r(c,{modelValue:t(n),"onUpdate:modelValue":o[2]||(o[2]=s=>d(n)?n.value=s:null),variant:"outlined",density:"compact",name:"language","hide-details":"",items:t(u)},null,8,["modelValue","items"])])])])]))}});export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as j,y as T,w as R}from"./main-
|
|
1
|
+
import{x as j,y as T,w as R}from"./main-C2N2tbw_.js";import{F as L,t as U,r as f,e as v,f as I,j as s,M as _,R as b,T as r,u,l as C,O as D,q as h,V as B,ae as J,i as E}from"./@vue-CIFymae3.js";import{i as F}from"./vue3-toastify-Cy6dUyKO.js";import{r as M}from"./system-C1OmXhti.js";import{aA as A,Y as q}from"./@mdi-jq8isxax.js";import{e as O,a2 as Y,b as z,n as G}from"./vuetify-B_vGZaGi.js";import{u as H}from"./vue-i18n-CHUfunSC.js";import"./vue-inline-svg-DDdr3aAz.js";import"./axios-BI2i94Vb.js";import"./@tanstack-DPd4-F0t.js";import"./pinia-B_gX_pHL.js";import"./vue-router-C55prZ5l.js";import"./@vueuse-DbPVvJxZ.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";import"./@intlify-YW_pt133.js";const K=async k=>(await j.post("/backup/download",{localStorage:k},{responseType:"arraybuffer"})).data,P=async k=>(await j.post("/backup/restore",k)).data,Q={class:"w-full"},W={class:"flex flex-col justify-center items-center mb-5"},X={for:"restoreInput",class:"cursor-pointer text-center"},Z=["accept"],ee={key:0,class:"text-red"},te={class:"mx-2"},oe={class:"disabled-text"},se=L({__name:"VUploadFiles",props:{multiple:{type:Boolean,default:!1},accept:{},icon:{default:A}},emits:["files-uploaded"],setup(k,{expose:S,emit:V}){const p=V,x=k,{accept:w,multiple:y}=U(x),$=f(!1),g=f(!1),i=f([]),e=f(null),n=l=>{const t=i.value.findIndex(a=>a.name===l);t>-1&&(i.value.splice(t,1),o())},d=l=>{if($.value=!1,g.value=!1,i.value=[],console.log(l),l.dataTransfer)if(!y.value&&l.dataTransfer.files.length>1)g.value=!0;else{for(const[,t]of Object.entries(l.dataTransfer.files))i.value.push(t);p("files-uploaded",i.value)}},m=l=>{var a;g.value=!1,i.value=[];const t=l.target;if(t&&t.files)if(!y.value&&((a=t.files)==null?void 0:a.length)>1)g.value=!0;else{for(const[,N]of Object.entries(t.files))i.value.push(N);p("files-uploaded",i.value)}},o=()=>{e.value&&(e.value.value="")};return S({reset:()=>{i.value=[],o()}}),(l,t)=>(v(),I("div",{class:"file-upload-box p-4",onDrop:t[0]||(t[0]=h(a=>d(a),["prevent"])),onDragover:t[1]||(t[1]=h(a=>$.value=!0,["prevent"])),onDragenter:t[2]||(t[2]=h(a=>$.value=!0,["prevent"])),onDragleave:t[3]||(t[3]=h(a=>$.value=!1,["prevent"]))},[s("div",Q,[s("div",W,[_(O,{class:"mt-5",size:"60"},{default:b(()=>[B(r(l.icon),1)]),_:1}),s("label",X,r(l.$t("components.upload_files.drop_or_select_file")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:e,type:"file",class:"d-none",accept:u(w),onChange:m},null,40,Z),u(g)?(v(),I("p",ee,r(l.$t("components.upload_files.only_one_file_allowed")),1)):C("",!0)]),u(i).length>0?(v(),D(Y,{key:0,items:u(i),"max-height":"150","item-height":"50"},{default:b(({item:a})=>[(v(),I("div",{key:a.name,class:"w-full flex flex-row items-center justify-start p-2"},[_(z,{size:"28",variant:"text",color:"red",rounded:"",onClick:h(N=>n(a.name),["stop"])},{default:b(()=>[_(O,{size:"20"},{default:b(()=>[B(r(u(q)),1)]),_:1})]),_:2},1032,["onClick"]),s("b",te,r(a.name),1),s("span",oe,"("+r(a.size)+" bytes)",1)])),u(i).length>1?(v(),D(G,{key:0})):C("",!0)]),_:1},8,["items"])):C("",!0)])],32))}}),ae={key:0,class:"flex w-full h-full justify-center items-center fixed top-0 left-0",style:{"z-index":"9000"}},ne={class:"subview-title text-color"},le={class:"inner-component p-4"},re={class:"text-sm"},ie=s("br",null,null,-1),ce=s("div",{class:"my-8"},null,-1),ue={class:"subview-title text-color"},pe={class:"inner-component p-4"},de={class:"text-sm"},me=s("div",{class:"my-8"},null,-1),fe={class:"subview-title text-color"},ve={class:"inner-component p-4"},_e={class:"text-sm"},Ge=L({__name:"Backup",setup(k){const{t:S}=H(),V=f(null),p=f(!1),x=f(!1),w=f(!1),y=f([]),$=async()=>{var e,n,d,m;p.value=!0;try{const o={};if(localStorage.getItem("ui")){const a=localStorage.getItem("ui");o.ui=JSON.parse(a)}if(localStorage.getItem("locale")){const a=localStorage.getItem("locale");o.locale=a}if(localStorage.getItem("theme")){const a=localStorage.getItem("theme");o.theme=JSON.parse(a)}const c=await K(o),l=window.URL.createObjectURL(new Blob([c])),t=document.createElement("a");t.href=l,t.setAttribute("download","cameraui-backup.tar.gz"),document.body.appendChild(t),t.click(),t.remove()}catch(o){console.error(((n=(e=o.response)==null?void 0:e.data)==null?void 0:n.message)??o.message??o),F.error(((m=(d=o.response)==null?void 0:d.data)==null?void 0:m.message)??o.message??o)}p.value=!1},g=async()=>{var e,n,d,m,o;p.value=!0;try{const c=new FormData;c.append("upload",y.value[0]);const l=await P(c);i(l),(e=V.value)==null||e.reset(),F.success(S("components.toast.backup_restored")),x.value=!0,M()}catch(c){console.error(((d=(n=c.response)==null?void 0:n.data)==null?void 0:d.message)??c.message??c),F.error(((o=(m=c.response)==null?void 0:m.data)==null?void 0:o.message)??c.message??c),p.value=!1,x.value=!1}},i=e=>{e.theme&&localStorage.setItem("theme",JSON.stringify(e.theme)),e.locale&&localStorage.setItem("locale",e.locale),e.ui&&localStorage.setItem("ui",JSON.stringify(e.ui))};return(e,n)=>{const d=T,m=R;return v(),I("div",null,[(v(),D(J,{to:".app"},[u(x)?(v(),I("div",ae,[_(d,{reload:""})])):C("",!0)])),s("div",null,[s("span",ne,r(e.$t("views.settings.create_backup")),1),s("div",le,[s("span",re,r(e.$t("views.settings.create_backup_info")),1),ie,_(z,{loading:u(p),class:"mt-5",color:"#df2a4c",onClick:h($,["prevent"])},{default:b(()=>[B(r(e.$t("components.form.button.download_backup_archive")),1)]),_:1},8,["loading"])])]),ce,s("div",null,[s("span",ue,r(e.$t("views.settings.restore_backup")),1),s("div",pe,[s("span",de,r(e.$t("views.settings.restore_backup_info")),1),_(se,{ref_key:"input",ref:V,class:"mt-5",accept:"application/gzip, .tar, .tar.gz",onFilesUploaded:n[0]||(n[0]=o=>y.value=o)},null,512),_(z,{loading:u(p),disabled:!u(y).length,class:"mt-5",color:"#df2a4c",onClick:n[1]||(n[1]=h(o=>w.value=!0,["prevent"]))},{default:b(()=>[B(r(e.$t("components.form.button.restore_backup_archive")),1)]),_:1},8,["loading","disabled"])])]),me,s("div",null,[s("span",fe,r(e.$t("views.settings.sheduled_backup")),1),s("div",ve,[s("span",_e,r(e.$t("views.settings.sheduled_backup_info")),1)])]),_(m,{modelValue:u(w),"onUpdate:modelValue":n[2]||(n[2]=o=>E(w)?w.value=o:null),title:e.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restore_and_restart",loading:u(p),onConfirm:n[3]||(n[3]=o=>g())},{content:b(()=>[s("span",null,r(e.$t("components.dialog.message.confirm_restore")),1)]),_:1},8,["modelValue","title","loading"])])}}});export{Ge as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as me,t as he,r as i,c as S,w as U,a3 as Ne,x as je,a0 as Tt,e as n,f as y,M as w,R as k,g as ae,v as ce,u as t,X as G,j as g,O as R,T as q,l as J,N as Fe,Q as Ce,y as $e,ai as Ht,aj as kt,ap as $t,i as fe,J as Et,n as Ee,V as ge,b as Dt,q as Ft,aq as Ct}from"./@vue-CIFymae3.js";import{D as Vt,E as We,F as zt,B as Be,G as Ot,H as Mt,I as It}from"./@mdi-DdmeckA1.js";import{a as Ue,f as qe,j as ue,k as Rt,l as Lt,m as Gt,n as Bt,o as At,p as Nt,q as jt,d as xe,i as Wt}from"./main-GKvN044v.js";import{s as Qe}from"./pinia-B_gX_pHL.js";import{l as Ut,m as qt,n as Xe,p as Qt,q as Xt,d as Ze,s as Ae,t as Zt,k as Jt}from"./@vueuse-DbPVvJxZ.js";import{b as te,B as De,C as Yt,V as Ve,D as Kt,E as ea,R as ta,e as re,F as aa}from"./vuetify-B_vGZaGi.js";import{C as Je,_ as Ye}from"./VPlayer-DxUydCDj.js";import{u as Ke}from"./vue-router-C55prZ5l.js";import{D as la}from"./v-calendar-CbEkwI4D.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue3-toastify-Cy6dUyKO.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./@tanstack-DPd4-F0t.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./@popperjs-BQBsAJpH.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./plugins-Cij0rj3_.js";import"./draggabilly-YEGzHR3_.js";import"./get-size-D1dS-IaP.js";import"./unidragger-91TYirAP.js";import"./ev-emitter-t78oQA8k.js";var r=(e=>(e[e.HEIGHT=8]="HEIGHT",e[e.WIDTH=85]="WIDTH",e.COLOR="#000000",e[e.OFFSET=50]="OFFSET",e[e.TIME_OFFSET=15]="TIME_OFFSET",e[e.TIME_START_POSITION=15]="TIME_START_POSITION",e[e.MAX_SCROLL_PX=720]="MAX_SCROLL_PX",e))(r||{}),et=(e=>(e.type="seconds",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=15e3]="duration",e[e.timeMsFactor=15e3]="timeMsFactor",e[e.timeMsPerTick=1e3]="timeMsPerTick",e[e.timeMsPerPx=125]="timeMsPerPx",e[e.pxPerSecond=8]="pxPerSecond",e))(et||{}),tt=(e=>(e.type="two-minutes",e[e.bigTickInterval=4]="bigTickInterval",e[e.labelInterval=8]="labelInterval",e[e.duration=12e4]="duration",e[e.timeMsFactor=12e4]="timeMsFactor",e[e.timeMsPerTick=15e3]="timeMsPerTick",e[e.timeMsPerPx=1875]="timeMsPerPx",e[e.pxPerSecond=.5333333333333333]="pxPerSecond",e))(tt||{}),at=(e=>(e.type="fifteen-minutes",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=9e5]="duration",e[e.timeMsFactor=9e5]="timeMsFactor",e[e.timeMsPerTick=6e4]="timeMsPerTick",e[e.timeMsPerPx=7500]="timeMsPerPx",e[e.pxPerSecond=.13333333333333333]="pxPerSecond",e))(at||{}),lt=(e=>(e.type="thirty-minutes",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=9]="labelInterval",e[e.duration=18e5]="duration",e[e.timeMsFactor=18e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(lt||{}),ot=(e=>(e.type="hours",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=18]="labelInterval",e[e.duration=36e5]="duration",e[e.timeMsFactor=36e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(ot||{});const st=e=>(Ht("data-v-e8bb6d1c"),e=e(),kt(),e),oa={class:"absolute z-10 top-0 left-0 right-0 w-full"},sa={key:1},ia={key:0,class:"timeline-gradient-bg-top"},na=st(()=>g("div",{class:"timeline-gradient-bg-dark-top"},null,-1)),ra=st(()=>g("div",{class:"timeline-gradient-bg-white-top"},null,-1)),ua=[na,ra],ca=["data-tick-index"],ma=["data-tick-index"],da={key:0,class:"tick-label"},va={key:2},pa=me({__name:"VLiveTimeline",props:{zoomModel:{default:1},dateModel:{default:()=>new Date},modifier:{default:0},segment:{default:"0"}},emits:["is-loading","is-scrolling"],setup(e,{emit:N}){const j=e,M=N,{theme:P}=Qe(Ue()),{dateModel:V,modifier:$,zoomModel:f}=he(j),E=i(0),D=i(0),T=i(new Date),p=i(0),u=i(),s=i(!1),F=i(!1),C=i([]),O=i(!1),v=i(0),Y=i(0),le=i(new Date),K=i(0),B=i(0),oe=i("#5b5b5b"),z=i({timestamp:Date.now(),live:!0}),h=i(null),ee=i(null),H=i([]),c=i(0),{tabletActive:se,mobileActive:ye}=qe(),_e=Ut(h),be=qt({touch:!1,target:ee}),{isOutside:ie}=Xe(ee),{pressed:_}=Qt({touch:!1,target:ee}),A=Xt(h),ze=Ze();Ae("ArrowDown",a=>{ie.value||(a.preventDefault(),ke(),h.value&&h.value.scrollTop++)}),Ae("ArrowUp",a=>{ie.value||(a.preventDefault(),ke(),h.value&&h.value.scrollTop--)});let we,Pe,Oe;const Me=S(()=>A.y.value>0?"#0173ff":"#df2a4c"),it=S(()=>{let a=`transition: all .2s ease-out; background-color: ${Me.value};`;return s.value?a+="width: 20px; left: 9px; border-radius: 30px":m.value.type==="seconds"?a+="width: 60px; left: 9px;":A.y.value===0?a+="width: 40px; left: 9px;":a+="width: 55px; left: 9px;",a}),nt=S(()=>`transition: all .5s ease-out; position: absolute; top: ${ne.value.px}px; background-color: ${Me.value};`),ne=S(()=>{var d;const a=T.value.getTime(),l=r.TIME_OFFSET*r.HEIGHT-1;let o=((d=u.value)==null?void 0:d.timestamp)||a;return A.y.value===0&&(o=a),u.value&&(u.value.timestamp=o),{px:l,timestamp:o}}),rt=S(()=>m.value.type==="seconds"),Se=S(()=>r.HEIGHT*m.value.labelInterval),Ie=S(()=>m.value.pxPerSecond*E.value+B.value),ut=S(()=>m.value.pxPerSecond*E.value-v.value*r.HEIGHT-3+B.value),ct=S(()=>`transition: all .5s ease-out; mask-image: url('data:image/svg+xml,${Re.value}'); -webkit-mask-image: url('data:image/svg+xml,${Re.value}'); mask-size: ${r.WIDTH}px ${Se.value}px; -webkit-mask-size: ${r.WIDTH}px ${Se.value}px; width: ${r.WIDTH}px; height: ${c.value}px; mask-position: 0px ${p.value+Ie.value}px; -webkit-mask-position: 0px ${p.value+Ie.value}px`),Re=S(()=>{let a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r.WIDTH} ${Se.value}" vector-effect="non-scaling-stroke" stroke-width="${1/(window.devicePixelRatio||1)}px" shape-rendering="crispEdges">`;if(!s.value)for(let l=0;l<m.value.labelInterval;l++){const o=l%m.value.labelInterval==0,d=0,b=o?4:l%m.value.bigTickInterval===0?2:1,x=l*r.HEIGHT+r.HEIGHT/2;a+=`<line x1="${d}" y1="${x}" x2="${2*b}" y2="${x}" stroke="${oe.value}" stroke-opacity="100%"/>`}return a+="</svg>",encodeURIComponent(a)}),mt=S(()=>`transition: top .5s ease-out; height: ${r.HEIGHT}px;`),dt=S(()=>{var b;const a=(b=h.value)==null?void 0:b.getBoundingClientRect(),l=ze.width.value,o=($==null?void 0:$.value)||0,d=l-l+(o-o);return a?ze.height.value-a.top+d:null}),m=S(()=>gt(f.value)),vt=S(()=>`height: 100%; cursor: ${s.value?"default":_.value?"grabbing":"grab"}`);U(s,a=>{_e.value=a,M("is-loading",a)}),U(V,a=>{if(a){if(a.getTime()===ne.value.timestamp)return;a==null||a.setSeconds(0,0),Te(a)}}),U(be.y,(a,l)=>{if(_.value&&a!==l&&h.value){let o=Math.abs(a-l);a<l&&(o=o*-1),h.value.scrollTop=h.value.scrollTop-=o}}),U(A.isScrolling,a=>{M("is-scrolling",a),!a&&O.value&&(O.value=!1)}),U(A.y,(a,l)=>{var b,x;if(ke(),a===0&&de(-C.value.length),a!==l)if(a===0)z.value={timestamp:ne.value.timestamp,live:!0};else{const Q=(a-l)*m.value.timeMsPerPx,L=O.value?z.value.timestamp:z.value.timestamp-Q;z.value={timestamp:L,live:!1}}const d=(((b=h.value)==null?void 0:b.scrollHeight)||0)-(((x=h.value)==null?void 0:x.clientHeight)||0)-r.OFFSET*r.HEIGHT;a>=d&&de(r.OFFSET)}),U(f,async()=>{await He(),A.y.value>0&&Te(z.value.timestamp,"auto",!0)});const Le=a=>{var o;const l=(dt.value||((o=h.value)==null?void 0:o.clientHeight)||0)+r.OFFSET*r.HEIGHT;a!==void 0?c.value+a*r.HEIGHT>=l&&(c.value+=a*r.HEIGHT):c.value=l},de=(a,l,o)=>{var Q;if(a===0)return;const d=Math.abs(a);let b=H.value.length-d,x=a<0;if(l){x||(x=!0,a=-a);for(let L=0;L<d;L++){const I=H.value[0],ve=I.index,W=I.timestamp,X=ve-1,Z={index:X,format:m.value.type,timestamp:W+m.value.timeMsPerTick,label:X%m.value.labelInterval==0};H.value.unshift(Z)}}if(Le(a),x)b!==0&&d===1?H.value.pop():H.value.splice(b,d),C.value=[];else{const L=(((Q=h.value)==null?void 0:Q.clientHeight)||0)+r.OFFSET*r.HEIGHT,I=Math.ceil(L/r.HEIGHT),ve=H.value.length>=I?0:I-H.value.length+1;for(let W=0;W<d;W++){const X=H.value[H.value.length-1],pe=X.index+1,Ge={index:pe,format:m.value.type,timestamp:X.timestamp-m.value.timeMsPerTick,label:pe%m.value.labelInterval==0};W>=ve&&C.value.push(Ge),H.value.push(Ge)}}},pt=a=>{let l;a&&typeof a!="number"&&(a=a.getTime()),a||(a=T.value.getTime());const o=H.value.map(x=>x.timestamp),d=jt(o,a),b=H.value.find(x=>x.timestamp===d.timestamp);return b&&(l={...b}),l},ft=a=>{typeof a!="number"&&(a=a.getTime());const l=ne.value.timestamp-a,o=new Date(ne.value.timestamp-l);return{y:l/m.value.timeMsPerTick*r.HEIGHT,timestamp:o.getTime()}},gt=a=>{switch(a){case 1:return ot;case 2:return lt;case 3:return at;case 4:return tt}return et},ht=a=>new Promise(l=>{var X;xt();let o=T.value.getTime();a&&(o=typeof a=="object"?a.getTime():a);const d=r.TIME_OFFSET*m.value.timeMsPerTick,b=new Date(o+d),Q=yt(b).date.getTime(),L=Math.ceil(c.value/r.HEIGHT);for(let Z=0;Z<L;Z++){const pe={index:Z,format:m.value.type,timestamp:Q-Z*m.value.timeMsPerTick,label:Z%m.value.labelInterval==0};H.value.push(pe)}const I=pt(o);I&&(K.value=I.timestamp-o,u.value=I,u.value.timestamp=o);let W=(((X=u.value)==null?void 0:X.index)||0)*r.HEIGHT-r.TIME_OFFSET*r.HEIGHT;K.value<0?W+=K.value/m.value.timeMsPerPx:K.value>0&&(W-=K.value/m.value.timeMsPerPx),p.value=-(r.HEIGHT/2)-W,l()}),xt=()=>{v.value=0,Y.value=0,E.value=0,D.value=0,H.value=[]},yt=a=>{switch(m.value.type){case"seconds":return Nt(a);case"two-minutes":return At(a);case"fifteen-minutes":return Bt(a);case"thirty-minutes":return Gt(a);case"hours":return Lt(a)}},Te=async(a,l="smooth",o=!1)=>{var b;if(a===0){(b=h.value)==null||b.scrollTo({top:0,behavior:"smooth"});return}O.value=o;const d=ft(a).y;if(d>=600){const x=r.OFFSET*m.value.timeMsPerTick,Q=x/m.value.timeMsPerPx,L=typeof a=="object"?a.getTime():a;await He(!0,L+x),O.value=!0,z.value.timestamp=L,$e(()=>{var I;return(I=h.value)==null?void 0:I.scrollTo({top:Q,behavior:l})});return}$e(()=>{var x;return(x=h.value)==null?void 0:x.scrollTo({top:d,behavior:l})})},He=async(a,l)=>new Promise(o=>{s.value=!0;const d=Date.now(),b=setInterval(async()=>{Rt(new Date).date.getTime()-d>=999&&(clearInterval(b),le.value=new Date,T.value=new Date,Pt(),wt(),await ht(l),s.value=!1,o())},1)}),_t=()=>{clearInterval(we),clearInterval(Pe)},bt=()=>{T.value=new Date,D.value++,A.y.value===0?(E.value=D.value,z.value={timestamp:T.value.getTime(),live:!0}):A.y.value>0&&!F.value&&(E.value++,z.value={timestamp:z.value.timestamp+1e3,live:!1})},wt=()=>{clearInterval(we),we=setInterval(bt,1e3)},Pt=()=>{clearInterval(Pe),Pe=setInterval(St,m.value.timeMsPerTick)},St=()=>{s.value||(le.value=new Date,Y.value++,A.y.value===0?(de(Y.value-v.value,!0),u.value&&(u.value.index-=Y.value-v.value),v.value=Y.value):A.y.value>0&&!F.value&&(de(1,!0),v.value++,u.value&&u.value.index--))},ke=()=>{clearTimeout(Oe),Oe=setTimeout(()=>{F.value=!1},500),F.value=!0};return Ne(()=>{P.value==="light"?oe.value="#5b5b5b":oe.value="#888888"}),je(()=>{Le(),He()}),Tt(()=>{_t()}),(a,l)=>(n(),y("div",{ref_key:"timelineComponent",ref:ee,class:"relative h-full w-full"},[w(De,null,{default:k(()=>[ae(w(te,{disabled:t(s),icon:t(Vt),transition:"fade-transition",position:"absolute",location:"bottom right",class:"timeline-btn",style:G(`transition: all .3s ease-out; ${t(z).live?"":"right: 100px !important;"}`)},null,8,["disabled","icon","style"]),[[ce,t(ye)&&!t(ie)]])]),_:1}),w(De,null,{default:k(()=>[ae(w(te,{disabled:t(s),icon:t(We),transition:"fade-transition",position:"absolute",location:"bottom right",class:"timeline-btn",onClick:l[0]||(l[0]=o=>Te(0))},null,8,["disabled","icon"]),[[ce,!t(z).live]])]),_:1}),g("div",oa,[w(Yt,{active:t(s),indeterminate:t(s),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"])]),g("div",{class:"timeline-annotation",style:G(t(nt))},[g("div",{ref:"annotationLabel",class:"timeline-annotation-label",style:G(t(it))},[t(s)?(n(),R(Ve,{key:0,indeterminate:"",color:"white",size:"10",width:"2"})):(n(),y("div",sa,q(t(z).live?"LIVE":t(ue)(t(z).timestamp,"HH:mm:ss")),1))],4)],4),g("div",{ref_key:"timeline",ref:h,class:"timeline hide-scrollbar disable-overflow-scroll w-full relative",style:G(t(vt))},[t(se)?J("",!0):(n(),y("div",ia,ua)),a.segment==="0"?(n(),y("div",{key:1,class:"relative h-full",style:G(t(se)?"":"top: -100px")},[g("div",{class:"timeline-scale",style:G(t(ct))},null,4),(n(!0),y(Fe,null,Ce(t(H),(o,d)=>(n(),y("div",{key:o.index,"data-tick-index":o.index,class:"tick-container flex justify-center items-center absolute",style:G(`${t(mt)}; top: ${t(p)+t(ut)+d*t(r).HEIGHT}px`)},[g("div",{"data-tick-index":`${o.index}`,class:"tick-line relative"},[o.label&&!t(s)?(n(),y("div",da,q(t(ue)(o.timestamp,t(rt)?"HH:mm:ss":"HH:mm")),1)):J("",!0)],8,ma)],12,ca))),128))],4)):(n(),y("div",va))],4)],512))}}),fa=xe(pa,[["__scopeId","data-v-e8bb6d1c"]]),ga={class:"vue-ios13-segmented-control"},ha=["id","name","value"],xa=["for"],ya=me({__name:"VSegmentedControl",props:{modelValue:{},segments:{}},emits:["update:modelValue"],setup(e,{emit:N}){const j=e,M=N,P=i(0),{modelValue:V,segments:$}=he(j),f=S({get(){return V.value},set(p){M("update:modelValue",p)}}),E=S(()=>$.value.findIndex(p=>p.id===V.value)),D=S(()=>{let p=P.value*E.value;return P.value*E.value<0&&(p=0),`transform:translateX(${p}px)`}),T=()=>{$e(()=>{const p=document.querySelector(`input[type='radio'][value='${V.value}']`);P.value=p&&p.offsetWidth})};return U([$,V],()=>{T()},{deep:!0}),Zt(window,"resize",T),(p,u)=>(n(),y("div",ga,[g("span",{class:"selection-pill",style:G(t(D))},null,4),(n(!0),y(Fe,null,Ce(t($),s=>(n(),y("div",{key:s.id,class:"option"},[ae(g("input",{id:s.id,"onUpdate:modelValue":u[0]||(u[0]=F=>fe(f)?f.value=F:null),type:"radio",name:s.title,value:s.id},null,8,ha),[[$t,t(f)]]),g("label",{for:s.id,class:"w-full cursor-pointer"},[g("span",{style:G(t(f)===s.id?"color: var(--color-segment-text);":"color: var(--color-segment-disabled-text)")},q(s.title),5)],8,xa)]))),128))]))}}),_a={key:0,class:"w-full flex items-center justify-center mt-10"},ba={class:"flex flex-col justify-center items-center"},wa=me({__name:"VCameraCarousel",props:{showLabel:{type:Boolean,default:!1}},setup(e){const N=new Je,j=Ke(),M=e,{showLabel:P}=he(M),V=i({page:1,pageSize:-1}),{data:$,isLoading:f}=N.getCamerasQuery(V),E=S(()=>{var D;return(D=$.value)==null?void 0:D.result.findIndex(T=>T.name===j.params.cameraname)});return(D,T)=>{const p=Ye,u=Et("router-link");return t(f)?(n(),y("div",_a,[w(Ve,{color:"#df2a4c",indeterminate:""})])):(n(),R(ea,{key:1,"model-value":t(E),class:"mt-3","show-arrows":"",mandatory:"force"},{default:k(()=>{var s;return[(n(!0),y(Fe,null,Ce(((s=t($))==null?void 0:s.result)||[],(F,C)=>(n(),R(Kt,{key:F.name,value:C},{default:k(({toggle:O,isSelected:v})=>[g("div",ba,[w(u,{to:`/cameras/${F.name}`,onClick:O},{default:k(()=>[ae(w(p,{class:"ma-3","current-camera":F.name,"border-radius":8,border:!1,target:"snapshot",style:{width:"140px"}},null,8,["current-camera"]),[[ta]])]),_:2},1032,["to","onClick"]),t(P)?(n(),y("div",{key:0,class:Ee(["add-transition slide-item-title",{"slide-item-title-active":v}])},q(F.name||D.$t("general.loading")),3)):J("",!0)])]),_:2},1032,["value"]))),128))]}),_:1},8,["model-value"]))}}}),Pa=xe(wa,[["__scopeId","data-v-ec891350"]]),Sa=["onClick"],Ta=me({__name:"VCalendar",props:{showPicker:{type:Boolean,default:!1},showButton:{type:Boolean,default:!1},transitionTrigger:{type:Boolean,default:!0},loading:{type:Boolean,default:!0}},emits:["dateChanged","calendarOpen"],setup(e,{emit:N}){const j=e,M=N,{loading:P}=he(j),{theme:V}=Qe(Ue()),$=i(!1),f=i(new Date),E=Ze();U(f,(u,s)=>{u?M("dateChanged",f.value):f.value=s});const D=()=>{$.value=!1,M("calendarOpen",!1)},T=()=>{$.value=!0,M("calendarOpen",!0)},p=u=>{P.value||u()};return(u,s)=>{const F=la;return n(),y("div",null,[w(F,{modelValue:t(f),"onUpdate:modelValue":s[0]||(s[0]=C=>fe(f)?f.value=C:null),"is-required":"",color:"gray","is-dark":t(V)==="dark","max-date":new Date,mode:"dateTime",is24hr:"",onPopoverDidShow:T,onPopoverDidHide:D},{default:k(({togglePopover:C})=>[w(De,null,{default:k(()=>[u.showButton?ae((n(),R(te,{key:0,disabled:t(P),transition:"fade-transition",position:"fixed",location:"bottom left",class:"date-fixed-btn rounded-xl",onClick:O=>p(C)},{default:k(()=>[ge(q(t(ue)(t(f))),1)]),_:2},1032,["disabled","onClick"])),[[ce,u.transitionTrigger]]):J("",!0)]),_:2},1024),u.showPicker?(n(),y("div",{key:0,onClick:O=>p(C)},[g("span",{class:"text-sm cursor-pointer",style:G(t(P)?"color: #a8a8a8;":"")},q(t(E).width.value<875?t(ue)(t(f),"ddd., D. MMM."):t(ue)(t(f))),5),w(re,{size:"20",color:t(P)?"#a8a8a8":"#4a4a4a",class:"cursor-pointer"},{default:k(()=>[ge(q(t($)?t(We):t(zt)),1)]),_:1},8,["color"])],8,Sa)):J("",!0)]),_:1},8,["modelValue","is-dark","max-date"])])}}}),Ha=xe(Ta,[["__scopeId","data-v-818d397f"]]),ka={key:0,class:"flex items-center justify-center w-full h-full"},$a={key:1,class:"w-full h-full"},Ea={class:"absolute z-5 left-1 top-2"},Da={class:"left-content"},Fa={key:0,class:"timeline-toggle"},Ca={class:"flex flex-col items-center h-full sidebar camera-no-outside"},Va={key:0,class:"sidebar-header p-1 relative"},za={class:"flex flex-row mb-2"},Oa={class:"w-1/2 flex justify-center items-center"},Ma={class:"w-1/2 flex justify-center items-center"},Ia=me({__name:"Camera",setup(e){const N=new Je,j=Ke(),{desktopActive:M,mobileActive:P,tabletActive:V,extraSmallMobileActive:$}=qe(),{t:f}=Wt.global,E=i(!1),D=i(new Date),T=i(),p=i(0),u=i("0"),s=i(!1),F=i(null),C=i(!1),O=i(!1),v=i(1),Y=Dt([{title:f("views.camera.timeline"),id:"0"},{title:f("views.camera.detections"),id:"1"}]),le=Jt(T),{isOutside:K}=Xe(F),B=S(()=>j.params.cameraname),{data:oe,isLoading:z}=N.getCameraQuery(B);U(v,()=>{});const h=()=>{v.value!==5&&(O.value||(v.value=(v.value||1)+1))},ee=()=>{v.value!==1&&(O.value||(v.value=(v.value||1)-1))};return Ne(async()=>{v.value=1}),je(async()=>{setTimeout(()=>{T.value=document.querySelector(".player-container-main")},100)}),(H,c)=>{const se=Ha,ye=Ye,_e=Pa,be=ya,ie=fa;return n(),y("main",{class:Ee(["w-full h-full",{"p-3":!t(P)}])},[!t(oe)||t(z)?(n(),y("div",ka,[w(Ve,{color:"#df2a4c",indeterminate:""})])):(n(),y("div",$a,[ae((n(),R(se,{key:t(B),layout:"text","show-button":"","transition-trigger":!t(K)||t(E),"max-date":new Date,loading:t(C),onDateChanged:c[0]||(c[0]=_=>D.value=_),onCalendarOpen:c[1]||(c[1]=_=>E.value=_)},null,8,["transition-trigger","max-date","loading"])),[[ce,t(P)||t(E)]]),g("div",{class:Ee(["relative z-5 w-full h-full flex flex-col md:flex-row overflow-hidden",{"gap-4":t(M)}])},[g("div",Ea,[t($)?(n(),R(te,{key:0,size:"32",icon:"",density:"compact",variant:"elevated",class:"no-drag camera-no-outside opacity-50",onClick:c[2]||(c[2]=Ft(_=>H.$router.push("/cameras"),["prevent"]))},{default:k(()=>[w(re,{size:"24"},{default:k(()=>[ge(q(t(Be)),1)]),_:1})]),_:1})):J("",!0)]),g("div",Da,[(n(),R(ye,{key:t(B),"show-title":"",settings:"",share:"",snapshot:"",target:"stream",zoom:(t(P)||t(V))&&t(s),"current-camera":t(oe).name,"timeline-scrolling":t(O)||t(C),"border-radius":t(P)?0:3,"zoom-model":t(v),"enable-control":"",shortcuts:"",motions:"",objects:"",zones:"","auto-hide-control":!1,"source-role":"high-resolution",onResize:c[3]||(c[3]=_=>p.value=_),onZoomIn:h,onZoomOut:ee},null,8,["zoom","current-camera","timeline-scrolling","border-radius","zoom-model"])),(n(),R(Ct,null,[ae(w(_e,{"show-label":"","focus-index":""},null,512),[[ce,!t(P)]])],1024))]),g("div",{class:"right-content",style:G(t(V)?`height: ${t(le).height.value}px; width: ${t(le).width.value/3}px; right: ${t(s)?0:-2-t(le).width.value/3}px`:"")},[t(V)?(n(),y("div",Fa,[w(te,{class:"camera-no-outside",color:"#212121",size:"30",variant:"elevated",icon:"",onClick:c[4]||(c[4]=_=>s.value=!t(s))},{default:k(()=>[w(re,{color:"#fff",size:"20"},{default:k(()=>[ge(q(t(s)?t(Ot):t(Be)),1)]),_:1})]),_:1})])):J("",!0),g("div",Ca,[!t(P)&&!t(V)?(n(),y("div",Va,[g("div",za,[g("div",Oa,[(n(),R(se,{key:t(B),loading:t(C),layout:"text","show-picker":"",onDateChanged:c[5]||(c[5]=_=>D.value=_)},null,8,["loading"]))]),g("div",Ma,[(n(),R(aa,{key:t(B),modelValue:t(v),"onUpdate:modelValue":c[6]||(c[6]=_=>fe(v)?v.value=_:null),disabled:t(C),readonly:"",min:"1",max:"5",step:"1","track-size":"1","thumb-size":"10","hide-details":""},{prepend:k(()=>[w(te,{size:"28",density:"compact",variant:"text",disabled:t(v)==1,icon:"",onClick:ee},{default:k(()=>[w(re,{size:"20",icon:t(Mt)},null,8,["icon"])]),_:1},8,["disabled"])]),append:k(()=>[w(te,{size:"28",density:"compact",variant:"text",disabled:t(v)==5,icon:"",onClick:h},{default:k(()=>[w(re,{size:"20",icon:t(It)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1},8,["modelValue","disabled"]))])]),(n(),R(be,{key:t(B),modelValue:t(u),"onUpdate:modelValue":c[7]||(c[7]=_=>fe(u)?u.value=_:null),segments:t(Y)},null,8,["modelValue","segments"]))])):J("",!0),(n(),R(ie,{key:t(B),ref_key:"timeline",ref:F,"date-model":t(D),"zoom-model":t(v),modifier:t(p),segment:t(u),onIsScrolling:c[8]||(c[8]=_=>O.value=_),onIsLoading:c[9]||(c[9]=_=>C.value=_)},null,8,["date-model","zoom-model","modifier","segment"]))])],4)],2)]))],2)}}}),_l=xe(Ia,[["__scopeId","data-v-6e567cc6"]]);export{_l as default};
|
|
1
|
+
import{F as me,t as he,r as i,c as S,w as U,a3 as Ne,x as je,a0 as Tt,e as n,f as y,M as w,R as k,g as ae,v as ce,u as t,X as G,j as g,O as R,T as q,l as J,N as Fe,Q as Ce,y as $e,ai as Ht,aj as kt,ap as $t,i as fe,J as Et,n as Ee,V as ge,b as Dt,q as Ft,aq as Ct}from"./@vue-CIFymae3.js";import{D as Vt,E as We,F as zt,B as Be,G as Ot,H as Mt,I as It}from"./@mdi-jq8isxax.js";import{a as Ue,f as qe,j as ue,k as Rt,l as Lt,m as Gt,n as Bt,o as At,p as Nt,q as jt,d as xe,i as Wt}from"./main-C2N2tbw_.js";import{s as Qe}from"./pinia-B_gX_pHL.js";import{l as Ut,m as qt,n as Xe,p as Qt,q as Xt,d as Ze,s as Ae,t as Zt,k as Jt}from"./@vueuse-DbPVvJxZ.js";import{b as te,B as De,C as Yt,V as Ve,D as Kt,E as ea,R as ta,e as re,F as aa}from"./vuetify-B_vGZaGi.js";import{C as Je,_ as Ye}from"./VPlayer-B53-f3Ad.js";import{u as Ke}from"./vue-router-C55prZ5l.js";import{D as la}from"./v-calendar-CbEkwI4D.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue3-toastify-Cy6dUyKO.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./@tanstack-DPd4-F0t.js";import"./vee-validate-DHjm38DY.js";import"./@vee-validate-CmTVjJBY.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./nprogress-QK5AFhFr.js";import"./@xterm-LO7TPXYg.js";import"./@popperjs-BQBsAJpH.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./plugins-Cs7BJHj-.js";import"./draggabilly-YEGzHR3_.js";import"./get-size-D1dS-IaP.js";import"./unidragger-91TYirAP.js";import"./ev-emitter-t78oQA8k.js";var r=(e=>(e[e.HEIGHT=8]="HEIGHT",e[e.WIDTH=85]="WIDTH",e.COLOR="#000000",e[e.OFFSET=50]="OFFSET",e[e.TIME_OFFSET=15]="TIME_OFFSET",e[e.TIME_START_POSITION=15]="TIME_START_POSITION",e[e.MAX_SCROLL_PX=720]="MAX_SCROLL_PX",e))(r||{}),et=(e=>(e.type="seconds",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=15e3]="duration",e[e.timeMsFactor=15e3]="timeMsFactor",e[e.timeMsPerTick=1e3]="timeMsPerTick",e[e.timeMsPerPx=125]="timeMsPerPx",e[e.pxPerSecond=8]="pxPerSecond",e))(et||{}),tt=(e=>(e.type="two-minutes",e[e.bigTickInterval=4]="bigTickInterval",e[e.labelInterval=8]="labelInterval",e[e.duration=12e4]="duration",e[e.timeMsFactor=12e4]="timeMsFactor",e[e.timeMsPerTick=15e3]="timeMsPerTick",e[e.timeMsPerPx=1875]="timeMsPerPx",e[e.pxPerSecond=.5333333333333333]="pxPerSecond",e))(tt||{}),at=(e=>(e.type="fifteen-minutes",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=9e5]="duration",e[e.timeMsFactor=9e5]="timeMsFactor",e[e.timeMsPerTick=6e4]="timeMsPerTick",e[e.timeMsPerPx=7500]="timeMsPerPx",e[e.pxPerSecond=.13333333333333333]="pxPerSecond",e))(at||{}),lt=(e=>(e.type="thirty-minutes",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=9]="labelInterval",e[e.duration=18e5]="duration",e[e.timeMsFactor=18e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(lt||{}),ot=(e=>(e.type="hours",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=18]="labelInterval",e[e.duration=36e5]="duration",e[e.timeMsFactor=36e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(ot||{});const st=e=>(Ht("data-v-e8bb6d1c"),e=e(),kt(),e),oa={class:"absolute z-10 top-0 left-0 right-0 w-full"},sa={key:1},ia={key:0,class:"timeline-gradient-bg-top"},na=st(()=>g("div",{class:"timeline-gradient-bg-dark-top"},null,-1)),ra=st(()=>g("div",{class:"timeline-gradient-bg-white-top"},null,-1)),ua=[na,ra],ca=["data-tick-index"],ma=["data-tick-index"],da={key:0,class:"tick-label"},va={key:2},pa=me({__name:"VLiveTimeline",props:{zoomModel:{default:1},dateModel:{default:()=>new Date},modifier:{default:0},segment:{default:"0"}},emits:["is-loading","is-scrolling"],setup(e,{emit:N}){const j=e,M=N,{theme:P}=Qe(Ue()),{dateModel:V,modifier:$,zoomModel:f}=he(j),E=i(0),D=i(0),T=i(new Date),p=i(0),u=i(),s=i(!1),F=i(!1),C=i([]),O=i(!1),v=i(0),Y=i(0),le=i(new Date),K=i(0),B=i(0),oe=i("#5b5b5b"),z=i({timestamp:Date.now(),live:!0}),h=i(null),ee=i(null),H=i([]),c=i(0),{tabletActive:se,mobileActive:ye}=qe(),_e=Ut(h),be=qt({touch:!1,target:ee}),{isOutside:ie}=Xe(ee),{pressed:_}=Qt({touch:!1,target:ee}),A=Xt(h),ze=Ze();Ae("ArrowDown",a=>{ie.value||(a.preventDefault(),ke(),h.value&&h.value.scrollTop++)}),Ae("ArrowUp",a=>{ie.value||(a.preventDefault(),ke(),h.value&&h.value.scrollTop--)});let we,Pe,Oe;const Me=S(()=>A.y.value>0?"#0173ff":"#df2a4c"),it=S(()=>{let a=`transition: all .2s ease-out; background-color: ${Me.value};`;return s.value?a+="width: 20px; left: 9px; border-radius: 30px":m.value.type==="seconds"?a+="width: 60px; left: 9px;":A.y.value===0?a+="width: 40px; left: 9px;":a+="width: 55px; left: 9px;",a}),nt=S(()=>`transition: all .5s ease-out; position: absolute; top: ${ne.value.px}px; background-color: ${Me.value};`),ne=S(()=>{var d;const a=T.value.getTime(),l=r.TIME_OFFSET*r.HEIGHT-1;let o=((d=u.value)==null?void 0:d.timestamp)||a;return A.y.value===0&&(o=a),u.value&&(u.value.timestamp=o),{px:l,timestamp:o}}),rt=S(()=>m.value.type==="seconds"),Se=S(()=>r.HEIGHT*m.value.labelInterval),Ie=S(()=>m.value.pxPerSecond*E.value+B.value),ut=S(()=>m.value.pxPerSecond*E.value-v.value*r.HEIGHT-3+B.value),ct=S(()=>`transition: all .5s ease-out; mask-image: url('data:image/svg+xml,${Re.value}'); -webkit-mask-image: url('data:image/svg+xml,${Re.value}'); mask-size: ${r.WIDTH}px ${Se.value}px; -webkit-mask-size: ${r.WIDTH}px ${Se.value}px; width: ${r.WIDTH}px; height: ${c.value}px; mask-position: 0px ${p.value+Ie.value}px; -webkit-mask-position: 0px ${p.value+Ie.value}px`),Re=S(()=>{let a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r.WIDTH} ${Se.value}" vector-effect="non-scaling-stroke" stroke-width="${1/(window.devicePixelRatio||1)}px" shape-rendering="crispEdges">`;if(!s.value)for(let l=0;l<m.value.labelInterval;l++){const o=l%m.value.labelInterval==0,d=0,b=o?4:l%m.value.bigTickInterval===0?2:1,x=l*r.HEIGHT+r.HEIGHT/2;a+=`<line x1="${d}" y1="${x}" x2="${2*b}" y2="${x}" stroke="${oe.value}" stroke-opacity="100%"/>`}return a+="</svg>",encodeURIComponent(a)}),mt=S(()=>`transition: top .5s ease-out; height: ${r.HEIGHT}px;`),dt=S(()=>{var b;const a=(b=h.value)==null?void 0:b.getBoundingClientRect(),l=ze.width.value,o=($==null?void 0:$.value)||0,d=l-l+(o-o);return a?ze.height.value-a.top+d:null}),m=S(()=>gt(f.value)),vt=S(()=>`height: 100%; cursor: ${s.value?"default":_.value?"grabbing":"grab"}`);U(s,a=>{_e.value=a,M("is-loading",a)}),U(V,a=>{if(a){if(a.getTime()===ne.value.timestamp)return;a==null||a.setSeconds(0,0),Te(a)}}),U(be.y,(a,l)=>{if(_.value&&a!==l&&h.value){let o=Math.abs(a-l);a<l&&(o=o*-1),h.value.scrollTop=h.value.scrollTop-=o}}),U(A.isScrolling,a=>{M("is-scrolling",a),!a&&O.value&&(O.value=!1)}),U(A.y,(a,l)=>{var b,x;if(ke(),a===0&&de(-C.value.length),a!==l)if(a===0)z.value={timestamp:ne.value.timestamp,live:!0};else{const Q=(a-l)*m.value.timeMsPerPx,L=O.value?z.value.timestamp:z.value.timestamp-Q;z.value={timestamp:L,live:!1}}const d=(((b=h.value)==null?void 0:b.scrollHeight)||0)-(((x=h.value)==null?void 0:x.clientHeight)||0)-r.OFFSET*r.HEIGHT;a>=d&&de(r.OFFSET)}),U(f,async()=>{await He(),A.y.value>0&&Te(z.value.timestamp,"auto",!0)});const Le=a=>{var o;const l=(dt.value||((o=h.value)==null?void 0:o.clientHeight)||0)+r.OFFSET*r.HEIGHT;a!==void 0?c.value+a*r.HEIGHT>=l&&(c.value+=a*r.HEIGHT):c.value=l},de=(a,l,o)=>{var Q;if(a===0)return;const d=Math.abs(a);let b=H.value.length-d,x=a<0;if(l){x||(x=!0,a=-a);for(let L=0;L<d;L++){const I=H.value[0],ve=I.index,W=I.timestamp,X=ve-1,Z={index:X,format:m.value.type,timestamp:W+m.value.timeMsPerTick,label:X%m.value.labelInterval==0};H.value.unshift(Z)}}if(Le(a),x)b!==0&&d===1?H.value.pop():H.value.splice(b,d),C.value=[];else{const L=(((Q=h.value)==null?void 0:Q.clientHeight)||0)+r.OFFSET*r.HEIGHT,I=Math.ceil(L/r.HEIGHT),ve=H.value.length>=I?0:I-H.value.length+1;for(let W=0;W<d;W++){const X=H.value[H.value.length-1],pe=X.index+1,Ge={index:pe,format:m.value.type,timestamp:X.timestamp-m.value.timeMsPerTick,label:pe%m.value.labelInterval==0};W>=ve&&C.value.push(Ge),H.value.push(Ge)}}},pt=a=>{let l;a&&typeof a!="number"&&(a=a.getTime()),a||(a=T.value.getTime());const o=H.value.map(x=>x.timestamp),d=jt(o,a),b=H.value.find(x=>x.timestamp===d.timestamp);return b&&(l={...b}),l},ft=a=>{typeof a!="number"&&(a=a.getTime());const l=ne.value.timestamp-a,o=new Date(ne.value.timestamp-l);return{y:l/m.value.timeMsPerTick*r.HEIGHT,timestamp:o.getTime()}},gt=a=>{switch(a){case 1:return ot;case 2:return lt;case 3:return at;case 4:return tt}return et},ht=a=>new Promise(l=>{var X;xt();let o=T.value.getTime();a&&(o=typeof a=="object"?a.getTime():a);const d=r.TIME_OFFSET*m.value.timeMsPerTick,b=new Date(o+d),Q=yt(b).date.getTime(),L=Math.ceil(c.value/r.HEIGHT);for(let Z=0;Z<L;Z++){const pe={index:Z,format:m.value.type,timestamp:Q-Z*m.value.timeMsPerTick,label:Z%m.value.labelInterval==0};H.value.push(pe)}const I=pt(o);I&&(K.value=I.timestamp-o,u.value=I,u.value.timestamp=o);let W=(((X=u.value)==null?void 0:X.index)||0)*r.HEIGHT-r.TIME_OFFSET*r.HEIGHT;K.value<0?W+=K.value/m.value.timeMsPerPx:K.value>0&&(W-=K.value/m.value.timeMsPerPx),p.value=-(r.HEIGHT/2)-W,l()}),xt=()=>{v.value=0,Y.value=0,E.value=0,D.value=0,H.value=[]},yt=a=>{switch(m.value.type){case"seconds":return Nt(a);case"two-minutes":return At(a);case"fifteen-minutes":return Bt(a);case"thirty-minutes":return Gt(a);case"hours":return Lt(a)}},Te=async(a,l="smooth",o=!1)=>{var b;if(a===0){(b=h.value)==null||b.scrollTo({top:0,behavior:"smooth"});return}O.value=o;const d=ft(a).y;if(d>=600){const x=r.OFFSET*m.value.timeMsPerTick,Q=x/m.value.timeMsPerPx,L=typeof a=="object"?a.getTime():a;await He(!0,L+x),O.value=!0,z.value.timestamp=L,$e(()=>{var I;return(I=h.value)==null?void 0:I.scrollTo({top:Q,behavior:l})});return}$e(()=>{var x;return(x=h.value)==null?void 0:x.scrollTo({top:d,behavior:l})})},He=async(a,l)=>new Promise(o=>{s.value=!0;const d=Date.now(),b=setInterval(async()=>{Rt(new Date).date.getTime()-d>=999&&(clearInterval(b),le.value=new Date,T.value=new Date,Pt(),wt(),await ht(l),s.value=!1,o())},1)}),_t=()=>{clearInterval(we),clearInterval(Pe)},bt=()=>{T.value=new Date,D.value++,A.y.value===0?(E.value=D.value,z.value={timestamp:T.value.getTime(),live:!0}):A.y.value>0&&!F.value&&(E.value++,z.value={timestamp:z.value.timestamp+1e3,live:!1})},wt=()=>{clearInterval(we),we=setInterval(bt,1e3)},Pt=()=>{clearInterval(Pe),Pe=setInterval(St,m.value.timeMsPerTick)},St=()=>{s.value||(le.value=new Date,Y.value++,A.y.value===0?(de(Y.value-v.value,!0),u.value&&(u.value.index-=Y.value-v.value),v.value=Y.value):A.y.value>0&&!F.value&&(de(1,!0),v.value++,u.value&&u.value.index--))},ke=()=>{clearTimeout(Oe),Oe=setTimeout(()=>{F.value=!1},500),F.value=!0};return Ne(()=>{P.value==="light"?oe.value="#5b5b5b":oe.value="#888888"}),je(()=>{Le(),He()}),Tt(()=>{_t()}),(a,l)=>(n(),y("div",{ref_key:"timelineComponent",ref:ee,class:"relative h-full w-full"},[w(De,null,{default:k(()=>[ae(w(te,{disabled:t(s),icon:t(Vt),transition:"fade-transition",position:"absolute",location:"bottom right",class:"timeline-btn",style:G(`transition: all .3s ease-out; ${t(z).live?"":"right: 100px !important;"}`)},null,8,["disabled","icon","style"]),[[ce,t(ye)&&!t(ie)]])]),_:1}),w(De,null,{default:k(()=>[ae(w(te,{disabled:t(s),icon:t(We),transition:"fade-transition",position:"absolute",location:"bottom right",class:"timeline-btn",onClick:l[0]||(l[0]=o=>Te(0))},null,8,["disabled","icon"]),[[ce,!t(z).live]])]),_:1}),g("div",oa,[w(Yt,{active:t(s),indeterminate:t(s),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"])]),g("div",{class:"timeline-annotation",style:G(t(nt))},[g("div",{ref:"annotationLabel",class:"timeline-annotation-label",style:G(t(it))},[t(s)?(n(),R(Ve,{key:0,indeterminate:"",color:"white",size:"10",width:"2"})):(n(),y("div",sa,q(t(z).live?"LIVE":t(ue)(t(z).timestamp,"HH:mm:ss")),1))],4)],4),g("div",{ref_key:"timeline",ref:h,class:"timeline hide-scrollbar disable-overflow-scroll w-full relative",style:G(t(vt))},[t(se)?J("",!0):(n(),y("div",ia,ua)),a.segment==="0"?(n(),y("div",{key:1,class:"relative h-full",style:G(t(se)?"":"top: -100px")},[g("div",{class:"timeline-scale",style:G(t(ct))},null,4),(n(!0),y(Fe,null,Ce(t(H),(o,d)=>(n(),y("div",{key:o.index,"data-tick-index":o.index,class:"tick-container flex justify-center items-center absolute",style:G(`${t(mt)}; top: ${t(p)+t(ut)+d*t(r).HEIGHT}px`)},[g("div",{"data-tick-index":`${o.index}`,class:"tick-line relative"},[o.label&&!t(s)?(n(),y("div",da,q(t(ue)(o.timestamp,t(rt)?"HH:mm:ss":"HH:mm")),1)):J("",!0)],8,ma)],12,ca))),128))],4)):(n(),y("div",va))],4)],512))}}),fa=xe(pa,[["__scopeId","data-v-e8bb6d1c"]]),ga={class:"vue-ios13-segmented-control"},ha=["id","name","value"],xa=["for"],ya=me({__name:"VSegmentedControl",props:{modelValue:{},segments:{}},emits:["update:modelValue"],setup(e,{emit:N}){const j=e,M=N,P=i(0),{modelValue:V,segments:$}=he(j),f=S({get(){return V.value},set(p){M("update:modelValue",p)}}),E=S(()=>$.value.findIndex(p=>p.id===V.value)),D=S(()=>{let p=P.value*E.value;return P.value*E.value<0&&(p=0),`transform:translateX(${p}px)`}),T=()=>{$e(()=>{const p=document.querySelector(`input[type='radio'][value='${V.value}']`);P.value=p&&p.offsetWidth})};return U([$,V],()=>{T()},{deep:!0}),Zt(window,"resize",T),(p,u)=>(n(),y("div",ga,[g("span",{class:"selection-pill",style:G(t(D))},null,4),(n(!0),y(Fe,null,Ce(t($),s=>(n(),y("div",{key:s.id,class:"option"},[ae(g("input",{id:s.id,"onUpdate:modelValue":u[0]||(u[0]=F=>fe(f)?f.value=F:null),type:"radio",name:s.title,value:s.id},null,8,ha),[[$t,t(f)]]),g("label",{for:s.id,class:"w-full cursor-pointer"},[g("span",{style:G(t(f)===s.id?"color: var(--color-segment-text);":"color: var(--color-segment-disabled-text)")},q(s.title),5)],8,xa)]))),128))]))}}),_a={key:0,class:"w-full flex items-center justify-center mt-10"},ba={class:"flex flex-col justify-center items-center"},wa=me({__name:"VCameraCarousel",props:{showLabel:{type:Boolean,default:!1}},setup(e){const N=new Je,j=Ke(),M=e,{showLabel:P}=he(M),V=i({page:1,pageSize:-1}),{data:$,isLoading:f}=N.getCamerasQuery(V),E=S(()=>{var D;return(D=$.value)==null?void 0:D.result.findIndex(T=>T.name===j.params.cameraname)});return(D,T)=>{const p=Ye,u=Et("router-link");return t(f)?(n(),y("div",_a,[w(Ve,{color:"#df2a4c",indeterminate:""})])):(n(),R(ea,{key:1,"model-value":t(E),class:"mt-3","show-arrows":"",mandatory:"force"},{default:k(()=>{var s;return[(n(!0),y(Fe,null,Ce(((s=t($))==null?void 0:s.result)||[],(F,C)=>(n(),R(Kt,{key:F.name,value:C},{default:k(({toggle:O,isSelected:v})=>[g("div",ba,[w(u,{to:`/cameras/${F.name}`,onClick:O},{default:k(()=>[ae(w(p,{class:"ma-3","current-camera":F.name,"border-radius":8,border:!1,target:"snapshot",style:{width:"140px"}},null,8,["current-camera"]),[[ta]])]),_:2},1032,["to","onClick"]),t(P)?(n(),y("div",{key:0,class:Ee(["add-transition slide-item-title",{"slide-item-title-active":v}])},q(F.name||D.$t("general.loading")),3)):J("",!0)])]),_:2},1032,["value"]))),128))]}),_:1},8,["model-value"]))}}}),Pa=xe(wa,[["__scopeId","data-v-ec891350"]]),Sa=["onClick"],Ta=me({__name:"VCalendar",props:{showPicker:{type:Boolean,default:!1},showButton:{type:Boolean,default:!1},transitionTrigger:{type:Boolean,default:!0},loading:{type:Boolean,default:!0}},emits:["dateChanged","calendarOpen"],setup(e,{emit:N}){const j=e,M=N,{loading:P}=he(j),{theme:V}=Qe(Ue()),$=i(!1),f=i(new Date),E=Ze();U(f,(u,s)=>{u?M("dateChanged",f.value):f.value=s});const D=()=>{$.value=!1,M("calendarOpen",!1)},T=()=>{$.value=!0,M("calendarOpen",!0)},p=u=>{P.value||u()};return(u,s)=>{const F=la;return n(),y("div",null,[w(F,{modelValue:t(f),"onUpdate:modelValue":s[0]||(s[0]=C=>fe(f)?f.value=C:null),"is-required":"",color:"gray","is-dark":t(V)==="dark","max-date":new Date,mode:"dateTime",is24hr:"",onPopoverDidShow:T,onPopoverDidHide:D},{default:k(({togglePopover:C})=>[w(De,null,{default:k(()=>[u.showButton?ae((n(),R(te,{key:0,disabled:t(P),transition:"fade-transition",position:"fixed",location:"bottom left",class:"date-fixed-btn rounded-xl",onClick:O=>p(C)},{default:k(()=>[ge(q(t(ue)(t(f))),1)]),_:2},1032,["disabled","onClick"])),[[ce,u.transitionTrigger]]):J("",!0)]),_:2},1024),u.showPicker?(n(),y("div",{key:0,onClick:O=>p(C)},[g("span",{class:"text-sm cursor-pointer",style:G(t(P)?"color: #a8a8a8;":"")},q(t(E).width.value<875?t(ue)(t(f),"ddd., D. MMM."):t(ue)(t(f))),5),w(re,{size:"20",color:t(P)?"#a8a8a8":"#4a4a4a",class:"cursor-pointer"},{default:k(()=>[ge(q(t($)?t(We):t(zt)),1)]),_:1},8,["color"])],8,Sa)):J("",!0)]),_:1},8,["modelValue","is-dark","max-date"])])}}}),Ha=xe(Ta,[["__scopeId","data-v-818d397f"]]),ka={key:0,class:"flex items-center justify-center w-full h-full"},$a={key:1,class:"w-full h-full"},Ea={class:"absolute z-5 left-1 top-2"},Da={class:"left-content"},Fa={key:0,class:"timeline-toggle"},Ca={class:"flex flex-col items-center h-full sidebar camera-no-outside"},Va={key:0,class:"sidebar-header p-1 relative"},za={class:"flex flex-row mb-2"},Oa={class:"w-1/2 flex justify-center items-center"},Ma={class:"w-1/2 flex justify-center items-center"},Ia=me({__name:"Camera",setup(e){const N=new Je,j=Ke(),{desktopActive:M,mobileActive:P,tabletActive:V,extraSmallMobileActive:$}=qe(),{t:f}=Wt.global,E=i(!1),D=i(new Date),T=i(),p=i(0),u=i("0"),s=i(!1),F=i(null),C=i(!1),O=i(!1),v=i(1),Y=Dt([{title:f("views.camera.timeline"),id:"0"},{title:f("views.camera.detections"),id:"1"}]),le=Jt(T),{isOutside:K}=Xe(F),B=S(()=>j.params.cameraname),{data:oe,isLoading:z}=N.getCameraQuery(B);U(v,()=>{});const h=()=>{v.value!==5&&(O.value||(v.value=(v.value||1)+1))},ee=()=>{v.value!==1&&(O.value||(v.value=(v.value||1)-1))};return Ne(async()=>{v.value=1}),je(async()=>{setTimeout(()=>{T.value=document.querySelector(".player-container-main")},100)}),(H,c)=>{const se=Ha,ye=Ye,_e=Pa,be=ya,ie=fa;return n(),y("main",{class:Ee(["w-full h-full",{"p-3":!t(P)}])},[!t(oe)||t(z)?(n(),y("div",ka,[w(Ve,{color:"#df2a4c",indeterminate:""})])):(n(),y("div",$a,[ae((n(),R(se,{key:t(B),layout:"text","show-button":"","transition-trigger":!t(K)||t(E),"max-date":new Date,loading:t(C),onDateChanged:c[0]||(c[0]=_=>D.value=_),onCalendarOpen:c[1]||(c[1]=_=>E.value=_)},null,8,["transition-trigger","max-date","loading"])),[[ce,t(P)||t(E)]]),g("div",{class:Ee(["relative z-5 w-full h-full flex flex-col md:flex-row overflow-hidden",{"gap-4":t(M)}])},[g("div",Ea,[t($)?(n(),R(te,{key:0,size:"32",icon:"",density:"compact",variant:"elevated",class:"no-drag camera-no-outside opacity-50",onClick:c[2]||(c[2]=Ft(_=>H.$router.push("/cameras"),["prevent"]))},{default:k(()=>[w(re,{size:"24"},{default:k(()=>[ge(q(t(Be)),1)]),_:1})]),_:1})):J("",!0)]),g("div",Da,[(n(),R(ye,{key:t(B),"show-title":"",settings:"",share:"",snapshot:"",target:"stream",zoom:(t(P)||t(V))&&t(s),"current-camera":t(oe).name,"timeline-scrolling":t(O)||t(C),"border-radius":t(P)?0:3,"zoom-model":t(v),"enable-control":"",shortcuts:"",motions:"",objects:"",zones:"","auto-hide-control":!1,"source-role":"high-resolution",onResize:c[3]||(c[3]=_=>p.value=_),onZoomIn:h,onZoomOut:ee},null,8,["zoom","current-camera","timeline-scrolling","border-radius","zoom-model"])),(n(),R(Ct,null,[ae(w(_e,{"show-label":"","focus-index":""},null,512),[[ce,!t(P)]])],1024))]),g("div",{class:"right-content",style:G(t(V)?`height: ${t(le).height.value}px; width: ${t(le).width.value/3}px; right: ${t(s)?0:-2-t(le).width.value/3}px`:"")},[t(V)?(n(),y("div",Fa,[w(te,{class:"camera-no-outside",color:"#212121",size:"30",variant:"elevated",icon:"",onClick:c[4]||(c[4]=_=>s.value=!t(s))},{default:k(()=>[w(re,{color:"#fff",size:"20"},{default:k(()=>[ge(q(t(s)?t(Ot):t(Be)),1)]),_:1})]),_:1})])):J("",!0),g("div",Ca,[!t(P)&&!t(V)?(n(),y("div",Va,[g("div",za,[g("div",Oa,[(n(),R(se,{key:t(B),loading:t(C),layout:"text","show-picker":"",onDateChanged:c[5]||(c[5]=_=>D.value=_)},null,8,["loading"]))]),g("div",Ma,[(n(),R(aa,{key:t(B),modelValue:t(v),"onUpdate:modelValue":c[6]||(c[6]=_=>fe(v)?v.value=_:null),disabled:t(C),readonly:"",min:"1",max:"5",step:"1","track-size":"1","thumb-size":"10","hide-details":""},{prepend:k(()=>[w(te,{size:"28",density:"compact",variant:"text",disabled:t(v)==1,icon:"",onClick:ee},{default:k(()=>[w(re,{size:"20",icon:t(Mt)},null,8,["icon"])]),_:1},8,["disabled"])]),append:k(()=>[w(te,{size:"28",density:"compact",variant:"text",disabled:t(v)==5,icon:"",onClick:h},{default:k(()=>[w(re,{size:"20",icon:t(It)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1},8,["modelValue","disabled"]))])]),(n(),R(be,{key:t(B),modelValue:t(u),"onUpdate:modelValue":c[7]||(c[7]=_=>fe(u)?u.value=_:null),segments:t(Y)},null,8,["modelValue","segments"]))])):J("",!0),(n(),R(ie,{key:t(B),ref_key:"timeline",ref:F,"date-model":t(D),"zoom-model":t(v),modifier:t(p),segment:t(u),onIsScrolling:c[8]||(c[8]=_=>O.value=_),onIsLoading:c[9]||(c[9]=_=>C.value=_)},null,8,["date-model","zoom-model","modifier","segment"]))])],4)],2)]))],2)}}}),_l=xe(Ia,[["__scopeId","data-v-6e567cc6"]]);export{_l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as N,_ as j}from"./VPlayer-
|
|
1
|
+
import{C as N,_ as j}from"./VPlayer-B53-f3Ad.js";import{e as L,d as I,f as Q,h as T}from"./main-C2N2tbw_.js";import{s as R}from"./utils-BvINh1mj.js";import{k as D}from"./@vueuse-DbPVvJxZ.js";import{A as V,e as F,b as P}from"./vuetify-B_vGZaGi.js";import{F as z,t as G,r as S,c as C,x as K,e as t,f as s,u as e,N as _,Q as h,M as i,j as n,T as d,l as A,ai as O,aj as X,n as u,R as $,aa as q,X as B,O as H,V as J}from"./@vue-CIFymae3.js";import{e as U}from"./@mdi-jq8isxax.js";import"./qrcode-SHonoxyK.js";import"./dijkstrajs-D_NXgYpA.js";import"./vee-validate-DHjm38DY.js";import"./zod-BaF2dDCd.js";import"./pinia-B_gX_pHL.js";import"./@vee-validate-CmTVjJBY.js";import"./vue3-toastify-Cy6dUyKO.js";import"./plugins-Cs7BJHj-.js";import"./@tanstack-DPd4-F0t.js";import"./draggabilly-YEGzHR3_.js";import"./@xterm-LO7TPXYg.js";import"./get-size-D1dS-IaP.js";import"./unidragger-91TYirAP.js";import"./ev-emitter-t78oQA8k.js";import"./vue-router-C55prZ5l.js";import"./vue-inline-svg-DDdr3aAz.js";import"./vue-i18n-CHUfunSC.js";import"./@intlify-YW_pt133.js";import"./axios-BI2i94Vb.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-DmqiRszP.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CbEkwI4D.js";import"./@popperjs-BQBsAJpH.js";import"./nprogress-QK5AFhFr.js";const W=c=>(O("data-v-627ffb7a"),c=c(),X(),c),Y={key:0,class:"camera-events hide-scrollbar flex flex-auto flex-row"},Z={key:1,class:"disabled-text"},ee={key:2,class:"camera-events hide-scrollbar flex flex-auto flex-row"},te=["onClick"],ae=W(()=>n("span",{class:"text-sm text-passive"},"12:01:45",-1)),se=z({__name:"VCameraEvents",props:{showAll:{type:Boolean,default:!1},camera:{}},setup(c){const g=c,{camera:a,showAll:f}=G(g),p=S(!0),l=S(null),x=D(l),r=C(()=>{const o=[];for(let w=0;w<50;w++)o.push({camera:"Kamera 1",title:"Event 1",type:"motion",timestamp:Date.now(),image:void 0});return o}),E=C(()=>f.value||r.value.some(o=>o.camera===(a==null?void 0:a.value))),y=C(()=>Math.ceil(x.width.value/150)),k=o=>{console.log(o)},m=o=>!!(f.value||a!=null&&a.value&&o===a.value);return K(async()=>{await R(1500),p.value=!1}),(o,w)=>{const M=L;return t(),s("div",{ref_key:"main",ref:l,class:"camera-events-container"},[e(p)?(t(),s("div",Y,[(t(!0),s(_,null,h(e(y),(v,b)=>(t(),s("div",{key:b,class:"mx-1 flex flex-col justify-center items-center"},[i(V,{elevation:1,height:"140px",type:"image",class:"camera-event-card"}),i(V,{elevation:0,type:"text",style:{background:"none"}})]))),128))])):!e(p)&&(!e(E)||!e(r).length)?(t(),s("div",Z,[n("span",null,d(o.$t("components.camera_events.no_events")),1)])):(t(),s("div",ee,[(t(!0),s(_,null,h(e(r),(v,b)=>(t(),s("div",{key:b,class:"mx-1 text-center"},[m(v.camera)?(t(),s("div",{key:0,class:"camera-event-card cursor-pointer",onClick:ce=>k(v)},[i(M,{style:{background:"var(--background-img)","border-radius":"5px"},src:v.image,width:"100%",height:"100%","aspect-ratio":"1/1","spinner-size":"15","spinner-width":"2","error-style":"","placeholder-style":"",cover:""},null,8,["src"])],8,te)):A("",!0),ae]))),128))]))],512)}}}),oe=I(se,[["__scopeId","data-v-627ffb7a"]]),re={class:"page-title"},ne={class:"page-title"},ie={key:"new-camera",class:"w-full flex justify-center items-center mt-3"},le=z({__name:"Cameras",setup(c){const g=new N,{smallMobileActive:a,extraSmallMobileActive:f}=Q(),p=S({page:1,pageSize:-1}),{data:l,isLoading:x}=g.getCamerasQuery(p);return(r,E)=>{const y=oe,k=j;return t(),s("main",{class:u(["w-full h-full",{"px-0":e(a)}])},[n("div",{class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[n("h1",re,d(r.$t("views.cameras.events")),1)],2),n("div",{class:u(["w-full mb-3",{"px-2":e(a)}])},[i(y,{"show-all":""})],2),n("div",{class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[n("h1",ne,d(r.$t(`views.${String(r.$route.name).toLowerCase()}.title`)),1)],2),i(q,{name:"fade",tag:"div"},{default:$(()=>[e(x)||!e(l)?(t(),s("div",{key:0,class:"grid",style:B(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr))`)},[(t(),s(_,null,h(8,m=>i(V,{key:m,elevation:1,type:"image",class:"w-full h-full aspect-video"})),64))],4)):e(l).result.length?(t(),s("div",{key:2,class:"grid",style:B(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr)) ${e(l).result.length===1?"50%":""}`)},[(t(!0),s(_,null,h(e(l).result,m=>(t(),s("div",{key:m.name,class:"relative item"},[i(k,{"absolute-title":"","show-title":"","show-tooltips":!1,"clickable-title":"","clickable-container":"",settings:"","current-camera":m.name,"border-radius":e(a)?0:3,border:!1,target:"snapshot","button-elevation":"1"},null,8,["current-camera","border-radius"])]))),128))],4)):(t(),s("div",{key:1,class:u({"disabled-text":!0,"px-2":e(a)})},d(r.$t("views.cameras.no_cameras")),3)),n("div",ie,[e(T)(void 0,"admin")&&!e(f)?(t(),H(P,{key:0,to:"/new-camera",variant:"text",color:"#df2a4c",icon:""},{default:$(()=>[i(F,{size:"30"},{default:$(()=>[J(d(e(U)),1)]),_:1})]),_:1})):A("",!0)])]),_:1})],2)}}}),qe=I(le,[["__scopeId","data-v-5e50e4c1"]]);export{qe as default};
|