@photonhealth/elements 0.16.8 → 0.16.10

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"
@@ -30698,19 +30703,7 @@ function S6(e) {
30698
30703
  var h = PB(), f = h.firstChild, p = f.nextSibling;
30699
30704
  return S(p, () => _6(c().fillsAllowed)), h;
30700
30705
  })()]
30701
- }), l), S(u, b(K, {
30702
- get when() {
30703
- return e.prescription;
30704
- },
30705
- children: "Patient's Preferred"
30706
- }), null), S(u, b(K, {
30707
- get when() {
30708
- return !e.prescription;
30709
- },
30710
- get children() {
30711
- return e.coverageOption.pharmacy.name;
30712
- }
30713
- }), null), S(n, b(da, {
30706
+ }), l), S(u, () => e.coverageOption.pharmacy.name), S(n, b(da, {
30714
30707
  get status() {
30715
30708
  return t().status;
30716
30709
  },
@@ -41242,7 +41235,7 @@ const X6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41242
41235
  function Eh(e, t) {
41243
41236
  return e.every((r) => t.includes(r));
41244
41237
  }
41245
- const SQ = "0.16.8", EQ = {
41238
+ const SQ = "0.16.10", EQ = {
41246
41239
  version: SQ
41247
41240
  };
41248
41241
  var TQ = /* @__PURE__ */ G("<slot>"), OQ = /* @__PURE__ */ G("<div>");
@@ -52173,7 +52166,8 @@ const nv = {
52173
52166
  const $ = {
52174
52167
  addToTemplates: e.store.addToTemplates?.value ?? !1,
52175
52168
  templateName: e.store.templateName?.value,
52176
- catalogId: e.store.catalogId?.value
52169
+ catalogId: e.store.catalogId?.value,
52170
+ showSuccessToast: !0
52177
52171
  };
52178
52172
  w = await r(g, $), w && e.onDraftPrescriptionCreated(w);
52179
52173
  } catch ($) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.16.8",
3
+ "version": "0.16.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",