2022-02-11 18:18:17 +01:00
|
|
|
@if (!GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
2019-09-19 12:48:02 +02:00
|
|
|
|
2025-03-21 18:41:39 +02:00
|
|
|
@php require_frontend_packages(['zxing']); @endphp
|
2023-05-21 10:56:38 +02:00
|
|
|
|
2021-07-05 22:49:51 +02:00
|
|
|
@once
|
2019-09-19 12:48:02 +02:00
|
|
|
@push('componentScripts')
|
2025-01-12 23:51:00 +01:00
|
|
|
<script src="{{ $U('/viewjs/components/camerabarcodescanner.js', true) }}?v={{ $version }}"></script>
|
2019-09-19 12:48:02 +02:00
|
|
|
@endpush
|
2021-07-05 22:49:51 +02:00
|
|
|
@endonce
|
2019-09-19 12:48:02 +02:00
|
|
|
|
2019-09-21 20:01:49 +02:00
|
|
|
@push('pageStyles')
|
2020-08-31 20:32:50 +02:00
|
|
|
<style>
|
2025-01-14 17:54:06 +01:00
|
|
|
#camerabarcodescanner-start-button {
|
2020-08-31 20:32:50 +02:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-right: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-09-21 20:01:49 +02:00
|
|
|
|
2025-01-14 17:54:06 +01:00
|
|
|
.combobox-container #camerabarcodescanner-start-button {
|
|
|
|
margin-right: 38px !important;
|
2020-08-31 20:32:50 +02:00
|
|
|
}
|
|
|
|
</style>
|
2019-09-21 20:01:49 +02:00
|
|
|
@endpush
|
|
|
|
|
2021-06-24 22:46:47 +02:00
|
|
|
@endif
|