@photonhealth/elements 0.2.0 → 0.2.1

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.js CHANGED
@@ -983,7 +983,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
983
983
  phone
984
984
  }
985
985
  }
986
- `;function AH(e){const[t]=ym(),n=bm(),[r,i]=D(null);async function o(){const{data:s}=await n.apollo.query({query:PH,variables:{id:e.patientId}});s?.patient&&i(s.patient)}He(()=>{o()});const a=X(()=>t.selected===e.patientId);return(()=>{const s=NH.cloneNode(!0);return q(s,k(ds,{get loading(){return!r()},get selected(){return a()},sampleLoadingText:"Loading Name",get children(){return r()?.name.full}}),null),q(s,k(ds,{get loading(){return!r()},get selected(){return a()},color:"gray",size:"sm",sampleLoadingText:"111 222 3333",get children(){return r()?.phone}}),null),q(s,k(ds,{get loading(){return!r()},get selected(){return a()},color:"gray",size:"sm",sampleLoadingText:"loading@gmail.com",get children(){return r()?.email}}),null),s})()}const IH=w('<div><div class="pt-4"></div></div>'),MH=w("<div>Please add a patient.</div>");var wm=function(e){return e.sendToPatient="SEND_TO_PATIENT",e}(wm||{});const hf=[{name:"Send to Patient",fulfillmentType:wm.sendToPatient},{name:"Local Pickup",fulfillmentType:Pu.FulfillmentType.PickUp},{name:"Mail Order",fulfillmentType:Pu.FulfillmentType.MailOrder}],jy=e=>e==="SEND_TO_PATIENT"?void 0:e;function DH(e){const t=hf.filter(o=>{switch(o.fulfillmentType){case wm.sendToPatient:return e.enableSendToPatient===!0;case Pu.FulfillmentType.PickUp:return e.enableLocalPickup===!0;case Pu.FulfillmentType.MailOrder:return e.mailOrderPharmacyIds!==void 0;default:return!1}}).map(o=>o.name),[n,r]=D(t[0]);He(()=>{e.setFufillmentType(jy(hf[0].fulfillmentType))});const i=X(()=>e?.patientIds?.length||0);return(()=>{const o=IH.cloneNode(!0),a=o.firstChild;return q(o,k(aH,{tabs:t,get activeTab(){return n()},setActiveTab:s=>{r(s);const c=hf.find(l=>l.name===s)?.fulfillmentType;e.setFufillmentType(jy(c))}}),a),q(a,(()=>{const s=X(()=>n()==="Send to Patient");return()=>s()&&[X((()=>{const c=X(()=>i()>0);return()=>c()&&k(is,{label:"Patients",get initSelected(){return e?.patientIds?.[0]},setSelected:l=>{e.setPatientId&&e.setPatientId(l)},get children(){return k(mn,{get each(){return e?.patientIds||[]},children:l=>k(is.Option,{value:l,get children(){return k(AH,{patientId:l})}})})}})})()),X((()=>{const c=X(()=>i()===0);return()=>c()&&MH.cloneNode(!0)})())]})(),null),q(a,(()=>{const s=X(()=>n()==="Local Pickup");return()=>s()&&k(kH,{setPharmacy:c=>{e.setPharmacyId(c.id)},get address(){return e?.address||""},get patientId(){return e?.patientIds?.[0]}})})(),null),q(a,(()=>{const s=X(()=>n()==="Mail Order");return()=>s()&&k(is,{label:"Pharmacies",setSelected:c=>e.setPharmacyId(c),get children(){return k(mn,{get each(){return e?.mailOrderPharmacyIds||[]},children:c=>k(is.Option,{value:c,get children(){return k(TH,{pharmacyId:c})}})})}})})(),null),o})()}const S1=Symbol("store-raw"),Is=Symbol("store-node"),LH=Symbol("store-name");function a8(e,t){let n=e[Mt];if(!n&&(Object.defineProperty(e,Mt,{value:n=new Proxy(e,jH)}),!Array.isArray(e))){const r=Object.keys(e),i=Object.getOwnPropertyDescriptors(e);for(let o=0,a=r.length;o<a;o++){const s=r[o];i[s].get&&Object.defineProperty(e,s,{enumerable:i[s].enumerable,get:i[s].get.bind(n)})}}return n}function ui(e){let t;return e!=null&&typeof e=="object"&&(e[Mt]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Jo(e,t=new Set){let n,r,i,o;if(n=e!=null&&e[S1])return n;if(!ui(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let a=0,s=e.length;a<s;a++)i=e[a],(r=Jo(i,t))!==i&&(e[a]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const a=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let c=0,l=a.length;c<l;c++)o=a[c],!s[o].get&&(i=e[o],(r=Jo(i,t))!==i&&(e[o]=r))}return e}function $m(e){let t=e[Is];return t||Object.defineProperty(e,Is,{value:t={}}),t}function E1(e,t,n){return e[t]||(e[t]=l8(n))}function RH(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===Mt||t===Is||t===LH||(delete n.value,delete n.writable,n.get=()=>e[Mt][t]),n}function s8(e){if(Sd()){const t=$m(e);(t._||(t._=l8()))()}}function FH(e){return s8(e),Reflect.ownKeys(e)}function l8(e){const[t,n]=D(e,{equals:!1,internal:!0});return t.$=n,t}const jH={get(e,t,n){if(t===S1)return e;if(t===Mt)return n;if(t===ms)return s8(e),n;const r=$m(e),i=r.hasOwnProperty(t);let o=i?r[t]():e[t];if(t===Is||t==="__proto__")return o;if(!i){const a=Object.getOwnPropertyDescriptor(e,t);Sd()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(a&&a.get)&&(o=E1(r,t,o)())}return ui(o)?a8(o):o},has(e,t){return t===S1||t===Mt||t===ms||t===Is||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:FH,getOwnPropertyDescriptor:RH};function wn(e,t,n,r=!1){if(!r&&e[t]===n)return;const i=e[t],o=e.length;n===void 0?delete e[t]:e[t]=n;let a=$m(e),s;(s=E1(a,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==o&&(s=E1(a,"length",o))&&s.$(e.length),(s=a._)&&s.$()}function c8(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const i=n[r];wn(e,i,t[i])}}function zH(e,t){if(typeof t=="function"&&(t=t(e)),t=Jo(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const i=t[n];e[n]!==i&&wn(e,n,i)}wn(e,"length",r)}else c8(e,t)}function os(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();const a=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let c=0;c<r.length;c++)os(e,[r[c]].concat(t),n);return}else if(s&&a==="function"){for(let c=0;c<e.length;c++)r(e[c],c)&&os(e,[c].concat(t),n);return}else if(s&&a==="object"){const{from:c=0,to:l=e.length-1,by:u=1}=r;for(let d=c;d<=l;d+=u)os(e,[d].concat(t),n);return}else if(t.length>1){os(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let o=t[0];typeof o=="function"&&(o=o(i,n),o===i)||r===void 0&&o==null||(o=Jo(o),r===void 0||ui(i)&&ui(o)&&!Array.isArray(o)?c8(i,o):wn(e,r,o))}function gi(...[e,t]){const n=Jo(e||{}),r=Array.isArray(n),i=a8(n);function o(...a){Zc(()=>{r&&a.length===1?zH(n,a[0]):os(n,a)})}return[i,o]}const O1=Symbol("store-root");function $o(e,t,n,r,i){const o=t[n];if(e===o)return;if(!ui(e)||!ui(o)||i&&e[i]!==o[i]){if(e!==o){if(n===O1)return e;wn(t,n,e)}return}if(Array.isArray(e)){if(e.length&&o.length&&(!r||i&&e[0]&&e[0][i]!=null)){let c,l,u,d,f,h,p,v;for(u=0,d=Math.min(o.length,e.length);u<d&&(o[u]===e[u]||i&&o[u]&&e[u]&&o[u][i]===e[u][i]);u++)$o(e[u],o,u,r,i);const g=new Array(e.length),y=new Map;for(d=o.length-1,f=e.length-1;d>=u&&f>=u&&(o[d]===e[f]||i&&o[u]&&e[u]&&o[d][i]===e[f][i]);d--,f--)g[f]=o[d];if(u>f||u>d){for(l=u;l<=f;l++)wn(o,l,e[l]);for(;l<e.length;l++)wn(o,l,g[l]),$o(e[l],o,l,r,i);o.length>e.length&&wn(o,"length",e.length);return}for(p=new Array(f+1),l=f;l>=u;l--)h=e[l],v=i&&h?h[i]:h,c=y.get(v),p[l]=c===void 0?-1:c,y.set(v,l);for(c=u;c<=d;c++)h=o[c],v=i&&h?h[i]:h,l=y.get(v),l!==void 0&&l!==-1&&(g[l]=o[c],l=p[l],y.set(v,l));for(l=u;l<e.length;l++)l in g?(wn(o,l,g[l]),$o(e[l],o,l,r,i)):wn(o,l,e[l])}else for(let c=0,l=e.length;c<l;c++)$o(e[c],o,c,r,i);o.length>e.length&&wn(o,"length",e.length);return}const a=Object.keys(e);for(let c=0,l=a.length;c<l;c++)$o(e[a[c]],o,a[c],r,i);const s=Object.keys(o);for(let c=0,l=s.length;c<l;c++)e[s[c]]===void 0&&wn(o,s[c],void 0)}function VH(e,t={}){const{merge:n,key:r="id"}=t,i=Jo(e);return o=>{if(!ui(o)||!ui(i))return i;const a=$o(i,{[O1]:o},O1,n,r);return a===void 0?o:a}}function C1(e){this.message=e}C1.prototype=new Error,C1.prototype.name="InvalidCharacterError";var zy=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new C1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function UH(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(zy(n).replace(/(.)/g,function(r,i){var o=i.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch{return zy(t)}}function Au(e){this.message=e}function u8(e,t){if(typeof e!="string")throw new Au("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(UH(e.split(".")[n]))}catch(r){throw new Au("Invalid token specified: "+r.message)}}Au.prototype=new Error,Au.prototype.name="InvalidTokenError";const BH=e=>{window.location.replace(e?.returnTo||window.location.pathname)},HH=Ys`
986
+ `;function AH(e){const[t]=ym(),n=bm(),[r,i]=D(null);async function o(){const{data:s}=await n.apollo.query({query:PH,variables:{id:e.patientId}});s?.patient&&i(s.patient)}He(()=>{o()});const a=X(()=>t.selected===e.patientId);return(()=>{const s=NH.cloneNode(!0);return q(s,k(ds,{get loading(){return!r()},get selected(){return a()},sampleLoadingText:"Loading Name",get children(){return r()?.name.full}}),null),q(s,k(ds,{get loading(){return!r()},get selected(){return a()},color:"gray",size:"sm",sampleLoadingText:"111 222 3333",get children(){return r()?.phone}}),null),q(s,k(ds,{get loading(){return!r()},get selected(){return a()},color:"gray",size:"sm",sampleLoadingText:"loading@gmail.com",get children(){return r()?.email}}),null),s})()}const IH=w('<div><div class="pt-4"></div></div>'),MH=w("<div>Please add a patient.</div>");var wm=function(e){return e.sendToPatient="SEND_TO_PATIENT",e}(wm||{});const hf=[{name:"Send to Patient",fulfillmentType:wm.sendToPatient},{name:"Local Pickup",fulfillmentType:Pu.FulfillmentType.PickUp},{name:"Mail Order",fulfillmentType:Pu.FulfillmentType.MailOrder}],jy=e=>e==="SEND_TO_PATIENT"?void 0:e;function DH(e){const t=hf.filter(o=>{switch(o.fulfillmentType){case wm.sendToPatient:return e.enableSendToPatient===!0;case Pu.FulfillmentType.PickUp:return e.enableLocalPickup===!0;case Pu.FulfillmentType.MailOrder:return e.mailOrderPharmacyIds!==void 0;default:return!1}}).map(o=>o.name),[n,r]=D(t[0]);He(()=>{e.setFufillmentType(jy(hf[0].fulfillmentType))});const i=X(()=>e?.patientIds?.length||0);return(()=>{const o=IH.cloneNode(!0),a=o.firstChild;return q(o,k(aH,{tabs:t,get activeTab(){return n()},setActiveTab:s=>{r(s);const c=hf.find(l=>l.name===s)?.fulfillmentType;e.setFufillmentType(jy(c))}}),a),q(a,(()=>{const s=X(()=>n()==="Send to Patient");return()=>s()&&[X((()=>{const c=X(()=>i()>0);return()=>c()&&k(is,{label:"Patients",get initSelected(){return e?.patientIds?.[0]},setSelected:l=>{e.setPatientId&&e.setPatientId(l),e.setPharmacyId&&e.setPharmacyId(void 0)},get children(){return k(mn,{get each(){return e?.patientIds||[]},children:l=>k(is.Option,{value:l,get children(){return k(AH,{patientId:l})}})})}})})()),X((()=>{const c=X(()=>i()===0);return()=>c()&&MH.cloneNode(!0)})())]})(),null),q(a,(()=>{const s=X(()=>n()==="Local Pickup");return()=>s()&&k(kH,{setPharmacy:c=>{e.setPharmacyId(c.id)},get address(){return e?.address||""},get patientId(){return e?.patientIds?.[0]}})})(),null),q(a,(()=>{const s=X(()=>n()==="Mail Order");return()=>s()&&k(is,{label:"Pharmacies",get initSelected(){return e?.mailOrderPharmacyIds?.[0]},setSelected:c=>e.setPharmacyId(c),get children(){return k(mn,{get each(){return e?.mailOrderPharmacyIds||[]},children:c=>k(is.Option,{value:c,get children(){return k(TH,{pharmacyId:c})}})})}})})(),null),o})()}const S1=Symbol("store-raw"),Is=Symbol("store-node"),LH=Symbol("store-name");function a8(e,t){let n=e[Mt];if(!n&&(Object.defineProperty(e,Mt,{value:n=new Proxy(e,jH)}),!Array.isArray(e))){const r=Object.keys(e),i=Object.getOwnPropertyDescriptors(e);for(let o=0,a=r.length;o<a;o++){const s=r[o];i[s].get&&Object.defineProperty(e,s,{enumerable:i[s].enumerable,get:i[s].get.bind(n)})}}return n}function ui(e){let t;return e!=null&&typeof e=="object"&&(e[Mt]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Jo(e,t=new Set){let n,r,i,o;if(n=e!=null&&e[S1])return n;if(!ui(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let a=0,s=e.length;a<s;a++)i=e[a],(r=Jo(i,t))!==i&&(e[a]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const a=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let c=0,l=a.length;c<l;c++)o=a[c],!s[o].get&&(i=e[o],(r=Jo(i,t))!==i&&(e[o]=r))}return e}function $m(e){let t=e[Is];return t||Object.defineProperty(e,Is,{value:t={}}),t}function E1(e,t,n){return e[t]||(e[t]=l8(n))}function RH(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===Mt||t===Is||t===LH||(delete n.value,delete n.writable,n.get=()=>e[Mt][t]),n}function s8(e){if(Sd()){const t=$m(e);(t._||(t._=l8()))()}}function FH(e){return s8(e),Reflect.ownKeys(e)}function l8(e){const[t,n]=D(e,{equals:!1,internal:!0});return t.$=n,t}const jH={get(e,t,n){if(t===S1)return e;if(t===Mt)return n;if(t===ms)return s8(e),n;const r=$m(e),i=r.hasOwnProperty(t);let o=i?r[t]():e[t];if(t===Is||t==="__proto__")return o;if(!i){const a=Object.getOwnPropertyDescriptor(e,t);Sd()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(a&&a.get)&&(o=E1(r,t,o)())}return ui(o)?a8(o):o},has(e,t){return t===S1||t===Mt||t===ms||t===Is||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:FH,getOwnPropertyDescriptor:RH};function wn(e,t,n,r=!1){if(!r&&e[t]===n)return;const i=e[t],o=e.length;n===void 0?delete e[t]:e[t]=n;let a=$m(e),s;(s=E1(a,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==o&&(s=E1(a,"length",o))&&s.$(e.length),(s=a._)&&s.$()}function c8(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const i=n[r];wn(e,i,t[i])}}function zH(e,t){if(typeof t=="function"&&(t=t(e)),t=Jo(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const i=t[n];e[n]!==i&&wn(e,n,i)}wn(e,"length",r)}else c8(e,t)}function os(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();const a=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let c=0;c<r.length;c++)os(e,[r[c]].concat(t),n);return}else if(s&&a==="function"){for(let c=0;c<e.length;c++)r(e[c],c)&&os(e,[c].concat(t),n);return}else if(s&&a==="object"){const{from:c=0,to:l=e.length-1,by:u=1}=r;for(let d=c;d<=l;d+=u)os(e,[d].concat(t),n);return}else if(t.length>1){os(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let o=t[0];typeof o=="function"&&(o=o(i,n),o===i)||r===void 0&&o==null||(o=Jo(o),r===void 0||ui(i)&&ui(o)&&!Array.isArray(o)?c8(i,o):wn(e,r,o))}function gi(...[e,t]){const n=Jo(e||{}),r=Array.isArray(n),i=a8(n);function o(...a){Zc(()=>{r&&a.length===1?zH(n,a[0]):os(n,a)})}return[i,o]}const O1=Symbol("store-root");function $o(e,t,n,r,i){const o=t[n];if(e===o)return;if(!ui(e)||!ui(o)||i&&e[i]!==o[i]){if(e!==o){if(n===O1)return e;wn(t,n,e)}return}if(Array.isArray(e)){if(e.length&&o.length&&(!r||i&&e[0]&&e[0][i]!=null)){let c,l,u,d,f,h,p,v;for(u=0,d=Math.min(o.length,e.length);u<d&&(o[u]===e[u]||i&&o[u]&&e[u]&&o[u][i]===e[u][i]);u++)$o(e[u],o,u,r,i);const g=new Array(e.length),y=new Map;for(d=o.length-1,f=e.length-1;d>=u&&f>=u&&(o[d]===e[f]||i&&o[u]&&e[u]&&o[d][i]===e[f][i]);d--,f--)g[f]=o[d];if(u>f||u>d){for(l=u;l<=f;l++)wn(o,l,e[l]);for(;l<e.length;l++)wn(o,l,g[l]),$o(e[l],o,l,r,i);o.length>e.length&&wn(o,"length",e.length);return}for(p=new Array(f+1),l=f;l>=u;l--)h=e[l],v=i&&h?h[i]:h,c=y.get(v),p[l]=c===void 0?-1:c,y.set(v,l);for(c=u;c<=d;c++)h=o[c],v=i&&h?h[i]:h,l=y.get(v),l!==void 0&&l!==-1&&(g[l]=o[c],l=p[l],y.set(v,l));for(l=u;l<e.length;l++)l in g?(wn(o,l,g[l]),$o(e[l],o,l,r,i)):wn(o,l,e[l])}else for(let c=0,l=e.length;c<l;c++)$o(e[c],o,c,r,i);o.length>e.length&&wn(o,"length",e.length);return}const a=Object.keys(e);for(let c=0,l=a.length;c<l;c++)$o(e[a[c]],o,a[c],r,i);const s=Object.keys(o);for(let c=0,l=s.length;c<l;c++)e[s[c]]===void 0&&wn(o,s[c],void 0)}function VH(e,t={}){const{merge:n,key:r="id"}=t,i=Jo(e);return o=>{if(!ui(o)||!ui(i))return i;const a=$o(i,{[O1]:o},O1,n,r);return a===void 0?o:a}}function C1(e){this.message=e}C1.prototype=new Error,C1.prototype.name="InvalidCharacterError";var zy=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new C1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function UH(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(zy(n).replace(/(.)/g,function(r,i){var o=i.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch{return zy(t)}}function Au(e){this.message=e}function u8(e,t){if(typeof e!="string")throw new Au("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(UH(e.split(".")[n]))}catch(r){throw new Au("Invalid token specified: "+r.message)}}Au.prototype=new Error,Au.prototype.name="InvalidTokenError";const BH=e=>{window.location.replace(e?.returnTo||window.location.pathname)},HH=Ys`
987
987
  fragment CatalogTreatmentsFields on Catalog {
988
988
  treatments {
989
989
  id
package/dist/index.mjs CHANGED
@@ -19560,7 +19560,7 @@ function DH(e) {
19560
19560
  return e?.patientIds?.[0];
19561
19561
  },
19562
19562
  setSelected: (l) => {
19563
- e.setPatientId && e.setPatientId(l);
19563
+ e.setPatientId && e.setPatientId(l), e.setPharmacyId && e.setPharmacyId(void 0);
19564
19564
  },
19565
19565
  get children() {
19566
19566
  return k(mn, {
@@ -19599,6 +19599,9 @@ function DH(e) {
19599
19599
  const s = X(() => n() === "Mail Order");
19600
19600
  return () => s() && k(is, {
19601
19601
  label: "Pharmacies",
19602
+ get initSelected() {
19603
+ return e?.mailOrderPharmacyIds?.[0];
19604
+ },
19602
19605
  setSelected: (c) => e.setPharmacyId(c),
19603
19606
  get children() {
19604
19607
  return k(mn, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",