@openmrs/esm-patient-banner-app 11.3.1-pre.9355 → 11.3.1-pre.9362
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +19 -20
- package/dist/2529.js +2 -0
- package/dist/2529.js.map +1 -0
- package/dist/2636.js +1 -1
- package/dist/2636.js.map +1 -1
- package/dist/4300.js +1 -1
- package/dist/5763.js +1 -1
- package/dist/5763.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-banner-app.js +1 -1
- package/dist/openmrs-esm-patient-banner-app.js.buildmanifest.json +54 -150
- package/dist/openmrs-esm-patient-banner-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/config-schema.ts +0 -65
- package/src/index.ts +1 -20
- package/src/routes.json +0 -20
- package/translations/en.json +1 -9
- package/dist/44.js +0 -1
- package/dist/44.js.map +0 -1
- package/dist/508.js +0 -1
- package/dist/508.js.map +0 -1
- package/dist/5982.js +0 -1
- package/dist/5982.js.map +0 -1
- package/dist/8782.js +0 -2
- package/dist/8782.js.map +0 -1
- package/src/print-identifier-sticker/action-button.scss +0 -3
- package/src/print-identifier-sticker/patient-detail.component.tsx +0 -147
- package/src/print-identifier-sticker/print-identifier-sticker-action-button.component.tsx +0 -35
- package/src/print-identifier-sticker/print-identifier-sticker-modal.test.tsx +0 -131
- package/src/print-identifier-sticker/print-identifier-sticker.modal.tsx +0 -168
- package/src/print-identifier-sticker/print-identifier-sticker.resource.ts +0 -46
- package/src/print-identifier-sticker/print-identifier-sticker.scss +0 -88
- /package/dist/{8782.js.LICENSE.txt → 2529.js.LICENSE.txt} +0 -0
package/dist/44.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_banner_app=globalThis.webpackChunk_openmrs_esm_patient_banner_app||[]).push([[44],{60044:(e,n,t)=>{t.r(n),t.d(n,{default:()=>W});var a=t(1343),i=t.n(a),r=t(15294),o=t.n(r),l=t(72339),s=t(30723),p=t(65348),c=t(54440),u=t(46372),d=t.n(u),g=t(72591),f=t.n(g),h=t(1740),y=t.n(h),m=t(88128),b=t.n(m),$=t(30855),A=t.n($),v=t(93051),k=t.n(v),w=t(73656),_=t.n(w),x=t(67897),C={};C.styleTagTransform=_(),C.setAttributes=A(),C.insert=b().bind(null,"head"),C.domAPI=y(),C.insertStyleElement=k(),f()(x.A,C);const z=x.A&&x.A.locals?x.A.locals:void 0;function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function M(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return E(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=function(e){var n=e.patient,t=(0,l.useTranslation)().t;return i().createElement("div",null,i().createElement("span",null,i().createElement("strong",{className:z.strong},t("patientNameWithSeparator","Patient name:"))),i().createElement("span",{className:z.patientDetail},(0,c.getPatientName)(n)))},B=function(e){var n=e.patient,t=(0,l.useTranslation)().t;return i().createElement("div",null,i().createElement("span",null,i().createElement("strong",{className:z.strong},t("patientAge","Age:"))),i().createElement("span",{className:z.patientDetail},(0,c.age)(n.birthDate)))},T=function(e){var n=e.patient,t=(0,l.useTranslation)().t;return i().createElement("div",null,i().createElement("span",null,i().createElement("strong",{className:z.strong},t("patientDateOfBirthWithSeparator","Date of birth:"))),i().createElement("span",{className:z.patientDetail},d()(n.birthDate).format("DD-MM-YYYY")))},D=function(e){var n=e.patient,t=(0,l.useTranslation)().t;return i().createElement("div",null,i().createElement("span",null,i().createElement("strong",{className:z.strong},t("patientGenderWithSeparator","Gender:"))),i().createElement("span",{className:z.patientDetail},function(e){switch(e){case"male":return(0,c.getCoreTranslation)("male","Male");case"female":return(0,c.getCoreTranslation)("female","Female");case"other":return(0,c.getCoreTranslation)("other","Other");case"unknown":return(0,c.getCoreTranslation)("unknown","Unknown");default:return e}}(n.gender)))},S=function(e){var n,t=e.patient,a=(0,c.useConfig)().printPatientSticker,r=(null!=a?a:{}).identifiersToDisplay,o=0===(null!=r?r:[]).length?t.identifier:null===(n=t.identifier)||void 0===n?void 0:n.filter((function(e){return r.includes(e.type.coding[0].code)}));return i().createElement("div",null,null==o?void 0:o.map((function(e){return i().createElement("div",{key:e.id},i().createElement("span",null,i().createElement("strong",{className:z.strong},e.type.text,":")),i().createElement("span",{className:z.patientDetail},e.value))})))},I=function(e){var n,t,a,r=e.patient,o=(0,l.useTranslation)().t;return(null==r||null===(n=r.telecom)||void 0===n?void 0:n.length)?i().createElement("div",null,i().createElement("span",null,i().createElement("strong",{className:z.strong},o("telephoneNumberWithSeparator","Telephone number:"))),i().createElement("span",{className:z.patientDetail},null===(a=r.telecom)||void 0===a||null===(t=a[0])||void 0===t?void 0:t.value)):null},P=function(e){var n,t=e.patient,a=null==t||null===(n=t.address)||void 0===n?void 0:n.find((function(e){return"home"===e.use})),r=function(e){return e.split("#")[1]};return i().createElement(i().Fragment,null,a?Object.entries(a).filter((function(e){var n=M(e,1)[0];return"id"!==n&&"use"!==n})).map((function(e){var n,t,o,l=M(e,2),s=l[0],p=l[1];return"extension"===s?null===(o=a.extension)||void 0===o||null===(t=o[0])||void 0===t||null===(n=t.extension)||void 0===n?void 0:n.map((function(e,n){return i().createElement("div",{key:"address-".concat(s,"-").concat(n)},i().createElement("span",{className:z.strong},(0,c.getCoreTranslation)(r(e.url),r(e.url)),":"),i().createElement("span",{className:z.patientDetail},e.valueString))})):i().createElement("div",{key:"address-".concat(s)},i().createElement("span",{className:z.strong},(0,c.getCoreTranslation)(s,s),":"),i().createElement("span",{className:z.patientDetail},p))})):i().createElement("li",null,"--"))},O={width:2,format:"CODE39",background:"#f4f4f4",displayValue:!0,renderer:"img",font:"IBM Plex Sans",textAlign:"center",textPosition:"bottom",fontSize:16};function j(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var q=function(e){var n,t,a,r,l=e.patient,s=(0,c.useConfig)().printPatientSticker,p=null==l||null===(t=l.identifier)||void 0===t||null===(n=t.find((function(e){return"official"===e.use})))||void 0===n?void 0:n.value;return i().createElement("div",{className:z.stickerContainer},i().createElement("div",{className:z.documentHeader},(null==s||null===(a=s.header)||void 0===a?void 0:a.showBarcode)&&i().createElement(o(),function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){F(e,n,t[n])}))}return e}({value:p},O)),(null==s||null===(r=s.header)||void 0===r?void 0:r.showLogo)&&i().createElement("div",{className:z.implementationLogo},i().createElement(L,null))),s.fields.map((function(e){var n=function(e){switch(e){case"name":return N;case"age":return B;case"dob":return T;case"gender":return D;case"identifier":return S;case"contact":return I;case"address":return P;default:return console.error("Invalid patient field: ".concat(e)),null}}(e);return i().createElement(n,{key:e,patient:l})})))},L=function(){var e,n,t=(0,l.useTranslation)().t,a=(0,c.useConfig)().printPatientSticker;return(null==a||null===(e=a.header)||void 0===e?void 0:e.logo)?i().createElement("img",{alt:t("implementationLogo","Implementation logo"),src:null==a||null===(n=a.header)||void 0===n?void 0:n.logo}):i().createElement("svg",{"data-testid":"openmrs-logo",role:"img",viewBox:"0 0 380 119",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.29 40.328a27.755 27.755 0 0 1 19.688-8.154c7.669 0 14.613 3.102 19.647 8.116l.02-18.54A42.835 42.835 0 0 0 59.978 17c-7.089 0-13.813 1.93-19.709 4.968l.021 18.36ZM79.645 79.671a27.744 27.744 0 0 1-19.684 8.154c-7.67 0-14.614-3.101-19.651-8.116l-.02 18.54A42.857 42.857 0 0 0 59.96 103a42.833 42.833 0 0 0 19.672-4.751l.013-18.578ZM40.328 79.696c-5.038-5.037-8.154-11.995-8.154-19.685 0-7.669 3.102-14.612 8.116-19.65l-18.54-.02A42.85 42.85 0 0 0 17 60.012a42.819 42.819 0 0 0 4.752 19.672l18.576.013ZM79.634 40.289a27.753 27.753 0 0 1 8.154 19.688 27.744 27.744 0 0 1-8.117 19.646l18.542.02a42.842 42.842 0 0 0 4.749-19.666c0-7.09-1.714-13.779-4.751-19.675l-18.577-.013ZM156.184 60.002c0-8.748-6.118-15.776-15.025-15.776-8.909 0-15.025 7.028-15.025 15.776 0 8.749 6.116 15.78 15.025 15.78 8.907 0 15.025-7.031 15.025-15.78Zm-34.881 0c0-11.482 8.318-19.958 19.856-19.958 11.536 0 19.855 8.477 19.855 19.959 0 11.484-8.319 19.964-19.855 19.964-11.538 0-19.856-8.48-19.856-19.965ZM179.514 75.54c5.507 0 9.05-4.14 9.05-9.482 0-5.341-3.543-9.483-9.05-9.483-5.505 0-9.046 4.142-9.046 9.483 0 5.342 3.541 9.482 9.046 9.482ZM166.22 53.306h4.248v3.704h.11c2.344-2.725 5.449-4.36 9.154-4.36 8.014 0 13.408 5.67 13.408 13.408 0 7.63-5.613 13.406-12.752 13.406-4.58 0-8.231-2.29-9.81-5.178h-.11V90.87h-4.248V53.306ZM217.773 63.768c-.163-4.305-3-7.193-7.686-7.193-4.685 0-7.79 2.888-8.335 7.193h16.021Zm3.653 10.412c-3.001 3.868-6.596 5.284-11.339 5.284-8.01 0-12.914-5.993-12.914-13.406 0-7.901 5.559-13.407 13.08-13.407 7.196 0 12.096 4.906 12.096 13.354v1.362h-20.597c.325 4.413 3.704 8.173 8.335 8.173 3.65 0 6.105-1.307 8.12-3.868l3.219 2.508ZM227.854 59.356c0-2.346-.216-4.36-.216-6.05h4.031c0 1.363.11 2.777.11 4.195h.11c1.144-2.505 4.306-4.85 8.5-4.85 6.705 0 9.699 4.252 9.699 10.41v15.748h-4.248v-15.31c0-4.253-1.856-6.924-5.833-6.924-5.503 0-7.903 3.979-7.903 9.811V78.81h-4.25V59.356ZM259.211 41.008h6.708L278.8 70.791h.107l12.982-29.782h6.549v37.99h-4.506V47.124h-.106L280.192 79h-2.738l-13.629-31.875h-.107V79h-4.507V41.01ZM312.392 57.752h4.023c4.992 0 11.487 0 11.487-6.282 0-5.47-4.776-6.276-9.177-6.276h-6.333v12.558Zm-4.506-16.744h9.711c7.352 0 15.132 1.072 15.132 10.462 0 5.527-3.594 9.125-9.495 10.037L334.018 79h-5.525l-10.304-17.063h-5.797V79h-4.506V41.01ZM358.123 47.712c-1.506-2.413-4.187-3.486-6.926-3.486-3.973 0-8.1 1.88-8.1 6.385 0 3.49 1.931 5.047 7.994 6.98 5.903 1.878 11.377 3.809 11.377 11.267 0 7.567-6.495 11.11-13.36 11.11-4.402 0-9.125-1.45-11.7-5.262l3.862-3.165c1.61 2.794 4.83 4.24 8.105 4.24 3.862 0 8.263-2.253 8.263-6.601 0-4.669-3.165-5.474-9.928-7.728-5.366-1.771-9.442-4.134-9.442-10.463 0-7.298 6.277-10.945 12.929-10.945 4.241 0 7.836 1.178 10.625 4.45l-3.699 3.218Z"}))};const W=function(e){var n,t,r=e.closeModal,o=e.patient,u=(0,l.useTranslation)().t,d=(0,c.useConfig)().printPatientSticker,g=null!=d?d:{},f=g.pageSize,h=g.printScale,y=void 0===h?"1":h,m=(0,a.useRef)(null),b=(0,a.useRef)(null),$=(n=(0,a.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return r}}(n,t)||function(e,n){if(e){if("string"==typeof e)return j(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?j(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=$[0],v=$[1],k=u("patientIdentifierSticker","Patient identifier sticker");(0,a.useEffect)((function(){A&&b.current&&b.current()}),[A]);var w=(0,a.useCallback)((function(){return new Promise((function(e){o&&k&&(b.current=e,v(!0))}))}),[k,o]),_=(0,a.useCallback)((function(){b.current=null,v(!1),r()}),[r]),x=(0,a.useCallback)((function(e,n){b.current=null,(0,c.showSnackbar)({isLowContrast:!1,kind:"error",title:(0,c.getCoreTranslation)("printError","Print error"),subtitle:(0,c.getCoreTranslation)("printErrorExplainer",'An error occurred in "{{errorLocation}}": ',{errorLocation:e})+n}),v(!1)}),[]),C=(0,a.useCallback)((function(e){return new Promise((function(n){if(e){var t,a,i=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document);i&&(i.documentElement.style.setProperty("--print-scale",y),null===(a=e.contentWindow)||void 0===a||a.print(),n())}}))}),[y]),E=(0,s.useReactToPrint)({content:function(){return m.current},documentTitle:"".concat((0,c.getPatientName)(o)," - ").concat(k),onAfterPrint:_,onBeforeGetContent:w,onPrintError:x,print:C,copyStyles:!0});return i().createElement(i().Fragment,null,i().createElement(p.rQ0,{closeModal:r,title:(0,c.getCoreTranslation)("printIdentifierSticker","Print identifier sticker")}),i().createElement(p.cwr,null,i().createElement("div",{ref:m},i().createElement("style",{type:"text/css",media:"print"},"\n @page {\n size: ".concat(f,";\n }\n ")),i().createElement(q,{patient:o}))),i().createElement(p.jlY,null,i().createElement(p.$nd,{kind:"secondary",onClick:r},(0,c.getCoreTranslation)("cancel","Cancel")),i().createElement(p.$nd,{className:z.button,disabled:A,onClick:E,kind:"primary"},A?i().createElement(p.OuH,{className:z.loader,description:(0,c.getCoreTranslation)("printing","Printing")+"..."}):(0,c.getCoreTranslation)("print","Print"))))}},67897:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(30977),i=t.n(a),r=t(95924),o=t.n(r)()(i());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-patient-banner__print-identifier-sticker__stickerContainer___fACez{padding:.5rem 1rem}.-esm-patient-banner__print-identifier-sticker__documentHeader___\\+VvlP{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #005d5d;margin-bottom:1rem}.-esm-patient-banner__print-identifier-sticker__row___lOCQ5{margin:.5rem 0 0;display:flex;flex-flow:row wrap;gap:1rem}.-esm-patient-banner__print-identifier-sticker__gridRow___px0bB{padding:0px;display:flex;flex-direction:row;justify-content:space-between}.-esm-patient-banner__print-identifier-sticker__gridRow___px0bB div{margin-left:0px;margin-bottom:5px}.-esm-patient-banner__print-identifier-sticker__patientName___UB2hY{font-size:1.5rem;font-weight:bolder;margin-bottom:5px}.-esm-patient-banner__print-identifier-sticker__button___qezrM .cds--inline-loading{min-height:1rem !important}.-esm-patient-banner__print-identifier-sticker__detailsGrid___K5USL{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:.5rem 0;margin-top:.5rem}.-esm-patient-banner__print-identifier-sticker__loader___1razf .cds--inline-loading__text{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-patient-banner__print-identifier-sticker__strong___9gFNw{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0);font-weight:700;margin-inline-end:.5rem}.-esm-patient-banner__print-identifier-sticker__patientDetail___AmJVj{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-patient-banner__print-identifier-sticker__implementationLogo___\\+ZMh6{width:40%}@media print{html,body{height:100vh;margin:0 !important;padding:0 !important;overflow:hidden}.-esm-patient-banner__print-identifier-sticker__stickerContainer___fACez{transform:scale(var(--print-scale));transform-origin:left top}}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/print-identifier-sticker/print-identifier-sticker.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,yEACE,kBAAA,CAGF,wEACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,+BAAA,CACA,kBCkBW,CDfb,4DACE,gBAAA,CACA,YAAA,CACA,kBAAA,CACA,QCWW,CDRb,gEACE,WAAA,CACA,YAAA,CACA,kBAAA,CACA,6BAAA,CAEA,oEACE,eAAA,CACA,iBAAA,CAIJ,oEACE,gBAAA,CACA,kBAAA,CACA,iBAAA,CAIA,oFACE,0BAAA,CAIJ,oEACE,YAAA,CACA,+CAAA,CACA,WAAA,CACA,gBC9BW,CDkCX,0FE2yBE,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CFtyBJ,+DEsyBI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CFpyBF,eAAA,CACA,uBC1CW,CD6Cb,sEEgyBI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CF5xBJ,4EACE,SAAA,CAGF,aACE,UAEE,YAAA,CACA,mBAAA,CACA,oBAAA,CACA,eAAA,CAGF,yEACE,mCAAA,CACA,yBAAA,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.stickerContainer {\n padding: layout.$spacing-03 layout.$spacing-05;\n}\n\n.documentHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid $brand-01;\n margin-bottom: layout.$spacing-05;\n}\n\n.row {\n margin: layout.$spacing-03 0 0;\n display: flex;\n flex-flow: row wrap;\n gap: layout.$spacing-05;\n}\n\n.gridRow {\n padding: 0px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n div {\n margin-left: 0px;\n margin-bottom: 5px;\n }\n}\n\n.patientName {\n font-size: layout.$spacing-06;\n font-weight: bolder;\n margin-bottom: 5px;\n}\n\n.button {\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n}\n\n.detailsGrid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: layout.$spacing-03 0;\n margin-top: layout.$spacing-03;\n}\n\n.loader {\n :global(.cds--inline-loading__text) {\n @include type.type-style('body-01');\n }\n}\n\n.strong {\n @include type.type-style('heading-04');\n font-weight: 700;\n margin-inline-end: layout.$spacing-03;\n}\n\n.patientDetail {\n @include type.type-style('heading-03');\n}\n\n.implementationLogo {\n width: 40%;\n}\n\n@media print {\n html,\n body {\n height: 100vh;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n }\n\n .stickerContainer {\n transform: scale(var(--print-scale));\n transform-origin: left top;\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={stickerContainer:"-esm-patient-banner__print-identifier-sticker__stickerContainer___fACez",documentHeader:"-esm-patient-banner__print-identifier-sticker__documentHeader___+VvlP",row:"-esm-patient-banner__print-identifier-sticker__row___lOCQ5",gridRow:"-esm-patient-banner__print-identifier-sticker__gridRow___px0bB",patientName:"-esm-patient-banner__print-identifier-sticker__patientName___UB2hY",button:"-esm-patient-banner__print-identifier-sticker__button___qezrM",detailsGrid:"-esm-patient-banner__print-identifier-sticker__detailsGrid___K5USL",loader:"-esm-patient-banner__print-identifier-sticker__loader___1razf",strong:"-esm-patient-banner__print-identifier-sticker__strong___9gFNw",patientDetail:"-esm-patient-banner__print-identifier-sticker__patientDetail___AmJVj",implementationLogo:"-esm-patient-banner__print-identifier-sticker__implementationLogo___+ZMh6"};const l=o}}]);
|
package/dist/44.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"44.js","mappings":"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","sources":["webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/print-identifier-sticker.scss?0e7d","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/patient-detail.component.tsx","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/print-identifier-sticker.resource.ts","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/print-identifier-sticker.modal.tsx","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/print-identifier-sticker.scss"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","PatientName","patient","useTranslation","t","div","span","strong","className","styles","patientDetail","getPatientName","PatientAge","age","birthDate","PatientDob","dayjs","format","PatientGender","gender","getCoreTranslation","getGender","PatientIdentifier","useConfig","printPatientSticker","identifiersToDisplay","patientIdentifiers","length","identifier","filter","includes","type","coding","code","map","key","id","text","value","PatientContact","telecom","PatientAddress","address","find","a","use","getAddressKey","url","split","Object","entries","extension","add","i","valueString","li","defaultBarcodeParams","width","background","displayValue","renderer","font","textAlign","textPosition","fontSize","PrintComponent","primaryIdentifierValue","stickerContainer","documentHeader","header","showBarcode","Barcode","showLogo","implementationLogo","ImplementationLogo","fields","field","Component","console","error","getPatientField","logo","img","alt","src","svg","data-testid","role","viewBox","xmlns","path","fillRule","clipRule","d","closeModal","pageSize","printScale","contentToPrintRef","useRef","onBeforeGetContentResolve","useState","isPrinting","setIsPrinting","headerTitle","useEffect","current","handleBeforeGetContent","useCallback","Promise","resolve","handleAfterPrint","handlePrintError","errorLocation","showSnackbar","isLowContrast","kind","title","subtitle","handleInitiatePrint","printWindow","printContent","contentDocument","contentWindow","document","documentElement","style","setProperty","print","handlePrint","useReactToPrint","content","documentTitle","onAfterPrint","onBeforeGetContent","onPrintError","copyStyles","ModalHeader","ModalBody","ref","media","ModalFooter","Button","onClick","button","disabled","InlineLoading","loader","description","___CSS_LOADER_EXPORT___","push","module"],"sourceRoot":""}
|
package/dist/508.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_banner_app=globalThis.webpackChunk_openmrs_esm_patient_banner_app||[]).push([[508],{22095:(n,e,t)=>{t.d(e,{A:()=>o});var i=t(30977),a=t.n(i),s=t(95924),r=t.n(s)()(a());r.push([n.id,".-esm-patient-banner__action-button__menuitem___g01w7{max-width:none}","",{version:3,sources:["webpack://./src/print-identifier-sticker/action-button.scss"],names:[],mappings:"AAAA,sDACE,cAAA",sourcesContent:[".menuitem {\n max-width: none;\n}\n"],sourceRoot:""}]),r.locals={menuitem:"-esm-patient-banner__action-button__menuitem___g01w7"};const o=r},90508:(n,e,t)=>{t.r(e),t.d(e,{default:()=>C});var i=t(1343),a=t.n(i),s=t(72339),r=t(65348),o=t(54440),c=t(72591),l=t.n(c),u=t(1740),m=t.n(u),p=t(88128),_=t.n(p),d=t(30855),b=t.n(d),A=t(93051),k=t.n(A),f=t(73656),h=t.n(f),w=t(22095),g={};g.styleTagTransform=h(),g.setAttributes=b(),g.insert=_().bind(null,"head"),g.domAPI=m(),g.insertStyleElement=k(),l()(w.A,g);const v=w.A&&w.A.locals?w.A.locals:void 0,C=function(n){var e=n.patient,t=(0,s.useTranslation)().t,c=(0,o.useFeatureFlag)("print-patient-identifier-sticker"),l=(0,i.useCallback)((function(){var n=(0,o.showModal)("print-identifier-sticker-modal",{closeModal:function(){return n()},patient:e})}),[e]);return e&&c?a().createElement(r.XSD,{className:v.menuitem,itemText:t("printIdentifierSticker","Print identifier sticker"),onClick:l}):null}}}]);
|
package/dist/508.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"508.js","mappings":"kNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,wEAAyE,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,+DAA+D,MAAQ,GAAG,SAAW,kBAAkB,eAAiB,CAAC,wCAAwC,WAAa,MAE3TH,EAAwBI,OAAS,CAChC,SAAY,wDAEb,S,0OCCIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,ECQnE,EAxBsG,Y,IAAGC,EAAAA,EAAAA,QACjG,GAAQC,EAAAA,EAAAA,kBAANC,EACFC,GAAmCC,EAAAA,EAAAA,gBAAe,oCAElDC,GAAoBC,EAAAA,EAAAA,cAAY,WACpC,IAAMC,GAAUC,EAAAA,EAAAA,WAAU,iCAAkC,CAC1DC,WAAY,W,OAAMF,G,EAClBP,QAAAA,GAEJ,GAAG,CAACA,IAEJ,OAAKA,GAAYG,EAKf,kBAACO,EAAAA,IAAgBA,CACfC,UAAWC,EAAOC,SAClBC,SAAUZ,EAAE,yBAA0B,4BACtCa,QAASV,IAPJ,IAUX,C","sources":["webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/action-button.scss","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/action-button.scss?f33c","webpack://@openmrs/esm-patient-banner-app/./src/print-identifier-sticker/print-identifier-sticker-action-button.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","patient","useTranslation","t","canPrintPatientIdentifierSticker","useFeatureFlag","handleLaunchModal","useCallback","dispose","showModal","closeModal","OverflowMenuItem","className","styles","menuitem","itemText","onClick"],"sourceRoot":""}
|
package/dist/5982.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_patient_banner_app=globalThis.webpackChunk_openmrs_esm_patient_banner_app||[]).push([[5982],{2519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0;var r=s(n(66112)),o=s(n(44157)),i=s(n(17886)),a=s(n(85864)),u=s(n(52467));function s(e){return e&&e.__esModule?e:{default:e}}t.MSI=r.default,t.MSI10=o.default,t.MSI11=i.default,t.MSI1010=a.default,t.MSI1110=u.default},7201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in t)t.hasOwnProperty(n)&&"string"==typeof e[n=t[n]]&&(e[n]=parseInt(e[n],10));return"string"==typeof e.displayValue&&(e.displayValue="false"!=e.displayValue),e}},11736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n(14483)),i=u(n(54594)),a=n(89092);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){if("string"==typeof t)return function(t){var n=document.querySelectorAll(t);if(0!==n.length){for(var r=[],o=0;o<n.length;o++)r.push(e(n[o]));return r}}(t);if(Array.isArray(t)){for(var n=[],u=0;u<t.length;u++)n.push(e(t[u]));return n}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return s=t,{element:c=document.createElement("canvas"),options:(0,o.default)(s),renderer:i.default.CanvasRenderer,afterRender:function(){s.setAttribute("src",c.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,o.default)(t),renderer:i.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,o.default)(t),renderer:i.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:i.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":r(t))&&!t.nodeName)return{element:t,renderer:i.default.ObjectRenderer};throw new a.InvalidElementException;var s,c}},11982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),0===e.search(/^[0-9\-\$\:\.\+\/]+$/)&&(e="A"+e+"A");var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push("0");return{text:this.text,data:e.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default);t.codabar=i},13780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(56351))&&r.__esModule?r:{default:r},a=n(52559),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),n));return r.bytes=e.split("").map((function(e){return e.charCodeAt(0)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.bytes,n=e.shift()-105,r=a.SET_BY_CODE[n];if(void 0===r)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&e.unshift(a.FNC1);var o=t.next(e,1,r);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(n)+o.result+t.getBar((o.checksum+n)%a.MODULO)+t.getBar(a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return"string"==typeof e&&(e="true"===e.toLowerCase()),e}}],[{key:"getBar",value:function(e){return a.BARS[e]?a.BARS[e].toString():""}},{key:"correctIndex",value:function(e,t){if(t===a.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===a.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:"next",value:function(e,n,r){if(!e.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(e[0]>=200){i=e.shift()-105;var u=a.SWAP[i];void 0!==u?o=t.next(e,n+1,u):(r!==a.SET_A&&r!==a.SET_B||i!==a.SHIFT||(e[0]=r===a.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),o=t.next(e,n+1,r))}else i=t.correctIndex(e,r),o=t.next(e,n+1,r);var s=i*n;return{result:t.getBar(i)+o.result,checksum:s+o.checksum}}}]),t}(i.default);t.default=u},14483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(7201)),o=i(n(56464));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={};for(var n in o.default)o.default.hasOwnProperty(n)&&(e.hasAttribute("jsbarcode-"+n.toLowerCase())&&(t[n]=e.getAttribute("jsbarcode-"+n.toLowerCase())),e.hasAttribute("data-"+n.toLowerCase())&&(t[n]=e.getAttribute("data-"+n.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),(0,r.default)(t)}},15294:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,i=s(n(1343)),a=s(n(23424)),u=s(n(39067));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}var d=i.default.version.split(/[.-]/);o="0"!==d[0]||"13"!==d[1]&&"12"!==d[1]?function(e){return e}:function(e){return e.getDOMNode()};var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,l(t).call(this,e))).renderElementRef=i.default.createRef(),n.update=n.update.bind(f(n)),n}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(u=[{key:"shouldComponentUpdate",value:function(e){var n=this;return Object.keys(t.propTypes).some((function(t){return n.props[t]!==e[t]}))}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=o(this.renderElementRef.current);try{new a.default(e,this.props.value,Object.assign({},this.props))}catch(e){window.console.error(e)}}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className;return"svg"===this.props.renderer?i.default.createElement("svg",{ref:this.renderElementRef,id:t,className:n}):"canvas"===this.props.renderer?i.default.createElement("canvas",{ref:this.renderElementRef,id:t,className:n}):"img"===this.props.renderer?i.default.createElement("img",{ref:this.renderElementRef,id:t,className:n}):void 0}}])&&c(n.prototype,u),t}(i.default.Component);h.propTypes={value:u.default.string.isRequired,renderer:u.default.string,format:u.default.string,width:u.default.number,height:u.default.number,displayValue:u.default.bool,fontOptions:u.default.string,font:u.default.string,textAlign:u.default.string,textPosition:u.default.string,textMargin:u.default.number,fontSize:u.default.number,background:u.default.string,lineColor:u.default.string,margin:u.default.number,marginTop:u.default.number,marginBottom:u.default.number,marginLeft:u.default.number,marginRight:u.default.number,id:u.default.string,className:u.default.string,ean128:u.default.bool},h.defaultProps={format:"CODE128",renderer:"svg",width:2,height:100,displayValue:!0,fontOptions:"",font:"monospace",textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,className:"",ean128:!1},e.exports=h},16223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.object=t,this.encodings=n,this.options=r}return n(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();t.default=r},17886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(66112))&&r.__esModule?r:{default:r},i=n(33539),a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod11)(e),n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);t.default=a},20596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(77177))&&r.__esModule?r:{default:r},a=n(70365),u="http://www.w3.org/2000/svg",s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return o(e,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var n=this.encodings[t],r=(0,i.default)(this.options,n.options),o=this.createGroup(e,r.marginTop,this.svg);this.setGroupOptions(o,r),this.drawSvgBarcode(o,r,n),this.drawSVGText(o,r,n),e+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,a.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,a.getTotalWidthOfEncodings)(this.encodings),t=(0,a.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(e,t,n){var r,o=n.data;r="top"==t.textPosition?t.fontSize+t.textMargin:0;for(var i=0,a=0,u=0;u<o.length;u++)a=u*t.width+n.barcodePadding,"1"===o[u]?i++:i>0&&(this.drawRect(a-t.width*i,r,t.width*i,t.height,e),i=0);i>0&&this.drawRect(a-t.width*(i-1),r,t.width*i,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var r,o,i=this.document.createElementNS(u,"text");t.displayValue&&(i.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),o="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==t.textAlign?(r=n.width-1,i.setAttribute("text-anchor","end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),e.appendChild(i))}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",u),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,n){var r=this.document.createElementNS(u,"g");return r.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,n,r,o){var i=this.document.createElementNS(u,"rect");return i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),e}();t.default=s},23424:(e,t,n)=>{"use strict";var r=p(n(79959)),o=p(n(77177)),i=p(n(61324)),a=p(n(45746)),u=p(n(11736)),s=p(n(7201)),c=p(n(44804)),l=n(89092),f=p(n(56464));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){},h=function(e,t,n){var r=new d;if(void 0===e)throw Error("No element to render on was provided.");return r._renderProperties=(0,u.default)(e),r._encodings=[],r._options=f.default,r._errorHandler=new c.default(r),void 0!==t&&((n=n||{}).format||(n.format=g()),r.options(n)[n.format](t,n).render()),r};for(var y in h.getModule=function(e){return r.default[e]},r.default)r.default.hasOwnProperty(y)&&b(r.default,y);function b(e,t){d.prototype[t]=d.prototype[t.toUpperCase()]=d.prototype[t.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall((function(){r.text=void 0===r.text?void 0:""+r.text;var a=(0,o.default)(i._options,r);a=(0,s.default)(a);var u=e[t],c=v(n,u,a);return i._encodings.push(c),i}))}}function v(e,t,n){var r=new t(e=""+e,n);if(!r.valid())throw new l.InvalidInputException(r.constructor.name,e);var a=r.encode();a=(0,i.default)(a);for(var u=0;u<a.length;u++)a[u].options=(0,o.default)(n,a[u].options);return a}function g(){return r.default.CODE128?"CODE128":Object.keys(r.default)[0]}function _(e,t,n){t=(0,i.default)(t);for(var r=0;r<t.length;r++)t[r].options=(0,o.default)(n,t[r].options),(0,a.default)(t[r].options);(0,a.default)(n),new(0,e.renderer)(e.element,t,n).render(),e.afterRender&&e.afterRender()}d.prototype.options=function(e){return this._options=(0,o.default)(this._options,e),this},d.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},d.prototype.init=function(){var e;if(this._renderProperties)for(var t in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){e=this._renderProperties[t];var n=(0,o.default)(this._options,e.options);"auto"==n.format&&(n.format=g()),this._errorHandler.wrapBarcodeCall((function(){var t=v(n.value,r.default[n.format.toUpperCase()],n);_(e,t,n)}))}},d.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)_(this._renderProperties[e],this._encodings,this._options);else _(this._renderProperties,this._encodings,this._options);return this},d.prototype._defaults=f.default,"undefined"!=typeof window&&(window.JsBarcode=h),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each((function(){n.push(this)})),h(n,e,t)}),e.exports=h},27629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e.toUpperCase(),n.mod43&&(e+=function(e){return a[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=c(e[n]);return t%43}(e))),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"encode",value:function(){for(var e=s("*"),t=0;t<this.data.length;t++)e+=s(this.data[t])+"0";return{data:e+=s("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],u=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function s(e){return function(e){return u[e].toString(2)}(c(e))}function c(e){return a.indexOf(e)}t.CODE39=i},29323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(13780))&&r.__esModule?r:{default:r},a=n(52559),u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.C_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return new RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=u},30723:function(e,t,n){var r,o;"undefined"!=typeof self&&self,e.exports=(r=n(1343),o=n(43144),function(){"use strict";var e={156:function(e){e.exports=r},111:function(e){e.exports=o},582:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return i},__asyncDelegator:function(){return j},__asyncGenerator:function(){return P},__asyncValues:function(){return x},__await:function(){return E},__awaiter:function(){return h},__classPrivateFieldGet:function(){return R},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return M},__createBinding:function(){return b},__decorate:function(){return u},__esDecorate:function(){return c},__exportStar:function(){return v},__extends:function(){return o},__generator:function(){return y},__importDefault:function(){return T},__importStar:function(){return A},__makeTemplateObject:function(){return S},__metadata:function(){return d},__param:function(){return s},__propKey:function(){return f},__read:function(){return _},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return p},__spread:function(){return m},__spreadArray:function(){return w},__spreadArrays:function(){return O},__values:function(){return g}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var u,s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?r.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,d=n.length-1;d>=0;d--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var b=(0,n[d])("accessor"===s?{get:f.get,set:f.set}:f[c],h);if("accessor"===s){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(u=a(b.get))&&(f.get=u),(u=a(b.set))&&(f.set=u),(u=a(b.init))&&o.unshift(u)}else(u=a(b))&&("field"===s?o.unshift(u):f[c]=u)}l&&Object.defineProperty(l,r.name,f),p=!0}function l(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function y(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}var b=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function O(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}function w(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function P(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof E?Promise.resolve(n.value.v).then(s,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function j(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:E(e[r](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&b(t,e,n);return C(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function k(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:o,__assign:i,__rest:a,__decorate:u,__param:s,__metadata:d,__awaiter:h,__generator:y,__createBinding:b,__exportStar:v,__values:g,__read:_,__spread:m,__spreadArrays:O,__spreadArray:w,__await:E,__asyncGenerator:P,__asyncDelegator:j,__asyncValues:x,__makeTemplateObject:S,__importStar:A,__importDefault:T,__classPrivateFieldGet:R,__classPrivateFieldSet:M,__classPrivateFieldIn:k}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.PrintContextConsumer=void 0;var t=n(582),r=n(156),o=n(111),a=Object.prototype.hasOwnProperty.call(r,"createContext"),u=Object.prototype.hasOwnProperty.call(r,"useMemo")&&Object.prototype.hasOwnProperty.call(r,"useCallback"),s=a?r.createContext({}):null;e.PrintContextConsumer=s?s.Consumer:function(){return null};var c={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1},l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.startPrint=function(e){var t=n.props,r=t.onAfterPrint,o=t.onPrintError,i=t.print,a=t.documentTitle;setTimeout((function(){var t,u;if(e.contentWindow)if(e.contentWindow.focus(),i)i(e).then((function(){return null==r?void 0:r()})).then((function(){return n.handleRemoveIframe()})).catch((function(e){o?o("print",e):n.logMessages(["An error was thrown by the specified `print` function"])}));else{if(e.contentWindow.print){var s=null!==(u=null===(t=e.contentDocument)||void 0===t?void 0:t.title)&&void 0!==u?u:"",c=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=s))}else n.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),n.handleRemoveIframe()}else n.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},n.triggerPrint=function(e){var t=n.props,r=t.onBeforePrint,o=t.onPrintError;if(r){var i=r();i&&"function"==typeof i.then?i.then((function(){n.startPrint(e)})).catch((function(e){o&&o("onBeforePrint",e)})):n.startPrint(e)}else n.startPrint(e)},n.handleClick=function(){var e=n.props,t=e.onBeforeGetContent,r=e.onPrintError;if(t){var o=t();o&&"function"==typeof o.then?o.then(n.handlePrint).catch((function(e){r&&r("onBeforeGetContent",e)})):n.handlePrint()}else n.handlePrint()},n.handlePrint=function(){var e=n.props,r=e.bodyClass,i=e.content,a=e.copyStyles,u=e.fonts,s=e.pageStyle,c=e.nonce,l=i();if(void 0!==l)if(null!==l){var f=document.createElement("iframe");f.width="".concat(document.documentElement.clientWidth,"px"),f.height="".concat(document.documentElement.clientHeight,"px"),f.style.position="absolute",f.style.top="-".concat(document.documentElement.clientHeight+100,"px"),f.style.left="-".concat(document.documentElement.clientWidth+100,"px"),f.id="printWindow",f.srcdoc="<!DOCTYPE html>";var p=(0,o.findDOMNode)(l);if(p){var d=p.cloneNode(!0),h=d instanceof Text,y=document.querySelectorAll("link[rel='stylesheet']"),b=h?[]:d.querySelectorAll("img"),v=h?[]:d.querySelectorAll("video"),g=u?u.length:0;n.numResourcesToLoad=y.length+b.length+v.length+g,n.resourcesLoaded=[],n.resourcesErrored=[];var _=function(e,r){n.resourcesLoaded.includes(e)?n.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(r?(n.logMessages(t.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],t.__read(r),!1)),n.resourcesErrored.push(e)):n.resourcesLoaded.push(e),n.resourcesLoaded.length+n.resourcesErrored.length===n.numResourcesToLoad&&n.triggerPrint(f))};f.onload=function(){var e,o,i,l;f.onload=null;var y=f.contentDocument||(null===(o=f.contentWindow)||void 0===o?void 0:o.document);if(y){y.body.appendChild(d),u&&((null===(i=f.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(l=f.contentWindow)||void 0===l?void 0:l.FontFace)?u.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});f.contentDocument.fonts.add(t),t.loaded.then((function(){_(t)})).catch((function(e){_(t,["Failed loading the font:",t,"Load error:",e])}))})):(u.forEach((function(e){return _(e)})),n.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var g="function"==typeof s?s():s;if("string"!=typeof g)n.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof g,'". Styles from `pageStyle` will not be applied.')]);else{var m=y.createElement("style");c&&(m.setAttribute("nonce",c),y.head.setAttribute("nonce",c)),m.appendChild(y.createTextNode(g)),y.head.appendChild(m)}if(r&&(e=y.body.classList).add.apply(e,t.__spreadArray([],t.__read(r.split(" ")),!1)),!h){for(var O=h?[]:p.querySelectorAll("canvas"),w=y.querySelectorAll("canvas"),E=0;E<O.length;++E){var P=O[E],j=w[E].getContext("2d");j&&j.drawImage(P,0,0)}var x=function(e){var t=b[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return _(t)},r.onerror=function(e,n,r,o,i){return _(t,["Error loading <img>",t,"Error",i])},r.src=n}else _(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(E=0;E<b.length;E++)x(E);var S=function(e){var t=v[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return _(t)},r.onerror=function(e,r,o,i,a){return _(t,["Error loading video poster",n,"for video",t,"Error:",a])},r.src=n}else t.readyState>=2?_(t):(t.onloadeddata=function(){return _(t)},t.onerror=function(e,n,r,o,i){return _(t,["Error loading video",t,"Error",i])},t.onstalled=function(){return _(t,["Loading video stalled, skipping",t])})};for(E=0;E<v.length;E++)S(E);var C="input",A=p.querySelectorAll(C),T=y.querySelectorAll(C);for(E=0;E<A.length;E++)T[E].value=A[E].value;var R="input[type=checkbox],input[type=radio]",M=p.querySelectorAll(R),k=y.querySelectorAll(R);for(E=0;E<M.length;E++)k[E].checked=M[E].checked;var L="select",I=p.querySelectorAll(L),D=y.querySelectorAll(L);for(E=0;E<I.length;E++)D[E].value=I[E].value}if(a)for(var G=document.querySelectorAll("style, link[rel='stylesheet']"),N=function(e,t){var r=G[e];if("style"===r.tagName.toLowerCase()){var o=y.createElement(r.tagName),i=r.sheet;if(i){var a="";try{for(var u=i.cssRules.length,s=0;s<u;++s)"string"==typeof i.cssRules[s].cssText&&(a+="".concat(i.cssRules[s].cssText,"\r\n"))}catch(e){n.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}o.setAttribute("id","react-to-print-".concat(e)),c&&o.setAttribute("nonce",c),o.appendChild(y.createTextNode(a)),y.head.appendChild(o)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))n.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),_(r);else{for(var l=y.createElement(r.tagName),f=(s=0,r.attributes.length);s<f;++s){var p=r.attributes[s];p&&l.setAttribute(p.nodeName,p.nodeValue||"")}l.onload=function(){return _(l)},l.onerror=function(e,t,n,r,o){return _(l,["Failed to load",l,"Error:",o])},c&&l.setAttribute("nonce",c),y.head.appendChild(l)}else n.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),_(r)},B=(E=0,G.length);E<B;++E)N(E)}0!==n.numResourcesToLoad&&a||n.triggerPrint(f)},n.handleRemoveIframe(!0),document.body.appendChild(f)}else n.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else n.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else n.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},n.handleRemoveIframe=function(e){var t=n.props.removeAfterPrint;if(e||t){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},n.logMessages=function(e,t){void 0===t&&(t="error"),n.props.suppressErrors||("error"===t?console.error(e):"warning"===t?console.warn(e):"debug"===t&&console.debug(e))},n}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return r.cloneElement(n(),{onClick:this.handleClick});if(!s)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var o={handlePrint:this.handleClick};return r.createElement(s.Provider,{value:o},t)},n.defaultProps=c,n}(r.Component);e.default=l,e.useReactToPrint=function(e){if(!u)return e.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var n=r.useMemo((function(){return new l(t.__assign(t.__assign({},c),e))}),[e]);return r.useCallback((function(){return n.handleClick()}),[n])}}(),i}())},32113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPCE=t.UPC=t.EAN2=t.EAN5=t.EAN8=t.EAN13=void 0;var r=c(n(53997)),o=c(n(32909)),i=c(n(35706)),a=c(n(55747)),u=c(n(55851)),s=c(n(37048));function c(e){return e&&e.__esModule?e:{default:e}}t.EAN13=r.default,t.EAN8=o.default,t.EAN5=i.default,t.EAN2=a.default,t.UPC=u.default,t.UPCE=s.default},32909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=(r=n(92857))&&r.__esModule?r:{default:r},u=function(e){return(10-e.substr(0,7).split("").map((function(e){return+e})).reduce((function(e,t,n){return n%2?e+t:e+3*t}),0)%10)%10},s=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{7}$/)&&(e+=u(e)),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===u(this.data)}},{key:"leftText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var e=this.data.substr(0,4);return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,"LLLL")}},{key:"rightText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var e=this.data.substr(4,4);return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRR")}}]),t}(a.default);t.default=s},33539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=2*r%10+Math.floor(2*r/10)}return(10-t%10)%10},t.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var o=parseInt(e[e.length-1-r]);t+=n[r%n.length]*o}return(11-t%11)%11}},34212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(13780)),o=i(n(84499));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,o.default)(e),n));else r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);t.default=u},35097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81912);t.default=function(e,t,n){var o=e.split("").map((function(e,n){return r.BINARIES[t[n]]})).map((function(t,n){return t?t[e[n]]:""}));if(n){var i=e.length-1;o=o.map((function(e,t){return t<i?e+n:e}))}return o.join("")}},35706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(81912),i=a(n(35097));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var e,t=o.EAN5_STRUCTURE[(e=this.data,e.split("").map((function(e){return+e})).reduce((function(e,t,n){return n%2?e+9*t:e+3*t}),0)%10)];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),t}(a(n(56351)).default);t.default=u},37048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(35097)),i=u(n(56351)),a=n(55851);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],l=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(r.isValid=!1,-1!==e.search(/^[0-9]{6}$/))r.middleDigits=e,r.upcA=p(e,"0"),r.text=n.text||""+r.upcA[0]+e+r.upcA[r.upcA.length-1],r.isValid=!0;else{if(-1===e.search(/^[01][0-9]{7}$/))return s(r);if(r.middleDigits=e.substring(1,e.length-1),r.upcA=p(r.middleDigits,e[0]),r.upcA[r.upcA.length-1]!==e[e.length-1])return s(r);r.isValid=!0}return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),{data:e+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],n=l[parseInt(t)][parseInt(e)];return(0,o.default)(this.middleDigits,n)}}]),t}(i.default);function p(e,t){for(var n=parseInt(e[e.length-1]),r=c[n],o="",i=0,u=0;u<r.length;u++){var s=r[u];o+="X"===s?e[i++]:s}return(o=""+t+o)+(0,a.checksum)(o)}t.default=f},40220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(77177))&&r.__esModule?r:{default:r},a=n(70365),u=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t,this.encodings=n,this.options=r}return o(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,i.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,a.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,a.getTotalWidthOfEncodings)(this.encodings),n=(0,a.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var n,r=this.canvas.getContext("2d"),o=t.data;n="top"==e.textPosition?e.marginTop+e.fontSize+e.textMargin:e.marginTop,r.fillStyle=e.lineColor;for(var i=0;i<o.length;i++){var a=i*e.width+t.barcodePadding;"1"===o[i]?r.fillRect(a,n,e.width,e.height):o[i]&&r.fillRect(a,n,e.width,e.height*o[i])}}},{key:"drawCanvasText",value:function(e,t){var n,r,o=this.canvas.getContext("2d"),i=e.fontOptions+" "+e.fontSize+"px "+e.font;e.displayValue&&(r="top"==e.textPosition?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,o.font=i,"left"==e.textAlign||t.barcodePadding>0?(n=0,o.textAlign="left"):"right"==e.textAlign?(n=t.width-1,o.textAlign="right"):(n=t.width/2,o.textAlign="center"),o.fillText(t.text,n,r))}},{key:"moveCanvasDrawing",value:function(e){this.canvas.getContext("2d").translate(e.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),e}();t.default=u},44157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(66112))&&r.__esModule?r:{default:r},i=n(33539),a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod10)(e),n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);t.default=a},44804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t}return n(e,[{key:"handleCatch",value:function(e){if("InvalidInputException"!==e.name)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),e}();t.default=r},45746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}},46014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE128C=t.CODE128B=t.CODE128A=t.CODE128=void 0;var r=u(n(34212)),o=u(n(72461)),i=u(n(47876)),a=u(n(29323));function u(e){return e&&e.__esModule?e:{default:e}}t.CODE128=r.default,t.CODE128A=o.default,t.CODE128B=i.default,t.CODE128C=a.default},47876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(13780))&&r.__esModule?r:{default:r},a=n(52559),u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.B_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return new RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=u},48213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(54620))&&r.__esModule?r:{default:r},a=function(e){var t=e.substr(0,13).split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t,n){return e+t*(3-n%2*2)}),0);return 10*Math.ceil(t/10)-t},u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{13}$/)&&(e+=a(e)),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===a(this.data)}}]),t}(i.default);t.default=u},52467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(66112))&&r.__esModule?r:{default:r},i=n(33539),a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,i.mod11)(e),e+=(0,i.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);t.default=a},52559:(e,t)=>{"use strict";var n;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=t.SET_A=0,i=t.SET_B=1,a=t.SET_C=2,u=(t.SHIFT=98,t.START_A=103),s=t.START_B=104,c=t.START_C=105;t.MODULO=103,t.STOP=106,t.FNC1=207,t.SET_BY_CODE=(r(n={},u,o),r(n,s,i),r(n,c,a),n),t.SWAP={101:o,100:i,99:a},t.A_START_CHAR=String.fromCharCode(208),t.B_START_CHAR=String.fromCharCode(209),t.C_START_CHAR=String.fromCharCode(210),t.A_CHARS="[\0-_È-Ï]",t.B_CHARS="[ -È-Ï]",t.C_CHARS="(Ï*[0-9]{2}Ï*)",t.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},53997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(81912),u=(r=n(92857))&&r.__esModule?r:{default:r},s=function(e){return(10-e.substr(0,12).split("").map((function(e){return+e})).reduce((function(e,t,n){return n%2?e+3*t:e+t}),0)%10)%10},c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{12}$/)&&(e+=s(e));var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastChar=n.lastChar,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),n=a.EAN13_STRUCTURE[this.data[0]];return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,n)}},{key:"rightText",value:function(){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),t}(u.default);t.default=c},54594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(40220)),o=a(n(20596)),i=a(n(16223));function a(e){return e&&e.__esModule?e:{default:e}}t.default={CanvasRenderer:r.default,SVGRenderer:o.default,ObjectRenderer:i.default}},54620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(88452),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var e=this,t=this.data.match(/.{2}/g).map((function(t){return e.encodePair(t)})).join("");return{data:i.START_BIN+t+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var t=i.BINARIES[e[1]];return i.BINARIES[e[0]].split("").map((function(e,n){return("1"===e?"111":"1")+("1"===t[n]?"000":"0")})).join("")}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default);t.default=a},55747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(81912),i=a(n(35097));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),t}(a(n(56351)).default);t.default=u},55851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.checksum=u;var o=i(n(35097));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{11}$/)&&(e+=u(e));var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==u(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),{data:e+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),t}(i(n(56351)).default);function u(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}t.default=a},56351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.text=n.text||t,this.options=n}},56464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}},60461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var r=i(n(54620)),o=i(n(48213));function i(e){return e&&e.__esModule?e:{default:e}}t.ITF=r.default,t.ITF14=o.default},61324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)e(n[r]);else n.text=n.text||"",n.data=n.data||"",t.push(n)}(e),t}},66112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"encode",value:function(){for(var e="110",t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=a(n,4-n.length);for(var r=0;r<n.length;r++)e+="0"==n[r]?"100":"110"}return{data:e+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default);function a(e,t){for(var n=0;n<t;n++)e="0"+e;return e}t.default=i},70365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalWidthOfEncodings=t.calculateEncodingAttributes=t.getBarcodePadding=t.getEncodingHeight=t.getMaximumHeightOfEncodings=void 0;var r,o=(r=n(77177))&&r.__esModule?r:{default:r};function i(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function a(e,t,n){if(n.displayValue&&t<e){if("center"==n.textAlign)return Math.floor((e-t)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(e-t)}return 0}function u(e,t,n){var r;if(n)r=n;else{if("undefined"==typeof document)return 0;r=document.createElement("canvas").getContext("2d")}r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var o=r.measureText(e);return o?o.width:0}t.getMaximumHeightOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t},t.getEncodingHeight=i,t.getBarcodePadding=a,t.calculateEncodingAttributes=function(e,t,n){for(var r=0;r<e.length;r++){var s,c=e[r],l=(0,o.default)(t,c.options);s=l.displayValue?u(c.text,l,n):0;var f=c.data.length*l.width;c.width=Math.ceil(Math.max(s,f)),c.height=i(c,l),c.barcodePadding=a(s,f,l)}},t.getTotalWidthOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t}},72461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=n(13780))&&r.__esModule?r:{default:r},a=n(52559),u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.A_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return new RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=u},77177:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return n({},e,t)}},79927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default);t.GenericBarcode=i},79959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27629),o=n(46014),i=n(32113),a=n(60461),u=n(2519),s=n(92108),c=n(11982),l=n(79927);t.default={CODE39:r.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:u.MSI,MSI10:u.MSI10,MSI11:u.MSI11,MSI1010:u.MSI1010,MSI1110:u.MSI1110,pharmacode:s.pharmacode,codabar:c.codabar,GenericBarcode:l.GenericBarcode}},81912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIDE_BIN="101",t.MIDDLE_BIN="01010",t.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},t.EAN2_STRUCTURE=["LL","LG","GL","GG"],t.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],t.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},84499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(52559),o=function(e){return e.match(new RegExp("^"+r.A_CHARS+"*"))[0].length},i=function(e){return e.match(new RegExp("^"+r.B_CHARS+"*"))[0].length},a=function(e){return e.match(new RegExp("^"+r.C_CHARS+"*"))[0]};function u(e,t){var n=t?r.A_CHARS:r.B_CHARS,o=e.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+s(e.substring(o[1].length));var i=e.match(new RegExp("^"+n+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+u(e.substring(i.length),!t)}function s(e){var t=a(e),n=t.length;if(n===e.length)return e;e=e.substring(n);var r=o(e)>=i(e);return t+String.fromCharCode(r?206:205)+u(e,r)}t.default=function(e){var t=void 0;if(a(e).length>=2)t=r.C_START_CHAR+s(e);else{var n=o(e)>i(e);t=(n?r.A_START_CHAR:r.B_START_CHAR)+u(e,n)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,t){return String.fromCharCode(203)+t}))}},85864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(66112))&&r.__esModule?r:{default:r},i=n(33539),a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,i.mod10)(e),e+=(0,i.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);t.default=a},88452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},89092:(e,t)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,o){n(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return o(e,Error),e}(),a=function(){function e(){n(this,e);var t=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return o(e,Error),e}(),u=function(){function e(){n(this,e);var t=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return o(e,Error),e}();t.InvalidInputException=i,t.InvalidElementException=a,t.NoElementException=u},92108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.number=parseInt(e,10),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"encode",value:function(){for(var e=this.number,t="";!isNaN(e)&&0!=e;)e%2==0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(((r=n(56351))&&r.__esModule?r:{default:r}).default);t.pharmacode=i},92857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(81912),i=a(n(35097));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,i.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,i.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:o.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:o.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:o.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),t}(a(n(56351)).default);t.default=u}}]);
|