@amwaljs/checkout-button 0.2.9 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout/checkout.esm.js +1 -2
- package/dist/checkout/index.esm.js +0 -2
- package/dist/checkout/p-0161d109.entry.js +1 -0
- package/dist/checkout/p-0a8ef1ec.entry.js +1 -0
- package/dist/checkout/p-10a72fbe.entry.js +1 -0
- package/dist/checkout/p-11205aeb.entry.js +1 -0
- package/dist/checkout/p-12ed4081.entry.js +1 -0
- package/dist/checkout/p-13c36adc.entry.js +1 -0
- package/dist/checkout/p-141f2eab.entry.js +7 -0
- package/dist/checkout/p-194b17d8.entry.js +1 -0
- package/dist/checkout/p-1dc08181.entry.js +1 -0
- package/dist/checkout/p-272a1ffd.entry.js +1 -0
- package/dist/checkout/p-307af48b.entry.js +1 -0
- package/dist/checkout/p-3207674d.entry.js +1 -0
- package/dist/checkout/p-3208e56f.entry.js +1 -0
- package/dist/checkout/p-3c9a8bee.entry.js +1 -0
- package/dist/checkout/p-439ad699.entry.js +7 -0
- package/dist/checkout/p-4426eb3b.entry.js +1 -0
- package/dist/checkout/p-458da59f.entry.js +1 -0
- package/dist/checkout/p-46e69508.entry.js +1 -0
- package/dist/checkout/p-46ff73b3.entry.js +1 -0
- package/dist/checkout/p-49046c16.entry.js +4 -0
- package/dist/checkout/p-4a86b731.entry.js +1 -0
- package/dist/checkout/p-4ae1a390.entry.js +1 -0
- package/dist/checkout/p-4b34896c.entry.js +1 -0
- package/dist/checkout/p-4da4ecc4.entry.js +1 -0
- package/dist/checkout/p-53ae9dd0.entry.js +1 -0
- package/dist/checkout/p-53dc0e86.entry.js +1 -0
- package/dist/checkout/p-56e307eb.entry.js +1 -0
- package/dist/checkout/p-5903b3af.entry.js +1 -0
- package/dist/checkout/p-5a6fc9fd.entry.js +1 -0
- package/dist/checkout/p-5e65653a.entry.js +1 -0
- package/dist/checkout/p-5f005b5e.entry.js +1 -0
- package/dist/checkout/p-5f124c24.entry.js +1 -0
- package/dist/checkout/p-62b7c8b0.entry.js +1 -0
- package/dist/checkout/p-63db3363.entry.js +1 -0
- package/dist/checkout/p-6a8ad104.entry.js +1 -0
- package/dist/checkout/p-7006753a.entry.js +4 -0
- package/dist/checkout/p-76fb4325.entry.js +1 -0
- package/dist/checkout/p-78db60fb.entry.js +1 -0
- package/dist/checkout/p-8036cf49.entry.js +14 -0
- package/dist/checkout/p-8b015c21.entry.js +1 -0
- package/dist/checkout/p-8e34a1bb.entry.js +1 -0
- package/dist/checkout/p-8fc1287a.entry.js +1 -0
- package/dist/checkout/p-91474b10.entry.js +1 -0
- package/dist/checkout/p-93OyAGoo.js +2 -0
- package/dist/checkout/p-94a57258.entry.js +1 -0
- package/dist/checkout/p-95431a73.entry.js +1 -0
- package/dist/checkout/p-95563c4c.entry.js +1 -0
- package/dist/checkout/p-978b3762.entry.js +1 -0
- package/dist/checkout/p-9b7d7231.entry.js +1 -0
- package/dist/checkout/p-B-hirT0v.js +1 -2
- package/dist/checkout/p-B3WORC1a.js +1 -2
- package/dist/checkout/p-BEVStXwd.js +7 -0
- package/dist/checkout/p-BQu7QPd5.js +4 -0
- package/dist/checkout/p-BR7SJd-v.js +2 -3
- package/dist/checkout/p-BcFRJSFv.js +4 -0
- package/dist/checkout/p-BcUxrseY.js +1 -0
- package/dist/checkout/p-BdG893XR.js +4 -0
- package/dist/checkout/p-BgOwfqIY.js +2 -6
- package/dist/checkout/p-Bm9bMvCb.js +4 -0
- package/dist/checkout/p-BmVRXR1y.js +1 -2
- package/dist/checkout/p-C03M5ZSM.js +1 -2
- package/dist/checkout/p-C53feagD.js +1 -2
- package/dist/checkout/p-C6kqtbmV.js +4 -0
- package/dist/checkout/p-C75BfBAE.js +1 -0
- package/dist/checkout/p-CVrvo9Qz.js +4 -0
- package/dist/checkout/p-ChixdDt6.js +4 -0
- package/dist/checkout/p-Cjnmql4G.js +8 -0
- package/dist/checkout/p-CukVBo5-.js +4 -0
- package/dist/checkout/p-D0I0TqZU.js +4 -0
- package/dist/checkout/p-D2NxOvQ8.js +2 -3
- package/dist/checkout/p-D4RIp70E.js +1 -2
- package/dist/checkout/p-D8d_89Nl.js +4 -0
- package/dist/checkout/p-DAhcxcAh.js +4 -0
- package/dist/checkout/p-DDtPO7yO.js +4 -0
- package/dist/checkout/p-DKg_dYcq.js +2 -3
- package/dist/checkout/p-DMAPbDyG.js +4 -0
- package/dist/checkout/p-DUa_5Mmb.js +4 -0
- package/dist/checkout/p-DiVJyqlX.js +1 -2
- package/dist/checkout/p-DihS-5gH.js +4 -0
- package/dist/checkout/p-DkrNcwKK.js +5 -0
- package/dist/checkout/p-Dtdm8lKC.js +1 -2
- package/dist/checkout/p-Dzj_jqIY.js +4 -0
- package/dist/checkout/p-E8AXUhZ3.js +7 -0
- package/dist/checkout/p-Ufaww5Lq.js +4 -0
- package/dist/checkout/p-ZjP4CjeZ.js +1 -2
- package/dist/checkout/p-a90efa79.entry.js +1 -0
- package/dist/checkout/p-aba43d04.entry.js +1 -0
- package/dist/checkout/p-abd12b84.entry.js +1 -0
- package/dist/checkout/p-abe1becc.entry.js +1 -0
- package/dist/checkout/p-af32124b.entry.js +1 -0
- package/dist/checkout/p-b2f66c60.entry.js +4 -0
- package/dist/checkout/p-b4000357.entry.js +4 -0
- package/dist/checkout/p-b45f5952.entry.js +1 -0
- package/dist/checkout/p-b8245f6a.entry.js +1 -0
- package/dist/checkout/p-b90c064e.entry.js +7 -0
- package/dist/checkout/p-bf933eb6.entry.js +4 -0
- package/dist/checkout/p-c03b6161.entry.js +1 -0
- package/dist/checkout/p-c2240d19.entry.js +1 -0
- package/dist/checkout/p-c2296aa1.entry.js +1 -0
- package/dist/checkout/p-c28b4374.entry.js +1 -0
- package/dist/checkout/p-c8740acc.entry.js +7 -0
- package/dist/checkout/p-c929d6ea.entry.js +1 -0
- package/dist/checkout/p-ca257d45.entry.js +1 -0
- package/dist/checkout/p-cb2db223.entry.js +1 -0
- package/dist/checkout/p-cb3967fc.entry.js +1 -0
- package/dist/checkout/p-cd2c344b.entry.js +7 -0
- package/dist/checkout/p-cef16f11.entry.js +1 -0
- package/dist/checkout/p-d370e756.entry.js +4 -0
- package/dist/checkout/p-d5652cd4.entry.js +1 -0
- package/dist/checkout/p-d799009b.entry.js +1 -0
- package/dist/checkout/p-df1b4347.entry.js +4 -0
- package/dist/checkout/p-e4bc42fb.entry.js +1 -0
- package/dist/checkout/p-e4d0702d.entry.js +1 -0
- package/dist/checkout/p-e785fb8a.entry.js +1 -0
- package/dist/checkout/p-e8bd206a.entry.js +1 -0
- package/dist/checkout/p-eae2d3f2.entry.js +1 -0
- package/dist/checkout/p-ef749875.entry.js +1 -0
- package/dist/checkout/p-f157b6b2.entry.js +4 -0
- package/dist/checkout/p-f22v7XAM.js +7 -0
- package/dist/checkout/p-f351a19a.entry.js +1 -0
- package/dist/checkout/p-f845e91b.entry.js +1 -0
- package/dist/checkout/p-ff2e59e3.entry.js +1 -0
- package/dist/checkout/p-hAETByzF.js +5 -0
- package/dist/checkout/p-hHmYLOfE.js +1 -2
- package/dist/checkout/p-ofaUly0p.js +4 -0
- package/dist/checkout/p-sObYyvOy.js +1 -2
- package/dist/checkout/p-vn1iXXUO.js +9 -0
- package/dist/checkout/p-yu3xCFhr.js +7 -0
- package/dist/checkout/svg/accessibility-outline.svg +1 -1
- package/dist/checkout/svg/accessibility-sharp.svg +1 -1
- package/dist/checkout/svg/accessibility.svg +1 -1
- package/dist/checkout/svg/add-circle-outline.svg +1 -1
- package/dist/checkout/svg/add-circle-sharp.svg +1 -1
- package/dist/checkout/svg/add-circle.svg +1 -1
- package/dist/checkout/svg/add-outline.svg +1 -1
- package/dist/checkout/svg/add-sharp.svg +1 -1
- package/dist/checkout/svg/add.svg +1 -1
- package/dist/checkout/svg/airplane-outline.svg +1 -1
- package/dist/checkout/svg/airplane-sharp.svg +1 -1
- package/dist/checkout/svg/airplane.svg +1 -1
- package/dist/checkout/svg/alarm-outline.svg +1 -1
- package/dist/checkout/svg/alarm-sharp.svg +1 -1
- package/dist/checkout/svg/alarm.svg +1 -1
- package/dist/checkout/svg/albums-outline.svg +1 -1
- package/dist/checkout/svg/albums-sharp.svg +1 -1
- package/dist/checkout/svg/albums.svg +1 -1
- package/dist/checkout/svg/alert-circle-outline.svg +1 -1
- package/dist/checkout/svg/alert-circle-sharp.svg +1 -1
- package/dist/checkout/svg/alert-circle.svg +1 -1
- package/dist/checkout/svg/alert-outline.svg +1 -1
- package/dist/checkout/svg/alert-sharp.svg +1 -1
- package/dist/checkout/svg/alert.svg +1 -1
- package/dist/checkout/svg/american-football-outline.svg +1 -1
- package/dist/checkout/svg/american-football-sharp.svg +1 -1
- package/dist/checkout/svg/american-football.svg +1 -1
- package/dist/checkout/svg/analytics-outline.svg +1 -1
- package/dist/checkout/svg/analytics-sharp.svg +1 -1
- package/dist/checkout/svg/analytics.svg +1 -1
- package/dist/checkout/svg/aperture-outline.svg +1 -1
- package/dist/checkout/svg/aperture-sharp.svg +1 -1
- package/dist/checkout/svg/aperture.svg +1 -1
- package/dist/checkout/svg/apps-outline.svg +1 -1
- package/dist/checkout/svg/apps-sharp.svg +1 -1
- package/dist/checkout/svg/apps.svg +1 -1
- package/dist/checkout/svg/archive-outline.svg +1 -1
- package/dist/checkout/svg/archive-sharp.svg +1 -1
- package/dist/checkout/svg/archive.svg +1 -1
- package/dist/checkout/svg/arrow-back-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-back-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-back-circle.svg +1 -1
- package/dist/checkout/svg/arrow-back-outline.svg +1 -1
- package/dist/checkout/svg/arrow-back-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-back.svg +1 -1
- package/dist/checkout/svg/arrow-down-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-down-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-down-circle.svg +1 -1
- package/dist/checkout/svg/arrow-down-left-box-outline.svg +1 -1
- package/dist/checkout/svg/arrow-down-left-box-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-down-left-box.svg +1 -1
- package/dist/checkout/svg/arrow-down-outline.svg +1 -1
- package/dist/checkout/svg/arrow-down-right-box-outline.svg +1 -1
- package/dist/checkout/svg/arrow-down-right-box-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-down-right-box.svg +1 -1
- package/dist/checkout/svg/arrow-down-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-down.svg +1 -1
- package/dist/checkout/svg/arrow-forward-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-forward-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-forward-circle.svg +1 -1
- package/dist/checkout/svg/arrow-forward-outline.svg +1 -1
- package/dist/checkout/svg/arrow-forward-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-forward.svg +1 -1
- package/dist/checkout/svg/arrow-redo-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-redo-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-redo-circle.svg +1 -1
- package/dist/checkout/svg/arrow-redo-outline.svg +1 -1
- package/dist/checkout/svg/arrow-redo-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-redo.svg +1 -1
- package/dist/checkout/svg/arrow-undo-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-undo-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-undo-circle.svg +1 -1
- package/dist/checkout/svg/arrow-undo-outline.svg +1 -1
- package/dist/checkout/svg/arrow-undo-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-undo.svg +1 -1
- package/dist/checkout/svg/arrow-up-circle-outline.svg +1 -1
- package/dist/checkout/svg/arrow-up-circle-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-up-circle.svg +1 -1
- package/dist/checkout/svg/arrow-up-left-box-outline.svg +1 -1
- package/dist/checkout/svg/arrow-up-left-box-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-up-left-box.svg +1 -1
- package/dist/checkout/svg/arrow-up-outline.svg +1 -1
- package/dist/checkout/svg/arrow-up-right-box-outline.svg +1 -1
- package/dist/checkout/svg/arrow-up-right-box-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-up-right-box.svg +1 -1
- package/dist/checkout/svg/arrow-up-sharp.svg +1 -1
- package/dist/checkout/svg/arrow-up.svg +1 -1
- package/dist/checkout/svg/at-circle-outline.svg +1 -1
- package/dist/checkout/svg/at-circle-sharp.svg +1 -1
- package/dist/checkout/svg/at-circle.svg +1 -1
- package/dist/checkout/svg/at-outline.svg +1 -1
- package/dist/checkout/svg/at-sharp.svg +1 -1
- package/dist/checkout/svg/at.svg +1 -1
- package/dist/checkout/svg/attach-outline.svg +1 -1
- package/dist/checkout/svg/attach-sharp.svg +1 -1
- package/dist/checkout/svg/attach.svg +1 -1
- package/dist/checkout/svg/backspace-outline.svg +1 -1
- package/dist/checkout/svg/backspace-sharp.svg +1 -1
- package/dist/checkout/svg/backspace.svg +1 -1
- package/dist/checkout/svg/bag-add-outline.svg +1 -1
- package/dist/checkout/svg/bag-add-sharp.svg +1 -1
- package/dist/checkout/svg/bag-add.svg +1 -1
- package/dist/checkout/svg/bag-check-outline.svg +1 -1
- package/dist/checkout/svg/bag-check-sharp.svg +1 -1
- package/dist/checkout/svg/bag-check.svg +1 -1
- package/dist/checkout/svg/bag-handle-outline.svg +1 -1
- package/dist/checkout/svg/bag-handle-sharp.svg +1 -1
- package/dist/checkout/svg/bag-handle.svg +1 -1
- package/dist/checkout/svg/bag-outline.svg +1 -1
- package/dist/checkout/svg/bag-remove-outline.svg +1 -1
- package/dist/checkout/svg/bag-remove-sharp.svg +1 -1
- package/dist/checkout/svg/bag-remove.svg +1 -1
- package/dist/checkout/svg/bag-sharp.svg +1 -1
- package/dist/checkout/svg/bag.svg +1 -1
- package/dist/checkout/svg/balloon-outline.svg +1 -1
- package/dist/checkout/svg/balloon-sharp.svg +1 -1
- package/dist/checkout/svg/balloon.svg +1 -1
- package/dist/checkout/svg/ban-outline.svg +1 -1
- package/dist/checkout/svg/ban-sharp.svg +1 -1
- package/dist/checkout/svg/ban.svg +1 -1
- package/dist/checkout/svg/bandage-outline.svg +1 -1
- package/dist/checkout/svg/bandage-sharp.svg +1 -1
- package/dist/checkout/svg/bandage.svg +1 -1
- package/dist/checkout/svg/bar-chart-outline.svg +1 -1
- package/dist/checkout/svg/bar-chart-sharp.svg +1 -1
- package/dist/checkout/svg/bar-chart.svg +1 -1
- package/dist/checkout/svg/barbell-outline.svg +1 -1
- package/dist/checkout/svg/barbell-sharp.svg +1 -1
- package/dist/checkout/svg/barbell.svg +1 -1
- package/dist/checkout/svg/barcode-outline.svg +1 -1
- package/dist/checkout/svg/barcode-sharp.svg +1 -1
- package/dist/checkout/svg/barcode.svg +1 -1
- package/dist/checkout/svg/baseball-outline.svg +1 -1
- package/dist/checkout/svg/baseball-sharp.svg +1 -1
- package/dist/checkout/svg/baseball.svg +1 -1
- package/dist/checkout/svg/basket-outline.svg +1 -1
- package/dist/checkout/svg/basket-sharp.svg +1 -1
- package/dist/checkout/svg/basket.svg +1 -1
- package/dist/checkout/svg/basketball-outline.svg +1 -1
- package/dist/checkout/svg/basketball-sharp.svg +1 -1
- package/dist/checkout/svg/basketball.svg +1 -1
- package/dist/checkout/svg/battery-charging-outline.svg +1 -1
- package/dist/checkout/svg/battery-charging-sharp.svg +1 -1
- package/dist/checkout/svg/battery-charging.svg +1 -1
- package/dist/checkout/svg/battery-dead-outline.svg +1 -1
- package/dist/checkout/svg/battery-dead-sharp.svg +1 -1
- package/dist/checkout/svg/battery-dead.svg +1 -1
- package/dist/checkout/svg/battery-full-outline.svg +1 -1
- package/dist/checkout/svg/battery-full-sharp.svg +1 -1
- package/dist/checkout/svg/battery-full.svg +1 -1
- package/dist/checkout/svg/battery-half-outline.svg +1 -1
- package/dist/checkout/svg/battery-half-sharp.svg +1 -1
- package/dist/checkout/svg/battery-half.svg +1 -1
- package/dist/checkout/svg/beaker-outline.svg +1 -1
- package/dist/checkout/svg/beaker-sharp.svg +1 -1
- package/dist/checkout/svg/beaker.svg +1 -1
- package/dist/checkout/svg/bed-outline.svg +1 -1
- package/dist/checkout/svg/bed-sharp.svg +1 -1
- package/dist/checkout/svg/bed.svg +1 -1
- package/dist/checkout/svg/beer-outline.svg +1 -1
- package/dist/checkout/svg/beer-sharp.svg +1 -1
- package/dist/checkout/svg/beer.svg +1 -1
- package/dist/checkout/svg/bicycle-outline.svg +1 -1
- package/dist/checkout/svg/bicycle-sharp.svg +1 -1
- package/dist/checkout/svg/bicycle.svg +1 -1
- package/dist/checkout/svg/binoculars-outline.svg +1 -1
- package/dist/checkout/svg/binoculars-sharp.svg +1 -1
- package/dist/checkout/svg/binoculars.svg +1 -1
- package/dist/checkout/svg/bluetooth-outline.svg +1 -1
- package/dist/checkout/svg/bluetooth-sharp.svg +1 -1
- package/dist/checkout/svg/bluetooth.svg +1 -1
- package/dist/checkout/svg/boat-outline.svg +1 -1
- package/dist/checkout/svg/boat-sharp.svg +1 -1
- package/dist/checkout/svg/boat.svg +1 -1
- package/dist/checkout/svg/body-outline.svg +1 -1
- package/dist/checkout/svg/body-sharp.svg +1 -1
- package/dist/checkout/svg/body.svg +1 -1
- package/dist/checkout/svg/bonfire-outline.svg +1 -1
- package/dist/checkout/svg/bonfire-sharp.svg +1 -1
- package/dist/checkout/svg/bonfire.svg +1 -1
- package/dist/checkout/svg/book-outline.svg +1 -1
- package/dist/checkout/svg/book-sharp.svg +1 -1
- package/dist/checkout/svg/book.svg +1 -1
- package/dist/checkout/svg/bookmark-outline.svg +1 -1
- package/dist/checkout/svg/bookmark-sharp.svg +1 -1
- package/dist/checkout/svg/bookmark.svg +1 -1
- package/dist/checkout/svg/bookmarks-outline.svg +1 -1
- package/dist/checkout/svg/bookmarks-sharp.svg +1 -1
- package/dist/checkout/svg/bookmarks.svg +1 -1
- package/dist/checkout/svg/bowling-ball-sharp.svg +1 -1
- package/dist/checkout/svg/bowling-ball.svg +1 -1
- package/dist/checkout/svg/briefcase-outline.svg +1 -1
- package/dist/checkout/svg/briefcase-sharp.svg +1 -1
- package/dist/checkout/svg/briefcase.svg +1 -1
- package/dist/checkout/svg/browsers-outline.svg +1 -1
- package/dist/checkout/svg/browsers-sharp.svg +1 -1
- package/dist/checkout/svg/browsers.svg +1 -1
- package/dist/checkout/svg/brush-outline.svg +1 -1
- package/dist/checkout/svg/brush-sharp.svg +1 -1
- package/dist/checkout/svg/brush.svg +1 -1
- package/dist/checkout/svg/bug-outline.svg +1 -1
- package/dist/checkout/svg/bug-sharp.svg +1 -1
- package/dist/checkout/svg/bug.svg +1 -1
- package/dist/checkout/svg/build-outline.svg +1 -1
- package/dist/checkout/svg/build-sharp.svg +1 -1
- package/dist/checkout/svg/build.svg +1 -1
- package/dist/checkout/svg/bulb-outline.svg +1 -1
- package/dist/checkout/svg/bulb-sharp.svg +1 -1
- package/dist/checkout/svg/bulb.svg +1 -1
- package/dist/checkout/svg/bus-outline.svg +1 -1
- package/dist/checkout/svg/bus-sharp.svg +1 -1
- package/dist/checkout/svg/bus.svg +1 -1
- package/dist/checkout/svg/business-outline.svg +1 -1
- package/dist/checkout/svg/business-sharp.svg +1 -1
- package/dist/checkout/svg/business.svg +1 -1
- package/dist/checkout/svg/cafe-outline.svg +1 -1
- package/dist/checkout/svg/cafe-sharp.svg +1 -1
- package/dist/checkout/svg/cafe.svg +1 -1
- package/dist/checkout/svg/calculator-outline.svg +1 -1
- package/dist/checkout/svg/calculator-sharp.svg +1 -1
- package/dist/checkout/svg/calculator.svg +1 -1
- package/dist/checkout/svg/calendar-clear-outline.svg +1 -1
- package/dist/checkout/svg/calendar-clear-sharp.svg +1 -1
- package/dist/checkout/svg/calendar-clear.svg +1 -1
- package/dist/checkout/svg/calendar-number-outline.svg +1 -1
- package/dist/checkout/svg/calendar-number-sharp.svg +1 -1
- package/dist/checkout/svg/calendar-number.svg +1 -1
- package/dist/checkout/svg/calendar-outline.svg +1 -1
- package/dist/checkout/svg/calendar-sharp.svg +1 -1
- package/dist/checkout/svg/calendar.svg +1 -1
- package/dist/checkout/svg/call-outline.svg +1 -1
- package/dist/checkout/svg/call-sharp.svg +1 -1
- package/dist/checkout/svg/call.svg +1 -1
- package/dist/checkout/svg/camera-outline.svg +1 -1
- package/dist/checkout/svg/camera-reverse-outline.svg +1 -1
- package/dist/checkout/svg/camera-reverse-sharp.svg +1 -1
- package/dist/checkout/svg/camera-reverse.svg +1 -1
- package/dist/checkout/svg/camera-sharp.svg +1 -1
- package/dist/checkout/svg/camera.svg +1 -1
- package/dist/checkout/svg/car-outline.svg +1 -1
- package/dist/checkout/svg/car-sharp.svg +1 -1
- package/dist/checkout/svg/car-sport-outline.svg +1 -1
- package/dist/checkout/svg/car-sport-sharp.svg +1 -1
- package/dist/checkout/svg/car-sport.svg +1 -1
- package/dist/checkout/svg/car.svg +1 -1
- package/dist/checkout/svg/card-outline.svg +1 -1
- package/dist/checkout/svg/card-sharp.svg +1 -1
- package/dist/checkout/svg/card.svg +1 -1
- package/dist/checkout/svg/caret-back-circle-outline.svg +1 -1
- package/dist/checkout/svg/caret-back-circle-sharp.svg +1 -1
- package/dist/checkout/svg/caret-back-circle.svg +1 -1
- package/dist/checkout/svg/caret-back-outline.svg +1 -1
- package/dist/checkout/svg/caret-back-sharp.svg +1 -1
- package/dist/checkout/svg/caret-back.svg +1 -1
- package/dist/checkout/svg/caret-down-circle-outline.svg +1 -1
- package/dist/checkout/svg/caret-down-circle-sharp.svg +1 -1
- package/dist/checkout/svg/caret-down-circle.svg +1 -1
- package/dist/checkout/svg/caret-down-outline.svg +1 -1
- package/dist/checkout/svg/caret-down-sharp.svg +1 -1
- package/dist/checkout/svg/caret-down.svg +1 -1
- package/dist/checkout/svg/caret-forward-circle-outline.svg +1 -1
- package/dist/checkout/svg/caret-forward-circle-sharp.svg +1 -1
- package/dist/checkout/svg/caret-forward-circle.svg +1 -1
- package/dist/checkout/svg/caret-forward-outline.svg +1 -1
- package/dist/checkout/svg/caret-forward-sharp.svg +1 -1
- package/dist/checkout/svg/caret-forward.svg +1 -1
- package/dist/checkout/svg/caret-up-circle-outline.svg +1 -1
- package/dist/checkout/svg/caret-up-circle-sharp.svg +1 -1
- package/dist/checkout/svg/caret-up-circle.svg +1 -1
- package/dist/checkout/svg/caret-up-outline.svg +1 -1
- package/dist/checkout/svg/caret-up-sharp.svg +1 -1
- package/dist/checkout/svg/caret-up.svg +1 -1
- package/dist/checkout/svg/cart-outline.svg +1 -1
- package/dist/checkout/svg/cart-sharp.svg +1 -1
- package/dist/checkout/svg/cart.svg +1 -1
- package/dist/checkout/svg/cash-outline.svg +1 -1
- package/dist/checkout/svg/cash-sharp.svg +1 -1
- package/dist/checkout/svg/cash.svg +1 -1
- package/dist/checkout/svg/cellular-outline.svg +1 -1
- package/dist/checkout/svg/cellular-sharp.svg +1 -1
- package/dist/checkout/svg/cellular.svg +1 -1
- package/dist/checkout/svg/chatbox-ellipses-outline.svg +1 -1
- package/dist/checkout/svg/chatbox-ellipses-sharp.svg +1 -1
- package/dist/checkout/svg/chatbox-ellipses.svg +1 -1
- package/dist/checkout/svg/chatbox-outline.svg +1 -1
- package/dist/checkout/svg/chatbox-sharp.svg +1 -1
- package/dist/checkout/svg/chatbox.svg +1 -1
- package/dist/checkout/svg/chatbubble-ellipses-outline.svg +1 -1
- package/dist/checkout/svg/chatbubble-ellipses-sharp.svg +1 -1
- package/dist/checkout/svg/chatbubble-ellipses.svg +1 -1
- package/dist/checkout/svg/chatbubble-outline.svg +1 -1
- package/dist/checkout/svg/chatbubble-sharp.svg +1 -1
- package/dist/checkout/svg/chatbubble.svg +1 -1
- package/dist/checkout/svg/chatbubbles-outline.svg +1 -1
- package/dist/checkout/svg/chatbubbles-sharp.svg +1 -1
- package/dist/checkout/svg/chatbubbles.svg +1 -1
- package/dist/checkout/svg/checkbox-outline.svg +1 -1
- package/dist/checkout/svg/checkbox-sharp.svg +1 -1
- package/dist/checkout/svg/checkbox.svg +1 -1
- package/dist/checkout/svg/checkmark-circle-outline.svg +1 -1
- package/dist/checkout/svg/checkmark-circle-sharp.svg +1 -1
- package/dist/checkout/svg/checkmark-circle.svg +1 -1
- package/dist/checkout/svg/checkmark-done-circle-outline.svg +1 -1
- package/dist/checkout/svg/checkmark-done-circle-sharp.svg +1 -1
- package/dist/checkout/svg/checkmark-done-circle.svg +1 -1
- package/dist/checkout/svg/checkmark-done-outline.svg +1 -1
- package/dist/checkout/svg/checkmark-done-sharp.svg +1 -1
- package/dist/checkout/svg/checkmark-done.svg +1 -1
- package/dist/checkout/svg/checkmark-outline.svg +1 -1
- package/dist/checkout/svg/checkmark-sharp.svg +1 -1
- package/dist/checkout/svg/checkmark.svg +1 -1
- package/dist/checkout/svg/chevron-back-circle-outline.svg +1 -1
- package/dist/checkout/svg/chevron-back-circle-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-back-circle.svg +1 -1
- package/dist/checkout/svg/chevron-back-outline.svg +1 -1
- package/dist/checkout/svg/chevron-back-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-back.svg +1 -1
- package/dist/checkout/svg/chevron-collapse-outline.svg +1 -1
- package/dist/checkout/svg/chevron-collapse-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-collapse.svg +1 -1
- package/dist/checkout/svg/chevron-down-circle-outline.svg +1 -1
- package/dist/checkout/svg/chevron-down-circle-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-down-circle.svg +1 -1
- package/dist/checkout/svg/chevron-down-outline.svg +1 -1
- package/dist/checkout/svg/chevron-down-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-down.svg +1 -1
- package/dist/checkout/svg/chevron-expand-outline.svg +1 -1
- package/dist/checkout/svg/chevron-expand-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-expand.svg +1 -1
- package/dist/checkout/svg/chevron-forward-circle-outline.svg +1 -1
- package/dist/checkout/svg/chevron-forward-circle-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-forward-circle.svg +1 -1
- package/dist/checkout/svg/chevron-forward-outline.svg +1 -1
- package/dist/checkout/svg/chevron-forward-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-forward.svg +1 -1
- package/dist/checkout/svg/chevron-up-circle-outline.svg +1 -1
- package/dist/checkout/svg/chevron-up-circle-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-up-circle.svg +1 -1
- package/dist/checkout/svg/chevron-up-outline.svg +1 -1
- package/dist/checkout/svg/chevron-up-sharp.svg +1 -1
- package/dist/checkout/svg/chevron-up.svg +1 -1
- package/dist/checkout/svg/clipboard-outline.svg +1 -1
- package/dist/checkout/svg/clipboard-sharp.svg +1 -1
- package/dist/checkout/svg/clipboard.svg +1 -1
- package/dist/checkout/svg/close-circle-outline.svg +1 -1
- package/dist/checkout/svg/close-circle-sharp.svg +1 -1
- package/dist/checkout/svg/close-circle.svg +1 -1
- package/dist/checkout/svg/close-outline.svg +1 -1
- package/dist/checkout/svg/close-sharp.svg +1 -1
- package/dist/checkout/svg/close.svg +1 -1
- package/dist/checkout/svg/cloud-circle-outline.svg +1 -1
- package/dist/checkout/svg/cloud-circle-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-circle.svg +1 -1
- package/dist/checkout/svg/cloud-done-outline.svg +1 -1
- package/dist/checkout/svg/cloud-done-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-done.svg +1 -1
- package/dist/checkout/svg/cloud-download-outline.svg +1 -1
- package/dist/checkout/svg/cloud-download-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-download.svg +1 -1
- package/dist/checkout/svg/cloud-offline-outline.svg +1 -1
- package/dist/checkout/svg/cloud-offline-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-offline.svg +1 -1
- package/dist/checkout/svg/cloud-outline.svg +1 -1
- package/dist/checkout/svg/cloud-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-upload-outline.svg +1 -1
- package/dist/checkout/svg/cloud-upload-sharp.svg +1 -1
- package/dist/checkout/svg/cloud-upload.svg +1 -1
- package/dist/checkout/svg/cloud.svg +1 -1
- package/dist/checkout/svg/cloudy-night-outline.svg +1 -1
- package/dist/checkout/svg/cloudy-night-sharp.svg +1 -1
- package/dist/checkout/svg/cloudy-night.svg +1 -1
- package/dist/checkout/svg/cloudy-outline.svg +1 -1
- package/dist/checkout/svg/cloudy-sharp.svg +1 -1
- package/dist/checkout/svg/cloudy.svg +1 -1
- package/dist/checkout/svg/code-download-outline.svg +1 -1
- package/dist/checkout/svg/code-download-sharp.svg +1 -1
- package/dist/checkout/svg/code-download.svg +1 -1
- package/dist/checkout/svg/code-outline.svg +1 -1
- package/dist/checkout/svg/code-sharp.svg +1 -1
- package/dist/checkout/svg/code-slash-outline.svg +1 -1
- package/dist/checkout/svg/code-slash-sharp.svg +1 -1
- package/dist/checkout/svg/code-slash.svg +1 -1
- package/dist/checkout/svg/code-working-outline.svg +1 -1
- package/dist/checkout/svg/code-working-sharp.svg +1 -1
- package/dist/checkout/svg/code-working.svg +1 -1
- package/dist/checkout/svg/code.svg +1 -1
- package/dist/checkout/svg/cog-outline.svg +1 -1
- package/dist/checkout/svg/cog-sharp.svg +1 -1
- package/dist/checkout/svg/cog.svg +1 -1
- package/dist/checkout/svg/color-fill-outline.svg +1 -1
- package/dist/checkout/svg/color-fill-sharp.svg +1 -1
- package/dist/checkout/svg/color-fill.svg +1 -1
- package/dist/checkout/svg/color-filter-outline.svg +1 -1
- package/dist/checkout/svg/color-filter-sharp.svg +1 -1
- package/dist/checkout/svg/color-filter.svg +1 -1
- package/dist/checkout/svg/color-palette-outline.svg +1 -1
- package/dist/checkout/svg/color-palette-sharp.svg +1 -1
- package/dist/checkout/svg/color-palette.svg +1 -1
- package/dist/checkout/svg/color-wand-outline.svg +1 -1
- package/dist/checkout/svg/color-wand-sharp.svg +1 -1
- package/dist/checkout/svg/color-wand.svg +1 -1
- package/dist/checkout/svg/compass-outline.svg +1 -1
- package/dist/checkout/svg/compass-sharp.svg +1 -1
- package/dist/checkout/svg/compass.svg +1 -1
- package/dist/checkout/svg/construct-outline.svg +1 -1
- package/dist/checkout/svg/construct-sharp.svg +1 -1
- package/dist/checkout/svg/construct.svg +1 -1
- package/dist/checkout/svg/contract-outline.svg +1 -1
- package/dist/checkout/svg/contract-sharp.svg +1 -1
- package/dist/checkout/svg/contract.svg +1 -1
- package/dist/checkout/svg/contrast-outline.svg +1 -1
- package/dist/checkout/svg/contrast-sharp.svg +1 -1
- package/dist/checkout/svg/contrast.svg +1 -1
- package/dist/checkout/svg/copy-outline.svg +1 -1
- package/dist/checkout/svg/copy-sharp.svg +1 -1
- package/dist/checkout/svg/copy.svg +1 -1
- package/dist/checkout/svg/create-outline.svg +1 -1
- package/dist/checkout/svg/create-sharp.svg +1 -1
- package/dist/checkout/svg/create.svg +1 -1
- package/dist/checkout/svg/crop-outline.svg +1 -1
- package/dist/checkout/svg/crop-sharp.svg +1 -1
- package/dist/checkout/svg/crop.svg +1 -1
- package/dist/checkout/svg/cube-outline.svg +1 -1
- package/dist/checkout/svg/cube-sharp.svg +1 -1
- package/dist/checkout/svg/cube.svg +1 -1
- package/dist/checkout/svg/cut-outline.svg +1 -1
- package/dist/checkout/svg/cut-sharp.svg +1 -1
- package/dist/checkout/svg/cut.svg +1 -1
- package/dist/checkout/svg/desktop-outline.svg +1 -1
- package/dist/checkout/svg/desktop-sharp.svg +1 -1
- package/dist/checkout/svg/desktop.svg +1 -1
- package/dist/checkout/svg/diamond-outline.svg +1 -1
- package/dist/checkout/svg/diamond-sharp.svg +1 -1
- package/dist/checkout/svg/diamond.svg +1 -1
- package/dist/checkout/svg/dice-outline.svg +1 -1
- package/dist/checkout/svg/dice-sharp.svg +1 -1
- package/dist/checkout/svg/dice.svg +1 -1
- package/dist/checkout/svg/disc-outline.svg +1 -1
- package/dist/checkout/svg/disc-sharp.svg +1 -1
- package/dist/checkout/svg/disc.svg +1 -1
- package/dist/checkout/svg/document-attach-outline.svg +1 -1
- package/dist/checkout/svg/document-attach-sharp.svg +1 -1
- package/dist/checkout/svg/document-attach.svg +1 -1
- package/dist/checkout/svg/document-lock-outline.svg +1 -1
- package/dist/checkout/svg/document-lock-sharp.svg +1 -1
- package/dist/checkout/svg/document-lock.svg +1 -1
- package/dist/checkout/svg/document-outline.svg +1 -1
- package/dist/checkout/svg/document-sharp.svg +1 -1
- package/dist/checkout/svg/document-text-outline.svg +1 -1
- package/dist/checkout/svg/document-text-sharp.svg +1 -1
- package/dist/checkout/svg/document-text.svg +1 -1
- package/dist/checkout/svg/document.svg +1 -1
- package/dist/checkout/svg/documents-outline.svg +1 -1
- package/dist/checkout/svg/documents-sharp.svg +1 -1
- package/dist/checkout/svg/documents.svg +1 -1
- package/dist/checkout/svg/download-outline.svg +1 -1
- package/dist/checkout/svg/download-sharp.svg +1 -1
- package/dist/checkout/svg/download.svg +1 -1
- package/dist/checkout/svg/duplicate-outline.svg +1 -1
- package/dist/checkout/svg/duplicate-sharp.svg +1 -1
- package/dist/checkout/svg/duplicate.svg +1 -1
- package/dist/checkout/svg/ear-outline.svg +1 -1
- package/dist/checkout/svg/ear-sharp.svg +1 -1
- package/dist/checkout/svg/ear.svg +1 -1
- package/dist/checkout/svg/earth-outline.svg +1 -1
- package/dist/checkout/svg/earth-sharp.svg +1 -1
- package/dist/checkout/svg/earth.svg +1 -1
- package/dist/checkout/svg/easel-outline.svg +1 -1
- package/dist/checkout/svg/easel-sharp.svg +1 -1
- package/dist/checkout/svg/easel.svg +1 -1
- package/dist/checkout/svg/egg-outline.svg +1 -1
- package/dist/checkout/svg/egg-sharp.svg +1 -1
- package/dist/checkout/svg/egg.svg +1 -1
- package/dist/checkout/svg/ellipse-outline.svg +1 -1
- package/dist/checkout/svg/ellipse-sharp.svg +1 -1
- package/dist/checkout/svg/ellipse.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal-circle-outline.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal-circle.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal-outline.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal-sharp.svg +1 -1
- package/dist/checkout/svg/ellipsis-horizontal.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical-circle-outline.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical-circle-sharp.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical-circle.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical-outline.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical-sharp.svg +1 -1
- package/dist/checkout/svg/ellipsis-vertical.svg +1 -1
- package/dist/checkout/svg/enter-outline.svg +1 -1
- package/dist/checkout/svg/enter-sharp.svg +1 -1
- package/dist/checkout/svg/enter.svg +1 -1
- package/dist/checkout/svg/exit-outline.svg +1 -1
- package/dist/checkout/svg/exit-sharp.svg +1 -1
- package/dist/checkout/svg/exit.svg +1 -1
- package/dist/checkout/svg/expand-outline.svg +1 -1
- package/dist/checkout/svg/expand-sharp.svg +1 -1
- package/dist/checkout/svg/expand.svg +1 -1
- package/dist/checkout/svg/extension-puzzle-outline.svg +1 -1
- package/dist/checkout/svg/extension-puzzle-sharp.svg +1 -1
- package/dist/checkout/svg/extension-puzzle.svg +1 -1
- package/dist/checkout/svg/eye-off-outline.svg +1 -1
- package/dist/checkout/svg/eye-off-sharp.svg +1 -1
- package/dist/checkout/svg/eye-off.svg +1 -1
- package/dist/checkout/svg/eye-outline.svg +1 -1
- package/dist/checkout/svg/eye-sharp.svg +1 -1
- package/dist/checkout/svg/eye.svg +1 -1
- package/dist/checkout/svg/eyedrop-outline.svg +1 -1
- package/dist/checkout/svg/eyedrop-sharp.svg +1 -1
- package/dist/checkout/svg/eyedrop.svg +1 -1
- package/dist/checkout/svg/fast-food-outline.svg +1 -1
- package/dist/checkout/svg/fast-food-sharp.svg +1 -1
- package/dist/checkout/svg/fast-food.svg +1 -1
- package/dist/checkout/svg/female-outline.svg +1 -1
- package/dist/checkout/svg/female-sharp.svg +1 -1
- package/dist/checkout/svg/female.svg +1 -1
- package/dist/checkout/svg/file-tray-full-outline.svg +1 -1
- package/dist/checkout/svg/file-tray-full-sharp.svg +1 -1
- package/dist/checkout/svg/file-tray-full.svg +1 -1
- package/dist/checkout/svg/file-tray-outline.svg +1 -1
- package/dist/checkout/svg/file-tray-sharp.svg +1 -1
- package/dist/checkout/svg/file-tray-stacked-outline.svg +1 -1
- package/dist/checkout/svg/file-tray-stacked-sharp.svg +1 -1
- package/dist/checkout/svg/file-tray-stacked.svg +1 -1
- package/dist/checkout/svg/file-tray.svg +1 -1
- package/dist/checkout/svg/film-outline.svg +1 -1
- package/dist/checkout/svg/film-sharp.svg +1 -1
- package/dist/checkout/svg/film.svg +1 -1
- package/dist/checkout/svg/filter-circle-outline.svg +1 -1
- package/dist/checkout/svg/filter-circle-sharp.svg +1 -1
- package/dist/checkout/svg/filter-circle.svg +1 -1
- package/dist/checkout/svg/filter-outline.svg +1 -1
- package/dist/checkout/svg/filter-sharp.svg +1 -1
- package/dist/checkout/svg/filter.svg +1 -1
- package/dist/checkout/svg/finger-print-outline.svg +1 -1
- package/dist/checkout/svg/finger-print-sharp.svg +1 -1
- package/dist/checkout/svg/finger-print.svg +1 -1
- package/dist/checkout/svg/fish-outline.svg +1 -1
- package/dist/checkout/svg/fish-sharp.svg +1 -1
- package/dist/checkout/svg/fish.svg +1 -1
- package/dist/checkout/svg/fitness-outline.svg +1 -1
- package/dist/checkout/svg/fitness-sharp.svg +1 -1
- package/dist/checkout/svg/fitness.svg +1 -1
- package/dist/checkout/svg/flag-outline.svg +1 -1
- package/dist/checkout/svg/flag-sharp.svg +1 -1
- package/dist/checkout/svg/flag.svg +1 -1
- package/dist/checkout/svg/flame-outline.svg +1 -1
- package/dist/checkout/svg/flame-sharp.svg +1 -1
- package/dist/checkout/svg/flame.svg +1 -1
- package/dist/checkout/svg/flash-off-outline.svg +1 -1
- package/dist/checkout/svg/flash-off-sharp.svg +1 -1
- package/dist/checkout/svg/flash-off.svg +1 -1
- package/dist/checkout/svg/flash-outline.svg +1 -1
- package/dist/checkout/svg/flash-sharp.svg +1 -1
- package/dist/checkout/svg/flash.svg +1 -1
- package/dist/checkout/svg/flashlight-outline.svg +1 -1
- package/dist/checkout/svg/flashlight-sharp.svg +1 -1
- package/dist/checkout/svg/flashlight.svg +1 -1
- package/dist/checkout/svg/flask-outline.svg +1 -1
- package/dist/checkout/svg/flask-sharp.svg +1 -1
- package/dist/checkout/svg/flask.svg +1 -1
- package/dist/checkout/svg/flower-outline.svg +1 -1
- package/dist/checkout/svg/flower-sharp.svg +1 -1
- package/dist/checkout/svg/flower.svg +1 -1
- package/dist/checkout/svg/folder-open-outline.svg +1 -1
- package/dist/checkout/svg/folder-open-sharp.svg +1 -1
- package/dist/checkout/svg/folder-open.svg +1 -1
- package/dist/checkout/svg/folder-outline.svg +1 -1
- package/dist/checkout/svg/folder-sharp.svg +1 -1
- package/dist/checkout/svg/folder.svg +1 -1
- package/dist/checkout/svg/football-outline.svg +1 -1
- package/dist/checkout/svg/football-sharp.svg +1 -1
- package/dist/checkout/svg/football.svg +1 -1
- package/dist/checkout/svg/footsteps-outline.svg +1 -1
- package/dist/checkout/svg/footsteps-sharp.svg +1 -1
- package/dist/checkout/svg/footsteps.svg +1 -1
- package/dist/checkout/svg/funnel-outline.svg +1 -1
- package/dist/checkout/svg/funnel-sharp.svg +1 -1
- package/dist/checkout/svg/funnel.svg +1 -1
- package/dist/checkout/svg/game-controller-outline.svg +1 -1
- package/dist/checkout/svg/game-controller-sharp.svg +1 -1
- package/dist/checkout/svg/game-controller.svg +1 -1
- package/dist/checkout/svg/gift-outline.svg +1 -1
- package/dist/checkout/svg/gift-sharp.svg +1 -1
- package/dist/checkout/svg/gift.svg +1 -1
- package/dist/checkout/svg/git-branch-outline.svg +1 -1
- package/dist/checkout/svg/git-branch-sharp.svg +1 -1
- package/dist/checkout/svg/git-branch.svg +1 -1
- package/dist/checkout/svg/git-commit-outline.svg +1 -1
- package/dist/checkout/svg/git-commit-sharp.svg +1 -1
- package/dist/checkout/svg/git-commit.svg +1 -1
- package/dist/checkout/svg/git-compare-outline.svg +1 -1
- package/dist/checkout/svg/git-compare-sharp.svg +1 -1
- package/dist/checkout/svg/git-compare.svg +1 -1
- package/dist/checkout/svg/git-merge-outline.svg +1 -1
- package/dist/checkout/svg/git-merge-sharp.svg +1 -1
- package/dist/checkout/svg/git-merge.svg +1 -1
- package/dist/checkout/svg/git-network-outline.svg +1 -1
- package/dist/checkout/svg/git-network-sharp.svg +1 -1
- package/dist/checkout/svg/git-network.svg +1 -1
- package/dist/checkout/svg/git-pull-request-outline.svg +1 -1
- package/dist/checkout/svg/git-pull-request-sharp.svg +1 -1
- package/dist/checkout/svg/git-pull-request.svg +1 -1
- package/dist/checkout/svg/glasses-outline.svg +1 -1
- package/dist/checkout/svg/glasses-sharp.svg +1 -1
- package/dist/checkout/svg/glasses.svg +1 -1
- package/dist/checkout/svg/globe-outline.svg +1 -1
- package/dist/checkout/svg/globe-sharp.svg +1 -1
- package/dist/checkout/svg/globe.svg +1 -1
- package/dist/checkout/svg/golf-outline.svg +1 -1
- package/dist/checkout/svg/golf-sharp.svg +1 -1
- package/dist/checkout/svg/golf.svg +1 -1
- package/dist/checkout/svg/grid-outline.svg +1 -1
- package/dist/checkout/svg/grid-sharp.svg +1 -1
- package/dist/checkout/svg/grid.svg +1 -1
- package/dist/checkout/svg/hammer-outline.svg +1 -1
- package/dist/checkout/svg/hammer-sharp.svg +1 -1
- package/dist/checkout/svg/hammer.svg +1 -1
- package/dist/checkout/svg/hand-left-outline.svg +1 -1
- package/dist/checkout/svg/hand-left-sharp.svg +1 -1
- package/dist/checkout/svg/hand-left.svg +1 -1
- package/dist/checkout/svg/hand-right-outline.svg +1 -1
- package/dist/checkout/svg/hand-right-sharp.svg +1 -1
- package/dist/checkout/svg/hand-right.svg +1 -1
- package/dist/checkout/svg/happy-outline.svg +1 -1
- package/dist/checkout/svg/happy-sharp.svg +1 -1
- package/dist/checkout/svg/happy.svg +1 -1
- package/dist/checkout/svg/hardware-chip-outline.svg +1 -1
- package/dist/checkout/svg/hardware-chip-sharp.svg +1 -1
- package/dist/checkout/svg/hardware-chip.svg +1 -1
- package/dist/checkout/svg/headset-outline.svg +1 -1
- package/dist/checkout/svg/headset-sharp.svg +1 -1
- package/dist/checkout/svg/headset.svg +1 -1
- package/dist/checkout/svg/heart-circle-outline.svg +1 -1
- package/dist/checkout/svg/heart-circle-sharp.svg +1 -1
- package/dist/checkout/svg/heart-circle.svg +1 -1
- package/dist/checkout/svg/heart-dislike-circle-outline.svg +1 -1
- package/dist/checkout/svg/heart-dislike-circle-sharp.svg +1 -1
- package/dist/checkout/svg/heart-dislike-circle.svg +1 -1
- package/dist/checkout/svg/heart-dislike-outline.svg +1 -1
- package/dist/checkout/svg/heart-dislike-sharp.svg +1 -1
- package/dist/checkout/svg/heart-dislike.svg +1 -1
- package/dist/checkout/svg/heart-half-outline.svg +1 -1
- package/dist/checkout/svg/heart-half-sharp.svg +1 -1
- package/dist/checkout/svg/heart-half.svg +1 -1
- package/dist/checkout/svg/heart-outline.svg +1 -1
- package/dist/checkout/svg/heart-sharp.svg +1 -1
- package/dist/checkout/svg/heart.svg +1 -1
- package/dist/checkout/svg/help-buoy-outline.svg +1 -1
- package/dist/checkout/svg/help-buoy-sharp.svg +1 -1
- package/dist/checkout/svg/help-buoy.svg +1 -1
- package/dist/checkout/svg/help-circle-outline.svg +1 -1
- package/dist/checkout/svg/help-circle-sharp.svg +1 -1
- package/dist/checkout/svg/help-circle.svg +1 -1
- package/dist/checkout/svg/help-outline.svg +1 -1
- package/dist/checkout/svg/help-sharp.svg +1 -1
- package/dist/checkout/svg/help.svg +1 -1
- package/dist/checkout/svg/home-outline.svg +1 -1
- package/dist/checkout/svg/home-sharp.svg +1 -1
- package/dist/checkout/svg/home.svg +1 -1
- package/dist/checkout/svg/hourglass-outline.svg +1 -1
- package/dist/checkout/svg/hourglass-sharp.svg +1 -1
- package/dist/checkout/svg/hourglass.svg +1 -1
- package/dist/checkout/svg/ice-cream-outline.svg +1 -1
- package/dist/checkout/svg/ice-cream-sharp.svg +1 -1
- package/dist/checkout/svg/ice-cream.svg +1 -1
- package/dist/checkout/svg/id-card-outline.svg +1 -1
- package/dist/checkout/svg/id-card-sharp.svg +1 -1
- package/dist/checkout/svg/id-card.svg +1 -1
- package/dist/checkout/svg/image-outline.svg +1 -1
- package/dist/checkout/svg/image-sharp.svg +1 -1
- package/dist/checkout/svg/image.svg +1 -1
- package/dist/checkout/svg/images-outline.svg +1 -1
- package/dist/checkout/svg/images-sharp.svg +1 -1
- package/dist/checkout/svg/images.svg +1 -1
- package/dist/checkout/svg/infinite-outline.svg +1 -1
- package/dist/checkout/svg/infinite-sharp.svg +1 -1
- package/dist/checkout/svg/infinite.svg +1 -1
- package/dist/checkout/svg/information-circle-outline.svg +1 -1
- package/dist/checkout/svg/information-circle-sharp.svg +1 -1
- package/dist/checkout/svg/information-circle.svg +1 -1
- package/dist/checkout/svg/information-outline.svg +1 -1
- package/dist/checkout/svg/information-sharp.svg +1 -1
- package/dist/checkout/svg/information.svg +1 -1
- package/dist/checkout/svg/invert-mode-outline.svg +1 -1
- package/dist/checkout/svg/invert-mode-sharp.svg +1 -1
- package/dist/checkout/svg/invert-mode.svg +1 -1
- package/dist/checkout/svg/journal-outline.svg +1 -1
- package/dist/checkout/svg/journal-sharp.svg +1 -1
- package/dist/checkout/svg/journal.svg +1 -1
- package/dist/checkout/svg/key-outline.svg +1 -1
- package/dist/checkout/svg/key-sharp.svg +1 -1
- package/dist/checkout/svg/key.svg +1 -1
- package/dist/checkout/svg/keypad-outline.svg +1 -1
- package/dist/checkout/svg/keypad-sharp.svg +1 -1
- package/dist/checkout/svg/keypad.svg +1 -1
- package/dist/checkout/svg/language-outline.svg +1 -1
- package/dist/checkout/svg/language-sharp.svg +1 -1
- package/dist/checkout/svg/language.svg +1 -1
- package/dist/checkout/svg/laptop-outline.svg +1 -1
- package/dist/checkout/svg/laptop-sharp.svg +1 -1
- package/dist/checkout/svg/laptop.svg +1 -1
- package/dist/checkout/svg/layers-outline.svg +1 -1
- package/dist/checkout/svg/layers-sharp.svg +1 -1
- package/dist/checkout/svg/layers.svg +1 -1
- package/dist/checkout/svg/leaf-outline.svg +1 -1
- package/dist/checkout/svg/leaf-sharp.svg +1 -1
- package/dist/checkout/svg/leaf.svg +1 -1
- package/dist/checkout/svg/library-outline.svg +1 -1
- package/dist/checkout/svg/library-sharp.svg +1 -1
- package/dist/checkout/svg/library.svg +1 -1
- package/dist/checkout/svg/link-outline.svg +1 -1
- package/dist/checkout/svg/link-sharp.svg +1 -1
- package/dist/checkout/svg/link.svg +1 -1
- package/dist/checkout/svg/list-circle-outline.svg +1 -1
- package/dist/checkout/svg/list-circle-sharp.svg +1 -1
- package/dist/checkout/svg/list-circle.svg +1 -1
- package/dist/checkout/svg/list-outline.svg +1 -1
- package/dist/checkout/svg/list-sharp.svg +1 -1
- package/dist/checkout/svg/list.svg +1 -1
- package/dist/checkout/svg/locate-outline.svg +1 -1
- package/dist/checkout/svg/locate-sharp.svg +1 -1
- package/dist/checkout/svg/locate.svg +1 -1
- package/dist/checkout/svg/location-outline.svg +1 -1
- package/dist/checkout/svg/location-sharp.svg +1 -1
- package/dist/checkout/svg/location.svg +1 -1
- package/dist/checkout/svg/lock-closed-outline.svg +1 -1
- package/dist/checkout/svg/lock-closed-sharp.svg +1 -1
- package/dist/checkout/svg/lock-closed.svg +1 -1
- package/dist/checkout/svg/lock-open-outline.svg +1 -1
- package/dist/checkout/svg/lock-open-sharp.svg +1 -1
- package/dist/checkout/svg/lock-open.svg +1 -1
- package/dist/checkout/svg/log-in-outline.svg +1 -1
- package/dist/checkout/svg/log-in-sharp.svg +1 -1
- package/dist/checkout/svg/log-in.svg +1 -1
- package/dist/checkout/svg/log-out-outline.svg +1 -1
- package/dist/checkout/svg/log-out-sharp.svg +1 -1
- package/dist/checkout/svg/log-out.svg +1 -1
- package/dist/checkout/svg/logo-alipay.svg +1 -1
- package/dist/checkout/svg/logo-amazon.svg +1 -1
- package/dist/checkout/svg/logo-amplify.svg +1 -1
- package/dist/checkout/svg/logo-android.svg +1 -1
- package/dist/checkout/svg/logo-angular.svg +1 -1
- package/dist/checkout/svg/logo-appflow.svg +1 -1
- package/dist/checkout/svg/logo-apple-appstore.svg +1 -1
- package/dist/checkout/svg/logo-apple-ar.svg +1 -1
- package/dist/checkout/svg/logo-apple.svg +1 -1
- package/dist/checkout/svg/logo-behance.svg +1 -1
- package/dist/checkout/svg/logo-bitbucket.svg +1 -1
- package/dist/checkout/svg/logo-bitcoin.svg +1 -1
- package/dist/checkout/svg/logo-buffer.svg +1 -1
- package/dist/checkout/svg/logo-capacitor.svg +1 -1
- package/dist/checkout/svg/logo-chrome.svg +1 -1
- package/dist/checkout/svg/logo-closed-captioning.svg +1 -1
- package/dist/checkout/svg/logo-codepen.svg +1 -1
- package/dist/checkout/svg/logo-css3.svg +1 -1
- package/dist/checkout/svg/logo-designernews.svg +1 -1
- package/dist/checkout/svg/logo-deviantart.svg +1 -1
- package/dist/checkout/svg/logo-discord.svg +1 -1
- package/dist/checkout/svg/logo-docker.svg +1 -1
- package/dist/checkout/svg/logo-dribbble.svg +1 -1
- package/dist/checkout/svg/logo-dropbox.svg +1 -1
- package/dist/checkout/svg/logo-edge.svg +1 -1
- package/dist/checkout/svg/logo-electron.svg +1 -1
- package/dist/checkout/svg/logo-euro.svg +1 -1
- package/dist/checkout/svg/logo-facebook.svg +1 -1
- package/dist/checkout/svg/logo-figma.svg +1 -1
- package/dist/checkout/svg/logo-firebase.svg +1 -1
- package/dist/checkout/svg/logo-firefox.svg +1 -1
- package/dist/checkout/svg/logo-flickr.svg +1 -1
- package/dist/checkout/svg/logo-foursquare.svg +1 -1
- package/dist/checkout/svg/logo-github.svg +1 -1
- package/dist/checkout/svg/logo-gitlab.svg +1 -1
- package/dist/checkout/svg/logo-google-playstore.svg +1 -1
- package/dist/checkout/svg/logo-google.svg +1 -1
- package/dist/checkout/svg/logo-hackernews.svg +1 -1
- package/dist/checkout/svg/logo-html5.svg +1 -1
- package/dist/checkout/svg/logo-instagram.svg +1 -1
- package/dist/checkout/svg/logo-ionic.svg +1 -1
- package/dist/checkout/svg/logo-ionitron.svg +1 -1
- package/dist/checkout/svg/logo-javascript.svg +1 -1
- package/dist/checkout/svg/logo-laravel.svg +1 -1
- package/dist/checkout/svg/logo-linkedin.svg +1 -1
- package/dist/checkout/svg/logo-markdown.svg +1 -1
- package/dist/checkout/svg/logo-mastodon.svg +1 -1
- package/dist/checkout/svg/logo-medium.svg +1 -1
- package/dist/checkout/svg/logo-microsoft.svg +1 -1
- package/dist/checkout/svg/logo-no-smoking.svg +1 -1
- package/dist/checkout/svg/logo-nodejs.svg +1 -1
- package/dist/checkout/svg/logo-npm.svg +1 -1
- package/dist/checkout/svg/logo-octocat.svg +1 -1
- package/dist/checkout/svg/logo-paypal.svg +1 -1
- package/dist/checkout/svg/logo-pinterest.svg +1 -1
- package/dist/checkout/svg/logo-playstation.svg +1 -1
- package/dist/checkout/svg/logo-pwa.svg +1 -1
- package/dist/checkout/svg/logo-python.svg +1 -1
- package/dist/checkout/svg/logo-react.svg +1 -1
- package/dist/checkout/svg/logo-reddit.svg +1 -1
- package/dist/checkout/svg/logo-rss.svg +1 -1
- package/dist/checkout/svg/logo-sass.svg +1 -1
- package/dist/checkout/svg/logo-skype.svg +1 -1
- package/dist/checkout/svg/logo-slack.svg +1 -1
- package/dist/checkout/svg/logo-snapchat.svg +1 -1
- package/dist/checkout/svg/logo-soundcloud.svg +1 -1
- package/dist/checkout/svg/logo-stackoverflow.svg +1 -1
- package/dist/checkout/svg/logo-steam.svg +1 -1
- package/dist/checkout/svg/logo-stencil.svg +1 -1
- package/dist/checkout/svg/logo-tableau.svg +1 -1
- package/dist/checkout/svg/logo-tiktok.svg +1 -1
- package/dist/checkout/svg/logo-trapeze.svg +1 -1
- package/dist/checkout/svg/logo-tumblr.svg +1 -1
- package/dist/checkout/svg/logo-tux.svg +1 -1
- package/dist/checkout/svg/logo-twitch.svg +1 -1
- package/dist/checkout/svg/logo-twitter.svg +1 -1
- package/dist/checkout/svg/logo-usd.svg +1 -1
- package/dist/checkout/svg/logo-venmo.svg +1 -1
- package/dist/checkout/svg/logo-vercel.svg +1 -1
- package/dist/checkout/svg/logo-vimeo.svg +1 -1
- package/dist/checkout/svg/logo-vk.svg +1 -1
- package/dist/checkout/svg/logo-vue.svg +1 -1
- package/dist/checkout/svg/logo-web-component.svg +1 -1
- package/dist/checkout/svg/logo-wechat.svg +1 -1
- package/dist/checkout/svg/logo-whatsapp.svg +1 -1
- package/dist/checkout/svg/logo-windows.svg +1 -1
- package/dist/checkout/svg/logo-wordpress.svg +1 -1
- package/dist/checkout/svg/logo-x.svg +1 -1
- package/dist/checkout/svg/logo-xbox.svg +1 -1
- package/dist/checkout/svg/logo-xing.svg +1 -1
- package/dist/checkout/svg/logo-yahoo.svg +1 -1
- package/dist/checkout/svg/logo-yen.svg +1 -1
- package/dist/checkout/svg/logo-youtube.svg +1 -1
- package/dist/checkout/svg/magnet-outline.svg +1 -1
- package/dist/checkout/svg/magnet-sharp.svg +1 -1
- package/dist/checkout/svg/magnet.svg +1 -1
- package/dist/checkout/svg/mail-open-outline.svg +1 -1
- package/dist/checkout/svg/mail-open-sharp.svg +1 -1
- package/dist/checkout/svg/mail-open.svg +1 -1
- package/dist/checkout/svg/mail-outline.svg +1 -1
- package/dist/checkout/svg/mail-sharp.svg +1 -1
- package/dist/checkout/svg/mail-unread-outline.svg +1 -1
- package/dist/checkout/svg/mail-unread-sharp.svg +1 -1
- package/dist/checkout/svg/mail-unread.svg +1 -1
- package/dist/checkout/svg/mail.svg +1 -1
- package/dist/checkout/svg/male-female-outline.svg +1 -1
- package/dist/checkout/svg/male-female-sharp.svg +1 -1
- package/dist/checkout/svg/male-female.svg +1 -1
- package/dist/checkout/svg/male-outline.svg +1 -1
- package/dist/checkout/svg/male-sharp.svg +1 -1
- package/dist/checkout/svg/male.svg +1 -1
- package/dist/checkout/svg/man-outline.svg +1 -1
- package/dist/checkout/svg/man-sharp.svg +1 -1
- package/dist/checkout/svg/man.svg +1 -1
- package/dist/checkout/svg/map-outline.svg +1 -1
- package/dist/checkout/svg/map-sharp.svg +1 -1
- package/dist/checkout/svg/map.svg +1 -1
- package/dist/checkout/svg/medal-outline.svg +1 -1
- package/dist/checkout/svg/medal-sharp.svg +1 -1
- package/dist/checkout/svg/medal.svg +1 -1
- package/dist/checkout/svg/medical-outline.svg +1 -1
- package/dist/checkout/svg/medical-sharp.svg +1 -1
- package/dist/checkout/svg/medical.svg +1 -1
- package/dist/checkout/svg/medkit-outline.svg +1 -1
- package/dist/checkout/svg/medkit-sharp.svg +1 -1
- package/dist/checkout/svg/medkit.svg +1 -1
- package/dist/checkout/svg/megaphone-outline.svg +1 -1
- package/dist/checkout/svg/megaphone-sharp.svg +1 -1
- package/dist/checkout/svg/megaphone.svg +1 -1
- package/dist/checkout/svg/menu-outline.svg +1 -1
- package/dist/checkout/svg/menu-sharp.svg +1 -1
- package/dist/checkout/svg/menu.svg +1 -1
- package/dist/checkout/svg/mic-circle-outline.svg +1 -1
- package/dist/checkout/svg/mic-circle-sharp.svg +1 -1
- package/dist/checkout/svg/mic-circle.svg +1 -1
- package/dist/checkout/svg/mic-off-circle-outline.svg +1 -1
- package/dist/checkout/svg/mic-off-circle-sharp.svg +1 -1
- package/dist/checkout/svg/mic-off-circle.svg +1 -1
- package/dist/checkout/svg/mic-off-outline.svg +1 -1
- package/dist/checkout/svg/mic-off-sharp.svg +1 -1
- package/dist/checkout/svg/mic-off.svg +1 -1
- package/dist/checkout/svg/mic-outline.svg +1 -1
- package/dist/checkout/svg/mic-sharp.svg +1 -1
- package/dist/checkout/svg/mic.svg +1 -1
- package/dist/checkout/svg/moon-outline.svg +1 -1
- package/dist/checkout/svg/moon-sharp.svg +1 -1
- package/dist/checkout/svg/moon.svg +1 -1
- package/dist/checkout/svg/move-outline.svg +1 -1
- package/dist/checkout/svg/move-sharp.svg +1 -1
- package/dist/checkout/svg/move.svg +1 -1
- package/dist/checkout/svg/musical-note-outline.svg +1 -1
- package/dist/checkout/svg/musical-note-sharp.svg +1 -1
- package/dist/checkout/svg/musical-note.svg +1 -1
- package/dist/checkout/svg/musical-notes-outline.svg +1 -1
- package/dist/checkout/svg/musical-notes-sharp.svg +1 -1
- package/dist/checkout/svg/musical-notes.svg +1 -1
- package/dist/checkout/svg/navigate-circle-outline.svg +1 -1
- package/dist/checkout/svg/navigate-circle-sharp.svg +1 -1
- package/dist/checkout/svg/navigate-circle.svg +1 -1
- package/dist/checkout/svg/navigate-outline.svg +1 -1
- package/dist/checkout/svg/navigate-sharp.svg +1 -1
- package/dist/checkout/svg/navigate.svg +1 -1
- package/dist/checkout/svg/newspaper-outline.svg +1 -1
- package/dist/checkout/svg/newspaper-sharp.svg +1 -1
- package/dist/checkout/svg/newspaper.svg +1 -1
- package/dist/checkout/svg/notifications-circle-outline.svg +1 -1
- package/dist/checkout/svg/notifications-circle-sharp.svg +1 -1
- package/dist/checkout/svg/notifications-circle.svg +1 -1
- package/dist/checkout/svg/notifications-off-circle-outline.svg +1 -1
- package/dist/checkout/svg/notifications-off-circle-sharp.svg +1 -1
- package/dist/checkout/svg/notifications-off-circle.svg +1 -1
- package/dist/checkout/svg/notifications-off-outline.svg +1 -1
- package/dist/checkout/svg/notifications-off-sharp.svg +1 -1
- package/dist/checkout/svg/notifications-off.svg +1 -1
- package/dist/checkout/svg/notifications-outline.svg +1 -1
- package/dist/checkout/svg/notifications-sharp.svg +1 -1
- package/dist/checkout/svg/notifications.svg +1 -1
- package/dist/checkout/svg/nuclear-outline.svg +1 -1
- package/dist/checkout/svg/nuclear-sharp.svg +1 -1
- package/dist/checkout/svg/nuclear.svg +1 -1
- package/dist/checkout/svg/nutrition-outline.svg +1 -1
- package/dist/checkout/svg/nutrition-sharp.svg +1 -1
- package/dist/checkout/svg/nutrition.svg +1 -1
- package/dist/checkout/svg/open-outline.svg +1 -1
- package/dist/checkout/svg/open-sharp.svg +1 -1
- package/dist/checkout/svg/open.svg +1 -1
- package/dist/checkout/svg/options-outline.svg +1 -1
- package/dist/checkout/svg/options-sharp.svg +1 -1
- package/dist/checkout/svg/options.svg +1 -1
- package/dist/checkout/svg/paper-plane-outline.svg +1 -1
- package/dist/checkout/svg/paper-plane-sharp.svg +1 -1
- package/dist/checkout/svg/paper-plane.svg +1 -1
- package/dist/checkout/svg/partly-sunny-outline.svg +1 -1
- package/dist/checkout/svg/partly-sunny-sharp.svg +1 -1
- package/dist/checkout/svg/partly-sunny.svg +1 -1
- package/dist/checkout/svg/pause-circle-outline.svg +1 -1
- package/dist/checkout/svg/pause-circle-sharp.svg +1 -1
- package/dist/checkout/svg/pause-circle.svg +1 -1
- package/dist/checkout/svg/pause-outline.svg +1 -1
- package/dist/checkout/svg/pause-sharp.svg +1 -1
- package/dist/checkout/svg/pause.svg +1 -1
- package/dist/checkout/svg/paw-outline.svg +1 -1
- package/dist/checkout/svg/paw-sharp.svg +1 -1
- package/dist/checkout/svg/paw.svg +1 -1
- package/dist/checkout/svg/pencil-outline.svg +1 -1
- package/dist/checkout/svg/pencil-sharp.svg +1 -1
- package/dist/checkout/svg/pencil.svg +1 -1
- package/dist/checkout/svg/people-circle-outline.svg +1 -1
- package/dist/checkout/svg/people-circle-sharp.svg +1 -1
- package/dist/checkout/svg/people-circle.svg +1 -1
- package/dist/checkout/svg/people-outline.svg +1 -1
- package/dist/checkout/svg/people-sharp.svg +1 -1
- package/dist/checkout/svg/people.svg +1 -1
- package/dist/checkout/svg/person-add-outline.svg +1 -1
- package/dist/checkout/svg/person-add-sharp.svg +1 -1
- package/dist/checkout/svg/person-add.svg +1 -1
- package/dist/checkout/svg/person-circle-outline.svg +1 -1
- package/dist/checkout/svg/person-circle-sharp.svg +1 -1
- package/dist/checkout/svg/person-circle.svg +1 -1
- package/dist/checkout/svg/person-outline.svg +1 -1
- package/dist/checkout/svg/person-remove-outline.svg +1 -1
- package/dist/checkout/svg/person-remove-sharp.svg +1 -1
- package/dist/checkout/svg/person-remove.svg +1 -1
- package/dist/checkout/svg/person-sharp.svg +1 -1
- package/dist/checkout/svg/person.svg +1 -1
- package/dist/checkout/svg/phone-landscape-outline.svg +1 -1
- package/dist/checkout/svg/phone-landscape-sharp.svg +1 -1
- package/dist/checkout/svg/phone-landscape.svg +1 -1
- package/dist/checkout/svg/phone-portrait-outline.svg +1 -1
- package/dist/checkout/svg/phone-portrait-sharp.svg +1 -1
- package/dist/checkout/svg/phone-portrait.svg +1 -1
- package/dist/checkout/svg/pie-chart-outline.svg +1 -1
- package/dist/checkout/svg/pie-chart-sharp.svg +1 -1
- package/dist/checkout/svg/pie-chart.svg +1 -1
- package/dist/checkout/svg/pin-outline.svg +1 -1
- package/dist/checkout/svg/pin-sharp.svg +1 -1
- package/dist/checkout/svg/pin.svg +1 -1
- package/dist/checkout/svg/pint-outline.svg +1 -1
- package/dist/checkout/svg/pint-sharp.svg +1 -1
- package/dist/checkout/svg/pint.svg +1 -1
- package/dist/checkout/svg/pizza-outline.svg +1 -1
- package/dist/checkout/svg/pizza-sharp.svg +1 -1
- package/dist/checkout/svg/pizza.svg +1 -1
- package/dist/checkout/svg/planet-outline.svg +1 -1
- package/dist/checkout/svg/planet-sharp.svg +1 -1
- package/dist/checkout/svg/planet.svg +1 -1
- package/dist/checkout/svg/play-back-circle-outline.svg +1 -1
- package/dist/checkout/svg/play-back-circle-sharp.svg +1 -1
- package/dist/checkout/svg/play-back-circle.svg +1 -1
- package/dist/checkout/svg/play-back-outline.svg +1 -1
- package/dist/checkout/svg/play-back-sharp.svg +1 -1
- package/dist/checkout/svg/play-back.svg +1 -1
- package/dist/checkout/svg/play-circle-outline.svg +1 -1
- package/dist/checkout/svg/play-circle-sharp.svg +1 -1
- package/dist/checkout/svg/play-circle.svg +1 -1
- package/dist/checkout/svg/play-forward-circle-outline.svg +1 -1
- package/dist/checkout/svg/play-forward-circle-sharp.svg +1 -1
- package/dist/checkout/svg/play-forward-circle.svg +1 -1
- package/dist/checkout/svg/play-forward-outline.svg +1 -1
- package/dist/checkout/svg/play-forward-sharp.svg +1 -1
- package/dist/checkout/svg/play-forward.svg +1 -1
- package/dist/checkout/svg/play-outline.svg +1 -1
- package/dist/checkout/svg/play-sharp.svg +1 -1
- package/dist/checkout/svg/play-skip-back-circle-outline.svg +1 -1
- package/dist/checkout/svg/play-skip-back-circle-sharp.svg +1 -1
- package/dist/checkout/svg/play-skip-back-circle.svg +1 -1
- package/dist/checkout/svg/play-skip-back-outline.svg +1 -1
- package/dist/checkout/svg/play-skip-back-sharp.svg +1 -1
- package/dist/checkout/svg/play-skip-back.svg +1 -1
- package/dist/checkout/svg/play-skip-forward-circle-outline.svg +1 -1
- package/dist/checkout/svg/play-skip-forward-circle-sharp.svg +1 -1
- package/dist/checkout/svg/play-skip-forward-circle.svg +1 -1
- package/dist/checkout/svg/play-skip-forward-outline.svg +1 -1
- package/dist/checkout/svg/play-skip-forward-sharp.svg +1 -1
- package/dist/checkout/svg/play-skip-forward.svg +1 -1
- package/dist/checkout/svg/play.svg +1 -1
- package/dist/checkout/svg/podium-outline.svg +1 -1
- package/dist/checkout/svg/podium-sharp.svg +1 -1
- package/dist/checkout/svg/podium.svg +1 -1
- package/dist/checkout/svg/power-outline.svg +1 -1
- package/dist/checkout/svg/power-sharp.svg +1 -1
- package/dist/checkout/svg/power.svg +1 -1
- package/dist/checkout/svg/pricetag-outline.svg +1 -1
- package/dist/checkout/svg/pricetag-sharp.svg +1 -1
- package/dist/checkout/svg/pricetag.svg +1 -1
- package/dist/checkout/svg/pricetags-outline.svg +1 -1
- package/dist/checkout/svg/pricetags-sharp.svg +1 -1
- package/dist/checkout/svg/pricetags.svg +1 -1
- package/dist/checkout/svg/print-outline.svg +1 -1
- package/dist/checkout/svg/print-sharp.svg +1 -1
- package/dist/checkout/svg/print.svg +1 -1
- package/dist/checkout/svg/prism-outline.svg +1 -1
- package/dist/checkout/svg/prism-sharp.svg +1 -1
- package/dist/checkout/svg/prism.svg +1 -1
- package/dist/checkout/svg/pulse-outline.svg +1 -1
- package/dist/checkout/svg/pulse-sharp.svg +1 -1
- package/dist/checkout/svg/pulse.svg +1 -1
- package/dist/checkout/svg/push-outline.svg +1 -1
- package/dist/checkout/svg/push-sharp.svg +1 -1
- package/dist/checkout/svg/push.svg +1 -1
- package/dist/checkout/svg/qr-code-outline.svg +1 -1
- package/dist/checkout/svg/qr-code-sharp.svg +1 -1
- package/dist/checkout/svg/qr-code.svg +1 -1
- package/dist/checkout/svg/radio-button-off-outline.svg +1 -1
- package/dist/checkout/svg/radio-button-off-sharp.svg +1 -1
- package/dist/checkout/svg/radio-button-off.svg +1 -1
- package/dist/checkout/svg/radio-button-on-outline.svg +1 -1
- package/dist/checkout/svg/radio-button-on-sharp.svg +1 -1
- package/dist/checkout/svg/radio-button-on.svg +1 -1
- package/dist/checkout/svg/radio-outline.svg +1 -1
- package/dist/checkout/svg/radio-sharp.svg +1 -1
- package/dist/checkout/svg/radio.svg +1 -1
- package/dist/checkout/svg/rainy-outline.svg +1 -1
- package/dist/checkout/svg/rainy-sharp.svg +1 -1
- package/dist/checkout/svg/rainy.svg +1 -1
- package/dist/checkout/svg/reader-outline.svg +1 -1
- package/dist/checkout/svg/reader-sharp.svg +1 -1
- package/dist/checkout/svg/reader.svg +1 -1
- package/dist/checkout/svg/receipt-outline.svg +1 -1
- package/dist/checkout/svg/receipt-sharp.svg +1 -1
- package/dist/checkout/svg/receipt.svg +1 -1
- package/dist/checkout/svg/recording-outline.svg +1 -1
- package/dist/checkout/svg/recording-sharp.svg +1 -1
- package/dist/checkout/svg/recording.svg +1 -1
- package/dist/checkout/svg/refresh-circle-outline.svg +1 -1
- package/dist/checkout/svg/refresh-circle-sharp.svg +1 -1
- package/dist/checkout/svg/refresh-circle.svg +1 -1
- package/dist/checkout/svg/refresh-outline.svg +1 -1
- package/dist/checkout/svg/refresh-sharp.svg +1 -1
- package/dist/checkout/svg/refresh.svg +1 -1
- package/dist/checkout/svg/reload-circle-outline.svg +1 -1
- package/dist/checkout/svg/reload-circle-sharp.svg +1 -1
- package/dist/checkout/svg/reload-circle.svg +1 -1
- package/dist/checkout/svg/reload-outline.svg +1 -1
- package/dist/checkout/svg/reload-sharp.svg +1 -1
- package/dist/checkout/svg/reload.svg +1 -1
- package/dist/checkout/svg/remove-circle-outline.svg +1 -1
- package/dist/checkout/svg/remove-circle-sharp.svg +1 -1
- package/dist/checkout/svg/remove-circle.svg +1 -1
- package/dist/checkout/svg/remove-outline.svg +1 -1
- package/dist/checkout/svg/remove-sharp.svg +1 -1
- package/dist/checkout/svg/remove.svg +1 -1
- package/dist/checkout/svg/reorder-four-outline.svg +1 -1
- package/dist/checkout/svg/reorder-four-sharp.svg +1 -1
- package/dist/checkout/svg/reorder-four.svg +1 -1
- package/dist/checkout/svg/reorder-three-outline.svg +1 -1
- package/dist/checkout/svg/reorder-three-sharp.svg +1 -1
- package/dist/checkout/svg/reorder-three.svg +1 -1
- package/dist/checkout/svg/reorder-two-outline.svg +1 -1
- package/dist/checkout/svg/reorder-two-sharp.svg +1 -1
- package/dist/checkout/svg/reorder-two.svg +1 -1
- package/dist/checkout/svg/repeat-outline.svg +1 -1
- package/dist/checkout/svg/repeat-sharp.svg +1 -1
- package/dist/checkout/svg/repeat.svg +1 -1
- package/dist/checkout/svg/resize-outline.svg +1 -1
- package/dist/checkout/svg/resize-sharp.svg +1 -1
- package/dist/checkout/svg/resize.svg +1 -1
- package/dist/checkout/svg/restaurant-outline.svg +1 -1
- package/dist/checkout/svg/restaurant-sharp.svg +1 -1
- package/dist/checkout/svg/restaurant.svg +1 -1
- package/dist/checkout/svg/return-down-back-outline.svg +1 -1
- package/dist/checkout/svg/return-down-back-sharp.svg +1 -1
- package/dist/checkout/svg/return-down-back.svg +1 -1
- package/dist/checkout/svg/return-down-forward-outline.svg +1 -1
- package/dist/checkout/svg/return-down-forward-sharp.svg +1 -1
- package/dist/checkout/svg/return-down-forward.svg +1 -1
- package/dist/checkout/svg/return-up-back-outline.svg +1 -1
- package/dist/checkout/svg/return-up-back-sharp.svg +1 -1
- package/dist/checkout/svg/return-up-back.svg +1 -1
- package/dist/checkout/svg/return-up-forward-outline.svg +1 -1
- package/dist/checkout/svg/return-up-forward-sharp.svg +1 -1
- package/dist/checkout/svg/return-up-forward.svg +1 -1
- package/dist/checkout/svg/ribbon-outline.svg +1 -1
- package/dist/checkout/svg/ribbon-sharp.svg +1 -1
- package/dist/checkout/svg/ribbon.svg +1 -1
- package/dist/checkout/svg/rocket-outline.svg +1 -1
- package/dist/checkout/svg/rocket-sharp.svg +1 -1
- package/dist/checkout/svg/rocket.svg +1 -1
- package/dist/checkout/svg/rose-outline.svg +1 -1
- package/dist/checkout/svg/rose-sharp.svg +1 -1
- package/dist/checkout/svg/rose.svg +1 -1
- package/dist/checkout/svg/sad-outline.svg +1 -1
- package/dist/checkout/svg/sad-sharp.svg +1 -1
- package/dist/checkout/svg/sad.svg +1 -1
- package/dist/checkout/svg/save-outline.svg +1 -1
- package/dist/checkout/svg/save-sharp.svg +1 -1
- package/dist/checkout/svg/save.svg +1 -1
- package/dist/checkout/svg/scale-outline.svg +1 -1
- package/dist/checkout/svg/scale-sharp.svg +1 -1
- package/dist/checkout/svg/scale.svg +1 -1
- package/dist/checkout/svg/scan-circle-outline.svg +1 -1
- package/dist/checkout/svg/scan-circle-sharp.svg +1 -1
- package/dist/checkout/svg/scan-circle.svg +1 -1
- package/dist/checkout/svg/scan-outline.svg +1 -1
- package/dist/checkout/svg/scan-sharp.svg +1 -1
- package/dist/checkout/svg/scan.svg +1 -1
- package/dist/checkout/svg/school-outline.svg +1 -1
- package/dist/checkout/svg/school-sharp.svg +1 -1
- package/dist/checkout/svg/school.svg +1 -1
- package/dist/checkout/svg/search-circle-outline.svg +1 -1
- package/dist/checkout/svg/search-circle-sharp.svg +1 -1
- package/dist/checkout/svg/search-circle.svg +1 -1
- package/dist/checkout/svg/search-outline.svg +1 -1
- package/dist/checkout/svg/search-sharp.svg +1 -1
- package/dist/checkout/svg/search.svg +1 -1
- package/dist/checkout/svg/send-outline.svg +1 -1
- package/dist/checkout/svg/send-sharp.svg +1 -1
- package/dist/checkout/svg/send.svg +1 -1
- package/dist/checkout/svg/server-outline.svg +1 -1
- package/dist/checkout/svg/server-sharp.svg +1 -1
- package/dist/checkout/svg/server.svg +1 -1
- package/dist/checkout/svg/settings-outline.svg +1 -1
- package/dist/checkout/svg/settings-sharp.svg +1 -1
- package/dist/checkout/svg/settings.svg +1 -1
- package/dist/checkout/svg/shapes-outline.svg +1 -1
- package/dist/checkout/svg/shapes-sharp.svg +1 -1
- package/dist/checkout/svg/shapes.svg +1 -1
- package/dist/checkout/svg/share-outline.svg +1 -1
- package/dist/checkout/svg/share-sharp.svg +1 -1
- package/dist/checkout/svg/share-social-outline.svg +1 -1
- package/dist/checkout/svg/share-social-sharp.svg +1 -1
- package/dist/checkout/svg/share-social.svg +1 -1
- package/dist/checkout/svg/share.svg +1 -1
- package/dist/checkout/svg/shield-checkmark-outline.svg +1 -1
- package/dist/checkout/svg/shield-checkmark-sharp.svg +1 -1
- package/dist/checkout/svg/shield-checkmark.svg +1 -1
- package/dist/checkout/svg/shield-half-outline.svg +1 -1
- package/dist/checkout/svg/shield-half-sharp.svg +1 -1
- package/dist/checkout/svg/shield-half.svg +1 -1
- package/dist/checkout/svg/shield-outline.svg +1 -1
- package/dist/checkout/svg/shield-sharp.svg +1 -1
- package/dist/checkout/svg/shield.svg +1 -1
- package/dist/checkout/svg/shirt-outline.svg +1 -1
- package/dist/checkout/svg/shirt-sharp.svg +1 -1
- package/dist/checkout/svg/shirt.svg +1 -1
- package/dist/checkout/svg/shuffle-outline.svg +1 -1
- package/dist/checkout/svg/shuffle-sharp.svg +1 -1
- package/dist/checkout/svg/shuffle.svg +1 -1
- package/dist/checkout/svg/skull-outline.svg +1 -1
- package/dist/checkout/svg/skull-sharp.svg +1 -1
- package/dist/checkout/svg/skull.svg +1 -1
- package/dist/checkout/svg/snow-outline.svg +1 -1
- package/dist/checkout/svg/snow-sharp.svg +1 -1
- package/dist/checkout/svg/snow.svg +1 -1
- package/dist/checkout/svg/sparkles-outline.svg +1 -1
- package/dist/checkout/svg/sparkles-sharp.svg +1 -1
- package/dist/checkout/svg/sparkles.svg +1 -1
- package/dist/checkout/svg/speedometer-outline.svg +1 -1
- package/dist/checkout/svg/speedometer-sharp.svg +1 -1
- package/dist/checkout/svg/speedometer.svg +1 -1
- package/dist/checkout/svg/square-outline.svg +1 -1
- package/dist/checkout/svg/square-sharp.svg +1 -1
- package/dist/checkout/svg/square.svg +1 -1
- package/dist/checkout/svg/star-half-outline.svg +1 -1
- package/dist/checkout/svg/star-half-sharp.svg +1 -1
- package/dist/checkout/svg/star-half.svg +1 -1
- package/dist/checkout/svg/star-outline.svg +1 -1
- package/dist/checkout/svg/star-sharp.svg +1 -1
- package/dist/checkout/svg/star.svg +1 -1
- package/dist/checkout/svg/stats-chart-outline.svg +1 -1
- package/dist/checkout/svg/stats-chart-sharp.svg +1 -1
- package/dist/checkout/svg/stats-chart.svg +1 -1
- package/dist/checkout/svg/stop-circle-outline.svg +1 -1
- package/dist/checkout/svg/stop-circle-sharp.svg +1 -1
- package/dist/checkout/svg/stop-circle.svg +1 -1
- package/dist/checkout/svg/stop-outline.svg +1 -1
- package/dist/checkout/svg/stop-sharp.svg +1 -1
- package/dist/checkout/svg/stop.svg +1 -1
- package/dist/checkout/svg/stopwatch-outline.svg +1 -1
- package/dist/checkout/svg/stopwatch-sharp.svg +1 -1
- package/dist/checkout/svg/stopwatch.svg +1 -1
- package/dist/checkout/svg/storefront-outline.svg +1 -1
- package/dist/checkout/svg/storefront-sharp.svg +1 -1
- package/dist/checkout/svg/storefront.svg +1 -1
- package/dist/checkout/svg/subway-outline.svg +1 -1
- package/dist/checkout/svg/subway-sharp.svg +1 -1
- package/dist/checkout/svg/subway.svg +1 -1
- package/dist/checkout/svg/sunny-outline.svg +1 -1
- package/dist/checkout/svg/sunny-sharp.svg +1 -1
- package/dist/checkout/svg/sunny.svg +1 -1
- package/dist/checkout/svg/swap-horizontal-outline.svg +1 -1
- package/dist/checkout/svg/swap-horizontal-sharp.svg +1 -1
- package/dist/checkout/svg/swap-horizontal.svg +1 -1
- package/dist/checkout/svg/swap-vertical-outline.svg +1 -1
- package/dist/checkout/svg/swap-vertical-sharp.svg +1 -1
- package/dist/checkout/svg/swap-vertical.svg +1 -1
- package/dist/checkout/svg/sync-circle-outline.svg +1 -1
- package/dist/checkout/svg/sync-circle-sharp.svg +1 -1
- package/dist/checkout/svg/sync-circle.svg +1 -1
- package/dist/checkout/svg/sync-outline.svg +1 -1
- package/dist/checkout/svg/sync-sharp.svg +1 -1
- package/dist/checkout/svg/sync.svg +1 -1
- package/dist/checkout/svg/tablet-landscape-outline.svg +1 -1
- package/dist/checkout/svg/tablet-landscape-sharp.svg +1 -1
- package/dist/checkout/svg/tablet-landscape.svg +1 -1
- package/dist/checkout/svg/tablet-portrait-outline.svg +1 -1
- package/dist/checkout/svg/tablet-portrait-sharp.svg +1 -1
- package/dist/checkout/svg/tablet-portrait.svg +1 -1
- package/dist/checkout/svg/telescope-outline.svg +1 -1
- package/dist/checkout/svg/telescope-sharp.svg +1 -1
- package/dist/checkout/svg/telescope.svg +1 -1
- package/dist/checkout/svg/tennisball-outline.svg +1 -1
- package/dist/checkout/svg/tennisball-sharp.svg +1 -1
- package/dist/checkout/svg/tennisball.svg +1 -1
- package/dist/checkout/svg/terminal-outline.svg +1 -1
- package/dist/checkout/svg/terminal-sharp.svg +1 -1
- package/dist/checkout/svg/terminal.svg +1 -1
- package/dist/checkout/svg/text-outline.svg +1 -1
- package/dist/checkout/svg/text-sharp.svg +1 -1
- package/dist/checkout/svg/text.svg +1 -1
- package/dist/checkout/svg/thermometer-outline.svg +1 -1
- package/dist/checkout/svg/thermometer-sharp.svg +1 -1
- package/dist/checkout/svg/thermometer.svg +1 -1
- package/dist/checkout/svg/thumbs-down-outline.svg +1 -1
- package/dist/checkout/svg/thumbs-down-sharp.svg +1 -1
- package/dist/checkout/svg/thumbs-down.svg +1 -1
- package/dist/checkout/svg/thumbs-up-outline.svg +1 -1
- package/dist/checkout/svg/thumbs-up-sharp.svg +1 -1
- package/dist/checkout/svg/thumbs-up.svg +1 -1
- package/dist/checkout/svg/thunderstorm-outline.svg +1 -1
- package/dist/checkout/svg/thunderstorm-sharp.svg +1 -1
- package/dist/checkout/svg/thunderstorm.svg +1 -1
- package/dist/checkout/svg/ticket-outline.svg +1 -1
- package/dist/checkout/svg/ticket-sharp.svg +1 -1
- package/dist/checkout/svg/ticket.svg +1 -1
- package/dist/checkout/svg/time-outline.svg +1 -1
- package/dist/checkout/svg/time-sharp.svg +1 -1
- package/dist/checkout/svg/time.svg +1 -1
- package/dist/checkout/svg/timer-outline.svg +1 -1
- package/dist/checkout/svg/timer-sharp.svg +1 -1
- package/dist/checkout/svg/timer.svg +1 -1
- package/dist/checkout/svg/today-outline.svg +1 -1
- package/dist/checkout/svg/today-sharp.svg +1 -1
- package/dist/checkout/svg/today.svg +1 -1
- package/dist/checkout/svg/toggle-outline.svg +1 -1
- package/dist/checkout/svg/toggle-sharp.svg +1 -1
- package/dist/checkout/svg/toggle.svg +1 -1
- package/dist/checkout/svg/trail-sign-outline.svg +1 -1
- package/dist/checkout/svg/trail-sign-sharp.svg +1 -1
- package/dist/checkout/svg/trail-sign.svg +1 -1
- package/dist/checkout/svg/train-outline.svg +1 -1
- package/dist/checkout/svg/train-sharp.svg +1 -1
- package/dist/checkout/svg/train.svg +1 -1
- package/dist/checkout/svg/transgender-outline.svg +1 -1
- package/dist/checkout/svg/transgender-sharp.svg +1 -1
- package/dist/checkout/svg/transgender.svg +1 -1
- package/dist/checkout/svg/trash-bin-outline.svg +1 -1
- package/dist/checkout/svg/trash-bin-sharp.svg +1 -1
- package/dist/checkout/svg/trash-bin.svg +1 -1
- package/dist/checkout/svg/trash-outline.svg +1 -1
- package/dist/checkout/svg/trash-sharp.svg +1 -1
- package/dist/checkout/svg/trash.svg +1 -1
- package/dist/checkout/svg/trending-down-outline.svg +1 -1
- package/dist/checkout/svg/trending-down-sharp.svg +1 -1
- package/dist/checkout/svg/trending-down.svg +1 -1
- package/dist/checkout/svg/trending-up-outline.svg +1 -1
- package/dist/checkout/svg/trending-up-sharp.svg +1 -1
- package/dist/checkout/svg/trending-up.svg +1 -1
- package/dist/checkout/svg/triangle-outline.svg +1 -1
- package/dist/checkout/svg/triangle-sharp.svg +1 -1
- package/dist/checkout/svg/triangle.svg +1 -1
- package/dist/checkout/svg/trophy-outline.svg +1 -1
- package/dist/checkout/svg/trophy-sharp.svg +1 -1
- package/dist/checkout/svg/trophy.svg +1 -1
- package/dist/checkout/svg/tv-outline.svg +1 -1
- package/dist/checkout/svg/tv-sharp.svg +1 -1
- package/dist/checkout/svg/tv.svg +1 -1
- package/dist/checkout/svg/umbrella-outline.svg +1 -1
- package/dist/checkout/svg/umbrella-sharp.svg +1 -1
- package/dist/checkout/svg/umbrella.svg +1 -1
- package/dist/checkout/svg/unlink-outline.svg +1 -1
- package/dist/checkout/svg/unlink-sharp.svg +1 -1
- package/dist/checkout/svg/unlink.svg +1 -1
- package/dist/checkout/svg/videocam-off-outline.svg +1 -1
- package/dist/checkout/svg/videocam-off-sharp.svg +1 -1
- package/dist/checkout/svg/videocam-off.svg +1 -1
- package/dist/checkout/svg/videocam-outline.svg +1 -1
- package/dist/checkout/svg/videocam-sharp.svg +1 -1
- package/dist/checkout/svg/videocam.svg +1 -1
- package/dist/checkout/svg/volume-high-outline.svg +1 -1
- package/dist/checkout/svg/volume-high-sharp.svg +1 -1
- package/dist/checkout/svg/volume-high.svg +1 -1
- package/dist/checkout/svg/volume-low-outline.svg +1 -1
- package/dist/checkout/svg/volume-low-sharp.svg +1 -1
- package/dist/checkout/svg/volume-low.svg +1 -1
- package/dist/checkout/svg/volume-medium-outline.svg +1 -1
- package/dist/checkout/svg/volume-medium-sharp.svg +1 -1
- package/dist/checkout/svg/volume-medium.svg +1 -1
- package/dist/checkout/svg/volume-mute-outline.svg +1 -1
- package/dist/checkout/svg/volume-mute-sharp.svg +1 -1
- package/dist/checkout/svg/volume-mute.svg +1 -1
- package/dist/checkout/svg/volume-off-outline.svg +1 -1
- package/dist/checkout/svg/volume-off-sharp.svg +1 -1
- package/dist/checkout/svg/volume-off.svg +1 -1
- package/dist/checkout/svg/walk-outline.svg +1 -1
- package/dist/checkout/svg/walk-sharp.svg +1 -1
- package/dist/checkout/svg/walk.svg +1 -1
- package/dist/checkout/svg/wallet-outline.svg +1 -1
- package/dist/checkout/svg/wallet-sharp.svg +1 -1
- package/dist/checkout/svg/wallet.svg +1 -1
- package/dist/checkout/svg/warning-outline.svg +1 -1
- package/dist/checkout/svg/warning-sharp.svg +1 -1
- package/dist/checkout/svg/warning.svg +1 -1
- package/dist/checkout/svg/watch-outline.svg +1 -1
- package/dist/checkout/svg/watch-sharp.svg +1 -1
- package/dist/checkout/svg/watch.svg +1 -1
- package/dist/checkout/svg/water-outline.svg +1 -1
- package/dist/checkout/svg/water-sharp.svg +1 -1
- package/dist/checkout/svg/water.svg +1 -1
- package/dist/checkout/svg/wifi-outline.svg +1 -1
- package/dist/checkout/svg/wifi-sharp.svg +1 -1
- package/dist/checkout/svg/wifi.svg +1 -1
- package/dist/checkout/svg/wine-outline.svg +1 -1
- package/dist/checkout/svg/wine-sharp.svg +1 -1
- package/dist/checkout/svg/wine.svg +1 -1
- package/dist/checkout/svg/woman-outline.svg +1 -1
- package/dist/checkout/svg/woman-sharp.svg +1 -1
- package/dist/checkout/svg/woman.svg +1 -1
- package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +106 -188
- package/dist/cjs/amwal-installments-guide.cjs.entry.js +1 -2
- package/dist/cjs/amwal-pos.cjs.entry.js +4 -3
- package/dist/cjs/amwal-widget-modal.cjs.entry.js +7 -4
- package/dist/cjs/amwal-widget.cjs.entry.js +10 -5
- package/dist/cjs/animation-BhN-MT4J.js +1065 -0
- package/dist/cjs/app-globals-NtXImkuk.js +7 -0
- package/dist/cjs/ar-CbT6TM-Q.js +0 -3
- package/dist/cjs/capacitor-CqhugS19.js +0 -3
- package/dist/cjs/checkout.cjs.js +5 -8
- package/dist/cjs/compare-with-utils-JlLIkecm.js +0 -3
- package/dist/cjs/config-ptk2Lf4l.js +174 -0
- package/dist/cjs/cubic-bezier-Bv3PvaRI.js +0 -3
- package/dist/cjs/data-UgkxeXMB.js +1673 -0
- package/dist/cjs/dir-Br-7_bel.js +0 -3
- package/dist/cjs/focus-visible-Da2o6bTP.js +0 -3
- package/dist/cjs/form-controller-DRf0gBOg.js +66 -0
- package/dist/cjs/framework-delegate-D-6PUvOi.js +144 -0
- package/dist/cjs/gesture-controller-IMq9Cgi2.js +197 -0
- package/dist/cjs/haptic-CC9tl6g8.js +212 -0
- package/dist/cjs/hardware-back-button-C2D2eOk8.js +122 -0
- package/dist/cjs/helpers-B4vhh9gt.js +438 -0
- package/dist/cjs/i18n-uGNv9SLK.js +0 -3
- package/dist/cjs/index-6eOg4xTk.js +51 -0
- package/dist/cjs/index-CH3IFTaK.js +38 -0
- package/dist/cjs/index-CKcQE8Zg.js +467 -0
- package/dist/cjs/index-D3mJ1Cix.js +0 -3
- package/dist/cjs/index-DZA7ogU0.js +244 -0
- package/dist/cjs/index-DncWzXDA.js +3738 -0
- package/dist/cjs/index-XMjUjboS.js +198 -0
- package/dist/cjs/index-bc_r9XRf.js +320 -0
- package/dist/cjs/index-q1ImtF5k.js +140 -0
- package/dist/cjs/index.cjs.js +0 -3
- package/dist/cjs/input-shims-CCRbO2DB.js +619 -0
- package/dist/cjs/input.utils-CyVgmmWQ.js +141 -0
- package/dist/cjs/ion-accordion-group.cjs.entry.js +18 -27
- package/dist/cjs/ion-accordion.cjs.entry.js +29 -126
- package/dist/cjs/ion-action-sheet_3.cjs.entry.js +1016 -0
- package/dist/cjs/ion-app.cjs.entry.js +16 -17
- package/dist/cjs/ion-avatar.cjs.entry.js +3 -4
- package/dist/cjs/ion-back-button.cjs.entry.js +18 -20
- package/dist/cjs/ion-backdrop.cjs.entry.js +15 -13
- package/dist/cjs/ion-badge.cjs.entry.js +7 -7
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +23 -28
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +19 -20
- package/dist/cjs/ion-buttons_3.cjs.entry.js +886 -0
- package/dist/cjs/ion-card-content.cjs.entry.js +3 -4
- package/dist/cjs/ion-card-header.cjs.entry.js +5 -10
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +7 -7
- package/dist/cjs/ion-card-title.cjs.entry.js +6 -6
- package/dist/cjs/ion-card.cjs.entry.js +12 -20
- package/dist/cjs/ion-checkbox_7.cjs.entry.js +965 -0
- package/dist/cjs/ion-chip.cjs.entry.js +5 -11
- package/dist/cjs/ion-col.cjs.entry.js +28 -5
- package/dist/cjs/ion-content.cjs.entry.js +411 -0
- package/dist/cjs/ion-datetime-button.cjs.entry.js +23 -27
- package/dist/cjs/ion-datetime.cjs.entry.js +287 -354
- package/dist/cjs/ion-fab-button.cjs.entry.js +22 -42
- package/dist/cjs/ion-fab-list.cjs.entry.js +8 -13
- package/dist/cjs/ion-fab.cjs.entry.js +9 -15
- package/dist/cjs/ion-footer.cjs.entry.js +10 -17
- package/dist/cjs/ion-grid.cjs.entry.js +4 -8
- package/dist/cjs/ion-header.cjs.entry.js +340 -0
- package/dist/cjs/ion-icon.cjs.entry.js +214 -274
- package/dist/cjs/ion-img.cjs.entry.js +11 -6
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +11 -10
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +16 -34
- package/dist/cjs/ion-input.cjs.entry.js +147 -187
- package/dist/cjs/ion-item-divider.cjs.entry.js +7 -14
- package/dist/cjs/ion-item-group.cjs.entry.js +3 -4
- package/dist/cjs/ion-item-option.cjs.entry.js +14 -19
- package/dist/cjs/ion-item-options.cjs.entry.js +6 -11
- package/dist/cjs/ion-item-sliding.cjs.entry.js +12 -14
- package/dist/cjs/ion-loading.cjs.entry.js +40 -58
- package/dist/cjs/ion-menu-button.cjs.entry.js +18 -25
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +13 -18
- package/dist/cjs/ion-menu.cjs.entry.js +90 -137
- package/dist/cjs/ion-modal.cjs.entry.js +1733 -0
- package/dist/cjs/ion-nav-link.cjs.entry.js +6 -7
- package/dist/cjs/ion-nav.cjs.entry.js +24 -22
- package/dist/cjs/ion-note.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker-column.cjs.entry.js +364 -0
- package/dist/cjs/ion-picker.cjs.entry.js +279 -0
- package/dist/cjs/ion-popover.cjs.entry.js +59 -185
- package/dist/cjs/ion-progress-bar.cjs.entry.js +8 -28
- package/dist/cjs/ion-range.cjs.entry.js +160 -207
- package/dist/cjs/ion-refresher-content.cjs.entry.js +15 -12
- package/dist/cjs/ion-refresher.cjs.entry.js +18 -110
- package/dist/cjs/ion-reorder-group.cjs.entry.js +15 -31
- package/dist/cjs/ion-reorder.cjs.entry.js +4 -5
- package/dist/cjs/ion-route-redirect.cjs.entry.js +9 -4
- package/dist/cjs/ion-route.cjs.entry.js +14 -11
- package/dist/cjs/ion-router-link.cjs.entry.js +11 -11
- package/dist/cjs/ion-router-outlet.cjs.entry.js +16 -18
- package/dist/cjs/ion-router.cjs.entry.js +18 -38
- package/dist/cjs/ion-row.cjs.entry.js +3 -4
- package/dist/cjs/ion-searchbar.cjs.entry.js +53 -93
- package/dist/cjs/ion-segment-button.cjs.entry.js +18 -46
- package/dist/cjs/ion-segment.cjs.entry.js +48 -164
- package/dist/cjs/ion-select-option.cjs.entry.js +4 -7
- package/dist/cjs/ion-select.cjs.entry.js +228 -339
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +5 -9
- package/dist/cjs/ion-spinner.cjs.entry.js +8 -9
- package/dist/cjs/ion-split-pane.cjs.entry.js +30 -42
- package/dist/cjs/ion-tab-bar.cjs.entry.js +16 -31
- package/dist/cjs/ion-tab-button.cjs.entry.js +16 -17
- package/dist/cjs/ion-tab.cjs.entry.js +12 -9
- package/dist/cjs/ion-tabs.cjs.entry.js +10 -37
- package/dist/cjs/ion-textarea.cjs.entry.js +112 -161
- package/dist/cjs/ion-thumbnail.cjs.entry.js +3 -4
- package/dist/cjs/ion-title.cjs.entry.js +54 -0
- package/dist/cjs/ion-toast.cjs.entry.js +75 -102
- package/dist/cjs/ion-toggle.cjs.entry.js +89 -158
- package/dist/cjs/ion-toolbar.cjs.entry.js +73 -0
- package/dist/cjs/ionic-global-DRLi5Iq3.js +235 -0
- package/dist/cjs/ios.transition-D4vyO_a_.js +654 -0
- package/dist/cjs/keyboard-DuKzsHsS.js +0 -3
- package/dist/cjs/keyboard-controller-rH21qC_2.js +0 -3
- package/dist/cjs/keyboard-iyHR2ZF4.js +0 -3
- package/dist/cjs/loader.cjs.js +4 -7
- package/dist/cjs/lock-controller-58TZFRHC.js +0 -3
- package/dist/cjs/md.transition-Dkxy3kpE.js +59 -0
- package/dist/cjs/menu-toggle-util-CmPuayU0.js +14 -0
- package/dist/cjs/notch-controller-Dtpow1eD.js +155 -0
- package/dist/cjs/overlays-Bc8tk6t5.js +870 -0
- package/dist/cjs/refresher.utils-CPl6gciv.js +206 -0
- package/dist/cjs/spinner-configs-BN41iw42.js +0 -3
- package/dist/cjs/status-tap-XtIhF72O.js +42 -0
- package/dist/cjs/swipe-back-C9j0kufI.js +81 -0
- package/dist/cjs/theme-DbHdw1Nx.js +0 -3
- package/dist/cjs/watch-options-DOFUPyuf.js +0 -3
- package/dist/collection/collection-manifest.json +3 -9
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.css +1 -1
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +40 -55
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +0 -1
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +0 -1
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +0 -1
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +2 -3
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +0 -1
- package/dist/collection/components/amwal-pos/amwal-pos.js +0 -1
- package/dist/collection/components/amwal-pos/amwal-pos.stories.js +0 -1
- package/dist/collection/components/amwal-widget/amwal-widget-modal.js +0 -1
- package/dist/collection/components/amwal-widget/amwal-widget.js +8 -7
- package/dist/collection/components/amwal-widget/amwal-widget.stories.js +0 -1
- package/dist/collection/lang/i18n.js +0 -1
- package/dist/components/amwal-checkout-button.js +1 -5375
- package/dist/components/amwal-installments-guide.js +1 -83
- package/dist/components/amwal-installments-timeline.js +1 -9
- package/dist/components/amwal-pos.js +1 -3670
- package/dist/components/amwal-widget-modal.js +1 -9
- package/dist/components/amwal-widget.js +1 -422
- package/dist/components/index.js +1 -9
- package/dist/components/ion-accordion-group.js +1 -271
- package/dist/components/ion-accordion.js +1 -459
- package/dist/components/ion-action-sheet.js +1 -9
- package/dist/components/ion-alert.js +1 -9
- package/dist/components/ion-app.js +1 -130
- package/dist/components/ion-avatar.js +1 -44
- package/dist/components/ion-back-button.js +1 -133
- package/dist/components/ion-backdrop.js +1 -9
- package/dist/components/ion-badge.js +1 -50
- package/dist/components/ion-breadcrumb.js +1 -140
- package/dist/components/ion-breadcrumbs.js +1 -167
- package/dist/components/ion-button.js +1 -9
- package/dist/components/ion-buttons.js +1 -9
- package/dist/components/ion-card-content.js +1 -48
- package/dist/components/ion-card-header.js +1 -59
- package/dist/components/ion-card-subtitle.js +1 -51
- package/dist/components/ion-card-title.js +1 -51
- package/dist/components/ion-card.js +1 -110
- package/dist/components/ion-checkbox.js +1 -9
- package/dist/components/ion-chip.js +1 -69
- package/dist/components/ion-col.js +2 -167
- package/dist/components/ion-content.js +1 -9
- package/dist/components/ion-datetime-button.js +1 -386
- package/dist/components/ion-datetime.js +2 -2051
- package/dist/components/ion-fab-button.js +1 -154
- package/dist/components/ion-fab-list.js +1 -69
- package/dist/components/ion-fab.js +1 -104
- package/dist/components/ion-footer.js +2 -163
- package/dist/components/ion-grid.js +1 -49
- package/dist/components/ion-header.js +4 -9
- package/dist/components/ion-icon.js +1 -9
- package/dist/components/ion-img.js +1 -127
- package/dist/components/ion-infinite-scroll-content.js +1 -72
- package/dist/components/ion-infinite-scroll.js +1 -239
- package/dist/components/ion-input.js +1 -620
- package/dist/components/ion-item-divider.js +1 -62
- package/dist/components/ion-item-group.js +1 -49
- package/dist/components/ion-item-option.js +1 -94
- package/dist/components/ion-item-options.js +1 -76
- package/dist/components/ion-item-sliding.js +1 -460
- package/dist/components/ion-item.js +1 -9
- package/dist/components/ion-label.js +1 -9
- package/dist/components/ion-list-header.js +1 -9
- package/dist/components/ion-list.js +1 -9
- package/dist/components/ion-loading.js +3 -354
- package/dist/components/ion-menu-button.js +1 -112
- package/dist/components/ion-menu-toggle.js +1 -67
- package/dist/components/ion-menu.js +1 -744
- package/dist/components/ion-modal.js +7 -9
- package/dist/components/ion-nav-link.js +2 -68
- package/dist/components/ion-nav.js +2 -955
- package/dist/components/ion-note.js +1 -50
- package/dist/components/ion-picker-column-internal.js +1 -0
- package/dist/components/ion-picker-column.js +1 -9
- package/dist/components/ion-picker-internal.js +1 -0
- package/dist/components/ion-picker.js +7 -9
- package/dist/components/ion-popover.js +1 -9
- package/dist/components/ion-progress-bar.js +1 -103
- package/dist/components/ion-radio-group.js +1 -9
- package/dist/components/ion-radio.js +1 -9
- package/dist/components/ion-range.js +2 -848
- package/dist/components/ion-refresher-content.js +1 -91
- package/dist/components/ion-refresher.js +1 -753
- package/dist/components/ion-reorder-group.js +1 -325
- package/dist/components/ion-reorder.js +1 -63
- package/dist/components/ion-ripple-effect.js +1 -9
- package/dist/components/ion-route-redirect.js +1 -48
- package/dist/components/ion-route.js +1 -77
- package/dist/components/ion-router-link.js +1 -64
- package/dist/components/ion-router-outlet.js +1 -229
- package/dist/components/ion-router.js +3 -857
- package/dist/components/ion-row.js +1 -39
- package/dist/components/ion-searchbar.js +1 -532
- package/dist/components/ion-segment-button.js +1 -176
- package/dist/components/ion-segment.js +1 -605
- package/dist/components/ion-select-option.js +1 -49
- package/dist/components/ion-select-popover.js +1 -9
- package/dist/components/ion-select.js +1 -1038
- package/dist/components/ion-skeleton-text.js +1 -67
- package/dist/components/ion-spinner.js +1 -9
- package/dist/components/ion-split-pane.js +1 -193
- package/dist/components/ion-tab-bar.js +1 -118
- package/dist/components/ion-tab-button.js +1 -130
- package/dist/components/ion-tab.js +1 -85
- package/dist/components/ion-tabs.js +1 -207
- package/dist/components/ion-text.js +1 -9
- package/dist/components/ion-textarea.js +1 -559
- package/dist/components/ion-thumbnail.js +1 -39
- package/dist/components/ion-title.js +1 -9
- package/dist/components/ion-toast.js +3 -955
- package/dist/components/ion-toggle.js +1 -363
- package/dist/components/ion-toolbar.js +1 -9
- package/dist/components/p-55BwDerf.js +8 -0
- package/dist/components/p-B-M4K7iJ.js +7 -0
- package/dist/components/p-B-hirT0v.js +1 -38
- package/dist/components/p-B3WORC1a.js +1 -47
- package/dist/components/p-B5XH2zAk.js +1 -0
- package/dist/components/p-B5ZghgSh.js +4 -0
- package/dist/components/p-BEVStXwd.js +7 -0
- package/dist/components/p-BH0TCnxk.js +4 -0
- package/dist/components/p-BIA8A9ZO.js +1 -0
- package/dist/components/p-BOkYKP6F.js +1 -0
- package/dist/components/p-BOm0KT2x.js +1 -0
- package/dist/components/p-Bb_Zji0h.js +4 -0
- package/dist/components/p-BgOwfqIY.js +2 -83
- package/dist/components/p-BmVRXR1y.js +1 -75
- package/dist/components/p-BnQDByf2.js +1 -0
- package/dist/components/p-BoxjYI-Q.js +4 -0
- package/dist/components/p-BriBxgcM.js +1 -0
- package/dist/components/p-BwKjt_Dc.js +4 -0
- package/dist/components/p-Bx78uXfc.js +5 -0
- package/dist/components/p-C-20JWsp.js +4 -0
- package/dist/components/p-C03M5ZSM.js +1 -16
- package/dist/components/p-C53feagD.js +1 -18
- package/dist/components/p-CLrB3zV0.js +4 -0
- package/dist/components/p-CN34uOrj.js +9 -0
- package/dist/components/p-CQmcNwZM.js +4 -0
- package/dist/components/p-CYPPT3AE.js +4 -0
- package/dist/components/p-CYd0Smt1.js +1 -0
- package/dist/components/p-CgPXSjzI.js +4 -0
- package/dist/components/p-Cho32MPa.js +4 -0
- package/dist/components/p-ClE6rMJs.js +4 -0
- package/dist/components/p-Cm9b7fIl.js +1 -0
- package/dist/components/p-CukVBo5-.js +4 -0
- package/dist/components/p-CwRU9ccI.js +1 -0
- package/dist/components/p-D2NxOvQ8.js +2 -14
- package/dist/components/p-D4DqwBlW.js +4 -0
- package/dist/components/p-D7YY0NXg.js +4 -0
- package/dist/components/p-D8OVJo1v.js +7 -0
- package/dist/components/p-DKg_dYcq.js +2 -166
- package/dist/components/p-DLVYPrYs.js +1 -0
- package/dist/components/p-DMmSL7_l.js +1 -0
- package/dist/components/p-DOPF2QRF.js +1 -0
- package/dist/components/p-DTgJTJD6.js +1 -0
- package/dist/components/p-DiVJyqlX.js +1 -43
- package/dist/components/p-Dl_WhQZu.js +4 -0
- package/dist/components/p-DoR35tr_.js +4 -0
- package/dist/components/p-DrS88eFz.js +1 -0
- package/dist/components/p-Dtdm8lKC.js +1 -47
- package/dist/components/p-DuZ7hY1a.js +2 -145
- package/dist/components/p-Dwo-QLgs.js +5 -0
- package/dist/components/p-Dx-C8Ob_.js +7 -0
- package/dist/components/p-DxEgz9x_.js +1 -0
- package/dist/components/p-DxSo4SXG.js +1 -0
- package/dist/components/p-HSPzo8it.js +1 -0
- package/dist/components/p-OrwCUtWu.js +4 -0
- package/dist/components/p-UgkI2Wa4.js +1 -0
- package/dist/components/p-VeNdmYSo.js +1 -0
- package/dist/components/p-YbpebnFS.js +4 -0
- package/dist/components/p-ZjP4CjeZ.js +1 -7
- package/dist/components/p-_VuKPdkD.js +4 -0
- package/dist/components/p-aWL6BxTN.js +4 -0
- package/dist/components/p-hHmYLOfE.js +1 -90
- package/dist/components/p-qoI-S7yk.js +4 -0
- package/dist/components/p-uXV7tzS3.js +1 -0
- package/dist/components/p-wiOwkFtc.js +7 -0
- package/dist/components/p-yu3xCFhr.js +7 -0
- package/dist/components/p-zp5f483d.js +1 -0
- package/dist/esm/amwal-checkout-button_5.entry.js +106 -188
- package/dist/esm/amwal-installments-guide.entry.js +1 -2
- package/dist/esm/amwal-pos.entry.js +4 -3
- package/dist/esm/amwal-widget-modal.entry.js +7 -4
- package/dist/esm/amwal-widget.entry.js +10 -5
- package/dist/esm/animation-DRf3dwMu.js +1063 -0
- package/dist/esm/app-globals-BHnkZZiH.js +5 -0
- package/dist/esm/ar-B3WORC1a.js +0 -3
- package/dist/esm/capacitor-CG3xQUND.js +0 -3
- package/dist/esm/checkout.js +6 -9
- package/dist/esm/compare-with-utils-sObYyvOy.js +0 -3
- package/dist/esm/config-yu3xCFhr.js +171 -0
- package/dist/esm/cubic-bezier-hHmYLOfE.js +0 -3
- package/dist/esm/data-Cl-_yBA0.js +1628 -0
- package/dist/esm/dir-C53feagD.js +0 -3
- package/dist/esm/focus-visible-BmVRXR1y.js +0 -3
- package/dist/esm/form-controller-xetTxjL6.js +64 -0
- package/dist/esm/framework-delegate-D_uGiYYw.js +140 -0
- package/dist/esm/gesture-controller-CukVBo5-.js +195 -0
- package/dist/esm/haptic-D5jGzBs8.js +206 -0
- package/dist/esm/hardware-back-button-CzxcJiYO.js +116 -0
- package/dist/esm/helpers-C6kqtbmV.js +415 -0
- package/dist/esm/i18n-C_AfxZ5D.js +0 -3
- package/dist/esm/index-93OyAGoo.js +3721 -0
- package/dist/esm/index-BMJhFU53.js +128 -0
- package/dist/esm/index-C75BfBAE.js +27 -0
- package/dist/esm/index-CNcx43L8.js +234 -0
- package/dist/esm/index-CcopIPA0.js +464 -0
- package/dist/esm/index-D8d_89Nl.js +34 -0
- package/dist/esm/index-DUF6JAQL.js +318 -0
- package/dist/esm/index-DuUXGZp2.js +196 -0
- package/dist/esm/index-ZjP4CjeZ.js +0 -3
- package/dist/esm/index.js +0 -3
- package/dist/esm/input-shims-DSFPFhb7.js +617 -0
- package/dist/esm/input.utils-BuIvhxo3.js +138 -0
- package/dist/esm/ion-accordion-group.entry.js +18 -27
- package/dist/esm/ion-accordion.entry.js +28 -125
- package/dist/esm/ion-action-sheet_3.entry.js +1012 -0
- package/dist/esm/ion-app.entry.js +11 -12
- package/dist/esm/ion-avatar.entry.js +3 -4
- package/dist/esm/ion-back-button.entry.js +14 -16
- package/dist/esm/ion-backdrop.entry.js +15 -13
- package/dist/esm/ion-badge.entry.js +7 -7
- package/dist/esm/ion-breadcrumb.entry.js +23 -28
- package/dist/esm/ion-breadcrumbs.entry.js +19 -20
- package/dist/esm/ion-buttons_3.entry.js +882 -0
- package/dist/esm/ion-card-content.entry.js +3 -4
- package/dist/esm/ion-card-header.entry.js +5 -10
- package/dist/esm/ion-card-subtitle.entry.js +7 -7
- package/dist/esm/ion-card-title.entry.js +6 -6
- package/dist/esm/ion-card.entry.js +12 -20
- package/dist/esm/ion-checkbox_7.entry.js +957 -0
- package/dist/esm/ion-chip.entry.js +5 -11
- package/dist/esm/ion-col.entry.js +28 -5
- package/dist/esm/ion-content.entry.js +409 -0
- package/dist/esm/ion-datetime-button.entry.js +23 -27
- package/dist/esm/ion-datetime.entry.js +257 -324
- package/dist/esm/ion-fab-button.entry.js +22 -42
- package/dist/esm/ion-fab-list.entry.js +8 -13
- package/dist/esm/ion-fab.entry.js +9 -15
- package/dist/esm/ion-footer.entry.js +10 -17
- package/dist/esm/ion-grid.entry.js +4 -8
- package/dist/esm/ion-header.entry.js +338 -0
- package/dist/esm/ion-icon.entry.js +214 -274
- package/dist/esm/ion-img.entry.js +11 -6
- package/dist/esm/ion-infinite-scroll-content.entry.js +9 -8
- package/dist/esm/ion-infinite-scroll.entry.js +16 -34
- package/dist/esm/ion-input.entry.js +147 -187
- package/dist/esm/ion-item-divider.entry.js +7 -14
- package/dist/esm/ion-item-group.entry.js +3 -4
- package/dist/esm/ion-item-option.entry.js +14 -19
- package/dist/esm/ion-item-options.entry.js +6 -11
- package/dist/esm/ion-item-sliding.entry.js +12 -14
- package/dist/esm/ion-loading.entry.js +38 -56
- package/dist/esm/ion-menu-button.entry.js +17 -24
- package/dist/esm/ion-menu-toggle.entry.js +13 -18
- package/dist/esm/ion-menu.entry.js +88 -135
- package/dist/esm/ion-modal.entry.js +1731 -0
- package/dist/esm/ion-nav-link.entry.js +6 -7
- package/dist/esm/ion-nav.entry.js +21 -19
- package/dist/esm/ion-note.entry.js +7 -7
- package/dist/esm/ion-picker-column.entry.js +362 -0
- package/dist/esm/ion-picker.entry.js +277 -0
- package/dist/esm/ion-popover.entry.js +57 -183
- package/dist/esm/ion-progress-bar.entry.js +7 -27
- package/dist/esm/ion-range.entry.js +159 -206
- package/dist/esm/ion-refresher-content.entry.js +12 -9
- package/dist/esm/ion-refresher.entry.js +18 -110
- package/dist/esm/ion-reorder-group.entry.js +15 -31
- package/dist/esm/ion-reorder.entry.js +4 -5
- package/dist/esm/ion-route-redirect.entry.js +9 -4
- package/dist/esm/ion-route.entry.js +14 -11
- package/dist/esm/ion-router-link.entry.js +11 -11
- package/dist/esm/ion-router-outlet.entry.js +14 -16
- package/dist/esm/ion-router.entry.js +10 -30
- package/dist/esm/ion-row.entry.js +3 -4
- package/dist/esm/ion-searchbar.entry.js +52 -92
- package/dist/esm/ion-segment-button.entry.js +18 -46
- package/dist/esm/ion-segment.entry.js +48 -164
- package/dist/esm/ion-select-option.entry.js +4 -7
- package/dist/esm/ion-select.entry.js +227 -338
- package/dist/esm/ion-skeleton-text.entry.js +4 -8
- package/dist/esm/ion-spinner.entry.js +6 -7
- package/dist/esm/ion-split-pane.entry.js +30 -42
- package/dist/esm/ion-tab-bar.entry.js +16 -31
- package/dist/esm/ion-tab-button.entry.js +15 -16
- package/dist/esm/ion-tab.entry.js +12 -9
- package/dist/esm/ion-tabs.entry.js +10 -37
- package/dist/esm/ion-textarea.entry.js +113 -162
- package/dist/esm/ion-thumbnail.entry.js +3 -4
- package/dist/esm/ion-title.entry.js +52 -0
- package/dist/esm/ion-toast.entry.js +60 -87
- package/dist/esm/ion-toggle.entry.js +89 -158
- package/dist/esm/ion-toolbar.entry.js +71 -0
- package/dist/esm/ionic-global-DXXzPLPc.js +230 -0
- package/dist/esm/ios.transition-DMsViooj.js +651 -0
- package/dist/esm/keyboard-DcbqYXj5.js +0 -3
- package/dist/esm/keyboard-DgiyREKb.js +0 -3
- package/dist/esm/keyboard-controller-CqGCg8tB.js +0 -3
- package/dist/esm/loader.js +5 -8
- package/dist/esm/lock-controller-B-hirT0v.js +0 -3
- package/dist/esm/md.transition-BQT2r4ED.js +57 -0
- package/dist/esm/menu-toggle-util-wdO31cdC.js +12 -0
- package/dist/esm/notch-controller-CQeDnZLe.js +153 -0
- package/dist/esm/overlays-SBLrmFy6.js +851 -0
- package/dist/esm/refresher.utils-D4tPnZsM.js +196 -0
- package/dist/esm/spinner-configs-D4RIp70E.js +0 -3
- package/dist/esm/status-tap-CjxQA4Bj.js +40 -0
- package/dist/esm/swipe-back-DE05lWQD.js +79 -0
- package/dist/esm/theme-DiVJyqlX.js +0 -3
- package/dist/esm/watch-options-Dtdm8lKC.js +0 -3
- package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +2 -3
- package/dist/types/stencil-public-runtime.d.ts +14 -3
- package/package.json +8 -5
- package/dist/checkout/checkout.esm.js.map +0 -1
- package/dist/checkout/index.esm.js.map +0 -1
- package/dist/checkout/loader.esm.js.map +0 -1
- package/dist/checkout/p-00a301b3.entry.js +0 -2
- package/dist/checkout/p-00a301b3.entry.js.map +0 -1
- package/dist/checkout/p-07b5d96f.entry.js +0 -2
- package/dist/checkout/p-07b5d96f.entry.js.map +0 -1
- package/dist/checkout/p-09688586.entry.js +0 -2
- package/dist/checkout/p-09688586.entry.js.map +0 -1
- package/dist/checkout/p-18addee5.entry.js +0 -2
- package/dist/checkout/p-18addee5.entry.js.map +0 -1
- package/dist/checkout/p-18ddefd1.entry.js +0 -5
- package/dist/checkout/p-18ddefd1.entry.js.map +0 -1
- package/dist/checkout/p-19f6286e.entry.js +0 -2
- package/dist/checkout/p-19f6286e.entry.js.map +0 -1
- package/dist/checkout/p-1b654d66.entry.js +0 -2
- package/dist/checkout/p-1b654d66.entry.js.map +0 -1
- package/dist/checkout/p-215f237f.entry.js +0 -2
- package/dist/checkout/p-215f237f.entry.js.map +0 -1
- package/dist/checkout/p-243533d4.entry.js +0 -2
- package/dist/checkout/p-243533d4.entry.js.map +0 -1
- package/dist/checkout/p-2641406e.entry.js +0 -5
- package/dist/checkout/p-2641406e.entry.js.map +0 -1
- package/dist/checkout/p-2683c242.entry.js +0 -2
- package/dist/checkout/p-2683c242.entry.js.map +0 -1
- package/dist/checkout/p-270607e1.entry.js +0 -2
- package/dist/checkout/p-270607e1.entry.js.map +0 -1
- package/dist/checkout/p-28d82baa.entry.js +0 -2
- package/dist/checkout/p-28d82baa.entry.js.map +0 -1
- package/dist/checkout/p-2aa4f4ab.entry.js +0 -2
- package/dist/checkout/p-2aa4f4ab.entry.js.map +0 -1
- package/dist/checkout/p-2ee1a2b5.entry.js +0 -2
- package/dist/checkout/p-2ee1a2b5.entry.js.map +0 -1
- package/dist/checkout/p-358214aa.entry.js +0 -2
- package/dist/checkout/p-358214aa.entry.js.map +0 -1
- package/dist/checkout/p-36e0fbcc.entry.js +0 -20
- package/dist/checkout/p-36e0fbcc.entry.js.map +0 -1
- package/dist/checkout/p-37e54688.entry.js +0 -2
- package/dist/checkout/p-37e54688.entry.js.map +0 -1
- package/dist/checkout/p-3ef78696.entry.js +0 -2
- package/dist/checkout/p-3ef78696.entry.js.map +0 -1
- package/dist/checkout/p-454447c5.entry.js +0 -2
- package/dist/checkout/p-454447c5.entry.js.map +0 -1
- package/dist/checkout/p-4857bfa5.entry.js +0 -2
- package/dist/checkout/p-4857bfa5.entry.js.map +0 -1
- package/dist/checkout/p-4d89a3fa.entry.js +0 -2
- package/dist/checkout/p-4d89a3fa.entry.js.map +0 -1
- package/dist/checkout/p-52764c17.entry.js +0 -2
- package/dist/checkout/p-52764c17.entry.js.map +0 -1
- package/dist/checkout/p-57f622db.entry.js +0 -2
- package/dist/checkout/p-57f622db.entry.js.map +0 -1
- package/dist/checkout/p-59888ca4.entry.js +0 -2
- package/dist/checkout/p-59888ca4.entry.js.map +0 -1
- package/dist/checkout/p-5ecfbad6.entry.js +0 -2
- package/dist/checkout/p-5ecfbad6.entry.js.map +0 -1
- package/dist/checkout/p-62ca8564.entry.js +0 -2
- package/dist/checkout/p-62ca8564.entry.js.map +0 -1
- package/dist/checkout/p-6302dd24.entry.js +0 -2
- package/dist/checkout/p-6302dd24.entry.js.map +0 -1
- package/dist/checkout/p-64ac130b.entry.js +0 -2
- package/dist/checkout/p-64ac130b.entry.js.map +0 -1
- package/dist/checkout/p-6714fa18.entry.js +0 -2
- package/dist/checkout/p-6714fa18.entry.js.map +0 -1
- package/dist/checkout/p-681ae472.entry.js +0 -2
- package/dist/checkout/p-681ae472.entry.js.map +0 -1
- package/dist/checkout/p-69f632b2.entry.js +0 -5
- package/dist/checkout/p-69f632b2.entry.js.map +0 -1
- package/dist/checkout/p-6b72bcfa.entry.js +0 -2
- package/dist/checkout/p-6b72bcfa.entry.js.map +0 -1
- package/dist/checkout/p-74c91a78.entry.js +0 -2
- package/dist/checkout/p-74c91a78.entry.js.map +0 -1
- package/dist/checkout/p-7ba2116f.entry.js +0 -2
- package/dist/checkout/p-7ba2116f.entry.js.map +0 -1
- package/dist/checkout/p-7d45a649.entry.js +0 -5
- package/dist/checkout/p-7d45a649.entry.js.map +0 -1
- package/dist/checkout/p-7df3464f.entry.js +0 -2
- package/dist/checkout/p-7df3464f.entry.js.map +0 -1
- package/dist/checkout/p-7f336a66.entry.js +0 -2
- package/dist/checkout/p-7f336a66.entry.js.map +0 -1
- package/dist/checkout/p-7f3cb127.entry.js +0 -2
- package/dist/checkout/p-7f3cb127.entry.js.map +0 -1
- package/dist/checkout/p-82e0c3f5.entry.js +0 -5
- package/dist/checkout/p-82e0c3f5.entry.js.map +0 -1
- package/dist/checkout/p-83723f22.entry.js +0 -2
- package/dist/checkout/p-83723f22.entry.js.map +0 -1
- package/dist/checkout/p-83cc118e.entry.js +0 -2
- package/dist/checkout/p-83cc118e.entry.js.map +0 -1
- package/dist/checkout/p-84d696fb.entry.js +0 -2
- package/dist/checkout/p-84d696fb.entry.js.map +0 -1
- package/dist/checkout/p-85548f6c.entry.js +0 -2
- package/dist/checkout/p-85548f6c.entry.js.map +0 -1
- package/dist/checkout/p-85ee65c9.entry.js +0 -2
- package/dist/checkout/p-85ee65c9.entry.js.map +0 -1
- package/dist/checkout/p-8b182c6a.entry.js +0 -8
- package/dist/checkout/p-8b182c6a.entry.js.map +0 -1
- package/dist/checkout/p-8d31e4f7.entry.js +0 -2
- package/dist/checkout/p-8d31e4f7.entry.js.map +0 -1
- package/dist/checkout/p-8e3dc24d.entry.js +0 -2
- package/dist/checkout/p-8e3dc24d.entry.js.map +0 -1
- package/dist/checkout/p-8e96c15d.entry.js +0 -2
- package/dist/checkout/p-8e96c15d.entry.js.map +0 -1
- package/dist/checkout/p-8fbb12d6.entry.js +0 -2
- package/dist/checkout/p-8fbb12d6.entry.js.map +0 -1
- package/dist/checkout/p-924c47c2.entry.js +0 -20
- package/dist/checkout/p-924c47c2.entry.js.map +0 -1
- package/dist/checkout/p-931cb238.entry.js +0 -2
- package/dist/checkout/p-931cb238.entry.js.map +0 -1
- package/dist/checkout/p-93bc2286.entry.js +0 -2
- package/dist/checkout/p-93bc2286.entry.js.map +0 -1
- package/dist/checkout/p-B-KuLMsZ.js +0 -8
- package/dist/checkout/p-B-KuLMsZ.js.map +0 -1
- package/dist/checkout/p-B-hirT0v.js.map +0 -1
- package/dist/checkout/p-B3WORC1a.js.map +0 -1
- package/dist/checkout/p-BGDWAHw3.js +0 -5
- package/dist/checkout/p-BGDWAHw3.js.map +0 -1
- package/dist/checkout/p-BR7SJd-v.js.map +0 -1
- package/dist/checkout/p-BTEOs1at.js +0 -5
- package/dist/checkout/p-BTEOs1at.js.map +0 -1
- package/dist/checkout/p-BWWP5b2n.js +0 -20
- package/dist/checkout/p-BWWP5b2n.js.map +0 -1
- package/dist/checkout/p-BgOwfqIY.js.map +0 -1
- package/dist/checkout/p-BmVRXR1y.js.map +0 -1
- package/dist/checkout/p-BmlsNFZH.js +0 -2
- package/dist/checkout/p-BmlsNFZH.js.map +0 -1
- package/dist/checkout/p-Bp4HXTAC.js +0 -6
- package/dist/checkout/p-Bp4HXTAC.js.map +0 -1
- package/dist/checkout/p-BthJ6qTQ.js +0 -5
- package/dist/checkout/p-BthJ6qTQ.js.map +0 -1
- package/dist/checkout/p-BxybgBKJ.js +0 -9
- package/dist/checkout/p-BxybgBKJ.js.map +0 -1
- package/dist/checkout/p-C03M5ZSM.js.map +0 -1
- package/dist/checkout/p-C0PjLcMv.js +0 -8
- package/dist/checkout/p-C0PjLcMv.js.map +0 -1
- package/dist/checkout/p-C1xutNb4.js +0 -5
- package/dist/checkout/p-C1xutNb4.js.map +0 -1
- package/dist/checkout/p-C53feagD.js.map +0 -1
- package/dist/checkout/p-C6ZGuX6t.js +0 -11
- package/dist/checkout/p-C6ZGuX6t.js.map +0 -1
- package/dist/checkout/p-CG5IBVB8.js +0 -5
- package/dist/checkout/p-CG5IBVB8.js.map +0 -1
- package/dist/checkout/p-CH3Eg9_f.js +0 -14
- package/dist/checkout/p-CH3Eg9_f.js.map +0 -1
- package/dist/checkout/p-CR1XUyil.js +0 -8
- package/dist/checkout/p-CR1XUyil.js.map +0 -1
- package/dist/checkout/p-CUNZzVQR.js +0 -5
- package/dist/checkout/p-CUNZzVQR.js.map +0 -1
- package/dist/checkout/p-CZs2_vz-.js +0 -23
- package/dist/checkout/p-CZs2_vz-.js.map +0 -1
- package/dist/checkout/p-CganX2z7.js +0 -5
- package/dist/checkout/p-CganX2z7.js.map +0 -1
- package/dist/checkout/p-CiN1CmnZ.js +0 -5
- package/dist/checkout/p-CiN1CmnZ.js.map +0 -1
- package/dist/checkout/p-D2NxOvQ8.js.map +0 -1
- package/dist/checkout/p-D4RIp70E.js.map +0 -1
- package/dist/checkout/p-DDV5ZZmu.js +0 -8
- package/dist/checkout/p-DDV5ZZmu.js.map +0 -1
- package/dist/checkout/p-DGWbKjms.js +0 -5
- package/dist/checkout/p-DGWbKjms.js.map +0 -1
- package/dist/checkout/p-DJztqcrH.js +0 -5
- package/dist/checkout/p-DJztqcrH.js.map +0 -1
- package/dist/checkout/p-DKg_dYcq.js.map +0 -1
- package/dist/checkout/p-DQMrQygy.js +0 -17
- package/dist/checkout/p-DQMrQygy.js.map +0 -1
- package/dist/checkout/p-DiVJyqlX.js.map +0 -1
- package/dist/checkout/p-DokgqSDS.js +0 -8
- package/dist/checkout/p-DokgqSDS.js.map +0 -1
- package/dist/checkout/p-DpIGiwma.js +0 -5
- package/dist/checkout/p-DpIGiwma.js.map +0 -1
- package/dist/checkout/p-Dtdm8lKC.js.map +0 -1
- package/dist/checkout/p-LC8Dag8J.js +0 -5
- package/dist/checkout/p-LC8Dag8J.js.map +0 -1
- package/dist/checkout/p-PlOw-cTg.js +0 -2
- package/dist/checkout/p-PlOw-cTg.js.map +0 -1
- package/dist/checkout/p-ZjP4CjeZ.js.map +0 -1
- package/dist/checkout/p-a3af7718.entry.js +0 -2
- package/dist/checkout/p-a3af7718.entry.js.map +0 -1
- package/dist/checkout/p-a4e73261.entry.js +0 -2
- package/dist/checkout/p-a4e73261.entry.js.map +0 -1
- package/dist/checkout/p-a5f0602a.entry.js +0 -8
- package/dist/checkout/p-a5f0602a.entry.js.map +0 -1
- package/dist/checkout/p-ad8b3747.entry.js +0 -2
- package/dist/checkout/p-ad8b3747.entry.js.map +0 -1
- package/dist/checkout/p-ae1491f9.entry.js +0 -14
- package/dist/checkout/p-ae1491f9.entry.js.map +0 -1
- package/dist/checkout/p-b015f67f.entry.js +0 -2
- package/dist/checkout/p-b015f67f.entry.js.map +0 -1
- package/dist/checkout/p-b04f980c.entry.js +0 -2
- package/dist/checkout/p-b04f980c.entry.js.map +0 -1
- package/dist/checkout/p-b0b107e3.entry.js +0 -2
- package/dist/checkout/p-b0b107e3.entry.js.map +0 -1
- package/dist/checkout/p-b1db1d70.entry.js +0 -2
- package/dist/checkout/p-b1db1d70.entry.js.map +0 -1
- package/dist/checkout/p-b49b96cf.entry.js +0 -2
- package/dist/checkout/p-b49b96cf.entry.js.map +0 -1
- package/dist/checkout/p-b828e054.entry.js +0 -2
- package/dist/checkout/p-b828e054.entry.js.map +0 -1
- package/dist/checkout/p-b93a1bd6.entry.js +0 -2
- package/dist/checkout/p-b93a1bd6.entry.js.map +0 -1
- package/dist/checkout/p-bc55f859.entry.js +0 -2
- package/dist/checkout/p-bc55f859.entry.js.map +0 -1
- package/dist/checkout/p-befcbd0d.entry.js +0 -2
- package/dist/checkout/p-befcbd0d.entry.js.map +0 -1
- package/dist/checkout/p-c48a9448.entry.js +0 -2
- package/dist/checkout/p-c48a9448.entry.js.map +0 -1
- package/dist/checkout/p-c615397e.entry.js +0 -17
- package/dist/checkout/p-c615397e.entry.js.map +0 -1
- package/dist/checkout/p-cab41a25.entry.js +0 -62
- package/dist/checkout/p-cab41a25.entry.js.map +0 -1
- package/dist/checkout/p-cbf0100c.entry.js +0 -2
- package/dist/checkout/p-cbf0100c.entry.js.map +0 -1
- package/dist/checkout/p-cc591365.entry.js +0 -2
- package/dist/checkout/p-cc591365.entry.js.map +0 -1
- package/dist/checkout/p-cd8e7091.entry.js +0 -2
- package/dist/checkout/p-cd8e7091.entry.js.map +0 -1
- package/dist/checkout/p-d0d33188.entry.js +0 -2
- package/dist/checkout/p-d0d33188.entry.js.map +0 -1
- package/dist/checkout/p-d18cc858.entry.js +0 -2
- package/dist/checkout/p-d18cc858.entry.js.map +0 -1
- package/dist/checkout/p-d595c210.entry.js +0 -2
- package/dist/checkout/p-d595c210.entry.js.map +0 -1
- package/dist/checkout/p-d70b96db.entry.js +0 -2
- package/dist/checkout/p-d70b96db.entry.js.map +0 -1
- package/dist/checkout/p-d9a88167.entry.js +0 -2
- package/dist/checkout/p-d9a88167.entry.js.map +0 -1
- package/dist/checkout/p-e0fd6219.entry.js +0 -5
- package/dist/checkout/p-e0fd6219.entry.js.map +0 -1
- package/dist/checkout/p-eae47e9d.entry.js +0 -2
- package/dist/checkout/p-eae47e9d.entry.js.map +0 -1
- package/dist/checkout/p-ee1b72ba.entry.js +0 -2
- package/dist/checkout/p-ee1b72ba.entry.js.map +0 -1
- package/dist/checkout/p-eeb818b4.entry.js +0 -2
- package/dist/checkout/p-eeb818b4.entry.js.map +0 -1
- package/dist/checkout/p-f7dd0c42.entry.js +0 -2
- package/dist/checkout/p-f7dd0c42.entry.js.map +0 -1
- package/dist/checkout/p-f8f93e18.entry.js +0 -2
- package/dist/checkout/p-f8f93e18.entry.js.map +0 -1
- package/dist/checkout/p-hHmYLOfE.js.map +0 -1
- package/dist/checkout/p-ktzqax7n.js +0 -5
- package/dist/checkout/p-ktzqax7n.js.map +0 -1
- package/dist/checkout/p-sObYyvOy.js.map +0 -1
- package/dist/checkout/p-syN-rRwJ.js +0 -6
- package/dist/checkout/p-syN-rRwJ.js.map +0 -1
- package/dist/checkout/svg/logo-threads.svg +0 -1
- package/dist/cjs/animation-BtvIVax4.js +0 -828
- package/dist/cjs/animation-BtvIVax4.js.map +0 -1
- package/dist/cjs/app-globals-k1SzUfrO.js +0 -10
- package/dist/cjs/app-globals-k1SzUfrO.js.map +0 -1
- package/dist/cjs/ar-CbT6TM-Q.js.map +0 -1
- package/dist/cjs/capacitor-CqhugS19.js.map +0 -1
- package/dist/cjs/checkout.cjs.js.map +0 -1
- package/dist/cjs/compare-with-utils-JlLIkecm.js.map +0 -1
- package/dist/cjs/config-DUSoxbhv.js +0 -179
- package/dist/cjs/config-DUSoxbhv.js.map +0 -1
- package/dist/cjs/cubic-bezier-Bv3PvaRI.js.map +0 -1
- package/dist/cjs/data-CjHlPfPW.js +0 -1701
- package/dist/cjs/data-CjHlPfPW.js.map +0 -1
- package/dist/cjs/dir-Br-7_bel.js.map +0 -1
- package/dist/cjs/focus-visible-Da2o6bTP.js.map +0 -1
- package/dist/cjs/framework-delegate-BoMy23Lz.js +0 -147
- package/dist/cjs/framework-delegate-BoMy23Lz.js.map +0 -1
- package/dist/cjs/gesture-controller-CiprlUhH.js +0 -201
- package/dist/cjs/gesture-controller-CiprlUhH.js.map +0 -1
- package/dist/cjs/haptic-DCn793nz.js +0 -167
- package/dist/cjs/haptic-DCn793nz.js.map +0 -1
- package/dist/cjs/hardware-back-button-B1WYQg6m.js +0 -124
- package/dist/cjs/hardware-back-button-B1WYQg6m.js.map +0 -1
- package/dist/cjs/helpers-C5_WrFOI.js +0 -363
- package/dist/cjs/helpers-C5_WrFOI.js.map +0 -1
- package/dist/cjs/i18n-uGNv9SLK.js.map +0 -1
- package/dist/cjs/index-BPGqVQtz.js +0 -2246
- package/dist/cjs/index-BPGqVQtz.js.map +0 -1
- package/dist/cjs/index-C-U8a6CY.js +0 -437
- package/dist/cjs/index-C-U8a6CY.js.map +0 -1
- package/dist/cjs/index-C0J_JwJB.js +0 -173
- package/dist/cjs/index-C0J_JwJB.js.map +0 -1
- package/dist/cjs/index-C3dD6F2g.js +0 -323
- package/dist/cjs/index-C3dD6F2g.js.map +0 -1
- package/dist/cjs/index-Calgykmz.js +0 -470
- package/dist/cjs/index-Calgykmz.js.map +0 -1
- package/dist/cjs/index-D3mJ1Cix.js.map +0 -1
- package/dist/cjs/index-DseJYF57.js +0 -58
- package/dist/cjs/index-DseJYF57.js.map +0 -1
- package/dist/cjs/index-DwdNl4cs.js +0 -143
- package/dist/cjs/index-DwdNl4cs.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/input-shims-DIBy37tN.js +0 -652
- package/dist/cjs/input-shims-DIBy37tN.js.map +0 -1
- package/dist/cjs/input.utils-IVavyQAZ.js +0 -156
- package/dist/cjs/input.utils-IVavyQAZ.js.map +0 -1
- package/dist/cjs/ion-action-sheet_5.cjs.entry.js +0 -3804
- package/dist/cjs/ion-buttons_10.cjs.entry.js +0 -1914
- package/dist/cjs/ion-input-otp.cjs.entry.js +0 -644
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +0 -86
- package/dist/cjs/ion-label_2.cjs.entry.js +0 -103
- package/dist/cjs/ion-picker-legacy-column.cjs.entry.js +0 -362
- package/dist/cjs/ion-picker-legacy.cjs.entry.js +0 -298
- package/dist/cjs/ion-picker_3.cjs.entry.js +0 -1152
- package/dist/cjs/ion-segment-content.cjs.entry.js +0 -18
- package/dist/cjs/ion-segment-view.cjs.entry.js +0 -121
- package/dist/cjs/ionic-global-BmDUlKDf.js +0 -156
- package/dist/cjs/ionic-global-BmDUlKDf.js.map +0 -1
- package/dist/cjs/ios.transition-ROXYV2qt.js +0 -684
- package/dist/cjs/ios.transition-ROXYV2qt.js.map +0 -1
- package/dist/cjs/keyboard-DuKzsHsS.js.map +0 -1
- package/dist/cjs/keyboard-controller-rH21qC_2.js.map +0 -1
- package/dist/cjs/keyboard-iyHR2ZF4.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/lock-controller-58TZFRHC.js.map +0 -1
- package/dist/cjs/md.transition-NftVXx7D.js +0 -62
- package/dist/cjs/md.transition-NftVXx7D.js.map +0 -1
- package/dist/cjs/menu-toggle-util-CROwv_aL.js +0 -17
- package/dist/cjs/menu-toggle-util-CROwv_aL.js.map +0 -1
- package/dist/cjs/notch-controller-BzbZcc1N.js +0 -158
- package/dist/cjs/notch-controller-BzbZcc1N.js.map +0 -1
- package/dist/cjs/overlays-gyJEvMkB.js +0 -934
- package/dist/cjs/overlays-gyJEvMkB.js.map +0 -1
- package/dist/cjs/refresher.utils-DZrHDYQN.js +0 -209
- package/dist/cjs/refresher.utils-DZrHDYQN.js.map +0 -1
- package/dist/cjs/spinner-configs-BN41iw42.js.map +0 -1
- package/dist/cjs/status-tap-B5QfH5DO.js +0 -44
- package/dist/cjs/status-tap-B5QfH5DO.js.map +0 -1
- package/dist/cjs/swipe-back-BkT4j65k.js +0 -85
- package/dist/cjs/swipe-back-BkT4j65k.js.map +0 -1
- package/dist/cjs/theme-DbHdw1Nx.js.map +0 -1
- package/dist/cjs/validity-ClNawnRU.js +0 -22
- package/dist/cjs/validity-ClNawnRU.js.map +0 -1
- package/dist/cjs/watch-options-DOFUPyuf.js.map +0 -1
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js.map +0 -1
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js.map +0 -1
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js.map +0 -1
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js.map +0 -1
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js.map +0 -1
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js.map +0 -1
- package/dist/collection/components/amwal-pos/amwal-pos.js.map +0 -1
- package/dist/collection/components/amwal-pos/amwal-pos.stories.js.map +0 -1
- package/dist/collection/components/amwal-widget/amwal-widget-modal.js.map +0 -1
- package/dist/collection/components/amwal-widget/amwal-widget.js.map +0 -1
- package/dist/collection/components/amwal-widget/amwal-widget.stories.js.map +0 -1
- package/dist/collection/lang/i18n.js.map +0 -1
- package/dist/components/amwal-checkout-button.js.map +0 -1
- package/dist/components/amwal-installments-guide.js.map +0 -1
- package/dist/components/amwal-installments-timeline.js.map +0 -1
- package/dist/components/amwal-pos.js.map +0 -1
- package/dist/components/amwal-widget-modal.js.map +0 -1
- package/dist/components/amwal-widget.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/ion-accordion-group.js.map +0 -1
- package/dist/components/ion-accordion.js.map +0 -1
- package/dist/components/ion-action-sheet.js.map +0 -1
- package/dist/components/ion-alert.js.map +0 -1
- package/dist/components/ion-app.js.map +0 -1
- package/dist/components/ion-avatar.js.map +0 -1
- package/dist/components/ion-back-button.js.map +0 -1
- package/dist/components/ion-backdrop.js.map +0 -1
- package/dist/components/ion-badge.js.map +0 -1
- package/dist/components/ion-breadcrumb.js.map +0 -1
- package/dist/components/ion-breadcrumbs.js.map +0 -1
- package/dist/components/ion-button.js.map +0 -1
- package/dist/components/ion-buttons.js.map +0 -1
- package/dist/components/ion-card-content.js.map +0 -1
- package/dist/components/ion-card-header.js.map +0 -1
- package/dist/components/ion-card-subtitle.js.map +0 -1
- package/dist/components/ion-card-title.js.map +0 -1
- package/dist/components/ion-card.js.map +0 -1
- package/dist/components/ion-checkbox.js.map +0 -1
- package/dist/components/ion-chip.js.map +0 -1
- package/dist/components/ion-col.js.map +0 -1
- package/dist/components/ion-content.js.map +0 -1
- package/dist/components/ion-datetime-button.js.map +0 -1
- package/dist/components/ion-datetime.js.map +0 -1
- package/dist/components/ion-fab-button.js.map +0 -1
- package/dist/components/ion-fab-list.js.map +0 -1
- package/dist/components/ion-fab.js.map +0 -1
- package/dist/components/ion-footer.js.map +0 -1
- package/dist/components/ion-grid.js.map +0 -1
- package/dist/components/ion-header.js.map +0 -1
- package/dist/components/ion-icon.js.map +0 -1
- package/dist/components/ion-img.js.map +0 -1
- package/dist/components/ion-infinite-scroll-content.js.map +0 -1
- package/dist/components/ion-infinite-scroll.js.map +0 -1
- package/dist/components/ion-input-otp.js +0 -685
- package/dist/components/ion-input-otp.js.map +0 -1
- package/dist/components/ion-input-password-toggle.js +0 -131
- package/dist/components/ion-input-password-toggle.js.map +0 -1
- package/dist/components/ion-input.js.map +0 -1
- package/dist/components/ion-item-divider.js.map +0 -1
- package/dist/components/ion-item-group.js.map +0 -1
- package/dist/components/ion-item-option.js.map +0 -1
- package/dist/components/ion-item-options.js.map +0 -1
- package/dist/components/ion-item-sliding.js.map +0 -1
- package/dist/components/ion-item.js.map +0 -1
- package/dist/components/ion-label.js.map +0 -1
- package/dist/components/ion-list-header.js.map +0 -1
- package/dist/components/ion-list.js.map +0 -1
- package/dist/components/ion-loading.js.map +0 -1
- package/dist/components/ion-menu-button.js.map +0 -1
- package/dist/components/ion-menu-toggle.js.map +0 -1
- package/dist/components/ion-menu.js.map +0 -1
- package/dist/components/ion-modal.js.map +0 -1
- package/dist/components/ion-nav-link.js.map +0 -1
- package/dist/components/ion-nav.js.map +0 -1
- package/dist/components/ion-note.js.map +0 -1
- package/dist/components/ion-picker-column-option.js +0 -9
- package/dist/components/ion-picker-column-option.js.map +0 -1
- package/dist/components/ion-picker-column.js.map +0 -1
- package/dist/components/ion-picker-legacy-column.js +0 -9
- package/dist/components/ion-picker-legacy-column.js.map +0 -1
- package/dist/components/ion-picker-legacy.js +0 -351
- package/dist/components/ion-picker-legacy.js.map +0 -1
- package/dist/components/ion-picker.js.map +0 -1
- package/dist/components/ion-popover.js.map +0 -1
- package/dist/components/ion-progress-bar.js.map +0 -1
- package/dist/components/ion-radio-group.js.map +0 -1
- package/dist/components/ion-radio.js.map +0 -1
- package/dist/components/ion-range.js.map +0 -1
- package/dist/components/ion-refresher-content.js.map +0 -1
- package/dist/components/ion-refresher.js.map +0 -1
- package/dist/components/ion-reorder-group.js.map +0 -1
- package/dist/components/ion-reorder.js.map +0 -1
- package/dist/components/ion-ripple-effect.js.map +0 -1
- package/dist/components/ion-route-redirect.js.map +0 -1
- package/dist/components/ion-route.js.map +0 -1
- package/dist/components/ion-router-link.js.map +0 -1
- package/dist/components/ion-router-outlet.js.map +0 -1
- package/dist/components/ion-router.js.map +0 -1
- package/dist/components/ion-row.js.map +0 -1
- package/dist/components/ion-searchbar.js.map +0 -1
- package/dist/components/ion-segment-button.js.map +0 -1
- package/dist/components/ion-segment-content.js +0 -38
- package/dist/components/ion-segment-content.js.map +0 -1
- package/dist/components/ion-segment-view.js +0 -145
- package/dist/components/ion-segment-view.js.map +0 -1
- package/dist/components/ion-segment.js.map +0 -1
- package/dist/components/ion-select-modal.js +0 -9
- package/dist/components/ion-select-modal.js.map +0 -1
- package/dist/components/ion-select-option.js.map +0 -1
- package/dist/components/ion-select-popover.js.map +0 -1
- package/dist/components/ion-select.js.map +0 -1
- package/dist/components/ion-skeleton-text.js.map +0 -1
- package/dist/components/ion-spinner.js.map +0 -1
- package/dist/components/ion-split-pane.js.map +0 -1
- package/dist/components/ion-tab-bar.js.map +0 -1
- package/dist/components/ion-tab-button.js.map +0 -1
- package/dist/components/ion-tab.js.map +0 -1
- package/dist/components/ion-tabs.js.map +0 -1
- package/dist/components/ion-text.js.map +0 -1
- package/dist/components/ion-textarea.js.map +0 -1
- package/dist/components/ion-thumbnail.js.map +0 -1
- package/dist/components/ion-title.js.map +0 -1
- package/dist/components/ion-toast.js.map +0 -1
- package/dist/components/ion-toggle.js.map +0 -1
- package/dist/components/ion-toolbar.js.map +0 -1
- package/dist/components/p-2HMA6Bk9.js +0 -199
- package/dist/components/p-2HMA6Bk9.js.map +0 -1
- package/dist/components/p-5oWdAaAi.js +0 -192
- package/dist/components/p-5oWdAaAi.js.map +0 -1
- package/dist/components/p-9R9WjA6V.js +0 -143
- package/dist/components/p-9R9WjA6V.js.map +0 -1
- package/dist/components/p-B-hirT0v.js.map +0 -1
- package/dist/components/p-B2gn37E3.js +0 -71
- package/dist/components/p-B2gn37E3.js.map +0 -1
- package/dist/components/p-B3WORC1a.js.map +0 -1
- package/dist/components/p-BHR1qL-B.js +0 -15
- package/dist/components/p-BHR1qL-B.js.map +0 -1
- package/dist/components/p-BLZx8ena.js +0 -648
- package/dist/components/p-BLZx8ena.js.map +0 -1
- package/dist/components/p-BPfqVyXF.js +0 -131
- package/dist/components/p-BPfqVyXF.js.map +0 -1
- package/dist/components/p-BRke83qH.js +0 -59
- package/dist/components/p-BRke83qH.js.map +0 -1
- package/dist/components/p-BTEOs1at.js +0 -198
- package/dist/components/p-BTEOs1at.js.map +0 -1
- package/dist/components/p-BZwvoMAR.js +0 -42
- package/dist/components/p-BZwvoMAR.js.map +0 -1
- package/dist/components/p-BeDf61kY.js +0 -427
- package/dist/components/p-BeDf61kY.js.map +0 -1
- package/dist/components/p-BfUU8qUe.js +0 -42
- package/dist/components/p-BfUU8qUe.js.map +0 -1
- package/dist/components/p-BgOwfqIY.js.map +0 -1
- package/dist/components/p-BhiX6sCr.js +0 -826
- package/dist/components/p-BhiX6sCr.js.map +0 -1
- package/dist/components/p-Binl0XAs.js +0 -576
- package/dist/components/p-Binl0XAs.js.map +0 -1
- package/dist/components/p-Bm5dgzDt.js +0 -118
- package/dist/components/p-Bm5dgzDt.js.map +0 -1
- package/dist/components/p-BmVRXR1y.js.map +0 -1
- package/dist/components/p-BqMnDwQG.js +0 -194
- package/dist/components/p-BqMnDwQG.js.map +0 -1
- package/dist/components/p-BxP8TDfL.js +0 -161
- package/dist/components/p-BxP8TDfL.js.map +0 -1
- package/dist/components/p-Byqjk7Y-.js +0 -423
- package/dist/components/p-Byqjk7Y-.js.map +0 -1
- package/dist/components/p-C03M5ZSM.js.map +0 -1
- package/dist/components/p-C53feagD.js.map +0 -1
- package/dist/components/p-C9H5b4Sp.js +0 -156
- package/dist/components/p-C9H5b4Sp.js.map +0 -1
- package/dist/components/p-CBE-1aIM.js +0 -342
- package/dist/components/p-CBE-1aIM.js.map +0 -1
- package/dist/components/p-CH3Eg9_f.js +0 -467
- package/dist/components/p-CH3Eg9_f.js.map +0 -1
- package/dist/components/p-CKAwPEA1.js +0 -678
- package/dist/components/p-CKAwPEA1.js.map +0 -1
- package/dist/components/p-CQgmejdy.js +0 -103
- package/dist/components/p-CQgmejdy.js.map +0 -1
- package/dist/components/p-CS0AfHCU.js +0 -321
- package/dist/components/p-CS0AfHCU.js.map +0 -1
- package/dist/components/p-CTM7uu-W.js +0 -1656
- package/dist/components/p-CTM7uu-W.js.map +0 -1
- package/dist/components/p-Ccgs7j-d.js +0 -229
- package/dist/components/p-Ccgs7j-d.js.map +0 -1
- package/dist/components/p-ClEjw1rH.js +0 -235
- package/dist/components/p-ClEjw1rH.js.map +0 -1
- package/dist/components/p-CqzV2Pip.js +0 -459
- package/dist/components/p-CqzV2Pip.js.map +0 -1
- package/dist/components/p-D-0nEl_9.js +0 -75
- package/dist/components/p-D-0nEl_9.js.map +0 -1
- package/dist/components/p-D2NxOvQ8.js.map +0 -1
- package/dist/components/p-D86aKvUI.js +0 -305
- package/dist/components/p-D86aKvUI.js.map +0 -1
- package/dist/components/p-DBeEVQxe.js +0 -2542
- package/dist/components/p-DBeEVQxe.js.map +0 -1
- package/dist/components/p-DEAe7QEa.js +0 -152
- package/dist/components/p-DEAe7QEa.js.map +0 -1
- package/dist/components/p-DFwbATZZ.js +0 -92
- package/dist/components/p-DFwbATZZ.js.map +0 -1
- package/dist/components/p-DG3y4Paj.js +0 -57
- package/dist/components/p-DG3y4Paj.js.map +0 -1
- package/dist/components/p-DJztqcrH.js +0 -20
- package/dist/components/p-DJztqcrH.js.map +0 -1
- package/dist/components/p-DKTjDEAE.js +0 -477
- package/dist/components/p-DKTjDEAE.js.map +0 -1
- package/dist/components/p-DKg_dYcq.js.map +0 -1
- package/dist/components/p-DQU52fBY.js +0 -913
- package/dist/components/p-DQU52fBY.js.map +0 -1
- package/dist/components/p-DXxzBbWg.js +0 -290
- package/dist/components/p-DXxzBbWg.js.map +0 -1
- package/dist/components/p-DiBX36NE.js +0 -73
- package/dist/components/p-DiBX36NE.js.map +0 -1
- package/dist/components/p-DiVJyqlX.js.map +0 -1
- package/dist/components/p-DpZBHf1M.js +0 -598
- package/dist/components/p-DpZBHf1M.js.map +0 -1
- package/dist/components/p-DskTArru.js +0 -112
- package/dist/components/p-DskTArru.js.map +0 -1
- package/dist/components/p-Dtdm8lKC.js.map +0 -1
- package/dist/components/p-DuZ7hY1a.js.map +0 -1
- package/dist/components/p-Dw849bTq.js +0 -305
- package/dist/components/p-Dw849bTq.js.map +0 -1
- package/dist/components/p-DwPO21ol.js +0 -153
- package/dist/components/p-DwPO21ol.js.map +0 -1
- package/dist/components/p-JTTQkHB9.js +0 -139
- package/dist/components/p-JTTQkHB9.js.map +0 -1
- package/dist/components/p-L_Psvpkz.js +0 -222
- package/dist/components/p-L_Psvpkz.js.map +0 -1
- package/dist/components/p-Vjh8RfHt.js +0 -264
- package/dist/components/p-Vjh8RfHt.js.map +0 -1
- package/dist/components/p-XkH8uZ6p.js +0 -624
- package/dist/components/p-XkH8uZ6p.js.map +0 -1
- package/dist/components/p-YUfYVoix.js +0 -170
- package/dist/components/p-YUfYVoix.js.map +0 -1
- package/dist/components/p-ZjP4CjeZ.js.map +0 -1
- package/dist/components/p-_OXvEtk1.js +0 -501
- package/dist/components/p-_OXvEtk1.js.map +0 -1
- package/dist/components/p-abe_AkUW.js +0 -1982
- package/dist/components/p-abe_AkUW.js.map +0 -1
- package/dist/components/p-cCiT8ucm.js +0 -1519
- package/dist/components/p-cCiT8ucm.js.map +0 -1
- package/dist/components/p-fROlYcE4.js +0 -380
- package/dist/components/p-fROlYcE4.js.map +0 -1
- package/dist/components/p-hHmYLOfE.js.map +0 -1
- package/dist/components/p-hoAPVm-t.js +0 -354
- package/dist/components/p-hoAPVm-t.js.map +0 -1
- package/dist/components/p-idUkgr5D.js +0 -81
- package/dist/components/p-idUkgr5D.js.map +0 -1
- package/dist/components/p-jWFeuAB5.js +0 -32
- package/dist/components/p-jWFeuAB5.js.map +0 -1
- package/dist/components/p-o42LW1q1.js +0 -70
- package/dist/components/p-o42LW1q1.js.map +0 -1
- package/dist/components/p-oO2T0VL-.js +0 -50
- package/dist/components/p-oO2T0VL-.js.map +0 -1
- package/dist/components/p-uTKLFBBy.js +0 -176
- package/dist/components/p-uTKLFBBy.js.map +0 -1
- package/dist/esm/amwal-installments-guide.entry.js.map +0 -1
- package/dist/esm/amwal-pos.entry.js.map +0 -1
- package/dist/esm/amwal-widget-modal.entry.js.map +0 -1
- package/dist/esm/amwal-widget.entry.js.map +0 -1
- package/dist/esm/animation-BU4GfyJQ.js +0 -826
- package/dist/esm/animation-BU4GfyJQ.js.map +0 -1
- package/dist/esm/app-globals-DiUHe8Ib.js +0 -8
- package/dist/esm/app-globals-DiUHe8Ib.js.map +0 -1
- package/dist/esm/ar-B3WORC1a.js.map +0 -1
- package/dist/esm/capacitor-CG3xQUND.js.map +0 -1
- package/dist/esm/checkout.js.map +0 -1
- package/dist/esm/compare-with-utils-sObYyvOy.js.map +0 -1
- package/dist/esm/config-V6Cb8IlP.js +0 -176
- package/dist/esm/config-V6Cb8IlP.js.map +0 -1
- package/dist/esm/cubic-bezier-hHmYLOfE.js.map +0 -1
- package/dist/esm/data-BKjeovce.js +0 -1656
- package/dist/esm/data-BKjeovce.js.map +0 -1
- package/dist/esm/dir-C53feagD.js.map +0 -1
- package/dist/esm/focus-visible-BmVRXR1y.js.map +0 -1
- package/dist/esm/framework-delegate-CaqRmNBr.js +0 -143
- package/dist/esm/framework-delegate-CaqRmNBr.js.map +0 -1
- package/dist/esm/gesture-controller-BTEOs1at.js +0 -198
- package/dist/esm/gesture-controller-BTEOs1at.js.map +0 -1
- package/dist/esm/haptic-C3ucbArX.js +0 -161
- package/dist/esm/haptic-C3ucbArX.js.map +0 -1
- package/dist/esm/hardware-back-button-Nry6hGkN.js +0 -118
- package/dist/esm/hardware-back-button-Nry6hGkN.js.map +0 -1
- package/dist/esm/helpers-uLqs1Gao.js +0 -342
- package/dist/esm/helpers-uLqs1Gao.js.map +0 -1
- package/dist/esm/i18n-C_AfxZ5D.js.map +0 -1
- package/dist/esm/index-BmWsedvI.js +0 -171
- package/dist/esm/index-BmWsedvI.js.map +0 -1
- package/dist/esm/index-BmlsNFZH.js +0 -32
- package/dist/esm/index-BmlsNFZH.js.map +0 -1
- package/dist/esm/index-BxybgBKJ.js +0 -2222
- package/dist/esm/index-BxybgBKJ.js.map +0 -1
- package/dist/esm/index-CCWf5GQy.js +0 -427
- package/dist/esm/index-CCWf5GQy.js.map +0 -1
- package/dist/esm/index-CF4QYFB3.js +0 -467
- package/dist/esm/index-CF4QYFB3.js.map +0 -1
- package/dist/esm/index-Ct7Rjd6t.js +0 -321
- package/dist/esm/index-Ct7Rjd6t.js.map +0 -1
- package/dist/esm/index-ZjP4CjeZ.js.map +0 -1
- package/dist/esm/index-ffNEk55Y.js +0 -131
- package/dist/esm/index-ffNEk55Y.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/input-shims-DkzcZwWm.js +0 -650
- package/dist/esm/input-shims-DkzcZwWm.js.map +0 -1
- package/dist/esm/input.utils-C_QovwBX.js +0 -153
- package/dist/esm/input.utils-C_QovwBX.js.map +0 -1
- package/dist/esm/ion-accordion-group.entry.js.map +0 -1
- package/dist/esm/ion-accordion.entry.js.map +0 -1
- package/dist/esm/ion-action-sheet_5.entry.js +0 -3798
- package/dist/esm/ion-app.entry.js.map +0 -1
- package/dist/esm/ion-avatar.entry.js.map +0 -1
- package/dist/esm/ion-back-button.entry.js.map +0 -1
- package/dist/esm/ion-backdrop.entry.js.map +0 -1
- package/dist/esm/ion-badge.entry.js.map +0 -1
- package/dist/esm/ion-breadcrumb.entry.js.map +0 -1
- package/dist/esm/ion-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/ion-buttons_10.entry.js +0 -1903
- package/dist/esm/ion-card-content.entry.js.map +0 -1
- package/dist/esm/ion-card-header.entry.js.map +0 -1
- package/dist/esm/ion-card-subtitle.entry.js.map +0 -1
- package/dist/esm/ion-card-title.entry.js.map +0 -1
- package/dist/esm/ion-card.entry.js.map +0 -1
- package/dist/esm/ion-chip.entry.js.map +0 -1
- package/dist/esm/ion-col.entry.js.map +0 -1
- package/dist/esm/ion-datetime-button.entry.js.map +0 -1
- package/dist/esm/ion-datetime.entry.js.map +0 -1
- package/dist/esm/ion-fab-button.entry.js.map +0 -1
- package/dist/esm/ion-fab-list.entry.js.map +0 -1
- package/dist/esm/ion-fab.entry.js.map +0 -1
- package/dist/esm/ion-footer.entry.js.map +0 -1
- package/dist/esm/ion-grid.entry.js.map +0 -1
- package/dist/esm/ion-icon.entry.js.map +0 -1
- package/dist/esm/ion-img.entry.js.map +0 -1
- package/dist/esm/ion-infinite-scroll-content.entry.js.map +0 -1
- package/dist/esm/ion-infinite-scroll.entry.js.map +0 -1
- package/dist/esm/ion-input-otp.entry.js +0 -642
- package/dist/esm/ion-input-otp.entry.js.map +0 -1
- package/dist/esm/ion-input-password-toggle.entry.js +0 -84
- package/dist/esm/ion-input-password-toggle.entry.js.map +0 -1
- package/dist/esm/ion-input.entry.js.map +0 -1
- package/dist/esm/ion-item-divider.entry.js.map +0 -1
- package/dist/esm/ion-item-group.entry.js.map +0 -1
- package/dist/esm/ion-item-option.entry.js.map +0 -1
- package/dist/esm/ion-item-options.entry.js.map +0 -1
- package/dist/esm/ion-item-sliding.entry.js.map +0 -1
- package/dist/esm/ion-label_2.entry.js +0 -100
- package/dist/esm/ion-loading.entry.js.map +0 -1
- package/dist/esm/ion-menu-button.entry.js.map +0 -1
- package/dist/esm/ion-menu-toggle.entry.js.map +0 -1
- package/dist/esm/ion-menu.entry.js.map +0 -1
- package/dist/esm/ion-nav-link.entry.js.map +0 -1
- package/dist/esm/ion-nav.entry.js.map +0 -1
- package/dist/esm/ion-note.entry.js.map +0 -1
- package/dist/esm/ion-picker-legacy-column.entry.js +0 -360
- package/dist/esm/ion-picker-legacy-column.entry.js.map +0 -1
- package/dist/esm/ion-picker-legacy.entry.js +0 -296
- package/dist/esm/ion-picker-legacy.entry.js.map +0 -1
- package/dist/esm/ion-picker_3.entry.js +0 -1148
- package/dist/esm/ion-popover.entry.js.map +0 -1
- package/dist/esm/ion-progress-bar.entry.js.map +0 -1
- package/dist/esm/ion-range.entry.js.map +0 -1
- package/dist/esm/ion-refresher-content.entry.js.map +0 -1
- package/dist/esm/ion-refresher.entry.js.map +0 -1
- package/dist/esm/ion-reorder-group.entry.js.map +0 -1
- package/dist/esm/ion-reorder.entry.js.map +0 -1
- package/dist/esm/ion-route-redirect.entry.js.map +0 -1
- package/dist/esm/ion-route.entry.js.map +0 -1
- package/dist/esm/ion-router-link.entry.js.map +0 -1
- package/dist/esm/ion-router-outlet.entry.js.map +0 -1
- package/dist/esm/ion-router.entry.js.map +0 -1
- package/dist/esm/ion-row.entry.js.map +0 -1
- package/dist/esm/ion-searchbar.entry.js.map +0 -1
- package/dist/esm/ion-segment-button.entry.js.map +0 -1
- package/dist/esm/ion-segment-content.entry.js +0 -16
- package/dist/esm/ion-segment-content.entry.js.map +0 -1
- package/dist/esm/ion-segment-view.entry.js +0 -119
- package/dist/esm/ion-segment-view.entry.js.map +0 -1
- package/dist/esm/ion-segment.entry.js.map +0 -1
- package/dist/esm/ion-select-option.entry.js.map +0 -1
- package/dist/esm/ion-select.entry.js.map +0 -1
- package/dist/esm/ion-skeleton-text.entry.js.map +0 -1
- package/dist/esm/ion-spinner.entry.js.map +0 -1
- package/dist/esm/ion-split-pane.entry.js.map +0 -1
- package/dist/esm/ion-tab-bar.entry.js.map +0 -1
- package/dist/esm/ion-tab-button.entry.js.map +0 -1
- package/dist/esm/ion-tab.entry.js.map +0 -1
- package/dist/esm/ion-tabs.entry.js.map +0 -1
- package/dist/esm/ion-textarea.entry.js.map +0 -1
- package/dist/esm/ion-thumbnail.entry.js.map +0 -1
- package/dist/esm/ion-toast.entry.js.map +0 -1
- package/dist/esm/ion-toggle.entry.js.map +0 -1
- package/dist/esm/ionic-global-C8oJToxs.js +0 -152
- package/dist/esm/ionic-global-C8oJToxs.js.map +0 -1
- package/dist/esm/ios.transition-BFolpAgy.js +0 -681
- package/dist/esm/ios.transition-BFolpAgy.js.map +0 -1
- package/dist/esm/keyboard-DcbqYXj5.js.map +0 -1
- package/dist/esm/keyboard-DgiyREKb.js.map +0 -1
- package/dist/esm/keyboard-controller-CqGCg8tB.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/lock-controller-B-hirT0v.js.map +0 -1
- package/dist/esm/md.transition-e1BRt2V0.js +0 -60
- package/dist/esm/md.transition-e1BRt2V0.js.map +0 -1
- package/dist/esm/menu-toggle-util-CWs_NYdI.js +0 -15
- package/dist/esm/menu-toggle-util-CWs_NYdI.js.map +0 -1
- package/dist/esm/notch-controller-DCfp6pBF.js +0 -156
- package/dist/esm/notch-controller-DCfp6pBF.js.map +0 -1
- package/dist/esm/overlays-BDbqv7G-.js +0 -913
- package/dist/esm/overlays-BDbqv7G-.js.map +0 -1
- package/dist/esm/refresher.utils-DOS2Tyfp.js +0 -199
- package/dist/esm/refresher.utils-DOS2Tyfp.js.map +0 -1
- package/dist/esm/spinner-configs-D4RIp70E.js.map +0 -1
- package/dist/esm/status-tap-BTOXpL_S.js +0 -42
- package/dist/esm/status-tap-BTOXpL_S.js.map +0 -1
- package/dist/esm/swipe-back-CetNYyPP.js +0 -83
- package/dist/esm/swipe-back-CetNYyPP.js.map +0 -1
- package/dist/esm/theme-DiVJyqlX.js.map +0 -1
- package/dist/esm/validity-DJztqcrH.js +0 -20
- package/dist/esm/validity-DJztqcrH.js.map +0 -1
- package/dist/esm/watch-options-Dtdm8lKC.js.map +0 -1
|
@@ -1,3670 +1 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, t as transformTag } from './p-abe_AkUW.js';
|
|
2
|
-
import { T as TranslationUtils } from './p-C03M5ZSM.js';
|
|
3
|
-
|
|
4
|
-
var browser = {};
|
|
5
|
-
|
|
6
|
-
var canPromise;
|
|
7
|
-
var hasRequiredCanPromise;
|
|
8
|
-
|
|
9
|
-
function requireCanPromise () {
|
|
10
|
-
if (hasRequiredCanPromise) return canPromise;
|
|
11
|
-
hasRequiredCanPromise = 1;
|
|
12
|
-
// can-promise has a crash in some versions of react native that dont have
|
|
13
|
-
// standard global objects
|
|
14
|
-
// https://github.com/soldair/node-qrcode/issues/157
|
|
15
|
-
|
|
16
|
-
canPromise = function () {
|
|
17
|
-
return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
|
|
18
|
-
};
|
|
19
|
-
return canPromise;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var qrcode = {};
|
|
23
|
-
|
|
24
|
-
var utils$1 = {};
|
|
25
|
-
|
|
26
|
-
var hasRequiredUtils$1;
|
|
27
|
-
|
|
28
|
-
function requireUtils$1 () {
|
|
29
|
-
if (hasRequiredUtils$1) return utils$1;
|
|
30
|
-
hasRequiredUtils$1 = 1;
|
|
31
|
-
let toSJISFunction;
|
|
32
|
-
const CODEWORDS_COUNT = [
|
|
33
|
-
0, // Not used
|
|
34
|
-
26, 44, 70, 100, 134, 172, 196, 242, 292, 346,
|
|
35
|
-
404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,
|
|
36
|
-
1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,
|
|
37
|
-
2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
|
|
38
|
-
];
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Returns the QR Code size for the specified version
|
|
42
|
-
*
|
|
43
|
-
* @param {Number} version QR Code version
|
|
44
|
-
* @return {Number} size of QR code
|
|
45
|
-
*/
|
|
46
|
-
utils$1.getSymbolSize = function getSymbolSize (version) {
|
|
47
|
-
if (!version) throw new Error('"version" cannot be null or undefined')
|
|
48
|
-
if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40')
|
|
49
|
-
return version * 4 + 17
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Returns the total number of codewords used to store data and EC information.
|
|
54
|
-
*
|
|
55
|
-
* @param {Number} version QR Code version
|
|
56
|
-
* @return {Number} Data length in bits
|
|
57
|
-
*/
|
|
58
|
-
utils$1.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {
|
|
59
|
-
return CODEWORDS_COUNT[version]
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Encode data with Bose-Chaudhuri-Hocquenghem
|
|
64
|
-
*
|
|
65
|
-
* @param {Number} data Value to encode
|
|
66
|
-
* @return {Number} Encoded value
|
|
67
|
-
*/
|
|
68
|
-
utils$1.getBCHDigit = function (data) {
|
|
69
|
-
let digit = 0;
|
|
70
|
-
|
|
71
|
-
while (data !== 0) {
|
|
72
|
-
digit++;
|
|
73
|
-
data >>>= 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return digit
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
utils$1.setToSJISFunction = function setToSJISFunction (f) {
|
|
80
|
-
if (typeof f !== 'function') {
|
|
81
|
-
throw new Error('"toSJISFunc" is not a valid function.')
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
toSJISFunction = f;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
utils$1.isKanjiModeEnabled = function () {
|
|
88
|
-
return typeof toSJISFunction !== 'undefined'
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
utils$1.toSJIS = function toSJIS (kanji) {
|
|
92
|
-
return toSJISFunction(kanji)
|
|
93
|
-
};
|
|
94
|
-
return utils$1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var errorCorrectionLevel = {};
|
|
98
|
-
|
|
99
|
-
var hasRequiredErrorCorrectionLevel;
|
|
100
|
-
|
|
101
|
-
function requireErrorCorrectionLevel () {
|
|
102
|
-
if (hasRequiredErrorCorrectionLevel) return errorCorrectionLevel;
|
|
103
|
-
hasRequiredErrorCorrectionLevel = 1;
|
|
104
|
-
(function (exports) {
|
|
105
|
-
exports.L = { bit: 1 };
|
|
106
|
-
exports.M = { bit: 0 };
|
|
107
|
-
exports.Q = { bit: 3 };
|
|
108
|
-
exports.H = { bit: 2 };
|
|
109
|
-
|
|
110
|
-
function fromString (string) {
|
|
111
|
-
if (typeof string !== 'string') {
|
|
112
|
-
throw new Error('Param is not a string')
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const lcStr = string.toLowerCase();
|
|
116
|
-
|
|
117
|
-
switch (lcStr) {
|
|
118
|
-
case 'l':
|
|
119
|
-
case 'low':
|
|
120
|
-
return exports.L
|
|
121
|
-
|
|
122
|
-
case 'm':
|
|
123
|
-
case 'medium':
|
|
124
|
-
return exports.M
|
|
125
|
-
|
|
126
|
-
case 'q':
|
|
127
|
-
case 'quartile':
|
|
128
|
-
return exports.Q
|
|
129
|
-
|
|
130
|
-
case 'h':
|
|
131
|
-
case 'high':
|
|
132
|
-
return exports.H
|
|
133
|
-
|
|
134
|
-
default:
|
|
135
|
-
throw new Error('Unknown EC Level: ' + string)
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
exports.isValid = function isValid (level) {
|
|
140
|
-
return level && typeof level.bit !== 'undefined' &&
|
|
141
|
-
level.bit >= 0 && level.bit < 4
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
exports.from = function from (value, defaultValue) {
|
|
145
|
-
if (exports.isValid(value)) {
|
|
146
|
-
return value
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
try {
|
|
150
|
-
return fromString(value)
|
|
151
|
-
} catch (e) {
|
|
152
|
-
return defaultValue
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
} (errorCorrectionLevel));
|
|
156
|
-
return errorCorrectionLevel;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
var bitBuffer;
|
|
160
|
-
var hasRequiredBitBuffer;
|
|
161
|
-
|
|
162
|
-
function requireBitBuffer () {
|
|
163
|
-
if (hasRequiredBitBuffer) return bitBuffer;
|
|
164
|
-
hasRequiredBitBuffer = 1;
|
|
165
|
-
function BitBuffer () {
|
|
166
|
-
this.buffer = [];
|
|
167
|
-
this.length = 0;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
BitBuffer.prototype = {
|
|
171
|
-
|
|
172
|
-
get: function (index) {
|
|
173
|
-
const bufIndex = Math.floor(index / 8);
|
|
174
|
-
return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
put: function (num, length) {
|
|
178
|
-
for (let i = 0; i < length; i++) {
|
|
179
|
-
this.putBit(((num >>> (length - i - 1)) & 1) === 1);
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
getLengthInBits: function () {
|
|
184
|
-
return this.length
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
putBit: function (bit) {
|
|
188
|
-
const bufIndex = Math.floor(this.length / 8);
|
|
189
|
-
if (this.buffer.length <= bufIndex) {
|
|
190
|
-
this.buffer.push(0);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (bit) {
|
|
194
|
-
this.buffer[bufIndex] |= (0x80 >>> (this.length % 8));
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
this.length++;
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
bitBuffer = BitBuffer;
|
|
202
|
-
return bitBuffer;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Helper class to handle QR Code symbol modules
|
|
207
|
-
*
|
|
208
|
-
* @param {Number} size Symbol size
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
var bitMatrix;
|
|
212
|
-
var hasRequiredBitMatrix;
|
|
213
|
-
|
|
214
|
-
function requireBitMatrix () {
|
|
215
|
-
if (hasRequiredBitMatrix) return bitMatrix;
|
|
216
|
-
hasRequiredBitMatrix = 1;
|
|
217
|
-
function BitMatrix (size) {
|
|
218
|
-
if (!size || size < 1) {
|
|
219
|
-
throw new Error('BitMatrix size must be defined and greater than 0')
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
this.size = size;
|
|
223
|
-
this.data = new Uint8Array(size * size);
|
|
224
|
-
this.reservedBit = new Uint8Array(size * size);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Set bit value at specified location
|
|
229
|
-
* If reserved flag is set, this bit will be ignored during masking process
|
|
230
|
-
*
|
|
231
|
-
* @param {Number} row
|
|
232
|
-
* @param {Number} col
|
|
233
|
-
* @param {Boolean} value
|
|
234
|
-
* @param {Boolean} reserved
|
|
235
|
-
*/
|
|
236
|
-
BitMatrix.prototype.set = function (row, col, value, reserved) {
|
|
237
|
-
const index = row * this.size + col;
|
|
238
|
-
this.data[index] = value;
|
|
239
|
-
if (reserved) this.reservedBit[index] = true;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Returns bit value at specified location
|
|
244
|
-
*
|
|
245
|
-
* @param {Number} row
|
|
246
|
-
* @param {Number} col
|
|
247
|
-
* @return {Boolean}
|
|
248
|
-
*/
|
|
249
|
-
BitMatrix.prototype.get = function (row, col) {
|
|
250
|
-
return this.data[row * this.size + col]
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Applies xor operator at specified location
|
|
255
|
-
* (used during masking process)
|
|
256
|
-
*
|
|
257
|
-
* @param {Number} row
|
|
258
|
-
* @param {Number} col
|
|
259
|
-
* @param {Boolean} value
|
|
260
|
-
*/
|
|
261
|
-
BitMatrix.prototype.xor = function (row, col, value) {
|
|
262
|
-
this.data[row * this.size + col] ^= value;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Check if bit at specified location is reserved
|
|
267
|
-
*
|
|
268
|
-
* @param {Number} row
|
|
269
|
-
* @param {Number} col
|
|
270
|
-
* @return {Boolean}
|
|
271
|
-
*/
|
|
272
|
-
BitMatrix.prototype.isReserved = function (row, col) {
|
|
273
|
-
return this.reservedBit[row * this.size + col]
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
bitMatrix = BitMatrix;
|
|
277
|
-
return bitMatrix;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
var alignmentPattern = {};
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Alignment pattern are fixed reference pattern in defined positions
|
|
284
|
-
* in a matrix symbology, which enables the decode software to re-synchronise
|
|
285
|
-
* the coordinate mapping of the image modules in the event of moderate amounts
|
|
286
|
-
* of distortion of the image.
|
|
287
|
-
*
|
|
288
|
-
* Alignment patterns are present only in QR Code symbols of version 2 or larger
|
|
289
|
-
* and their number depends on the symbol version.
|
|
290
|
-
*/
|
|
291
|
-
|
|
292
|
-
var hasRequiredAlignmentPattern;
|
|
293
|
-
|
|
294
|
-
function requireAlignmentPattern () {
|
|
295
|
-
if (hasRequiredAlignmentPattern) return alignmentPattern;
|
|
296
|
-
hasRequiredAlignmentPattern = 1;
|
|
297
|
-
(function (exports) {
|
|
298
|
-
const getSymbolSize = requireUtils$1().getSymbolSize;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Calculate the row/column coordinates of the center module of each alignment pattern
|
|
302
|
-
* for the specified QR Code version.
|
|
303
|
-
*
|
|
304
|
-
* The alignment patterns are positioned symmetrically on either side of the diagonal
|
|
305
|
-
* running from the top left corner of the symbol to the bottom right corner.
|
|
306
|
-
*
|
|
307
|
-
* Since positions are simmetrical only half of the coordinates are returned.
|
|
308
|
-
* Each item of the array will represent in turn the x and y coordinate.
|
|
309
|
-
* @see {@link getPositions}
|
|
310
|
-
*
|
|
311
|
-
* @param {Number} version QR Code version
|
|
312
|
-
* @return {Array} Array of coordinate
|
|
313
|
-
*/
|
|
314
|
-
exports.getRowColCoords = function getRowColCoords (version) {
|
|
315
|
-
if (version === 1) return []
|
|
316
|
-
|
|
317
|
-
const posCount = Math.floor(version / 7) + 2;
|
|
318
|
-
const size = getSymbolSize(version);
|
|
319
|
-
const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2;
|
|
320
|
-
const positions = [size - 7]; // Last coord is always (size - 7)
|
|
321
|
-
|
|
322
|
-
for (let i = 1; i < posCount - 1; i++) {
|
|
323
|
-
positions[i] = positions[i - 1] - intervals;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
positions.push(6); // First coord is always 6
|
|
327
|
-
|
|
328
|
-
return positions.reverse()
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Returns an array containing the positions of each alignment pattern.
|
|
333
|
-
* Each array's element represent the center point of the pattern as (x, y) coordinates
|
|
334
|
-
*
|
|
335
|
-
* Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}
|
|
336
|
-
* and filtering out the items that overlaps with finder pattern
|
|
337
|
-
*
|
|
338
|
-
* @example
|
|
339
|
-
* For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.
|
|
340
|
-
* The alignment patterns, therefore, are to be centered on (row, column)
|
|
341
|
-
* positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).
|
|
342
|
-
* Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns
|
|
343
|
-
* and are not therefore used for alignment patterns.
|
|
344
|
-
*
|
|
345
|
-
* let pos = getPositions(7)
|
|
346
|
-
* // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]
|
|
347
|
-
*
|
|
348
|
-
* @param {Number} version QR Code version
|
|
349
|
-
* @return {Array} Array of coordinates
|
|
350
|
-
*/
|
|
351
|
-
exports.getPositions = function getPositions (version) {
|
|
352
|
-
const coords = [];
|
|
353
|
-
const pos = exports.getRowColCoords(version);
|
|
354
|
-
const posLength = pos.length;
|
|
355
|
-
|
|
356
|
-
for (let i = 0; i < posLength; i++) {
|
|
357
|
-
for (let j = 0; j < posLength; j++) {
|
|
358
|
-
// Skip if position is occupied by finder patterns
|
|
359
|
-
if ((i === 0 && j === 0) || // top-left
|
|
360
|
-
(i === 0 && j === posLength - 1) || // bottom-left
|
|
361
|
-
(i === posLength - 1 && j === 0)) { // top-right
|
|
362
|
-
continue
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
coords.push([pos[i], pos[j]]);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return coords
|
|
370
|
-
};
|
|
371
|
-
} (alignmentPattern));
|
|
372
|
-
return alignmentPattern;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
var finderPattern = {};
|
|
376
|
-
|
|
377
|
-
var hasRequiredFinderPattern;
|
|
378
|
-
|
|
379
|
-
function requireFinderPattern () {
|
|
380
|
-
if (hasRequiredFinderPattern) return finderPattern;
|
|
381
|
-
hasRequiredFinderPattern = 1;
|
|
382
|
-
const getSymbolSize = requireUtils$1().getSymbolSize;
|
|
383
|
-
const FINDER_PATTERN_SIZE = 7;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Returns an array containing the positions of each finder pattern.
|
|
387
|
-
* Each array's element represent the top-left point of the pattern as (x, y) coordinates
|
|
388
|
-
*
|
|
389
|
-
* @param {Number} version QR Code version
|
|
390
|
-
* @return {Array} Array of coordinates
|
|
391
|
-
*/
|
|
392
|
-
finderPattern.getPositions = function getPositions (version) {
|
|
393
|
-
const size = getSymbolSize(version);
|
|
394
|
-
|
|
395
|
-
return [
|
|
396
|
-
// top-left
|
|
397
|
-
[0, 0],
|
|
398
|
-
// top-right
|
|
399
|
-
[size - FINDER_PATTERN_SIZE, 0],
|
|
400
|
-
// bottom-left
|
|
401
|
-
[0, size - FINDER_PATTERN_SIZE]
|
|
402
|
-
]
|
|
403
|
-
};
|
|
404
|
-
return finderPattern;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
var maskPattern = {};
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Data mask pattern reference
|
|
411
|
-
* @type {Object}
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
var hasRequiredMaskPattern;
|
|
415
|
-
|
|
416
|
-
function requireMaskPattern () {
|
|
417
|
-
if (hasRequiredMaskPattern) return maskPattern;
|
|
418
|
-
hasRequiredMaskPattern = 1;
|
|
419
|
-
(function (exports) {
|
|
420
|
-
exports.Patterns = {
|
|
421
|
-
PATTERN000: 0,
|
|
422
|
-
PATTERN001: 1,
|
|
423
|
-
PATTERN010: 2,
|
|
424
|
-
PATTERN011: 3,
|
|
425
|
-
PATTERN100: 4,
|
|
426
|
-
PATTERN101: 5,
|
|
427
|
-
PATTERN110: 6,
|
|
428
|
-
PATTERN111: 7
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Weighted penalty scores for the undesirable features
|
|
433
|
-
* @type {Object}
|
|
434
|
-
*/
|
|
435
|
-
const PenaltyScores = {
|
|
436
|
-
N1: 3,
|
|
437
|
-
N2: 3,
|
|
438
|
-
N3: 40,
|
|
439
|
-
N4: 10
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Check if mask pattern value is valid
|
|
444
|
-
*
|
|
445
|
-
* @param {Number} mask Mask pattern
|
|
446
|
-
* @return {Boolean} true if valid, false otherwise
|
|
447
|
-
*/
|
|
448
|
-
exports.isValid = function isValid (mask) {
|
|
449
|
-
return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Returns mask pattern from a value.
|
|
454
|
-
* If value is not valid, returns undefined
|
|
455
|
-
*
|
|
456
|
-
* @param {Number|String} value Mask pattern value
|
|
457
|
-
* @return {Number} Valid mask pattern or undefined
|
|
458
|
-
*/
|
|
459
|
-
exports.from = function from (value) {
|
|
460
|
-
return exports.isValid(value) ? parseInt(value, 10) : undefined
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Find adjacent modules in row/column with the same color
|
|
465
|
-
* and assign a penalty value.
|
|
466
|
-
*
|
|
467
|
-
* Points: N1 + i
|
|
468
|
-
* i is the amount by which the number of adjacent modules of the same color exceeds 5
|
|
469
|
-
*/
|
|
470
|
-
exports.getPenaltyN1 = function getPenaltyN1 (data) {
|
|
471
|
-
const size = data.size;
|
|
472
|
-
let points = 0;
|
|
473
|
-
let sameCountCol = 0;
|
|
474
|
-
let sameCountRow = 0;
|
|
475
|
-
let lastCol = null;
|
|
476
|
-
let lastRow = null;
|
|
477
|
-
|
|
478
|
-
for (let row = 0; row < size; row++) {
|
|
479
|
-
sameCountCol = sameCountRow = 0;
|
|
480
|
-
lastCol = lastRow = null;
|
|
481
|
-
|
|
482
|
-
for (let col = 0; col < size; col++) {
|
|
483
|
-
let module = data.get(row, col);
|
|
484
|
-
if (module === lastCol) {
|
|
485
|
-
sameCountCol++;
|
|
486
|
-
} else {
|
|
487
|
-
if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5);
|
|
488
|
-
lastCol = module;
|
|
489
|
-
sameCountCol = 1;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
module = data.get(col, row);
|
|
493
|
-
if (module === lastRow) {
|
|
494
|
-
sameCountRow++;
|
|
495
|
-
} else {
|
|
496
|
-
if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5);
|
|
497
|
-
lastRow = module;
|
|
498
|
-
sameCountRow = 1;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5);
|
|
503
|
-
if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
return points
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Find 2x2 blocks with the same color and assign a penalty value
|
|
511
|
-
*
|
|
512
|
-
* Points: N2 * (m - 1) * (n - 1)
|
|
513
|
-
*/
|
|
514
|
-
exports.getPenaltyN2 = function getPenaltyN2 (data) {
|
|
515
|
-
const size = data.size;
|
|
516
|
-
let points = 0;
|
|
517
|
-
|
|
518
|
-
for (let row = 0; row < size - 1; row++) {
|
|
519
|
-
for (let col = 0; col < size - 1; col++) {
|
|
520
|
-
const last = data.get(row, col) +
|
|
521
|
-
data.get(row, col + 1) +
|
|
522
|
-
data.get(row + 1, col) +
|
|
523
|
-
data.get(row + 1, col + 1);
|
|
524
|
-
|
|
525
|
-
if (last === 4 || last === 0) points++;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
return points * PenaltyScores.N2
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,
|
|
534
|
-
* preceded or followed by light area 4 modules wide
|
|
535
|
-
*
|
|
536
|
-
* Points: N3 * number of pattern found
|
|
537
|
-
*/
|
|
538
|
-
exports.getPenaltyN3 = function getPenaltyN3 (data) {
|
|
539
|
-
const size = data.size;
|
|
540
|
-
let points = 0;
|
|
541
|
-
let bitsCol = 0;
|
|
542
|
-
let bitsRow = 0;
|
|
543
|
-
|
|
544
|
-
for (let row = 0; row < size; row++) {
|
|
545
|
-
bitsCol = bitsRow = 0;
|
|
546
|
-
for (let col = 0; col < size; col++) {
|
|
547
|
-
bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col);
|
|
548
|
-
if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++;
|
|
549
|
-
|
|
550
|
-
bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row);
|
|
551
|
-
if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
return points * PenaltyScores.N3
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Calculate proportion of dark modules in entire symbol
|
|
560
|
-
*
|
|
561
|
-
* Points: N4 * k
|
|
562
|
-
*
|
|
563
|
-
* k is the rating of the deviation of the proportion of dark modules
|
|
564
|
-
* in the symbol from 50% in steps of 5%
|
|
565
|
-
*/
|
|
566
|
-
exports.getPenaltyN4 = function getPenaltyN4 (data) {
|
|
567
|
-
let darkCount = 0;
|
|
568
|
-
const modulesCount = data.data.length;
|
|
569
|
-
|
|
570
|
-
for (let i = 0; i < modulesCount; i++) darkCount += data.data[i];
|
|
571
|
-
|
|
572
|
-
const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10);
|
|
573
|
-
|
|
574
|
-
return k * PenaltyScores.N4
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Return mask value at given position
|
|
579
|
-
*
|
|
580
|
-
* @param {Number} maskPattern Pattern reference value
|
|
581
|
-
* @param {Number} i Row
|
|
582
|
-
* @param {Number} j Column
|
|
583
|
-
* @return {Boolean} Mask value
|
|
584
|
-
*/
|
|
585
|
-
function getMaskAt (maskPattern, i, j) {
|
|
586
|
-
switch (maskPattern) {
|
|
587
|
-
case exports.Patterns.PATTERN000: return (i + j) % 2 === 0
|
|
588
|
-
case exports.Patterns.PATTERN001: return i % 2 === 0
|
|
589
|
-
case exports.Patterns.PATTERN010: return j % 3 === 0
|
|
590
|
-
case exports.Patterns.PATTERN011: return (i + j) % 3 === 0
|
|
591
|
-
case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0
|
|
592
|
-
case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0
|
|
593
|
-
case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0
|
|
594
|
-
case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0
|
|
595
|
-
|
|
596
|
-
default: throw new Error('bad maskPattern:' + maskPattern)
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Apply a mask pattern to a BitMatrix
|
|
602
|
-
*
|
|
603
|
-
* @param {Number} pattern Pattern reference number
|
|
604
|
-
* @param {BitMatrix} data BitMatrix data
|
|
605
|
-
*/
|
|
606
|
-
exports.applyMask = function applyMask (pattern, data) {
|
|
607
|
-
const size = data.size;
|
|
608
|
-
|
|
609
|
-
for (let col = 0; col < size; col++) {
|
|
610
|
-
for (let row = 0; row < size; row++) {
|
|
611
|
-
if (data.isReserved(row, col)) continue
|
|
612
|
-
data.xor(row, col, getMaskAt(pattern, row, col));
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* Returns the best mask pattern for data
|
|
619
|
-
*
|
|
620
|
-
* @param {BitMatrix} data
|
|
621
|
-
* @return {Number} Mask pattern reference number
|
|
622
|
-
*/
|
|
623
|
-
exports.getBestMask = function getBestMask (data, setupFormatFunc) {
|
|
624
|
-
const numPatterns = Object.keys(exports.Patterns).length;
|
|
625
|
-
let bestPattern = 0;
|
|
626
|
-
let lowerPenalty = Infinity;
|
|
627
|
-
|
|
628
|
-
for (let p = 0; p < numPatterns; p++) {
|
|
629
|
-
setupFormatFunc(p);
|
|
630
|
-
exports.applyMask(p, data);
|
|
631
|
-
|
|
632
|
-
// Calculate penalty
|
|
633
|
-
const penalty =
|
|
634
|
-
exports.getPenaltyN1(data) +
|
|
635
|
-
exports.getPenaltyN2(data) +
|
|
636
|
-
exports.getPenaltyN3(data) +
|
|
637
|
-
exports.getPenaltyN4(data);
|
|
638
|
-
|
|
639
|
-
// Undo previously applied mask
|
|
640
|
-
exports.applyMask(p, data);
|
|
641
|
-
|
|
642
|
-
if (penalty < lowerPenalty) {
|
|
643
|
-
lowerPenalty = penalty;
|
|
644
|
-
bestPattern = p;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
return bestPattern
|
|
649
|
-
};
|
|
650
|
-
} (maskPattern));
|
|
651
|
-
return maskPattern;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
var errorCorrectionCode = {};
|
|
655
|
-
|
|
656
|
-
var hasRequiredErrorCorrectionCode;
|
|
657
|
-
|
|
658
|
-
function requireErrorCorrectionCode () {
|
|
659
|
-
if (hasRequiredErrorCorrectionCode) return errorCorrectionCode;
|
|
660
|
-
hasRequiredErrorCorrectionCode = 1;
|
|
661
|
-
const ECLevel = requireErrorCorrectionLevel();
|
|
662
|
-
|
|
663
|
-
const EC_BLOCKS_TABLE = [
|
|
664
|
-
// L M Q H
|
|
665
|
-
1, 1, 1, 1,
|
|
666
|
-
1, 1, 1, 1,
|
|
667
|
-
1, 1, 2, 2,
|
|
668
|
-
1, 2, 2, 4,
|
|
669
|
-
1, 2, 4, 4,
|
|
670
|
-
2, 4, 4, 4,
|
|
671
|
-
2, 4, 6, 5,
|
|
672
|
-
2, 4, 6, 6,
|
|
673
|
-
2, 5, 8, 8,
|
|
674
|
-
4, 5, 8, 8,
|
|
675
|
-
4, 5, 8, 11,
|
|
676
|
-
4, 8, 10, 11,
|
|
677
|
-
4, 9, 12, 16,
|
|
678
|
-
4, 9, 16, 16,
|
|
679
|
-
6, 10, 12, 18,
|
|
680
|
-
6, 10, 17, 16,
|
|
681
|
-
6, 11, 16, 19,
|
|
682
|
-
6, 13, 18, 21,
|
|
683
|
-
7, 14, 21, 25,
|
|
684
|
-
8, 16, 20, 25,
|
|
685
|
-
8, 17, 23, 25,
|
|
686
|
-
9, 17, 23, 34,
|
|
687
|
-
9, 18, 25, 30,
|
|
688
|
-
10, 20, 27, 32,
|
|
689
|
-
12, 21, 29, 35,
|
|
690
|
-
12, 23, 34, 37,
|
|
691
|
-
12, 25, 34, 40,
|
|
692
|
-
13, 26, 35, 42,
|
|
693
|
-
14, 28, 38, 45,
|
|
694
|
-
15, 29, 40, 48,
|
|
695
|
-
16, 31, 43, 51,
|
|
696
|
-
17, 33, 45, 54,
|
|
697
|
-
18, 35, 48, 57,
|
|
698
|
-
19, 37, 51, 60,
|
|
699
|
-
19, 38, 53, 63,
|
|
700
|
-
20, 40, 56, 66,
|
|
701
|
-
21, 43, 59, 70,
|
|
702
|
-
22, 45, 62, 74,
|
|
703
|
-
24, 47, 65, 77,
|
|
704
|
-
25, 49, 68, 81
|
|
705
|
-
];
|
|
706
|
-
|
|
707
|
-
const EC_CODEWORDS_TABLE = [
|
|
708
|
-
// L M Q H
|
|
709
|
-
7, 10, 13, 17,
|
|
710
|
-
10, 16, 22, 28,
|
|
711
|
-
15, 26, 36, 44,
|
|
712
|
-
20, 36, 52, 64,
|
|
713
|
-
26, 48, 72, 88,
|
|
714
|
-
36, 64, 96, 112,
|
|
715
|
-
40, 72, 108, 130,
|
|
716
|
-
48, 88, 132, 156,
|
|
717
|
-
60, 110, 160, 192,
|
|
718
|
-
72, 130, 192, 224,
|
|
719
|
-
80, 150, 224, 264,
|
|
720
|
-
96, 176, 260, 308,
|
|
721
|
-
104, 198, 288, 352,
|
|
722
|
-
120, 216, 320, 384,
|
|
723
|
-
132, 240, 360, 432,
|
|
724
|
-
144, 280, 408, 480,
|
|
725
|
-
168, 308, 448, 532,
|
|
726
|
-
180, 338, 504, 588,
|
|
727
|
-
196, 364, 546, 650,
|
|
728
|
-
224, 416, 600, 700,
|
|
729
|
-
224, 442, 644, 750,
|
|
730
|
-
252, 476, 690, 816,
|
|
731
|
-
270, 504, 750, 900,
|
|
732
|
-
300, 560, 810, 960,
|
|
733
|
-
312, 588, 870, 1050,
|
|
734
|
-
336, 644, 952, 1110,
|
|
735
|
-
360, 700, 1020, 1200,
|
|
736
|
-
390, 728, 1050, 1260,
|
|
737
|
-
420, 784, 1140, 1350,
|
|
738
|
-
450, 812, 1200, 1440,
|
|
739
|
-
480, 868, 1290, 1530,
|
|
740
|
-
510, 924, 1350, 1620,
|
|
741
|
-
540, 980, 1440, 1710,
|
|
742
|
-
570, 1036, 1530, 1800,
|
|
743
|
-
570, 1064, 1590, 1890,
|
|
744
|
-
600, 1120, 1680, 1980,
|
|
745
|
-
630, 1204, 1770, 2100,
|
|
746
|
-
660, 1260, 1860, 2220,
|
|
747
|
-
720, 1316, 1950, 2310,
|
|
748
|
-
750, 1372, 2040, 2430
|
|
749
|
-
];
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* Returns the number of error correction block that the QR Code should contain
|
|
753
|
-
* for the specified version and error correction level.
|
|
754
|
-
*
|
|
755
|
-
* @param {Number} version QR Code version
|
|
756
|
-
* @param {Number} errorCorrectionLevel Error correction level
|
|
757
|
-
* @return {Number} Number of error correction blocks
|
|
758
|
-
*/
|
|
759
|
-
errorCorrectionCode.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {
|
|
760
|
-
switch (errorCorrectionLevel) {
|
|
761
|
-
case ECLevel.L:
|
|
762
|
-
return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
|
|
763
|
-
case ECLevel.M:
|
|
764
|
-
return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
|
|
765
|
-
case ECLevel.Q:
|
|
766
|
-
return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
|
|
767
|
-
case ECLevel.H:
|
|
768
|
-
return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
|
|
769
|
-
default:
|
|
770
|
-
return undefined
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Returns the number of error correction codewords to use for the specified
|
|
776
|
-
* version and error correction level.
|
|
777
|
-
*
|
|
778
|
-
* @param {Number} version QR Code version
|
|
779
|
-
* @param {Number} errorCorrectionLevel Error correction level
|
|
780
|
-
* @return {Number} Number of error correction codewords
|
|
781
|
-
*/
|
|
782
|
-
errorCorrectionCode.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {
|
|
783
|
-
switch (errorCorrectionLevel) {
|
|
784
|
-
case ECLevel.L:
|
|
785
|
-
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
|
|
786
|
-
case ECLevel.M:
|
|
787
|
-
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
|
|
788
|
-
case ECLevel.Q:
|
|
789
|
-
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
|
|
790
|
-
case ECLevel.H:
|
|
791
|
-
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
|
|
792
|
-
default:
|
|
793
|
-
return undefined
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
return errorCorrectionCode;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
var polynomial = {};
|
|
800
|
-
|
|
801
|
-
var galoisField = {};
|
|
802
|
-
|
|
803
|
-
var hasRequiredGaloisField;
|
|
804
|
-
|
|
805
|
-
function requireGaloisField () {
|
|
806
|
-
if (hasRequiredGaloisField) return galoisField;
|
|
807
|
-
hasRequiredGaloisField = 1;
|
|
808
|
-
const EXP_TABLE = new Uint8Array(512);
|
|
809
|
-
const LOG_TABLE = new Uint8Array(256)
|
|
810
|
-
/**
|
|
811
|
-
* Precompute the log and anti-log tables for faster computation later
|
|
812
|
-
*
|
|
813
|
-
* For each possible value in the galois field 2^8, we will pre-compute
|
|
814
|
-
* the logarithm and anti-logarithm (exponential) of this value
|
|
815
|
-
*
|
|
816
|
-
* ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
|
|
817
|
-
*/
|
|
818
|
-
;(function initTables () {
|
|
819
|
-
let x = 1;
|
|
820
|
-
for (let i = 0; i < 255; i++) {
|
|
821
|
-
EXP_TABLE[i] = x;
|
|
822
|
-
LOG_TABLE[x] = i;
|
|
823
|
-
|
|
824
|
-
x <<= 1; // multiply by 2
|
|
825
|
-
|
|
826
|
-
// The QR code specification says to use byte-wise modulo 100011101 arithmetic.
|
|
827
|
-
// This means that when a number is 256 or larger, it should be XORed with 0x11D.
|
|
828
|
-
if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
|
|
829
|
-
x ^= 0x11D;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
// Optimization: double the size of the anti-log table so that we don't need to mod 255 to
|
|
834
|
-
// stay inside the bounds (because we will mainly use this table for the multiplication of
|
|
835
|
-
// two GF numbers, no more).
|
|
836
|
-
// @see {@link mul}
|
|
837
|
-
for (let i = 255; i < 512; i++) {
|
|
838
|
-
EXP_TABLE[i] = EXP_TABLE[i - 255];
|
|
839
|
-
}
|
|
840
|
-
}());
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* Returns log value of n inside Galois Field
|
|
844
|
-
*
|
|
845
|
-
* @param {Number} n
|
|
846
|
-
* @return {Number}
|
|
847
|
-
*/
|
|
848
|
-
galoisField.log = function log (n) {
|
|
849
|
-
if (n < 1) throw new Error('log(' + n + ')')
|
|
850
|
-
return LOG_TABLE[n]
|
|
851
|
-
};
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Returns anti-log value of n inside Galois Field
|
|
855
|
-
*
|
|
856
|
-
* @param {Number} n
|
|
857
|
-
* @return {Number}
|
|
858
|
-
*/
|
|
859
|
-
galoisField.exp = function exp (n) {
|
|
860
|
-
return EXP_TABLE[n]
|
|
861
|
-
};
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* Multiplies two number inside Galois Field
|
|
865
|
-
*
|
|
866
|
-
* @param {Number} x
|
|
867
|
-
* @param {Number} y
|
|
868
|
-
* @return {Number}
|
|
869
|
-
*/
|
|
870
|
-
galoisField.mul = function mul (x, y) {
|
|
871
|
-
if (x === 0 || y === 0) return 0
|
|
872
|
-
|
|
873
|
-
// should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
|
|
874
|
-
// @see {@link initTables}
|
|
875
|
-
return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
|
|
876
|
-
};
|
|
877
|
-
return galoisField;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
var hasRequiredPolynomial;
|
|
881
|
-
|
|
882
|
-
function requirePolynomial () {
|
|
883
|
-
if (hasRequiredPolynomial) return polynomial;
|
|
884
|
-
hasRequiredPolynomial = 1;
|
|
885
|
-
(function (exports) {
|
|
886
|
-
const GF = requireGaloisField();
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Multiplies two polynomials inside Galois Field
|
|
890
|
-
*
|
|
891
|
-
* @param {Uint8Array} p1 Polynomial
|
|
892
|
-
* @param {Uint8Array} p2 Polynomial
|
|
893
|
-
* @return {Uint8Array} Product of p1 and p2
|
|
894
|
-
*/
|
|
895
|
-
exports.mul = function mul (p1, p2) {
|
|
896
|
-
const coeff = new Uint8Array(p1.length + p2.length - 1);
|
|
897
|
-
|
|
898
|
-
for (let i = 0; i < p1.length; i++) {
|
|
899
|
-
for (let j = 0; j < p2.length; j++) {
|
|
900
|
-
coeff[i + j] ^= GF.mul(p1[i], p2[j]);
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
return coeff
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Calculate the remainder of polynomials division
|
|
909
|
-
*
|
|
910
|
-
* @param {Uint8Array} divident Polynomial
|
|
911
|
-
* @param {Uint8Array} divisor Polynomial
|
|
912
|
-
* @return {Uint8Array} Remainder
|
|
913
|
-
*/
|
|
914
|
-
exports.mod = function mod (divident, divisor) {
|
|
915
|
-
let result = new Uint8Array(divident);
|
|
916
|
-
|
|
917
|
-
while ((result.length - divisor.length) >= 0) {
|
|
918
|
-
const coeff = result[0];
|
|
919
|
-
|
|
920
|
-
for (let i = 0; i < divisor.length; i++) {
|
|
921
|
-
result[i] ^= GF.mul(divisor[i], coeff);
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
// remove all zeros from buffer head
|
|
925
|
-
let offset = 0;
|
|
926
|
-
while (offset < result.length && result[offset] === 0) offset++;
|
|
927
|
-
result = result.slice(offset);
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
return result
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* Generate an irreducible generator polynomial of specified degree
|
|
935
|
-
* (used by Reed-Solomon encoder)
|
|
936
|
-
*
|
|
937
|
-
* @param {Number} degree Degree of the generator polynomial
|
|
938
|
-
* @return {Uint8Array} Buffer containing polynomial coefficients
|
|
939
|
-
*/
|
|
940
|
-
exports.generateECPolynomial = function generateECPolynomial (degree) {
|
|
941
|
-
let poly = new Uint8Array([1]);
|
|
942
|
-
for (let i = 0; i < degree; i++) {
|
|
943
|
-
poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]));
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
return poly
|
|
947
|
-
};
|
|
948
|
-
} (polynomial));
|
|
949
|
-
return polynomial;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
var reedSolomonEncoder;
|
|
953
|
-
var hasRequiredReedSolomonEncoder;
|
|
954
|
-
|
|
955
|
-
function requireReedSolomonEncoder () {
|
|
956
|
-
if (hasRequiredReedSolomonEncoder) return reedSolomonEncoder;
|
|
957
|
-
hasRequiredReedSolomonEncoder = 1;
|
|
958
|
-
const Polynomial = requirePolynomial();
|
|
959
|
-
|
|
960
|
-
function ReedSolomonEncoder (degree) {
|
|
961
|
-
this.genPoly = undefined;
|
|
962
|
-
this.degree = degree;
|
|
963
|
-
|
|
964
|
-
if (this.degree) this.initialize(this.degree);
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* Initialize the encoder.
|
|
969
|
-
* The input param should correspond to the number of error correction codewords.
|
|
970
|
-
*
|
|
971
|
-
* @param {Number} degree
|
|
972
|
-
*/
|
|
973
|
-
ReedSolomonEncoder.prototype.initialize = function initialize (degree) {
|
|
974
|
-
// create an irreducible generator polynomial
|
|
975
|
-
this.degree = degree;
|
|
976
|
-
this.genPoly = Polynomial.generateECPolynomial(this.degree);
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* Encodes a chunk of data
|
|
981
|
-
*
|
|
982
|
-
* @param {Uint8Array} data Buffer containing input data
|
|
983
|
-
* @return {Uint8Array} Buffer containing encoded data
|
|
984
|
-
*/
|
|
985
|
-
ReedSolomonEncoder.prototype.encode = function encode (data) {
|
|
986
|
-
if (!this.genPoly) {
|
|
987
|
-
throw new Error('Encoder not initialized')
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
// Calculate EC for this data block
|
|
991
|
-
// extends data size to data+genPoly size
|
|
992
|
-
const paddedData = new Uint8Array(data.length + this.degree);
|
|
993
|
-
paddedData.set(data);
|
|
994
|
-
|
|
995
|
-
// The error correction codewords are the remainder after dividing the data codewords
|
|
996
|
-
// by a generator polynomial
|
|
997
|
-
const remainder = Polynomial.mod(paddedData, this.genPoly);
|
|
998
|
-
|
|
999
|
-
// return EC data blocks (last n byte, where n is the degree of genPoly)
|
|
1000
|
-
// If coefficients number in remainder are less than genPoly degree,
|
|
1001
|
-
// pad with 0s to the left to reach the needed number of coefficients
|
|
1002
|
-
const start = this.degree - remainder.length;
|
|
1003
|
-
if (start > 0) {
|
|
1004
|
-
const buff = new Uint8Array(this.degree);
|
|
1005
|
-
buff.set(remainder, start);
|
|
1006
|
-
|
|
1007
|
-
return buff
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
return remainder
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
reedSolomonEncoder = ReedSolomonEncoder;
|
|
1014
|
-
return reedSolomonEncoder;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
var version = {};
|
|
1018
|
-
|
|
1019
|
-
var mode = {};
|
|
1020
|
-
|
|
1021
|
-
var versionCheck = {};
|
|
1022
|
-
|
|
1023
|
-
/**
|
|
1024
|
-
* Check if QR Code version is valid
|
|
1025
|
-
*
|
|
1026
|
-
* @param {Number} version QR Code version
|
|
1027
|
-
* @return {Boolean} true if valid version, false otherwise
|
|
1028
|
-
*/
|
|
1029
|
-
|
|
1030
|
-
var hasRequiredVersionCheck;
|
|
1031
|
-
|
|
1032
|
-
function requireVersionCheck () {
|
|
1033
|
-
if (hasRequiredVersionCheck) return versionCheck;
|
|
1034
|
-
hasRequiredVersionCheck = 1;
|
|
1035
|
-
versionCheck.isValid = function isValid (version) {
|
|
1036
|
-
return !isNaN(version) && version >= 1 && version <= 40
|
|
1037
|
-
};
|
|
1038
|
-
return versionCheck;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
var regex = {};
|
|
1042
|
-
|
|
1043
|
-
var hasRequiredRegex;
|
|
1044
|
-
|
|
1045
|
-
function requireRegex () {
|
|
1046
|
-
if (hasRequiredRegex) return regex;
|
|
1047
|
-
hasRequiredRegex = 1;
|
|
1048
|
-
const numeric = '[0-9]+';
|
|
1049
|
-
const alphanumeric = '[A-Z $%*+\\-./:]+';
|
|
1050
|
-
let kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +
|
|
1051
|
-
'[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +
|
|
1052
|
-
'[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +
|
|
1053
|
-
'[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+';
|
|
1054
|
-
kanji = kanji.replace(/u/g, '\\u');
|
|
1055
|
-
|
|
1056
|
-
const byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ')(?:.|[\r\n]))+';
|
|
1057
|
-
|
|
1058
|
-
regex.KANJI = new RegExp(kanji, 'g');
|
|
1059
|
-
regex.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g');
|
|
1060
|
-
regex.BYTE = new RegExp(byte, 'g');
|
|
1061
|
-
regex.NUMERIC = new RegExp(numeric, 'g');
|
|
1062
|
-
regex.ALPHANUMERIC = new RegExp(alphanumeric, 'g');
|
|
1063
|
-
|
|
1064
|
-
const TEST_KANJI = new RegExp('^' + kanji + '$');
|
|
1065
|
-
const TEST_NUMERIC = new RegExp('^' + numeric + '$');
|
|
1066
|
-
const TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$');
|
|
1067
|
-
|
|
1068
|
-
regex.testKanji = function testKanji (str) {
|
|
1069
|
-
return TEST_KANJI.test(str)
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
regex.testNumeric = function testNumeric (str) {
|
|
1073
|
-
return TEST_NUMERIC.test(str)
|
|
1074
|
-
};
|
|
1075
|
-
|
|
1076
|
-
regex.testAlphanumeric = function testAlphanumeric (str) {
|
|
1077
|
-
return TEST_ALPHANUMERIC.test(str)
|
|
1078
|
-
};
|
|
1079
|
-
return regex;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
var hasRequiredMode;
|
|
1083
|
-
|
|
1084
|
-
function requireMode () {
|
|
1085
|
-
if (hasRequiredMode) return mode;
|
|
1086
|
-
hasRequiredMode = 1;
|
|
1087
|
-
(function (exports) {
|
|
1088
|
-
const VersionCheck = requireVersionCheck();
|
|
1089
|
-
const Regex = requireRegex();
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* Numeric mode encodes data from the decimal digit set (0 - 9)
|
|
1093
|
-
* (byte values 30HEX to 39HEX).
|
|
1094
|
-
* Normally, 3 data characters are represented by 10 bits.
|
|
1095
|
-
*
|
|
1096
|
-
* @type {Object}
|
|
1097
|
-
*/
|
|
1098
|
-
exports.NUMERIC = {
|
|
1099
|
-
id: 'Numeric',
|
|
1100
|
-
bit: 1 << 0,
|
|
1101
|
-
ccBits: [10, 12, 14]
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
/**
|
|
1105
|
-
* Alphanumeric mode encodes data from a set of 45 characters,
|
|
1106
|
-
* i.e. 10 numeric digits (0 - 9),
|
|
1107
|
-
* 26 alphabetic characters (A - Z),
|
|
1108
|
-
* and 9 symbols (SP, $, %, *, +, -, ., /, :).
|
|
1109
|
-
* Normally, two input characters are represented by 11 bits.
|
|
1110
|
-
*
|
|
1111
|
-
* @type {Object}
|
|
1112
|
-
*/
|
|
1113
|
-
exports.ALPHANUMERIC = {
|
|
1114
|
-
id: 'Alphanumeric',
|
|
1115
|
-
bit: 1 << 1,
|
|
1116
|
-
ccBits: [9, 11, 13]
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* In byte mode, data is encoded at 8 bits per character.
|
|
1121
|
-
*
|
|
1122
|
-
* @type {Object}
|
|
1123
|
-
*/
|
|
1124
|
-
exports.BYTE = {
|
|
1125
|
-
id: 'Byte',
|
|
1126
|
-
bit: 1 << 2,
|
|
1127
|
-
ccBits: [8, 16, 16]
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* The Kanji mode efficiently encodes Kanji characters in accordance with
|
|
1132
|
-
* the Shift JIS system based on JIS X 0208.
|
|
1133
|
-
* The Shift JIS values are shifted from the JIS X 0208 values.
|
|
1134
|
-
* JIS X 0208 gives details of the shift coded representation.
|
|
1135
|
-
* Each two-byte character value is compacted to a 13-bit binary codeword.
|
|
1136
|
-
*
|
|
1137
|
-
* @type {Object}
|
|
1138
|
-
*/
|
|
1139
|
-
exports.KANJI = {
|
|
1140
|
-
id: 'Kanji',
|
|
1141
|
-
bit: 1 << 3,
|
|
1142
|
-
ccBits: [8, 10, 12]
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* Mixed mode will contain a sequences of data in a combination of any of
|
|
1147
|
-
* the modes described above
|
|
1148
|
-
*
|
|
1149
|
-
* @type {Object}
|
|
1150
|
-
*/
|
|
1151
|
-
exports.MIXED = {
|
|
1152
|
-
bit: -1
|
|
1153
|
-
};
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* Returns the number of bits needed to store the data length
|
|
1157
|
-
* according to QR Code specifications.
|
|
1158
|
-
*
|
|
1159
|
-
* @param {Mode} mode Data mode
|
|
1160
|
-
* @param {Number} version QR Code version
|
|
1161
|
-
* @return {Number} Number of bits
|
|
1162
|
-
*/
|
|
1163
|
-
exports.getCharCountIndicator = function getCharCountIndicator (mode, version) {
|
|
1164
|
-
if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)
|
|
1165
|
-
|
|
1166
|
-
if (!VersionCheck.isValid(version)) {
|
|
1167
|
-
throw new Error('Invalid version: ' + version)
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
if (version >= 1 && version < 10) return mode.ccBits[0]
|
|
1171
|
-
else if (version < 27) return mode.ccBits[1]
|
|
1172
|
-
return mode.ccBits[2]
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Returns the most efficient mode to store the specified data
|
|
1177
|
-
*
|
|
1178
|
-
* @param {String} dataStr Input data string
|
|
1179
|
-
* @return {Mode} Best mode
|
|
1180
|
-
*/
|
|
1181
|
-
exports.getBestModeForData = function getBestModeForData (dataStr) {
|
|
1182
|
-
if (Regex.testNumeric(dataStr)) return exports.NUMERIC
|
|
1183
|
-
else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC
|
|
1184
|
-
else if (Regex.testKanji(dataStr)) return exports.KANJI
|
|
1185
|
-
else return exports.BYTE
|
|
1186
|
-
};
|
|
1187
|
-
|
|
1188
|
-
/**
|
|
1189
|
-
* Return mode name as string
|
|
1190
|
-
*
|
|
1191
|
-
* @param {Mode} mode Mode object
|
|
1192
|
-
* @returns {String} Mode name
|
|
1193
|
-
*/
|
|
1194
|
-
exports.toString = function toString (mode) {
|
|
1195
|
-
if (mode && mode.id) return mode.id
|
|
1196
|
-
throw new Error('Invalid mode')
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
/**
|
|
1200
|
-
* Check if input param is a valid mode object
|
|
1201
|
-
*
|
|
1202
|
-
* @param {Mode} mode Mode object
|
|
1203
|
-
* @returns {Boolean} True if valid mode, false otherwise
|
|
1204
|
-
*/
|
|
1205
|
-
exports.isValid = function isValid (mode) {
|
|
1206
|
-
return mode && mode.bit && mode.ccBits
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
* Get mode object from its name
|
|
1211
|
-
*
|
|
1212
|
-
* @param {String} string Mode name
|
|
1213
|
-
* @returns {Mode} Mode object
|
|
1214
|
-
*/
|
|
1215
|
-
function fromString (string) {
|
|
1216
|
-
if (typeof string !== 'string') {
|
|
1217
|
-
throw new Error('Param is not a string')
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
const lcStr = string.toLowerCase();
|
|
1221
|
-
|
|
1222
|
-
switch (lcStr) {
|
|
1223
|
-
case 'numeric':
|
|
1224
|
-
return exports.NUMERIC
|
|
1225
|
-
case 'alphanumeric':
|
|
1226
|
-
return exports.ALPHANUMERIC
|
|
1227
|
-
case 'kanji':
|
|
1228
|
-
return exports.KANJI
|
|
1229
|
-
case 'byte':
|
|
1230
|
-
return exports.BYTE
|
|
1231
|
-
default:
|
|
1232
|
-
throw new Error('Unknown mode: ' + string)
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* Returns mode from a value.
|
|
1238
|
-
* If value is not a valid mode, returns defaultValue
|
|
1239
|
-
*
|
|
1240
|
-
* @param {Mode|String} value Encoding mode
|
|
1241
|
-
* @param {Mode} defaultValue Fallback value
|
|
1242
|
-
* @return {Mode} Encoding mode
|
|
1243
|
-
*/
|
|
1244
|
-
exports.from = function from (value, defaultValue) {
|
|
1245
|
-
if (exports.isValid(value)) {
|
|
1246
|
-
return value
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
try {
|
|
1250
|
-
return fromString(value)
|
|
1251
|
-
} catch (e) {
|
|
1252
|
-
return defaultValue
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
|
-
} (mode));
|
|
1256
|
-
return mode;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
var hasRequiredVersion;
|
|
1260
|
-
|
|
1261
|
-
function requireVersion () {
|
|
1262
|
-
if (hasRequiredVersion) return version;
|
|
1263
|
-
hasRequiredVersion = 1;
|
|
1264
|
-
(function (exports) {
|
|
1265
|
-
const Utils = requireUtils$1();
|
|
1266
|
-
const ECCode = requireErrorCorrectionCode();
|
|
1267
|
-
const ECLevel = requireErrorCorrectionLevel();
|
|
1268
|
-
const Mode = requireMode();
|
|
1269
|
-
const VersionCheck = requireVersionCheck();
|
|
1270
|
-
|
|
1271
|
-
// Generator polynomial used to encode version information
|
|
1272
|
-
const G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);
|
|
1273
|
-
const G18_BCH = Utils.getBCHDigit(G18);
|
|
1274
|
-
|
|
1275
|
-
function getBestVersionForDataLength (mode, length, errorCorrectionLevel) {
|
|
1276
|
-
for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
|
|
1277
|
-
if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {
|
|
1278
|
-
return currentVersion
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
return undefined
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
function getReservedBitsCount (mode, version) {
|
|
1286
|
-
// Character count indicator + mode indicator bits
|
|
1287
|
-
return Mode.getCharCountIndicator(mode, version) + 4
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
function getTotalBitsFromDataArray (segments, version) {
|
|
1291
|
-
let totalBits = 0;
|
|
1292
|
-
|
|
1293
|
-
segments.forEach(function (data) {
|
|
1294
|
-
const reservedBits = getReservedBitsCount(data.mode, version);
|
|
1295
|
-
totalBits += reservedBits + data.getBitsLength();
|
|
1296
|
-
});
|
|
1297
|
-
|
|
1298
|
-
return totalBits
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
function getBestVersionForMixedData (segments, errorCorrectionLevel) {
|
|
1302
|
-
for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
|
|
1303
|
-
const length = getTotalBitsFromDataArray(segments, currentVersion);
|
|
1304
|
-
if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {
|
|
1305
|
-
return currentVersion
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
return undefined
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* Returns version number from a value.
|
|
1314
|
-
* If value is not a valid version, returns defaultValue
|
|
1315
|
-
*
|
|
1316
|
-
* @param {Number|String} value QR Code version
|
|
1317
|
-
* @param {Number} defaultValue Fallback value
|
|
1318
|
-
* @return {Number} QR Code version number
|
|
1319
|
-
*/
|
|
1320
|
-
exports.from = function from (value, defaultValue) {
|
|
1321
|
-
if (VersionCheck.isValid(value)) {
|
|
1322
|
-
return parseInt(value, 10)
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
return defaultValue
|
|
1326
|
-
};
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* Returns how much data can be stored with the specified QR code version
|
|
1330
|
-
* and error correction level
|
|
1331
|
-
*
|
|
1332
|
-
* @param {Number} version QR Code version (1-40)
|
|
1333
|
-
* @param {Number} errorCorrectionLevel Error correction level
|
|
1334
|
-
* @param {Mode} mode Data mode
|
|
1335
|
-
* @return {Number} Quantity of storable data
|
|
1336
|
-
*/
|
|
1337
|
-
exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {
|
|
1338
|
-
if (!VersionCheck.isValid(version)) {
|
|
1339
|
-
throw new Error('Invalid QR Code version')
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
// Use Byte mode as default
|
|
1343
|
-
if (typeof mode === 'undefined') mode = Mode.BYTE;
|
|
1344
|
-
|
|
1345
|
-
// Total codewords for this QR code version (Data + Error correction)
|
|
1346
|
-
const totalCodewords = Utils.getSymbolTotalCodewords(version);
|
|
1347
|
-
|
|
1348
|
-
// Total number of error correction codewords
|
|
1349
|
-
const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel);
|
|
1350
|
-
|
|
1351
|
-
// Total number of data codewords
|
|
1352
|
-
const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8;
|
|
1353
|
-
|
|
1354
|
-
if (mode === Mode.MIXED) return dataTotalCodewordsBits
|
|
1355
|
-
|
|
1356
|
-
const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version);
|
|
1357
|
-
|
|
1358
|
-
// Return max number of storable codewords
|
|
1359
|
-
switch (mode) {
|
|
1360
|
-
case Mode.NUMERIC:
|
|
1361
|
-
return Math.floor((usableBits / 10) * 3)
|
|
1362
|
-
|
|
1363
|
-
case Mode.ALPHANUMERIC:
|
|
1364
|
-
return Math.floor((usableBits / 11) * 2)
|
|
1365
|
-
|
|
1366
|
-
case Mode.KANJI:
|
|
1367
|
-
return Math.floor(usableBits / 13)
|
|
1368
|
-
|
|
1369
|
-
case Mode.BYTE:
|
|
1370
|
-
default:
|
|
1371
|
-
return Math.floor(usableBits / 8)
|
|
1372
|
-
}
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* Returns the minimum version needed to contain the amount of data
|
|
1377
|
-
*
|
|
1378
|
-
* @param {Segment} data Segment of data
|
|
1379
|
-
* @param {Number} [errorCorrectionLevel=H] Error correction level
|
|
1380
|
-
* @param {Mode} mode Data mode
|
|
1381
|
-
* @return {Number} QR Code version
|
|
1382
|
-
*/
|
|
1383
|
-
exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {
|
|
1384
|
-
let seg;
|
|
1385
|
-
|
|
1386
|
-
const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M);
|
|
1387
|
-
|
|
1388
|
-
if (Array.isArray(data)) {
|
|
1389
|
-
if (data.length > 1) {
|
|
1390
|
-
return getBestVersionForMixedData(data, ecl)
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
if (data.length === 0) {
|
|
1394
|
-
return 1
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
seg = data[0];
|
|
1398
|
-
} else {
|
|
1399
|
-
seg = data;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* Returns version information with relative error correction bits
|
|
1407
|
-
*
|
|
1408
|
-
* The version information is included in QR Code symbols of version 7 or larger.
|
|
1409
|
-
* It consists of an 18-bit sequence containing 6 data bits,
|
|
1410
|
-
* with 12 error correction bits calculated using the (18, 6) Golay code.
|
|
1411
|
-
*
|
|
1412
|
-
* @param {Number} version QR Code version
|
|
1413
|
-
* @return {Number} Encoded version info bits
|
|
1414
|
-
*/
|
|
1415
|
-
exports.getEncodedBits = function getEncodedBits (version) {
|
|
1416
|
-
if (!VersionCheck.isValid(version) || version < 7) {
|
|
1417
|
-
throw new Error('Invalid QR Code version')
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
let d = version << 12;
|
|
1421
|
-
|
|
1422
|
-
while (Utils.getBCHDigit(d) - G18_BCH >= 0) {
|
|
1423
|
-
d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH));
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
return (version << 12) | d
|
|
1427
|
-
};
|
|
1428
|
-
} (version));
|
|
1429
|
-
return version;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
var formatInfo = {};
|
|
1433
|
-
|
|
1434
|
-
var hasRequiredFormatInfo;
|
|
1435
|
-
|
|
1436
|
-
function requireFormatInfo () {
|
|
1437
|
-
if (hasRequiredFormatInfo) return formatInfo;
|
|
1438
|
-
hasRequiredFormatInfo = 1;
|
|
1439
|
-
const Utils = requireUtils$1();
|
|
1440
|
-
|
|
1441
|
-
const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
|
|
1442
|
-
const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
|
|
1443
|
-
const G15_BCH = Utils.getBCHDigit(G15);
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* Returns format information with relative error correction bits
|
|
1447
|
-
*
|
|
1448
|
-
* The format information is a 15-bit sequence containing 5 data bits,
|
|
1449
|
-
* with 10 error correction bits calculated using the (15, 5) BCH code.
|
|
1450
|
-
*
|
|
1451
|
-
* @param {Number} errorCorrectionLevel Error correction level
|
|
1452
|
-
* @param {Number} mask Mask pattern
|
|
1453
|
-
* @return {Number} Encoded format information bits
|
|
1454
|
-
*/
|
|
1455
|
-
formatInfo.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
|
|
1456
|
-
const data = ((errorCorrectionLevel.bit << 3) | mask);
|
|
1457
|
-
let d = data << 10;
|
|
1458
|
-
|
|
1459
|
-
while (Utils.getBCHDigit(d) - G15_BCH >= 0) {
|
|
1460
|
-
d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH));
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
// xor final data with mask pattern in order to ensure that
|
|
1464
|
-
// no combination of Error Correction Level and data mask pattern
|
|
1465
|
-
// will result in an all-zero data string
|
|
1466
|
-
return ((data << 10) | d) ^ G15_MASK
|
|
1467
|
-
};
|
|
1468
|
-
return formatInfo;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
var segments = {};
|
|
1472
|
-
|
|
1473
|
-
var numericData;
|
|
1474
|
-
var hasRequiredNumericData;
|
|
1475
|
-
|
|
1476
|
-
function requireNumericData () {
|
|
1477
|
-
if (hasRequiredNumericData) return numericData;
|
|
1478
|
-
hasRequiredNumericData = 1;
|
|
1479
|
-
const Mode = requireMode();
|
|
1480
|
-
|
|
1481
|
-
function NumericData (data) {
|
|
1482
|
-
this.mode = Mode.NUMERIC;
|
|
1483
|
-
this.data = data.toString();
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
NumericData.getBitsLength = function getBitsLength (length) {
|
|
1487
|
-
return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)
|
|
1488
|
-
};
|
|
1489
|
-
|
|
1490
|
-
NumericData.prototype.getLength = function getLength () {
|
|
1491
|
-
return this.data.length
|
|
1492
|
-
};
|
|
1493
|
-
|
|
1494
|
-
NumericData.prototype.getBitsLength = function getBitsLength () {
|
|
1495
|
-
return NumericData.getBitsLength(this.data.length)
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
NumericData.prototype.write = function write (bitBuffer) {
|
|
1499
|
-
let i, group, value;
|
|
1500
|
-
|
|
1501
|
-
// The input data string is divided into groups of three digits,
|
|
1502
|
-
// and each group is converted to its 10-bit binary equivalent.
|
|
1503
|
-
for (i = 0; i + 3 <= this.data.length; i += 3) {
|
|
1504
|
-
group = this.data.substr(i, 3);
|
|
1505
|
-
value = parseInt(group, 10);
|
|
1506
|
-
|
|
1507
|
-
bitBuffer.put(value, 10);
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
// If the number of input digits is not an exact multiple of three,
|
|
1511
|
-
// the final one or two digits are converted to 4 or 7 bits respectively.
|
|
1512
|
-
const remainingNum = this.data.length - i;
|
|
1513
|
-
if (remainingNum > 0) {
|
|
1514
|
-
group = this.data.substr(i);
|
|
1515
|
-
value = parseInt(group, 10);
|
|
1516
|
-
|
|
1517
|
-
bitBuffer.put(value, remainingNum * 3 + 1);
|
|
1518
|
-
}
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
numericData = NumericData;
|
|
1522
|
-
return numericData;
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
var alphanumericData;
|
|
1526
|
-
var hasRequiredAlphanumericData;
|
|
1527
|
-
|
|
1528
|
-
function requireAlphanumericData () {
|
|
1529
|
-
if (hasRequiredAlphanumericData) return alphanumericData;
|
|
1530
|
-
hasRequiredAlphanumericData = 1;
|
|
1531
|
-
const Mode = requireMode();
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* Array of characters available in alphanumeric mode
|
|
1535
|
-
*
|
|
1536
|
-
* As per QR Code specification, to each character
|
|
1537
|
-
* is assigned a value from 0 to 44 which in this case coincides
|
|
1538
|
-
* with the array index
|
|
1539
|
-
*
|
|
1540
|
-
* @type {Array}
|
|
1541
|
-
*/
|
|
1542
|
-
const ALPHA_NUM_CHARS = [
|
|
1543
|
-
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
|
1544
|
-
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
|
|
1545
|
-
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
|
1546
|
-
' ', '$', '%', '*', '+', '-', '.', '/', ':'
|
|
1547
|
-
];
|
|
1548
|
-
|
|
1549
|
-
function AlphanumericData (data) {
|
|
1550
|
-
this.mode = Mode.ALPHANUMERIC;
|
|
1551
|
-
this.data = data;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
AlphanumericData.getBitsLength = function getBitsLength (length) {
|
|
1555
|
-
return 11 * Math.floor(length / 2) + 6 * (length % 2)
|
|
1556
|
-
};
|
|
1557
|
-
|
|
1558
|
-
AlphanumericData.prototype.getLength = function getLength () {
|
|
1559
|
-
return this.data.length
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
AlphanumericData.prototype.getBitsLength = function getBitsLength () {
|
|
1563
|
-
return AlphanumericData.getBitsLength(this.data.length)
|
|
1564
|
-
};
|
|
1565
|
-
|
|
1566
|
-
AlphanumericData.prototype.write = function write (bitBuffer) {
|
|
1567
|
-
let i;
|
|
1568
|
-
|
|
1569
|
-
// Input data characters are divided into groups of two characters
|
|
1570
|
-
// and encoded as 11-bit binary codes.
|
|
1571
|
-
for (i = 0; i + 2 <= this.data.length; i += 2) {
|
|
1572
|
-
// The character value of the first character is multiplied by 45
|
|
1573
|
-
let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45;
|
|
1574
|
-
|
|
1575
|
-
// The character value of the second digit is added to the product
|
|
1576
|
-
value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1]);
|
|
1577
|
-
|
|
1578
|
-
// The sum is then stored as 11-bit binary number
|
|
1579
|
-
bitBuffer.put(value, 11);
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
// If the number of input data characters is not a multiple of two,
|
|
1583
|
-
// the character value of the final character is encoded as a 6-bit binary number.
|
|
1584
|
-
if (this.data.length % 2) {
|
|
1585
|
-
bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6);
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
|
|
1589
|
-
alphanumericData = AlphanumericData;
|
|
1590
|
-
return alphanumericData;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
var byteData;
|
|
1594
|
-
var hasRequiredByteData;
|
|
1595
|
-
|
|
1596
|
-
function requireByteData () {
|
|
1597
|
-
if (hasRequiredByteData) return byteData;
|
|
1598
|
-
hasRequiredByteData = 1;
|
|
1599
|
-
const Mode = requireMode();
|
|
1600
|
-
|
|
1601
|
-
function ByteData (data) {
|
|
1602
|
-
this.mode = Mode.BYTE;
|
|
1603
|
-
if (typeof (data) === 'string') {
|
|
1604
|
-
this.data = new TextEncoder().encode(data);
|
|
1605
|
-
} else {
|
|
1606
|
-
this.data = new Uint8Array(data);
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
ByteData.getBitsLength = function getBitsLength (length) {
|
|
1611
|
-
return length * 8
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
ByteData.prototype.getLength = function getLength () {
|
|
1615
|
-
return this.data.length
|
|
1616
|
-
};
|
|
1617
|
-
|
|
1618
|
-
ByteData.prototype.getBitsLength = function getBitsLength () {
|
|
1619
|
-
return ByteData.getBitsLength(this.data.length)
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
|
-
ByteData.prototype.write = function (bitBuffer) {
|
|
1623
|
-
for (let i = 0, l = this.data.length; i < l; i++) {
|
|
1624
|
-
bitBuffer.put(this.data[i], 8);
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
|
-
|
|
1628
|
-
byteData = ByteData;
|
|
1629
|
-
return byteData;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
var kanjiData;
|
|
1633
|
-
var hasRequiredKanjiData;
|
|
1634
|
-
|
|
1635
|
-
function requireKanjiData () {
|
|
1636
|
-
if (hasRequiredKanjiData) return kanjiData;
|
|
1637
|
-
hasRequiredKanjiData = 1;
|
|
1638
|
-
const Mode = requireMode();
|
|
1639
|
-
const Utils = requireUtils$1();
|
|
1640
|
-
|
|
1641
|
-
function KanjiData (data) {
|
|
1642
|
-
this.mode = Mode.KANJI;
|
|
1643
|
-
this.data = data;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
KanjiData.getBitsLength = function getBitsLength (length) {
|
|
1647
|
-
return length * 13
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
KanjiData.prototype.getLength = function getLength () {
|
|
1651
|
-
return this.data.length
|
|
1652
|
-
};
|
|
1653
|
-
|
|
1654
|
-
KanjiData.prototype.getBitsLength = function getBitsLength () {
|
|
1655
|
-
return KanjiData.getBitsLength(this.data.length)
|
|
1656
|
-
};
|
|
1657
|
-
|
|
1658
|
-
KanjiData.prototype.write = function (bitBuffer) {
|
|
1659
|
-
let i;
|
|
1660
|
-
|
|
1661
|
-
// In the Shift JIS system, Kanji characters are represented by a two byte combination.
|
|
1662
|
-
// These byte values are shifted from the JIS X 0208 values.
|
|
1663
|
-
// JIS X 0208 gives details of the shift coded representation.
|
|
1664
|
-
for (i = 0; i < this.data.length; i++) {
|
|
1665
|
-
let value = Utils.toSJIS(this.data[i]);
|
|
1666
|
-
|
|
1667
|
-
// For characters with Shift JIS values from 0x8140 to 0x9FFC:
|
|
1668
|
-
if (value >= 0x8140 && value <= 0x9FFC) {
|
|
1669
|
-
// Subtract 0x8140 from Shift JIS value
|
|
1670
|
-
value -= 0x8140;
|
|
1671
|
-
|
|
1672
|
-
// For characters with Shift JIS values from 0xE040 to 0xEBBF
|
|
1673
|
-
} else if (value >= 0xE040 && value <= 0xEBBF) {
|
|
1674
|
-
// Subtract 0xC140 from Shift JIS value
|
|
1675
|
-
value -= 0xC140;
|
|
1676
|
-
} else {
|
|
1677
|
-
throw new Error(
|
|
1678
|
-
'Invalid SJIS character: ' + this.data[i] + '\n' +
|
|
1679
|
-
'Make sure your charset is UTF-8')
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
// Multiply most significant byte of result by 0xC0
|
|
1683
|
-
// and add least significant byte to product
|
|
1684
|
-
value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff);
|
|
1685
|
-
|
|
1686
|
-
// Convert result to a 13-bit binary string
|
|
1687
|
-
bitBuffer.put(value, 13);
|
|
1688
|
-
}
|
|
1689
|
-
};
|
|
1690
|
-
|
|
1691
|
-
kanjiData = KanjiData;
|
|
1692
|
-
return kanjiData;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
var dijkstra = {exports: {}};
|
|
1696
|
-
|
|
1697
|
-
var hasRequiredDijkstra;
|
|
1698
|
-
|
|
1699
|
-
function requireDijkstra () {
|
|
1700
|
-
if (hasRequiredDijkstra) return dijkstra.exports;
|
|
1701
|
-
hasRequiredDijkstra = 1;
|
|
1702
|
-
(function (module) {
|
|
1703
|
-
|
|
1704
|
-
/******************************************************************************
|
|
1705
|
-
* Created 2008-08-19.
|
|
1706
|
-
*
|
|
1707
|
-
* Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
|
|
1708
|
-
*
|
|
1709
|
-
* Copyright (C) 2008
|
|
1710
|
-
* Wyatt Baldwin <self@wyattbaldwin.com>
|
|
1711
|
-
* All rights reserved
|
|
1712
|
-
*
|
|
1713
|
-
* Licensed under the MIT license.
|
|
1714
|
-
*
|
|
1715
|
-
* http://www.opensource.org/licenses/mit-license.php
|
|
1716
|
-
*
|
|
1717
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1718
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1719
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1720
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1721
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1722
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1723
|
-
* THE SOFTWARE.
|
|
1724
|
-
*****************************************************************************/
|
|
1725
|
-
var dijkstra = {
|
|
1726
|
-
single_source_shortest_paths: function(graph, s, d) {
|
|
1727
|
-
// Predecessor map for each node that has been encountered.
|
|
1728
|
-
// node ID => predecessor node ID
|
|
1729
|
-
var predecessors = {};
|
|
1730
|
-
|
|
1731
|
-
// Costs of shortest paths from s to all nodes encountered.
|
|
1732
|
-
// node ID => cost
|
|
1733
|
-
var costs = {};
|
|
1734
|
-
costs[s] = 0;
|
|
1735
|
-
|
|
1736
|
-
// Costs of shortest paths from s to all nodes encountered; differs from
|
|
1737
|
-
// `costs` in that it provides easy access to the node that currently has
|
|
1738
|
-
// the known shortest path from s.
|
|
1739
|
-
// XXX: Do we actually need both `costs` and `open`?
|
|
1740
|
-
var open = dijkstra.PriorityQueue.make();
|
|
1741
|
-
open.push(s, 0);
|
|
1742
|
-
|
|
1743
|
-
var closest,
|
|
1744
|
-
u, v,
|
|
1745
|
-
cost_of_s_to_u,
|
|
1746
|
-
adjacent_nodes,
|
|
1747
|
-
cost_of_e,
|
|
1748
|
-
cost_of_s_to_u_plus_cost_of_e,
|
|
1749
|
-
cost_of_s_to_v,
|
|
1750
|
-
first_visit;
|
|
1751
|
-
while (!open.empty()) {
|
|
1752
|
-
// In the nodes remaining in graph that have a known cost from s,
|
|
1753
|
-
// find the node, u, that currently has the shortest path from s.
|
|
1754
|
-
closest = open.pop();
|
|
1755
|
-
u = closest.value;
|
|
1756
|
-
cost_of_s_to_u = closest.cost;
|
|
1757
|
-
|
|
1758
|
-
// Get nodes adjacent to u...
|
|
1759
|
-
adjacent_nodes = graph[u] || {};
|
|
1760
|
-
|
|
1761
|
-
// ...and explore the edges that connect u to those nodes, updating
|
|
1762
|
-
// the cost of the shortest paths to any or all of those nodes as
|
|
1763
|
-
// necessary. v is the node across the current edge from u.
|
|
1764
|
-
for (v in adjacent_nodes) {
|
|
1765
|
-
if (adjacent_nodes.hasOwnProperty(v)) {
|
|
1766
|
-
// Get the cost of the edge running from u to v.
|
|
1767
|
-
cost_of_e = adjacent_nodes[v];
|
|
1768
|
-
|
|
1769
|
-
// Cost of s to u plus the cost of u to v across e--this is *a*
|
|
1770
|
-
// cost from s to v that may or may not be less than the current
|
|
1771
|
-
// known cost to v.
|
|
1772
|
-
cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
|
|
1773
|
-
|
|
1774
|
-
// If we haven't visited v yet OR if the current known cost from s to
|
|
1775
|
-
// v is greater than the new cost we just found (cost of s to u plus
|
|
1776
|
-
// cost of u to v across e), update v's cost in the cost list and
|
|
1777
|
-
// update v's predecessor in the predecessor list (it's now u).
|
|
1778
|
-
cost_of_s_to_v = costs[v];
|
|
1779
|
-
first_visit = (typeof costs[v] === 'undefined');
|
|
1780
|
-
if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
|
|
1781
|
-
costs[v] = cost_of_s_to_u_plus_cost_of_e;
|
|
1782
|
-
open.push(v, cost_of_s_to_u_plus_cost_of_e);
|
|
1783
|
-
predecessors[v] = u;
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {
|
|
1790
|
-
var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');
|
|
1791
|
-
throw new Error(msg);
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
return predecessors;
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1797
|
-
extract_shortest_path_from_predecessor_list: function(predecessors, d) {
|
|
1798
|
-
var nodes = [];
|
|
1799
|
-
var u = d;
|
|
1800
|
-
while (u) {
|
|
1801
|
-
nodes.push(u);
|
|
1802
|
-
u = predecessors[u];
|
|
1803
|
-
}
|
|
1804
|
-
nodes.reverse();
|
|
1805
|
-
return nodes;
|
|
1806
|
-
},
|
|
1807
|
-
|
|
1808
|
-
find_path: function(graph, s, d) {
|
|
1809
|
-
var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
|
|
1810
|
-
return dijkstra.extract_shortest_path_from_predecessor_list(
|
|
1811
|
-
predecessors, d);
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* A very naive priority queue implementation.
|
|
1816
|
-
*/
|
|
1817
|
-
PriorityQueue: {
|
|
1818
|
-
make: function (opts) {
|
|
1819
|
-
var T = dijkstra.PriorityQueue,
|
|
1820
|
-
t = {},
|
|
1821
|
-
key;
|
|
1822
|
-
opts = opts || {};
|
|
1823
|
-
for (key in T) {
|
|
1824
|
-
if (T.hasOwnProperty(key)) {
|
|
1825
|
-
t[key] = T[key];
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
t.queue = [];
|
|
1829
|
-
t.sorter = opts.sorter || T.default_sorter;
|
|
1830
|
-
return t;
|
|
1831
|
-
},
|
|
1832
|
-
|
|
1833
|
-
default_sorter: function (a, b) {
|
|
1834
|
-
return a.cost - b.cost;
|
|
1835
|
-
},
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* Add a new item to the queue and ensure the highest priority element
|
|
1839
|
-
* is at the front of the queue.
|
|
1840
|
-
*/
|
|
1841
|
-
push: function (value, cost) {
|
|
1842
|
-
var item = {value: value, cost: cost};
|
|
1843
|
-
this.queue.push(item);
|
|
1844
|
-
this.queue.sort(this.sorter);
|
|
1845
|
-
},
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Return the highest priority element in the queue.
|
|
1849
|
-
*/
|
|
1850
|
-
pop: function () {
|
|
1851
|
-
return this.queue.shift();
|
|
1852
|
-
},
|
|
1853
|
-
|
|
1854
|
-
empty: function () {
|
|
1855
|
-
return this.queue.length === 0;
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
};
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
// node.js module exports
|
|
1862
|
-
{
|
|
1863
|
-
module.exports = dijkstra;
|
|
1864
|
-
}
|
|
1865
|
-
} (dijkstra));
|
|
1866
|
-
return dijkstra.exports;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
var hasRequiredSegments;
|
|
1870
|
-
|
|
1871
|
-
function requireSegments () {
|
|
1872
|
-
if (hasRequiredSegments) return segments;
|
|
1873
|
-
hasRequiredSegments = 1;
|
|
1874
|
-
(function (exports) {
|
|
1875
|
-
const Mode = requireMode();
|
|
1876
|
-
const NumericData = requireNumericData();
|
|
1877
|
-
const AlphanumericData = requireAlphanumericData();
|
|
1878
|
-
const ByteData = requireByteData();
|
|
1879
|
-
const KanjiData = requireKanjiData();
|
|
1880
|
-
const Regex = requireRegex();
|
|
1881
|
-
const Utils = requireUtils$1();
|
|
1882
|
-
const dijkstra = requireDijkstra();
|
|
1883
|
-
|
|
1884
|
-
/**
|
|
1885
|
-
* Returns UTF8 byte length
|
|
1886
|
-
*
|
|
1887
|
-
* @param {String} str Input string
|
|
1888
|
-
* @return {Number} Number of byte
|
|
1889
|
-
*/
|
|
1890
|
-
function getStringByteLength (str) {
|
|
1891
|
-
return unescape(encodeURIComponent(str)).length
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
/**
|
|
1895
|
-
* Get a list of segments of the specified mode
|
|
1896
|
-
* from a string
|
|
1897
|
-
*
|
|
1898
|
-
* @param {Mode} mode Segment mode
|
|
1899
|
-
* @param {String} str String to process
|
|
1900
|
-
* @return {Array} Array of object with segments data
|
|
1901
|
-
*/
|
|
1902
|
-
function getSegments (regex, mode, str) {
|
|
1903
|
-
const segments = [];
|
|
1904
|
-
let result;
|
|
1905
|
-
|
|
1906
|
-
while ((result = regex.exec(str)) !== null) {
|
|
1907
|
-
segments.push({
|
|
1908
|
-
data: result[0],
|
|
1909
|
-
index: result.index,
|
|
1910
|
-
mode: mode,
|
|
1911
|
-
length: result[0].length
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
return segments
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* Extracts a series of segments with the appropriate
|
|
1920
|
-
* modes from a string
|
|
1921
|
-
*
|
|
1922
|
-
* @param {String} dataStr Input string
|
|
1923
|
-
* @return {Array} Array of object with segments data
|
|
1924
|
-
*/
|
|
1925
|
-
function getSegmentsFromString (dataStr) {
|
|
1926
|
-
const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr);
|
|
1927
|
-
const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr);
|
|
1928
|
-
let byteSegs;
|
|
1929
|
-
let kanjiSegs;
|
|
1930
|
-
|
|
1931
|
-
if (Utils.isKanjiModeEnabled()) {
|
|
1932
|
-
byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr);
|
|
1933
|
-
kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr);
|
|
1934
|
-
} else {
|
|
1935
|
-
byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr);
|
|
1936
|
-
kanjiSegs = [];
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs);
|
|
1940
|
-
|
|
1941
|
-
return segs
|
|
1942
|
-
.sort(function (s1, s2) {
|
|
1943
|
-
return s1.index - s2.index
|
|
1944
|
-
})
|
|
1945
|
-
.map(function (obj) {
|
|
1946
|
-
return {
|
|
1947
|
-
data: obj.data,
|
|
1948
|
-
mode: obj.mode,
|
|
1949
|
-
length: obj.length
|
|
1950
|
-
}
|
|
1951
|
-
})
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
/**
|
|
1955
|
-
* Returns how many bits are needed to encode a string of
|
|
1956
|
-
* specified length with the specified mode
|
|
1957
|
-
*
|
|
1958
|
-
* @param {Number} length String length
|
|
1959
|
-
* @param {Mode} mode Segment mode
|
|
1960
|
-
* @return {Number} Bit length
|
|
1961
|
-
*/
|
|
1962
|
-
function getSegmentBitsLength (length, mode) {
|
|
1963
|
-
switch (mode) {
|
|
1964
|
-
case Mode.NUMERIC:
|
|
1965
|
-
return NumericData.getBitsLength(length)
|
|
1966
|
-
case Mode.ALPHANUMERIC:
|
|
1967
|
-
return AlphanumericData.getBitsLength(length)
|
|
1968
|
-
case Mode.KANJI:
|
|
1969
|
-
return KanjiData.getBitsLength(length)
|
|
1970
|
-
case Mode.BYTE:
|
|
1971
|
-
return ByteData.getBitsLength(length)
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
/**
|
|
1976
|
-
* Merges adjacent segments which have the same mode
|
|
1977
|
-
*
|
|
1978
|
-
* @param {Array} segs Array of object with segments data
|
|
1979
|
-
* @return {Array} Array of object with segments data
|
|
1980
|
-
*/
|
|
1981
|
-
function mergeSegments (segs) {
|
|
1982
|
-
return segs.reduce(function (acc, curr) {
|
|
1983
|
-
const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null;
|
|
1984
|
-
if (prevSeg && prevSeg.mode === curr.mode) {
|
|
1985
|
-
acc[acc.length - 1].data += curr.data;
|
|
1986
|
-
return acc
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
acc.push(curr);
|
|
1990
|
-
return acc
|
|
1991
|
-
}, [])
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
/**
|
|
1995
|
-
* Generates a list of all possible nodes combination which
|
|
1996
|
-
* will be used to build a segments graph.
|
|
1997
|
-
*
|
|
1998
|
-
* Nodes are divided by groups. Each group will contain a list of all the modes
|
|
1999
|
-
* in which is possible to encode the given text.
|
|
2000
|
-
*
|
|
2001
|
-
* For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.
|
|
2002
|
-
* The group for '12345' will contain then 3 objects, one for each
|
|
2003
|
-
* possible encoding mode.
|
|
2004
|
-
*
|
|
2005
|
-
* Each node represents a possible segment.
|
|
2006
|
-
*
|
|
2007
|
-
* @param {Array} segs Array of object with segments data
|
|
2008
|
-
* @return {Array} Array of object with segments data
|
|
2009
|
-
*/
|
|
2010
|
-
function buildNodes (segs) {
|
|
2011
|
-
const nodes = [];
|
|
2012
|
-
for (let i = 0; i < segs.length; i++) {
|
|
2013
|
-
const seg = segs[i];
|
|
2014
|
-
|
|
2015
|
-
switch (seg.mode) {
|
|
2016
|
-
case Mode.NUMERIC:
|
|
2017
|
-
nodes.push([seg,
|
|
2018
|
-
{ data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },
|
|
2019
|
-
{ data: seg.data, mode: Mode.BYTE, length: seg.length }
|
|
2020
|
-
]);
|
|
2021
|
-
break
|
|
2022
|
-
case Mode.ALPHANUMERIC:
|
|
2023
|
-
nodes.push([seg,
|
|
2024
|
-
{ data: seg.data, mode: Mode.BYTE, length: seg.length }
|
|
2025
|
-
]);
|
|
2026
|
-
break
|
|
2027
|
-
case Mode.KANJI:
|
|
2028
|
-
nodes.push([seg,
|
|
2029
|
-
{ data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
|
|
2030
|
-
]);
|
|
2031
|
-
break
|
|
2032
|
-
case Mode.BYTE:
|
|
2033
|
-
nodes.push([
|
|
2034
|
-
{ data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
|
|
2035
|
-
]);
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
return nodes
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
/**
|
|
2043
|
-
* Builds a graph from a list of nodes.
|
|
2044
|
-
* All segments in each node group will be connected with all the segments of
|
|
2045
|
-
* the next group and so on.
|
|
2046
|
-
*
|
|
2047
|
-
* At each connection will be assigned a weight depending on the
|
|
2048
|
-
* segment's byte length.
|
|
2049
|
-
*
|
|
2050
|
-
* @param {Array} nodes Array of object with segments data
|
|
2051
|
-
* @param {Number} version QR Code version
|
|
2052
|
-
* @return {Object} Graph of all possible segments
|
|
2053
|
-
*/
|
|
2054
|
-
function buildGraph (nodes, version) {
|
|
2055
|
-
const table = {};
|
|
2056
|
-
const graph = { start: {} };
|
|
2057
|
-
let prevNodeIds = ['start'];
|
|
2058
|
-
|
|
2059
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
2060
|
-
const nodeGroup = nodes[i];
|
|
2061
|
-
const currentNodeIds = [];
|
|
2062
|
-
|
|
2063
|
-
for (let j = 0; j < nodeGroup.length; j++) {
|
|
2064
|
-
const node = nodeGroup[j];
|
|
2065
|
-
const key = '' + i + j;
|
|
2066
|
-
|
|
2067
|
-
currentNodeIds.push(key);
|
|
2068
|
-
table[key] = { node: node, lastCount: 0 };
|
|
2069
|
-
graph[key] = {};
|
|
2070
|
-
|
|
2071
|
-
for (let n = 0; n < prevNodeIds.length; n++) {
|
|
2072
|
-
const prevNodeId = prevNodeIds[n];
|
|
2073
|
-
|
|
2074
|
-
if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {
|
|
2075
|
-
graph[prevNodeId][key] =
|
|
2076
|
-
getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -
|
|
2077
|
-
getSegmentBitsLength(table[prevNodeId].lastCount, node.mode);
|
|
2078
|
-
|
|
2079
|
-
table[prevNodeId].lastCount += node.length;
|
|
2080
|
-
} else {
|
|
2081
|
-
if (table[prevNodeId]) table[prevNodeId].lastCount = node.length;
|
|
2082
|
-
|
|
2083
|
-
graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +
|
|
2084
|
-
4 + Mode.getCharCountIndicator(node.mode, version); // switch cost
|
|
2085
|
-
}
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
prevNodeIds = currentNodeIds;
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
for (let n = 0; n < prevNodeIds.length; n++) {
|
|
2093
|
-
graph[prevNodeIds[n]].end = 0;
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
return { map: graph, table: table }
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
/**
|
|
2100
|
-
* Builds a segment from a specified data and mode.
|
|
2101
|
-
* If a mode is not specified, the more suitable will be used.
|
|
2102
|
-
*
|
|
2103
|
-
* @param {String} data Input data
|
|
2104
|
-
* @param {Mode | String} modesHint Data mode
|
|
2105
|
-
* @return {Segment} Segment
|
|
2106
|
-
*/
|
|
2107
|
-
function buildSingleSegment (data, modesHint) {
|
|
2108
|
-
let mode;
|
|
2109
|
-
const bestMode = Mode.getBestModeForData(data);
|
|
2110
|
-
|
|
2111
|
-
mode = Mode.from(modesHint, bestMode);
|
|
2112
|
-
|
|
2113
|
-
// Make sure data can be encoded
|
|
2114
|
-
if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {
|
|
2115
|
-
throw new Error('"' + data + '"' +
|
|
2116
|
-
' cannot be encoded with mode ' + Mode.toString(mode) +
|
|
2117
|
-
'.\n Suggested mode is: ' + Mode.toString(bestMode))
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
// Use Mode.BYTE if Kanji support is disabled
|
|
2121
|
-
if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {
|
|
2122
|
-
mode = Mode.BYTE;
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
switch (mode) {
|
|
2126
|
-
case Mode.NUMERIC:
|
|
2127
|
-
return new NumericData(data)
|
|
2128
|
-
|
|
2129
|
-
case Mode.ALPHANUMERIC:
|
|
2130
|
-
return new AlphanumericData(data)
|
|
2131
|
-
|
|
2132
|
-
case Mode.KANJI:
|
|
2133
|
-
return new KanjiData(data)
|
|
2134
|
-
|
|
2135
|
-
case Mode.BYTE:
|
|
2136
|
-
return new ByteData(data)
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
/**
|
|
2141
|
-
* Builds a list of segments from an array.
|
|
2142
|
-
* Array can contain Strings or Objects with segment's info.
|
|
2143
|
-
*
|
|
2144
|
-
* For each item which is a string, will be generated a segment with the given
|
|
2145
|
-
* string and the more appropriate encoding mode.
|
|
2146
|
-
*
|
|
2147
|
-
* For each item which is an object, will be generated a segment with the given
|
|
2148
|
-
* data and mode.
|
|
2149
|
-
* Objects must contain at least the property "data".
|
|
2150
|
-
* If property "mode" is not present, the more suitable mode will be used.
|
|
2151
|
-
*
|
|
2152
|
-
* @param {Array} array Array of objects with segments data
|
|
2153
|
-
* @return {Array} Array of Segments
|
|
2154
|
-
*/
|
|
2155
|
-
exports.fromArray = function fromArray (array) {
|
|
2156
|
-
return array.reduce(function (acc, seg) {
|
|
2157
|
-
if (typeof seg === 'string') {
|
|
2158
|
-
acc.push(buildSingleSegment(seg, null));
|
|
2159
|
-
} else if (seg.data) {
|
|
2160
|
-
acc.push(buildSingleSegment(seg.data, seg.mode));
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
return acc
|
|
2164
|
-
}, [])
|
|
2165
|
-
};
|
|
2166
|
-
|
|
2167
|
-
/**
|
|
2168
|
-
* Builds an optimized sequence of segments from a string,
|
|
2169
|
-
* which will produce the shortest possible bitstream.
|
|
2170
|
-
*
|
|
2171
|
-
* @param {String} data Input string
|
|
2172
|
-
* @param {Number} version QR Code version
|
|
2173
|
-
* @return {Array} Array of segments
|
|
2174
|
-
*/
|
|
2175
|
-
exports.fromString = function fromString (data, version) {
|
|
2176
|
-
const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled());
|
|
2177
|
-
|
|
2178
|
-
const nodes = buildNodes(segs);
|
|
2179
|
-
const graph = buildGraph(nodes, version);
|
|
2180
|
-
const path = dijkstra.find_path(graph.map, 'start', 'end');
|
|
2181
|
-
|
|
2182
|
-
const optimizedSegs = [];
|
|
2183
|
-
for (let i = 1; i < path.length - 1; i++) {
|
|
2184
|
-
optimizedSegs.push(graph.table[path[i]].node);
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
return exports.fromArray(mergeSegments(optimizedSegs))
|
|
2188
|
-
};
|
|
2189
|
-
|
|
2190
|
-
/**
|
|
2191
|
-
* Splits a string in various segments with the modes which
|
|
2192
|
-
* best represent their content.
|
|
2193
|
-
* The produced segments are far from being optimized.
|
|
2194
|
-
* The output of this function is only used to estimate a QR Code version
|
|
2195
|
-
* which may contain the data.
|
|
2196
|
-
*
|
|
2197
|
-
* @param {string} data Input string
|
|
2198
|
-
* @return {Array} Array of segments
|
|
2199
|
-
*/
|
|
2200
|
-
exports.rawSplit = function rawSplit (data) {
|
|
2201
|
-
return exports.fromArray(
|
|
2202
|
-
getSegmentsFromString(data, Utils.isKanjiModeEnabled())
|
|
2203
|
-
)
|
|
2204
|
-
};
|
|
2205
|
-
} (segments));
|
|
2206
|
-
return segments;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
var hasRequiredQrcode;
|
|
2210
|
-
|
|
2211
|
-
function requireQrcode () {
|
|
2212
|
-
if (hasRequiredQrcode) return qrcode;
|
|
2213
|
-
hasRequiredQrcode = 1;
|
|
2214
|
-
const Utils = requireUtils$1();
|
|
2215
|
-
const ECLevel = requireErrorCorrectionLevel();
|
|
2216
|
-
const BitBuffer = requireBitBuffer();
|
|
2217
|
-
const BitMatrix = requireBitMatrix();
|
|
2218
|
-
const AlignmentPattern = requireAlignmentPattern();
|
|
2219
|
-
const FinderPattern = requireFinderPattern();
|
|
2220
|
-
const MaskPattern = requireMaskPattern();
|
|
2221
|
-
const ECCode = requireErrorCorrectionCode();
|
|
2222
|
-
const ReedSolomonEncoder = requireReedSolomonEncoder();
|
|
2223
|
-
const Version = requireVersion();
|
|
2224
|
-
const FormatInfo = requireFormatInfo();
|
|
2225
|
-
const Mode = requireMode();
|
|
2226
|
-
const Segments = requireSegments();
|
|
2227
|
-
|
|
2228
|
-
/**
|
|
2229
|
-
* QRCode for JavaScript
|
|
2230
|
-
*
|
|
2231
|
-
* modified by Ryan Day for nodejs support
|
|
2232
|
-
* Copyright (c) 2011 Ryan Day
|
|
2233
|
-
*
|
|
2234
|
-
* Licensed under the MIT license:
|
|
2235
|
-
* http://www.opensource.org/licenses/mit-license.php
|
|
2236
|
-
*
|
|
2237
|
-
//---------------------------------------------------------------------
|
|
2238
|
-
// QRCode for JavaScript
|
|
2239
|
-
//
|
|
2240
|
-
// Copyright (c) 2009 Kazuhiko Arase
|
|
2241
|
-
//
|
|
2242
|
-
// URL: http://www.d-project.com/
|
|
2243
|
-
//
|
|
2244
|
-
// Licensed under the MIT license:
|
|
2245
|
-
// http://www.opensource.org/licenses/mit-license.php
|
|
2246
|
-
//
|
|
2247
|
-
// The word "QR Code" is registered trademark of
|
|
2248
|
-
// DENSO WAVE INCORPORATED
|
|
2249
|
-
// http://www.denso-wave.com/qrcode/faqpatent-e.html
|
|
2250
|
-
//
|
|
2251
|
-
//---------------------------------------------------------------------
|
|
2252
|
-
*/
|
|
2253
|
-
|
|
2254
|
-
/**
|
|
2255
|
-
* Add finder patterns bits to matrix
|
|
2256
|
-
*
|
|
2257
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2258
|
-
* @param {Number} version QR Code version
|
|
2259
|
-
*/
|
|
2260
|
-
function setupFinderPattern (matrix, version) {
|
|
2261
|
-
const size = matrix.size;
|
|
2262
|
-
const pos = FinderPattern.getPositions(version);
|
|
2263
|
-
|
|
2264
|
-
for (let i = 0; i < pos.length; i++) {
|
|
2265
|
-
const row = pos[i][0];
|
|
2266
|
-
const col = pos[i][1];
|
|
2267
|
-
|
|
2268
|
-
for (let r = -1; r <= 7; r++) {
|
|
2269
|
-
if (row + r <= -1 || size <= row + r) continue
|
|
2270
|
-
|
|
2271
|
-
for (let c = -1; c <= 7; c++) {
|
|
2272
|
-
if (col + c <= -1 || size <= col + c) continue
|
|
2273
|
-
|
|
2274
|
-
if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||
|
|
2275
|
-
(c >= 0 && c <= 6 && (r === 0 || r === 6)) ||
|
|
2276
|
-
(r >= 2 && r <= 4 && c >= 2 && c <= 4)) {
|
|
2277
|
-
matrix.set(row + r, col + c, true, true);
|
|
2278
|
-
} else {
|
|
2279
|
-
matrix.set(row + r, col + c, false, true);
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
/**
|
|
2287
|
-
* Add timing pattern bits to matrix
|
|
2288
|
-
*
|
|
2289
|
-
* Note: this function must be called before {@link setupAlignmentPattern}
|
|
2290
|
-
*
|
|
2291
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2292
|
-
*/
|
|
2293
|
-
function setupTimingPattern (matrix) {
|
|
2294
|
-
const size = matrix.size;
|
|
2295
|
-
|
|
2296
|
-
for (let r = 8; r < size - 8; r++) {
|
|
2297
|
-
const value = r % 2 === 0;
|
|
2298
|
-
matrix.set(r, 6, value, true);
|
|
2299
|
-
matrix.set(6, r, value, true);
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
/**
|
|
2304
|
-
* Add alignment patterns bits to matrix
|
|
2305
|
-
*
|
|
2306
|
-
* Note: this function must be called after {@link setupTimingPattern}
|
|
2307
|
-
*
|
|
2308
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2309
|
-
* @param {Number} version QR Code version
|
|
2310
|
-
*/
|
|
2311
|
-
function setupAlignmentPattern (matrix, version) {
|
|
2312
|
-
const pos = AlignmentPattern.getPositions(version);
|
|
2313
|
-
|
|
2314
|
-
for (let i = 0; i < pos.length; i++) {
|
|
2315
|
-
const row = pos[i][0];
|
|
2316
|
-
const col = pos[i][1];
|
|
2317
|
-
|
|
2318
|
-
for (let r = -2; r <= 2; r++) {
|
|
2319
|
-
for (let c = -2; c <= 2; c++) {
|
|
2320
|
-
if (r === -2 || r === 2 || c === -2 || c === 2 ||
|
|
2321
|
-
(r === 0 && c === 0)) {
|
|
2322
|
-
matrix.set(row + r, col + c, true, true);
|
|
2323
|
-
} else {
|
|
2324
|
-
matrix.set(row + r, col + c, false, true);
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
/**
|
|
2332
|
-
* Add version info bits to matrix
|
|
2333
|
-
*
|
|
2334
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2335
|
-
* @param {Number} version QR Code version
|
|
2336
|
-
*/
|
|
2337
|
-
function setupVersionInfo (matrix, version) {
|
|
2338
|
-
const size = matrix.size;
|
|
2339
|
-
const bits = Version.getEncodedBits(version);
|
|
2340
|
-
let row, col, mod;
|
|
2341
|
-
|
|
2342
|
-
for (let i = 0; i < 18; i++) {
|
|
2343
|
-
row = Math.floor(i / 3);
|
|
2344
|
-
col = i % 3 + size - 8 - 3;
|
|
2345
|
-
mod = ((bits >> i) & 1) === 1;
|
|
2346
|
-
|
|
2347
|
-
matrix.set(row, col, mod, true);
|
|
2348
|
-
matrix.set(col, row, mod, true);
|
|
2349
|
-
}
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* Add format info bits to matrix
|
|
2354
|
-
*
|
|
2355
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2356
|
-
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
|
|
2357
|
-
* @param {Number} maskPattern Mask pattern reference value
|
|
2358
|
-
*/
|
|
2359
|
-
function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {
|
|
2360
|
-
const size = matrix.size;
|
|
2361
|
-
const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern);
|
|
2362
|
-
let i, mod;
|
|
2363
|
-
|
|
2364
|
-
for (i = 0; i < 15; i++) {
|
|
2365
|
-
mod = ((bits >> i) & 1) === 1;
|
|
2366
|
-
|
|
2367
|
-
// vertical
|
|
2368
|
-
if (i < 6) {
|
|
2369
|
-
matrix.set(i, 8, mod, true);
|
|
2370
|
-
} else if (i < 8) {
|
|
2371
|
-
matrix.set(i + 1, 8, mod, true);
|
|
2372
|
-
} else {
|
|
2373
|
-
matrix.set(size - 15 + i, 8, mod, true);
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
// horizontal
|
|
2377
|
-
if (i < 8) {
|
|
2378
|
-
matrix.set(8, size - i - 1, mod, true);
|
|
2379
|
-
} else if (i < 9) {
|
|
2380
|
-
matrix.set(8, 15 - i - 1 + 1, mod, true);
|
|
2381
|
-
} else {
|
|
2382
|
-
matrix.set(8, 15 - i - 1, mod, true);
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
// fixed module
|
|
2387
|
-
matrix.set(size - 8, 8, 1, true);
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
/**
|
|
2391
|
-
* Add encoded data bits to matrix
|
|
2392
|
-
*
|
|
2393
|
-
* @param {BitMatrix} matrix Modules matrix
|
|
2394
|
-
* @param {Uint8Array} data Data codewords
|
|
2395
|
-
*/
|
|
2396
|
-
function setupData (matrix, data) {
|
|
2397
|
-
const size = matrix.size;
|
|
2398
|
-
let inc = -1;
|
|
2399
|
-
let row = size - 1;
|
|
2400
|
-
let bitIndex = 7;
|
|
2401
|
-
let byteIndex = 0;
|
|
2402
|
-
|
|
2403
|
-
for (let col = size - 1; col > 0; col -= 2) {
|
|
2404
|
-
if (col === 6) col--;
|
|
2405
|
-
|
|
2406
|
-
while (true) {
|
|
2407
|
-
for (let c = 0; c < 2; c++) {
|
|
2408
|
-
if (!matrix.isReserved(row, col - c)) {
|
|
2409
|
-
let dark = false;
|
|
2410
|
-
|
|
2411
|
-
if (byteIndex < data.length) {
|
|
2412
|
-
dark = (((data[byteIndex] >>> bitIndex) & 1) === 1);
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
matrix.set(row, col - c, dark);
|
|
2416
|
-
bitIndex--;
|
|
2417
|
-
|
|
2418
|
-
if (bitIndex === -1) {
|
|
2419
|
-
byteIndex++;
|
|
2420
|
-
bitIndex = 7;
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
row += inc;
|
|
2426
|
-
|
|
2427
|
-
if (row < 0 || size <= row) {
|
|
2428
|
-
row -= inc;
|
|
2429
|
-
inc = -inc;
|
|
2430
|
-
break
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
/**
|
|
2437
|
-
* Create encoded codewords from data input
|
|
2438
|
-
*
|
|
2439
|
-
* @param {Number} version QR Code version
|
|
2440
|
-
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
|
|
2441
|
-
* @param {ByteData} data Data input
|
|
2442
|
-
* @return {Uint8Array} Buffer containing encoded codewords
|
|
2443
|
-
*/
|
|
2444
|
-
function createData (version, errorCorrectionLevel, segments) {
|
|
2445
|
-
// Prepare data buffer
|
|
2446
|
-
const buffer = new BitBuffer();
|
|
2447
|
-
|
|
2448
|
-
segments.forEach(function (data) {
|
|
2449
|
-
// prefix data with mode indicator (4 bits)
|
|
2450
|
-
buffer.put(data.mode.bit, 4);
|
|
2451
|
-
|
|
2452
|
-
// Prefix data with character count indicator.
|
|
2453
|
-
// The character count indicator is a string of bits that represents the
|
|
2454
|
-
// number of characters that are being encoded.
|
|
2455
|
-
// The character count indicator must be placed after the mode indicator
|
|
2456
|
-
// and must be a certain number of bits long, depending on the QR version
|
|
2457
|
-
// and data mode
|
|
2458
|
-
// @see {@link Mode.getCharCountIndicator}.
|
|
2459
|
-
buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version));
|
|
2460
|
-
|
|
2461
|
-
// add binary data sequence to buffer
|
|
2462
|
-
data.write(buffer);
|
|
2463
|
-
});
|
|
2464
|
-
|
|
2465
|
-
// Calculate required number of bits
|
|
2466
|
-
const totalCodewords = Utils.getSymbolTotalCodewords(version);
|
|
2467
|
-
const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel);
|
|
2468
|
-
const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8;
|
|
2469
|
-
|
|
2470
|
-
// Add a terminator.
|
|
2471
|
-
// If the bit string is shorter than the total number of required bits,
|
|
2472
|
-
// a terminator of up to four 0s must be added to the right side of the string.
|
|
2473
|
-
// If the bit string is more than four bits shorter than the required number of bits,
|
|
2474
|
-
// add four 0s to the end.
|
|
2475
|
-
if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {
|
|
2476
|
-
buffer.put(0, 4);
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
// If the bit string is fewer than four bits shorter, add only the number of 0s that
|
|
2480
|
-
// are needed to reach the required number of bits.
|
|
2481
|
-
|
|
2482
|
-
// After adding the terminator, if the number of bits in the string is not a multiple of 8,
|
|
2483
|
-
// pad the string on the right with 0s to make the string's length a multiple of 8.
|
|
2484
|
-
while (buffer.getLengthInBits() % 8 !== 0) {
|
|
2485
|
-
buffer.putBit(0);
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
// Add pad bytes if the string is still shorter than the total number of required bits.
|
|
2489
|
-
// Extend the buffer to fill the data capacity of the symbol corresponding to
|
|
2490
|
-
// the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)
|
|
2491
|
-
// and 00010001 (0x11) alternately.
|
|
2492
|
-
const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8;
|
|
2493
|
-
for (let i = 0; i < remainingByte; i++) {
|
|
2494
|
-
buffer.put(i % 2 ? 0x11 : 0xEC, 8);
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
return createCodewords(buffer, version, errorCorrectionLevel)
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* Encode input data with Reed-Solomon and return codewords with
|
|
2502
|
-
* relative error correction bits
|
|
2503
|
-
*
|
|
2504
|
-
* @param {BitBuffer} bitBuffer Data to encode
|
|
2505
|
-
* @param {Number} version QR Code version
|
|
2506
|
-
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
|
|
2507
|
-
* @return {Uint8Array} Buffer containing encoded codewords
|
|
2508
|
-
*/
|
|
2509
|
-
function createCodewords (bitBuffer, version, errorCorrectionLevel) {
|
|
2510
|
-
// Total codewords for this QR code version (Data + Error correction)
|
|
2511
|
-
const totalCodewords = Utils.getSymbolTotalCodewords(version);
|
|
2512
|
-
|
|
2513
|
-
// Total number of error correction codewords
|
|
2514
|
-
const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel);
|
|
2515
|
-
|
|
2516
|
-
// Total number of data codewords
|
|
2517
|
-
const dataTotalCodewords = totalCodewords - ecTotalCodewords;
|
|
2518
|
-
|
|
2519
|
-
// Total number of blocks
|
|
2520
|
-
const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel);
|
|
2521
|
-
|
|
2522
|
-
// Calculate how many blocks each group should contain
|
|
2523
|
-
const blocksInGroup2 = totalCodewords % ecTotalBlocks;
|
|
2524
|
-
const blocksInGroup1 = ecTotalBlocks - blocksInGroup2;
|
|
2525
|
-
|
|
2526
|
-
const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks);
|
|
2527
|
-
|
|
2528
|
-
const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks);
|
|
2529
|
-
const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1;
|
|
2530
|
-
|
|
2531
|
-
// Number of EC codewords is the same for both groups
|
|
2532
|
-
const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1;
|
|
2533
|
-
|
|
2534
|
-
// Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount
|
|
2535
|
-
const rs = new ReedSolomonEncoder(ecCount);
|
|
2536
|
-
|
|
2537
|
-
let offset = 0;
|
|
2538
|
-
const dcData = new Array(ecTotalBlocks);
|
|
2539
|
-
const ecData = new Array(ecTotalBlocks);
|
|
2540
|
-
let maxDataSize = 0;
|
|
2541
|
-
const buffer = new Uint8Array(bitBuffer.buffer);
|
|
2542
|
-
|
|
2543
|
-
// Divide the buffer into the required number of blocks
|
|
2544
|
-
for (let b = 0; b < ecTotalBlocks; b++) {
|
|
2545
|
-
const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2;
|
|
2546
|
-
|
|
2547
|
-
// extract a block of data from buffer
|
|
2548
|
-
dcData[b] = buffer.slice(offset, offset + dataSize);
|
|
2549
|
-
|
|
2550
|
-
// Calculate EC codewords for this data block
|
|
2551
|
-
ecData[b] = rs.encode(dcData[b]);
|
|
2552
|
-
|
|
2553
|
-
offset += dataSize;
|
|
2554
|
-
maxDataSize = Math.max(maxDataSize, dataSize);
|
|
2555
|
-
}
|
|
2556
|
-
|
|
2557
|
-
// Create final data
|
|
2558
|
-
// Interleave the data and error correction codewords from each block
|
|
2559
|
-
const data = new Uint8Array(totalCodewords);
|
|
2560
|
-
let index = 0;
|
|
2561
|
-
let i, r;
|
|
2562
|
-
|
|
2563
|
-
// Add data codewords
|
|
2564
|
-
for (i = 0; i < maxDataSize; i++) {
|
|
2565
|
-
for (r = 0; r < ecTotalBlocks; r++) {
|
|
2566
|
-
if (i < dcData[r].length) {
|
|
2567
|
-
data[index++] = dcData[r][i];
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
// Apped EC codewords
|
|
2573
|
-
for (i = 0; i < ecCount; i++) {
|
|
2574
|
-
for (r = 0; r < ecTotalBlocks; r++) {
|
|
2575
|
-
data[index++] = ecData[r][i];
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
return data
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
/**
|
|
2583
|
-
* Build QR Code symbol
|
|
2584
|
-
*
|
|
2585
|
-
* @param {String} data Input string
|
|
2586
|
-
* @param {Number} version QR Code version
|
|
2587
|
-
* @param {ErrorCorretionLevel} errorCorrectionLevel Error level
|
|
2588
|
-
* @param {MaskPattern} maskPattern Mask pattern
|
|
2589
|
-
* @return {Object} Object containing symbol data
|
|
2590
|
-
*/
|
|
2591
|
-
function createSymbol (data, version, errorCorrectionLevel, maskPattern) {
|
|
2592
|
-
let segments;
|
|
2593
|
-
|
|
2594
|
-
if (Array.isArray(data)) {
|
|
2595
|
-
segments = Segments.fromArray(data);
|
|
2596
|
-
} else if (typeof data === 'string') {
|
|
2597
|
-
let estimatedVersion = version;
|
|
2598
|
-
|
|
2599
|
-
if (!estimatedVersion) {
|
|
2600
|
-
const rawSegments = Segments.rawSplit(data);
|
|
2601
|
-
|
|
2602
|
-
// Estimate best version that can contain raw splitted segments
|
|
2603
|
-
estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel);
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
|
-
// Build optimized segments
|
|
2607
|
-
// If estimated version is undefined, try with the highest version
|
|
2608
|
-
segments = Segments.fromString(data, estimatedVersion || 40);
|
|
2609
|
-
} else {
|
|
2610
|
-
throw new Error('Invalid data')
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
// Get the min version that can contain data
|
|
2614
|
-
const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel);
|
|
2615
|
-
|
|
2616
|
-
// If no version is found, data cannot be stored
|
|
2617
|
-
if (!bestVersion) {
|
|
2618
|
-
throw new Error('The amount of data is too big to be stored in a QR Code')
|
|
2619
|
-
}
|
|
2620
|
-
|
|
2621
|
-
// If not specified, use min version as default
|
|
2622
|
-
if (!version) {
|
|
2623
|
-
version = bestVersion;
|
|
2624
|
-
|
|
2625
|
-
// Check if the specified version can contain the data
|
|
2626
|
-
} else if (version < bestVersion) {
|
|
2627
|
-
throw new Error('\n' +
|
|
2628
|
-
'The chosen QR Code version cannot contain this amount of data.\n' +
|
|
2629
|
-
'Minimum version required to store current data is: ' + bestVersion + '.\n'
|
|
2630
|
-
)
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
const dataBits = createData(version, errorCorrectionLevel, segments);
|
|
2634
|
-
|
|
2635
|
-
// Allocate matrix buffer
|
|
2636
|
-
const moduleCount = Utils.getSymbolSize(version);
|
|
2637
|
-
const modules = new BitMatrix(moduleCount);
|
|
2638
|
-
|
|
2639
|
-
// Add function modules
|
|
2640
|
-
setupFinderPattern(modules, version);
|
|
2641
|
-
setupTimingPattern(modules);
|
|
2642
|
-
setupAlignmentPattern(modules, version);
|
|
2643
|
-
|
|
2644
|
-
// Add temporary dummy bits for format info just to set them as reserved.
|
|
2645
|
-
// This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}
|
|
2646
|
-
// since the masking operation must be performed only on the encoding region.
|
|
2647
|
-
// These blocks will be replaced with correct values later in code.
|
|
2648
|
-
setupFormatInfo(modules, errorCorrectionLevel, 0);
|
|
2649
|
-
|
|
2650
|
-
if (version >= 7) {
|
|
2651
|
-
setupVersionInfo(modules, version);
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
|
-
// Add data codewords
|
|
2655
|
-
setupData(modules, dataBits);
|
|
2656
|
-
|
|
2657
|
-
if (isNaN(maskPattern)) {
|
|
2658
|
-
// Find best mask pattern
|
|
2659
|
-
maskPattern = MaskPattern.getBestMask(modules,
|
|
2660
|
-
setupFormatInfo.bind(null, modules, errorCorrectionLevel));
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
// Apply mask pattern
|
|
2664
|
-
MaskPattern.applyMask(maskPattern, modules);
|
|
2665
|
-
|
|
2666
|
-
// Replace format info bits with correct values
|
|
2667
|
-
setupFormatInfo(modules, errorCorrectionLevel, maskPattern);
|
|
2668
|
-
|
|
2669
|
-
return {
|
|
2670
|
-
modules: modules,
|
|
2671
|
-
version: version,
|
|
2672
|
-
errorCorrectionLevel: errorCorrectionLevel,
|
|
2673
|
-
maskPattern: maskPattern,
|
|
2674
|
-
segments: segments
|
|
2675
|
-
}
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
/**
|
|
2679
|
-
* QR Code
|
|
2680
|
-
*
|
|
2681
|
-
* @param {String | Array} data Input data
|
|
2682
|
-
* @param {Object} options Optional configurations
|
|
2683
|
-
* @param {Number} options.version QR Code version
|
|
2684
|
-
* @param {String} options.errorCorrectionLevel Error correction level
|
|
2685
|
-
* @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis
|
|
2686
|
-
*/
|
|
2687
|
-
qrcode.create = function create (data, options) {
|
|
2688
|
-
if (typeof data === 'undefined' || data === '') {
|
|
2689
|
-
throw new Error('No input text')
|
|
2690
|
-
}
|
|
2691
|
-
|
|
2692
|
-
let errorCorrectionLevel = ECLevel.M;
|
|
2693
|
-
let version;
|
|
2694
|
-
let mask;
|
|
2695
|
-
|
|
2696
|
-
if (typeof options !== 'undefined') {
|
|
2697
|
-
// Use higher error correction level as default
|
|
2698
|
-
errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M);
|
|
2699
|
-
version = Version.from(options.version);
|
|
2700
|
-
mask = MaskPattern.from(options.maskPattern);
|
|
2701
|
-
|
|
2702
|
-
if (options.toSJISFunc) {
|
|
2703
|
-
Utils.setToSJISFunction(options.toSJISFunc);
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
return createSymbol(data, version, errorCorrectionLevel, mask)
|
|
2708
|
-
};
|
|
2709
|
-
return qrcode;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
var canvas = {};
|
|
2713
|
-
|
|
2714
|
-
var utils = {};
|
|
2715
|
-
|
|
2716
|
-
var hasRequiredUtils;
|
|
2717
|
-
|
|
2718
|
-
function requireUtils () {
|
|
2719
|
-
if (hasRequiredUtils) return utils;
|
|
2720
|
-
hasRequiredUtils = 1;
|
|
2721
|
-
(function (exports) {
|
|
2722
|
-
function hex2rgba (hex) {
|
|
2723
|
-
if (typeof hex === 'number') {
|
|
2724
|
-
hex = hex.toString();
|
|
2725
|
-
}
|
|
2726
|
-
|
|
2727
|
-
if (typeof hex !== 'string') {
|
|
2728
|
-
throw new Error('Color should be defined as hex string')
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
let hexCode = hex.slice().replace('#', '').split('');
|
|
2732
|
-
if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {
|
|
2733
|
-
throw new Error('Invalid hex color: ' + hex)
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
// Convert from short to long form (fff -> ffffff)
|
|
2737
|
-
if (hexCode.length === 3 || hexCode.length === 4) {
|
|
2738
|
-
hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {
|
|
2739
|
-
return [c, c]
|
|
2740
|
-
}));
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
// Add default alpha value
|
|
2744
|
-
if (hexCode.length === 6) hexCode.push('F', 'F');
|
|
2745
|
-
|
|
2746
|
-
const hexValue = parseInt(hexCode.join(''), 16);
|
|
2747
|
-
|
|
2748
|
-
return {
|
|
2749
|
-
r: (hexValue >> 24) & 255,
|
|
2750
|
-
g: (hexValue >> 16) & 255,
|
|
2751
|
-
b: (hexValue >> 8) & 255,
|
|
2752
|
-
a: hexValue & 255,
|
|
2753
|
-
hex: '#' + hexCode.slice(0, 6).join('')
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
exports.getOptions = function getOptions (options) {
|
|
2758
|
-
if (!options) options = {};
|
|
2759
|
-
if (!options.color) options.color = {};
|
|
2760
|
-
|
|
2761
|
-
const margin = typeof options.margin === 'undefined' ||
|
|
2762
|
-
options.margin === null ||
|
|
2763
|
-
options.margin < 0
|
|
2764
|
-
? 4
|
|
2765
|
-
: options.margin;
|
|
2766
|
-
|
|
2767
|
-
const width = options.width && options.width >= 21 ? options.width : undefined;
|
|
2768
|
-
const scale = options.scale || 4;
|
|
2769
|
-
|
|
2770
|
-
return {
|
|
2771
|
-
width: width,
|
|
2772
|
-
scale: width ? 4 : scale,
|
|
2773
|
-
margin: margin,
|
|
2774
|
-
color: {
|
|
2775
|
-
dark: hex2rgba(options.color.dark || '#000000ff'),
|
|
2776
|
-
light: hex2rgba(options.color.light || '#ffffffff')
|
|
2777
|
-
},
|
|
2778
|
-
type: options.type,
|
|
2779
|
-
rendererOpts: options.rendererOpts || {}
|
|
2780
|
-
}
|
|
2781
|
-
};
|
|
2782
|
-
|
|
2783
|
-
exports.getScale = function getScale (qrSize, opts) {
|
|
2784
|
-
return opts.width && opts.width >= qrSize + opts.margin * 2
|
|
2785
|
-
? opts.width / (qrSize + opts.margin * 2)
|
|
2786
|
-
: opts.scale
|
|
2787
|
-
};
|
|
2788
|
-
|
|
2789
|
-
exports.getImageWidth = function getImageWidth (qrSize, opts) {
|
|
2790
|
-
const scale = exports.getScale(qrSize, opts);
|
|
2791
|
-
return Math.floor((qrSize + opts.margin * 2) * scale)
|
|
2792
|
-
};
|
|
2793
|
-
|
|
2794
|
-
exports.qrToImageData = function qrToImageData (imgData, qr, opts) {
|
|
2795
|
-
const size = qr.modules.size;
|
|
2796
|
-
const data = qr.modules.data;
|
|
2797
|
-
const scale = exports.getScale(size, opts);
|
|
2798
|
-
const symbolSize = Math.floor((size + opts.margin * 2) * scale);
|
|
2799
|
-
const scaledMargin = opts.margin * scale;
|
|
2800
|
-
const palette = [opts.color.light, opts.color.dark];
|
|
2801
|
-
|
|
2802
|
-
for (let i = 0; i < symbolSize; i++) {
|
|
2803
|
-
for (let j = 0; j < symbolSize; j++) {
|
|
2804
|
-
let posDst = (i * symbolSize + j) * 4;
|
|
2805
|
-
let pxColor = opts.color.light;
|
|
2806
|
-
|
|
2807
|
-
if (i >= scaledMargin && j >= scaledMargin &&
|
|
2808
|
-
i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {
|
|
2809
|
-
const iSrc = Math.floor((i - scaledMargin) / scale);
|
|
2810
|
-
const jSrc = Math.floor((j - scaledMargin) / scale);
|
|
2811
|
-
pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0];
|
|
2812
|
-
}
|
|
2813
|
-
|
|
2814
|
-
imgData[posDst++] = pxColor.r;
|
|
2815
|
-
imgData[posDst++] = pxColor.g;
|
|
2816
|
-
imgData[posDst++] = pxColor.b;
|
|
2817
|
-
imgData[posDst] = pxColor.a;
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
} (utils));
|
|
2822
|
-
return utils;
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
var hasRequiredCanvas;
|
|
2826
|
-
|
|
2827
|
-
function requireCanvas () {
|
|
2828
|
-
if (hasRequiredCanvas) return canvas;
|
|
2829
|
-
hasRequiredCanvas = 1;
|
|
2830
|
-
(function (exports) {
|
|
2831
|
-
const Utils = requireUtils();
|
|
2832
|
-
|
|
2833
|
-
function clearCanvas (ctx, canvas, size) {
|
|
2834
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
2835
|
-
|
|
2836
|
-
if (!canvas.style) canvas.style = {};
|
|
2837
|
-
canvas.height = size;
|
|
2838
|
-
canvas.width = size;
|
|
2839
|
-
canvas.style.height = size + 'px';
|
|
2840
|
-
canvas.style.width = size + 'px';
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
|
-
function getCanvasElement () {
|
|
2844
|
-
try {
|
|
2845
|
-
return document.createElement('canvas')
|
|
2846
|
-
} catch (e) {
|
|
2847
|
-
throw new Error('You need to specify a canvas element')
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
exports.render = function render (qrData, canvas, options) {
|
|
2852
|
-
let opts = options;
|
|
2853
|
-
let canvasEl = canvas;
|
|
2854
|
-
|
|
2855
|
-
if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
|
|
2856
|
-
opts = canvas;
|
|
2857
|
-
canvas = undefined;
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
if (!canvas) {
|
|
2861
|
-
canvasEl = getCanvasElement();
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
opts = Utils.getOptions(opts);
|
|
2865
|
-
const size = Utils.getImageWidth(qrData.modules.size, opts);
|
|
2866
|
-
|
|
2867
|
-
const ctx = canvasEl.getContext('2d');
|
|
2868
|
-
const image = ctx.createImageData(size, size);
|
|
2869
|
-
Utils.qrToImageData(image.data, qrData, opts);
|
|
2870
|
-
|
|
2871
|
-
clearCanvas(ctx, canvasEl, size);
|
|
2872
|
-
ctx.putImageData(image, 0, 0);
|
|
2873
|
-
|
|
2874
|
-
return canvasEl
|
|
2875
|
-
};
|
|
2876
|
-
|
|
2877
|
-
exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {
|
|
2878
|
-
let opts = options;
|
|
2879
|
-
|
|
2880
|
-
if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
|
|
2881
|
-
opts = canvas;
|
|
2882
|
-
canvas = undefined;
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
if (!opts) opts = {};
|
|
2886
|
-
|
|
2887
|
-
const canvasEl = exports.render(qrData, canvas, opts);
|
|
2888
|
-
|
|
2889
|
-
const type = opts.type || 'image/png';
|
|
2890
|
-
const rendererOpts = opts.rendererOpts || {};
|
|
2891
|
-
|
|
2892
|
-
return canvasEl.toDataURL(type, rendererOpts.quality)
|
|
2893
|
-
};
|
|
2894
|
-
} (canvas));
|
|
2895
|
-
return canvas;
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
var svgTag = {};
|
|
2899
|
-
|
|
2900
|
-
var hasRequiredSvgTag;
|
|
2901
|
-
|
|
2902
|
-
function requireSvgTag () {
|
|
2903
|
-
if (hasRequiredSvgTag) return svgTag;
|
|
2904
|
-
hasRequiredSvgTag = 1;
|
|
2905
|
-
const Utils = requireUtils();
|
|
2906
|
-
|
|
2907
|
-
function getColorAttrib (color, attrib) {
|
|
2908
|
-
const alpha = color.a / 255;
|
|
2909
|
-
const str = attrib + '="' + color.hex + '"';
|
|
2910
|
-
|
|
2911
|
-
return alpha < 1
|
|
2912
|
-
? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"'
|
|
2913
|
-
: str
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
function svgCmd (cmd, x, y) {
|
|
2917
|
-
let str = cmd + x;
|
|
2918
|
-
if (typeof y !== 'undefined') str += ' ' + y;
|
|
2919
|
-
|
|
2920
|
-
return str
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
function qrToPath (data, size, margin) {
|
|
2924
|
-
let path = '';
|
|
2925
|
-
let moveBy = 0;
|
|
2926
|
-
let newRow = false;
|
|
2927
|
-
let lineLength = 0;
|
|
2928
|
-
|
|
2929
|
-
for (let i = 0; i < data.length; i++) {
|
|
2930
|
-
const col = Math.floor(i % size);
|
|
2931
|
-
const row = Math.floor(i / size);
|
|
2932
|
-
|
|
2933
|
-
if (!col && !newRow) newRow = true;
|
|
2934
|
-
|
|
2935
|
-
if (data[i]) {
|
|
2936
|
-
lineLength++;
|
|
2937
|
-
|
|
2938
|
-
if (!(i > 0 && col > 0 && data[i - 1])) {
|
|
2939
|
-
path += newRow
|
|
2940
|
-
? svgCmd('M', col + margin, 0.5 + row + margin)
|
|
2941
|
-
: svgCmd('m', moveBy, 0);
|
|
2942
|
-
|
|
2943
|
-
moveBy = 0;
|
|
2944
|
-
newRow = false;
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
|
-
if (!(col + 1 < size && data[i + 1])) {
|
|
2948
|
-
path += svgCmd('h', lineLength);
|
|
2949
|
-
lineLength = 0;
|
|
2950
|
-
}
|
|
2951
|
-
} else {
|
|
2952
|
-
moveBy++;
|
|
2953
|
-
}
|
|
2954
|
-
}
|
|
2955
|
-
|
|
2956
|
-
return path
|
|
2957
|
-
}
|
|
2958
|
-
|
|
2959
|
-
svgTag.render = function render (qrData, options, cb) {
|
|
2960
|
-
const opts = Utils.getOptions(options);
|
|
2961
|
-
const size = qrData.modules.size;
|
|
2962
|
-
const data = qrData.modules.data;
|
|
2963
|
-
const qrcodesize = size + opts.margin * 2;
|
|
2964
|
-
|
|
2965
|
-
const bg = !opts.color.light.a
|
|
2966
|
-
? ''
|
|
2967
|
-
: '<path ' + getColorAttrib(opts.color.light, 'fill') +
|
|
2968
|
-
' d="M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z"/>';
|
|
2969
|
-
|
|
2970
|
-
const path =
|
|
2971
|
-
'<path ' + getColorAttrib(opts.color.dark, 'stroke') +
|
|
2972
|
-
' d="' + qrToPath(data, size, opts.margin) + '"/>';
|
|
2973
|
-
|
|
2974
|
-
const viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"';
|
|
2975
|
-
|
|
2976
|
-
const width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" ';
|
|
2977
|
-
|
|
2978
|
-
const svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path + '</svg>\n';
|
|
2979
|
-
|
|
2980
|
-
if (typeof cb === 'function') {
|
|
2981
|
-
cb(null, svgTag);
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
return svgTag
|
|
2985
|
-
};
|
|
2986
|
-
return svgTag;
|
|
2987
|
-
}
|
|
2988
|
-
|
|
2989
|
-
var hasRequiredBrowser;
|
|
2990
|
-
|
|
2991
|
-
function requireBrowser () {
|
|
2992
|
-
if (hasRequiredBrowser) return browser;
|
|
2993
|
-
hasRequiredBrowser = 1;
|
|
2994
|
-
const canPromise = requireCanPromise();
|
|
2995
|
-
|
|
2996
|
-
const QRCode = requireQrcode();
|
|
2997
|
-
const CanvasRenderer = requireCanvas();
|
|
2998
|
-
const SvgRenderer = requireSvgTag();
|
|
2999
|
-
|
|
3000
|
-
function renderCanvas (renderFunc, canvas, text, opts, cb) {
|
|
3001
|
-
const args = [].slice.call(arguments, 1);
|
|
3002
|
-
const argsNum = args.length;
|
|
3003
|
-
const isLastArgCb = typeof args[argsNum - 1] === 'function';
|
|
3004
|
-
|
|
3005
|
-
if (!isLastArgCb && !canPromise()) {
|
|
3006
|
-
throw new Error('Callback required as last argument')
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
if (isLastArgCb) {
|
|
3010
|
-
if (argsNum < 2) {
|
|
3011
|
-
throw new Error('Too few arguments provided')
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
if (argsNum === 2) {
|
|
3015
|
-
cb = text;
|
|
3016
|
-
text = canvas;
|
|
3017
|
-
canvas = opts = undefined;
|
|
3018
|
-
} else if (argsNum === 3) {
|
|
3019
|
-
if (canvas.getContext && typeof cb === 'undefined') {
|
|
3020
|
-
cb = opts;
|
|
3021
|
-
opts = undefined;
|
|
3022
|
-
} else {
|
|
3023
|
-
cb = opts;
|
|
3024
|
-
opts = text;
|
|
3025
|
-
text = canvas;
|
|
3026
|
-
canvas = undefined;
|
|
3027
|
-
}
|
|
3028
|
-
}
|
|
3029
|
-
} else {
|
|
3030
|
-
if (argsNum < 1) {
|
|
3031
|
-
throw new Error('Too few arguments provided')
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
if (argsNum === 1) {
|
|
3035
|
-
text = canvas;
|
|
3036
|
-
canvas = opts = undefined;
|
|
3037
|
-
} else if (argsNum === 2 && !canvas.getContext) {
|
|
3038
|
-
opts = text;
|
|
3039
|
-
text = canvas;
|
|
3040
|
-
canvas = undefined;
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
return new Promise(function (resolve, reject) {
|
|
3044
|
-
try {
|
|
3045
|
-
const data = QRCode.create(text, opts);
|
|
3046
|
-
resolve(renderFunc(data, canvas, opts));
|
|
3047
|
-
} catch (e) {
|
|
3048
|
-
reject(e);
|
|
3049
|
-
}
|
|
3050
|
-
})
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
try {
|
|
3054
|
-
const data = QRCode.create(text, opts);
|
|
3055
|
-
cb(null, renderFunc(data, canvas, opts));
|
|
3056
|
-
} catch (e) {
|
|
3057
|
-
cb(e);
|
|
3058
|
-
}
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
browser.create = QRCode.create;
|
|
3062
|
-
browser.toCanvas = renderCanvas.bind(null, CanvasRenderer.render);
|
|
3063
|
-
browser.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL);
|
|
3064
|
-
|
|
3065
|
-
// only svg for now.
|
|
3066
|
-
browser.toString = renderCanvas.bind(null, function (data, _, opts) {
|
|
3067
|
-
return SvgRenderer.render(data, opts)
|
|
3068
|
-
});
|
|
3069
|
-
return browser;
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
var browserExports = requireBrowser();
|
|
3073
|
-
|
|
3074
|
-
const amwalPosCss = () => `:root{--tabby-green:#3FD28B;--text-primary:#000000;--text-secondary:#8E8E93;--text-disabled:#999999;--bg-primary:#FFFFFF;--bg-secondary:#F2F2F7;--bg-disabled:#E5E5EA;--bg-notes:#FFF4E6;--text-notes:#8B6914;--button-active:#2C2C2C;--border-color:#E5E5EA}.amwal-pos{font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background-color:var(--bg-primary);width:100%;max-width:375px;min-height:46vh;margin:0 auto;display:flex;flex-direction:column;position:relative}.pos-screen{flex:1;display:flex;flex-direction:column;padding:0}.pos-screen.qr-screen{padding:20px 20px 20px 20px}.pos-logo{padding:20px 20px 20px 20px;display:flex;justify-content:flex-start}.pos-logo.rtl{justify-content:flex-end}.pos-logo.ltr{justify-content:flex-start}.pos-content{flex:1;display:flex;flex-direction:column;padding:0 20px}.pos-title{font-size:18px;font-weight:600;color:var(--text-primary);text-align:left;margin:0 0 20px 0;line-height:1.2}.pos-amount-container{margin-bottom:20px}.pos-amount-input{background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;padding:16px 16px;min-height:20px;display:flex;align-items:center;font-size:16px;font-weight:400;color:var(--text-primary)}.amount-text{width:100%}.amount-placeholder{width:100%;color:var(--text-secondary)}.cursor{color:var(--text-primary);animation:blink 1s infinite}@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}.pos-continue{width:100%;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;margin-bottom:20px;cursor:pointer;transition:all 0.2s ease;background-color:var(--bg-disabled);color:var(--text-disabled)}.pos-continue.active{background-color:var(--button-active);color:white}.pos-continue:disabled{cursor:not-allowed}.pos-keypad{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.pos-keypad-row{display:flex;gap:12px}.pos-key{flex:1;height:50px;border:none;border-radius:8px;background-color:var(--bg-secondary);color:var(--text-primary);font-size:18px;font-weight:400;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center}.pos-key:active{background-color:var(--bg-disabled);transform:scale(0.95)}.pos-key.done{font-size:12px;font-weight:600;letter-spacing:1px}.pos-key.backspace svg{stroke:var(--text-primary);width:18px;height:14px}.pos-notes{background-color:var(--bg-notes);padding:16px 20px 20px 20px;margin-top:auto}.notes-content{text-align:center;font-size:12px;color:var(--text-notes);line-height:1.4}.qr-container{flex:1;display:flex;align-items:center;justify-content:center;margin:20px 0}.qr-code{background-color:white;padding:16px;border-radius:12px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.qr-pattern{display:block}.qr-actions{display:flex;gap:12px;margin-top:auto;padding-bottom:20px}.pos-button{flex:1;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.2s ease}.pos-button.cancel{background-color:white;color:var(--text-primary);border:1px solid var(--border-color)}.pos-button.cancel:active{background-color:var(--bg-secondary)}.pos-button.check-status{background-color:var(--button-active);color:white}.pos-button.check-status:active{background-color:#1a1a1a}.processing-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.processing-spinner{display:flex;align-items:center;justify-content:center;position:relative}.processing-spinner::before{content:'';position:absolute;width:72px;height:72px;border:2px solid var(--tabby-green);border-radius:50%;opacity:0.3;animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(0.8);opacity:0.3}50%{transform:scale(1.2);opacity:0.1}100%{transform:scale(0.8);opacity:0.3}}.spinner{width:48px;height:48px;border:4px solid var(--bg-disabled);border-top:4px solid var(--tabby-green);border-radius:50%;animation:spin 1s linear infinite;z-index:1;position:relative}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.processing-info{text-align:center;display:flex;flex-direction:column;gap:8px}.processing-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.processing-message{font-size:14px;color:var(--text-secondary);max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.success-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.success-icon{display:flex;align-items:center;justify-content:center;animation:successBounce 0.6s ease-out}@keyframes successBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.success-info{text-align:center;display:flex;flex-direction:column;gap:8px}.success-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.success-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px}.error-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.error-icon{display:flex;align-items:center;justify-content:center;animation:errorBounce 0.6s ease-out}@keyframes errorBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.error-info{text-align:center;display:flex;flex-direction:column;gap:8px}.error-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.error-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px;max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}.transaction-id{font-size:12px;color:var(--text-secondary);background-color:var(--bg-secondary);padding:8px 12px;border-radius:6px;font-family:'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;border:1px solid var(--border-color);animation:slideIn 0.4s ease-out 0.2s both}@keyframes slideIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.success-container+.pos-continue{margin-top:0;transform:translateY(0);animation:slideInButton 0.5s ease-out 0.4s both}@keyframes slideInButton{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}[dir="rtl"] .amwal-pos{direction:rtl}[dir="rtl"] .pos-amount-input{text-align:right}[dir="rtl"] .notes-content{text-align:center}.amwal-pos[dir="rtl"] .pos-logo{justify-content:start}.amwal-pos[dir="rtl"] .pos-title{text-align:right}.amwal-pos[dir="rtl"] .amount-text{text-align:right}.amwal-pos[dir="rtl"] .amount-placeholder{text-align:right;direction:rtl}.amwal-pos[dir="rtl"] .processing-info{text-align:center}.amwal-pos[dir="rtl"] .success-info{text-align:center}.amwal-pos[dir="rtl"] .error-info{text-align:center}.amwal-pos[dir="rtl"] .transaction-id{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .processing-message{text-align:center}.amwal-pos[dir="rtl"] .success-message{text-align:center}.amwal-pos[dir="rtl"] .error-message{text-align:center}.amwal-pos[dir="rtl"] .notes-content{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .qr-actions{flex-direction:row-reverse}.amwal-pos[dir="rtl"] .pos-key{font-family:'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif}@media (max-width: 375px){.pos-logo{padding:16px 16px 16px 16px}.pos-content{padding:0 16px}.pos-notes{padding:12px 16px 16px 16px}.pos-screen.qr-screen{padding:16px 16px 16px 16px}.qr-actions{padding-bottom:16px}.processing-container{padding:20px 0;gap:24px}.processing-amount,.success-amount{font-size:20px}.success-container{padding:20px 0;gap:24px}.success-icon svg{width:64px;height:64px}}@media (max-width: 320px){.pos-key{height:46px;font-size:16px}.pos-keypad{gap:10px}.pos-keypad-row{gap:10px}.qr-code{padding:12px}.qr-pattern{width:160px;height:160px}.processing-container{padding:16px 0;gap:20px}.success-container{padding:16px 0;gap:20px}.spinner{width:40px;height:40px;border-width:3px}.success-icon svg{width:56px;height:56px}.processing-amount,.success-amount{font-size:18px}.processing-message{font-size:13px}.success-message{font-size:14px}}@media (min-width: 768px){.amwal-pos{border-radius:16px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);margin:20px auto;max-height:85vh;min-height:530px}.processing-container{gap:40px}.success-container{gap:40px}.success-icon svg{width:96px;height:96px}.processing-amount,.success-amount{font-size:28px}}`;
|
|
3075
|
-
|
|
3076
|
-
const AmwalPos$1 = /*@__PURE__*/ proxyCustomElement(class AmwalPos extends H {
|
|
3077
|
-
constructor(registerHost) {
|
|
3078
|
-
super();
|
|
3079
|
-
if (registerHost !== false) {
|
|
3080
|
-
this.__registerHost();
|
|
3081
|
-
}
|
|
3082
|
-
/**
|
|
3083
|
-
* The current amount entered
|
|
3084
|
-
*/
|
|
3085
|
-
this.amount = '';
|
|
3086
|
-
/**
|
|
3087
|
-
* The language of the plugin. Supported languages are Arabic ("ar") and English ("en")
|
|
3088
|
-
*/
|
|
3089
|
-
this.locale = 'en';
|
|
3090
|
-
/**
|
|
3091
|
-
* Enable debug mode for additional console logs
|
|
3092
|
-
*/
|
|
3093
|
-
this.debug = false;
|
|
3094
|
-
/**
|
|
3095
|
-
* Minimum amount allowed
|
|
3096
|
-
*/
|
|
3097
|
-
this.minAmount = 1;
|
|
3098
|
-
/**
|
|
3099
|
-
* Maximum amount allowed
|
|
3100
|
-
*/
|
|
3101
|
-
this.maxAmount = 999999;
|
|
3102
|
-
/**
|
|
3103
|
-
* API Authorization token
|
|
3104
|
-
*/
|
|
3105
|
-
this.authToken = '';
|
|
3106
|
-
/**
|
|
3107
|
-
* Store ID for API calls
|
|
3108
|
-
*/
|
|
3109
|
-
this.storeId = '';
|
|
3110
|
-
/**
|
|
3111
|
-
* API base URL
|
|
3112
|
-
*/
|
|
3113
|
-
this.apiBaseUrl = 'https://backend.sa.amwal.tech';
|
|
3114
|
-
/**
|
|
3115
|
-
* Address and payment options
|
|
3116
|
-
*/
|
|
3117
|
-
this.addressRequired = false;
|
|
3118
|
-
this.sendSms = false;
|
|
3119
|
-
this.passkeyEnabled = false;
|
|
3120
|
-
this.onlyShowBankInstallments = false;
|
|
3121
|
-
this.onlyShowPayInFull = false;
|
|
3122
|
-
/**
|
|
3123
|
-
* Component state
|
|
3124
|
-
*/
|
|
3125
|
-
this.currentScreen = 'amount-entry';
|
|
3126
|
-
this.qrCodeData = '';
|
|
3127
|
-
this.qrCodeDataURL = '';
|
|
3128
|
-
this.transactionId = '';
|
|
3129
|
-
this.errorMessage = '';
|
|
3130
|
-
this.paymentUrl = '';
|
|
3131
|
-
this.isChecking = false;
|
|
3132
|
-
this.checkAttempts = 0;
|
|
3133
|
-
/**
|
|
3134
|
-
* Translation function to handle localization
|
|
3135
|
-
* @private
|
|
3136
|
-
*/
|
|
3137
|
-
this.t = (val) => val; // Initialize with fallback
|
|
3138
|
-
/**
|
|
3139
|
-
* Handle number input
|
|
3140
|
-
*/
|
|
3141
|
-
this.handleNumberInput = (digit) => {
|
|
3142
|
-
if (digit === '.' && this.amount.includes('.'))
|
|
3143
|
-
return;
|
|
3144
|
-
if (this.amount.includes('.') && this.amount.split('.')[1].length >= 2)
|
|
3145
|
-
return;
|
|
3146
|
-
this.amount = this.amount + digit;
|
|
3147
|
-
};
|
|
3148
|
-
/**
|
|
3149
|
-
* Handle backspace
|
|
3150
|
-
*/
|
|
3151
|
-
this.handleBackspace = () => {
|
|
3152
|
-
this.amount = this.amount.slice(0, -1);
|
|
3153
|
-
};
|
|
3154
|
-
/**
|
|
3155
|
-
* Handle continue to QR code screen
|
|
3156
|
-
*/
|
|
3157
|
-
this.handleContinue = async () => {
|
|
3158
|
-
const numAmount = parseFloat(this.amount);
|
|
3159
|
-
if (numAmount >= this.minAmount && numAmount <= this.maxAmount) {
|
|
3160
|
-
this.currentScreen = 'processing';
|
|
3161
|
-
await this.createTransaction();
|
|
3162
|
-
}
|
|
3163
|
-
};
|
|
3164
|
-
/**
|
|
3165
|
-
* Create transaction and generate QR code
|
|
3166
|
-
*/
|
|
3167
|
-
this.createTransaction = async () => {
|
|
3168
|
-
const paymentLink = await this.createPaymentLink();
|
|
3169
|
-
if (paymentLink) {
|
|
3170
|
-
console.log(paymentLink);
|
|
3171
|
-
this.transactionId = paymentLink.payment_link_id || paymentLink.id;
|
|
3172
|
-
// Generate payment URL from payment_link_id
|
|
3173
|
-
const paymentLinkId = paymentLink.payment_link_id || paymentLink.id;
|
|
3174
|
-
this.paymentUrl = `https://pay.sa.amwal.tech/payment-link/${paymentLinkId}`;
|
|
3175
|
-
this.qrCodeData = paymentLink.qr_code || this.paymentUrl;
|
|
3176
|
-
// Generate QR code as data URL
|
|
3177
|
-
await this.generateQRCode(this.qrCodeData);
|
|
3178
|
-
this.currentScreen = 'qr-code';
|
|
3179
|
-
}
|
|
3180
|
-
// Error handling is done in createPaymentLink method
|
|
3181
|
-
};
|
|
3182
|
-
/**
|
|
3183
|
-
* Generate QR code using the qrcode library
|
|
3184
|
-
*/
|
|
3185
|
-
this.generateQRCode = async (data) => {
|
|
3186
|
-
try {
|
|
3187
|
-
const qrDataURL = await browserExports.toDataURL(data, {
|
|
3188
|
-
width: 200,
|
|
3189
|
-
margin: 2,
|
|
3190
|
-
color: {
|
|
3191
|
-
dark: '#000000',
|
|
3192
|
-
light: '#FFFFFF'
|
|
3193
|
-
},
|
|
3194
|
-
errorCorrectionLevel: 'M'
|
|
3195
|
-
});
|
|
3196
|
-
this.qrCodeDataURL = qrDataURL;
|
|
3197
|
-
if (this.debug) {
|
|
3198
|
-
console.log('[AmwalPos] QR code generated for:', data);
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
catch (error) {
|
|
3202
|
-
console.error('[AmwalPos] Error generating QR code:', error);
|
|
3203
|
-
this.handleError('Failed to generate QR code');
|
|
3204
|
-
}
|
|
3205
|
-
};
|
|
3206
|
-
/**
|
|
3207
|
-
* Handle cancel action
|
|
3208
|
-
*/
|
|
3209
|
-
this.handleCancel = () => {
|
|
3210
|
-
this.currentScreen = 'amount-entry';
|
|
3211
|
-
this.qrCodeData = '';
|
|
3212
|
-
this.transactionId = '';
|
|
3213
|
-
};
|
|
3214
|
-
/**
|
|
3215
|
-
* Handle check status with automatic retries
|
|
3216
|
-
*/
|
|
3217
|
-
this.handleCheckStatus = async () => {
|
|
3218
|
-
if (!this.transactionId) {
|
|
3219
|
-
// No transaction ID - start monitoring process
|
|
3220
|
-
this.isChecking = true;
|
|
3221
|
-
this.checkAttempts = 0;
|
|
3222
|
-
this.currentScreen = 'processing';
|
|
3223
|
-
this.startPaymentMonitoring();
|
|
3224
|
-
return;
|
|
3225
|
-
}
|
|
3226
|
-
// Start checking process
|
|
3227
|
-
this.isChecking = true;
|
|
3228
|
-
this.checkAttempts = 0;
|
|
3229
|
-
this.currentScreen = 'processing';
|
|
3230
|
-
await this.performStatusCheck();
|
|
3231
|
-
};
|
|
3232
|
-
/**
|
|
3233
|
-
* Start payment monitoring with automatic retries
|
|
3234
|
-
*/
|
|
3235
|
-
this.startPaymentMonitoring = async () => {
|
|
3236
|
-
const maxAttempts = 5; // Maximum number of attempts to check payment status
|
|
3237
|
-
const checkInterval = 10000; // Check every 10 seconds
|
|
3238
|
-
const checkLoop = async () => {
|
|
3239
|
-
var _a, _b, _c;
|
|
3240
|
-
if (!this.isChecking)
|
|
3241
|
-
return; // Stop if the user cancelled
|
|
3242
|
-
this.checkAttempts++;
|
|
3243
|
-
if (this.debug) {
|
|
3244
|
-
console.log(`[AmwalPos] Payment check attempt ${this.checkAttempts}/${maxAttempts}`);
|
|
3245
|
-
}
|
|
3246
|
-
if (this.transactionId) {
|
|
3247
|
-
const statusResponse = await this.checkPaymentStatus(this.transactionId);
|
|
3248
|
-
if (statusResponse) {
|
|
3249
|
-
// Check payment link status first
|
|
3250
|
-
const paymentLinkStatus = (_a = statusResponse.payment_link) === null || _a === void 0 ? void 0 : _a.status;
|
|
3251
|
-
// Check transaction status if available
|
|
3252
|
-
const transactionStatus = (_c = (_b = statusResponse.transactions) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.status;
|
|
3253
|
-
if (this.debug) {
|
|
3254
|
-
console.log('[AmwalPos] Payment link status:', paymentLinkStatus);
|
|
3255
|
-
console.log('[AmwalPos] Transaction status:', transactionStatus);
|
|
3256
|
-
}
|
|
3257
|
-
// Payment is successful if either payment link is "Paid" or transaction is "success"
|
|
3258
|
-
if (paymentLinkStatus === 'Paid' || transactionStatus === 'success') {
|
|
3259
|
-
this.isChecking = false;
|
|
3260
|
-
this.currentScreen = 'success';
|
|
3261
|
-
return;
|
|
3262
|
-
}
|
|
3263
|
-
// Payment failed
|
|
3264
|
-
else if (paymentLinkStatus === 'Failed' || paymentLinkStatus === 'Cancelled' ||
|
|
3265
|
-
transactionStatus === 'failed' || transactionStatus === 'error') {
|
|
3266
|
-
this.isChecking = false;
|
|
3267
|
-
this.handleError('Payment failed');
|
|
3268
|
-
return;
|
|
3269
|
-
}
|
|
3270
|
-
// For any other status like "Pending", "Processing", etc., continue checking
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
// Continue checking if not successful and haven't reached max attempts
|
|
3274
|
-
if (this.checkAttempts < maxAttempts) {
|
|
3275
|
-
setTimeout(() => {
|
|
3276
|
-
if (this.isChecking) {
|
|
3277
|
-
checkLoop();
|
|
3278
|
-
}
|
|
3279
|
-
}, checkInterval);
|
|
3280
|
-
}
|
|
3281
|
-
else {
|
|
3282
|
-
// Max attempts reached, return to QR screen
|
|
3283
|
-
this.isChecking = false;
|
|
3284
|
-
this.currentScreen = 'qr-code';
|
|
3285
|
-
}
|
|
3286
|
-
};
|
|
3287
|
-
// Start the first check after a short delay
|
|
3288
|
-
setTimeout(checkLoop, 2000);
|
|
3289
|
-
};
|
|
3290
|
-
/**
|
|
3291
|
-
* Perform a single status check
|
|
3292
|
-
*/
|
|
3293
|
-
this.performStatusCheck = async () => {
|
|
3294
|
-
var _a, _b, _c;
|
|
3295
|
-
const statusResponse = await this.checkPaymentStatus(this.transactionId);
|
|
3296
|
-
if (statusResponse) {
|
|
3297
|
-
// Check payment link status first
|
|
3298
|
-
const paymentLinkStatus = (_a = statusResponse.payment_link) === null || _a === void 0 ? void 0 : _a.status;
|
|
3299
|
-
// Check transaction status if available
|
|
3300
|
-
const transactionStatus = (_c = (_b = statusResponse.transactions) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.status;
|
|
3301
|
-
if (this.debug) {
|
|
3302
|
-
console.log('[AmwalPos] Payment link status:', paymentLinkStatus);
|
|
3303
|
-
console.log('[AmwalPos] Transaction status:', transactionStatus);
|
|
3304
|
-
}
|
|
3305
|
-
// Payment is successful if either payment link is "Paid" or transaction is "success"
|
|
3306
|
-
if (paymentLinkStatus === 'Paid' || transactionStatus === 'success') {
|
|
3307
|
-
this.isChecking = false;
|
|
3308
|
-
this.currentScreen = 'success';
|
|
3309
|
-
}
|
|
3310
|
-
// Payment failed
|
|
3311
|
-
else if (paymentLinkStatus === 'Failed' || paymentLinkStatus === 'Cancelled' ||
|
|
3312
|
-
transactionStatus === 'failed' || transactionStatus === 'error') {
|
|
3313
|
-
this.isChecking = false;
|
|
3314
|
-
this.handleError('Payment failed');
|
|
3315
|
-
}
|
|
3316
|
-
else {
|
|
3317
|
-
// Still unpaid/pending, start monitoring
|
|
3318
|
-
this.startPaymentMonitoring();
|
|
3319
|
-
}
|
|
3320
|
-
}
|
|
3321
|
-
else {
|
|
3322
|
-
// API call failed, start monitoring anyway
|
|
3323
|
-
this.startPaymentMonitoring();
|
|
3324
|
-
}
|
|
3325
|
-
};
|
|
3326
|
-
/**
|
|
3327
|
-
* Create payment link using Amwal API
|
|
3328
|
-
*/
|
|
3329
|
-
this.createPaymentLink = async () => {
|
|
3330
|
-
if (!this.authToken || !this.storeId) {
|
|
3331
|
-
this.handleError('Missing API configuration');
|
|
3332
|
-
return null;
|
|
3333
|
-
}
|
|
3334
|
-
const amount = parseFloat(this.amount);
|
|
3335
|
-
if (isNaN(amount)) {
|
|
3336
|
-
this.handleError('Invalid amount');
|
|
3337
|
-
return null;
|
|
3338
|
-
}
|
|
3339
|
-
const payload = {
|
|
3340
|
-
amount: amount,
|
|
3341
|
-
title: this.paymentTitle || `POS Payment - ${this.formatAmountDisplay()}`,
|
|
3342
|
-
singleUse: true,
|
|
3343
|
-
description: this.paymentDescription || `Payment for ${this.formatAmountDisplay()}`,
|
|
3344
|
-
selectedDate: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(),
|
|
3345
|
-
client_first_name: this.customerFirstName,
|
|
3346
|
-
client_last_name: this.customerLastName,
|
|
3347
|
-
client_email: this.customerEmail,
|
|
3348
|
-
client_phone_number: this.customerPhone,
|
|
3349
|
-
client_street1: this.customerStreet1,
|
|
3350
|
-
client_street2: this.customerStreet2,
|
|
3351
|
-
client_city: this.customerCity,
|
|
3352
|
-
client_state: this.customerState,
|
|
3353
|
-
client_country: this.customerCountry,
|
|
3354
|
-
client_postcode: this.customerPostcode,
|
|
3355
|
-
address_required: this.addressRequired || false,
|
|
3356
|
-
language: this.locale || 'en',
|
|
3357
|
-
sms_language: this.smsLanguage || (this.locale === 'ar' ? 'ar' : 'en'),
|
|
3358
|
-
send_sms: this.sendSms || !!this.customerPhone,
|
|
3359
|
-
passkey_enabled: this.passkeyEnabled || false,
|
|
3360
|
-
only_show_bank_installments: this.onlyShowBankInstallments || false,
|
|
3361
|
-
only_show_pay_in_full: this.onlyShowPayInFull || false,
|
|
3362
|
-
callback_url: this.callbackUrl,
|
|
3363
|
-
metadata: this.metadata ? JSON.parse(this.metadata) : {
|
|
3364
|
-
pos_transaction: true,
|
|
3365
|
-
timestamp: new Date().toISOString(),
|
|
3366
|
-
amount: amount,
|
|
3367
|
-
currency: this.currency
|
|
3368
|
-
}
|
|
3369
|
-
};
|
|
3370
|
-
try {
|
|
3371
|
-
if (this.debug) {
|
|
3372
|
-
console.log('[AmwalPos] Creating payment link with payload:', payload);
|
|
3373
|
-
}
|
|
3374
|
-
const response = await fetch(`${this.apiBaseUrl}/payment_links/${this.storeId}/create`, {
|
|
3375
|
-
method: 'POST',
|
|
3376
|
-
headers: {
|
|
3377
|
-
'Authorization': this.authToken,
|
|
3378
|
-
'Accept': 'application/json',
|
|
3379
|
-
'Content-Type': 'application/json',
|
|
3380
|
-
'Origin': window.location.origin
|
|
3381
|
-
},
|
|
3382
|
-
body: JSON.stringify(payload)
|
|
3383
|
-
});
|
|
3384
|
-
if (!response.ok) {
|
|
3385
|
-
const errorText = await response.text();
|
|
3386
|
-
throw new Error(`API Error: ${response.status} - ${errorText}`);
|
|
3387
|
-
}
|
|
3388
|
-
const data = await response.json();
|
|
3389
|
-
if (this.debug) {
|
|
3390
|
-
console.log('[AmwalPos] Payment link created:', data);
|
|
3391
|
-
}
|
|
3392
|
-
return data;
|
|
3393
|
-
}
|
|
3394
|
-
catch (error) {
|
|
3395
|
-
console.error('[AmwalPos] Error creating payment link:', error);
|
|
3396
|
-
this.handleError(error.message || 'Failed to create payment link');
|
|
3397
|
-
return null;
|
|
3398
|
-
}
|
|
3399
|
-
};
|
|
3400
|
-
/**
|
|
3401
|
-
* Check payment status
|
|
3402
|
-
*/
|
|
3403
|
-
this.checkPaymentStatus = async (paymentId) => {
|
|
3404
|
-
if (!this.authToken) {
|
|
3405
|
-
this.handleError('Missing API configuration');
|
|
3406
|
-
return null;
|
|
3407
|
-
}
|
|
3408
|
-
try {
|
|
3409
|
-
if (this.debug) {
|
|
3410
|
-
console.log('[AmwalPos] Checking payment status for:', paymentId);
|
|
3411
|
-
}
|
|
3412
|
-
const response = await fetch(`${this.apiBaseUrl}/payment_links/${paymentId}/details`, {
|
|
3413
|
-
method: 'POST',
|
|
3414
|
-
headers: {
|
|
3415
|
-
'Authorization': this.authToken,
|
|
3416
|
-
'Accept': 'application/json',
|
|
3417
|
-
'Content-Type': 'application/json',
|
|
3418
|
-
'Origin': window.location.origin
|
|
3419
|
-
},
|
|
3420
|
-
body: JSON.stringify({})
|
|
3421
|
-
});
|
|
3422
|
-
if (!response.ok) {
|
|
3423
|
-
throw new Error(`Status check failed: ${response.status}`);
|
|
3424
|
-
}
|
|
3425
|
-
const data = await response.json();
|
|
3426
|
-
if (this.debug) {
|
|
3427
|
-
console.log('[AmwalPos] Payment status response:', data);
|
|
3428
|
-
}
|
|
3429
|
-
return data;
|
|
3430
|
-
}
|
|
3431
|
-
catch (error) {
|
|
3432
|
-
console.error('[AmwalPos] Error checking payment status:', error);
|
|
3433
|
-
return null;
|
|
3434
|
-
}
|
|
3435
|
-
};
|
|
3436
|
-
/**
|
|
3437
|
-
* Handle error state
|
|
3438
|
-
*/
|
|
3439
|
-
this.handleError = (message) => {
|
|
3440
|
-
this.errorMessage = message;
|
|
3441
|
-
this.currentScreen = 'error';
|
|
3442
|
-
if (this.debug) {
|
|
3443
|
-
console.error('[AmwalPos] Error:', message);
|
|
3444
|
-
}
|
|
3445
|
-
};
|
|
3446
|
-
/**
|
|
3447
|
-
* Check if amount is valid
|
|
3448
|
-
*/
|
|
3449
|
-
this.isAmountValid = () => {
|
|
3450
|
-
const num = parseFloat(this.amount);
|
|
3451
|
-
return !isNaN(num) && num >= this.minAmount && num <= this.maxAmount;
|
|
3452
|
-
};
|
|
3453
|
-
/**
|
|
3454
|
-
* Format amount display
|
|
3455
|
-
*/
|
|
3456
|
-
this.formatAmountDisplay = () => {
|
|
3457
|
-
if (!this.amount)
|
|
3458
|
-
return '';
|
|
3459
|
-
const num = parseFloat(this.amount);
|
|
3460
|
-
if (isNaN(num))
|
|
3461
|
-
return '';
|
|
3462
|
-
return `${this.currency} ${num.toFixed(2)}`;
|
|
3463
|
-
};
|
|
3464
|
-
/**
|
|
3465
|
-
* Get order ID from metadata
|
|
3466
|
-
*/
|
|
3467
|
-
this.getOrderIdFromMetadata = () => {
|
|
3468
|
-
if (!this.metadata)
|
|
3469
|
-
return null;
|
|
3470
|
-
try {
|
|
3471
|
-
const parsedMetadata = JSON.parse(this.metadata);
|
|
3472
|
-
return parsedMetadata.order_id || null;
|
|
3473
|
-
}
|
|
3474
|
-
catch (error) {
|
|
3475
|
-
if (this.debug) {
|
|
3476
|
-
console.warn('[AmwalPos] Failed to parse metadata for order_id:', error);
|
|
3477
|
-
}
|
|
3478
|
-
return null;
|
|
3479
|
-
}
|
|
3480
|
-
};
|
|
3481
|
-
}
|
|
3482
|
-
/**
|
|
3483
|
-
* Lifecycle method that is called once when the component is first created
|
|
3484
|
-
*/
|
|
3485
|
-
async componentWillLoad() {
|
|
3486
|
-
// Initialize the translation function when component loads
|
|
3487
|
-
try {
|
|
3488
|
-
this.t = await TranslationUtils.useTranslation(this.locale);
|
|
3489
|
-
}
|
|
3490
|
-
catch (e) {
|
|
3491
|
-
console.error('Failed to initialize translation:', e);
|
|
3492
|
-
// Keep the fallback function defined above
|
|
3493
|
-
}
|
|
3494
|
-
}
|
|
3495
|
-
/**
|
|
3496
|
-
* Lifecycle method to update translations when locale changes
|
|
3497
|
-
* @param newValue
|
|
3498
|
-
*/
|
|
3499
|
-
async updateLocale(newValue) {
|
|
3500
|
-
this.locale = newValue;
|
|
3501
|
-
try {
|
|
3502
|
-
this.t = await TranslationUtils.useTranslation(this.locale);
|
|
3503
|
-
}
|
|
3504
|
-
catch (e) {
|
|
3505
|
-
console.error('Failed to update translation:', e);
|
|
3506
|
-
// Fallback to using the input string as-is
|
|
3507
|
-
this.t = (val) => val;
|
|
3508
|
-
}
|
|
3509
|
-
}
|
|
3510
|
-
/**
|
|
3511
|
-
* Render the tabby logo
|
|
3512
|
-
*/
|
|
3513
|
-
renderLogo() {
|
|
3514
|
-
return (h("div", { class: `pos-logo ${this.locale === 'ar' ? 'rtl' : 'ltr'}` }, h("svg", { class: "amwal-logo", width: "72", height: "29", viewBox: "0 0 72 29", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "72", height: "28.946", rx: "6", fill: "black" }), h("path", { d: "M24.1912 11.6545C25.5297 10.5672 27.8358 10.9347 28.8503 12.3232C28.8972 12.3845 28.9818 12.3896 29.0287 12.3334C29.0804 12.2722 29.1274 12.2109 29.179 12.1547C29.7191 11.5626 30.3861 11.241 31.1328 11.0981C31.9219 10.9449 32.7015 10.9909 33.453 11.3125C34.3641 11.7004 34.9794 12.4253 35.3598 13.3901C35.6369 14.0843 35.7684 14.8194 35.7731 15.5698C35.7825 17.1216 35.7778 18.6785 35.7872 20.2303C35.7872 20.3579 35.7543 20.3783 35.6463 20.3783C34.9512 20.3732 34.2561 20.3732 33.5657 20.3783C33.453 20.3783 33.4201 20.3528 33.4201 20.2252C33.4248 18.7551 33.4248 17.2849 33.4248 15.8148C33.4248 15.386 33.359 14.9725 33.1712 14.5897C32.5747 13.3748 31.0859 13.2522 30.3109 14.36C30.015 14.7836 29.8741 15.2686 29.8741 15.7944C29.8741 17.2747 29.8741 18.7551 29.8788 20.2354C29.8788 20.3528 29.8506 20.3783 29.7473 20.3783C29.0381 20.3732 28.3242 20.3732 27.615 20.3783C27.5211 20.3783 27.4976 20.3528 27.4976 20.2507C27.5023 18.7704 27.4976 17.29 27.5023 15.8097C27.5023 15.534 27.4788 15.2584 27.4178 14.9878C27.244 14.263 26.6804 13.7168 25.9994 13.6147C24.9521 13.4564 24.3227 14.314 24.1161 15.0644C24.0409 15.3298 24.0127 15.6004 24.0127 15.8811C24.0127 17.29 24.0127 18.704 24.0174 20.1129C24.0174 20.2609 23.9094 20.3783 23.7732 20.3783C23.1016 20.3732 22.43 20.3732 21.7536 20.3783C21.655 20.3783 21.6362 20.3477 21.6362 20.2507C21.6409 17.2798 21.6409 14.314 21.6362 11.3431C21.6362 11.2512 21.6503 11.2206 21.7443 11.2206C22.4675 11.2257 23.1908 11.2257 23.9141 11.2206C23.9892 11.2206 24.0174 11.2359 24.0127 11.3227C24.008 11.4044 24.008 11.4809 24.008 11.5626C24.008 11.6596 24.1161 11.7157 24.1912 11.6545Z", fill: "white" }), h("path", { d: "M43.8655 20.384C43.8233 20.4759 43.7012 20.4759 43.6589 20.384C43.3724 19.7357 43.0906 19.0976 42.8088 18.4595C42.527 17.8215 42.2452 17.1885 41.9634 16.5402C41.9211 16.4432 41.799 16.4432 41.7568 16.5402C41.1885 17.8266 40.6249 19.0976 40.0566 20.3942C40.0143 20.4861 39.8969 20.4912 39.8499 20.3993C38.3564 17.3314 36.8723 14.2839 35.374 11.216C35.4304 11.216 35.468 11.216 35.5055 11.216C36.2993 11.216 37.0977 11.216 37.8914 11.2109C37.9807 11.2109 38.0229 11.2467 38.0605 11.3283C38.6899 12.7117 39.3239 14.09 39.9579 15.4733C39.9767 15.509 39.9908 15.5448 40.019 15.606C40.1364 15.3406 40.2444 15.0905 40.3478 14.8454C40.4793 14.5494 40.6061 14.2482 40.7376 13.9521C40.7705 13.8807 40.7705 13.8245 40.7376 13.7479C40.39 12.9516 40.0425 12.1502 39.6996 11.3488C39.6855 11.313 39.6668 11.2773 39.6527 11.2365C39.6761 11.2007 39.709 11.216 39.7372 11.216C40.4323 11.216 41.1274 11.216 41.8225 11.2109C41.9024 11.2109 41.9399 11.2416 41.9728 11.3181C42.5881 12.7219 43.208 14.1257 43.828 15.5295C43.8327 15.5397 43.8421 15.5499 43.8609 15.5754C43.9595 15.3304 44.0581 15.1007 44.152 14.8659C44.6264 13.6867 45.1055 12.5075 45.5751 11.3283C45.6127 11.2365 45.655 11.2109 45.7442 11.2109C46.4393 11.216 47.1344 11.2109 47.8295 11.2109C46.5896 14.2788 45.2323 17.3212 43.8655 20.384Z", fill: "white" }), h("path", { d: "M59.6416 13.6148C59.6416 15.8149 59.6416 18.015 59.6463 20.2151C59.6463 20.3376 59.6275 20.3733 59.5054 20.3733C58.7962 20.3682 58.0824 20.3682 57.3732 20.3733C57.2839 20.3733 57.2651 20.3478 57.2651 20.2508C57.2698 15.8302 57.2698 11.4096 57.2651 6.99405C57.2651 6.88175 57.298 6.86133 57.3919 6.86133C58.0964 6.86643 58.8056 6.86643 59.5101 6.86133C59.6228 6.86133 59.6463 6.89196 59.6463 7.01447C59.6369 9.21457 59.6416 11.4147 59.6416 13.6148Z", fill: "white" }), h("path", { d: "M56.11 11.3788C56.11 11.3584 56.1053 11.3329 56.11 11.3125C56.1194 11.241 56.0959 11.2206 56.0255 11.2206C55.3304 11.2206 54.6306 11.2206 53.9355 11.2206C53.8228 11.2206 53.7335 11.3176 53.7335 11.4401C53.7335 11.486 53.7335 11.532 53.7335 11.5779C53.7335 11.68 53.6255 11.7362 53.5504 11.68C53.0478 11.2818 52.4842 11.0725 51.8737 11.0368C50.6244 10.9602 49.5676 11.4707 48.7316 12.4661C47.689 13.7117 47.3414 15.1869 47.6326 16.8306C47.9755 18.7397 49.3938 20.3579 51.2866 20.5621C51.9911 20.6387 52.6674 20.5161 53.292 20.1333C53.3813 20.0771 53.4611 20.0159 53.541 19.9444C53.6161 19.8781 53.7288 19.9342 53.7288 20.0414C53.7288 20.118 53.7288 20.1894 53.7241 20.266C53.7194 20.363 53.7429 20.3885 53.8322 20.3885C54.4991 20.3834 55.166 20.3834 55.8376 20.3885C55.9832 20.3885 56.1053 20.2609 56.1053 20.1027C56.1053 17.1828 56.11 14.2783 56.11 11.3788ZM53.6678 16.7438C53.3719 17.535 52.705 18.0149 51.9112 18.0098C50.6572 17.9893 49.8259 16.8663 49.9621 15.5544C50.0608 14.5743 50.6103 13.8903 51.4228 13.6606C52.5688 13.339 53.6772 14.166 53.8087 15.4472C53.8556 15.8964 53.8228 16.3303 53.6678 16.7438Z", fill: "white" }), h("path", { d: "M20.528 11.3792C20.528 11.3537 20.5233 11.3333 20.528 11.3129C20.5374 11.2414 20.5139 11.2206 20.4435 11.2206C19.7014 11.221 18.964 11.2261 18.222 11.221C18.1468 11.221 18.1421 11.2567 18.1421 11.318C18.1421 11.4048 18.1421 11.4864 18.1421 11.5783C18.1421 11.6804 18.0388 11.7366 17.959 11.6804C17.4564 11.2874 16.8928 11.0781 16.2823 11.0423C15.0846 10.9658 14.0561 11.4303 13.2388 12.3644C12.013 13.7478 11.6655 15.4221 12.1539 17.2649C12.6799 19.2506 14.3285 20.634 16.1883 20.5676C16.8365 20.5421 17.4376 20.3787 17.9543 19.9346C18.0294 19.8683 18.1421 19.9244 18.1421 20.0316C18.1421 20.1031 18.1421 20.1745 18.1374 20.246C18.1327 20.3481 18.1562 20.3885 18.2549 20.3885C18.964 20.3834 19.6685 20.3834 20.3777 20.3885C20.4951 20.3885 20.5327 20.3481 20.5327 20.2154C20.5233 17.27 20.528 14.3246 20.528 11.3792ZM18.0529 16.8208C17.7147 17.6069 17.123 17.9898 16.3809 18.0153C15.3148 18.0153 14.4834 17.1985 14.3801 16.0959C14.2862 15.1158 14.6619 14.2736 15.404 13.8499C16.5171 13.2067 17.9871 13.7988 18.222 15.4068C18.2877 15.8917 18.2455 16.3716 18.0529 16.8208Z", fill: "white" }))));
|
|
3515
|
-
}
|
|
3516
|
-
/**
|
|
3517
|
-
* Render keypad
|
|
3518
|
-
*/
|
|
3519
|
-
renderKeypad() {
|
|
3520
|
-
const keys = [
|
|
3521
|
-
['1', '2', '3'],
|
|
3522
|
-
['4', '5', '6'],
|
|
3523
|
-
['7', '8', '9'],
|
|
3524
|
-
['backspace', '0', 'done']
|
|
3525
|
-
];
|
|
3526
|
-
return (h("div", { class: "pos-keypad" }, keys.map(row => (h("div", { class: "pos-keypad-row" }, row.map(key => (h("button", { class: `pos-key ${key}`, onClick: () => {
|
|
3527
|
-
if (key === 'backspace') {
|
|
3528
|
-
this.handleBackspace();
|
|
3529
|
-
}
|
|
3530
|
-
else if (key === 'done') {
|
|
3531
|
-
this.handleContinue();
|
|
3532
|
-
}
|
|
3533
|
-
else {
|
|
3534
|
-
this.handleNumberInput(key);
|
|
3535
|
-
}
|
|
3536
|
-
} }, key === 'backspace' ? (h("svg", { width: "20", height: "16", viewBox: "0 0 20 16", fill: "none" }, h("path", { d: "M19 2L13 8L19 14M13 8L1 8", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : key === 'done' ? (this.t('DONE')) : key))))))));
|
|
3537
|
-
}
|
|
3538
|
-
/**
|
|
3539
|
-
* Render amount entry screen
|
|
3540
|
-
*/
|
|
3541
|
-
renderAmountEntry() {
|
|
3542
|
-
return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Enter order amount')), h("div", { class: "pos-amount-container" }, h("div", { class: "pos-amount-input" }, this.amount ? (h("span", { class: "amount-text" }, this.formatAmountDisplay())) : (h("span", { class: "amount-placeholder" }, this.currency, " ", h("span", { class: "cursor" }, "|"))))), h("button", { class: `pos-continue ${this.isAmountValid() ? 'active' : ''}`, onClick: this.handleContinue, disabled: !this.isAmountValid() }, this.t('Continue')), this.renderKeypad())));
|
|
3543
|
-
}
|
|
3544
|
-
/**
|
|
3545
|
-
* Render QR code screen
|
|
3546
|
-
*/
|
|
3547
|
-
renderQRCode() {
|
|
3548
|
-
return (h("div", { class: "pos-screen qr-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Ask customer to scan QR code')), h("div", { class: "qr-container" }, h("div", { class: "qr-code" }, this.qrCodeDataURL ? (h("img", { src: this.qrCodeDataURL, alt: "Payment QR Code", width: "200", height: "200", style: { border: '1px solid #eee', borderRadius: '8px' } })) : (
|
|
3549
|
-
// Fallback loading state
|
|
3550
|
-
h("div", { class: "qr-loading", style: {
|
|
3551
|
-
width: '200px',
|
|
3552
|
-
height: '200px',
|
|
3553
|
-
border: '1px solid #eee',
|
|
3554
|
-
borderRadius: '8px',
|
|
3555
|
-
display: 'flex',
|
|
3556
|
-
alignItems: 'center',
|
|
3557
|
-
justifyContent: 'center',
|
|
3558
|
-
background: '#f9f9f9'
|
|
3559
|
-
} }, h("span", null, this.t('Generating QR Code...')))))), h("div", { class: "qr-actions" }, h("button", { class: "pos-button cancel", onClick: this.handleCancel }, this.t('Cancel')), h("button", { class: "pos-button check-status", onClick: this.handleCheckStatus }, this.t('Check status'))))));
|
|
3560
|
-
}
|
|
3561
|
-
/**
|
|
3562
|
-
* Render processing screen
|
|
3563
|
-
*/
|
|
3564
|
-
renderProcessing() {
|
|
3565
|
-
return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Processing payment...')), h("div", { class: "processing-container" }, h("div", { class: "processing-spinner" }, h("div", { class: "spinner" })), h("div", { class: "processing-info" }, h("div", { class: "processing-amount" }, this.formatAmountDisplay()), h("div", { class: "processing-message" }, this.t('Please wait while we process your payment')))))));
|
|
3566
|
-
}
|
|
3567
|
-
/**
|
|
3568
|
-
* Render success screen
|
|
3569
|
-
*/
|
|
3570
|
-
renderSuccess() {
|
|
3571
|
-
return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Payment successful!')), h("div", { class: "success-container" }, h("div", { class: "success-icon" }, h("svg", { width: "80", height: "80", viewBox: "0 0 80 80", fill: "none" }, h("circle", { cx: "40", cy: "40", r: "40", fill: "#3FD28B" }), h("path", { d: "M25 40L35 50L55 30", stroke: "white", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { class: "success-info" }, h("div", { class: "success-amount" }, this.formatAmountDisplay()), h("div", { class: "success-message" }, this.t('Payment completed successfully')), this.transactionId && (h("div", { class: "transaction-id" }, this.t('Transaction ID'), ": ", this.transactionId)), this.getOrderIdFromMetadata() && (h("div", { class: "order-id" }, this.t('Order ID'), ": ", this.getOrderIdFromMetadata())))), h("button", { class: "pos-continue active", onClick: () => {
|
|
3572
|
-
this.currentScreen = 'amount-entry';
|
|
3573
|
-
this.amount = '';
|
|
3574
|
-
this.qrCodeData = '';
|
|
3575
|
-
this.transactionId = '';
|
|
3576
|
-
} }, this.t('New Transaction')))));
|
|
3577
|
-
}
|
|
3578
|
-
/**
|
|
3579
|
-
* Render error screen
|
|
3580
|
-
*/
|
|
3581
|
-
renderError() {
|
|
3582
|
-
return (h("div", { class: "pos-screen" }, this.renderLogo(), h("div", { class: "pos-content" }, h("h1", { class: "pos-title" }, this.t('Payment Error')), h("div", { class: "error-container" }, h("div", { class: "error-icon" }, h("svg", { width: "80", height: "80", viewBox: "0 0 80 80", fill: "none" }, h("circle", { cx: "40", cy: "40", r: "40", fill: "#FF4444" }), h("path", { d: "M30 30L50 50M50 30L30 50", stroke: "white", "stroke-width": "4", "stroke-linecap": "round" }))), h("div", { class: "error-info" }, h("div", { class: "error-message" }, this.errorMessage || this.t('Something went wrong')))), h("button", { class: "pos-continue active", onClick: () => {
|
|
3583
|
-
this.currentScreen = 'amount-entry';
|
|
3584
|
-
this.errorMessage = '';
|
|
3585
|
-
this.amount = '';
|
|
3586
|
-
this.qrCodeData = '';
|
|
3587
|
-
this.transactionId = '';
|
|
3588
|
-
this.paymentUrl = '';
|
|
3589
|
-
} }, this.t('Try Again')))));
|
|
3590
|
-
}
|
|
3591
|
-
/**
|
|
3592
|
-
* Render component
|
|
3593
|
-
*/
|
|
3594
|
-
render() {
|
|
3595
|
-
if (this.debug) {
|
|
3596
|
-
console.log('[AmwalPos] Debug Mode Enabled');
|
|
3597
|
-
console.log('[AmwalPos] Current Screen:', this.currentScreen);
|
|
3598
|
-
console.log('[AmwalPos] Amount:', this.amount);
|
|
3599
|
-
console.log('[AmwalPos] Currency:', this.currency);
|
|
3600
|
-
console.log('[AmwalPos] Locale:', this.locale);
|
|
3601
|
-
console.log('[AmwalPos] Transaction ID:', this.transactionId);
|
|
3602
|
-
}
|
|
3603
|
-
return (h("div", { key: '10f59205d919483081c9563ce6544441a5ab1e2d', class: "amwal-pos", dir: this.locale === 'ar' ? 'rtl' : 'ltr' }, this.currentScreen === 'amount-entry' && this.renderAmountEntry(), this.currentScreen === 'qr-code' && this.renderQRCode(), this.currentScreen === 'processing' && this.renderProcessing(), this.currentScreen === 'success' && this.renderSuccess(), this.currentScreen === 'error' && this.renderError()));
|
|
3604
|
-
}
|
|
3605
|
-
static get watchers() { return {
|
|
3606
|
-
"locale": ["updateLocale"]
|
|
3607
|
-
}; }
|
|
3608
|
-
static get style() { return amwalPosCss(); }
|
|
3609
|
-
}, [256, "amwal-pos", {
|
|
3610
|
-
"amount": [1025],
|
|
3611
|
-
"currency": [1],
|
|
3612
|
-
"locale": [1],
|
|
3613
|
-
"debug": [4],
|
|
3614
|
-
"minAmount": [2, "min-amount"],
|
|
3615
|
-
"maxAmount": [2, "max-amount"],
|
|
3616
|
-
"authToken": [1, "auth-token"],
|
|
3617
|
-
"storeId": [1, "store-id"],
|
|
3618
|
-
"apiBaseUrl": [1, "api-base-url"],
|
|
3619
|
-
"paymentTitle": [1, "payment-title"],
|
|
3620
|
-
"paymentDescription": [1, "payment-description"],
|
|
3621
|
-
"customerFirstName": [1, "customer-first-name"],
|
|
3622
|
-
"customerLastName": [1, "customer-last-name"],
|
|
3623
|
-
"customerEmail": [1, "customer-email"],
|
|
3624
|
-
"customerPhone": [1, "customer-phone"],
|
|
3625
|
-
"customerStreet1": [1, "customer-street-1"],
|
|
3626
|
-
"customerStreet2": [1, "customer-street-2"],
|
|
3627
|
-
"customerCity": [1, "customer-city"],
|
|
3628
|
-
"customerState": [1, "customer-state"],
|
|
3629
|
-
"customerCountry": [1, "customer-country"],
|
|
3630
|
-
"customerPostcode": [1, "customer-postcode"],
|
|
3631
|
-
"addressRequired": [4, "address-required"],
|
|
3632
|
-
"smsLanguage": [1, "sms-language"],
|
|
3633
|
-
"sendSms": [4, "send-sms"],
|
|
3634
|
-
"passkeyEnabled": [4, "passkey-enabled"],
|
|
3635
|
-
"onlyShowBankInstallments": [4, "only-show-bank-installments"],
|
|
3636
|
-
"onlyShowPayInFull": [4, "only-show-pay-in-full"],
|
|
3637
|
-
"callbackUrl": [1, "callback-url"],
|
|
3638
|
-
"metadata": [1],
|
|
3639
|
-
"currentScreen": [32],
|
|
3640
|
-
"qrCodeData": [32],
|
|
3641
|
-
"qrCodeDataURL": [32],
|
|
3642
|
-
"transactionId": [32],
|
|
3643
|
-
"errorMessage": [32],
|
|
3644
|
-
"paymentUrl": [32],
|
|
3645
|
-
"isChecking": [32],
|
|
3646
|
-
"checkAttempts": [32]
|
|
3647
|
-
}, undefined, {
|
|
3648
|
-
"locale": ["updateLocale"]
|
|
3649
|
-
}]);
|
|
3650
|
-
function defineCustomElement$1() {
|
|
3651
|
-
if (typeof customElements === "undefined") {
|
|
3652
|
-
return;
|
|
3653
|
-
}
|
|
3654
|
-
const components = ["amwal-pos"];
|
|
3655
|
-
components.forEach(tagName => { switch (tagName) {
|
|
3656
|
-
case "amwal-pos":
|
|
3657
|
-
if (!customElements.get(transformTag(tagName))) {
|
|
3658
|
-
customElements.define(transformTag(tagName), AmwalPos$1);
|
|
3659
|
-
}
|
|
3660
|
-
break;
|
|
3661
|
-
} });
|
|
3662
|
-
}
|
|
3663
|
-
|
|
3664
|
-
const AmwalPos = AmwalPos$1;
|
|
3665
|
-
const defineCustomElement = defineCustomElement$1;
|
|
3666
|
-
|
|
3667
|
-
export { AmwalPos, defineCustomElement };
|
|
3668
|
-
//# sourceMappingURL=amwal-pos.js.map
|
|
3669
|
-
|
|
3670
|
-
//# sourceMappingURL=amwal-pos.js.map
|
|
1
|
+
import{p as t,H as n,h as e,t as r}from"./p-BnQDByf2.js";import{T as o}from"./p-C03M5ZSM.js";var i,s,a={};function c(){return s?i:(s=1,i=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var l,u={},h={};function f(){if(l)return h;let t;l=1;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return h.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},h.getSymbolTotalCodewords=function(t){return n[t]},h.getBCHDigit=function(t){let n=0;for(;0!==t;)n++,t>>>=1;return n},h.setToSJISFunction=function(n){if("function"!=typeof n)throw Error('"toSJISFunc" is not a valid function.');t=n},h.isKanjiModeEnabled=function(){return void 0!==t},h.toSJIS=function(n){return t(n)},h}var d,p,m,g,x,y={};function w(){return d||(d=1,function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(n,e){if(t.isValid(n))return n;try{return function(n){if("string"!=typeof n)throw Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+n)}}(n)}catch(t){return e}}}(y)),y}var v,C,b,k,E={},A={},P={},F={};function M(){if(k)return F;k=1;const t=w(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],e=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return F.getBlocksCount=function(e,r){switch(r){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},F.getTotalCodewordsCount=function(n,r){switch(r){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},F}var _,I,T,R,B={},N={};var S,q={},z={},U={};function j(){return S||(S=1,U.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),U}var L,D,$,O={};function Q(){if(L)return O;L=1;const t="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const e="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";O.KANJI=RegExp(n,"g"),O.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),O.BYTE=RegExp(e,"g"),O.NUMERIC=RegExp(t,"g"),O.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");const r=RegExp("^"+n+"$"),o=RegExp("^"+t+"$"),i=RegExp("^[A-Z0-9 $%*+\\-./:]+$");return O.testKanji=function(t){return r.test(t)},O.testNumeric=function(t){return o.test(t)},O.testAlphanumeric=function(t){return i.test(t)},O}function Z(){return D||(D=1,function(t){const n=j(),e=Q();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!n.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(n){return e.testNumeric(n)?t.NUMERIC:e.testAlphanumeric(n)?t.ALPHANUMERIC:e.testKanji(n)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(n,e){if(t.isValid(n))return n;try{return function(n){if("string"!=typeof n)throw Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+n)}}(n)}catch(t){return e}}}(z)),z}var Y,J,H,K,G,W,V,X,tt,nt,et,rt,ot={},it={},st={exports:{}};function at(){return nt||(nt=1,function(t){var n={single_source_shortest_paths:function(t,e,r){var o={},i={};i[e]=0;var s,a,c,l,u,h,f=n.PriorityQueue.make();for(f.push(e,0);!f.empty();)for(c in l=(s=f.pop()).cost,u=t[a=s.value]||{})u.hasOwnProperty(c)&&(h=l+u[c],(void 0===i[c]||i[c]>h)&&(i[c]=h,f.push(c,h),o[c]=a));if(void 0!==r&&void 0===i[r])throw Error("Could not find a path from "+e+" to "+r+".");return o},extract_shortest_path_from_predecessor_list:function(t,n){for(var e=[],r=n;r;)e.push(r),r=t[r];return e.reverse(),e},find_path:function(t,e,r){var o=n.single_source_shortest_paths(t,e,r);return n.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var e,r=n.PriorityQueue,o={};for(e in t=t||{},r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){this.queue.push({value:t,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n}(st)),st.exports}function ct(){if(rt)return u;rt=1;const t=f(),n=w(),e=function(){if(m)return p;function t(){this.buffer=[],this.length=0}return m=1,t.prototype={get:function(t){return 1==(this.buffer[Math.floor(t/8)]>>>7-t%8&1)},put:function(t,n){for(let e=0;e<n;e++)this.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},p=t}(),r=function(){if(x)return g;function t(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return x=1,t.prototype.set=function(t,n,e,r){const o=t*this.size+n;this.data[o]=e,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(t,n){return this.data[t*this.size+n]},t.prototype.xor=function(t,n,e){this.data[t*this.size+n]^=e},t.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},g=t}(),o=(v||(v=1,function(t){const n=f().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7];for(let t=1;t<e-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},t.getPositions=function(n){const e=[],r=t.getRowColCoords(n),o=r.length;for(let t=0;t<o;t++)for(let n=0;n<o;n++)0===t&&0===n||0===t&&n===o-1||t===o-1&&0===n||e.push([r[t],r[n]]);return e}}(E)),E),i=function(){if(C)return A;C=1;const t=f().getSymbolSize;return A.getPositions=function(n){const e=t(n);return[[0,0],[e-7,0],[0,e-7]]},A}(),s=(b||(b=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(n,e,r){switch(n){case t.Patterns.PATTERN000:return(e+r)%2==0;case t.Patterns.PATTERN001:return e%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(e+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return e*r%2+e*r%3==0;case t.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case t.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw Error("bad maskPattern:"+n)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let e=0,r=0,o=0,i=null,s=null;for(let a=0;a<n;a++){r=o=0,i=s=null;for(let c=0;c<n;c++){let n=t.get(a,c);n===i?r++:(r>=5&&(e+=r-5+3),i=n,r=1),n=t.get(c,a),n===s?o++:(o>=5&&(e+=o-5+3),s=n,o=1)}r>=5&&(e+=r-5+3),o>=5&&(e+=o-5+3)}return e},t.getPenaltyN2=function(t){const n=t.size;let e=0;for(let r=0;r<n-1;r++)for(let o=0;o<n-1;o++){const n=t.get(r,o)+t.get(r,o+1)+t.get(r+1,o)+t.get(r+1,o+1);4!==n&&0!==n||e++}return 3*e},t.getPenaltyN3=function(t){const n=t.size;let e=0,r=0,o=0;for(let i=0;i<n;i++){r=o=0;for(let s=0;s<n;s++)r=r<<1&2047|t.get(i,s),s>=10&&(1488===r||93===r)&&e++,o=o<<1&2047|t.get(s,i),s>=10&&(1488===o||93===o)&&e++}return 40*e},t.getPenaltyN4=function(t){let n=0;const e=t.data.length;for(let r=0;r<e;r++)n+=t.data[r];return 10*Math.abs(Math.ceil(100*n/e/5)-10)},t.applyMask=function(t,e){const r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,n(t,i,o))},t.getBestMask=function(n,e){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){e(s),t.applyMask(s,n);const r=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(s,n),r<i&&(i=r,o=s)}return o}}(P)),P),a=M(),c=function(){if(R)return T;R=1;const t=(I||(I=1,function(t){const n=function(){if(_)return N;_=1;const t=new Uint8Array(512),n=new Uint8Array(256);return function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,256&e&&(e^=285);for(let n=255;n<512;n++)t[n]=t[n-255]}(),N.log=function(t){if(t<1)throw Error("log("+t+")");return n[t]},N.exp=function(n){return t[n]},N.mul=function(e,r){return 0===e||0===r?0:t[n[e]+n[r]]},N}();t.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=n.mul(t[o],e[i]);return r},t.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){const t=r[0];for(let o=0;o<e.length;o++)r[o]^=n.mul(e[o],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let o=0;o<e;o++)r=t.mul(r,new Uint8Array([1,n.exp(o)]));return r}}(B)),B);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const r=t.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r},T=n}(),l=($||($=1,function(t){const n=f(),e=M(),r=w(),o=Z(),i=j(),s=n.getBCHDigit(7973);function a(t,n){return o.getCharCountIndicator(t,n)+4}function c(t,n){let e=0;return t.forEach((function(t){const r=a(t.mode,n);e+=r+t.getBitsLength()})),e}t.from=function(t,n){return i.isValid(t)?parseInt(t,10):n},t.getCapacity=function(t,r,s){if(!i.isValid(t))throw Error("Invalid QR Code version");void 0===s&&(s=o.BYTE);const c=8*(n.getSymbolTotalCodewords(t)-e.getTotalCodewordsCount(t,r));if(s===o.MIXED)return c;const l=c-a(s,t);switch(s){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);default:return Math.floor(l/8)}},t.getBestVersionForData=function(n,e){let i;const s=r.from(e,r.M);if(Array.isArray(n)){if(n.length>1)return function(n,e){for(let r=1;r<=40;r++)if(c(n,r)<=t.getCapacity(r,e,o.MIXED))return r}(n,s);if(0===n.length)return 1;i=n[0]}else i=n;return function(n,e,r){for(let o=1;o<=40;o++)if(e<=t.getCapacity(o,r,n))return o}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-s>=0;)e^=7973<<n.getBCHDigit(e)-s;return t<<12|e}}(q)),q),h=function(){if(Y)return ot;Y=1;const t=f(),n=t.getBCHDigit(1335);return ot.getEncodedBits=function(e,r){const o=e.bit<<3|r;let i=o<<10;for(;t.getBCHDigit(i)-n>=0;)i^=1335<<t.getBCHDigit(i)-n;return 21522^(o<<10|i)},ot}(),d=Z(),y=(et||(et=1,function(t){const n=Z(),e=function(){if(H)return J;H=1;const t=Z();function n(n){this.mode=t.NUMERIC,this.data=""+n}return n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,e,r;for(n=0;n+3<=this.data.length;n+=3)e=this.data.substr(n,3),r=parseInt(e,10),t.put(r,10);const o=this.data.length-n;o>0&&(e=this.data.substr(n),r=parseInt(e,10),t.put(r,3*o+1))},J=n}(),r=function(){if(G)return K;G=1;const t=Z(),n=["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"," ","$","%","*","+","-",".","/",":"];function e(n){this.mode=t.ALPHANUMERIC,this.data=n}return e.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*n.indexOf(this.data[e]);r+=n.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(n.indexOf(this.data[e]),6)},K=e}(),o=function(){if(V)return W;V=1;const t=Z();function n(n){this.mode=t.BYTE,this.data="string"==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}return n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,e=this.data.length;n<e;n++)t.put(this.data[n],8)},W=n}(),i=function(){if(tt)return X;tt=1;const t=Z(),n=f();function e(n){this.mode=t.KANJI,this.data=n}return e.getBitsLength=function(t){return 13*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=n.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},X=e}(),s=Q(),a=f(),c=at();function l(t){return unescape(encodeURIComponent(t)).length}function u(t,n,e){const r=[];let o;for(;null!==(o=t.exec(e));)r.push({data:o[0],index:o.index,mode:n,length:o[0].length});return r}function h(t){const e=u(s.NUMERIC,n.NUMERIC,t),r=u(s.ALPHANUMERIC,n.ALPHANUMERIC,t);let o,i;return a.isKanjiModeEnabled()?(o=u(s.BYTE,n.BYTE,t),i=u(s.KANJI,n.KANJI,t)):(o=u(s.BYTE_KANJI,n.BYTE,t),i=[]),e.concat(r,o,i).sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,s){switch(s){case n.NUMERIC:return e.getBitsLength(t);case n.ALPHANUMERIC:return r.getBitsLength(t);case n.KANJI:return i.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function p(t,s){let c;const l=n.getBestModeForData(t);if(c=n.from(s,l),c!==n.BYTE&&c.bit<l.bit)throw Error('"'+t+'" cannot be encoded with mode '+n.toString(c)+".\n Suggested mode is: "+n.toString(l));switch(c!==n.KANJI||a.isKanjiModeEnabled()||(c=n.BYTE),c){case n.NUMERIC:return new e(t);case n.ALPHANUMERIC:return new r(t);case n.KANJI:return new i(t);case n.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce((function(t,n){return"string"==typeof n?t.push(p(n,null)):n.data&&t.push(p(n.data,n.mode)),t}),[])},t.fromString=function(e,r){const o=function(t,e){const r={},o={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],c=[];for(let t=0;t<a.length;t++){const l=a[t],u=""+s+t;c.push(u),r[u]={node:l,lastCount:0},o[u]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===l.mode?(o[s][u]=d(r[s].lastCount+l.length,l.mode)-d(r[s].lastCount,l.mode),r[s].lastCount+=l.length):(r[s]&&(r[s].lastCount=l.length),o[s][u]=d(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,e))}}i=c}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:r}}(function(t){const e=[];for(let r=0;r<t.length;r++){const o=t[r];switch(o.mode){case n.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:l(o.data)}]);break;case n.BYTE:e.push([{data:o.data,mode:n.BYTE,length:l(o.data)}])}}return e}(h(e,a.isKanjiModeEnabled())),r),i=c.find_path(o.map,"start","end"),s=[];for(let t=1;t<i.length-1;t++)s.push(o.table[i[t]].node);return t.fromArray(function(t){return t.reduce((function(t,n){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)}),[])}(s))},t.rawSplit=function(n){return t.fromArray(h(n,a.isKanjiModeEnabled()))}}(it)),it);function k(t,n,e){const r=t.size,o=h.getEncodedBits(n,e);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),t.set(i<6?i:i<8?i+1:r-15+i,8,s,!0),t.set(8,i<8?r-i-1:i<9?15-i-1+1:15-i-1,s,!0);t.set(r-8,8,1,!0)}function F(n,u,h,f){let p;if(Array.isArray(n))p=y.fromArray(n);else{if("string"!=typeof n)throw Error("Invalid data");{let t=u;if(!t){const e=y.rawSplit(n);t=l.getBestVersionForData(e,h)}p=y.fromString(n,t||40)}}const m=l.getBestVersionForData(p,h);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(u){if(u<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else u=m;const g=function(n,r,o){const i=new e;o.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),d.getCharCountIndicator(t.mode,n)),t.write(i)}));const s=8*(t.getSymbolTotalCodewords(n)-a.getTotalCodewordsCount(n,r));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(s-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return function(n,e,r){const o=t.getSymbolTotalCodewords(e),i=o-a.getTotalCodewordsCount(e,r),s=a.getBlocksCount(e,r),l=s-o%s,u=Math.floor(o/s),h=Math.floor(i/s),f=h+1,d=u-h,p=new c(d);let m=0;const g=Array(s),x=Array(s);let y=0;const w=new Uint8Array(n.buffer);for(let t=0;t<s;t++){const n=t<l?h:f;g[t]=w.slice(m,m+n),x[t]=p.encode(g[t]),m+=n,y=Math.max(y,n)}const v=new Uint8Array(o);let C,b,k=0;for(C=0;C<y;C++)for(b=0;b<s;b++)C<g[b].length&&(v[k++]=g[b][C]);for(C=0;C<d;C++)for(b=0;b<s;b++)v[k++]=x[b][C];return v}(i,n,r)}(u,h,p),x=t.getSymbolSize(u),w=new r(x);return function(t,n){const e=t.size,r=i.getPositions(n);for(let n=0;n<r.length;n++){const o=r[n][0],i=r[n][1];for(let n=-1;n<=7;n++)if(!(o+n<=-1||e<=o+n))for(let r=-1;r<=7;r++)i+r<=-1||e<=i+r||t.set(o+n,i+r,n>=0&&n<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===n||6===n)||n>=2&&n<=4&&r>=2&&r<=4,!0)}}(w,u),function(t){const n=t.size;for(let e=8;e<n-8;e++){const n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}(w),function(t,n){const e=o.getPositions(n);for(let n=0;n<e.length;n++){const r=e[n][0],o=e[n][1];for(let n=-2;n<=2;n++)for(let e=-2;e<=2;e++)t.set(r+n,o+e,-2===n||2===n||-2===e||2===e||0===n&&0===e,!0)}}(w,u),k(w,h,0),u>=7&&function(t,n){const e=t.size,r=l.getEncodedBits(n);let o,i,s;for(let n=0;n<18;n++)o=Math.floor(n/3),i=n%3+e-8-3,s=1==(r>>n&1),t.set(o,i,s,!0),t.set(i,o,s,!0)}(w,u),function(t,n){const e=t.size;let r=-1,o=e-1,i=7,s=0;for(let a=e-1;a>0;a-=2)for(6===a&&a--;;){for(let e=0;e<2;e++)if(!t.isReserved(o,a-e)){let r=!1;s<n.length&&(r=1==(n[s]>>>i&1)),t.set(o,a-e,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}(w,g),isNaN(f)&&(f=s.getBestMask(w,k.bind(null,w,h))),s.applyMask(f,w),k(w,h,f),{modules:w,version:u,errorCorrectionLevel:h,maskPattern:f,segments:p}}return u.create=function(e,r){if(void 0===e||""===e)throw Error("No input text");let o,i,a=n.M;return void 0!==r&&(a=n.from(r.errorCorrectionLevel,n.M),o=l.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),F(e,o,a,i)},u}var lt,ut,ht={},ft={};function dt(){return lt||(lt=1,function(t){function n(t){if("number"==typeof t&&(t=""+t),"string"!=typeof t)throw Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw Error("Invalid hex color: "+t);3!==n.length&&4!==n.length||(n=Array.prototype.concat.apply([],n.map((function(t){return[t,t]})))),6===n.length&&n.push("F","F");const e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+n.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},t.getImageWidth=function(n,e){const r=t.getScale(n,e);return Math.floor((n+2*e.margin)*r)},t.qrToImageData=function(n,e,r){const o=e.modules.size,i=e.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let e=0;e<a;e++){let u=4*(t*a+e),h=r.color.light;t>=c&&e>=c&&t<a-c&&e<a-c&&(h=l[i[Math.floor((t-c)/s)*o+Math.floor((e-c)/s)]?1:0]),n[u++]=h.r,n[u++]=h.g,n[u++]=h.b,n[u]=h.a}}}(ft)),ft}var pt,mt,gt={};var xt=function(){if(mt)return a;mt=1;const t=c(),n=ct(),e=(ut||(ut=1,function(t){const n=dt();t.render=function(t,e,r){let o=r,i=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(i=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),o=n.getOptions(o);const s=n.getImageWidth(t.modules.size,o),a=i.getContext("2d"),c=a.createImageData(s,s);return n.qrToImageData(c.data,t,o),function(t,n,e){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=e,n.width=e,n.style.height=e+"px",n.style.width=e+"px"}(a,i,s),a.putImageData(c,0,0),i},t.renderToDataURL=function(n,e,r){let o=r;return void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={}),t.render(n,e,o).toDataURL(o.type||"image/png",(o.rendererOpts||{}).quality)}}(ht)),ht),r=function(){if(pt)return gt;pt=1;const t=dt();function n(t,n){const e=t.a/255,r=n+'="'+t.hex+'"';return e<1?r+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function e(t,n,e){let r=t+n;return void 0!==e&&(r+=" "+e),r}return gt.render=function(r,o,i){const s=t.getOptions(o),a=r.modules.size,c=r.modules.data,l=a+2*s.margin,u=s.color.light.a?"<path "+n(s.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",h="<path "+n(s.color.dark,"stroke")+' d="'+function(t,n,r){let o="",i=0,s=!1,a=0;for(let c=0;c<t.length;c++){const l=Math.floor(c%n);l||s||(s=!0),t[c]?(a++,c>0&&l>0&&t[c-1]||(o+=s?e("M",l+r,.5+Math.floor(c/n)+r):e("m",i,0),i=0,s=!1),l+1<n&&t[c+1]||(o+=e("h",a),a=0)):i++}return o}(c,a,s.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof i&&i(null,f),f},gt}();function o(e,r,o,i,s){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!t())throw Error("Callback required as last argument");if(!l){if(c<1)throw Error("Too few arguments provided");return 1===c?(o=r,r=i=void 0):2!==c||r.getContext||(i=o,o=r,r=void 0),new Promise((function(t,s){try{const s=n.create(o,i);t(e(s,r,i))}catch(t){s(t)}}))}if(c<2)throw Error("Too few arguments provided");2===c?(s=o,o=r,r=i=void 0):3===c&&(r.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=o,o=r,r=void 0));try{const t=n.create(o,i);s(null,e(t,r,i))}catch(t){s(t)}}return a.create=n.create,a.toCanvas=o.bind(null,e.render),a.toDataURL=o.bind(null,e.renderToDataURL),a.toString=o.bind(null,(function(t,n,e){return r.render(t,e)})),a}();const yt=t(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.amount="",this.locale="en",this.debug=!1,this.minAmount=1,this.maxAmount=999999,this.authToken="",this.storeId="",this.apiBaseUrl="https://backend.sa.amwal.tech",this.addressRequired=!1,this.sendSms=!1,this.passkeyEnabled=!1,this.onlyShowBankInstallments=!1,this.onlyShowPayInFull=!1,this.currentScreen="amount-entry",this.qrCodeData="",this.qrCodeDataURL="",this.transactionId="",this.errorMessage="",this.paymentUrl="",this.isChecking=!1,this.checkAttempts=0,this.t=t=>t,this.handleNumberInput=t=>{"."===t&&this.amount.includes(".")||this.amount.includes(".")&&this.amount.split(".")[1].length>=2||(this.amount=this.amount+t)},this.handleBackspace=()=>{this.amount=this.amount.slice(0,-1)},this.handleContinue=async()=>{const t=parseFloat(this.amount);t>=this.minAmount&&t<=this.maxAmount&&(this.currentScreen="processing",await this.createTransaction())},this.createTransaction=async()=>{const t=await this.createPaymentLink();t&&(console.log(t),this.transactionId=t.payment_link_id||t.id,this.paymentUrl="https://pay.sa.amwal.tech/payment-link/"+(t.payment_link_id||t.id),this.qrCodeData=t.qr_code||this.paymentUrl,await this.generateQRCode(this.qrCodeData),this.currentScreen="qr-code")},this.generateQRCode=async t=>{try{const n=await xt.toDataURL(t,{width:200,margin:2,color:{dark:"#000000",light:"#FFFFFF"},errorCorrectionLevel:"M"});this.qrCodeDataURL=n,this.debug&&console.log("[AmwalPos] QR code generated for:",t)}catch(t){console.error("[AmwalPos] Error generating QR code:",t),this.handleError("Failed to generate QR code")}},this.handleCancel=()=>{this.currentScreen="amount-entry",this.qrCodeData="",this.transactionId=""},this.handleCheckStatus=async()=>{if(!this.transactionId)return this.isChecking=!0,this.checkAttempts=0,this.currentScreen="processing",void this.startPaymentMonitoring();this.isChecking=!0,this.checkAttempts=0,this.currentScreen="processing",await this.performStatusCheck()},this.startPaymentMonitoring=async()=>{const t=async()=>{var n,e,r;if(this.isChecking){if(this.checkAttempts++,this.debug&&console.log(`[AmwalPos] Payment check attempt ${this.checkAttempts}/5`),this.transactionId){const t=await this.checkPaymentStatus(this.transactionId);if(t){const o=null===(n=t.payment_link)||void 0===n?void 0:n.status,i=null===(r=null===(e=t.transactions)||void 0===e?void 0:e[0])||void 0===r?void 0:r.status;if(this.debug&&(console.log("[AmwalPos] Payment link status:",o),console.log("[AmwalPos] Transaction status:",i)),"Paid"===o||"success"===i)return this.isChecking=!1,void(this.currentScreen="success");if("Failed"===o||"Cancelled"===o||"failed"===i||"error"===i)return this.isChecking=!1,void this.handleError("Payment failed")}}this.checkAttempts<5?setTimeout((()=>{this.isChecking&&t()}),1e4):(this.isChecking=!1,this.currentScreen="qr-code")}};setTimeout(t,2e3)},this.performStatusCheck=async()=>{var t,n,e;const r=await this.checkPaymentStatus(this.transactionId);if(r){const o=null===(t=r.payment_link)||void 0===t?void 0:t.status,i=null===(e=null===(n=r.transactions)||void 0===n?void 0:n[0])||void 0===e?void 0:e.status;this.debug&&(console.log("[AmwalPos] Payment link status:",o),console.log("[AmwalPos] Transaction status:",i)),"Paid"===o||"success"===i?(this.isChecking=!1,this.currentScreen="success"):"Failed"===o||"Cancelled"===o||"failed"===i||"error"===i?(this.isChecking=!1,this.handleError("Payment failed")):this.startPaymentMonitoring()}else this.startPaymentMonitoring()},this.createPaymentLink=async()=>{if(!this.authToken||!this.storeId)return this.handleError("Missing API configuration"),null;const t=parseFloat(this.amount);if(isNaN(t))return this.handleError("Invalid amount"),null;const n={amount:t,title:this.paymentTitle||"POS Payment - "+this.formatAmountDisplay(),singleUse:!0,description:this.paymentDescription||"Payment for "+this.formatAmountDisplay(),selectedDate:new Date(Date.now()+864e5).toISOString(),client_first_name:this.customerFirstName,client_last_name:this.customerLastName,client_email:this.customerEmail,client_phone_number:this.customerPhone,client_street1:this.customerStreet1,client_street2:this.customerStreet2,client_city:this.customerCity,client_state:this.customerState,client_country:this.customerCountry,client_postcode:this.customerPostcode,address_required:this.addressRequired||!1,language:this.locale||"en",sms_language:this.smsLanguage||("ar"===this.locale?"ar":"en"),send_sms:this.sendSms||!!this.customerPhone,passkey_enabled:this.passkeyEnabled||!1,only_show_bank_installments:this.onlyShowBankInstallments||!1,only_show_pay_in_full:this.onlyShowPayInFull||!1,callback_url:this.callbackUrl,metadata:this.metadata?JSON.parse(this.metadata):{pos_transaction:!0,timestamp:(new Date).toISOString(),amount:t,currency:this.currency}};try{this.debug&&console.log("[AmwalPos] Creating payment link with payload:",n);const t=await fetch(`${this.apiBaseUrl}/payment_links/${this.storeId}/create`,{method:"POST",headers:{Authorization:this.authToken,Accept:"application/json","Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify(n)});if(!t.ok){const n=await t.text();throw Error(`API Error: ${t.status} - ${n}`)}const e=await t.json();return this.debug&&console.log("[AmwalPos] Payment link created:",e),e}catch(t){return console.error("[AmwalPos] Error creating payment link:",t),this.handleError(t.message||"Failed to create payment link"),null}},this.checkPaymentStatus=async t=>{if(!this.authToken)return this.handleError("Missing API configuration"),null;try{this.debug&&console.log("[AmwalPos] Checking payment status for:",t);const n=await fetch(`${this.apiBaseUrl}/payment_links/${t}/details`,{method:"POST",headers:{Authorization:this.authToken,Accept:"application/json","Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({})});if(!n.ok)throw Error("Status check failed: "+n.status);const e=await n.json();return this.debug&&console.log("[AmwalPos] Payment status response:",e),e}catch(t){return console.error("[AmwalPos] Error checking payment status:",t),null}},this.handleError=t=>{this.errorMessage=t,this.currentScreen="error",this.debug&&console.error("[AmwalPos] Error:",t)},this.isAmountValid=()=>{const t=parseFloat(this.amount);return!isNaN(t)&&t>=this.minAmount&&t<=this.maxAmount},this.formatAmountDisplay=()=>{if(!this.amount)return"";const t=parseFloat(this.amount);return isNaN(t)?"":`${this.currency} ${t.toFixed(2)}`},this.getOrderIdFromMetadata=()=>{if(!this.metadata)return null;try{return JSON.parse(this.metadata).order_id||null}catch(t){return this.debug&&console.warn("[AmwalPos] Failed to parse metadata for order_id:",t),null}}}async componentWillLoad(){try{this.t=await o.useTranslation(this.locale)}catch(t){console.error("Failed to initialize translation:",t)}}async updateLocale(t){this.locale=t;try{this.t=await o.useTranslation(this.locale)}catch(t){console.error("Failed to update translation:",t),this.t=t=>t}}renderLogo(){return e("div",{class:"pos-logo "+("ar"===this.locale?"rtl":"ltr")},e("svg",{class:"amwal-logo",width:"72",height:"29",viewBox:"0 0 72 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{width:"72",height:"28.946",rx:"6",fill:"black"}),e("path",{d:"M24.1912 11.6545C25.5297 10.5672 27.8358 10.9347 28.8503 12.3232C28.8972 12.3845 28.9818 12.3896 29.0287 12.3334C29.0804 12.2722 29.1274 12.2109 29.179 12.1547C29.7191 11.5626 30.3861 11.241 31.1328 11.0981C31.9219 10.9449 32.7015 10.9909 33.453 11.3125C34.3641 11.7004 34.9794 12.4253 35.3598 13.3901C35.6369 14.0843 35.7684 14.8194 35.7731 15.5698C35.7825 17.1216 35.7778 18.6785 35.7872 20.2303C35.7872 20.3579 35.7543 20.3783 35.6463 20.3783C34.9512 20.3732 34.2561 20.3732 33.5657 20.3783C33.453 20.3783 33.4201 20.3528 33.4201 20.2252C33.4248 18.7551 33.4248 17.2849 33.4248 15.8148C33.4248 15.386 33.359 14.9725 33.1712 14.5897C32.5747 13.3748 31.0859 13.2522 30.3109 14.36C30.015 14.7836 29.8741 15.2686 29.8741 15.7944C29.8741 17.2747 29.8741 18.7551 29.8788 20.2354C29.8788 20.3528 29.8506 20.3783 29.7473 20.3783C29.0381 20.3732 28.3242 20.3732 27.615 20.3783C27.5211 20.3783 27.4976 20.3528 27.4976 20.2507C27.5023 18.7704 27.4976 17.29 27.5023 15.8097C27.5023 15.534 27.4788 15.2584 27.4178 14.9878C27.244 14.263 26.6804 13.7168 25.9994 13.6147C24.9521 13.4564 24.3227 14.314 24.1161 15.0644C24.0409 15.3298 24.0127 15.6004 24.0127 15.8811C24.0127 17.29 24.0127 18.704 24.0174 20.1129C24.0174 20.2609 23.9094 20.3783 23.7732 20.3783C23.1016 20.3732 22.43 20.3732 21.7536 20.3783C21.655 20.3783 21.6362 20.3477 21.6362 20.2507C21.6409 17.2798 21.6409 14.314 21.6362 11.3431C21.6362 11.2512 21.6503 11.2206 21.7443 11.2206C22.4675 11.2257 23.1908 11.2257 23.9141 11.2206C23.9892 11.2206 24.0174 11.2359 24.0127 11.3227C24.008 11.4044 24.008 11.4809 24.008 11.5626C24.008 11.6596 24.1161 11.7157 24.1912 11.6545Z",fill:"white"}),e("path",{d:"M43.8655 20.384C43.8233 20.4759 43.7012 20.4759 43.6589 20.384C43.3724 19.7357 43.0906 19.0976 42.8088 18.4595C42.527 17.8215 42.2452 17.1885 41.9634 16.5402C41.9211 16.4432 41.799 16.4432 41.7568 16.5402C41.1885 17.8266 40.6249 19.0976 40.0566 20.3942C40.0143 20.4861 39.8969 20.4912 39.8499 20.3993C38.3564 17.3314 36.8723 14.2839 35.374 11.216C35.4304 11.216 35.468 11.216 35.5055 11.216C36.2993 11.216 37.0977 11.216 37.8914 11.2109C37.9807 11.2109 38.0229 11.2467 38.0605 11.3283C38.6899 12.7117 39.3239 14.09 39.9579 15.4733C39.9767 15.509 39.9908 15.5448 40.019 15.606C40.1364 15.3406 40.2444 15.0905 40.3478 14.8454C40.4793 14.5494 40.6061 14.2482 40.7376 13.9521C40.7705 13.8807 40.7705 13.8245 40.7376 13.7479C40.39 12.9516 40.0425 12.1502 39.6996 11.3488C39.6855 11.313 39.6668 11.2773 39.6527 11.2365C39.6761 11.2007 39.709 11.216 39.7372 11.216C40.4323 11.216 41.1274 11.216 41.8225 11.2109C41.9024 11.2109 41.9399 11.2416 41.9728 11.3181C42.5881 12.7219 43.208 14.1257 43.828 15.5295C43.8327 15.5397 43.8421 15.5499 43.8609 15.5754C43.9595 15.3304 44.0581 15.1007 44.152 14.8659C44.6264 13.6867 45.1055 12.5075 45.5751 11.3283C45.6127 11.2365 45.655 11.2109 45.7442 11.2109C46.4393 11.216 47.1344 11.2109 47.8295 11.2109C46.5896 14.2788 45.2323 17.3212 43.8655 20.384Z",fill:"white"}),e("path",{d:"M59.6416 13.6148C59.6416 15.8149 59.6416 18.015 59.6463 20.2151C59.6463 20.3376 59.6275 20.3733 59.5054 20.3733C58.7962 20.3682 58.0824 20.3682 57.3732 20.3733C57.2839 20.3733 57.2651 20.3478 57.2651 20.2508C57.2698 15.8302 57.2698 11.4096 57.2651 6.99405C57.2651 6.88175 57.298 6.86133 57.3919 6.86133C58.0964 6.86643 58.8056 6.86643 59.5101 6.86133C59.6228 6.86133 59.6463 6.89196 59.6463 7.01447C59.6369 9.21457 59.6416 11.4147 59.6416 13.6148Z",fill:"white"}),e("path",{d:"M56.11 11.3788C56.11 11.3584 56.1053 11.3329 56.11 11.3125C56.1194 11.241 56.0959 11.2206 56.0255 11.2206C55.3304 11.2206 54.6306 11.2206 53.9355 11.2206C53.8228 11.2206 53.7335 11.3176 53.7335 11.4401C53.7335 11.486 53.7335 11.532 53.7335 11.5779C53.7335 11.68 53.6255 11.7362 53.5504 11.68C53.0478 11.2818 52.4842 11.0725 51.8737 11.0368C50.6244 10.9602 49.5676 11.4707 48.7316 12.4661C47.689 13.7117 47.3414 15.1869 47.6326 16.8306C47.9755 18.7397 49.3938 20.3579 51.2866 20.5621C51.9911 20.6387 52.6674 20.5161 53.292 20.1333C53.3813 20.0771 53.4611 20.0159 53.541 19.9444C53.6161 19.8781 53.7288 19.9342 53.7288 20.0414C53.7288 20.118 53.7288 20.1894 53.7241 20.266C53.7194 20.363 53.7429 20.3885 53.8322 20.3885C54.4991 20.3834 55.166 20.3834 55.8376 20.3885C55.9832 20.3885 56.1053 20.2609 56.1053 20.1027C56.1053 17.1828 56.11 14.2783 56.11 11.3788ZM53.6678 16.7438C53.3719 17.535 52.705 18.0149 51.9112 18.0098C50.6572 17.9893 49.8259 16.8663 49.9621 15.5544C50.0608 14.5743 50.6103 13.8903 51.4228 13.6606C52.5688 13.339 53.6772 14.166 53.8087 15.4472C53.8556 15.8964 53.8228 16.3303 53.6678 16.7438Z",fill:"white"}),e("path",{d:"M20.528 11.3792C20.528 11.3537 20.5233 11.3333 20.528 11.3129C20.5374 11.2414 20.5139 11.2206 20.4435 11.2206C19.7014 11.221 18.964 11.2261 18.222 11.221C18.1468 11.221 18.1421 11.2567 18.1421 11.318C18.1421 11.4048 18.1421 11.4864 18.1421 11.5783C18.1421 11.6804 18.0388 11.7366 17.959 11.6804C17.4564 11.2874 16.8928 11.0781 16.2823 11.0423C15.0846 10.9658 14.0561 11.4303 13.2388 12.3644C12.013 13.7478 11.6655 15.4221 12.1539 17.2649C12.6799 19.2506 14.3285 20.634 16.1883 20.5676C16.8365 20.5421 17.4376 20.3787 17.9543 19.9346C18.0294 19.8683 18.1421 19.9244 18.1421 20.0316C18.1421 20.1031 18.1421 20.1745 18.1374 20.246C18.1327 20.3481 18.1562 20.3885 18.2549 20.3885C18.964 20.3834 19.6685 20.3834 20.3777 20.3885C20.4951 20.3885 20.5327 20.3481 20.5327 20.2154C20.5233 17.27 20.528 14.3246 20.528 11.3792ZM18.0529 16.8208C17.7147 17.6069 17.123 17.9898 16.3809 18.0153C15.3148 18.0153 14.4834 17.1985 14.3801 16.0959C14.2862 15.1158 14.6619 14.2736 15.404 13.8499C16.5171 13.2067 17.9871 13.7988 18.222 15.4068C18.2877 15.8917 18.2455 16.3716 18.0529 16.8208Z",fill:"white"})))}renderKeypad(){return e("div",{class:"pos-keypad"},[["1","2","3"],["4","5","6"],["7","8","9"],["backspace","0","done"]].map((t=>e("div",{class:"pos-keypad-row"},t.map((t=>e("button",{class:"pos-key "+t,onClick:()=>{"backspace"===t?this.handleBackspace():"done"===t?this.handleContinue():this.handleNumberInput(t)}},"backspace"===t?e("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none"},e("path",{d:"M19 2L13 8L19 14M13 8L1 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):"done"===t?this.t("DONE"):t)))))))}renderAmountEntry(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Enter order amount")),e("div",{class:"pos-amount-container"},e("div",{class:"pos-amount-input"},this.amount?e("span",{class:"amount-text"},this.formatAmountDisplay()):e("span",{class:"amount-placeholder"},this.currency," ",e("span",{class:"cursor"},"|")))),e("button",{class:"pos-continue "+(this.isAmountValid()?"active":""),onClick:this.handleContinue,disabled:!this.isAmountValid()},this.t("Continue")),this.renderKeypad()))}renderQRCode(){return e("div",{class:"pos-screen qr-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Ask customer to scan QR code")),e("div",{class:"qr-container"},e("div",{class:"qr-code"},this.qrCodeDataURL?e("img",{src:this.qrCodeDataURL,alt:"Payment QR Code",width:"200",height:"200",style:{border:"1px solid #eee",borderRadius:"8px"}}):e("div",{class:"qr-loading",style:{width:"200px",height:"200px",border:"1px solid #eee",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",background:"#f9f9f9"}},e("span",null,this.t("Generating QR Code..."))))),e("div",{class:"qr-actions"},e("button",{class:"pos-button cancel",onClick:this.handleCancel},this.t("Cancel")),e("button",{class:"pos-button check-status",onClick:this.handleCheckStatus},this.t("Check status")))))}renderProcessing(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Processing payment...")),e("div",{class:"processing-container"},e("div",{class:"processing-spinner"},e("div",{class:"spinner"})),e("div",{class:"processing-info"},e("div",{class:"processing-amount"},this.formatAmountDisplay()),e("div",{class:"processing-message"},this.t("Please wait while we process your payment"))))))}renderSuccess(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Payment successful!")),e("div",{class:"success-container"},e("div",{class:"success-icon"},e("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},e("circle",{cx:"40",cy:"40",r:"40",fill:"#3FD28B"}),e("path",{d:"M25 40L35 50L55 30",stroke:"white","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{class:"success-info"},e("div",{class:"success-amount"},this.formatAmountDisplay()),e("div",{class:"success-message"},this.t("Payment completed successfully")),this.transactionId&&e("div",{class:"transaction-id"},this.t("Transaction ID"),": ",this.transactionId),this.getOrderIdFromMetadata()&&e("div",{class:"order-id"},this.t("Order ID"),": ",this.getOrderIdFromMetadata()))),e("button",{class:"pos-continue active",onClick:()=>{this.currentScreen="amount-entry",this.amount="",this.qrCodeData="",this.transactionId=""}},this.t("New Transaction"))))}renderError(){return e("div",{class:"pos-screen"},this.renderLogo(),e("div",{class:"pos-content"},e("h1",{class:"pos-title"},this.t("Payment Error")),e("div",{class:"error-container"},e("div",{class:"error-icon"},e("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},e("circle",{cx:"40",cy:"40",r:"40",fill:"#FF4444"}),e("path",{d:"M30 30L50 50M50 30L30 50",stroke:"white","stroke-width":"4","stroke-linecap":"round"}))),e("div",{class:"error-info"},e("div",{class:"error-message"},this.errorMessage||this.t("Something went wrong")))),e("button",{class:"pos-continue active",onClick:()=>{this.currentScreen="amount-entry",this.errorMessage="",this.amount="",this.qrCodeData="",this.transactionId="",this.paymentUrl=""}},this.t("Try Again"))))}render(){return this.debug&&(console.log("[AmwalPos] Debug Mode Enabled"),console.log("[AmwalPos] Current Screen:",this.currentScreen),console.log("[AmwalPos] Amount:",this.amount),console.log("[AmwalPos] Currency:",this.currency),console.log("[AmwalPos] Locale:",this.locale),console.log("[AmwalPos] Transaction ID:",this.transactionId)),e("div",{key:"10f59205d919483081c9563ce6544441a5ab1e2d",class:"amwal-pos",dir:"ar"===this.locale?"rtl":"ltr"},"amount-entry"===this.currentScreen&&this.renderAmountEntry(),"qr-code"===this.currentScreen&&this.renderQRCode(),"processing"===this.currentScreen&&this.renderProcessing(),"success"===this.currentScreen&&this.renderSuccess(),"error"===this.currentScreen&&this.renderError())}static get watchers(){return{locale:[{updateLocale:0}]}}static get style(){return':root{--tabby-green:#3FD28B;--text-primary:#000000;--text-secondary:#8E8E93;--text-disabled:#999999;--bg-primary:#FFFFFF;--bg-secondary:#F2F2F7;--bg-disabled:#E5E5EA;--bg-notes:#FFF4E6;--text-notes:#8B6914;--button-active:#2C2C2C;--border-color:#E5E5EA}.amwal-pos{font-family:-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif;background-color:var(--bg-primary);width:100%;max-width:375px;min-height:46vh;margin:0 auto;display:flex;flex-direction:column;position:relative}.pos-screen{flex:1;display:flex;flex-direction:column;padding:0}.pos-screen.qr-screen{padding:20px 20px 20px 20px}.pos-logo{padding:20px 20px 20px 20px;display:flex;justify-content:flex-start}.pos-logo.rtl{justify-content:flex-end}.pos-logo.ltr{justify-content:flex-start}.pos-content{flex:1;display:flex;flex-direction:column;padding:0 20px}.pos-title{font-size:18px;font-weight:600;color:var(--text-primary);text-align:left;margin:0 0 20px 0;line-height:1.2}.pos-amount-container{margin-bottom:20px}.pos-amount-input{background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;padding:16px 16px;min-height:20px;display:flex;align-items:center;font-size:16px;font-weight:400;color:var(--text-primary)}.amount-text{width:100%}.amount-placeholder{width:100%;color:var(--text-secondary)}.cursor{color:var(--text-primary);animation:blink 1s infinite}@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}.pos-continue{width:100%;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;margin-bottom:20px;cursor:pointer;transition:all 0.2s ease;background-color:var(--bg-disabled);color:var(--text-disabled)}.pos-continue.active{background-color:var(--button-active);color:white}.pos-continue:disabled{cursor:not-allowed}.pos-keypad{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.pos-keypad-row{display:flex;gap:12px}.pos-key{flex:1;height:50px;border:none;border-radius:8px;background-color:var(--bg-secondary);color:var(--text-primary);font-size:18px;font-weight:400;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center}.pos-key:active{background-color:var(--bg-disabled);transform:scale(0.95)}.pos-key.done{font-size:12px;font-weight:600;letter-spacing:1px}.pos-key.backspace svg{stroke:var(--text-primary);width:18px;height:14px}.pos-notes{background-color:var(--bg-notes);padding:16px 20px 20px 20px;margin-top:auto}.notes-content{text-align:center;font-size:12px;color:var(--text-notes);line-height:1.4}.qr-container{flex:1;display:flex;align-items:center;justify-content:center;margin:20px 0}.qr-code{background-color:white;padding:16px;border-radius:12px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.qr-pattern{display:block}.qr-actions{display:flex;gap:12px;margin-top:auto;padding-bottom:20px}.pos-button{flex:1;height:48px;border:none;border-radius:24px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.2s ease}.pos-button.cancel{background-color:white;color:var(--text-primary);border:1px solid var(--border-color)}.pos-button.cancel:active{background-color:var(--bg-secondary)}.pos-button.check-status{background-color:var(--button-active);color:white}.pos-button.check-status:active{background-color:#1a1a1a}.processing-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.processing-spinner{display:flex;align-items:center;justify-content:center;position:relative}.processing-spinner::before{content:\'\';position:absolute;width:72px;height:72px;border:2px solid var(--tabby-green);border-radius:50%;opacity:0.3;animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(0.8);opacity:0.3}50%{transform:scale(1.2);opacity:0.1}100%{transform:scale(0.8);opacity:0.3}}.spinner{width:48px;height:48px;border:4px solid var(--bg-disabled);border-top:4px solid var(--tabby-green);border-radius:50%;animation:spin 1s linear infinite;z-index:1;position:relative}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.processing-info{text-align:center;display:flex;flex-direction:column;gap:8px}.processing-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.processing-message{font-size:14px;color:var(--text-secondary);max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.success-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.success-icon{display:flex;align-items:center;justify-content:center;animation:successBounce 0.6s ease-out}@keyframes successBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.success-info{text-align:center;display:flex;flex-direction:column;gap:8px}.success-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.success-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px}.error-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:40px 0}.error-icon{display:flex;align-items:center;justify-content:center;animation:errorBounce 0.6s ease-out}@keyframes errorBounce{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1);opacity:1}}.error-info{text-align:center;display:flex;flex-direction:column;gap:8px}.error-amount{font-size:24px;font-weight:600;color:var(--text-primary)}.error-message{font-size:16px;color:var(--text-secondary);margin-bottom:8px;max-width:280px;line-height:1.4;animation:fadeInUp 0.5s ease-out 0.3s both}.transaction-id{font-size:12px;color:var(--text-secondary);background-color:var(--bg-secondary);padding:8px 12px;border-radius:6px;font-family:\'SF Mono\', Monaco, \'Cascadia Code\', \'Roboto Mono\', Consolas, \'Courier New\', monospace;border:1px solid var(--border-color);animation:slideIn 0.4s ease-out 0.2s both}@keyframes slideIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.success-container+.pos-continue{margin-top:0;transform:translateY(0);animation:slideInButton 0.5s ease-out 0.4s both}@keyframes slideInButton{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}[dir="rtl"] .amwal-pos{direction:rtl}[dir="rtl"] .pos-amount-input{text-align:right}[dir="rtl"] .notes-content{text-align:center}.amwal-pos[dir="rtl"] .pos-logo{justify-content:start}.amwal-pos[dir="rtl"] .pos-title{text-align:right}.amwal-pos[dir="rtl"] .amount-text{text-align:right}.amwal-pos[dir="rtl"] .amount-placeholder{text-align:right;direction:rtl}.amwal-pos[dir="rtl"] .processing-info{text-align:center}.amwal-pos[dir="rtl"] .success-info{text-align:center}.amwal-pos[dir="rtl"] .error-info{text-align:center}.amwal-pos[dir="rtl"] .transaction-id{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .processing-message{text-align:center}.amwal-pos[dir="rtl"] .success-message{text-align:center}.amwal-pos[dir="rtl"] .error-message{text-align:center}.amwal-pos[dir="rtl"] .notes-content{text-align:center;direction:rtl}.amwal-pos[dir="rtl"] .qr-actions{flex-direction:row-reverse}.amwal-pos[dir="rtl"] .pos-key{font-family:\'SF Pro Display\', -apple-system, BlinkMacSystemFont, sans-serif}@media (max-width: 375px){.pos-logo{padding:16px 16px 16px 16px}.pos-content{padding:0 16px}.pos-notes{padding:12px 16px 16px 16px}.pos-screen.qr-screen{padding:16px 16px 16px 16px}.qr-actions{padding-bottom:16px}.processing-container{padding:20px 0;gap:24px}.processing-amount,.success-amount{font-size:20px}.success-container{padding:20px 0;gap:24px}.success-icon svg{width:64px;height:64px}}@media (max-width: 320px){.pos-key{height:46px;font-size:16px}.pos-keypad{gap:10px}.pos-keypad-row{gap:10px}.qr-code{padding:12px}.qr-pattern{width:160px;height:160px}.processing-container{padding:16px 0;gap:20px}.success-container{padding:16px 0;gap:20px}.spinner{width:40px;height:40px;border-width:3px}.success-icon svg{width:56px;height:56px}.processing-amount,.success-amount{font-size:18px}.processing-message{font-size:13px}.success-message{font-size:14px}}@media (min-width: 768px){.amwal-pos{border-radius:16px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);margin:20px auto;max-height:85vh;min-height:530px}.processing-container{gap:40px}.success-container{gap:40px}.success-icon svg{width:96px;height:96px}.processing-amount,.success-amount{font-size:28px}}'}},[0,"amwal-pos",{amount:[1025],currency:[1],locale:[1],debug:[4],minAmount:[2,"min-amount"],maxAmount:[2,"max-amount"],authToken:[1,"auth-token"],storeId:[1,"store-id"],apiBaseUrl:[1,"api-base-url"],paymentTitle:[1,"payment-title"],paymentDescription:[1,"payment-description"],customerFirstName:[1,"customer-first-name"],customerLastName:[1,"customer-last-name"],customerEmail:[1,"customer-email"],customerPhone:[1,"customer-phone"],customerStreet1:[1,"customer-street-1"],customerStreet2:[1,"customer-street-2"],customerCity:[1,"customer-city"],customerState:[1,"customer-state"],customerCountry:[1,"customer-country"],customerPostcode:[1,"customer-postcode"],addressRequired:[4,"address-required"],smsLanguage:[1,"sms-language"],sendSms:[4,"send-sms"],passkeyEnabled:[4,"passkey-enabled"],onlyShowBankInstallments:[4,"only-show-bank-installments"],onlyShowPayInFull:[4,"only-show-pay-in-full"],callbackUrl:[1,"callback-url"],metadata:[1],currentScreen:[32],qrCodeData:[32],qrCodeDataURL:[32],transactionId:[32],errorMessage:[32],paymentUrl:[32],isChecking:[32],checkAttempts:[32]},void 0,{locale:[{updateLocale:0}]}]),wt=yt,vt=function(){"undefined"!=typeof customElements&&["amwal-pos"].forEach((t=>{"amwal-pos"===t&&(customElements.get(r(t))||customElements.define(r(t),yt))}))};export{wt as AmwalPos,vt as defineCustomElement}
|