@burdenoff/microfe-healthybowl 2026.1017.3 → 2026.1018.2

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.
@@ -185,7 +185,7 @@ var P = ({ children: f }) => {
185
185
  x(() => {
186
186
  let e = H.current.online;
187
187
  return r((t) => {
188
- Pe(t);
188
+ H.current = t, Pe(t);
189
189
  let n = !e && t.online;
190
190
  e = t.online, n && V.current.autoSyncOnReconnect && J();
191
191
  });
@@ -32,56 +32,56 @@ function p(e) {
32
32
  updatedAt: Date.now()
33
33
  };
34
34
  }
35
- function ee(e, t) {
35
+ function m(e, t) {
36
36
  return typeof e != "string" || e === "" || typeof t != "string" || t === "" ? null : {
37
37
  workspaceId: e,
38
38
  actorId: t
39
39
  };
40
40
  }
41
- function m(e) {
41
+ function h(e) {
42
42
  return !!e && typeof e.workspaceId == "string" && e.workspaceId !== "" && typeof e.actorId == "string" && e.actorId !== "";
43
43
  }
44
- function h(e, t) {
45
- return m(t) && e.workspaceId === t.workspaceId && e.actorId === t.actorId;
46
- }
47
44
  function g(e, t) {
48
- return m(t) && !e.actorId && e.workspaceId === t.workspaceId;
45
+ return h(t) && e.workspaceId === t.workspaceId && e.actorId === t.actorId;
46
+ }
47
+ function _(e, t) {
48
+ return h(t) && !e.actorId && e.workspaceId === t.workspaceId;
49
49
  }
50
- var te = new Set([
50
+ var ee = new Set([
51
51
  "QUEUED",
52
52
  "UPLOADING",
53
53
  "FAILED",
54
54
  "CONFLICT"
55
55
  ]);
56
- function _(e, t) {
57
- return g(e, t) && te.has(e.status);
56
+ function v(e, t) {
57
+ return _(e, t) && ee.has(e.status);
58
58
  }
59
- var v = class extends Error {
59
+ var y = class extends Error {
60
60
  constructor(e) {
61
61
  super(e), this.name = "OfflineOwnershipError";
62
62
  }
63
- }, ne = {
63
+ }, te = {
64
64
  [r]: "clientId",
65
65
  [i]: "id",
66
66
  [a]: "id",
67
67
  [s]: "clientId",
68
68
  [c]: "actorId"
69
- }, y = null, b = !1, x = /* @__PURE__ */ new Set();
70
- function S(e) {
71
- if (b !== e) {
72
- b = e;
73
- for (let t of x) t(e);
69
+ }, b = null, x = !1, S = /* @__PURE__ */ new Set();
70
+ function C(e) {
71
+ if (x !== e) {
72
+ x = e;
73
+ for (let t of S) t(e);
74
74
  }
75
75
  }
76
- function re() {
77
- return b;
76
+ function ne() {
77
+ return x;
78
78
  }
79
- function ie(e) {
80
- return x.add(e), () => {
81
- x.delete(e);
79
+ function w(e) {
80
+ return S.add(e), () => {
81
+ S.delete(e);
82
82
  };
83
83
  }
84
- var C = {
84
+ var T = {
85
85
  [r]: /* @__PURE__ */ new Map(),
86
86
  [i]: /* @__PURE__ */ new Map(),
87
87
  [a]: /* @__PURE__ */ new Map(),
@@ -89,15 +89,15 @@ var C = {
89
89
  [s]: /* @__PURE__ */ new Map(),
90
90
  [c]: /* @__PURE__ */ new Map()
91
91
  };
92
- function w() {
92
+ function E() {
93
93
  try {
94
94
  return typeof indexedDB < "u" && indexedDB !== null;
95
95
  } catch {
96
96
  return !1;
97
97
  }
98
98
  }
99
- function T() {
100
- return y || (y = new Promise((e, l) => {
99
+ function D() {
100
+ return b || (b = new Promise((e, l) => {
101
101
  let u = indexedDB.open(t, n);
102
102
  u.onupgradeneeded = (e) => {
103
103
  let t = u.result;
@@ -114,80 +114,80 @@ function T() {
114
114
  n !== t.value && t.update(n), t.continue();
115
115
  };
116
116
  }
117
- }, u.onblocked = () => S(!0), u.onsuccess = () => {
118
- S(!1);
117
+ }, u.onblocked = () => C(!0), u.onsuccess = () => {
118
+ C(!1);
119
119
  let t = u.result;
120
120
  t.onversionchange = () => {
121
- t.close(), y = null;
121
+ t.close(), b = null;
122
122
  }, e(t);
123
123
  }, u.onerror = () => {
124
- S(!1), y = null, l(u.error);
124
+ C(!1), b = null, l(u.error);
125
125
  };
126
- }), y);
126
+ }), b);
127
127
  }
128
- function E(e, t, n) {
129
- return T().then((r) => new Promise((i, a) => {
128
+ function O(e, t, n) {
129
+ return D().then((r) => new Promise((i, a) => {
130
130
  let o = n(r.transaction(e, t).objectStore(e));
131
131
  o.onsuccess = () => i(o.result), o.onerror = () => a(o.error);
132
132
  }));
133
133
  }
134
- function D(e, t, n) {
134
+ function k(e, t, n) {
135
135
  if (n !== void 0) return String(n);
136
- let r = e === o ? void 0 : ne[e], i = r && f(t) ? t[r] : void 0;
136
+ let r = e === o ? void 0 : te[e], i = r && f(t) ? t[r] : void 0;
137
137
  if (typeof i != "string" || i === "") throw Error(`Offline ${e} row has no ${r ?? "key"}`);
138
138
  return i;
139
139
  }
140
- async function O(e, t, n) {
141
- if (!w()) {
142
- C[e].set(D(e, t, n), t);
140
+ async function A(e, t, n) {
141
+ if (!E()) {
142
+ T[e].set(k(e, t, n), t);
143
143
  return;
144
144
  }
145
- await E(e, "readwrite", (e) => n === void 0 ? e.put(t) : e.put(t, n));
145
+ await O(e, "readwrite", (e) => n === void 0 ? e.put(t) : e.put(t, n));
146
146
  }
147
- async function k(e, t) {
148
- return w() ? E(e, "readonly", (e) => e.get(t)) : C[e].get(String(t));
147
+ async function j(e, t) {
148
+ return E() ? O(e, "readonly", (e) => e.get(t)) : T[e].get(String(t));
149
149
  }
150
- async function A(e) {
151
- return w() ? E(e, "readonly", (e) => e.getAll()) : Array.from(C[e].values());
150
+ async function M(e) {
151
+ return E() ? O(e, "readonly", (e) => e.getAll()) : Array.from(T[e].values());
152
152
  }
153
- async function ae(e) {
154
- return w() ? E(e, "readonly", (e) => e.getAllKeys()) : Array.from(C[e].keys());
153
+ async function re(e) {
154
+ return E() ? O(e, "readonly", (e) => e.getAllKeys()) : Array.from(T[e].keys());
155
155
  }
156
- async function j(e, t) {
157
- if (!w()) {
158
- C[e].delete(String(t));
156
+ async function N(e, t) {
157
+ if (!E()) {
158
+ T[e].delete(String(t));
159
159
  return;
160
160
  }
161
- await E(e, "readwrite", (e) => e.delete(t));
161
+ await O(e, "readwrite", (e) => e.delete(t));
162
162
  }
163
- async function M(e) {
164
- if (!w()) {
165
- C[e].clear();
163
+ async function ie(e) {
164
+ if (!E()) {
165
+ T[e].clear();
166
166
  return;
167
167
  }
168
- await E(e, "readwrite", (e) => e.clear());
168
+ await O(e, "readwrite", (e) => e.clear());
169
169
  }
170
- function N(e, t) {
171
- if (typeof t.workspaceId != "string" || t.workspaceId === "") throw new v("An offline record must carry the workspace it was captured in.");
172
- if (typeof t.actorId != "string" || t.actorId === "") throw new v("An offline record must carry the user who captured it.");
170
+ function P(e, t) {
171
+ if (typeof t.workspaceId != "string" || t.workspaceId === "") throw new y("An offline record must carry the workspace it was captured in.");
172
+ if (typeof t.actorId != "string" || t.actorId === "") throw new y("An offline record must carry the user who captured it.");
173
173
  if (f(e)) {
174
- if (typeof e.workspaceId == "string" && e.workspaceId !== "" && e.workspaceId !== t.workspaceId) throw new v("An offline record cannot move to another workspace.");
175
- if (typeof e.actorId == "string" && e.actorId !== "" && e.actorId !== t.actorId) throw new v("An offline record cannot change owner.");
174
+ if (typeof e.workspaceId == "string" && e.workspaceId !== "" && e.workspaceId !== t.workspaceId) throw new y("An offline record cannot move to another workspace.");
175
+ if (typeof e.actorId == "string" && e.actorId !== "" && e.actorId !== t.actorId) throw new y("An offline record cannot change owner.");
176
176
  }
177
177
  }
178
- async function P(e, t, n = {}) {
179
- let r = D(e, t);
180
- if (!w()) {
181
- let i = C[e].get(r);
182
- return n.mustExist && i === void 0 ? !1 : (N(i, t), C[e].set(r, t), !0);
178
+ async function F(e, t, n = {}) {
179
+ let r = k(e, t);
180
+ if (!E()) {
181
+ let i = T[e].get(r);
182
+ return n.mustExist && i === void 0 ? !1 : (P(i, t), T[e].set(r, t), !0);
183
183
  }
184
- let i = await T();
184
+ let i = await D();
185
185
  return new Promise((a, o) => {
186
186
  let s = i.transaction(e, "readwrite"), c = s.objectStore(e), l = null, u = !1, d = c.get(r);
187
187
  d.onsuccess = () => {
188
188
  if (!(n.mustExist && d.result === void 0)) {
189
189
  try {
190
- N(d.result, t);
190
+ P(d.result, t);
191
191
  } catch (e) {
192
192
  l = e, s.abort();
193
193
  return;
@@ -197,86 +197,86 @@ async function P(e, t, n = {}) {
197
197
  }, s.oncomplete = () => a(u), s.onabort = () => o(l ?? s.error ?? /* @__PURE__ */ Error(`Offline ${e} write aborted`));
198
198
  });
199
199
  }
200
+ async function ae(e) {
201
+ return F(r, e, { mustExist: !0 });
202
+ }
200
203
  async function oe(e) {
201
- return P(r, e, { mustExist: !0 });
204
+ return F(i, e, { mustExist: !0 });
202
205
  }
203
206
  async function se(e) {
204
- return P(i, e, { mustExist: !0 });
205
- }
206
- async function ce(e) {
207
- return P(s, e, { mustExist: !0 });
207
+ return F(s, e, { mustExist: !0 });
208
208
  }
209
- var F = /* @__PURE__ */ new Set();
210
- async function I(e) {
211
- typeof e != "string" || e === "" || (F.add(e), await O(c, {
209
+ var I = /* @__PURE__ */ new Set();
210
+ async function L(e) {
211
+ typeof e != "string" || e === "" || (I.add(e), await A(c, {
212
212
  actorId: e,
213
213
  lockedAt: Date.now()
214
214
  }));
215
215
  }
216
- async function L(e) {
217
- typeof e != "string" || e === "" || (F.delete(e), await j(c, e));
218
- }
219
- async function le(e) {
220
- return F.has(e) ? !0 : await k(c, e) !== void 0;
221
- }
222
216
  async function R(e) {
223
- return m(e) ? !await le(e.actorId) : !1;
217
+ typeof e != "string" || e === "" || (I.delete(e), await N(c, e));
224
218
  }
225
- function ue(e) {
226
- return F.has(e);
219
+ async function ce(e) {
220
+ return I.has(e) ? !0 : await j(c, e) !== void 0;
221
+ }
222
+ async function z(e) {
223
+ return h(e) ? !await ce(e.actorId) : !1;
227
224
  }
228
- async function z(e, t) {
229
- return await R(t) ? (await A(e)).filter((e) => h(e, t)) : [];
225
+ function le(e) {
226
+ return I.has(e);
230
227
  }
231
228
  async function B(e, t) {
232
- return await R(t) ? (await A(e)).filter((e) => _(e, t)) : [];
229
+ return await z(t) ? (await M(e)).filter((e) => g(e, t)) : [];
233
230
  }
234
- async function V(e, t, n) {
235
- if (!await R(t)) return;
236
- let r = await k(e, n);
237
- return r && h(r, t) ? r : void 0;
231
+ async function V(e, t) {
232
+ return await z(t) ? (await M(e)).filter((e) => v(e, t)) : [];
238
233
  }
239
- var H = (e, t) => t.createdAt - e.createdAt;
240
- async function de(e) {
241
- await P(r, e);
234
+ async function H(e, t, n) {
235
+ if (!await z(t)) return;
236
+ let r = await j(e, n);
237
+ return r && g(r, t) ? r : void 0;
242
238
  }
243
- async function U(e, t) {
244
- return V(r, e, t);
239
+ var U = (e, t) => t.createdAt - e.createdAt;
240
+ async function ue(e) {
241
+ await F(r, e);
245
242
  }
246
- async function W(e) {
247
- return (await z(r, e)).sort(H);
243
+ async function W(e, t) {
244
+ return H(r, e, t);
248
245
  }
249
246
  async function G(e) {
250
- return (await B(r, e)).sort(H);
247
+ return (await B(r, e)).sort(U);
248
+ }
249
+ async function de(e) {
250
+ return (await V(r, e)).sort(U);
251
251
  }
252
252
  async function K(e) {
253
253
  for (let t of e.photoLocalIds) {
254
- let n = await k(i, t);
255
- n && Y(n, e) && await j(i, t);
254
+ let n = await j(i, t);
255
+ n && Y(n, e) && await N(i, t);
256
256
  }
257
257
  }
258
258
  async function fe(e, t) {
259
- let n = await U(e, t);
260
- return n ? (await K(n), await j(r, t), !0) : !1;
259
+ let n = await W(e, t);
260
+ return n ? (await K(n), await N(r, t), !0) : !1;
261
261
  }
262
262
  async function pe(e, t) {
263
- if (!m(e) || !await R(e)) return null;
264
- let n = await k(r, t);
265
- if (!n || !_(n, e)) return null;
263
+ if (!h(e) || !await z(e)) return null;
264
+ let n = await j(r, t);
265
+ if (!n || !v(n, e)) return null;
266
266
  let a = {
267
267
  ...n,
268
268
  actorId: e.actorId,
269
269
  updatedAt: Date.now()
270
270
  };
271
271
  try {
272
- if (!await P(r, a, { mustExist: !0 })) return null;
272
+ if (!await F(r, a, { mustExist: !0 })) return null;
273
273
  } catch (e) {
274
- if (e instanceof v) return null;
274
+ if (e instanceof y) return null;
275
275
  throw e;
276
276
  }
277
277
  for (let n of a.photoLocalIds) {
278
- let r = await k(i, n);
279
- r && r.clientId === t && !r.actorId && await P(i, {
278
+ let r = await j(i, n);
279
+ r && r.clientId === t && !r.actorId && await F(i, {
280
280
  ...r,
281
281
  workspaceId: e.workspaceId,
282
282
  actorId: e.actorId
@@ -285,66 +285,66 @@ async function pe(e, t) {
285
285
  return a;
286
286
  }
287
287
  async function me(e, t) {
288
- if (!await R(e)) return !1;
289
- let n = await k(r, t);
290
- return !n || !_(n, e) ? !1 : (await K(n), await j(r, t), !0);
288
+ if (!await z(e)) return !1;
289
+ let n = await j(r, t);
290
+ return !n || !v(n, e) ? !1 : (await K(n), await N(r, t), !0);
291
291
  }
292
292
  async function he(e) {
293
- await P(s, e);
293
+ await F(s, e);
294
294
  }
295
295
  async function q(e, t) {
296
- return V(s, e, t);
296
+ return H(s, e, t);
297
297
  }
298
298
  async function J(e) {
299
- return (await z(s, e)).sort(H);
299
+ return (await B(s, e)).sort(U);
300
300
  }
301
301
  async function ge(e) {
302
- return (await B(s, e)).sort(H);
302
+ return (await V(s, e)).sort(U);
303
303
  }
304
304
  async function _e(e, t) {
305
- return await q(e, t) ? (await j(s, t), !0) : !1;
305
+ return await q(e, t) ? (await N(s, t), !0) : !1;
306
306
  }
307
307
  async function ve(e, t) {
308
- if (!m(e) || !await R(e)) return null;
309
- let n = await k(s, t);
310
- if (!n || !_(n, e)) return null;
308
+ if (!h(e) || !await z(e)) return null;
309
+ let n = await j(s, t);
310
+ if (!n || !v(n, e)) return null;
311
311
  let r = {
312
312
  ...n,
313
313
  actorId: e.actorId,
314
314
  updatedAt: Date.now()
315
315
  };
316
316
  try {
317
- if (!await P(s, r, { mustExist: !0 })) return null;
317
+ if (!await F(s, r, { mustExist: !0 })) return null;
318
318
  } catch (e) {
319
- if (e instanceof v) return null;
319
+ if (e instanceof y) return null;
320
320
  throw e;
321
321
  }
322
322
  return r;
323
323
  }
324
324
  async function ye(e, t) {
325
- if (!await R(e)) return !1;
326
- let n = await k(s, t);
327
- return !n || !_(n, e) ? !1 : (await j(s, t), !0);
325
+ if (!await z(e)) return !1;
326
+ let n = await j(s, t);
327
+ return !n || !v(n, e) ? !1 : (await N(s, t), !0);
328
328
  }
329
329
  function Y(e, t) {
330
330
  return !(e.clientId !== t.clientId || e.workspaceId && e.workspaceId !== t.workspaceId || e.actorId && e.actorId !== t.actorId);
331
331
  }
332
332
  async function be(e) {
333
- await P(i, e);
333
+ await F(i, e);
334
334
  }
335
335
  async function X(e, t) {
336
- let n = await U(e, t);
336
+ let n = await W(e, t);
337
337
  if (!n) return [];
338
338
  let r = [];
339
339
  for (let e of n.photoLocalIds) {
340
- let t = await k(i, e);
340
+ let t = await j(i, e);
341
341
  t && Y(t, n) && r.push(t);
342
342
  }
343
343
  return r;
344
344
  }
345
345
  var Z = (e) => e === "QUEUED" || e === "UPLOADING" || e === "FAILED";
346
346
  async function xe(e) {
347
- let [t, n] = await Promise.all([W(e), J(e)]), r = 0, i = 0;
347
+ let [t, n] = await Promise.all([G(e), J(e)]), r = 0, i = 0;
348
348
  for (let n of t) for (let t of await X(e, n.clientId)) r += t.blob?.size ?? 0, i += 1;
349
349
  let a = t.filter((e) => Z(e.status)).length + n.filter((e) => Z(e.status)).length;
350
350
  return {
@@ -354,45 +354,49 @@ async function xe(e) {
354
354
  };
355
355
  }
356
356
  function Q(e, t) {
357
- return g(e, t) && e.status === "SYNCED";
357
+ return _(e, t) && e.status === "SYNCED";
358
358
  }
359
359
  async function Se(e) {
360
- if (!(!m(e) || !await R(e))) {
361
- for (let t of await W(e)) if (t.status === "SYNCED") for (let n of await X(e, t.clientId)) n.fileId && await j(i, n.id);
362
- for (let t of await A(r)) Q(t, e) && (await K(t), await j(r, t.clientId));
363
- for (let t of await A(s)) Q(t, e) && await j(s, t.clientId);
360
+ if (!(!h(e) || !await z(e))) {
361
+ for (let t of await G(e)) if (t.status === "SYNCED") for (let n of await X(e, t.clientId)) n.fileId && await N(i, n.id);
362
+ for (let t of await M(r)) Q(t, e) && (await K(t), await N(r, t.clientId));
363
+ for (let t of await M(s)) Q(t, e) && await N(s, t.clientId);
364
364
  }
365
365
  }
366
366
  async function Ce(e) {
367
- if (!e.workspaceId || !e.actorId) throw new v("A sync history entry must carry the session it describes.");
368
- await O(a, e);
369
- let t = await A(a);
370
- if (t.length > 200) {
371
- let e = t.sort((e, t) => e.at - t.at).slice(0, t.length - 200);
372
- for (let t of e) await j(a, t.id);
367
+ if (!e.workspaceId || !e.actorId) throw new y("A sync history entry must carry the session it describes.");
368
+ let t = {
369
+ workspaceId: e.workspaceId,
370
+ actorId: e.actorId
371
+ };
372
+ await A(a, e);
373
+ let n = (await M(a)).filter((e) => g(e, t));
374
+ if (n.length > 200) {
375
+ let e = n.sort((e, t) => e.at - t.at).slice(0, n.length - 200);
376
+ for (let t of e) await N(a, t.id);
373
377
  }
374
378
  }
375
379
  async function we(e) {
376
- return (await z(a, e)).sort((e, t) => t.at - e.at);
380
+ return (await B(a, e)).sort((e, t) => t.at - e.at);
377
381
  }
378
382
  async function Te() {
379
- let t = await k(o, l);
383
+ let t = await j(o, l);
380
384
  return {
381
385
  ...e,
382
386
  ...t ?? {}
383
387
  };
384
388
  }
385
389
  async function Ee(e) {
386
- await O(o, e, l);
390
+ await A(o, e, l);
387
391
  }
388
392
  function $(e, t) {
389
393
  return `${u}${t}:${encodeURIComponent(e.workspaceId)}:${encodeURIComponent(e.actorId)}`;
390
394
  }
391
395
  async function De(e, t) {
392
- if (!(!m(e) || !await R(e))) return k(o, $(e, t));
396
+ if (!(!h(e) || !await z(e))) return j(o, $(e, t));
393
397
  }
394
398
  async function Oe(e, t, n) {
395
- m(e) && await O(o, n, $(e, t));
399
+ h(e) && await A(o, n, $(e, t));
396
400
  }
397
401
  async function ke(e) {
398
402
  if ("allSessions" in e) {
@@ -404,21 +408,25 @@ async function ke(e) {
404
408
  o,
405
409
  s,
406
410
  c
407
- ]) await M(e);
408
- F.clear();
411
+ ]) await ie(e);
412
+ I.clear();
409
413
  return;
410
414
  }
411
415
  let { actorId: t } = e;
412
416
  if (typeof t != "string" || t === "") return;
413
- await I(t);
414
- let n = (await A(r)).filter((e) => e.actorId === t);
415
- for (let e of n) await K(e), await j(r, e.clientId);
416
- for (let e of await A(i)) e.actorId === t && await j(i, e.id);
417
- for (let e of await A(s)) e.actorId === t && await j(s, e.clientId);
418
- for (let e of await A(a)) e.actorId === t && await j(a, e.id);
417
+ try {
418
+ await L(t);
419
+ } catch {
420
+ console.warn("[HealthyBowl offline] Persisted purge lock unavailable; continuing with an in-tab lock only.");
421
+ }
422
+ let n = (await M(r)).filter((e) => e.actorId === t);
423
+ for (let e of n) await K(e), await N(r, e.clientId);
424
+ for (let e of await M(i)) e.actorId === t && await N(i, e.id);
425
+ for (let e of await M(s)) e.actorId === t && await N(s, e.clientId);
426
+ for (let e of await M(a)) e.actorId === t && await N(a, e.id);
419
427
  let l = `:${encodeURIComponent(t)}`;
420
- for (let e of await ae(o)) typeof e == "string" && e.startsWith(u) && e.endsWith(l) && await j(o, e);
421
- await L(t);
428
+ for (let e of await re(o)) typeof e == "string" && e.startsWith(u) && e.endsWith(l) && await N(o, e);
429
+ await R(t);
422
430
  }
423
431
  //#endregion
424
- export { Ce as addHistoryEntry, pe as claimUnattributedObservation, ve as claimUnattributedPendingMutation, Se as clearSyncedCache, fe as deleteObservation, _e as deletePendingMutation, me as discardUnattributedObservation, ye as discardUnattributedPendingMutation, xe as estimateLocalUsage, W as getAllObservations, J as getAllPendingMutations, we as getHistory, U as getObservation, q as getPendingMutation, X as getPhotosFor, De as getScopedMeta, G as getUnattributedObservations, ge as getUnattributedPendingMutations, ue as isOfflineActorLockedInThisTab, R as isOfflineScopeOpen, re as isOfflineStoreBlocked, Te as loadSettings, I as lockOfflineActor, ke as purgeOfflineData, de as saveObservation, he as savePendingMutation, be as savePhoto, Ee as saveSettings, Oe as setScopedMeta, ie as subscribeOfflineStoreBlocked, ee as toOfflineScope, L as unlockOfflineActor, oe as updateObservation, ce as updatePendingMutation, se as updatePhoto };
432
+ export { Ce as addHistoryEntry, pe as claimUnattributedObservation, ve as claimUnattributedPendingMutation, Se as clearSyncedCache, fe as deleteObservation, _e as deletePendingMutation, me as discardUnattributedObservation, ye as discardUnattributedPendingMutation, xe as estimateLocalUsage, G as getAllObservations, J as getAllPendingMutations, we as getHistory, W as getObservation, q as getPendingMutation, X as getPhotosFor, De as getScopedMeta, de as getUnattributedObservations, ge as getUnattributedPendingMutations, le as isOfflineActorLockedInThisTab, z as isOfflineScopeOpen, ne as isOfflineStoreBlocked, Te as loadSettings, L as lockOfflineActor, ke as purgeOfflineData, ue as saveObservation, he as savePendingMutation, be as savePhoto, Ee as saveSettings, Oe as setScopedMeta, w as subscribeOfflineStoreBlocked, m as toOfflineScope, R as unlockOfflineActor, ae as updateObservation, se as updatePendingMutation, oe as updatePhoto };