@photonhealth/elements 0.16.7 → 0.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -30257,7 +30257,9 @@ const k6 = Tr(), Zq = (e) => {
30257
30257
  } catch (D) {
30258
30258
  console.error("Error fetching prescriptions:", D);
30259
30259
  }
30260
- await Promise.all(re.map(async (D) => le(D))), n(!1);
30260
+ await Promise.all(re.map(async (D) => le(D, {
30261
+ showSuccessToast: !1
30262
+ }))), n(!1);
30261
30263
  }
30262
30264
  const R = async (re) => {
30263
30265
  try {
@@ -30287,7 +30289,9 @@ const k6 = Tr(), Zq = (e) => {
30287
30289
  // icd10codes: ['gotta get this']
30288
30290
  }))
30289
30291
  }
30290
- })).data.generateCoverageOptions, le = async (re, D = {}) => {
30292
+ })).data.generateCoverageOptions, le = async (re, D = {
30293
+ showSuccessToast: !0
30294
+ }) => {
30291
30295
  if (eB(re.treatment.id, $()))
30292
30296
  throw ir({
30293
30297
  status: "error",
@@ -30324,7 +30328,8 @@ const k6 = Tr(), Zq = (e) => {
30324
30328
  }), oe;
30325
30329
  }
30326
30330
  }, se = async (re, D = {
30327
- addToTemplates: !1
30331
+ addToTemplates: !1,
30332
+ showSuccessToast: !0
30328
30333
  }) => {
30329
30334
  let oe = null;
30330
30335
  try {
@@ -30340,10 +30345,10 @@ const k6 = Tr(), Zq = (e) => {
30340
30345
  body: "There was an issue adding the prescription. Please try again."
30341
30346
  }), he;
30342
30347
  }
30343
- return D?.addToTemplates && D?.catalogId != null && (await U(re, D.catalogId, D.templateName), ir({
30348
+ return D?.addToTemplates && D?.catalogId != null && (await U(re, D.catalogId, D.templateName), D.showSuccessToast && ir({
30344
30349
  status: "success",
30345
30350
  header: "Personal Template Saved"
30346
- })), ir({
30351
+ })), D.showSuccessToast && ir({
30347
30352
  status: "success",
30348
30353
  header: "Prescription Added",
30349
30354
  body: "You can send this order or add another prescription before sending it"
@@ -41242,7 +41247,7 @@ const X6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41242
41247
  function Eh(e, t) {
41243
41248
  return e.every((r) => t.includes(r));
41244
41249
  }
41245
- const SQ = "0.16.7", EQ = {
41250
+ const SQ = "0.16.9", EQ = {
41246
41251
  version: SQ
41247
41252
  };
41248
41253
  var TQ = /* @__PURE__ */ G("<slot>"), OQ = /* @__PURE__ */ G("<div>");
@@ -52173,7 +52178,8 @@ const nv = {
52173
52178
  const $ = {
52174
52179
  addToTemplates: e.store.addToTemplates?.value ?? !1,
52175
52180
  templateName: e.store.templateName?.value,
52176
- catalogId: e.store.catalogId?.value
52181
+ catalogId: e.store.catalogId?.value,
52182
+ showSuccessToast: !0
52177
52183
  };
52178
52184
  w = await r(g, $), w && e.onDraftPrescriptionCreated(w);
52179
52185
  } catch ($) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.16.7",
3
+ "version": "0.16.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",