{{-- Mediabibliotek script (#2957 slice 10, card #3096), pushed by media/index after jQuery, jstree and Dropzone. Same behaviour and endpoints as before the reskin: the jstree folder tree with drag and drop (POST media/update/folder and media/update/image), the Dropzone upload (POST media) and the image grid of the selected folder. SweetAlert, iCheck and toastr are gone: folder prompts and delete confirmations are the s in media/partials/index (opened by the layout through data-nh-dialog), the checkboxes are native and errors are nh-toasts (window.nhToast from layouts/nuhet). Tree texts are HTML in jstree, so every node text is escaped here, and the grid is built with DOM nodes, never from strings. --}} @php // Dropzone placeholders; inside @php so Blade does not read the braces as echoes. $nhDropzoneTooBig = __('media.filesizeTooBig', ['filesize' => '{{filesize}}', 'maxfilesize' => '{{maxFilesize}}']); $nhDropzoneServerError = __('media.serverError', ['error' => '{{statusCode}}']); $nhMessages = [ 'uploadErrorTitle' => __('media.uploadErrorTitle'), 'imgDropError' => __('media.toastr.imgDropErrorTitle').': '.__('media.toastr.imgDropErrorContent'), 'duplicateFile' => __('media.toastr.duplicateFileTitle').': '.__('media.toastr.duplicateFileContent'), 'createdAt' => __('media.image.createdAt'), 'size' => __('media.image.size'), 'selectImage' => __('media.nh.selectImage', ['name' => ':name']), 'moveFailed' => __('media.nh.moveFailed'), 'noImages' => __('media.nh.noImages'), 'noImagesMatch' => __('media.organize.noImagesMatch'), ]; @endphp