@danidoble/webserial 4.3.4 → 4.3.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.
package/dist/kernel.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./kernel-CzkmE_OW.cjs"),r=require("./webserial-core-5B5nYtyR.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./kernel-D8A562gb.cjs"),r=require("./webserial-core-N14HUamr.cjs");/**
2
2
  * @license Webserial
3
3
  * webserial
4
4
  *
package/dist/kernel.js CHANGED
@@ -1,5 +1,5 @@
1
- import { K as s } from "./kernel-BblykfpT.js";
2
- import { h as n } from "./webserial-core-ByrJ7tlu.js";
1
+ import { K as s } from "./kernel-DAtdBEi3.js";
2
+ import { h as n } from "./webserial-core-BjytHor1.js";
3
3
  /**
4
4
  * @license Webserial
5
5
  * webserial
package/dist/locker.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var y=l=>{throw TypeError(l)};var w=(l,c,e)=>c.has(l)||y("Cannot "+e);var r=(l,c,e)=>(w(l,c,"read from private field"),e?e.call(l):c.get(l)),u=(l,c,e)=>c.has(l)?y("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(l):c.set(l,e),i=(l,c,e,s)=>(w(l,c,"write to private field"),s?s.call(l,e):c.set(l,e),e),n=(l,c,e)=>(w(l,c,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./kernel-CzkmE_OW.cjs"),d=require("./relay-DGFymXOw.cjs"),v=require("./webserial-core-5B5nYtyR.cjs");var h,a,o,t,C,_,f,g,b,k,T;class A extends m.Kernel{constructor({filters:e=null,config_port:s=null,no_device:p=1,device_listen_on_port:q=3}={}){super({filters:e,config_port:s,no_device:p,device_listen_on_port:q});u(this,t);u(this,h,!1);u(this,a,0);u(this,o,0);if(this.__internal__.device.type="locker",v.h.getCustom(this.typeDevice,p))throw new Error(`Device ${this.typeDevice} ${p} already exists`);this.__internal__.time.response_engines=1e3,this.__internal__.device.milliseconds=666,this.__internal__.dispense.limit_counter=1,v.h.add(this),n(this,t,C).call(this)}serialMessage(e){const s={code:e,name:null,description:null,request:null,no_code:0};switch(e[1]){case"08":s.name="Connection with the serial device completed.",s.description="Your connection with the serial device was successfully completed.",s.request="connect",s.no_code=100;break;case"07":switch(e[4]){case"00":s.name="Cell closed.",s.description="The selected cell is closed.",s.request="dispense",s.no_code=1102,this.__internal__.dispense.status=!1,this.dispatch("dispensed",{}),r(this,h)&&r(this,a)>=89?(s.finished_test=!0,i(this,h,!1),i(this,a,0)):r(this,h)&&(s.finished_test=!1);break;case"01":case"04":s.name="Cell open.",s.description="The selected cell was open successfully.",s.request="dispense",s.no_code=102,this.__internal__.dispense.status=!0,this.dispatch("dispensed",{}),r(this,h)&&r(this,a)>=89?(s.finished_test=!0,i(this,h,!1),i(this,a,0)):r(this,h)&&(s.finished_test=!1);break;case"05":s.name="Cell inactive.",s.description="The selected cell is inactive or doesn't exist.",s.request="dispense",s.no_code=101,this.__internal__.dispense.status=!1,this.dispatch("not-dispensed",{}),r(this,h)&&r(this,a)>=89?(s.finished_test=!0,i(this,h,!1),i(this,a,0)):r(this,h)&&(s.finished_test=!1);break}break;case"06":s.name="Configuration applied.",s.description="The configuration was successfully applied.",s.request="configure cell",s.no_code=103;break;default:s.request="undefined",s.name="Response unrecognized",s.description="The response of application was received, but dont identify with any of current parameters",s.no_code=400;break}this.dispatch("serial:message",s)}serialSetConnectionConstant(e=3){return d.u.connection({channel:e})}async dispense({cell:e=1,status:s=!0}={}){return setTimeout(()=>{s===!0?n(this,t,k).call(this):n(this,t,T).call(this)},this.__internal__.time.response_engines/2),await this.internalDispense(d.u.openCell({cell:e,channel:this.__internal__.device.listen_on_port}))}async status({cell:e=1}={}){return await this.appendToQueue(d.u.statusCell({cell:e,channel:this.__internal__.device.listen_on_port}),"status")}async lightScan({since:e=0,until:s=10}={}){return await this.appendToQueue(d.u.lightScan({channel:this.__internal__.device.listen_on_port,since:e,until:s}),"light-scan")}async enable({cell:e=1}={}){return await this.appendToQueue(d.u.enableCell({cell:e,channel:this.__internal__.device.listen_on_port}),"activate")}async disable({cell:e=1}={}){await this.appendToQueue(d.u.disableCell({cell:e,channel:this.__internal__.device.listen_on_port}),"disable")}async openAll(){if(this.isDispensing)throw new Error("Another dispensing process is running");n(this,t,_).call(this),i(this,h,!0),n(this,t,f).call(this);const e=[];for(let s=1;s<=80;s++){const p=await this.dispense({cell:s,status:!0});e.push(p),i(this,a,s),n(this,t,f).call(this)}i(this,a,80),n(this,t,f).call(this,e),n(this,t,_).call(this)}async enableAll(){n(this,t,_).call(this),i(this,h,!0),n(this,t,g).call(this);for(let e=1;e<=80;e++)await this.enable({cell:e}),await m.wait(100),i(this,a,e),n(this,t,g).call(this);i(this,a,80),n(this,t,g).call(this),n(this,t,_).call(this)}async disableAll(){n(this,t,_).call(this),i(this,h,!0),n(this,t,b).call(this);for(let e=1;e<=80;e++)await this.disable({cell:e}),await m.wait(100),i(this,a,e),n(this,t,b).call(this);i(this,a,80),n(this,t,b).call(this),n(this,t,_).call(this)}}h=new WeakMap,a=new WeakMap,o=new WeakMap,t=new WeakSet,C=function(){const e=["percentage:disable","percentage:enable","percentage:open"];for(const s of e)this.serialRegisterAvailableListener(s)},_=function(){i(this,h,!1),i(this,a,0),i(this,o,0)},f=function(e=null){i(this,o,Math.round(r(this,a)*100/80)),this.dispatch("percentage:open",{percentage:r(this,o),dispensed:e})},g=function(){i(this,o,Math.round(r(this,a)*100/80)),this.dispatch("percentage:enable",{percentage:r(this,o)})},b=function(){i(this,o,Math.round(r(this,a)*100/80)),this.dispatch("percentage:disable",{percentage:r(this,o)})},k=function(){this.__internal__.dispense.dispensing&&(this.__internal__.dispense.status=!0)},T=function(){this.__internal__.dispense.dispensing&&(this.__internal__.dispense.status=!1)};exports.Locker=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./kernel-D8A562gb.cjs"),t=require("./relay-DGFymXOw.cjs"),a=require("./webserial-core-N14HUamr.cjs");class r extends n.Kernel{#s=!1;#e=0;#t=0;constructor({filters:s=null,config_port:e=null,no_device:i=1,device_listen_on_port:l=3}={}){if(super({filters:s,config_port:e,no_device:i,device_listen_on_port:l}),this.__internal__.device.type="locker",a.h.getCustom(this.typeDevice,i))throw new Error(`Device ${this.typeDevice} ${i} already exists`);this.__internal__.time.response_engines=1e3,this.__internal__.device.milliseconds=666,this.__internal__.dispense.limit_counter=1,a.h.add(this),this.#r()}#r(){const s=["percentage:disable","percentage:enable","percentage:open"];for(const e of s)this.serialRegisterAvailableListener(e)}serialMessage(s){const e={code:s,name:null,description:null,request:null,no_code:0};switch(s[1]){case"08":e.name="Connection with the serial device completed.",e.description="Your connection with the serial device was successfully completed.",e.request="connect",e.no_code=100;break;case"07":switch(s[4]){case"00":e.name="Cell closed.",e.description="The selected cell is closed.",e.request="dispense",e.no_code=1102,this.__internal__.dispense.status=!1,this.dispatch("dispensed",{}),this.#s&&this.#e>=89?(e.finished_test=!0,this.#s=!1,this.#e=0):this.#s&&(e.finished_test=!1);break;case"01":case"04":e.name="Cell open.",e.description="The selected cell was open successfully.",e.request="dispense",e.no_code=102,this.__internal__.dispense.status=!0,this.dispatch("dispensed",{}),this.#s&&this.#e>=89?(e.finished_test=!0,this.#s=!1,this.#e=0):this.#s&&(e.finished_test=!1);break;case"05":e.name="Cell inactive.",e.description="The selected cell is inactive or doesn't exist.",e.request="dispense",e.no_code=101,this.__internal__.dispense.status=!1,this.dispatch("not-dispensed",{}),this.#s&&this.#e>=89?(e.finished_test=!0,this.#s=!1,this.#e=0):this.#s&&(e.finished_test=!1);break}break;case"06":e.name="Configuration applied.",e.description="The configuration was successfully applied.",e.request="configure cell",e.no_code=103;break;default:e.request="undefined",e.name="Response unrecognized",e.description="The response of application was received, but dont identify with any of current parameters",e.no_code=400;break}this.dispatch("serial:message",e)}serialSetConnectionConstant(s=3){return t.u.connection({channel:s})}#i(){this.#s=!1,this.#e=0,this.#t=0}#n(s=null){this.#t=Math.round(this.#e*100/80),this.dispatch("percentage:open",{percentage:this.#t,dispensed:s})}#a(){this.#t=Math.round(this.#e*100/80),this.dispatch("percentage:enable",{percentage:this.#t})}#l(){this.#t=Math.round(this.#e*100/80),this.dispatch("percentage:disable",{percentage:this.#t})}async dispense({cell:s=1,status:e=!0}={}){return setTimeout(()=>{e===!0?this.#h():this.#c()},this.__internal__.time.response_engines/2),await this.internalDispense(t.u.openCell({cell:s,channel:this.__internal__.device.listen_on_port}))}#h(){this.__internal__.dispense.dispensing&&(this.__internal__.dispense.status=!0)}#c(){this.__internal__.dispense.dispensing&&(this.__internal__.dispense.status=!1)}async status({cell:s=1}={}){return await this.appendToQueue(t.u.statusCell({cell:s,channel:this.__internal__.device.listen_on_port}),"status")}async lightScan({since:s=0,until:e=10}={}){return await this.appendToQueue(t.u.lightScan({channel:this.__internal__.device.listen_on_port,since:s,until:e}),"light-scan")}async enable({cell:s=1}={}){return await this.appendToQueue(t.u.enableCell({cell:s,channel:this.__internal__.device.listen_on_port}),"activate")}async disable({cell:s=1}={}){await this.appendToQueue(t.u.disableCell({cell:s,channel:this.__internal__.device.listen_on_port}),"disable")}async openAll(){if(this.isDispensing)throw new Error("Another dispensing process is running");this.#i(),this.#s=!0,this.#n();const s=[];for(let e=1;e<=80;e++){const i=await this.dispense({cell:e,status:!0});s.push(i),this.#e=e,this.#n()}this.#e=80,this.#n(s),this.#i()}async enableAll(){this.#i(),this.#s=!0,this.#a();for(let s=1;s<=80;s++)await this.enable({cell:s}),await n.wait(100),this.#e=s,this.#a();this.#e=80,this.#a(),this.#i()}async disableAll(){this.#i(),this.#s=!0,this.#l();for(let s=1;s<=80;s++)await this.disable({cell:s}),await n.wait(100),this.#e=s,this.#l();this.#e=80,this.#l(),this.#i()}}exports.Locker=r;
package/dist/locker.js CHANGED
@@ -1,104 +1,119 @@
1
- var w = (l) => {
2
- throw TypeError(l);
3
- };
4
- var b = (l, c, e) => c.has(l) || w("Cannot " + e);
5
- var r = (l, c, e) => (b(l, c, "read from private field"), e ? e.call(l) : c.get(l)), u = (l, c, e) => c.has(l) ? w("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(l) : c.set(l, e), i = (l, c, e, s) => (b(l, c, "write to private field"), s ? s.call(l, e) : c.set(l, e), e), n = (l, c, e) => (b(l, c, "access private method"), e);
6
- import { K as D, w as v } from "./kernel-BblykfpT.js";
7
- import { u as p } from "./relay-CsdB0FSa.js";
8
- import { h as y } from "./webserial-core-ByrJ7tlu.js";
9
- var h, a, o, t, C, _, f, g, m, T, k;
10
- class Q extends D {
11
- constructor({ filters: e = null, config_port: s = null, no_device: d = 1, device_listen_on_port: A = 3 } = {}) {
12
- super({ filters: e, config_port: s, no_device: d, device_listen_on_port: A });
13
- u(this, t);
14
- u(this, h, !1);
15
- u(this, a, 0);
16
- u(this, o, 0);
17
- if (this.__internal__.device.type = "locker", y.getCustom(this.typeDevice, d))
18
- throw new Error(`Device ${this.typeDevice} ${d} already exists`);
19
- this.__internal__.time.response_engines = 1e3, this.__internal__.device.milliseconds = 666, this.__internal__.dispense.limit_counter = 1, y.add(this), n(this, t, C).call(this);
20
- }
21
- serialMessage(e) {
22
- const s = {
23
- code: e,
1
+ import { K as r, w as n } from "./kernel-DAtdBEi3.js";
2
+ import { u as t } from "./relay-CsdB0FSa.js";
3
+ import { h as a } from "./webserial-core-BjytHor1.js";
4
+ class p extends r {
5
+ #s = !1;
6
+ #e = 0;
7
+ #t = 0;
8
+ constructor({ filters: s = null, config_port: e = null, no_device: i = 1, device_listen_on_port: l = 3 } = {}) {
9
+ if (super({ filters: s, config_port: e, no_device: i, device_listen_on_port: l }), this.__internal__.device.type = "locker", a.getCustom(this.typeDevice, i))
10
+ throw new Error(`Device ${this.typeDevice} ${i} already exists`);
11
+ this.__internal__.time.response_engines = 1e3, this.__internal__.device.milliseconds = 666, this.__internal__.dispense.limit_counter = 1, a.add(this), this.#r();
12
+ }
13
+ #r() {
14
+ const s = ["percentage:disable", "percentage:enable", "percentage:open"];
15
+ for (const e of s)
16
+ this.serialRegisterAvailableListener(e);
17
+ }
18
+ serialMessage(s) {
19
+ const e = {
20
+ code: s,
24
21
  name: null,
25
22
  description: null,
26
23
  request: null,
27
24
  no_code: 0
28
25
  };
29
- switch (e[1]) {
26
+ switch (s[1]) {
30
27
  case "08":
31
- s.name = "Connection with the serial device completed.", s.description = "Your connection with the serial device was successfully completed.", s.request = "connect", s.no_code = 100;
28
+ e.name = "Connection with the serial device completed.", e.description = "Your connection with the serial device was successfully completed.", e.request = "connect", e.no_code = 100;
32
29
  break;
33
30
  case "07":
34
- switch (e[4]) {
31
+ switch (s[4]) {
35
32
  case "00":
36
- s.name = "Cell closed.", s.description = "The selected cell is closed.", s.request = "dispense", s.no_code = 1102, this.__internal__.dispense.status = !1, this.dispatch("dispensed", {}), r(this, h) && r(this, a) >= 89 ? (s.finished_test = !0, i(this, h, !1), i(this, a, 0)) : r(this, h) && (s.finished_test = !1);
33
+ e.name = "Cell closed.", e.description = "The selected cell is closed.", e.request = "dispense", e.no_code = 1102, this.__internal__.dispense.status = !1, this.dispatch("dispensed", {}), this.#s && this.#e >= 89 ? (e.finished_test = !0, this.#s = !1, this.#e = 0) : this.#s && (e.finished_test = !1);
37
34
  break;
38
35
  case "01":
39
36
  // cell open by status
40
37
  case "04":
41
- s.name = "Cell open.", s.description = "The selected cell was open successfully.", s.request = "dispense", s.no_code = 102, this.__internal__.dispense.status = !0, this.dispatch("dispensed", {}), r(this, h) && r(this, a) >= 89 ? (s.finished_test = !0, i(this, h, !1), i(this, a, 0)) : r(this, h) && (s.finished_test = !1);
38
+ e.name = "Cell open.", e.description = "The selected cell was open successfully.", e.request = "dispense", e.no_code = 102, this.__internal__.dispense.status = !0, this.dispatch("dispensed", {}), this.#s && this.#e >= 89 ? (e.finished_test = !0, this.#s = !1, this.#e = 0) : this.#s && (e.finished_test = !1);
42
39
  break;
43
40
  case "05":
44
- s.name = "Cell inactive.", s.description = "The selected cell is inactive or doesn't exist.", s.request = "dispense", s.no_code = 101, this.__internal__.dispense.status = !1, this.dispatch("not-dispensed", {}), r(this, h) && r(this, a) >= 89 ? (s.finished_test = !0, i(this, h, !1), i(this, a, 0)) : r(this, h) && (s.finished_test = !1);
41
+ e.name = "Cell inactive.", e.description = "The selected cell is inactive or doesn't exist.", e.request = "dispense", e.no_code = 101, this.__internal__.dispense.status = !1, this.dispatch("not-dispensed", {}), this.#s && this.#e >= 89 ? (e.finished_test = !0, this.#s = !1, this.#e = 0) : this.#s && (e.finished_test = !1);
45
42
  break;
46
43
  }
47
44
  break;
48
45
  case "06":
49
- s.name = "Configuration applied.", s.description = "The configuration was successfully applied.", s.request = "configure cell", s.no_code = 103;
46
+ e.name = "Configuration applied.", e.description = "The configuration was successfully applied.", e.request = "configure cell", e.no_code = 103;
50
47
  break;
51
48
  default:
52
- s.request = "undefined", s.name = "Response unrecognized", s.description = "The response of application was received, but dont identify with any of current parameters", s.no_code = 400;
49
+ e.request = "undefined", e.name = "Response unrecognized", e.description = "The response of application was received, but dont identify with any of current parameters", e.no_code = 400;
53
50
  break;
54
51
  }
55
- this.dispatch("serial:message", s);
52
+ this.dispatch("serial:message", e);
53
+ }
54
+ serialSetConnectionConstant(s = 3) {
55
+ return t.connection({ channel: s });
56
+ }
57
+ #i() {
58
+ this.#s = !1, this.#e = 0, this.#t = 0;
56
59
  }
57
- serialSetConnectionConstant(e = 3) {
58
- return p.connection({ channel: e });
60
+ #n(s = null) {
61
+ this.#t = Math.round(this.#e * 100 / 80), this.dispatch("percentage:open", { percentage: this.#t, dispensed: s });
59
62
  }
60
- async dispense({ cell: e = 1, status: s = !0 } = {}) {
63
+ #a() {
64
+ this.#t = Math.round(this.#e * 100 / 80), this.dispatch("percentage:enable", { percentage: this.#t });
65
+ }
66
+ #l() {
67
+ this.#t = Math.round(this.#e * 100 / 80), this.dispatch("percentage:disable", { percentage: this.#t });
68
+ }
69
+ async dispense({ cell: s = 1, status: e = !0 } = {}) {
61
70
  return setTimeout(() => {
62
- s === !0 ? n(this, t, T).call(this) : n(this, t, k).call(this);
71
+ e === !0 ? this.#h() : this.#c();
63
72
  }, this.__internal__.time.response_engines / 2), await this.internalDispense(
64
- p.openCell({
65
- cell: e,
73
+ t.openCell({
74
+ cell: s,
66
75
  channel: this.__internal__.device.listen_on_port
67
76
  })
68
77
  );
69
78
  }
70
- async status({ cell: e = 1 } = {}) {
79
+ #h() {
80
+ this.__internal__.dispense.dispensing && (this.__internal__.dispense.status = !0);
81
+ }
82
+ #c() {
83
+ this.__internal__.dispense.dispensing && (this.__internal__.dispense.status = !1);
84
+ }
85
+ async status({ cell: s = 1 } = {}) {
71
86
  return await this.appendToQueue(
72
- p.statusCell({
73
- cell: e,
87
+ t.statusCell({
88
+ cell: s,
74
89
  channel: this.__internal__.device.listen_on_port
75
90
  }),
76
91
  "status"
77
92
  );
78
93
  }
79
- async lightScan({ since: e = 0, until: s = 10 } = {}) {
94
+ async lightScan({ since: s = 0, until: e = 10 } = {}) {
80
95
  return await this.appendToQueue(
81
- p.lightScan({
96
+ t.lightScan({
82
97
  channel: this.__internal__.device.listen_on_port,
83
- since: e,
84
- until: s
98
+ since: s,
99
+ until: e
85
100
  }),
86
101
  "light-scan"
87
102
  );
88
103
  }
89
- async enable({ cell: e = 1 } = {}) {
104
+ async enable({ cell: s = 1 } = {}) {
90
105
  return await this.appendToQueue(
91
- p.enableCell({
92
- cell: e,
106
+ t.enableCell({
107
+ cell: s,
93
108
  channel: this.__internal__.device.listen_on_port
94
109
  }),
95
110
  "activate"
96
111
  );
97
112
  }
98
- async disable({ cell: e = 1 } = {}) {
113
+ async disable({ cell: s = 1 } = {}) {
99
114
  await this.appendToQueue(
100
- p.disableCell({
101
- cell: e,
115
+ t.disableCell({
116
+ cell: s,
102
117
  channel: this.__internal__.device.listen_on_port
103
118
  }),
104
119
  "disable"
@@ -106,44 +121,27 @@ class Q extends D {
106
121
  }
107
122
  async openAll() {
108
123
  if (this.isDispensing) throw new Error("Another dispensing process is running");
109
- n(this, t, _).call(this), i(this, h, !0), n(this, t, f).call(this);
110
- const e = [];
111
- for (let s = 1; s <= 80; s++) {
112
- const d = await this.dispense({ cell: s, status: !0 });
113
- e.push(d), i(this, a, s), n(this, t, f).call(this);
124
+ this.#i(), this.#s = !0, this.#n();
125
+ const s = [];
126
+ for (let e = 1; e <= 80; e++) {
127
+ const i = await this.dispense({ cell: e, status: !0 });
128
+ s.push(i), this.#e = e, this.#n();
114
129
  }
115
- i(this, a, 80), n(this, t, f).call(this, e), n(this, t, _).call(this);
130
+ this.#e = 80, this.#n(s), this.#i();
116
131
  }
117
132
  async enableAll() {
118
- n(this, t, _).call(this), i(this, h, !0), n(this, t, g).call(this);
119
- for (let e = 1; e <= 80; e++)
120
- await this.enable({ cell: e }), await v(100), i(this, a, e), n(this, t, g).call(this);
121
- i(this, a, 80), n(this, t, g).call(this), n(this, t, _).call(this);
133
+ this.#i(), this.#s = !0, this.#a();
134
+ for (let s = 1; s <= 80; s++)
135
+ await this.enable({ cell: s }), await n(100), this.#e = s, this.#a();
136
+ this.#e = 80, this.#a(), this.#i();
122
137
  }
123
138
  async disableAll() {
124
- n(this, t, _).call(this), i(this, h, !0), n(this, t, m).call(this);
125
- for (let e = 1; e <= 80; e++)
126
- await this.disable({ cell: e }), await v(100), i(this, a, e), n(this, t, m).call(this);
127
- i(this, a, 80), n(this, t, m).call(this), n(this, t, _).call(this);
139
+ this.#i(), this.#s = !0, this.#l();
140
+ for (let s = 1; s <= 80; s++)
141
+ await this.disable({ cell: s }), await n(100), this.#e = s, this.#l();
142
+ this.#e = 80, this.#l(), this.#i();
128
143
  }
129
144
  }
130
- h = new WeakMap(), a = new WeakMap(), o = new WeakMap(), t = new WeakSet(), C = function() {
131
- const e = ["percentage:disable", "percentage:enable", "percentage:open"];
132
- for (const s of e)
133
- this.serialRegisterAvailableListener(s);
134
- }, _ = function() {
135
- i(this, h, !1), i(this, a, 0), i(this, o, 0);
136
- }, f = function(e = null) {
137
- i(this, o, Math.round(r(this, a) * 100 / 80)), this.dispatch("percentage:open", { percentage: r(this, o), dispensed: e });
138
- }, g = function() {
139
- i(this, o, Math.round(r(this, a) * 100 / 80)), this.dispatch("percentage:enable", { percentage: r(this, o) });
140
- }, m = function() {
141
- i(this, o, Math.round(r(this, a) * 100 / 80)), this.dispatch("percentage:disable", { percentage: r(this, o) });
142
- }, T = function() {
143
- this.__internal__.dispense.dispensing && (this.__internal__.dispense.status = !0);
144
- }, k = function() {
145
- this.__internal__.dispense.dispensing && (this.__internal__.dispense.status = !1);
146
- };
147
145
  export {
148
- Q as Locker
146
+ p as Locker
149
147
  };