vuesp-components 0.2.3 → 0.2.5
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.
|
@@ -1461,6 +1461,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1461
1461
|
value: {},
|
|
1462
1462
|
min: {},
|
|
1463
1463
|
max: {},
|
|
1464
|
+
list: {},
|
|
1464
1465
|
get: { type: Function },
|
|
1465
1466
|
set: { type: Function },
|
|
1466
1467
|
modifyValue: { type: Function },
|
|
@@ -1469,11 +1470,12 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1469
1470
|
},
|
|
1470
1471
|
emits: ["edit"],
|
|
1471
1472
|
setup(t, { emit: e }) {
|
|
1472
|
-
const i = S(!1), o = e, a = k(() => t.icon ? `icon-${t.icon}` : "icon-therm"), r = k(() => ["button", "switch"].includes(t.type || "")
|
|
1473
|
+
const i = S(!1), o = e, a = k(() => t.icon ? `icon-${t.icon}` : "icon-therm"), r = k(() => ["button", "switch"].includes(t.type || "") && t.value ? "text-amber-500" : "text-gray-400"), c = (m) => o("edit", m), f = () => i.value = !0, u = (m) => t.modifyValue?.(m) || m, d = k(() => ({
|
|
1473
1474
|
value: t.value,
|
|
1474
1475
|
name: t.name,
|
|
1475
1476
|
min: t.min,
|
|
1476
1477
|
max: t.max,
|
|
1478
|
+
list: t.list,
|
|
1477
1479
|
modify: u(t.value),
|
|
1478
1480
|
icon: a.value
|
|
1479
1481
|
}));
|
|
@@ -1540,6 +1542,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1540
1542
|
value: {},
|
|
1541
1543
|
min: {},
|
|
1542
1544
|
max: {},
|
|
1545
|
+
list: {},
|
|
1543
1546
|
get: { type: Function },
|
|
1544
1547
|
set: { type: Function },
|
|
1545
1548
|
modifyValue: { type: Function },
|
|
@@ -1572,7 +1575,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1572
1575
|
p(d, {
|
|
1573
1576
|
type: "icon",
|
|
1574
1577
|
size: "sm",
|
|
1575
|
-
class: M(["h-18 w-18", o.value ? "text-
|
|
1578
|
+
class: M(["h-18 w-18", o.value ? "text-amber-500" : "text-blue-600 dark:text-blue-400"]),
|
|
1576
1579
|
onClick: j(r, ["stop"])
|
|
1577
1580
|
}, {
|
|
1578
1581
|
default: h(() => [
|
|
@@ -1597,6 +1600,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1597
1600
|
value: {},
|
|
1598
1601
|
min: {},
|
|
1599
1602
|
max: {},
|
|
1603
|
+
list: {},
|
|
1600
1604
|
get: { type: Function },
|
|
1601
1605
|
set: { type: Function },
|
|
1602
1606
|
modifyValue: { type: Function },
|
|
@@ -1643,6 +1647,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1643
1647
|
value: {},
|
|
1644
1648
|
min: {},
|
|
1645
1649
|
max: {},
|
|
1650
|
+
list: {},
|
|
1646
1651
|
get: { type: Function },
|
|
1647
1652
|
set: { type: Function },
|
|
1648
1653
|
modifyValue: { type: Function },
|
|
@@ -1718,6 +1723,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1718
1723
|
value: {},
|
|
1719
1724
|
min: {},
|
|
1720
1725
|
max: {},
|
|
1726
|
+
list: {},
|
|
1721
1727
|
get: { type: Function },
|
|
1722
1728
|
set: { type: Function },
|
|
1723
1729
|
modifyValue: { type: Function },
|
|
@@ -1745,6 +1751,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1745
1751
|
value: {},
|
|
1746
1752
|
min: {},
|
|
1747
1753
|
max: {},
|
|
1754
|
+
list: {},
|
|
1748
1755
|
get: { type: Function },
|
|
1749
1756
|
set: { type: Function },
|
|
1750
1757
|
modifyValue: { type: Function },
|
|
@@ -1784,6 +1791,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1784
1791
|
value: {},
|
|
1785
1792
|
min: {},
|
|
1786
1793
|
max: {},
|
|
1794
|
+
list: {},
|
|
1787
1795
|
get: { type: Function },
|
|
1788
1796
|
set: { type: Function },
|
|
1789
1797
|
modifyValue: { type: Function },
|
|
@@ -1804,7 +1812,7 @@ const Rt = /* @__PURE__ */ g(Gt, [["render", qt]]), Wt = /* @__PURE__ */ Object.
|
|
|
1804
1812
|
p(d, {
|
|
1805
1813
|
type: "icon",
|
|
1806
1814
|
size: "sm",
|
|
1807
|
-
class: M(["h-18 w-18", o.value ? "text-
|
|
1815
|
+
class: M(["h-18 w-18", o.value ? "text-amber-500" : "text-blue-600 dark:text-blue-400"]),
|
|
1808
1816
|
onClick: j(r, ["stop"])
|
|
1809
1817
|
}, {
|
|
1810
1818
|
default: h(() => [
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
h61.4c11.3,0,20.5-9.2,20.5-20.5v-61.4h21.5c4.8,23.3,25.4,41,50.2,41c24.7,0,45.4-17.6,50.2-41h22.5c4.8,23.3,25.4,41,50.2,41\r
|
|
5
5
|
c24.7,0,45.4-17.6,50.2-41h22.6c4.8,23.3,25.4,41,50.2,41c24.7,0,45.4-17.6,50.2-41h1c11.3,0,20.5-9.2,20.5-20.5\r
|
|
6
6
|
S482.4,368.65,471.1,368.65z M122.9,368.65h-20.5v-245.7h20.5V368.65z M245.8,368.65h-20.5v-245.7h20.5V368.65z M368.7,368.65\r
|
|
7
|
-
h-20.5v-245.7h20.5V368.65z`},null,-1)]))}const Pt=h(jt,[["render",Ot]]);var Ut={},Gt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Kt(o,t){return e.openBlock(),e.createElementBlock("svg",Gt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M7 20H4.6C4.03995 20 3.75992 20 3.54601 19.891C3.35785 19.7951 3.20487 19.6422 3.10899 19.454C3 19.2401 3 18.9601 3 18.4V9.0398C3 8.66343 3 8.47524 3.05919 8.31095C3.1115 8.16573 3.19673 8.03458 3.30819 7.9278C3.43428 7.80699 3.60625 7.73056 3.95018 7.5777L12 4L20.0498 7.5777C20.3938 7.73056 20.5657 7.80699 20.6918 7.9278C20.8033 8.03458 20.8885 8.16573 20.9408 8.31095C21 8.47524 21 8.66343 21 9.0398V18.4C21 18.9601 21 19.2401 20.891 19.454C20.7951 19.6422 20.6422 19.7951 20.454 19.891C20.2401 20 19.9601 20 19.4 20H17M7 20H17M7 20V14M17 20V14M7 14V10H17V14M7 14H17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Rt=h(Ut,[["render",Kt]]);var qt={},Wt={width:"24",height:"24",viewBox:"0 0 1024 1024"};function Jt(o,t){return e.openBlock(),e.createElementBlock("svg",Wt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M166.5 608.4c0-180.9 153.4-261.1 317.8-528.9 14.4-19.9 43.2-19.9 58.4 1.5 164.6 268.7 317 346.8 317 527.4 0 191.4-155.2 346.6-346.6 346.6S166.5 799.8 166.5 608.4z",fill:"#5E676F"},null,-1),e.createElementVNode("path",{d:"M483.2 175.5c-65.9 84.8-214.1 292.7-217.5 298.2-28.6 46.5-41.5 86.8-41.5 134.6 0 159.5 129.3 288.8 288.8 288.8s288.8-129.3 288.8-288.8c0-47.8-12.8-87.9-41.3-134.1-2.5-4-151.4-213.3-217.2-298.6-15.9-20.8-43.9-20.8-60.1-0.1z",fill:"#FFFFFF"},null,-1),e.createElementVNode("path",{d:"M513.1 826.3c0 14.4-21.3 13.8-31 12.6-104.1-13.3-186.5-96-199.6-200.1-0.9-7.2-1.8-30.3 12.6-30.3s16.8 32.6 16.8 32.6c13.5 86.6 81.9 155 168.5 168.5 0.1-0.2 32.7 2.2 32.7 16.7z",fill:"#5E676F"},null,-1)]))}const Qt=h(qt,[["render",Jt]]);var Xt={},Yt={width:"24",height:"24",viewBox:"0 0 1024 1024"};function e2(o,t){return e.openBlock(),e.createElementBlock("svg",Yt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M539.7 463.1V273.5l90.8-91.2c11-11 10.9-28.7 0-39.6-11-11-28.7-10.9-39.6 0L539.7 194V91.3c0-15.1-12.5-27.8-28-27.8-15.6 0-28 12.5-28 27.8V195L432.5 143.8c-10.9-10.9-28.6-11-39.6 0-10.9 10.9-11 28.6 0 39.6l90.8 91.2v188.6l-164.2-94.8L286 244.1c-4-15-19.4-23.8-34.3-19.8-15 4-23.8 19.4-19.8 34.3l18.7 70-88.9-51.4c-13.1-7.6-30.4-3-38.1 10.4-7.8 13.5-3.2 30.5 10.1 38.2l89.8 51.9-70 18.7c-14.9 4-23.8 19.3-19.8 34.3 4 14.9 19.3 23.8 34.3 19.8l124.4-33.1 163.3 94.3-164.2 94.8-124.4-33.1c-15-4-30.3 4.9-34.3 19.8-4 15 4.9 30.3 19.8 34.3l70 18.7-88.9 51.4c-13.1 7.6-17.8 24.8-10.1 38.2 7.8 13.5 24.8 18 38.1 10.4l89.8-51.9-18.7 70c-4 14.9 4.8 30.3 19.8 34.3 14.9 4 30.3-4.8 34.3-19.8l33.6-124.3 163.3-94.3v190.6l-90.8 93c-11 11-10.9 28.7 0 39.6 11 11 28.7 10.9 39.6 0l51.2-51.2v99.9c0 15.1 12.5 27.8 28 27.8 15.6 0 28-12.5 28-27.8v-101l51.2 51.2c10.9 10.9 28.6 11 39.6 0 10.9-10.9 11-28.6 0-39.6l-90.8-93V560.2l165.1 95.3L740 780.6c4 15 19.4 23.8 34.3 19.8 15-4 23.8-19.4 19.8-34.3l-18.7-70 86.6 50c13.1 7.6 30.4 3 38.1-10.4 7.8-13.5 3.2-30.5-10.1-38.2L802.6 647l70-18.7c14.9-4 23.8-19.3 19.8-34.3-4-14.9-19.3-23.8-34.3-19.8l-125.9 32.2L568 511.6l165.1-95.3L859 448.5c15 4 30.3-4.9 34.3-19.8 4-15-4.9-30.3-19.8-34.3l-70-18.7 86.6-50c13.1-7.6 17.8-24.8 10.1-38.2-7.8-13.5-24.8-18-38.1-10.4l-87.4 50.5 18.7-70c4-14.9-4.8-30.3-19.8-34.3-14.9-4-30.3 4.8-34.3 19.8l-35.1 125.1-164.5 94.9z",fill:"currentColor"},null,-1)]))}const t2=h(Xt,[["render",e2]]);var o2={},n2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function l2(o,t){return e.openBlock(),e.createElementBlock("svg",n2,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const r2=h(o2,[["render",l2]]);var a2={},c2={fill:"currentColor",width:"24",height:"24",viewBox:"-2 0 15.998 15.998"};function s2(o,t){return e.openBlock(),e.createElementBlock("svg",c2,t[0]||(t[0]=[e.createElementVNode("path",{id:"Path_81","data-name":"Path 81",d:"M-10.217,1.343A6.039,6.039,0,0,0-15.284.134a5.979,5.979,0,0,0-4.6,4.673A5.967,5.967,0,0,0-18,10.472V10.5a2.488,2.488,0,0,0,1,1.989l0,.011v1A1.5,1.5,0,0,0-15.5,15h.355A1.168,1.168,0,0,0-14,16a1.168,1.168,0,0,0,1.145-1h.355A1.5,1.5,0,0,0-11,13.5v-1l0-.011A2.488,2.488,0,0,0-10,10.5v-.028A5.982,5.982,0,0,0-8,6,5.979,5.979,0,0,0-10.217,1.343ZM-12,13v.5a.5.5,0,0,1-.5.5h-3a.5.5,0,0,1-.5-.5V13h4Zm1.182-3.143a.5.5,0,0,0-.182.386V10.5A1.5,1.5,0,0,1-12.5,12h-3A1.5,1.5,0,0,1-17,10.5v-.257a.5.5,0,0,0-.182-.386A4.981,4.981,0,0,1-18.9,5a4.968,4.968,0,0,1,3.821-3.884A5.267,5.267,0,0,1-14.012,1a5,5,0,0,1,3.164,1.117A4.983,4.983,0,0,1-9,6,4.988,4.988,0,0,1-10.818,9.857ZM-13.5,3.5A.5.5,0,0,1-14,4a2,2,0,0,0-2,2,.5.5,0,0,1-.5.5A.5.5,0,0,1-17,6a3,3,0,0,1,3-3A.5.5,0,0,1-13.5,3.5Z",transform:"translate(20.002 -0.002)"},null,-1)]))}const i2=h(a2,[["render",s2]]);var d2={},m2={fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24"};function p2(o,t){return e.openBlock(),e.createElementBlock("svg",m2,t[0]||(t[0]=[e.createElementVNode("path",{d:"M21,3H3A2,2,0,0,0,1,5v7a2,2,0,0,0,2,2H21a2,2,0,0,0,2-2V5A2,2,0,0,0,21,3Zm0,9H3V5H21ZM5,10A1,1,0,0,1,6,9H18a1,1,0,0,1,0,2H6A1,1,0,0,1,5,10ZM16,7a1,1,0,0,1,1-1h1a1,1,0,0,1,0,2H17A1,1,0,0,1,16,7ZM9.793,20.293,11.086,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L12.914,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Zm5.5,0L16.586,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L18.414,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Zm-11,0L5.586,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L7.414,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Z"},null,-1)]))}const f2=Object.freeze(Object.defineProperty({__proto__:null,IconAir:h(d2,[["render",p2]]),IconBulb:i2,IconBurger:Ue,IconCamera:r2,IconChevron:y,IconClose:H,IconCold:t2,IconDashboard:qe,IconDevice:Xe,IconDots:o1,IconDrop:Qt,IconEyeClose:a1,IconEyeOpen:d1,IconFile:C1,IconFolder:g1,IconGarage:Rt,IconGpio:nt,IconHeater:Pt,IconLight:Dt,IconLock:It,IconLogo:w1,IconLogoMini:M1,IconLogout:Z1,IconNoti:A1,IconPower:St,IconSave:v1,IconSearch:G1,IconSetting:mt,IconSocket:Et,IconStore:ct,IconTheme:y1,IconTherm:bt,IconTv:Vt,IconUpdate:W1,IconVent:ht,IconVideo:Y1},Symbol.toStringTag,{value:"Module"})),C2={key:0,class:"loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-gray-800 before:bg-blue-600 dark:before:bg-blue-800 before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"},h2={key:1,class:"absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-gray-900 z-10 opacity-50"},u2={class:"mb-6 flex items-center justify-between"},_2={class:"text-lg font-semibold text-gray-800 dark:text-white/90"},g2={class:"max-w-full"},V2=Object.freeze(Object.defineProperty({__proto__:null,VCardGray:e.defineComponent({__name:"VCardGray",props:{title:{default:"Title"},loading:{type:Boolean}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",{"overflow-hidden":t.loading}])},[t.loading?(e.openBlock(),e.createElementBlock("div",C2)):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createElementBlock("div",h2)):e.createCommentVNode("",!0),e.createElementVNode("div",u2,[e.createElementVNode("h3",_2,e.toDisplayString(t.title),1),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"header")])]),e.createElementVNode("div",g2,[e.renderSlot(t.$slots,"default")])],2))}})},Symbol.toStringTag,{value:"Module"})),k2={class:"flex-auto flex align-center p-4"},y2={class:"flex items-center justify-between px-4 py-2 border-b dark:border-gray-700 border-gray-200"},x2={class:"px-4 py-2 flex-auto scroll-none"},b2=["innerHTML"],B2={key:0,class:"px-4 py-2 flex justify-end"},S=e.defineComponent({__name:"AppDialog",props:{value:{type:Boolean},title:{default:"Attention !"},message:{default:""},callback:{type:Function},button:{default:"OK"},size:{default:"sm"}},emits:["close"],setup(o,{emit:t}){const a=t,n=e.ref(!1),r={sm:"max-w-[330px]",md:"max-w-[600px]",lg:"max-w-[960px]"},l=e.computed(()=>[`${r?.[o.size]||""}`]),c=s=>{n.value=!1,setTimeout(()=>{a("close",s)},300)},d=s=>{o.callback&&o.callback(),c(s)};return e.onMounted(()=>{setTimeout(()=>{n.value=!0},300)}),(s,i)=>{const p=e.resolveComponent("icon-close"),f=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"duration-300 ease-out","enter-from-class":"transform opacity-0 -translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"transform opacity-0 -translate-y-2"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"z-20 fixed top-0 h-[100dvh] w-full left-0 flex flex-col",onWheel:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"absolute h-full w-full top-0 left-0 bg-black/60",onClick:c}),e.createElementVNode("div",k2,[e.createElementVNode("div",{class:e.normalizeClass(["m-auto w-full bg-white dark:bg-gray-900 shadow-lg flex flex-col rounded-lg z-30",l.value])},[e.createElementVNode("div",y2,[e.renderSlot(s.$slots,"header",{},()=>[e.createElementVNode("h4",null,e.toDisplayString(s.title),1)]),e.createVNode(f,{type:"icon",size:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(p,{class:"h-5 w-5"})]),_:1})]),e.createElementVNode("div",x2,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("div",{innerHTML:s.message},null,8,b2)])]),s.$slots.footer||s.callback?(e.openBlock(),e.createElementBlock("div",B2,[e.renderSlot(s.$slots,"footer",{},()=>[e.createVNode(f,{color:"blue",size:"small",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.button),1)]),_:1})])])):e.createCommentVNode("",!0)],2)])],32)):e.createCommentVNode("",!0)]),_:3})])}}}),w2={class:"flex-auto flex justify-between"},$2={class:"text-sm text-gray-500 font-medium text-ellipsis overflow-hidden text-nowrap"},E2={class:"text-sm text-ellipsis overflow-hidden text-nowrap"},N2={class:"flex-auto flex items-center justify-between gap-6 me-2"},M2={class:"min-h-60 relative"},H2={class:"pt-6"},S2={class:"text-center text-3xl text-ellipsis overflow-hidden"},L2={class:"text-center text-xl mt-4"},k=e.defineComponent({__name:"CardBase",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["edit"],setup(o,{emit:t}){const a=e.ref(!1),n=t,r=e.computed(()=>o.icon?`icon-${o.icon}`:"icon-therm"),l=e.computed(()=>["button","switch"].includes(o.type||"")?o.value?"text-gray-400":"text-amber-500":"text-gray-400"),c=p=>n("edit",p),d=()=>a.value=!0,s=p=>o.modifyValue?.(p)||p,i=e.computed(()=>({value:o.value,name:o.name,min:o.min,max:o.max,modify:s(o.value),icon:r.value}));return(p,f)=>{const u=e.resolveComponent("icon-dots"),C=e.resolveComponent("v-button");return e.openBlock(),e.createElementBlock("div",{class:"flex flex-col border aspect-square rounded-sm bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 p-2 hover:border-blue-400 dark:hover:border-blue-700 transition-all",onClick:d},[e.createElementVNode("div",w2,[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{class:"size-8"}))],2),e.renderSlot(p.$slots,"header",e.normalizeProps(e.guardReactiveProps(i.value)))]),e.createElementVNode("div",null,[e.createElementVNode("h6",$2,e.toDisplayString(p.name),1),e.createElementVNode("div",E2,e.toDisplayString(s(p.value)),1)]),a.value?(e.openBlock(),e.createBlock(S,{key:0,size:"sm",title:p.name,onClose:f[0]||(f[0]=g=>a.value=!1)},{header:e.withCtx(()=>[e.createElementVNode("div",N2,[e.createVNode(C,{type:"icon",size:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",M2,[e.createElementVNode("div",H2,[e.createElementVNode("h3",S2,e.toDisplayString(p.name),1),e.renderSlot(p.$slots,"dialog",e.normalizeProps(e.guardReactiveProps(i.value))),e.createElementVNode("p",L2,e.toDisplayString(s(p.value)),1)])])]),_:3},8,["title"])):e.createCommentVNode("",!0)])}}}),Z2={class:"flex justify-end"},z2={class:"flex justify-center py-4"},I2=e.defineComponent({__name:"CardButton",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>a("click",c),l=()=>a("setState",{...n,value:!n.value});return(c,d)=>{const s=e.resolveComponent("icon-power"),i=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{header:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createVNode(i,{type:"icon",size:"sm",class:"text-gray-500",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-10"})]),_:1})])]),dialog:e.withCtx(()=>[e.createElementVNode("div",z2,[e.createVNode(i,{type:"icon",size:"sm",class:e.normalizeClass(["h-18 w-18",n.value?"text-blue-600 dark:text-blue-400":"text-amber-500"]),onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-16"})]),_:1},8,["class"])])]),_:1},16)}}}),F2={class:"flex justify-center relative mx-2 my-6"},A2=e.defineComponent({__name:"CardDate",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=d=>new Date(d*1e3).toISOString().slice(0,16),l=d=>{const s=d?.target?.valueAsNumber;console.log(s),s&&a("setState",{...n,value:s/1e3})},c=d=>a("click",d);return(d,s)=>{const i=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:c}),{dialog:e.withCtx(({value:p})=>[e.createElementVNode("div",F2,[e.createVNode(i,{modelValue:r(p),type:"datetime-local",label:"Date",onChange:l},null,8,["modelValue"])])]),_:1},16)}}}),T2={class:"flex justify-end"},D2={width:"32",height:"32",viewBox:"-7.5 -7.5 75 75",version:"1.1",style:{transform:"rotate(-90deg)"}},j2=["stroke-dashoffset"],v2={class:"flex justify-center relative mx-2 my-6"},O2={class:"absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl"},P2=["min","max","value"],U2=e.defineComponent({__name:"CardDimmer",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=(s,i)=>Math.round(100*s/i),l=(s,i)=>Math.round(187-s/i*187),c=s=>a("click",s),d=s=>{const i=+s?.target?.value||0;a("setState",{...n,value:i})};return(s,i)=>(e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:c}),{header:e.withCtx(({value:p,max:f})=>[e.createElementVNode("div",T2,[e.createElementVNode("div",{class:e.normalizeClass(["","text-blue-600 dark:text-blue-400"])},[(e.openBlock(),e.createElementBlock("svg",D2,[i[0]||(i[0]=e.createElementVNode("circle",{class:"stroke-gray-300 dark:stroke-gray-700",r:"30",cx:"30",cy:"30",fill:"transparent","stroke-width":"10"},null,-1)),e.createElementVNode("circle",{r:"30",cx:"30",cy:"30",stroke:"currentColor","stroke-width":"8","stroke-linecap":"butt","stroke-dashoffset":l(p,f||0),fill:"transparent","stroke-dasharray":"187"},null,8,j2)]))])])]),dialog:e.withCtx(({min:p=0,max:f=255,value:u})=>[e.createElementVNode("div",v2,[i[1]||(i[1]=e.createElementVNode("div",{class:"absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-800 z-0 rounded-md"},null,-1)),e.createElementVNode("div",{class:"absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md",style:e.normalizeStyle(`width: ${r(u,f)}%`)},null,4),e.createElementVNode("div",O2,e.toDisplayString(r(u,f))+" %",1),e.createElementVNode("input",{type:"range",min:p,max:f,value:u,step:"1",class:"w-full h-10 z-10 appearance-none cursor-pointer opacity-0",onChange:d},null,40,P2)])]),_:1},16))}}),G2=e.defineComponent({__name:"CardInfo",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click"],setup(o,{emit:t}){const a=t,n=o,r=l=>a("click",l);return(l,c)=>(e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"dialog")]),_:3},16))}}),K2={class:"flex justify-center relative mx-2 my-6"},R2=e.defineComponent({__name:"CardInput",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>{const d=c?.target?.value;a("setState",{...n,value:d})},l=c=>a("click",c);return(c,d)=>{const s=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:l}),{dialog:e.withCtx(({value:i,name:p})=>[e.createElementVNode("div",K2,[e.createVNode(s,{modelValue:i,label:p,onChange:r},null,8,["modelValue","label"])])]),_:1},16)}}}),q2={class:"flex justify-center py-4"},W2=e.defineComponent({__name:"CardSwitch",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>a("click",c),l=()=>a("setState",n);return(c,d)=>{const s=e.resolveComponent("icon-power"),i=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{header:e.withCtx(()=>d[0]||(d[0]=[e.createElementVNode("div",{class:"flex justify-end"},null,-1)])),dialog:e.withCtx(()=>[e.createElementVNode("div",q2,[e.createVNode(i,{type:"icon",size:"sm",class:e.normalizeClass(["h-18 w-18",n.value?"text-blue-600 dark:text-blue-400":"text-amber-500"]),onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-16"})]),_:1},8,["class"])])]),_:1},16)}}}),J2={class:"pt-6"},Q2={class:"grid grid-cols-1 gap-x-4"},X2={class:"grid grid-cols-2 gap-x-4"},Y2={class:"grid grid-cols-2 gap-x-4"},eo={class:"flex gap-2 items-center"},to={class:"grid grid-cols-2 gap-x-4"},oo={class:"flex gap-4 justify-end"},no=Object.freeze(Object.defineProperty({__proto__:null,BlockItemEdit:e.defineComponent({__name:"BlockItemEdit",props:{item:{},isNew:{type:Boolean}},emits:["remove","save","select"],setup(o,{emit:t}){const a=t,n=e.ref({id:"",name:"",keyValue:""}),r=[{name:"Air",value:"air"},{name:"Bulb",value:"bulb"},{name:"Cold",value:"cold"},{name:"Camera",value:"camera"},{name:"Vent",value:"vent"},{name:"Garage",value:"garage"},{name:"Video",value:"video"},{name:"Light",value:"light"},{name:"Tv",value:"tv"},{name:"Therm",value:"therm"},{name:"Store",value:"store"},{name:"Socket",value:"socket"},{name:"Search",value:"search"},{name:"Save",value:"save"},{name:"Noti",value:"noti"},{name:"Logout",value:"logout"},{name:"Lock",value:"lock"},{name:"Folder",value:"folder"}],l=[{name:"Button",value:"button"},{name:"Info",value:"info"},{name:"Dimmer",value:"dimmer"},{name:"Switch",value:"switch"},{name:"Date",value:"date"},{name:"Input",value:"input"}],c=u=>`icon-${u}`,d=e.computed(()=>n.value.type==="dimmer"),s=({value:u})=>{n.value.icon=u},i=({value:u})=>{n.value.type=u},p=()=>{a("save",n.value)},f=()=>{a("remove",n.value)};return e.onMounted(()=>{console.log(o.item),n.value={...o.item}}),(u,C)=>{const g=e.resolveComponent("v-text-field"),m=e.resolveComponent("VSelect"),V=e.resolveComponent("v-textarea"),B=e.resolveComponent("v-button");return e.openBlock(),e.createElementBlock("div",J2,[e.createElementVNode("div",Q2,[e.createElementVNode("div",X2,[e.createVNode(g,{modelValue:n.value.id,"onUpdate:modelValue":C[0]||(C[0]=_=>n.value.id=_),label:"ID",disabled:!u.isNew,onClick:C[1]||(C[1]=_=>a("select",_))},null,8,["modelValue","disabled"]),e.createVNode(g,{modelValue:n.value.keyValue,"onUpdate:modelValue":C[2]||(C[2]=_=>n.value.keyValue=_),label:"KeyValue"},null,8,["modelValue"])]),e.createVNode(g,{modelValue:n.value.name,"onUpdate:modelValue":C[3]||(C[3]=_=>n.value.name=_),label:"Name"},null,8,["modelValue"]),e.createElementVNode("div",Y2,[e.createVNode(m,{value:n.value.icon,class:"",label:"Icon",list:r,onChange:s},{default:e.withCtx(({item:_})=>[e.createElementVNode("div",eo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(_.value)),{class:"size-5"})),e.createElementVNode("div",null,e.toDisplayString(_.name),1)])]),_:1},8,["value"]),e.createVNode(m,{value:n.value.type,class:"",label:"Type",list:l,onChange:i},null,8,["value"])]),e.createElementVNode("div",to,[d.value?(e.openBlock(),e.createBlock(g,{key:0,modelValue:n.value.min,"onUpdate:modelValue":C[4]||(C[4]=_=>n.value.min=_),label:"Min"},null,8,["modelValue"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createBlock(g,{key:1,modelValue:n.value.max,"onUpdate:modelValue":C[5]||(C[5]=_=>n.value.max=_),label:"Max"},null,8,["modelValue"])):e.createCommentVNode("",!0)]),n.value.set?(e.openBlock(),e.createBlock(V,{key:0,modelValue:n.value.set,"onUpdate:modelValue":C[6]||(C[6]=_=>n.value.set=_),label:"Set"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(V,{modelValue:n.value.get,"onUpdate:modelValue":C[7]||(C[7]=_=>n.value.get=_),label:"Get"},null,8,["modelValue"]),e.createVNode(V,{modelValue:n.value.modifyValue,"onUpdate:modelValue":C[8]||(C[8]=_=>n.value.modifyValue=_),label:"ModifyValue"},null,8,["modelValue"])]),e.createElementVNode("div",oo,[e.createVNode(B,{class:"px-4",color:"red",outline:"",onClick:f},{default:e.withCtx(()=>C[9]||(C[9]=[e.createTextVNode("Remove")])),_:1}),e.createVNode(B,{class:"px-4",color:"blue",onClick:p},{default:e.withCtx(()=>C[10]||(C[10]=[e.createTextVNode("Save")])),_:1})])])}}}),CardBase:k,CardButton:I2,CardDate:A2,CardDimmer:U2,CardInfo:G2,CardInput:R2,CardSwitch:W2},Symbol.toStringTag,{value:"Module"})),lo={class:"bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0"},ro={class:"px-4 py-4 sm:px-6 lg:px-8"},ao={class:"container mx-auto flex flex-auto items-center"},co={class:"lg:hidden h-[30px] me-10"},so={class:"flex gap-4"},io={class:"md:hidden flex gap-4"},mo={class:"ms-2"},po=e.defineComponent({__name:"AppHeader",props:{changeTheme:{type:Function}},emits:["sidebar"],setup(o,{emit:t}){const a=t,n=e.ref(!1),r=e.ref(!1),l=e.computed(()=>[{name:"Theme",icon:"icon-theme"},{name:"Logout",icon:"icon-logout"}]),c=p=>a("sidebar",p),d=async()=>await fetch("/",{method:"get",headers:{Authorization:"Basic AAAAAAAAAAAAAAAAAAA="}}),s=()=>{o.changeTheme&&o.changeTheme()},i=({name:p})=>{p=="Logout"&&d(),p=="Theme"&&s()};return(p,f)=>{const u=e.resolveComponent("icon-burger"),C=e.resolveComponent("v-button"),g=e.resolveComponent("icon-logo"),m=e.resolveComponent("router-link"),V=e.resolveComponent("IconTheme"),B=e.resolveComponent("icon-noti"),_=e.resolveComponent("icon-logout"),go=e.resolveComponent("icon-dots"),Vo=e.resolveComponent("v-list"),ko=e.resolveComponent("v-dropdown");return e.openBlock(),e.createElementBlock("header",lo,[e.createElementVNode("div",ro,[e.createElementVNode("div",ao,[e.createVNode(C,{type:"icon",color:"gray",class:"me-6",onClick:c},{default:e.withCtx(()=>[e.createVNode(u,{class:"h-5 w-5"})]),_:1}),f[2]||(f[2]=e.createElementVNode("div",{class:"lg:hidden flex-auto"},null,-1)),e.createElementVNode("div",co,[e.createVNode(m,{to:"/"},{default:e.withCtx(()=>[e.createVNode(g,{class:"h-[30px]"})]),_:1})]),f[3]||(f[3]=e.createElementVNode("div",{class:"flex-auto"},null,-1)),e.createElementVNode("div",so,[e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:s},{default:e.withCtx(()=>[e.createVNode(V)]),_:1}),e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:f[0]||(f[0]=e.withModifiers(x=>{n.value=!n.value,r.value=!1},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass([r.value?"flex":"hidden","absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400 flex"])},f[1]||(f[1]=[e.createElementVNode("span",{class:"absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75"},null,-1)]),2),e.createVNode(B,{class:"h-5 w-5"})]),_:1}),e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:e.withModifiers(d,["prevent"])},{default:e.withCtx(()=>[e.createVNode(_,{class:"h-5 w-5"})]),_:1})]),e.createElementVNode("div",io,[e.createVNode(ko,{left:"unset",right:"0",top:"0"},{activator:e.withCtx(({on:x})=>[e.createVNode(C,{type:"icon",color:"gray",class:"flex",onClick:No=>x.click()},{default:e.withCtx(()=>[e.createVNode(go)]),_:2},1032,["onClick"])]),default:e.withCtx(()=>[e.createVNode(Vo,{list:l.value,onClick:i},{default:e.withCtx(({item:x})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.icon))),e.createElementVNode("span",mo,e.toDisplayString(x.name),1)]),_:1},8,["list"])]),_:1})])])])])}}}),fo=e.defineComponent({__name:"AppNotification",props:{notifications:{default:()=>[]}},emits:["close"],setup(o,{emit:t}){const a=t;return(n,r)=>{const l=e.resolveComponent("v-notification");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.TransitionGroup,{name:"list",tag:"ul",class:"flex flex-col gap-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.notifications,c=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:c.id,ref_for:!0},c,{onClose:d=>a("close",c)}),null,16,["onClose"]))),128))]),_:1})])}}});var Co={},ho={class:"fixed h-full w-full top-0 left-0 z-20"},uo={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"};function _o(o,t){return e.openBlock(),e.createElementBlock("div",ho,[t[0]||(t[0]=e.createElementVNode("div",{class:"absolute h-full w-full top-0 left-0 bg-gray-900 opacity-40"},null,-1)),e.createElementVNode("div",uo,[e.renderSlot(o.$slots,"default")])])}const L={...f2,...je,...V2,...no,...Object.freeze(Object.defineProperty({__proto__:null,AppDialog:S,AppHeader:po,AppNotification:fo,AppOverlay:h(Co,[["render",_o]])},Symbol.toStringTag,{value:"Module"}))};return{install:o=>{Object.keys(L).forEach(t=>{o.component(t,L[t])}),Z.forEach(({name:t,directive:a})=>o.directive(t,a))}}});
|
|
7
|
+
h-20.5v-245.7h20.5V368.65z`},null,-1)]))}const Pt=h(jt,[["render",Ot]]);var Ut={},Gt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Kt(o,t){return e.openBlock(),e.createElementBlock("svg",Gt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M7 20H4.6C4.03995 20 3.75992 20 3.54601 19.891C3.35785 19.7951 3.20487 19.6422 3.10899 19.454C3 19.2401 3 18.9601 3 18.4V9.0398C3 8.66343 3 8.47524 3.05919 8.31095C3.1115 8.16573 3.19673 8.03458 3.30819 7.9278C3.43428 7.80699 3.60625 7.73056 3.95018 7.5777L12 4L20.0498 7.5777C20.3938 7.73056 20.5657 7.80699 20.6918 7.9278C20.8033 8.03458 20.8885 8.16573 20.9408 8.31095C21 8.47524 21 8.66343 21 9.0398V18.4C21 18.9601 21 19.2401 20.891 19.454C20.7951 19.6422 20.6422 19.7951 20.454 19.891C20.2401 20 19.9601 20 19.4 20H17M7 20H17M7 20V14M17 20V14M7 14V10H17V14M7 14H17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Rt=h(Ut,[["render",Kt]]);var qt={},Wt={width:"24",height:"24",viewBox:"0 0 1024 1024"};function Jt(o,t){return e.openBlock(),e.createElementBlock("svg",Wt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M166.5 608.4c0-180.9 153.4-261.1 317.8-528.9 14.4-19.9 43.2-19.9 58.4 1.5 164.6 268.7 317 346.8 317 527.4 0 191.4-155.2 346.6-346.6 346.6S166.5 799.8 166.5 608.4z",fill:"#5E676F"},null,-1),e.createElementVNode("path",{d:"M483.2 175.5c-65.9 84.8-214.1 292.7-217.5 298.2-28.6 46.5-41.5 86.8-41.5 134.6 0 159.5 129.3 288.8 288.8 288.8s288.8-129.3 288.8-288.8c0-47.8-12.8-87.9-41.3-134.1-2.5-4-151.4-213.3-217.2-298.6-15.9-20.8-43.9-20.8-60.1-0.1z",fill:"#FFFFFF"},null,-1),e.createElementVNode("path",{d:"M513.1 826.3c0 14.4-21.3 13.8-31 12.6-104.1-13.3-186.5-96-199.6-200.1-0.9-7.2-1.8-30.3 12.6-30.3s16.8 32.6 16.8 32.6c13.5 86.6 81.9 155 168.5 168.5 0.1-0.2 32.7 2.2 32.7 16.7z",fill:"#5E676F"},null,-1)]))}const Qt=h(qt,[["render",Jt]]);var Xt={},Yt={width:"24",height:"24",viewBox:"0 0 1024 1024"};function e2(o,t){return e.openBlock(),e.createElementBlock("svg",Yt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M539.7 463.1V273.5l90.8-91.2c11-11 10.9-28.7 0-39.6-11-11-28.7-10.9-39.6 0L539.7 194V91.3c0-15.1-12.5-27.8-28-27.8-15.6 0-28 12.5-28 27.8V195L432.5 143.8c-10.9-10.9-28.6-11-39.6 0-10.9 10.9-11 28.6 0 39.6l90.8 91.2v188.6l-164.2-94.8L286 244.1c-4-15-19.4-23.8-34.3-19.8-15 4-23.8 19.4-19.8 34.3l18.7 70-88.9-51.4c-13.1-7.6-30.4-3-38.1 10.4-7.8 13.5-3.2 30.5 10.1 38.2l89.8 51.9-70 18.7c-14.9 4-23.8 19.3-19.8 34.3 4 14.9 19.3 23.8 34.3 19.8l124.4-33.1 163.3 94.3-164.2 94.8-124.4-33.1c-15-4-30.3 4.9-34.3 19.8-4 15 4.9 30.3 19.8 34.3l70 18.7-88.9 51.4c-13.1 7.6-17.8 24.8-10.1 38.2 7.8 13.5 24.8 18 38.1 10.4l89.8-51.9-18.7 70c-4 14.9 4.8 30.3 19.8 34.3 14.9 4 30.3-4.8 34.3-19.8l33.6-124.3 163.3-94.3v190.6l-90.8 93c-11 11-10.9 28.7 0 39.6 11 11 28.7 10.9 39.6 0l51.2-51.2v99.9c0 15.1 12.5 27.8 28 27.8 15.6 0 28-12.5 28-27.8v-101l51.2 51.2c10.9 10.9 28.6 11 39.6 0 10.9-10.9 11-28.6 0-39.6l-90.8-93V560.2l165.1 95.3L740 780.6c4 15 19.4 23.8 34.3 19.8 15-4 23.8-19.4 19.8-34.3l-18.7-70 86.6 50c13.1 7.6 30.4 3 38.1-10.4 7.8-13.5 3.2-30.5-10.1-38.2L802.6 647l70-18.7c14.9-4 23.8-19.3 19.8-34.3-4-14.9-19.3-23.8-34.3-19.8l-125.9 32.2L568 511.6l165.1-95.3L859 448.5c15 4 30.3-4.9 34.3-19.8 4-15-4.9-30.3-19.8-34.3l-70-18.7 86.6-50c13.1-7.6 17.8-24.8 10.1-38.2-7.8-13.5-24.8-18-38.1-10.4l-87.4 50.5 18.7-70c4-14.9-4.8-30.3-19.8-34.3-14.9-4-30.3 4.8-34.3 19.8l-35.1 125.1-164.5 94.9z",fill:"currentColor"},null,-1)]))}const t2=h(Xt,[["render",e2]]);var o2={},n2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function l2(o,t){return e.openBlock(),e.createElementBlock("svg",n2,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const r2=h(o2,[["render",l2]]);var a2={},c2={fill:"currentColor",width:"24",height:"24",viewBox:"-2 0 15.998 15.998"};function s2(o,t){return e.openBlock(),e.createElementBlock("svg",c2,t[0]||(t[0]=[e.createElementVNode("path",{id:"Path_81","data-name":"Path 81",d:"M-10.217,1.343A6.039,6.039,0,0,0-15.284.134a5.979,5.979,0,0,0-4.6,4.673A5.967,5.967,0,0,0-18,10.472V10.5a2.488,2.488,0,0,0,1,1.989l0,.011v1A1.5,1.5,0,0,0-15.5,15h.355A1.168,1.168,0,0,0-14,16a1.168,1.168,0,0,0,1.145-1h.355A1.5,1.5,0,0,0-11,13.5v-1l0-.011A2.488,2.488,0,0,0-10,10.5v-.028A5.982,5.982,0,0,0-8,6,5.979,5.979,0,0,0-10.217,1.343ZM-12,13v.5a.5.5,0,0,1-.5.5h-3a.5.5,0,0,1-.5-.5V13h4Zm1.182-3.143a.5.5,0,0,0-.182.386V10.5A1.5,1.5,0,0,1-12.5,12h-3A1.5,1.5,0,0,1-17,10.5v-.257a.5.5,0,0,0-.182-.386A4.981,4.981,0,0,1-18.9,5a4.968,4.968,0,0,1,3.821-3.884A5.267,5.267,0,0,1-14.012,1a5,5,0,0,1,3.164,1.117A4.983,4.983,0,0,1-9,6,4.988,4.988,0,0,1-10.818,9.857ZM-13.5,3.5A.5.5,0,0,1-14,4a2,2,0,0,0-2,2,.5.5,0,0,1-.5.5A.5.5,0,0,1-17,6a3,3,0,0,1,3-3A.5.5,0,0,1-13.5,3.5Z",transform:"translate(20.002 -0.002)"},null,-1)]))}const i2=h(a2,[["render",s2]]);var d2={},m2={fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24"};function p2(o,t){return e.openBlock(),e.createElementBlock("svg",m2,t[0]||(t[0]=[e.createElementVNode("path",{d:"M21,3H3A2,2,0,0,0,1,5v7a2,2,0,0,0,2,2H21a2,2,0,0,0,2-2V5A2,2,0,0,0,21,3Zm0,9H3V5H21ZM5,10A1,1,0,0,1,6,9H18a1,1,0,0,1,0,2H6A1,1,0,0,1,5,10ZM16,7a1,1,0,0,1,1-1h1a1,1,0,0,1,0,2H17A1,1,0,0,1,16,7ZM9.793,20.293,11.086,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L12.914,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Zm5.5,0L16.586,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L18.414,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Zm-11,0L5.586,19l-.293-.293a1,1,0,0,1,0-1.414l2-2a1,1,0,0,1,1.414,1.414L7.414,18l.293.293a1,1,0,0,1,0,1.414l-2,2a1,1,0,0,1-1.414-1.414Z"},null,-1)]))}const f2=Object.freeze(Object.defineProperty({__proto__:null,IconAir:h(d2,[["render",p2]]),IconBulb:i2,IconBurger:Ue,IconCamera:r2,IconChevron:y,IconClose:H,IconCold:t2,IconDashboard:qe,IconDevice:Xe,IconDots:o1,IconDrop:Qt,IconEyeClose:a1,IconEyeOpen:d1,IconFile:C1,IconFolder:g1,IconGarage:Rt,IconGpio:nt,IconHeater:Pt,IconLight:Dt,IconLock:It,IconLogo:w1,IconLogoMini:M1,IconLogout:Z1,IconNoti:A1,IconPower:St,IconSave:v1,IconSearch:G1,IconSetting:mt,IconSocket:Et,IconStore:ct,IconTheme:y1,IconTherm:bt,IconTv:Vt,IconUpdate:W1,IconVent:ht,IconVideo:Y1},Symbol.toStringTag,{value:"Module"})),C2={key:0,class:"loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-gray-800 before:bg-blue-600 dark:before:bg-blue-800 before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"},h2={key:1,class:"absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-gray-900 z-10 opacity-50"},u2={class:"mb-6 flex items-center justify-between"},_2={class:"text-lg font-semibold text-gray-800 dark:text-white/90"},g2={class:"max-w-full"},V2=Object.freeze(Object.defineProperty({__proto__:null,VCardGray:e.defineComponent({__name:"VCardGray",props:{title:{default:"Title"},loading:{type:Boolean}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",{"overflow-hidden":t.loading}])},[t.loading?(e.openBlock(),e.createElementBlock("div",C2)):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createElementBlock("div",h2)):e.createCommentVNode("",!0),e.createElementVNode("div",u2,[e.createElementVNode("h3",_2,e.toDisplayString(t.title),1),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"header")])]),e.createElementVNode("div",g2,[e.renderSlot(t.$slots,"default")])],2))}})},Symbol.toStringTag,{value:"Module"})),k2={class:"flex-auto flex align-center p-4"},y2={class:"flex items-center justify-between px-4 py-2 border-b dark:border-gray-700 border-gray-200"},x2={class:"px-4 py-2 flex-auto scroll-none"},b2=["innerHTML"],B2={key:0,class:"px-4 py-2 flex justify-end"},S=e.defineComponent({__name:"AppDialog",props:{value:{type:Boolean},title:{default:"Attention !"},message:{default:""},callback:{type:Function},button:{default:"OK"},size:{default:"sm"}},emits:["close"],setup(o,{emit:t}){const a=t,n=e.ref(!1),r={sm:"max-w-[330px]",md:"max-w-[600px]",lg:"max-w-[960px]"},l=e.computed(()=>[`${r?.[o.size]||""}`]),c=s=>{n.value=!1,setTimeout(()=>{a("close",s)},300)},d=s=>{o.callback&&o.callback(),c(s)};return e.onMounted(()=>{setTimeout(()=>{n.value=!0},300)}),(s,i)=>{const p=e.resolveComponent("icon-close"),f=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"duration-300 ease-out","enter-from-class":"transform opacity-0 -translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"transform opacity-0 -translate-y-2"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"z-20 fixed top-0 h-[100dvh] w-full left-0 flex flex-col",onWheel:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"absolute h-full w-full top-0 left-0 bg-black/60",onClick:c}),e.createElementVNode("div",k2,[e.createElementVNode("div",{class:e.normalizeClass(["m-auto w-full bg-white dark:bg-gray-900 shadow-lg flex flex-col rounded-lg z-30",l.value])},[e.createElementVNode("div",y2,[e.renderSlot(s.$slots,"header",{},()=>[e.createElementVNode("h4",null,e.toDisplayString(s.title),1)]),e.createVNode(f,{type:"icon",size:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(p,{class:"h-5 w-5"})]),_:1})]),e.createElementVNode("div",x2,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("div",{innerHTML:s.message},null,8,b2)])]),s.$slots.footer||s.callback?(e.openBlock(),e.createElementBlock("div",B2,[e.renderSlot(s.$slots,"footer",{},()=>[e.createVNode(f,{color:"blue",size:"small",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.button),1)]),_:1})])])):e.createCommentVNode("",!0)],2)])],32)):e.createCommentVNode("",!0)]),_:3})])}}}),w2={class:"flex-auto flex justify-between"},$2={class:"text-sm text-gray-500 font-medium text-ellipsis overflow-hidden text-nowrap"},E2={class:"text-sm text-ellipsis overflow-hidden text-nowrap"},N2={class:"flex-auto flex items-center justify-between gap-6 me-2"},M2={class:"min-h-60 relative"},H2={class:"pt-6"},S2={class:"text-center text-3xl text-ellipsis overflow-hidden"},L2={class:"text-center text-xl mt-4"},k=e.defineComponent({__name:"CardBase",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["edit"],setup(o,{emit:t}){const a=e.ref(!1),n=t,r=e.computed(()=>o.icon?`icon-${o.icon}`:"icon-therm"),l=e.computed(()=>["button","switch"].includes(o.type||"")&&o.value?"text-amber-500":"text-gray-400"),c=p=>n("edit",p),d=()=>a.value=!0,s=p=>o.modifyValue?.(p)||p,i=e.computed(()=>({value:o.value,name:o.name,min:o.min,max:o.max,list:o.list,modify:s(o.value),icon:r.value}));return(p,f)=>{const u=e.resolveComponent("icon-dots"),C=e.resolveComponent("v-button");return e.openBlock(),e.createElementBlock("div",{class:"flex flex-col border aspect-square rounded-sm bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 p-2 hover:border-blue-400 dark:hover:border-blue-700 transition-all",onClick:d},[e.createElementVNode("div",w2,[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{class:"size-8"}))],2),e.renderSlot(p.$slots,"header",e.normalizeProps(e.guardReactiveProps(i.value)))]),e.createElementVNode("div",null,[e.createElementVNode("h6",$2,e.toDisplayString(p.name),1),e.createElementVNode("div",E2,e.toDisplayString(s(p.value)),1)]),a.value?(e.openBlock(),e.createBlock(S,{key:0,size:"sm",title:p.name,onClose:f[0]||(f[0]=g=>a.value=!1)},{header:e.withCtx(()=>[e.createElementVNode("div",N2,[e.createVNode(C,{type:"icon",size:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",M2,[e.createElementVNode("div",H2,[e.createElementVNode("h3",S2,e.toDisplayString(p.name),1),e.renderSlot(p.$slots,"dialog",e.normalizeProps(e.guardReactiveProps(i.value))),e.createElementVNode("p",L2,e.toDisplayString(s(p.value)),1)])])]),_:3},8,["title"])):e.createCommentVNode("",!0)])}}}),Z2={class:"flex justify-end"},z2={class:"flex justify-center py-4"},I2=e.defineComponent({__name:"CardButton",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>a("click",c),l=()=>a("setState",{...n,value:!n.value});return(c,d)=>{const s=e.resolveComponent("icon-power"),i=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{header:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createVNode(i,{type:"icon",size:"sm",class:"text-gray-500",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-10"})]),_:1})])]),dialog:e.withCtx(()=>[e.createElementVNode("div",z2,[e.createVNode(i,{type:"icon",size:"sm",class:e.normalizeClass(["h-18 w-18",n.value?"text-amber-500":"text-blue-600 dark:text-blue-400"]),onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-16"})]),_:1},8,["class"])])]),_:1},16)}}}),F2={class:"flex justify-center relative mx-2 my-6"},A2=e.defineComponent({__name:"CardDate",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=d=>new Date(d*1e3).toISOString().slice(0,16),l=d=>{const s=d?.target?.valueAsNumber;console.log(s),s&&a("setState",{...n,value:s/1e3})},c=d=>a("click",d);return(d,s)=>{const i=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:c}),{dialog:e.withCtx(({value:p})=>[e.createElementVNode("div",F2,[e.createVNode(i,{modelValue:r(p),type:"datetime-local",label:"Date",onChange:l},null,8,["modelValue"])])]),_:1},16)}}}),T2={class:"flex justify-end"},D2={width:"32",height:"32",viewBox:"-7.5 -7.5 75 75",version:"1.1",style:{transform:"rotate(-90deg)"}},j2=["stroke-dashoffset"],v2={class:"flex justify-center relative mx-2 my-6"},O2={class:"absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl"},P2=["min","max","value"],U2=e.defineComponent({__name:"CardDimmer",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=(s,i)=>Math.round(100*s/i),l=(s,i)=>Math.round(187-s/i*187),c=s=>a("click",s),d=s=>{const i=+s?.target?.value||0;a("setState",{...n,value:i})};return(s,i)=>(e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:c}),{header:e.withCtx(({value:p,max:f})=>[e.createElementVNode("div",T2,[e.createElementVNode("div",{class:e.normalizeClass(["","text-blue-600 dark:text-blue-400"])},[(e.openBlock(),e.createElementBlock("svg",D2,[i[0]||(i[0]=e.createElementVNode("circle",{class:"stroke-gray-300 dark:stroke-gray-700",r:"30",cx:"30",cy:"30",fill:"transparent","stroke-width":"10"},null,-1)),e.createElementVNode("circle",{r:"30",cx:"30",cy:"30",stroke:"currentColor","stroke-width":"8","stroke-linecap":"butt","stroke-dashoffset":l(p,f||0),fill:"transparent","stroke-dasharray":"187"},null,8,j2)]))])])]),dialog:e.withCtx(({min:p=0,max:f=255,value:u})=>[e.createElementVNode("div",v2,[i[1]||(i[1]=e.createElementVNode("div",{class:"absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-800 z-0 rounded-md"},null,-1)),e.createElementVNode("div",{class:"absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md",style:e.normalizeStyle(`width: ${r(u,f)}%`)},null,4),e.createElementVNode("div",O2,e.toDisplayString(r(u,f))+" %",1),e.createElementVNode("input",{type:"range",min:p,max:f,value:u,step:"1",class:"w-full h-10 z-10 appearance-none cursor-pointer opacity-0",onChange:d},null,40,P2)])]),_:1},16))}}),G2=e.defineComponent({__name:"CardInfo",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click"],setup(o,{emit:t}){const a=t,n=o,r=l=>a("click",l);return(l,c)=>(e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"dialog")]),_:3},16))}}),K2={class:"flex justify-center relative mx-2 my-6"},R2=e.defineComponent({__name:"CardInput",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>{const d=c?.target?.value;a("setState",{...n,value:d})},l=c=>a("click",c);return(c,d)=>{const s=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:l}),{dialog:e.withCtx(({value:i,name:p})=>[e.createElementVNode("div",K2,[e.createVNode(s,{modelValue:i,label:p,onChange:r},null,8,["modelValue","label"])])]),_:1},16)}}}),q2={class:"flex justify-center py-4"},W2=e.defineComponent({__name:"CardSwitch",props:{id:{},name:{},keyValue:{},type:{},icon:{},value:{},min:{},max:{},list:{},get:{type:Function},set:{type:Function},modifyValue:{type:Function},getItem:{type:Function},setItem:{type:Function}},emits:["click","setState"],setup(o,{emit:t}){const a=t,n=o,r=c=>a("click",c),l=()=>a("setState",n);return(c,d)=>{const s=e.resolveComponent("icon-power"),i=e.resolveComponent("v-button");return e.openBlock(),e.createBlock(k,e.mergeProps(n,{onClick:r}),{header:e.withCtx(()=>d[0]||(d[0]=[e.createElementVNode("div",{class:"flex justify-end"},null,-1)])),dialog:e.withCtx(()=>[e.createElementVNode("div",q2,[e.createVNode(i,{type:"icon",size:"sm",class:e.normalizeClass(["h-18 w-18",n.value?"text-amber-500":"text-blue-600 dark:text-blue-400"]),onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[e.createVNode(s,{class:"size-16"})]),_:1},8,["class"])])]),_:1},16)}}}),J2={class:"pt-6"},Q2={class:"grid grid-cols-1 gap-x-4"},X2={class:"grid grid-cols-2 gap-x-4"},Y2={class:"grid grid-cols-2 gap-x-4"},eo={class:"flex gap-2 items-center"},to={class:"grid grid-cols-2 gap-x-4"},oo={class:"flex gap-4 justify-end"},no=Object.freeze(Object.defineProperty({__proto__:null,BlockItemEdit:e.defineComponent({__name:"BlockItemEdit",props:{item:{},isNew:{type:Boolean}},emits:["remove","save","select"],setup(o,{emit:t}){const a=t,n=e.ref({id:"",name:"",keyValue:""}),r=[{name:"Air",value:"air"},{name:"Bulb",value:"bulb"},{name:"Cold",value:"cold"},{name:"Camera",value:"camera"},{name:"Vent",value:"vent"},{name:"Garage",value:"garage"},{name:"Video",value:"video"},{name:"Light",value:"light"},{name:"Tv",value:"tv"},{name:"Therm",value:"therm"},{name:"Store",value:"store"},{name:"Socket",value:"socket"},{name:"Search",value:"search"},{name:"Save",value:"save"},{name:"Noti",value:"noti"},{name:"Logout",value:"logout"},{name:"Lock",value:"lock"},{name:"Folder",value:"folder"}],l=[{name:"Button",value:"button"},{name:"Info",value:"info"},{name:"Dimmer",value:"dimmer"},{name:"Switch",value:"switch"},{name:"Date",value:"date"},{name:"Input",value:"input"}],c=u=>`icon-${u}`,d=e.computed(()=>n.value.type==="dimmer"),s=({value:u})=>{n.value.icon=u},i=({value:u})=>{n.value.type=u},p=()=>{a("save",n.value)},f=()=>{a("remove",n.value)};return e.onMounted(()=>{console.log(o.item),n.value={...o.item}}),(u,C)=>{const g=e.resolveComponent("v-text-field"),m=e.resolveComponent("VSelect"),V=e.resolveComponent("v-textarea"),B=e.resolveComponent("v-button");return e.openBlock(),e.createElementBlock("div",J2,[e.createElementVNode("div",Q2,[e.createElementVNode("div",X2,[e.createVNode(g,{modelValue:n.value.id,"onUpdate:modelValue":C[0]||(C[0]=_=>n.value.id=_),label:"ID",disabled:!u.isNew,onClick:C[1]||(C[1]=_=>a("select",_))},null,8,["modelValue","disabled"]),e.createVNode(g,{modelValue:n.value.keyValue,"onUpdate:modelValue":C[2]||(C[2]=_=>n.value.keyValue=_),label:"KeyValue"},null,8,["modelValue"])]),e.createVNode(g,{modelValue:n.value.name,"onUpdate:modelValue":C[3]||(C[3]=_=>n.value.name=_),label:"Name"},null,8,["modelValue"]),e.createElementVNode("div",Y2,[e.createVNode(m,{value:n.value.icon,class:"",label:"Icon",list:r,onChange:s},{default:e.withCtx(({item:_})=>[e.createElementVNode("div",eo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(_.value)),{class:"size-5"})),e.createElementVNode("div",null,e.toDisplayString(_.name),1)])]),_:1},8,["value"]),e.createVNode(m,{value:n.value.type,class:"",label:"Type",list:l,onChange:i},null,8,["value"])]),e.createElementVNode("div",to,[d.value?(e.openBlock(),e.createBlock(g,{key:0,modelValue:n.value.min,"onUpdate:modelValue":C[4]||(C[4]=_=>n.value.min=_),label:"Min"},null,8,["modelValue"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createBlock(g,{key:1,modelValue:n.value.max,"onUpdate:modelValue":C[5]||(C[5]=_=>n.value.max=_),label:"Max"},null,8,["modelValue"])):e.createCommentVNode("",!0)]),n.value.set?(e.openBlock(),e.createBlock(V,{key:0,modelValue:n.value.set,"onUpdate:modelValue":C[6]||(C[6]=_=>n.value.set=_),label:"Set"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(V,{modelValue:n.value.get,"onUpdate:modelValue":C[7]||(C[7]=_=>n.value.get=_),label:"Get"},null,8,["modelValue"]),e.createVNode(V,{modelValue:n.value.modifyValue,"onUpdate:modelValue":C[8]||(C[8]=_=>n.value.modifyValue=_),label:"ModifyValue"},null,8,["modelValue"])]),e.createElementVNode("div",oo,[e.createVNode(B,{class:"px-4",color:"red",outline:"",onClick:f},{default:e.withCtx(()=>C[9]||(C[9]=[e.createTextVNode("Remove")])),_:1}),e.createVNode(B,{class:"px-4",color:"blue",onClick:p},{default:e.withCtx(()=>C[10]||(C[10]=[e.createTextVNode("Save")])),_:1})])])}}}),CardBase:k,CardButton:I2,CardDate:A2,CardDimmer:U2,CardInfo:G2,CardInput:R2,CardSwitch:W2},Symbol.toStringTag,{value:"Module"})),lo={class:"bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0"},ro={class:"px-4 py-4 sm:px-6 lg:px-8"},ao={class:"container mx-auto flex flex-auto items-center"},co={class:"lg:hidden h-[30px] me-10"},so={class:"flex gap-4"},io={class:"md:hidden flex gap-4"},mo={class:"ms-2"},po=e.defineComponent({__name:"AppHeader",props:{changeTheme:{type:Function}},emits:["sidebar"],setup(o,{emit:t}){const a=t,n=e.ref(!1),r=e.ref(!1),l=e.computed(()=>[{name:"Theme",icon:"icon-theme"},{name:"Logout",icon:"icon-logout"}]),c=p=>a("sidebar",p),d=async()=>await fetch("/",{method:"get",headers:{Authorization:"Basic AAAAAAAAAAAAAAAAAAA="}}),s=()=>{o.changeTheme&&o.changeTheme()},i=({name:p})=>{p=="Logout"&&d(),p=="Theme"&&s()};return(p,f)=>{const u=e.resolveComponent("icon-burger"),C=e.resolveComponent("v-button"),g=e.resolveComponent("icon-logo"),m=e.resolveComponent("router-link"),V=e.resolveComponent("IconTheme"),B=e.resolveComponent("icon-noti"),_=e.resolveComponent("icon-logout"),go=e.resolveComponent("icon-dots"),Vo=e.resolveComponent("v-list"),ko=e.resolveComponent("v-dropdown");return e.openBlock(),e.createElementBlock("header",lo,[e.createElementVNode("div",ro,[e.createElementVNode("div",ao,[e.createVNode(C,{type:"icon",color:"gray",class:"me-6",onClick:c},{default:e.withCtx(()=>[e.createVNode(u,{class:"h-5 w-5"})]),_:1}),f[2]||(f[2]=e.createElementVNode("div",{class:"lg:hidden flex-auto"},null,-1)),e.createElementVNode("div",co,[e.createVNode(m,{to:"/"},{default:e.withCtx(()=>[e.createVNode(g,{class:"h-[30px]"})]),_:1})]),f[3]||(f[3]=e.createElementVNode("div",{class:"flex-auto"},null,-1)),e.createElementVNode("div",so,[e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:s},{default:e.withCtx(()=>[e.createVNode(V)]),_:1}),e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:f[0]||(f[0]=e.withModifiers(x=>{n.value=!n.value,r.value=!1},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass([r.value?"flex":"hidden","absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400 flex"])},f[1]||(f[1]=[e.createElementVNode("span",{class:"absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75"},null,-1)]),2),e.createVNode(B,{class:"h-5 w-5"})]),_:1}),e.createVNode(C,{type:"icon",color:"gray",class:"hidden md:flex",onClick:e.withModifiers(d,["prevent"])},{default:e.withCtx(()=>[e.createVNode(_,{class:"h-5 w-5"})]),_:1})]),e.createElementVNode("div",io,[e.createVNode(ko,{left:"unset",right:"0",top:"0"},{activator:e.withCtx(({on:x})=>[e.createVNode(C,{type:"icon",color:"gray",class:"flex",onClick:No=>x.click()},{default:e.withCtx(()=>[e.createVNode(go)]),_:2},1032,["onClick"])]),default:e.withCtx(()=>[e.createVNode(Vo,{list:l.value,onClick:i},{default:e.withCtx(({item:x})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.icon))),e.createElementVNode("span",mo,e.toDisplayString(x.name),1)]),_:1},8,["list"])]),_:1})])])])])}}}),fo=e.defineComponent({__name:"AppNotification",props:{notifications:{default:()=>[]}},emits:["close"],setup(o,{emit:t}){const a=t;return(n,r)=>{const l=e.resolveComponent("v-notification");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.TransitionGroup,{name:"list",tag:"ul",class:"flex flex-col gap-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.notifications,c=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:c.id,ref_for:!0},c,{onClose:d=>a("close",c)}),null,16,["onClose"]))),128))]),_:1})])}}});var Co={},ho={class:"fixed h-full w-full top-0 left-0 z-20"},uo={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"};function _o(o,t){return e.openBlock(),e.createElementBlock("div",ho,[t[0]||(t[0]=e.createElementVNode("div",{class:"absolute h-full w-full top-0 left-0 bg-gray-900 opacity-40"},null,-1)),e.createElementVNode("div",uo,[e.renderSlot(o.$slots,"default")])])}const L={...f2,...je,...V2,...no,...Object.freeze(Object.defineProperty({__proto__:null,AppDialog:S,AppHeader:po,AppNotification:fo,AppOverlay:h(Co,[["render",_o]])},Symbol.toStringTag,{value:"Module"}))};return{install:o=>{Object.keys(L).forEach(t=>{o.component(t,L[t])}),Z.forEach(({name:t,directive:a})=>o.directive(t,a))}}});
|
package/package.json
CHANGED