@openmrs/esm-billing-app 1.1.2-pre.1841 → 1.1.2-pre.1847

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.
@@ -0,0 +1 @@
1
+ {"hash":"753f5f3acfecdc61","duration":14486}
@@ -1,15 +1,15 @@
1
1
  WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
2
2
  │ Assets:
3
- main.js (1.761 MiB)
4
- 6472.js (329.723 KiB)
3
+ 9655.js (335.189 KiB)
4
+ main.js (1.756 MiB)
5
5
  │ 2250.js (1.677 MiB)
6
6
  │ 990.js (1.227 MiB)
7
7
  
8
8
 
9
9
  WARNING in ⚠ entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244.141 KiB). This can impact web performance.
10
10
  │ Entrypoints:
11
- │ main (1.761 MiB)
11
+ │ main (1.756 MiB)
12
12
  │ main.js
13
13
  
14
14
 
15
- Rspack compiled with 2 warnings in 12.98 s
15
+ Rspack compiled with 2 warnings in 13.30 s
package/dist/1578.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([["1578"],{23041(e,t,r){r.r(t),r.d(t,{default:()=>m,infinite:()=>k,unstable_serialize:()=>d});var a=r(15275),l=r(92177),i=r(48225),n=r(14993),u=r(19888);let s=()=>{},o=s(),f=Object,c=e=>e===o,p=new WeakMap,g=(e,t)=>f.prototype.toString.call(e)===`[object ${t}]`,_=0,b=e=>{let t,r,a=typeof e,l=g(e,"Date"),i=g(e,"RegExp"),n=g(e,"Object");if(f(e)!==e||l||i)t=l?e.toJSON():"symbol"==a?e.toString():"string"==a?JSON.stringify(e):""+e;else{if(t=p.get(e))return t;if(t=++_+"~",p.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=b(e[r])+",";p.set(e,t)}if(n){t="#";let a=f.keys(e).sort();for(;!c(r=a.pop());)c(e[r])||(t+=r+":"+b(e[r])+",");p.set(e,t)}}return t},y=e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t]})(e?e(0,null):null)[0],d=e=>"$inf$"+y(e),h=Promise.resolve(),k=e=>(t,r,l)=>{let n,s=(0,a.useRef)(!1),{cache:o,initialSize:f=1,revalidateAll:c=!1,persistSize:p=!1,revalidateFirstPage:g=!0,revalidateOnMount:_=!1,parallel:b=!1}=l,[,,,d]=i.b.get(i.c);try{(n=y(t))&&(n="$inf$"+n)}catch(e){}let[k,m,z]=(0,i.z)(o,n),v=(0,a.useCallback)(()=>(0,i.e)(k()._l)?f:k()._l,[o,n,f]);(0,u.useSyncExternalStore)((0,a.useCallback)(e=>n?z(n,()=>{e()}):()=>{},[o,n]),v,v);let w=(0,a.useCallback)(()=>{let e=k()._l;return(0,i.e)(e)?f:e},[n,f]),C=(0,a.useRef)(w());(0,i.u)(()=>{if(!s.current){s.current=!0;return}n&&m({_l:p?C.current:w()})},[n,o]);let S=_&&!s.current,A=e(n,async e=>{let a=k()._i,n=k()._r;m({_r:i.U});let u=[],s=w(),[f]=(0,i.z)(o,e),p=f().data,_=[],y=null;for(let e=0;e<s;++e){let[s,f]=(0,i.s)(t(e,b?null:y));if(!s)break;let[h,k]=(0,i.z)(o,s),m=h().data,z=c||a||(0,i.e)(m)||g&&!e&&!(0,i.e)(p)||S||p&&!(0,i.e)(p[e])&&!l.compare(p[e],m);if(r&&("function"==typeof n?n(m,f):z)){let t=async()=>{if(s in d){let e=d[s];delete d[s],m=await e}else m=await r(f);k({data:m,_k:f}),u[e]=m};b?_.push(t):await t()}else u[e]=m;b||(y=m)}return b&&await Promise.all(_.map(e=>e())),m({_i:i.U}),u},l),$=(0,a.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==r.revalidate;return n?(a&&((0,i.e)(e)?m({_i:!0,_r:r.revalidate}):m({_i:!1,_r:r.revalidate})),arguments.length?A.mutate(e,{...r,revalidate:a}):A.mutate()):h},[n,o]),O=(0,a.useCallback)(e=>{let r;if(!n)return h;let[,a]=(0,i.z)(o,n);if((0,i.a)(e)?r=e(w()):"number"==typeof e&&(r=e),"number"!=typeof r)return h;a({_l:r}),C.current=r;let l=[],[u]=(0,i.z)(o,n),s=null;for(let e=0;e<r;++e){let[r]=(0,i.s)(t(e,s)),[a]=(0,i.z)(o,r),n=r?a().data:i.U;if((0,i.e)(n))return $(u().data);l.push(n),s=n}return $(l)},[n,o,$,w]);return{size:w(),setSize:O,mutate:$,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}},m=(0,n.Ht)(l.Ay,k)}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([["1578"],{23041(e,r,t){t.r(r),t.d(r,{default:()=>g,infinite:()=>E,unstable_serialize:()=>o});var n=t(15275),i=t.n(n),a=t(19888),u=t(88716);let l=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e}),s={dedupe:!0};u.OBJECT.defineProperty(u.SWRConfig,"defaultValue",{value:u.defaultConfig});let d=(0,u.withArgs)((e,r,t)=>{let{cache:i,compare:d,suspense:c,fallbackData:o,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:_,refreshWhenOffline:p,keepPreviousData:h}=t,[U,R,b,C]=u.SWRGlobalState.get(i),[m,v]=(0,u.serialize)(e),I=(0,n.useRef)(!1),T=(0,n.useRef)(!1),V=(0,n.useRef)(m),N=(0,n.useRef)(r),L=(0,n.useRef)(t),S=()=>L.current.isVisible()&&L.current.isOnline(),[k,y,w,F]=(0,u.createCacheHelper)(i,m),D=(0,n.useRef)({}).current,O=(0,u.isUndefined)(o)?t.fallback[m]:o,A=(e,r)=>{for(let t in D)if("data"===t){if(!d(e[t],r[t])&&(!(0,u.isUndefined)(e[t])||!d(X,r[t])))return!1}else if(r[t]!==e[t])return!1;return!0},P=(0,n.useMemo)(()=>{let e=!!m&&!!r&&((0,u.isUndefined)(f)?!L.current.isPaused()&&!c&&(!!(0,u.isUndefined)(E)||E):f),t=r=>{let t=(0,u.mergeObjects)(r);return(delete t._k,e)?{isValidating:!0,isLoading:!0,...t}:t},n=k(),i=F(),a=t(n),l=n===i?a:t(i),s=a;return[()=>{let e=t(k());return A(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]},[i,m]),H=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>w(m,(r,t)=>{A(t,r)||e()}),[i,m]),P[0],P[1]),z=!I.current,G=U[m]&&U[m].length>0,M=H.data,j=(0,u.isUndefined)(M)?O:M,W=H.error,x=(0,n.useRef)(j),X=h?(0,u.isUndefined)(M)?x.current:M:j,Y=(!G||!!(0,u.isUndefined)(W))&&(z&&!(0,u.isUndefined)(f)?f:!L.current.isPaused()&&(c?!(0,u.isUndefined)(j)&&E:(0,u.isUndefined)(j)||E)),q=!!(m&&r&&z&&Y),B=(0,u.isUndefined)(H.isValidating)?q:H.isValidating,J=(0,u.isUndefined)(H.isLoading)?q:H.isLoading,K=(0,n.useCallback)(async e=>{let r,n,i=N.current;if(!m||!i||T.current||L.current.isPaused())return!1;let a=!0,l=e||{},s=!b[m]||!l.dedupe,c=()=>u.IS_REACT_LEGACY?!T.current&&m===V.current&&I.current:m===V.current,o={isValidating:!1,isLoading:!1},f=()=>{y(o)},E=()=>{let e=b[m];e&&e[1]===n&&delete b[m]},g={isValidating:!0};(0,u.isUndefined)(k().data)&&(g.isLoading=!0);try{if(s&&(y(g),t.loadingTimeout&&(0,u.isUndefined)(k().data)&&setTimeout(()=>{a&&c()&&L.current.onLoadingSlow(m,t)},t.loadingTimeout),b[m]=[i(v),(0,u.getTimestamp)()]),[r,n]=b[m],r=await r,s&&setTimeout(E,t.dedupingInterval),!b[m]||b[m][1]!==n)return s&&c()&&L.current.onDiscarded(m),!1;o.error=u.UNDEFINED;let e=R[m];if(!(0,u.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),s&&c()&&L.current.onDiscarded(m),!1;let l=k().data;o.data=d(l,r)?l:r,s&&c()&&L.current.onSuccess(r,m,t)}catch(t){E();let e=L.current,{shouldRetryOnError:r}=e;!e.isPaused()&&(o.error=t,s&&c()&&(e.onError(t,m,e),(!0===r||(0,u.isFunction)(r)&&r(t))&&(!L.current.revalidateOnFocus||!L.current.revalidateOnReconnect||S())&&e.onErrorRetry(t,m,e,e=>{let r=U[m];r&&r[0]&&r[0](u.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[m,i]),Q=(0,n.useCallback)((...e)=>(0,u.internalMutate)(i,V.current,...e),[]);if((0,u.useIsomorphicLayoutEffect)(()=>{N.current=r,L.current=t,(0,u.isUndefined)(M)||(x.current=M)}),(0,u.useIsomorphicLayoutEffect)(()=>{if(!m)return;let e=K.bind(u.UNDEFINED,s),r=0,t=(0,u.subscribeCallback)(m,U,(t,n={})=>{if(t==u.revalidateEvents.FOCUS_EVENT){let t=Date.now();L.current.revalidateOnFocus&&t>r&&S()&&(r=t+L.current.focusThrottleInterval,e())}else if(t==u.revalidateEvents.RECONNECT_EVENT)L.current.revalidateOnReconnect&&S()&&e();else if(t==u.revalidateEvents.MUTATE_EVENT)return K();else if(t==u.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)});return T.current=!1,V.current=m,I.current=!0,y({_k:v}),Y&&((0,u.isUndefined)(j)||u.IS_SERVER?e():(0,u.rAF)(e)),()=>{T.current=!0,t()}},[m]),(0,u.useIsomorphicLayoutEffect)(()=>{let e;function r(){let r=(0,u.isFunction)(g)?g(k().data):g;r&&-1!==e&&(e=setTimeout(t,r))}function t(){!k().error&&(_||L.current.isVisible())&&(p||L.current.isOnline())?K(s).then(r):r()}return r(),()=>{e&&(clearTimeout(e),e=-1)}},[g,_,p,m]),(0,n.useDebugValue)(X),c&&(0,u.isUndefined)(j)&&m){if(!u.IS_REACT_LEGACY&&u.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");N.current=r,L.current=t,T.current=!1;let e=C[m];if((0,u.isUndefined)(e)||l(Q(e)),(0,u.isUndefined)(W)){let e=K(s);(0,u.isUndefined)(X)||(e.status="fulfilled",e.value=!0),l(e)}else throw W}return{mutate:Q,get data(){return D.data=!0,X},get error(){return D.error=!0,W},get isValidating(){return D.isValidating=!0,B},get isLoading(){return D.isLoading=!0,J}}}),c=e=>(0,u.serialize)(e?e(0,null):null)[0],o=e=>u.INFINITE_PREFIX+c(e),f=Promise.resolve(),E=e=>(r,t,i)=>{let l,s=(0,n.useRef)(!1),{cache:d,initialSize:o=1,revalidateAll:E=!1,persistSize:g=!1,revalidateFirstPage:_=!0,revalidateOnMount:p=!1,parallel:h=!1}=i,[,,,U]=u.SWRGlobalState.get(u.cache);try{(l=c(r))&&(l=u.INFINITE_PREFIX+l)}catch(e){}let[R,b,C]=(0,u.createCacheHelper)(d,l),m=(0,n.useCallback)(()=>(0,u.isUndefined)(R()._l)?o:R()._l,[d,l,o]);(0,a.useSyncExternalStore)((0,n.useCallback)(e=>l?C(l,()=>{e()}):()=>{},[d,l]),m,m);let v=(0,n.useCallback)(()=>{let e=R()._l;return(0,u.isUndefined)(e)?o:e},[l,o]),I=(0,n.useRef)(v());(0,u.useIsomorphicLayoutEffect)(()=>{if(!s.current){s.current=!0;return}l&&b({_l:g?I.current:v()})},[l,d]);let T=p&&!s.current,V=e(l,async e=>{let n=R()._i,a=R()._r;b({_r:u.UNDEFINED});let l=[],s=v(),[c]=(0,u.createCacheHelper)(d,e),o=c().data,f=[],g=null;for(let e=0;e<s;++e){let[s,c]=(0,u.serialize)(r(e,h?null:g));if(!s)break;let[p,R]=(0,u.createCacheHelper)(d,s),b=p().data,C=E||n||(0,u.isUndefined)(b)||_&&!e&&!(0,u.isUndefined)(o)||T||o&&!(0,u.isUndefined)(o[e])&&!i.compare(o[e],b);if(t&&("function"==typeof a?a(b,c):C)){let r=async()=>{if(s in U){let e=U[s];delete U[s],b=await e}else b=await t(c);R({data:b,_k:c}),l[e]=b};h?f.push(r):await r()}else l[e]=b;h||(g=b)}return h&&await Promise.all(f.map(e=>e())),b({_i:u.UNDEFINED}),l},i),N=(0,n.useCallback)(function(e,r){let t="boolean"==typeof r?{revalidate:r}:r||{},n=!1!==t.revalidate;return l?(n&&((0,u.isUndefined)(e)?b({_i:!0,_r:t.revalidate}):b({_i:!1,_r:t.revalidate})),arguments.length?V.mutate(e,{...t,revalidate:n}):V.mutate()):f},[l,d]),L=(0,n.useCallback)(e=>{let t;if(!l)return f;let[,n]=(0,u.createCacheHelper)(d,l);if((0,u.isFunction)(e)?t=e(v()):"number"==typeof e&&(t=e),"number"!=typeof t)return f;n({_l:t}),I.current=t;let i=[],[a]=(0,u.createCacheHelper)(d,l),s=null;for(let e=0;e<t;++e){let[t]=(0,u.serialize)(r(e,s)),[n]=(0,u.createCacheHelper)(d,t),l=t?n().data:u.UNDEFINED;if((0,u.isUndefined)(l))return N(a().data);i.push(l),s=l}return N(i)},[l,d,N,v]);return{size:v(),setSize:L,mutate:N,get data(){return V.data},get error(){return V.error},get isValidating(){return V.isValidating},get isLoading(){return V.isLoading}}},g=(0,u.withMiddleware)(d,E)}}]);
package/dist/1578.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1578.js","sources":["webpack://@openmrs/esm-billing-app/./node_modules/swr/dist/infinite/index.mjs"],"names":["Object","WeakMap","t","i","JSON","Array","Promise","p","e","u","arguments"],"mappings":"iRAOA,IAAM,EAAO,KAAK,EAKZ,EAA8B,IAC9B,EAASA,OACT,EAAc,AAAC,GAAI,IAAM,EAOzB,EAAQ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nB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,SAAe,IAAM,CAAE,E"}
1
+ {"version":3,"file":"1578.js","sources":["webpack://@openmrs/esm-billing-app/./node_modules/swr/dist/infinite/index.mjs"],"names":["i","s","c","f","setTimeout","r","u","t","Date","clearTimeout","Error","Promise","e","arguments"],"mappings":"oQAMA,IAAM,EAAM,SAAqB,CAAC,IAC9B,GAAI,AAAmB,YAAnB,EAAQ,MAAM,CACd,MAAM,EACH,GAAI,AAAmB,cAAnB,EAAQ,MAAM,CACrB,OAAO,EAAQ,KAAK,CACjB,GAAI,AAAmB,aAAnB,EAAQ,MAAM,CACrB,MAAM,EAAQ,MAAM,AAUpB,OARA,EAAQ,MAAM,CAAG,UACjB,EAAQ,IAAI,CAAC,AAAC,IACV,EAAQ,MAAM,CAAG,YACjB,EAAQ,KAAK,CAAG,CACpB,EAAG,AAAC,IACA,EAAQ,MAAM,CAAG,WACjB,EAAQ,MAAM,CAAG,CACrB,GACM,CAEd,GACM,EAAc,CAChB,OAAQ,EACZ,EA4eA,uBAAqB,CAAC,WAAS,CAAE,eAAgB,CAC7C,MAAO,eAAa,AACxB,GAeI,IAAM,EAAS,eA5fG,CAAC,EAAM,EAAS,KAClC,GAAM,CAAE,OAAK,CAAE,SAAO,CAAE,UAAQ,CAAE,cAAY,CAAE,mBAAiB,CAAE,mBAAiB,CAAE,iBAAe,CAAE,mBAAiB,CAAE,oBAAkB,CAAE,kBAAgB,CAAE,CAAG,EAC7J,CAAC,EAAoB,EAAU,EAAO,EAAQ,CAAG,oBAAkB,CAAC,GAKpE,CAAC,EAAK,EAAM,CAAG,gBAAU,GAEzB,EAAoB,aAAO,IAG3B,EAAe,aAAO,IAEtB,EAAS,aAAO,GAChB,EAAa,aAAO,GACpB,EAAY,aAA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B,CACA,OAAO,EAAO,EAClB,EAEA,CACI,EACA,EACA,EACA,EACH,EAGD,MAAO,CACH,KAAM,IACN,UACA,SACA,IAAI,MAAQ,CACR,OAAO,EAAI,IAAI,AACnB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,qBAAe,EAAQ,E"}
package/dist/1899.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([["1899"],{11444(e,n,t){t.d(n,{A:()=>r});var i=t(54991),l=t.n(i),a=t(76314),o=t.n(a)()(l());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-billing__billing-form__tablet___depIv{padding:1.5rem 1rem;background-color:#fff}.-esm-billing__billing-form__desktop___XrIGU{padding:0rem}.-esm-billing__billing-form__button___\\+KaHL{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-billing__billing-form__button___\\+KaHL .cds--inline-loading{min-height:1rem !important}.-esm-billing__billing-form__button___\\+KaHL .cds--inline-loading__text{font-size:unset !important}.-esm-billing__billing-form__mt2___XSCej{margin-top:2rem}.-esm-billing__billing-form__searchContent___rwtx-{position:absolute;background-color:#fff;min-width:230px;overflow:auto;border:1px solid #ddd;z-index:1;width:92%}.-esm-billing__billing-form__searchItem___gJRX7{border-bottom:.1rem solid;border-bottom-color:silver;cursor:pointer}.-esm-billing__billing-form__invalidInput___-CFhJ{border:2px solid red}.-esm-billing__billing-form__removeButton___JOb\\+t{color:#ee0909;right:20px;cursor:pointer}.-esm-billing__billing-form__form___dOD1L{display:flex;flex-direction:column;justify-content:space-between;height:calc(100vh - 6rem)}.omrs-breakpoint-lt-desktop .-esm-billing__billing-form__form___dOD1L{background-color:#ededed}.omrs-breakpoint-gt-tablet .-esm-billing__billing-form__form___dOD1L{background-color:#fff}.-esm-billing__billing-form__grid___bVIsN{margin:1rem;display:flex;flex-direction:column;gap:1rem}.-esm-billing__billing-form__row___kfkPE{margin:.5rem 0rem 0rem;display:flex;flex-flow:row wrap;gap:1rem}.-esm-billing__billing-form__spacer___5WyoB{margin-top:1rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE{padding:1rem;background-color:#f4f4f4;border:1px solid #e0e0e0;border-radius:.25rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e0e0}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ:last-of-type{border-bottom:none}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemName___X3S0u{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);flex:1;color:#525252}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemDetail___LDqAI{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);flex:0 0 auto;color:#525252;margin:0 1rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemTotal___orcdj{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);flex:0 0 auto;color:#525252}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemsSubtotal___YO4s5{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);text-align:right;padding-top:.75rem;border-top:1px solid #e0e0e0;margin-top:.5rem;color:#525252}.-esm-billing__billing-form__sectionHeading___HFgo1{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-bottom:.75rem;color:#525252}.-esm-billing__billing-form__selectedItemsContainer___EgCXw{margin-top:1rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa{border:1px solid #e0e0e0;border-radius:.25rem;padding:1rem;margin-bottom:1rem;background-color:#f4f4f4}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemHeader___IPVIh{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemHeader___IPVIh .-esm-billing__billing-form__itemName___0pvcY{font-weight:600;font-size:1rem;color:#525252}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.5rem;align-items:flex-end}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb{display:flex;flex-direction:column;min-width:0}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:first-child{flex:1 1 auto;min-width:250px}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2){flex:0 0 140px;width:140px}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:last-child{flex:0 0 180px;width:180px;margin-left:auto;text-align:right}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb label{font-size:.875rem;font-weight:500;margin-bottom:.5rem;color:#525252;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--number,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--combo-box,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box__wrapper,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box__field{width:100% !important;max-width:100% !important;min-width:0 !important}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .-esm-billing__billing-form__priceDisplay___MN5Zc,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .-esm-billing__billing-form__totalDisplay___mNY6D{font-size:.875rem;font-size:.875rem;font-weight:600;color:#525252;padding:.5rem 0;word-break:break-word}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__grandTotal___a5c-8{text-align:right;padding:1rem;border-top:2px solid #0f62fe;margin-top:1rem;background-color:#f4f4f4;font-size:1.125rem;font-weight:600;color:#525252}@media(max-width: 1056px){.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2){flex:1 1 100%;width:100%}}@media(max-width: 768px){.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa{padding:.75rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO{flex-direction:column;gap:.5rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:first-child,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2),.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:last-child{flex:1 1 100%;width:100%;max-width:100%}}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/billing-form/billing-form.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,4CACE,mBAAA,CACA,qBDHM,CCMR,6CACE,YAAA,CAGF,6CACE,WC0CW,CDzCX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,kEACE,0BAAA,CAGF,wEACE,0BAAA,CAIJ,yCACE,eCWW,CDRb,mDACE,iBAAA,CACA,qBAAA,CACA,eAAA,CACA,aAAA,CACA,qBAAA,CACA,SAAA,CACA,SAAA,CAGF,gDACE,yBAAA,CACA,0BAAA,CACA,cAAA,CAGF,kDACE,oBAAA,CAGF,mDACE,aAAA,CACA,UAAA,CACA,cAAA,CAGF,0CACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,yBAAA,CAGF,sEACE,wBAAA,CAGF,qEACE,qBDpEM,CCuER,0CACE,WC5CW,CD6CX,YAAA,CACA,qBAAA,CACA,QC/CW,CDkDb,yCACE,sBAAA,CACA,YAAA,CACA,kBAAA,CACA,QCtDW,CDyDb,4CACE,eC1DW,CD6Db,4DACE,YC9DW,CD+DX,wBD5FM,CC6FN,wBAAA,CACA,oBChFW,CDkFX,iHACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,eAAA,CACA,+BAAA,CAEA,8HACE,kBAAA,CAGF,uKEqvBA,w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ACA,eAAA,CACA,aDrOM,CCyOV,0BAKU,6NACE,aAAA,CACA,UAAA,CAAA,CAQZ,yBAEI,0GACE,cCxOO,CD0OP,4JACE,qBAAA,CACA,SCjPK,CDoPH,opBAGE,aAAA,CACA,UAAA,CACA,cAAA,CAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n font-size: unset !important;\n }\n}\n\n.mt2 {\n margin-top: layout.$spacing-07;\n}\n\n.searchContent {\n position: absolute;\n background-color: #fff;\n min-width: 230px;\n overflow: auto;\n border: 1px solid #ddd;\n z-index: 1;\n width: 92%;\n}\n\n.searchItem {\n border-bottom: 0.1rem solid;\n border-bottom-color: silver;\n cursor: pointer;\n}\n\n.invalidInput {\n border: 2px solid red;\n}\n\n.removeButton {\n color: #ee0909;\n right: 20px;\n cursor: pointer;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: calc(100vh - 6rem);\n}\n\n:global(.omrs-breakpoint-lt-desktop) .form {\n background-color: #ededed;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .form {\n background-color: $ui-02;\n}\n\n.grid {\n margin: layout.$spacing-05;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-05;\n}\n\n.row {\n margin: layout.$spacing-03 0rem 0rem;\n display: flex;\n flex-flow: row wrap;\n gap: layout.$spacing-05;\n}\n\n.spacer {\n margin-top: layout.$spacing-05;\n}\n\n.existingItemsContainer {\n padding: layout.$spacing-05;\n background-color: $ui-01;\n border: 1px solid $ui-03;\n border-radius: layout.$spacing-02;\n\n .existingItemRow {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-03 0;\n border-bottom: 1px solid $ui-03;\n\n &:last-of-type {\n border-bottom: none;\n }\n\n .existingItemName {\n @include type.type-style('body-compact-01');\n flex: 1;\n color: $text-02;\n }\n\n .existingItemDetail {\n @include type.type-style('body-compact-01');\n flex: 0 0 auto;\n color: $text-02;\n margin: 0 layout.$spacing-05;\n }\n\n .existingItemTotal {\n @include type.type-style('heading-compact-01');\n flex: 0 0 auto;\n color: $text-02;\n }\n }\n\n .existingItemsSubtotal {\n @include type.type-style('body-compact-01');\n text-align: right;\n padding-top: layout.$spacing-04;\n border-top: 1px solid $ui-03;\n margin-top: layout.$spacing-03;\n color: $text-02;\n }\n}\n\n.sectionHeading {\n @include type.type-style('heading-compact-02');\n margin-bottom: layout.$spacing-04;\n color: $text-02;\n}\n\n.selectedItemsContainer {\n margin-top: layout.$spacing-05;\n \n .itemCard {\n border: 1px solid $ui-03;\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-05;\n margin-bottom: layout.$spacing-05;\n background-color: $ui-01;\n \n .itemHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: layout.$spacing-05;\n \n .itemName {\n font-weight: 600;\n font-size: 1rem;\n color: $text-02;\n }\n }\n \n .itemControls {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-05;\n margin-top: layout.$spacing-03;\n align-items: flex-end; .controlSection {\n display: flex;\n flex-direction: column;\n min-width: 0;\n \n &:first-child {\n flex: 1 1 auto;\n min-width: 250px;\n }\n \n &:nth-child(2) {\n flex: 0 0 140px;\n width: 140px;\n }\n \n &:last-child {\n flex: 0 0 180px;\n width: 180px;\n margin-left: auto;\n text-align: right;\n }\n \n label {\n font-size: 0.875rem;\n font-weight: 500;\n margin-bottom: layout.$spacing-03;\n color: $text-02;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n \n :global(.cds--list-box),\n :global(.cds--number),\n :global(.cds--combo-box),\n :global(.cds--list-box__wrapper),\n :global(.cds--list-box__field) {\n width: 100% !important;\n max-width: 100% !important;\n min-width: 0 !important;\n }\n \n .priceDisplay,\n .totalDisplay {\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 600;\n color: $text-02;\n padding: layout.$spacing-03 0;\n word-break: break-word;\n }\n }\n }\n }\n \n .grandTotal {\n text-align: right;\n padding: layout.$spacing-05;\n border-top: 2px solid $interactive-01;\n margin-top: layout.$spacing-05;\n background-color: $ui-01;\n font-size: 1.125rem;\n font-weight: 600;\n color: $text-02;\n }\n}\n\n@media (max-width: 1056px) {\n .selectedItemsContainer {\n .itemCard {\n .itemControls {\n .controlSection {\n &:nth-child(2) {\n flex: 1 1 100%;\n width: 100%;\n }\n }\n }\n }\n }\n}\n\n@media (max-width: 768px) {\n .selectedItemsContainer {\n .itemCard {\n padding: layout.$spacing-04;\n \n .itemControls {\n flex-direction: column;\n gap: layout.$spacing-03;\n \n .controlSection {\n &:first-child,\n &:nth-child(2),\n &:last-child {\n flex: 1 1 100%;\n width: 100%;\n max-width: 100%;\n }\n }\n }\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={tablet:"-esm-billing__billing-form__tablet___depIv",desktop:"-esm-billing__billing-form__desktop___XrIGU",button:"-esm-billing__billing-form__button___+KaHL",mt2:"-esm-billing__billing-form__mt2___XSCej",searchContent:"-esm-billing__billing-form__searchContent___rwtx-",searchItem:"-esm-billing__billing-form__searchItem___gJRX7",invalidInput:"-esm-billing__billing-form__invalidInput___-CFhJ",removeButton:"-esm-billing__billing-form__removeButton___JOb+t",form:"-esm-billing__billing-form__form___dOD1L",grid:"-esm-billing__billing-form__grid___bVIsN",row:"-esm-billing__billing-form__row___kfkPE",spacer:"-esm-billing__billing-form__spacer___5WyoB",existingItemsContainer:"-esm-billing__billing-form__existingItemsContainer___ONfRE",existingItemRow:"-esm-billing__billing-form__existingItemRow___ZDzhJ",existingItemName:"-esm-billing__billing-form__existingItemName___X3S0u",existingItemDetail:"-esm-billing__billing-form__existingItemDetail___LDqAI",existingItemTotal:"-esm-billing__billing-form__existingItemTotal___orcdj",existingItemsSubtotal:"-esm-billing__billing-form__existingItemsSubtotal___YO4s5",sectionHeading:"-esm-billing__billing-form__sectionHeading___HFgo1",selectedItemsContainer:"-esm-billing__billing-form__selectedItemsContainer___EgCXw",itemCard:"-esm-billing__billing-form__itemCard___-qABa",itemHeader:"-esm-billing__billing-form__itemHeader___IPVIh",itemName:"-esm-billing__billing-form__itemName___0pvcY",itemControls:"-esm-billing__billing-form__itemControls___T4bKO",controlSection:"-esm-billing__billing-form__controlSection___OAlFb",priceDisplay:"-esm-billing__billing-form__priceDisplay___MN5Zc",totalDisplay:"-esm-billing__billing-form__totalDisplay___mNY6D",grandTotal:"-esm-billing__billing-form__grandTotal___a5c-8"};let r=o},50662(e,n,t){t.r(n),t.d(n,{default:()=>T});var i=t(15275),l=t.n(i),a=t(38395),o=t(14993),r=t(76800),s=t(83697),c=t(46199),p=t(36994),g=t(87661),m=t(32373),d=t(95084),_=t(85072),u=t.n(_),b=t(97825),f=t.n(b),h=t(77659),y=t.n(h),A=t(55056),C=t.n(A),$=t(10540),w=t.n($),x=t(41113),v=t.n(x),k=t(11444),E={};E.styleTagTransform=v(),E.setAttributes=C(),E.insert=y().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=w(),u()(k.A,E);let I=k.A&&k.A.locals?k.A.locals:void 0;function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function B(e,n,t,i,l,a,o){try{var r=e[a](o),s=r.value}catch(e){t(e);return}r.done?n(s):Promise.resolve(s).then(i,l)}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.forEach(function(n){var i;i=t[n],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return e}function M(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function O(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,i,l=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a=[],o=!0,r=!1;try{for(l=l.call(e);!(o=(t=l.next()).done)&&(a.push(t.value),!n||a.length!==n);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return a}}(e,n)||N(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,n){if(e){if("string"==typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,n)}}let T=function(e){var n=e.workspaceProps,t=n.patientUuid,_=n.onMutate,u=n.billUuid,b=e.closeWorkspace,f="tablet"===(0,s.useLayoutType)(),h=(0,a.useTranslation)().t,y=(0,o.iX)().mutate,A=(0,s.useConfig)(),C=A.defaultCurrency,$=A.postBilledItems,w=O((0,i.useState)(!1),2),x=w[0],v=w[1],k=O((0,i.useState)([]),2),E=k[0],z=k[1],N=(0,c.ly)(),T=N.data,q=N.error,F=N.isLoading,P=(0,c.DX)(u),H=P.bill,X=P.isLoading,j=P.error,G=(0,p.ly)(),K=G.billableServices,L=G.isLoading,R=G.error,W=!!u&&!!H,J=(0,s.useVisit)(t).activeVisit,U=(0,i.useMemo)(function(){return W?(0,m.Zz)(H.lineItems):0},[W,null==H?void 0:H.lineItems]),Y=(0,i.useMemo)(function(){if(!T)return[];if(!W)return T;var e,n=new Set((null!=(e=H.lineItems)?e:[]).flatMap(function(e){return[e.billableService,e.item].filter(Boolean)}));return T.filter(function(e){return e.name&&!n.has(e.name)})},[T,W,null==H?void 0:H.lineItems]),V=function(e){if(e){var n=E.find(function(n){return n.uuid===e.uuid});if(n){var t=M(D({},n),{quantity:n.quantity+1});z(S(E).map(function(n){return n.uuid===e.uuid?t:n}));return}var i=e.servicePrices||[],l=0,a=null;if(1===i.length){var o=i[0].price;l="number"==typeof o?o:parseFloat(o),a=i[0]}var r={uuid:e.uuid,display:e.name,quantity:1,price:l,billableService:e.uuid,status:d.zk.PENDING,lineItemOrder:0,selectedPaymentMethod:a,availablePaymentMethods:i};z(S(E).concat([r]))}},Z=function(e,n){z(S(E).map(function(t){return t.uuid===e?M(D({},t),{quantity:n}):t}))},Q=function(e){z(S(E).filter(function(n){return n.uuid!==e}))},ee=function(e,n){z(S(E).map(function(t){return t.uuid===e?M(D({},t),{selectedPaymentMethod:n,price:"number"==typeof n.price?n.price:parseFloat(n.price),priceName:n.name,priceUuid:n.uuid}):t}))},en=function(){if(0===E.length)return!1;var e=!0,n=!1,t=void 0;try{for(var i,l=E[Symbol.iterator]();!(e=(i=l.next()).done);e=!0){var a=i.value;if(a.availablePaymentMethods&&a.availablePaymentMethods.length>1&&!a.selectedPaymentMethod)return(0,s.showSnackbar)({title:h("validationError","Validation error"),subtitle:h("paymentMethodRequired","Payment method is required for all items"),kind:"error"}),!1;if(!a.quantity||a.quantity<1)return!1}}catch(e){n=!0,t=e}finally{try{e||null==l.return||l.return()}finally{if(n)throw t}}return!0},et=function(){var e;return(e=function(){var e,n,i,l,a;return function(e,n){var t,i,l,a={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),r=Object.defineProperty;return r(o,"next",{value:s(0)}),r(o,"throw",{value:s(1)}),r(o,"return",{value:s(2)}),"function"==typeof Symbol&&r(o,Symbol.iterator,{value:function(){return this}}),o;function s(r){return function(s){var c=[r,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,i&&(l=2&c[0]?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l;switch(i=0,l&&(c=[2&c[0],l.value]),c[0]){case 0:case 1:l=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(l=(l=a.trys).length>0&&l[l.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!l||c[1]>l[0]&&c[1]<l[3])){a.label=c[1];break}if(6===c[0]&&a.label<l[1]){a.label=l[1],l=c;break}if(l&&a.label<l[2]){a.label=l[2],a.ops.push(c);break}l[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],i=0}finally{t=l=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:if(x||0===E.length||W&&(L||R)||!en())return[2];v(!0),e=E.map(function(e){return{quantity:e.quantity,price:e.price,lineItemOrder:0,status:d.zk.PENDING,billableService:e.uuid}}),o.label=1;case 1:if(o.trys.push([1,6,7,8]),!W)return[3,3];return n=H.lineItems.map(function(e){var n=(0,g.e)(K,e.billableService||e.item);if(!n)throw Error(h("serviceResolutionError",'Could not resolve service "{{service}}"',{service:e.billableService||e.item}));return{uuid:e.uuid,quantity:e.quantity,price:e.price,lineItemOrder:e.lineItemOrder,status:e.status,billableService:n,priceName:e.priceName,priceUuid:e.priceUuid}}),i={cashPoint:H.cashPointUuid,cashier:H.cashier.uuid,lineItems:S(n).concat(S(e)),patient:H.patientUuid,status:H.status,uuid:H.uuid},[4,(0,c.FR)(i)];case 2:return o.sent(),[3,5];case 3:return l=D({cashPoint:$.cashPoint,cashier:$.cashier,lineItems:e,payments:[],patient:t,status:d.ih.PENDING},(null==J?void 0:J.uuid)&&{visit:J.uuid}),[4,(0,c.Xn)(l)];case 4:o.sent(),o.label=5;case 5:return b({discardUnsavedChanges:!0}),null==_||_(),y((0,c.Z5)(t)),(0,s.showSnackbar)({title:W?h("itemsAddedToBill","Items added to bill"):h("billProcessed","Bill processed"),subtitle:W?h("itemsAddedToBillSuccessfully","Items have been added to the bill successfully"):h("billProcessedSuccessfully","Bill processed successfully"),kind:"success"}),[3,8];case 6:var r;return a=o.sent(),(0,s.showSnackbar)({title:h("billProcessingError","Bill processing error"),kind:"error",subtitle:(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](a):a instanceof r)?a.message:h("unknownBillError","An unexpected error occurred")}),[3,8];case 7:return v(!1),[7];case 8:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(i,l){var a=e.apply(n,t);function o(e){B(a,i,l,o,r,"next",e)}function r(e){B(a,i,l,o,r,"throw",e)}o(void 0)})})()};return l().createElement(s.Workspace2,{title:W?h("addItemsToBill","Add items to bill"):h("addBillItems","Add bill items"),hasUnsavedChanges:E.length>0},l().createElement(r.lVW,{className:I.form,onSubmit:function(e){e.preventDefault(),et()}},l().createElement("div",{className:I.grid},u&&X?l().createElement(r.OuH,{description:(0,s.getCoreTranslation)("loading")+"..."}):u&&j?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBill","Error loading bill"),subtitle:null==j?void 0:j.message}):W&&R?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBillableServices","Error loading billable services"),subtitle:null==R?void 0:R.message}):l().createElement(l().Fragment,null,W&&l().createElement("div",{className:I.existingItemsContainer},l().createElement("h4",{className:I.sectionHeading},h("existingItems","Existing items")),H.lineItems.map(function(e){return l().createElement("div",{key:e.uuid,className:I.existingItemRow},l().createElement("span",{className:I.existingItemName},e.billableService||e.item||e.display),l().createElement("span",{className:I.existingItemDetail},e.quantity," x ",(0,m.aL)(e.price,C)),l().createElement("span",{className:I.existingItemTotal},(0,m.aL)(e.price*e.quantity,C)))}),l().createElement("div",{className:I.existingItemsSubtotal},l().createElement("strong",null,h("subtotal","Subtotal"),": ",(0,m.aL)(U,C)))),W&&l().createElement("h4",{className:I.sectionHeading},h("newItems","New items")),F?l().createElement(r.OuH,{description:(0,s.getCoreTranslation)("loading")+"..."}):q?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBillableServices","Error loading billable services"),subtitle:null==q?void 0:q.message}):l().createElement(r.a32,{id:"searchItems",onChange:function(e){return V(e.selectedItem)},itemToString:function(e){return(null==e?void 0:e.name)||""},items:Y,titleText:h("searchItems","Search items and services")})),E&&E.length>0&&l().createElement("div",{className:I.selectedItemsContainer},l().createElement("h4",{className:I.sectionHeading},h("selectedItems","Selected items")),E.map(function(e){return l().createElement("div",{key:e.uuid,className:I.itemCard},l().createElement("div",{className:I.itemHeader},l().createElement("span",{className:I.itemName},e.display),l().createElement(r.K0,{align:"top-end",kind:"ghost",label:h("remove","Remove"),onClick:function(){return Q(e.uuid)}},l().createElement(s.TrashCanIcon,{size:16}))),l().createElement("div",{className:I.itemControls},e.availablePaymentMethods&&e.availablePaymentMethods.length>1?l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("selectPaymentMethod","Select payment method")),l().createElement(r.a32,{id:"payment-method-".concat(e.uuid),items:e.availablePaymentMethods,itemToString:function(e){return e?"".concat(e.name," - ").concat((0,m.aL)("number"==typeof e.price?e.price:parseFloat(e.price),C)):""},selectedItem:e.selectedPaymentMethod,onChange:function(n){var t=n.selectedItem;t&&ee(e.uuid,t)},placeholder:h("selectPaymentMethod","Select payment method"),titleText:""})):l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("unitPrice","Unit price")),l().createElement("span",{className:I.priceDisplay},(0,m.aL)(e.price,C))),l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("quantity","Quantity")),l().createElement(r.Q7x,{allowEmpty:!0,disableWheel:!0,hideSteppers:!0,id:"quantity-".concat(e.uuid),invalid:!e.quantity||e.quantity<1,invalidText:h("quantityMustBeAtLeastOne","Quantity must be at least 1"),onChange:function(n,t){var i=parseFloat(String(t.value));Z(e.uuid,isNaN(i)?0:i)},value:e.quantity})),l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("total","Total")),l().createElement("span",{className:I.totalDisplay},(0,m.aL)(e.price*e.quantity,C)))))}),l().createElement("div",{className:I.grandTotal},l().createElement("strong",null,h("grandTotal","Grand total"),":"," ",(0,m.aL)(U+(0,m.Zz)(E),C))))),l().createElement(r.Te$,{className:f?I.tablet:I.desktop},l().createElement(r.$nd,{className:I.button,kind:"secondary",disabled:x,onClick:function(){return b({discardUnsavedChanges:!1})}},h("discard","Discard")),l().createElement(r.$nd,{className:I.button,kind:"primary",disabled:x||0===E.length||W&&L,type:"submit"},x?l().createElement(r.OuH,{description:h("saving","Saving")+"..."}):h("saveAndClose","Save and close")))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([["1899"],{11444(e,n,t){t.d(n,{A:()=>r});var i=t(54991),l=t.n(i),a=t(76314),o=t.n(a)()(l());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-billing__billing-form__tablet___depIv{padding:1.5rem 1rem;background-color:#fff}.-esm-billing__billing-form__desktop___XrIGU{padding:0rem}.-esm-billing__billing-form__button___\\+KaHL{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-billing__billing-form__button___\\+KaHL .cds--inline-loading{min-height:1rem !important}.-esm-billing__billing-form__button___\\+KaHL .cds--inline-loading__text{font-size:unset !important}.-esm-billing__billing-form__mt2___XSCej{margin-top:2rem}.-esm-billing__billing-form__searchContent___rwtx-{position:absolute;background-color:#fff;min-width:230px;overflow:auto;border:1px solid #ddd;z-index:1;width:92%}.-esm-billing__billing-form__searchItem___gJRX7{border-bottom:.1rem solid;border-bottom-color:silver;cursor:pointer}.-esm-billing__billing-form__invalidInput___-CFhJ{border:2px solid red}.-esm-billing__billing-form__removeButton___JOb\\+t{color:#ee0909;right:20px;cursor:pointer}.-esm-billing__billing-form__form___dOD1L{display:flex;flex-direction:column;justify-content:space-between;height:calc(100vh - 6rem)}.omrs-breakpoint-lt-desktop .-esm-billing__billing-form__form___dOD1L{background-color:#ededed}.omrs-breakpoint-gt-tablet .-esm-billing__billing-form__form___dOD1L{background-color:#fff}.-esm-billing__billing-form__grid___bVIsN{margin:1rem;display:flex;flex-direction:column;gap:1rem}.-esm-billing__billing-form__row___kfkPE{margin:.5rem 0rem 0rem;display:flex;flex-flow:row wrap;gap:1rem}.-esm-billing__billing-form__spacer___5WyoB{margin-top:1rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE{padding:1rem;background-color:#f4f4f4;border:1px solid #e0e0e0;border-radius:.25rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e0e0}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ:last-of-type{border-bottom:none}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemName___X3S0u{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);flex:1;color:#525252}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemDetail___LDqAI{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);flex:0 0 auto;color:#525252;margin:0 1rem}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemRow___ZDzhJ .-esm-billing__billing-form__existingItemTotal___orcdj{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);flex:0 0 auto;color:#525252}.-esm-billing__billing-form__existingItemsContainer___ONfRE .-esm-billing__billing-form__existingItemsSubtotal___YO4s5{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);text-align:right;padding-top:.75rem;border-top:1px solid #e0e0e0;margin-top:.5rem;color:#525252}.-esm-billing__billing-form__sectionHeading___HFgo1{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-bottom:.75rem;color:#525252}.-esm-billing__billing-form__selectedItemsContainer___EgCXw{margin-top:1rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa{border:1px solid #e0e0e0;border-radius:.25rem;padding:1rem;margin-bottom:1rem;background-color:#f4f4f4}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemHeader___IPVIh{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemHeader___IPVIh .-esm-billing__billing-form__itemName___0pvcY{font-weight:600;font-size:1rem;color:#525252}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.5rem;align-items:flex-end}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb{display:flex;flex-direction:column;min-width:0}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:first-child{flex:1 1 auto;min-width:250px}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2){flex:0 0 140px;width:140px}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:last-child{flex:0 0 180px;width:180px;margin-left:auto;text-align:right}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb label{font-size:.875rem;font-weight:500;margin-bottom:.5rem;color:#525252;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--number,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--combo-box,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box__wrapper,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .cds--list-box__field{width:100% !important;max-width:100% !important;min-width:0 !important}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .-esm-billing__billing-form__priceDisplay___MN5Zc,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb .-esm-billing__billing-form__totalDisplay___mNY6D{font-size:.875rem;font-size:.875rem;font-weight:600;color:#525252;padding:.5rem 0;word-break:break-word}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__grandTotal___a5c-8{text-align:right;padding:1rem;border-top:2px solid #0f62fe;margin-top:1rem;background-color:#f4f4f4;font-size:1.125rem;font-weight:600;color:#525252}@media(max-width: 1056px){.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2){flex:1 1 100%;width:100%}}@media(max-width: 768px){.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa{padding:.75rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO{flex-direction:column;gap:.5rem}.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:first-child,.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:nth-child(2),.-esm-billing__billing-form__selectedItemsContainer___EgCXw .-esm-billing__billing-form__itemCard___-qABa .-esm-billing__billing-form__itemControls___T4bKO .-esm-billing__billing-form__controlSection___OAlFb:last-child{flex:1 1 100%;width:100%;max-width:100%}}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/billing-form/billing-form.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,C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,oDEutBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFrtBF,oBCnHW,CDoHX,aDvIQ,CC0IV,4DACE,eCnHW,CDqHX,0GACE,wBAAA,CACA,oBCtIS,CDuIT,YCxHS,CDyHT,kBCzHS,CD0HT,wBDvJI,CCyJJ,0JACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,kBChIO,CDkIP,wMACE,eAAA,CACA,cAAA,CACA,aD7JE,CCiKJ,4JACA,YAAA,CACA,cAAA,CACA,QC5IO,CD6IP,gBCvJO,CDwJP,oBAAA,CAAA,gNACE,YAAA,CACA,qBAAA,CACA,WAAA,CAEA,4NACE,aAAA,CACA,eAAA,CAGF,6NACE,cAAA,CACA,WAAA,CAGF,2NACE,cAAA,CACA,WAAA,CACA,gBAAA,CACA,gBAAA,CAGF,sNACE,iBAAA,CACA,eAAA,CACA,mBCjLG,CDkLH,aDhMA,CCiMA,kBAAA,CACA,eAAA,CACA,sBAAA,CAGF,0mCAKE,qBAAA,CACA,yBAAA,CACA,sBAAA,CAGF,ogBAEE,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,aDrNA,CCsNA,eAAA,CACA,qBAAA,CAMR,4GACE,gBAAA,CACA,YCvMS,CDwMT,4BAAA,CACA,eCzMS,CD0MT,wBDvOI,CCwOJ,kBAAA,CACA,eAAA,CACA,aDrOM,CCyOV,0BAKU,6NACE,aAAA,CACA,UAAA,CAAA,CAQZ,yBAEI,0GACE,cCxOO,CD0OP,4JACE,qBAAA,CACA,SCjPK,CDoPH,opBAGE,aAAA,CACA,UAAA,CACA,cAAA,CAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n font-size: unset !important;\n }\n}\n\n.mt2 {\n margin-top: layout.$spacing-07;\n}\n\n.searchContent {\n position: absolute;\n background-color: #fff;\n min-width: 230px;\n overflow: auto;\n border: 1px solid #ddd;\n z-index: 1;\n width: 92%;\n}\n\n.searchItem {\n border-bottom: 0.1rem solid;\n border-bottom-color: silver;\n cursor: pointer;\n}\n\n.invalidInput {\n border: 2px solid red;\n}\n\n.removeButton {\n color: #ee0909;\n right: 20px;\n cursor: pointer;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: calc(100vh - 6rem);\n}\n\n:global(.omrs-breakpoint-lt-desktop) .form {\n background-color: #ededed;\n}\n\n:global(.omrs-breakpoint-gt-tablet) .form {\n background-color: $ui-02;\n}\n\n.grid {\n margin: layout.$spacing-05;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-05;\n}\n\n.row {\n margin: layout.$spacing-03 0rem 0rem;\n display: flex;\n flex-flow: row wrap;\n gap: layout.$spacing-05;\n}\n\n.spacer {\n margin-top: layout.$spacing-05;\n}\n\n.existingItemsContainer {\n padding: layout.$spacing-05;\n background-color: $ui-01;\n border: 1px solid $ui-03;\n border-radius: layout.$spacing-02;\n\n .existingItemRow {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-03 0;\n border-bottom: 1px solid $ui-03;\n\n &:last-of-type {\n border-bottom: none;\n }\n\n .existingItemName {\n @include type.type-style('body-compact-01');\n flex: 1;\n color: $text-02;\n }\n\n .existingItemDetail {\n @include type.type-style('body-compact-01');\n flex: 0 0 auto;\n color: $text-02;\n margin: 0 layout.$spacing-05;\n }\n\n .existingItemTotal {\n @include type.type-style('heading-compact-01');\n flex: 0 0 auto;\n color: $text-02;\n }\n }\n\n .existingItemsSubtotal {\n @include type.type-style('body-compact-01');\n text-align: right;\n padding-top: layout.$spacing-04;\n border-top: 1px solid $ui-03;\n margin-top: layout.$spacing-03;\n color: $text-02;\n }\n}\n\n.sectionHeading {\n @include type.type-style('heading-compact-02');\n margin-bottom: layout.$spacing-04;\n color: $text-02;\n}\n\n.selectedItemsContainer {\n margin-top: layout.$spacing-05;\n \n .itemCard {\n border: 1px solid $ui-03;\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-05;\n margin-bottom: layout.$spacing-05;\n background-color: $ui-01;\n \n .itemHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: layout.$spacing-05;\n \n .itemName {\n font-weight: 600;\n font-size: 1rem;\n color: $text-02;\n }\n }\n \n .itemControls {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-05;\n margin-top: layout.$spacing-03;\n align-items: flex-end; .controlSection {\n display: flex;\n flex-direction: column;\n min-width: 0;\n \n &:first-child {\n flex: 1 1 auto;\n min-width: 250px;\n }\n \n &:nth-child(2) {\n flex: 0 0 140px;\n width: 140px;\n }\n \n &:last-child {\n flex: 0 0 180px;\n width: 180px;\n margin-left: auto;\n text-align: right;\n }\n \n label {\n font-size: 0.875rem;\n font-weight: 500;\n margin-bottom: layout.$spacing-03;\n color: $text-02;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n \n :global(.cds--list-box),\n :global(.cds--number),\n :global(.cds--combo-box),\n :global(.cds--list-box__wrapper),\n :global(.cds--list-box__field) {\n width: 100% !important;\n max-width: 100% !important;\n min-width: 0 !important;\n }\n \n .priceDisplay,\n .totalDisplay {\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 600;\n color: $text-02;\n padding: layout.$spacing-03 0;\n word-break: break-word;\n }\n }\n }\n }\n \n .grandTotal {\n text-align: right;\n padding: layout.$spacing-05;\n border-top: 2px solid $interactive-01;\n margin-top: layout.$spacing-05;\n background-color: $ui-01;\n font-size: 1.125rem;\n font-weight: 600;\n color: $text-02;\n }\n}\n\n@media (max-width: 1056px) {\n .selectedItemsContainer {\n .itemCard {\n .itemControls {\n .controlSection {\n &:nth-child(2) {\n flex: 1 1 100%;\n width: 100%;\n }\n }\n }\n }\n }\n}\n\n@media (max-width: 768px) {\n .selectedItemsContainer {\n .itemCard {\n padding: layout.$spacing-04;\n \n .itemControls {\n flex-direction: column;\n gap: layout.$spacing-03;\n \n .controlSection {\n &:first-child,\n &:nth-child(2),\n &:last-child {\n flex: 1 1 100%;\n width: 100%;\n max-width: 100%;\n }\n }\n }\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={tablet:"-esm-billing__billing-form__tablet___depIv",desktop:"-esm-billing__billing-form__desktop___XrIGU",button:"-esm-billing__billing-form__button___+KaHL",mt2:"-esm-billing__billing-form__mt2___XSCej",searchContent:"-esm-billing__billing-form__searchContent___rwtx-",searchItem:"-esm-billing__billing-form__searchItem___gJRX7",invalidInput:"-esm-billing__billing-form__invalidInput___-CFhJ",removeButton:"-esm-billing__billing-form__removeButton___JOb+t",form:"-esm-billing__billing-form__form___dOD1L",grid:"-esm-billing__billing-form__grid___bVIsN",row:"-esm-billing__billing-form__row___kfkPE",spacer:"-esm-billing__billing-form__spacer___5WyoB",existingItemsContainer:"-esm-billing__billing-form__existingItemsContainer___ONfRE",existingItemRow:"-esm-billing__billing-form__existingItemRow___ZDzhJ",existingItemName:"-esm-billing__billing-form__existingItemName___X3S0u",existingItemDetail:"-esm-billing__billing-form__existingItemDetail___LDqAI",existingItemTotal:"-esm-billing__billing-form__existingItemTotal___orcdj",existingItemsSubtotal:"-esm-billing__billing-form__existingItemsSubtotal___YO4s5",sectionHeading:"-esm-billing__billing-form__sectionHeading___HFgo1",selectedItemsContainer:"-esm-billing__billing-form__selectedItemsContainer___EgCXw",itemCard:"-esm-billing__billing-form__itemCard___-qABa",itemHeader:"-esm-billing__billing-form__itemHeader___IPVIh",itemName:"-esm-billing__billing-form__itemName___0pvcY",itemControls:"-esm-billing__billing-form__itemControls___T4bKO",controlSection:"-esm-billing__billing-form__controlSection___OAlFb",priceDisplay:"-esm-billing__billing-form__priceDisplay___MN5Zc",totalDisplay:"-esm-billing__billing-form__totalDisplay___mNY6D",grandTotal:"-esm-billing__billing-form__grandTotal___a5c-8"};let r=o},50662(e,n,t){t.r(n),t.d(n,{default:()=>T});var i=t(15275),l=t.n(i),a=t(38395),o=t(59324),r=t(76800),s=t(83697),c=t(46199),p=t(36994),g=t(87661),m=t(32373),d=t(95084),_=t(85072),u=t.n(_),b=t(97825),f=t.n(b),h=t(77659),y=t.n(h),A=t(55056),C=t.n(A),$=t(10540),w=t.n($),x=t(41113),v=t.n(x),k=t(11444),E={};E.styleTagTransform=v(),E.setAttributes=C(),E.insert=y().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=w(),u()(k.A,E);let I=k.A&&k.A.locals?k.A.locals:void 0;function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function B(e,n,t,i,l,a,o){try{var r=e[a](o),s=r.value}catch(e){t(e);return}r.done?n(s):Promise.resolve(s).then(i,l)}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.forEach(function(n){var i;i=t[n],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return e}function M(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function O(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,i,l=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a=[],o=!0,r=!1;try{for(l=l.call(e);!(o=(t=l.next()).done)&&(a.push(t.value),!n||a.length!==n);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return a}}(e,n)||N(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,n){if(e){if("string"==typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,n)}}let T=function(e){var n=e.workspaceProps,t=n.patientUuid,_=n.onMutate,u=n.billUuid,b=e.closeWorkspace,f="tablet"===(0,s.useLayoutType)(),h=(0,a.useTranslation)().t,y=(0,o.iX)().mutate,A=(0,s.useConfig)(),C=A.defaultCurrency,$=A.postBilledItems,w=O((0,i.useState)(!1),2),x=w[0],v=w[1],k=O((0,i.useState)([]),2),E=k[0],z=k[1],N=(0,c.ly)(),T=N.data,q=N.error,F=N.isLoading,P=(0,c.DX)(u),H=P.bill,X=P.isLoading,j=P.error,G=(0,p.ly)(),K=G.billableServices,L=G.isLoading,R=G.error,W=!!u&&!!H,J=(0,s.useVisit)(t).activeVisit,U=(0,i.useMemo)(function(){return W?(0,m.Zz)(H.lineItems):0},[W,null==H?void 0:H.lineItems]),Y=(0,i.useMemo)(function(){if(!T)return[];if(!W)return T;var e,n=new Set((null!=(e=H.lineItems)?e:[]).flatMap(function(e){return[e.billableService,e.item].filter(Boolean)}));return T.filter(function(e){return e.name&&!n.has(e.name)})},[T,W,null==H?void 0:H.lineItems]),V=function(e){if(e){var n=E.find(function(n){return n.uuid===e.uuid});if(n){var t=M(D({},n),{quantity:n.quantity+1});z(S(E).map(function(n){return n.uuid===e.uuid?t:n}));return}var i=e.servicePrices||[],l=0,a=null;if(1===i.length){var o=i[0].price;l="number"==typeof o?o:parseFloat(o),a=i[0]}var r={uuid:e.uuid,display:e.name,quantity:1,price:l,billableService:e.uuid,status:d.zk.PENDING,lineItemOrder:0,selectedPaymentMethod:a,availablePaymentMethods:i};z(S(E).concat([r]))}},Z=function(e,n){z(S(E).map(function(t){return t.uuid===e?M(D({},t),{quantity:n}):t}))},Q=function(e){z(S(E).filter(function(n){return n.uuid!==e}))},ee=function(e,n){z(S(E).map(function(t){return t.uuid===e?M(D({},t),{selectedPaymentMethod:n,price:"number"==typeof n.price?n.price:parseFloat(n.price),priceName:n.name,priceUuid:n.uuid}):t}))},en=function(){if(0===E.length)return!1;var e=!0,n=!1,t=void 0;try{for(var i,l=E[Symbol.iterator]();!(e=(i=l.next()).done);e=!0){var a=i.value;if(a.availablePaymentMethods&&a.availablePaymentMethods.length>1&&!a.selectedPaymentMethod)return(0,s.showSnackbar)({title:h("validationError","Validation error"),subtitle:h("paymentMethodRequired","Payment method is required for all items"),kind:"error"}),!1;if(!a.quantity||a.quantity<1)return!1}}catch(e){n=!0,t=e}finally{try{e||null==l.return||l.return()}finally{if(n)throw t}}return!0},et=function(){var e;return(e=function(){var e,n,i,l,a;return function(e,n){var t,i,l,a={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),r=Object.defineProperty;return r(o,"next",{value:s(0)}),r(o,"throw",{value:s(1)}),r(o,"return",{value:s(2)}),"function"==typeof Symbol&&r(o,Symbol.iterator,{value:function(){return this}}),o;function s(r){return function(s){var c=[r,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,i&&(l=2&c[0]?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l;switch(i=0,l&&(c=[2&c[0],l.value]),c[0]){case 0:case 1:l=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(l=(l=a.trys).length>0&&l[l.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!l||c[1]>l[0]&&c[1]<l[3])){a.label=c[1];break}if(6===c[0]&&a.label<l[1]){a.label=l[1],l=c;break}if(l&&a.label<l[2]){a.label=l[2],a.ops.push(c);break}l[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],i=0}finally{t=l=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:if(x||0===E.length||W&&(L||R)||!en())return[2];v(!0),e=E.map(function(e){return{quantity:e.quantity,price:e.price,lineItemOrder:0,status:d.zk.PENDING,billableService:e.uuid}}),o.label=1;case 1:if(o.trys.push([1,6,7,8]),!W)return[3,3];return n=H.lineItems.map(function(e){var n=(0,g.e)(K,e.billableService||e.item);if(!n)throw Error(h("serviceResolutionError",'Could not resolve service "{{service}}"',{service:e.billableService||e.item}));return{uuid:e.uuid,quantity:e.quantity,price:e.price,lineItemOrder:e.lineItemOrder,status:e.status,billableService:n,priceName:e.priceName,priceUuid:e.priceUuid}}),i={cashPoint:H.cashPointUuid,cashier:H.cashier.uuid,lineItems:S(n).concat(S(e)),patient:H.patientUuid,status:H.status,uuid:H.uuid},[4,(0,c.FR)(i)];case 2:return o.sent(),[3,5];case 3:return l=D({cashPoint:$.cashPoint,cashier:$.cashier,lineItems:e,payments:[],patient:t,status:d.ih.PENDING},(null==J?void 0:J.uuid)&&{visit:J.uuid}),[4,(0,c.Xn)(l)];case 4:o.sent(),o.label=5;case 5:return b({discardUnsavedChanges:!0}),null==_||_(),y((0,c.Z5)(t)),(0,s.showSnackbar)({title:W?h("itemsAddedToBill","Items added to bill"):h("billProcessed","Bill processed"),subtitle:W?h("itemsAddedToBillSuccessfully","Items have been added to the bill successfully"):h("billProcessedSuccessfully","Bill processed successfully"),kind:"success"}),[3,8];case 6:var r;return a=o.sent(),(0,s.showSnackbar)({title:h("billProcessingError","Bill processing error"),kind:"error",subtitle:(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](a):a instanceof r)?a.message:h("unknownBillError","An unexpected error occurred")}),[3,8];case 7:return v(!1),[7];case 8:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(i,l){var a=e.apply(n,t);function o(e){B(a,i,l,o,r,"next",e)}function r(e){B(a,i,l,o,r,"throw",e)}o(void 0)})})()};return l().createElement(s.Workspace2,{title:W?h("addItemsToBill","Add items to bill"):h("addBillItems","Add bill items"),hasUnsavedChanges:E.length>0},l().createElement(r.lVW,{className:I.form,onSubmit:function(e){e.preventDefault(),et()}},l().createElement("div",{className:I.grid},u&&X?l().createElement(r.OuH,{description:(0,s.getCoreTranslation)("loading")+"..."}):u&&j?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBill","Error loading bill"),subtitle:null==j?void 0:j.message}):W&&R?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBillableServices","Error loading billable services"),subtitle:null==R?void 0:R.message}):l().createElement(l().Fragment,null,W&&l().createElement("div",{className:I.existingItemsContainer},l().createElement("h4",{className:I.sectionHeading},h("existingItems","Existing items")),H.lineItems.map(function(e){return l().createElement("div",{key:e.uuid,className:I.existingItemRow},l().createElement("span",{className:I.existingItemName},e.billableService||e.item||e.display),l().createElement("span",{className:I.existingItemDetail},e.quantity," x ",(0,m.aL)(e.price,C)),l().createElement("span",{className:I.existingItemTotal},(0,m.aL)(e.price*e.quantity,C)))}),l().createElement("div",{className:I.existingItemsSubtotal},l().createElement("strong",null,h("subtotal","Subtotal"),": ",(0,m.aL)(U,C)))),W&&l().createElement("h4",{className:I.sectionHeading},h("newItems","New items")),F?l().createElement(r.OuH,{description:(0,s.getCoreTranslation)("loading")+"..."}):q?l().createElement(r.jeF,{kind:"error",lowContrast:!0,title:h("errorLoadingBillableServices","Error loading billable services"),subtitle:null==q?void 0:q.message}):l().createElement(r.a32,{id:"searchItems",onChange:function(e){return V(e.selectedItem)},itemToString:function(e){return(null==e?void 0:e.name)||""},items:Y,titleText:h("searchItems","Search items and services")})),E&&E.length>0&&l().createElement("div",{className:I.selectedItemsContainer},l().createElement("h4",{className:I.sectionHeading},h("selectedItems","Selected items")),E.map(function(e){return l().createElement("div",{key:e.uuid,className:I.itemCard},l().createElement("div",{className:I.itemHeader},l().createElement("span",{className:I.itemName},e.display),l().createElement(r.K0,{align:"top-end",kind:"ghost",label:h("remove","Remove"),onClick:function(){return Q(e.uuid)}},l().createElement(s.TrashCanIcon,{size:16}))),l().createElement("div",{className:I.itemControls},e.availablePaymentMethods&&e.availablePaymentMethods.length>1?l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("selectPaymentMethod","Select payment method")),l().createElement(r.a32,{id:"payment-method-".concat(e.uuid),items:e.availablePaymentMethods,itemToString:function(e){return e?"".concat(e.name," - ").concat((0,m.aL)("number"==typeof e.price?e.price:parseFloat(e.price),C)):""},selectedItem:e.selectedPaymentMethod,onChange:function(n){var t=n.selectedItem;t&&ee(e.uuid,t)},placeholder:h("selectPaymentMethod","Select payment method"),titleText:""})):l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("unitPrice","Unit price")),l().createElement("span",{className:I.priceDisplay},(0,m.aL)(e.price,C))),l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("quantity","Quantity")),l().createElement(r.Q7x,{allowEmpty:!0,disableWheel:!0,hideSteppers:!0,id:"quantity-".concat(e.uuid),invalid:!e.quantity||e.quantity<1,invalidText:h("quantityMustBeAtLeastOne","Quantity must be at least 1"),onChange:function(n,t){var i=parseFloat(String(t.value));Z(e.uuid,isNaN(i)?0:i)},value:e.quantity})),l().createElement("div",{className:I.controlSection},l().createElement("label",null,h("total","Total")),l().createElement("span",{className:I.totalDisplay},(0,m.aL)(e.price*e.quantity,C)))))}),l().createElement("div",{className:I.grandTotal},l().createElement("strong",null,h("grandTotal","Grand total"),":"," ",(0,m.aL)(U+(0,m.Zz)(E),C))))),l().createElement(r.Te$,{className:f?I.tablet:I.desktop},l().createElement(r.$nd,{className:I.button,kind:"secondary",disabled:x,onClick:function(){return b({discardUnsavedChanges:!1})}},h("discard","Discard")),l().createElement(r.$nd,{className:I.button,kind:"primary",disabled:x||0===E.length||W&&L,type:"submit"},x?l().createElement(r.OuH,{description:h("saving","Saving")+"..."}):h("saveAndClose","Save and close")))))}}}]);