@scandit/web-datacapture-core 7.4.1 → 7.5.0-beta.2

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.
Files changed (150) hide show
  1. package/build/electron/common.cjs +1 -1
  2. package/build/electron/constants.cjs +1 -1
  3. package/build/electron/main.cjs +1 -1
  4. package/build/electron/preload.cjs +1 -1
  5. package/build/js/{Camera-wG9iakev.d.ts → Camera-BoUtNCzS.d.ts} +48 -2
  6. package/build/js/Camera.d.ts +4 -1
  7. package/build/js/Camera.js +1 -1
  8. package/build/js/CameraAccess.d.ts +4 -1
  9. package/build/js/CameraRelated.d.ts +4 -1
  10. package/build/js/DataCaptureContext.d.ts +4 -1
  11. package/build/js/DataCaptureContext.js +1 -1
  12. package/build/js/DataCaptureContextRelated.d.ts +5 -2
  13. package/build/js/DataCaptureVersion.js +1 -1
  14. package/build/js/DataCaptureView.d.ts +4 -1
  15. package/build/js/DataCaptureView.js +1 -1
  16. package/build/js/Defaults.d.ts +4 -1
  17. package/build/js/FrameData.d.ts +5 -2
  18. package/build/js/ImageFrameSource.d.ts +4 -1
  19. package/build/js/NotificationPresenter/NotificationBuilder.d.ts +25 -0
  20. package/build/js/NotificationPresenter/NotificationBuilder.js +1 -0
  21. package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +24 -0
  22. package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -0
  23. package/build/js/NotificationPresenter/NotificationPresenter.d.ts +14 -0
  24. package/build/js/NotificationPresenter/NotificationPresenter.js +0 -0
  25. package/build/js/NotificationPresenter/NotificationStyle.d.ts +9 -0
  26. package/build/js/NotificationPresenter/NotificationStyle.js +1 -0
  27. package/build/js/NotificationPresenter/index.d.ts +25 -0
  28. package/build/js/NotificationPresenter/index.js +1 -0
  29. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +32 -0
  30. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -0
  31. package/build/js/NotificationPresenter/private/presets.d.ts +31 -0
  32. package/build/js/NotificationPresenter/private/presets.js +1 -0
  33. package/build/js/ScanditIcon.js +1 -1
  34. package/build/js/ScanditIconBuilder.d.ts +3 -3
  35. package/build/js/ScanditIconBuilder.js +1 -1
  36. package/build/js/SingleImageUploader.d.ts +4 -1
  37. package/build/js/chunks/chunk-3MEGNPVU.js +1 -0
  38. package/build/js/chunks/{chunk-GDUWHYYI.js → chunk-3RIR7ALE.js} +1 -1
  39. package/build/js/chunks/chunk-43NA46NY.js +11 -0
  40. package/build/js/chunks/chunk-6YZS76QW.js +1 -0
  41. package/build/js/chunks/{chunk-NA6AZIR5.js → chunk-72A5262S.js} +1 -1
  42. package/build/js/chunks/chunk-7XGCH3B3.js +1 -0
  43. package/build/js/chunks/{chunk-THEE4TYK.js → chunk-CMG3PSOW.js} +1 -1
  44. package/build/js/chunks/chunk-EKY4M37S.js +5 -0
  45. package/build/js/chunks/{chunk-ZF7CDMAC.js → chunk-FFTRSHP6.js} +1 -1
  46. package/build/js/chunks/{chunk-RWDRTV7B.js → chunk-FPCLZS52.js} +1 -1
  47. package/build/js/chunks/chunk-GGMX65YP.js +1 -0
  48. package/build/js/chunks/{chunk-XLFQMCQP.js → chunk-HNUWDILZ.js} +1 -1
  49. package/build/js/chunks/chunk-J3PS3NRY.js +21 -0
  50. package/build/js/chunks/chunk-KOL5TPI5.js +1 -0
  51. package/build/js/chunks/chunk-KUVVZN66.js +1 -0
  52. package/build/js/chunks/{chunk-2T36DQ52.js → chunk-L3SHJKNC.js} +1 -1
  53. package/build/js/chunks/chunk-NPIPIS7X.js +1 -0
  54. package/build/js/chunks/{chunk-Q24GE5CE.js → chunk-OFNRGDFQ.js} +1 -1
  55. package/build/js/chunks/{chunk-FKIR44OY.js → chunk-OKRDW7LX.js} +1 -1
  56. package/build/js/chunks/{chunk-MDSBSLWV.js → chunk-PFC2HW6V.js} +1 -1
  57. package/build/js/chunks/{chunk-OH5WXZBN.js → chunk-RMKJUHZW.js} +1 -1
  58. package/build/js/chunks/chunk-RXT3JWWR.js +1 -0
  59. package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
  60. package/build/js/chunks/{chunk-7B2VPGLP.js → chunk-TCJPGGHY.js} +1 -1
  61. package/build/js/chunks/{chunk-QQXPUJCE.js → chunk-UGUDXT2N.js} +1 -1
  62. package/build/js/chunks/{chunk-I2LMKSHH.js → chunk-UUGROS73.js} +1 -1
  63. package/build/js/chunks/chunk-X5RXFCPZ.js +1 -0
  64. package/build/js/index.d.ts +6 -2
  65. package/build/js/index.js +3 -3
  66. package/build/js/private/CameraAccess.d.ts +4 -1
  67. package/build/js/private/CameraManager.d.ts +4 -1
  68. package/build/js/private/CameraManager.js +1 -1
  69. package/build/js/private/CanvasDrawerWithMetrics.d.ts +6 -3
  70. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +7 -4
  71. package/build/js/private/DataCaptureContextRelated.d.ts +4 -1
  72. package/build/js/private/FrameReaders/FrameReader.d.ts +4 -1
  73. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -1
  74. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -1
  75. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  76. package/build/js/private/FrameReaders/index.d.ts +4 -1
  77. package/build/js/private/FrameReaders/index.js +1 -1
  78. package/build/js/private/NormalizedConfigureOptions.d.ts +5 -1
  79. package/build/js/private/ViewControls+related.js +1 -1
  80. package/build/js/private/ViewControls_related.d.ts +5 -1
  81. package/build/js/private/ViewsRegistry.d.ts +4 -1
  82. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  83. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
  84. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
  85. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
  86. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
  87. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  88. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  89. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  90. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  91. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  92. package/build/js/private/ui/atoms/Card.js +1 -1
  93. package/build/js/private/ui/atoms/CardList.js +1 -1
  94. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  95. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
  96. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
  97. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
  98. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
  99. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  100. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  101. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  102. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  103. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  104. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  105. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  106. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  107. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
  108. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  109. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  110. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  111. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  112. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  113. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  114. package/build/js/private/ui/atoms/ShutterButton.d.ts +7 -4
  115. package/build/js/private/ui/atoms/ShutterButton.js +6 -22
  116. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  117. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
  118. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  119. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  120. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  121. package/build/js/private/ui/atoms/Toast.d.ts +9 -3
  122. package/build/js/private/ui/atoms/Toast.js +1 -1
  123. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  124. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  125. package/build/js/private/ui/molecules/HintPresenter.d.ts +6 -43
  126. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  127. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  128. package/build/js/private/utils/index.js +1 -1
  129. package/build/js/private/utils/quadrilateralUtils.d.ts +2 -1
  130. package/build/js/private/utils/quadrilateralUtils.js +1 -1
  131. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +17 -0
  132. package/build/js/sdk.d.ts +6 -3
  133. package/build/js/worker/WorkerMain.d.ts +4 -1
  134. package/build/js/worker/WorkerMain.js +1 -1
  135. package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -1
  136. package/build/js/worker/coreCapture.inlineWorker.js +1 -1
  137. package/build/js/worker/dataCaptureEngine.d.ts +5 -2
  138. package/build/js/worker/dataCaptureEngine.js +1 -1
  139. package/build/js/worker/dataCaptureLoader.d.ts +5 -2
  140. package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -1
  141. package/build/js/worker/index.d.ts +4 -1
  142. package/build/js/worker/index.js +1 -1
  143. package/package.json +11 -12
  144. package/build/js/chunks/chunk-NBFWXBYG.js +0 -1
  145. package/build/js/chunks/chunk-OWJGO7ET.js +0 -1
  146. package/build/js/chunks/chunk-P3OK36HL.js +0 -21
  147. package/build/js/chunks/chunk-Q2O4RKVG.js +0 -1
  148. package/build/js/chunks/chunk-QYACFUV3.js +0 -5
  149. package/build/js/chunks/chunk-S2VISKOY.js +0 -1
  150. package/build/js/chunks/chunk-TUQETICB.js +0 -11
@@ -1 +1 @@
1
- var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,n,c,l)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of o(n))p.call(e,a)||a===c||t(e,a,{get:()=>n[a],enumerable:!(l=r(n,a))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));
1
+ "use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,c,n,l)=>{if(c&&"object"==typeof c||"function"==typeof c)for(let u of o(c))p.call(e,u)||u===n||t(e,u,{get:()=>c[u],enumerable:!(l=r(c,u))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));
@@ -1 +1 @@
1
- var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})})(p,{CHN:()=>y,Id:()=>i,K:()=>l}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of o(p))n.call(e,i)||i===a||r(e,i,{get:()=>p[i],enumerable:!(l=t(p,i))||l.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=String.fromCodePoint,l=a.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=a.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),y=a.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);
1
+ "use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,p={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(p,{CHN:()=>y,Id:()=>i,K:()=>l}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of o(p))n.call(e,i)||i===a||t(e,i,{get:()=>p[i],enumerable:!(l=r(p,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=String.fromCodePoint,l=a.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=a.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),y=a.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);
@@ -1 +1 @@
1
- var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
1
+ "use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
@@ -1 +1 @@
1
- var e,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let y of t(p))o.call(e,y)||y===a||r(e,y,{get:()=>p[y],enumerable:!(l=n(p,y))||l.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),l=String.fromCodePoint,y=l.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=l.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=l.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(y,Object.freeze(function(e){return{getAppInfo:async()=>new Promise(((r,n)=>{e.once(c,((e,t)=>{d(t)&&n(t.payload.error),"get-app-info"===t.type&&r(t.payload)})),e.send(c,{type:"get-app-info",senderId:i})})),getKey:async r=>new Promise(((n,t)=>{e.once(c,((e,r)=>{d(r)&&t(r.payload.error),"get-license-key"===r.type&&n(r.payload)})),e.send(c,{type:"get-license-key",senderId:i,payload:r})}))}}(e)))}
1
+ "use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise(((r,t)=>{e.once(c,((e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)})),e.send(c,{type:"get-app-info",senderId:y})})),getKey:async r=>new Promise(((t,n)=>{e.once(c,((e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)})),e.send(c,{type:"get-license-key",senderId:y,payload:r})}))}}(e)))}
@@ -3,9 +3,11 @@ import { Serializable } from './private/Serializable.js';
3
3
  import { MarginsWithUnitJSON, PointWithUnitJSON, Anchor, MarginsWithUnit, PointWithUnit, Size, Orientation, Point, Quadrilateral, JSONType, PointJSON, RectJSON, Rect } from './Common.js';
4
4
  import { WatermarkStack } from './private/FrameReaders/WatermarkStack.js';
5
5
  import { Optional, MethodSignature } from './tsHelper.js';
6
- import './ScanditIcon.js';
6
+ import { ScanditIcon } from './ScanditIcon.js';
7
+ import { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
7
8
  import { DataCaptureContextSettingsJSON, DataCaptureContextSettings } from './DataCaptureContextSettings.js';
8
9
  import { LogoStyle, FocusGestureJSON, ZoomGestureJSON, FocusGesture, ZoomGesture } from './DataCaptureViewPlusRelated.js';
10
+ import { NotificationPresenter } from './NotificationPresenter/NotificationPresenter.js';
9
11
  import { Control } from './ViewControls.js';
10
12
  import { DidTapCustomLocationsViewListener, StateToRender, StateToRenderDomView } from './private/CustomLocationsView.js';
11
13
  import { nativeHandle } from './private/nativeHandle.js';
@@ -400,6 +402,9 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
400
402
  private onBeforeShowToastsHandler;
401
403
  private onWorkerMessageHandler;
402
404
  private localizationSubscription?;
405
+ private htmlElementDidChangeHandler;
406
+ private htmlElementDisconnectedHandler;
407
+ private notificationPresenter;
403
408
  constructor();
404
409
  get scanAreaMargins(): MarginsWithUnit;
405
410
  set scanAreaMargins(margins: MarginsWithUnit);
@@ -447,6 +452,7 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
447
452
  protected viewAnchorPositionsForFrameAnchorPositions(anchorPositions: AnchorPositions): AnchorPositions;
448
453
  protected setDidTapCustomLocationsViewListener(didTapViewListener: DidTapCustomLocationsViewListener): void;
449
454
  protected renderCustomLocationsView(state: StateToRender | StateToRenderDomView): void;
455
+ getNotificationPresenter(): NotificationPresenter;
450
456
  private removeStyles;
451
457
  private onHintPresenterUpdate;
452
458
  private clearHtmlElementContent;
@@ -1330,6 +1336,46 @@ type PrivateLoadableFrameData = Omit<FrameData, "getData" | "toBlob"> & {
1330
1336
  */
1331
1337
  declare function convertToPublicFrameData(loadableFrameData: PrivateLoadableFrameData, context: DataCaptureContext$1): FrameData;
1332
1338
 
1339
+ declare enum HintPresenterEvents {
1340
+ Update = "hintpresenterupdate"
1341
+ }
1342
+ declare class HintPresenter extends ScanditHTMLElement {
1343
+ static readonly tag: "scandit-hints";
1344
+ private intervalId;
1345
+ private root;
1346
+ private _viewFinderRect;
1347
+ private onDidToastHideHandler;
1348
+ private orientationObserver;
1349
+ private onOrientationChangeHandler;
1350
+ constructor();
1351
+ private static createStyleElement;
1352
+ static register(): void;
1353
+ static create(): HintPresenter;
1354
+ connectedCallback(): void;
1355
+ disconnectedCallback(): void;
1356
+ setViewFinderRect(rect: Rect | null): void;
1357
+ handleMessage(message: DataCaptureCallbackMessage): void;
1358
+ private setHintStyleToToast;
1359
+ private onDidToastHide;
1360
+ showToast(toast: GenericHint): Promise<void>;
1361
+ showToastWithCustomIcon(hintStyle: GenericHint, icon: ScanditIcon): Promise<void>;
1362
+ hideToast(hintStyle: GenericHint): Promise<void>;
1363
+ private showGuidance;
1364
+ private hideGuidance;
1365
+ private startUpdateTimer;
1366
+ private stopUpdateTimer;
1367
+ private idFromHint;
1368
+ private onOrientationChange;
1369
+ }
1370
+ declare global {
1371
+ interface HTMLElementTagNameMap {
1372
+ [HintPresenter.tag]: HintPresenter;
1373
+ }
1374
+ interface HTMLElementEventMap {
1375
+ [HintPresenterEvents.Update]: CustomEvent<void>;
1376
+ }
1377
+ }
1378
+
1333
1379
  interface LoadLibraryParameters {
1334
1380
  libraryLocation: string;
1335
1381
  locationPath: string;
@@ -1788,4 +1834,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
1788
1834
  private isZoomAvailable;
1789
1835
  }
1790
1836
 
1791
- export { type AugmentedWorker as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type NativeDataCaptureMode as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T, type PerformanceMetrics as U, VideoResolution as V, DataCaptureEngine as W, type Module as X, type DataCaptureCallbackMessage as Y, type GenericHint as Z, type AnyDataCaptureActionMessage as _, type FrameSource as a, HintWidth as a$, type ModuleHandler as a0, type DataCaptureActionMessageKey as a1, type EngineWorkerResponse as a2, type ExtractCentaurusLicenseResponse as a3, type RequestFrameDataResponse as a4, type IsFeatureSupportedResponse as a5, type GetViewfinderInfo as a6, type GetOpenSourceSoftwareLicenseInfoResponse as a7, type WorkerResponse as a8, type LoadLibraryDataCaptureAction as a9, type DidTapTrackedBarcode as aA, type OnFrameProcessingStartedMessage as aB, type OnFrameProcessingFinishedMessage as aC, type OnFrameSkippedMessage as aD, type ShowToastMessage as aE, type HideToastMessage as aF, type ShowGuidanceMessage as aG, type HideGuidanceMessage as aH, type StartUpdateTimerMessage as aI, type StopUpdateTimerMessage as aJ, type PayloadForCommand as aK, type DataCaptureWorker as aL, type EmscriptenClassHandle as aM, type DataCaptureContext as aN, type DataCaptureImageBufferFrameSource as aO, type GestureListener as aP, type GestureRecognizer as aQ, type DataCaptureView as aR, type JSONParseable as aS, type DataCaptureContextDeserializerResult as aT, type DataCaptureContextDeserializer as aU, type CaptureModeDeserializerInstance as aV, type ModuleMirrorAxis as aW, type Vector as aX, type WasmFrameData as aY, HintFont as aZ, HintTextAlignment as a_, type CreateContextDataCaptureAction as aa, type SetFrameSourceDataCaptureAction as ab, type ProcessFrameDataCaptureAction as ac, type RequestFrameDataDataCaptureAction as ad, type DeleteFrameDataDataCaptureAction as ae, type VisibilityChangeAction as af, type IsFeatureSupportedAction as ag, type UpdateContextDataCaptureAction as ah, type DisposeDataCaptureAction as ai, type FlushAnalyticsDataCaptureAction as aj, type ReportCameraPropertiesDataCaptureAction as ak, type SetLogLevelDataCaptureAction as al, type ExtractCentaurusLicenseDataCaptureAction as am, type OnTapAction as an, type HintPresenterV2updateAction as ao, type GetViewfinderInfoAction as ap, type GetOpenSourceSoftwareLicenseInfoAction as aq, type AddNativeOverlayAction as ar, type RemoveNativeOverlayAction as as, type DataCaptureCallbackMessageKeys as at, type SuccessFeedbackWorkerMessage as au, type ShowHintWorkerMessage as av, type UpdateHintWorkerMessage as aw, type IsFeatureSupportedMessage as ax, type HideHintWorkerMessage as ay, type PerformanceMetricsReportMessage as az, FrameSourceState as b, HintHeight as b0, HintCornerStyle as b1, HintIcon as b2, HintAnchor as b3, type HintStyle as b4, GuidanceHintAnchor as b5, GuidanceHintStyle as b6, type GuidanceHint as b7, ToastHintStyle as b8, type ToastHint as b9, type CameraManagerEventParameters as bA, CameraManager as bB, LicensedFeature as ba, type HintPresenterV2 as bb, type PlatformHintPresenter as bc, type LoadLibraryParameters as bd, type CreateContextParameters as be, type UpdateContextParameters as bf, type SetFrameSourceParameters as bg, type ProcessFrameParameters as bh, type ReportCameraPropertiesParameters as bi, type WorkerFunctions as bj, FrameReaderAbstract as bk, ColorType as bl, type PoolCapacityOptions as bm, type FrameCapture as bn, FrameReader as bo, CameraPosition$1 as bp, CameraResolutionConstraint$1 as bq, AspectRatio as br, type DeviceCamera$1 as bs, CameraAccess$1 as bt, MeteringMode as bu, CameraResolutionConstraint as bv, type ExtendedMediaTrackCapabilities as bw, type ExtendedMediaTrackConstraintSet as bx, type GUI as by, CameraManagerEvent as bz, type FrameSourceListener as c, type FrameSourceJSON as d, type CameraJSON as e, type VideoFrameResolution as f, Camera as g, CameraAccess as h, type DeviceCamera as i, type CameraSettingsJSONBase as j, type CameraSettingsFromJSON as k, type CameraSettingsJSON as l, isCameraFrameSource as m, CameraSettings as n, type Change as o, type PrivateDataCaptureMode as p, type DataCaptureMode as q, type DataCaptureModeJSON as r, type PrivateDataCaptureComponent as s, type DataCaptureComponentJSON as t, type DataCaptureComponent as u, type PrivateDataCaptureContextOptions as v, type PrivateDataCaptureContext as w, type DataCaptureContextCreationOptions as x, type DataCaptureContextJSON as y, type PrivateFrameHandlerResponse as z };
1837
+ export { type AugmentedWorker as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type NativeDataCaptureMode as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T, HintPresenter as U, VideoResolution as V, type PerformanceMetrics as W, DataCaptureEngine as X, type Module as Y, type GenericHint as Z, type AnyDataCaptureActionMessage as _, type FrameSource as a, HintTextAlignment as a$, type ModuleHandler as a0, type DataCaptureCallbackMessage as a1, type DataCaptureActionMessageKey as a2, type EngineWorkerResponse as a3, type ExtractCentaurusLicenseResponse as a4, type RequestFrameDataResponse as a5, type IsFeatureSupportedResponse as a6, type GetViewfinderInfo as a7, type GetOpenSourceSoftwareLicenseInfoResponse as a8, type WorkerResponse as a9, type PerformanceMetricsReportMessage as aA, type DidTapTrackedBarcode as aB, type OnFrameProcessingStartedMessage as aC, type OnFrameProcessingFinishedMessage as aD, type OnFrameSkippedMessage as aE, type ShowToastMessage as aF, type HideToastMessage as aG, type ShowGuidanceMessage as aH, type HideGuidanceMessage as aI, type StartUpdateTimerMessage as aJ, type StopUpdateTimerMessage as aK, type PayloadForCommand as aL, type DataCaptureWorker as aM, type EmscriptenClassHandle as aN, type DataCaptureContext as aO, type DataCaptureImageBufferFrameSource as aP, type GestureListener as aQ, type GestureRecognizer as aR, type DataCaptureView as aS, type JSONParseable as aT, type DataCaptureContextDeserializerResult as aU, type DataCaptureContextDeserializer as aV, type CaptureModeDeserializerInstance as aW, type ModuleMirrorAxis as aX, type Vector as aY, type WasmFrameData as aZ, HintFont as a_, type LoadLibraryDataCaptureAction as aa, type CreateContextDataCaptureAction as ab, type SetFrameSourceDataCaptureAction as ac, type ProcessFrameDataCaptureAction as ad, type RequestFrameDataDataCaptureAction as ae, type DeleteFrameDataDataCaptureAction as af, type VisibilityChangeAction as ag, type IsFeatureSupportedAction as ah, type UpdateContextDataCaptureAction as ai, type DisposeDataCaptureAction as aj, type FlushAnalyticsDataCaptureAction as ak, type ReportCameraPropertiesDataCaptureAction as al, type SetLogLevelDataCaptureAction as am, type ExtractCentaurusLicenseDataCaptureAction as an, type OnTapAction as ao, type HintPresenterV2updateAction as ap, type GetViewfinderInfoAction as aq, type GetOpenSourceSoftwareLicenseInfoAction as ar, type AddNativeOverlayAction as as, type RemoveNativeOverlayAction as at, type DataCaptureCallbackMessageKeys as au, type SuccessFeedbackWorkerMessage as av, type ShowHintWorkerMessage as aw, type UpdateHintWorkerMessage as ax, type IsFeatureSupportedMessage as ay, type HideHintWorkerMessage as az, FrameSourceState as b, HintWidth as b0, HintHeight as b1, HintCornerStyle as b2, HintIcon as b3, HintAnchor as b4, type HintStyle as b5, GuidanceHintAnchor as b6, GuidanceHintStyle as b7, type GuidanceHint as b8, ToastHintStyle as b9, type GUI as bA, CameraManagerEvent as bB, type CameraManagerEventParameters as bC, CameraManager as bD, type ToastHint as ba, LicensedFeature as bb, type HintPresenterV2 as bc, type PlatformHintPresenter as bd, type LoadLibraryParameters as be, type CreateContextParameters as bf, type UpdateContextParameters as bg, type SetFrameSourceParameters as bh, type ProcessFrameParameters as bi, type ReportCameraPropertiesParameters as bj, type WorkerFunctions as bk, FrameReaderAbstract as bl, ColorType as bm, type PoolCapacityOptions as bn, type FrameCapture as bo, FrameReader as bp, CameraPosition$1 as bq, CameraResolutionConstraint$1 as br, AspectRatio as bs, type DeviceCamera$1 as bt, CameraAccess$1 as bu, HintPresenterEvents as bv, MeteringMode as bw, CameraResolutionConstraint as bx, type ExtendedMediaTrackCapabilities as by, type ExtendedMediaTrackConstraintSet as bz, type FrameSourceListener as c, type FrameSourceJSON as d, type CameraJSON as e, type VideoFrameResolution as f, Camera as g, CameraAccess as h, type DeviceCamera as i, type CameraSettingsJSONBase as j, type CameraSettingsFromJSON as k, type CameraSettingsJSON as l, isCameraFrameSource as m, CameraSettings as n, type Change as o, type PrivateDataCaptureMode as p, type DataCaptureMode as q, type DataCaptureModeJSON as r, type PrivateDataCaptureComponent as s, type DataCaptureComponentJSON as t, type DataCaptureComponent as u, type PrivateDataCaptureContextOptions as v, type PrivateDataCaptureContext as w, type DataCaptureContextCreationOptions as x, type DataCaptureContextJSON as y, type PrivateFrameHandlerResponse as z };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-wG9iakev.js';
2
+ export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-BoUtNCzS.js';
3
3
  import './Common.js';
4
4
  import './private/Serializable.js';
5
5
  import './private/FrameReaders/WatermarkStack.js';
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
8
8
  import './private/utils/ScanditHTMLElement.js';
9
9
  import './DataCaptureContextSettings.js';
10
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
11
14
  import './ViewControls.js';
12
15
  import './private/CustomLocationsView.js';
13
16
  import './private/View.js';
@@ -1 +1 @@
1
- export{a as Camera}from'./chunks/chunk-XLFQMCQP.js';
1
+ export{a as Camera}from'./chunks/chunk-HNUWDILZ.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { h as CameraAccess, i as DeviceCamera } from './Camera-wG9iakev.js';
2
+ export { h as CameraAccess, i as DeviceCamera } from './Camera-BoUtNCzS.js';
3
3
  import './private/Serializable.js';
4
4
  import './Common.js';
5
5
  import './private/FrameReaders/WatermarkStack.js';
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
8
8
  import './private/utils/ScanditHTMLElement.js';
9
9
  import './DataCaptureContextSettings.js';
10
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
11
14
  import './ViewControls.js';
12
15
  import './private/CustomLocationsView.js';
13
16
  import './private/View.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-wG9iakev.js';
2
+ export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-BoUtNCzS.js';
3
3
  import './private/Serializable.js';
4
4
  import './Common.js';
5
5
  import './private/FrameReaders/WatermarkStack.js';
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
8
8
  import './private/utils/ScanditHTMLElement.js';
9
9
  import './DataCaptureContextSettings.js';
10
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
11
14
  import './ViewControls.js';
12
15
  import './private/CustomLocationsView.js';
13
16
  import './private/View.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-wG9iakev.js';
2
+ export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-BoUtNCzS.js';
3
3
  import './Common.js';
4
4
  import './DataCaptureContextSettings.js';
5
5
  import './license/OpenSourceSoftwareLicenseInfo.js';
@@ -10,6 +10,9 @@ import './private/FrameReaders/WatermarkStack.js';
10
10
  import './ScanditIcon.js';
11
11
  import './private/utils/ScanditHTMLElement.js';
12
12
  import './DataCaptureViewPlusRelated.js';
13
+ import './NotificationPresenter/NotificationPresenter.js';
14
+ import './NotificationPresenter/NotificationConfiguration.js';
15
+ import './NotificationPresenter/NotificationStyle.js';
13
16
  import './ViewControls.js';
14
17
  import './private/CustomLocationsView.js';
15
18
  import './private/View.js';
@@ -1 +1 @@
1
- export{a as DataCaptureContext}from'./chunks/chunk-Q24GE5CE.js';
1
+ export{a as DataCaptureContext}from'./chunks/chunk-OFNRGDFQ.js';
@@ -1,12 +1,16 @@
1
1
  /// <reference types="emscripten" />
2
- export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-wG9iakev.js';
2
+ export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-BoUtNCzS.js';
3
3
  import './ScanditIcon.js';
4
4
  import './private/Serializable.js';
5
5
  import './Common.js';
6
6
  import './private/FrameReaders/WatermarkStack.js';
7
7
  import './tsHelper.js';
8
+ import './private/utils/ScanditHTMLElement.js';
8
9
  import './DataCaptureContextSettings.js';
9
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
10
14
  import './ViewControls.js';
11
15
  import './private/CustomLocationsView.js';
12
16
  import './private/View.js';
@@ -17,4 +21,3 @@ import './private/HtmlElementState.js';
17
21
  import './worker/OverrideState.js';
18
22
  import './logger.js';
19
23
  import './LoadingStatus.js';
20
- import './private/utils/ScanditHTMLElement.js';
@@ -1 +1 @@
1
- export{a as DataCaptureVersion}from'./chunks/chunk-Q2O4RKVG.js';
1
+ export{a as DataCaptureVersion}from'./chunks/chunk-7XGCH3B3.js';
@@ -1,7 +1,8 @@
1
1
  /// <reference types="emscripten" />
2
2
  import './Common.js';
3
- export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-wG9iakev.js';
3
+ export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-BoUtNCzS.js';
4
4
  import './DataCaptureViewPlusRelated.js';
5
+ import './NotificationPresenter/NotificationPresenter.js';
5
6
  import './ViewControls.js';
6
7
  import './private/CustomLocationsView.js';
7
8
  import './private/Serializable.js';
@@ -17,4 +18,6 @@ import './private/HtmlElementState.js';
17
18
  import './worker/OverrideState.js';
18
19
  import './logger.js';
19
20
  import './LoadingStatus.js';
21
+ import './NotificationPresenter/NotificationConfiguration.js';
22
+ import './NotificationPresenter/NotificationStyle.js';
20
23
  import './private/View.js';
@@ -1 +1 @@
1
- export{a as DataCaptureView}from'./chunks/chunk-P3OK36HL.js';
1
+ export{a as DataCaptureView}from'./chunks/chunk-J3PS3NRY.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
2
  import * as CSS from 'csstype';
3
- import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-wG9iakev.js';
3
+ import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-BoUtNCzS.js';
4
4
  import { MarginsWithUnit, PointWithUnit, Anchor, Color } from './Common.js';
5
5
  import { FocusGestureJSON, FocusGesture, ZoomGestureJSON, ZoomGesture, LogoStyle } from './DataCaptureViewPlusRelated.js';
6
6
  import { PrivateLaserlineViewfinderDefault, RectangularViewfinderStyle, PrivateRectangularViewfinderDefault } from './ViewfinderPlusRelated.js';
@@ -10,6 +10,9 @@ import './tsHelper.js';
10
10
  import './ScanditIcon.js';
11
11
  import './private/utils/ScanditHTMLElement.js';
12
12
  import './DataCaptureContextSettings.js';
13
+ import './NotificationPresenter/NotificationPresenter.js';
14
+ import './NotificationPresenter/NotificationConfiguration.js';
15
+ import './NotificationPresenter/NotificationStyle.js';
13
16
  import './ViewControls.js';
14
17
  import './private/CustomLocationsView.js';
15
18
  import './private/View.js';
@@ -1,12 +1,16 @@
1
1
  /// <reference types="emscripten" />
2
- export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-wG9iakev.js';
2
+ export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-BoUtNCzS.js';
3
3
  import './ScanditIcon.js';
4
4
  import './private/Serializable.js';
5
5
  import './Common.js';
6
6
  import './private/FrameReaders/WatermarkStack.js';
7
7
  import './tsHelper.js';
8
+ import './private/utils/ScanditHTMLElement.js';
8
9
  import './DataCaptureContextSettings.js';
9
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
10
14
  import './ViewControls.js';
11
15
  import './private/CustomLocationsView.js';
12
16
  import './private/View.js';
@@ -17,4 +21,3 @@ import './private/HtmlElementState.js';
17
21
  import './worker/OverrideState.js';
18
22
  import './logger.js';
19
23
  import './LoadingStatus.js';
20
- import './private/utils/ScanditHTMLElement.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-wG9iakev.js';
2
+ import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-BoUtNCzS.js';
3
3
  import { Serializable } from './private/Serializable.js';
4
4
  import './Common.js';
5
5
  import './private/FrameReaders/WatermarkStack.js';
@@ -8,6 +8,9 @@ import './ScanditIcon.js';
8
8
  import './private/utils/ScanditHTMLElement.js';
9
9
  import './DataCaptureContextSettings.js';
10
10
  import './DataCaptureViewPlusRelated.js';
11
+ import './NotificationPresenter/NotificationPresenter.js';
12
+ import './NotificationPresenter/NotificationConfiguration.js';
13
+ import './NotificationPresenter/NotificationStyle.js';
11
14
  import './ViewControls.js';
12
15
  import './private/CustomLocationsView.js';
13
16
  import './private/View.js';
@@ -0,0 +1,25 @@
1
+ /// <reference types="emscripten" />
2
+ import { Color } from '../Common.js';
3
+ import { ScanditIcon } from '../ScanditIcon.js';
4
+ import { NotificationConfiguration } from './NotificationConfiguration.js';
5
+ import { NotificationStyle } from './NotificationStyle.js';
6
+ import '../private/Serializable.js';
7
+ import '../private/utils/ScanditHTMLElement.js';
8
+
9
+ declare class NotificationBuilder {
10
+ private _text;
11
+ private _tag;
12
+ private _icon?;
13
+ private _style?;
14
+ private _textColor;
15
+ private _backgroundColor;
16
+ private constructor();
17
+ static init(text: string, tag: string): NotificationBuilder;
18
+ withIcon(icon: ScanditIcon): NotificationBuilder;
19
+ withTextColor(color: Color): NotificationBuilder;
20
+ withBackgroundColor(color: Color): NotificationBuilder;
21
+ withNotificationStyle(style: NotificationStyle): NotificationBuilder;
22
+ build(): NotificationConfiguration;
23
+ }
24
+
25
+ export { NotificationBuilder };
@@ -0,0 +1 @@
1
+ export{a as NotificationBuilder}from'../chunks/chunk-6YZS76QW.js';
@@ -0,0 +1,24 @@
1
+ /// <reference types="emscripten" />
2
+ import { Color } from '../Common.js';
3
+ import { ScanditIcon } from '../ScanditIcon.js';
4
+ import { NotificationStyle } from './NotificationStyle.js';
5
+ import '../private/Serializable.js';
6
+ import '../private/utils/ScanditHTMLElement.js';
7
+
8
+ declare class NotificationConfiguration {
9
+ private _style?;
10
+ private _icon?;
11
+ private _message;
12
+ private _textColor;
13
+ private _backgroundColor;
14
+ private _tag;
15
+ constructor(message: string, tag: string, style?: NotificationStyle, icon?: ScanditIcon, textColor?: Color, backgroundColor?: Color);
16
+ get tag(): string;
17
+ get message(): string;
18
+ get style(): NotificationStyle | null;
19
+ get icon(): ScanditIcon | null;
20
+ get textColor(): Color;
21
+ get backgroundColor(): Color;
22
+ }
23
+
24
+ export { NotificationConfiguration };
@@ -0,0 +1 @@
1
+ export{a as NotificationConfiguration}from'../chunks/chunk-KUVVZN66.js';
@@ -0,0 +1,14 @@
1
+ /// <reference types="emscripten" />
2
+ import { NotificationConfiguration } from './NotificationConfiguration.js';
3
+ import '../Common.js';
4
+ import '../private/Serializable.js';
5
+ import '../ScanditIcon.js';
6
+ import '../private/utils/ScanditHTMLElement.js';
7
+ import './NotificationStyle.js';
8
+
9
+ interface NotificationPresenter {
10
+ showNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
11
+ hideNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
12
+ }
13
+
14
+ export type { NotificationPresenter };
@@ -0,0 +1,9 @@
1
+ /// <reference types="emscripten" />
2
+ declare enum NotificationStyle {
3
+ Info = "info",
4
+ Error = "error",
5
+ Warning = "warning",
6
+ Success = "success"
7
+ }
8
+
9
+ export { NotificationStyle };
@@ -0,0 +1 @@
1
+ export{a as NotificationStyle}from'../chunks/chunk-RXT3JWWR.js';
@@ -0,0 +1,25 @@
1
+ /// <reference types="emscripten" />
2
+ export { NotificationBuilder } from './NotificationBuilder.js';
3
+ export { NotificationConfiguration } from './NotificationConfiguration.js';
4
+ export { NotificationPresenter } from './NotificationPresenter.js';
5
+ export { NotificationStyle } from './NotificationStyle.js';
6
+ export { ConcreteNotificationPresenter } from './private/ConcreteNotificationPresenter.js';
7
+ import '../Common.js';
8
+ import '../private/Serializable.js';
9
+ import '../ScanditIcon.js';
10
+ import '../private/utils/ScanditHTMLElement.js';
11
+ import '../Camera-BoUtNCzS.js';
12
+ import '../private/FrameReaders/WatermarkStack.js';
13
+ import '../tsHelper.js';
14
+ import '../DataCaptureContextSettings.js';
15
+ import '../DataCaptureViewPlusRelated.js';
16
+ import '../ViewControls.js';
17
+ import '../private/CustomLocationsView.js';
18
+ import '../private/View.js';
19
+ import '../private/AnchorPositions.js';
20
+ import '../private/nativeHandle.js';
21
+ import '../license/OpenSourceSoftwareLicenseInfo.js';
22
+ import '../private/HtmlElementState.js';
23
+ import '../worker/OverrideState.js';
24
+ import '../logger.js';
25
+ import '../LoadingStatus.js';
@@ -0,0 +1 @@
1
+ export{a as NotificationBuilder}from'../chunks/chunk-6YZS76QW.js';export{a as ConcreteNotificationPresenter}from'../chunks/chunk-3MEGNPVU.js';export{a as NotificationConfiguration}from'../chunks/chunk-KUVVZN66.js';export{a as NotificationStyle}from'../chunks/chunk-RXT3JWWR.js';
@@ -0,0 +1,32 @@
1
+ /// <reference types="emscripten" />
2
+ import { U as HintPresenter } from '../../Camera-BoUtNCzS.js';
3
+ import { NotificationConfiguration } from '../NotificationConfiguration.js';
4
+ import { NotificationPresenter } from '../NotificationPresenter.js';
5
+ import '../../private/Serializable.js';
6
+ import '../../Common.js';
7
+ import '../../private/FrameReaders/WatermarkStack.js';
8
+ import '../../tsHelper.js';
9
+ import '../../ScanditIcon.js';
10
+ import '../../private/utils/ScanditHTMLElement.js';
11
+ import '../../DataCaptureContextSettings.js';
12
+ import '../../DataCaptureViewPlusRelated.js';
13
+ import '../../ViewControls.js';
14
+ import '../../private/CustomLocationsView.js';
15
+ import '../../private/View.js';
16
+ import '../../private/AnchorPositions.js';
17
+ import '../../private/nativeHandle.js';
18
+ import '../../license/OpenSourceSoftwareLicenseInfo.js';
19
+ import '../../private/HtmlElementState.js';
20
+ import '../../worker/OverrideState.js';
21
+ import '../../logger.js';
22
+ import '../../LoadingStatus.js';
23
+ import '../NotificationStyle.js';
24
+
25
+ declare class ConcreteNotificationPresenter implements NotificationPresenter {
26
+ private _hintPresenter;
27
+ constructor(hintPresenter: HintPresenter);
28
+ showNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
29
+ hideNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
30
+ }
31
+
32
+ export { ConcreteNotificationPresenter };
@@ -0,0 +1 @@
1
+ export{a as ConcreteNotificationPresenter}from'../../chunks/chunk-3MEGNPVU.js';
@@ -0,0 +1,31 @@
1
+ /// <reference types="emscripten" />
2
+ import { Z as GenericHint } from '../../Camera-BoUtNCzS.js';
3
+ import { NotificationConfiguration } from '../NotificationConfiguration.js';
4
+ import '../../private/Serializable.js';
5
+ import '../../Common.js';
6
+ import '../../private/FrameReaders/WatermarkStack.js';
7
+ import '../../tsHelper.js';
8
+ import '../../ScanditIcon.js';
9
+ import '../../private/utils/ScanditHTMLElement.js';
10
+ import '../../DataCaptureContextSettings.js';
11
+ import '../../DataCaptureViewPlusRelated.js';
12
+ import '../NotificationPresenter.js';
13
+ import '../NotificationStyle.js';
14
+ import '../../ViewControls.js';
15
+ import '../../private/CustomLocationsView.js';
16
+ import '../../private/View.js';
17
+ import '../../private/AnchorPositions.js';
18
+ import '../../private/nativeHandle.js';
19
+ import '../../license/OpenSourceSoftwareLicenseInfo.js';
20
+ import '../../private/HtmlElementState.js';
21
+ import '../../worker/OverrideState.js';
22
+ import '../../logger.js';
23
+ import '../../LoadingStatus.js';
24
+
25
+ declare function createGenericHintFromNotificationConfiguration(config: NotificationConfiguration): GenericHint;
26
+ declare const error: GenericHint;
27
+ declare const success: GenericHint;
28
+ declare const warning: GenericHint;
29
+ declare const info: GenericHint;
30
+
31
+ export { createGenericHintFromNotificationConfiguration, error, info, success, warning };
@@ -0,0 +1 @@
1
+ export{a as createGenericHintFromNotificationConfiguration,b as error,e as info,c as success,d as warning}from'../../chunks/chunk-GGMX65YP.js';
@@ -1 +1 @@
1
- export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-GDUWHYYI.js';
1
+ export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-3RIR7ALE.js';
@@ -57,9 +57,9 @@ declare class ScanditIconBuilder {
57
57
  withBackgroundStrokeColor(backgroundStrokeColor: Color): ScanditIconBuilder;
58
58
  withBackgroundStrokeWidth(backgroundStrokeWidth: number): ScanditIconBuilder;
59
59
  build(): Promise<ScanditIcon>;
60
- private withWidth;
61
- private withHeight;
62
- private withIconSize;
60
+ withIconSize(iconSize: number): ScanditIconBuilder;
61
+ withWidth(width: number): ScanditIconBuilder;
62
+ withHeight(height: number): ScanditIconBuilder;
63
63
  }
64
64
 
65
65
  export { ScanditIconBuilder, ScanditIconForIconType, ScanditIconShape, ScanditIconType };
@@ -1 +1 @@
1
- export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-THEE4TYK.js';export{a as ScanditIconShape}from'./chunks/chunk-GDUWHYYI.js';
1
+ export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-CMG3PSOW.js';export{a as ScanditIconShape}from'./chunks/chunk-3RIR7ALE.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-wG9iakev.js';
2
+ import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-BoUtNCzS.js';
3
3
  import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
4
4
  import { Serializable } from './private/Serializable.js';
5
5
  import './Common.js';
@@ -9,6 +9,9 @@ import './ScanditIcon.js';
9
9
  import './private/utils/ScanditHTMLElement.js';
10
10
  import './DataCaptureContextSettings.js';
11
11
  import './DataCaptureViewPlusRelated.js';
12
+ import './NotificationPresenter/NotificationPresenter.js';
13
+ import './NotificationPresenter/NotificationConfiguration.js';
14
+ import './NotificationPresenter/NotificationStyle.js';
12
15
  import './ViewControls.js';
13
16
  import './private/CustomLocationsView.js';
14
17
  import './private/View.js';
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-GGMX65YP.js';var r=class{constructor(t){this._hintPresenter=t;}async showNotification(t){let e=a(t);return t.icon?this._hintPresenter.showToastWithCustomIcon(e,t.icon):this._hintPresenter.showToast(e)}async hideNotification(t){return this._hintPresenter.hideToast(a(t))}};export{r as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-IVDD7PCI.js';import {a as a$1}from'./chunk-MU6SADSF.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n as n$1}from'./chunk-77BBIAZE.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot /></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return n$1.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return n$1.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return n$1.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$2({[n.tag]:n});}static createStyleElement(){return a$3`:host{display:inline-block;--width:32px;--height:32px;--background-color:transparent;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(n$1.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var s,u;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],a=Math.min(e,t);for(let C of r)C.size=a/2;}setIconSize(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.size=e;}updateFillIconColor(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.fill=`#${e.toJSON()}`;}};n.tag="scandit-barcode-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};
1
+ import {e}from'./chunk-IVDD7PCI.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-MU6SADSF.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n as n$1}from'./chunk-77BBIAZE.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot /></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return n$1.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return n$1.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return n$1.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$2({[n.tag]:n});}static createStyleElement(){return a$3`:host{display:inline-block;--width:32px;--height:32px;--background-color:transparent;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(n$1.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var s,u;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],a=Math.min(e,t);for(let C of r)C.size=a/2;}setIconSize(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.size=e;}updateFillIconColor(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.fill=`#${e.toJSON()}`;}};n.tag="scandit-barcode-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};