diff --git a/.env.example b/.env.example
index d058c34..e96dfbe 100644
--- a/.env.example
+++ b/.env.example
@@ -3,6 +3,7 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
+PROJECT_UUID=
LOG_CHANNEL=stack
diff --git a/app/Http/Controllers/MediaController.php b/app/Http/Controllers/MediaController.php
index 7d565e6..0432bbb 100644
--- a/app/Http/Controllers/MediaController.php
+++ b/app/Http/Controllers/MediaController.php
@@ -90,6 +90,23 @@ class MediaController extends Controller
]);
}
+ public function show(Request $request) {
+ $uid = $request->uid;
+ $media = Media::where('uid', $uid)->first();
+ if (!$media)
+ abort(404);
+ $infos = [
+ 'id' => $media->id,
+ 'preview' => $media->folder . $media->uid . '_preview.' . $media->extension,
+ 'src' => $media->folder . $media->uid . $media->extension,
+ 'depot' => 0,
+ 'typemedia' => $media->typemedia_id,
+ 'ext' => $media->extension,
+ 'dossier_id' => $media->dossier_id
+ ];
+ return redirect()->route('media_manager')->with('autoOpen', $infos);
+ }
+
/**
* Chargement des médias
*
diff --git a/public/js/app.js b/public/js/app.js
index 01d47b9..307341b 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -1 +1 @@
-!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){n(1),n(3),n(4),n(5),n(6),n(7),e.exports=n(8)},function(e,t,n){"use strict";try{window.$=window.jQuery=n(2)}catch(e){}jQuery.fn.scrollParent=function(){var e=/(auto|scroll)/,t=this.css("position"),n="absolute"===t,a=this.parents().filter(function(){var t=$(this);if(n&&"static"===t.css("position"))return!1;var a=t.css(["overflow","overflowX","overflowY"]);return e.test(a.overflow+a.overflowX+a.overflowY)}).eq(0);return"fixed"!==t&&a.length?a:$(this[0].ownerDocument||document)},$(window).data("offset",0),$(window).data("limit",50),$(window).data("currentFolder",0),$(window).data("currentBasket",null),$(window).data("filter",{}),$.fancyConfirm=function(e){e=$.extend(!0,{title:"Are you sure?",message:"",okButton:"OK",noButton:"Cancel",callback:$.noop},e||{}),$.fancybox.open({type:"html",src:'
'+e.title+' '+e.message+'
'+e.noButton+' '+e.okButton+"
",opts:{animationDuration:350,animationEffect:"material",modal:!0,baseTpl:'',afterClose:function(t,n,a){var r=a?a.target||a.currentTarget:null,i=r?$(r).data("value"):0;e.callback(i)}}})},$.fancyMessage=function(e){e=$.extend(!0,{title:"Are you sure?",message:"",type:""},e||{}),$.fancybox.open({type:"html",src:''+e.title+' '+e.message+'
Ok
',opts:{animationDuration:350,animationEffect:"material",modal:!1,baseTpl:''}})},$(".userbar").on("click",function(e){$(".submenu").toggle()}),$(document).mouseup(function(e){var t=$(".userbar");t.is(e.target)||0!==t.has(e.target).length||$(".submenu").hide();var n=$(".folder_container .folder_menu");n.is(e.target)||0!==n.has(e.target).length||n.hide();var a=$(".panier_side_menu .panier_menu");a.is(e.target)||0!==a.has(e.target).length||0!==$("#menu_panier").has(e.target).length||a.hide();var r=$(".filter_selector");r.is(e.target)||0!==r.has(e.target).length||$(".filter_selector .list").hide();var i=$(".media_container").parent().offset();($(e.target).hasClass("media_container")&&event.pageX-i.left<$(".media_container")[0].clientWidth||$(e.target).hasClass("wrapper"))&&($(".imageItem").attr("aria-grabbed","false"),$(".imageItem").removeClass("flip"))}),$(".contact_btn").on("click",function(e){e.preventDefault();var t;t=$(this).attr("data-subjectId"),$.fancybox.open({src:"#form_contact",type:"inline",opts:{animationDuration:350,animationEffect:"material",beforeShow:function(e,n){$(".form_contact_type").val(t),$(".form_contact_check_ko").hide(),$(".form_contact_ok").hide(),$(".form_contact_ko").hide()}}})}),$(".close_popup").on("click",function(e){e.preventDefault(),$.fancybox.close()}),$(".form_contact_send").on("click",function(e){e.preventDefault();var t=$(this);if(""==$(".form_contact_message").val())return $(".form_contact_check_ko").show(),!1;$(".form_contact_check_ko").hide(),t.addClass("loading"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$.ajax({url:"/send-message",method:"POST",dataType:"json",data:{type:$(".form_contact_type option:selected").text(),url:$(".form_contact_url").val(),message:$(".form_contact_message").val()},success:function(e){t.removeClass("loading"),$(".form_contact_ok").show(),$(".form_contact_url").val(""),$(".form_contact_message").val("")},error:function(e,n,a){t.removeClass("loading"),$(".form_contact_ko").show()}})})},function(e,t,n){var a;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var i=[],o=n.document,s=Object.getPrototypeOf,l=i.slice,d=i.concat,c=i.push,u=i.indexOf,f={},p=f.toString,m=f.hasOwnProperty,h=m.toString,v=h.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},$=function(e){return null!=e&&e===e.window},_={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var a,r,i=(n=n||o).createElement("script");if(i.text=e,t)for(a in _)(r=t[a]||t.getAttribute&&t.getAttribute(a))&&i.setAttribute(a,r);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},k=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!y(e)&&!$(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.4.1",constructor:w,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+L+")"+L+"*"),W=new RegExp(L+"|>"),U=new RegExp(H),X=new RegExp("^"+P+"$"),G={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ne=function(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},ae=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},oe=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{q.apply(E=I.call(b.childNodes),b.childNodes),E[b.childNodes.length].nodeType}catch(e){q={apply:E.length?function(e,t){M.apply(e,I.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function se(e,t,a,r){var i,s,d,c,u,m,g,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(a=a||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return a;if(!r&&((t?t.ownerDocument||t:b)!==p&&f(t),t=t||p,h)){if(11!==x&&(u=Z.exec(e)))if(i=u[1]){if(9===x){if(!(d=t.getElementById(i)))return a;if(d.id===i)return a.push(d),a}else if(y&&(d=y.getElementById(i))&&$(t,d)&&d.id===i)return a.push(d),a}else{if(u[2])return q.apply(a,t.getElementsByTagName(e)),a;if((i=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(a,t.getElementsByClassName(i)),a}if(n.qsa&&!j[e+" "]&&(!v||!v.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===x&&W.test(e)){for((c=t.getAttribute("id"))?c=c.replace(ae,re):t.setAttribute("id",c=_),s=(m=o(e)).length;s--;)m[s]="#"+c+" "+$e(m[s]);g=m.join(","),y=ee.test(e)&&ge(t.parentNode)||t}try{return q.apply(a,y.querySelectorAll(g)),a}catch(t){j(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,a,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>a.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function de(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),r=n.length;r--;)a.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return de(function(t){return t=+t,de(function(n,a){for(var r,i=e([],n.length,t),o=i.length;o--;)n[r=i[o]]&&(n[r]=!(a[r]=n[r]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:b;return o!==p&&9===o.nodeType&&o.documentElement?(m=(p=o).documentElement,h=!i(p),b!==p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ce(function(e){return m.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(a.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(a.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,a,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),a=0;i=r[a++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),a.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,a=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&a.push(n);return a}return i},a.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=J.test(p.querySelectorAll))&&(ce(function(e){m.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML=" ";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=J.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(m.compareDocumentPosition),$=t||J.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return u=!0,0;var a=!e.compareDocumentPosition-!t.compareDocumentPosition;return a||(1&(a=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===a?e===p||e.ownerDocument===b&&$(b,e)?-1:t===p||t.ownerDocument===b&&$(b,t)?1:c?N(c,e)-N(c,t):0:4&a?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,r=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!r||!i)return e===p?-1:t===p?1:r?-1:i?1:c?N(c,e)-N(c,t):0;if(r===i)return fe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[a]===s[a];)a++;return a?fe(o[a],s[a]):o[a]===b?-1:s[a]===b?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),n.matchesSelector&&h&&!j[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var a=y.call(e,t);if(a||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return a}catch(e){j(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),$(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var r=a.attrHandle[t.toLowerCase()],i=r&&D.call(a.attrHandle,t.toLowerCase())?r(e,t,!h):void 0;return void 0!==i?i:n.attributes||!h?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(ae,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,a=[],r=0,i=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),u){for(;t=e[i++];)t===e[i]&&(r=a.push(i));for(;r--;)e.splice(a[r],1)}return c=null,e},r=se.getText=function(e){var t,n="",a=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[a++];)n+=r(t);return n},(a=se.selectors={cacheLength:50,createPseudo:de,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(a){var r=se.attr(a,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,a,r){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===a&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var d,c,u,f,p,m,h=i!==o?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,$=!1;if(v){if(i){for(;h;){for(f=t;f=f[h];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;m=h="only"===e&&!m&&"nextSibling"}return!0}if(m=[o?v.firstChild:v.lastChild],o&&y){for($=(p=(d=(c=(u=(f=v)[_]||(f[_]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===x&&d[1])&&d[2],f=p&&v.childNodes[p];f=++p&&f&&f[h]||($=p=0)||m.pop();)if(1===f.nodeType&&++$&&f===t){c[e]=[x,p,$];break}}else if(y&&($=p=(d=(c=(u=(f=t)[_]||(f[_]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===x&&d[1]),!1===$)for(;(f=++p&&f&&f[h]||($=p=0)||m.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++$||(y&&((c=(u=f[_]||(f[_]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]=[x,$]),f!==t)););return($-=r)===a||$%a==0&&$/a>=0}}},PSEUDO:function(e,t){var n,r=a.pseudos[e]||a.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],a.setFilters.hasOwnProperty(e.toLowerCase())?de(function(e,n){for(var a,i=r(e,t),o=i.length;o--;)e[a=N(e,i[o])]=!(n[a]=i[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:de(function(e){var t=[],n=[],a=s(e.replace(B,"$1"));return a[_]?de(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,a(t,null,i,n),t[0]=null,!n.pop()}}),has:de(function(e){return function(t){return se(e,t).length>0}}),contains:de(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:de(function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!a.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;nt?t:n;--a>=0;)e.push(a);return e}),gt:ve(function(e,t,n){for(var a=n<0?n+t:n;++a1?function(t,n,a){for(var r=e.length;r--;)if(!e[r](t,n,a))return!1;return!0}:e[0]}function xe(e,t,n,a,r){for(var i,o=[],s=0,l=e.length,d=null!=t;s-1&&(i[d]=!(o[d]=u))}}else g=xe(g===o?g.splice(m,g.length):g),r?r(null,o,g,l):q.apply(o,g)})}function ke(e){for(var t,n,r,i=e.length,o=a.relative[e[0].type],s=o||a.relative[" "],l=o?1:0,c=_e(function(e){return e===t},s,!0),u=_e(function(e){return N(t,e)>-1},s,!0),f=[function(e,n,a){var r=!o&&(a||n!==d)||((t=n).nodeType?c(e,n,a):u(e,n,a));return t=null,r}];l1&&be(f),l>1&&$e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l0,r=e.length>0,i=function(i,o,s,l,c){var u,m,v,g=0,y="0",$=i&&[],_=[],b=d,w=i||r&&a.find.TAG("*",c),k=x+=null==b?1:Math.random()||.1,T=w.length;for(c&&(d=o===p||o||c);y!==T&&null!=(u=w[y]);y++){if(r&&u){for(m=0,o||u.ownerDocument===p||(f(u),s=!h);v=e[m++];)if(v(u,o||p,s)){l.push(u);break}c&&(x=k)}n&&((u=!v&&u)&&g--,i&&$.push(u))}if(g+=y,n&&y!==g){for(m=0;v=t[m++];)v($,_,o,s);if(i){if(g>0)for(;y--;)$[y]||_[y]||(_[y]=A.call(l));_=xe(_)}q.apply(l,_),c&&!i&&_.length>0&&g+t.length>1&&se.uniqueSort(l)}return c&&(x=k,d=b),$};return n?de(i):i}(i,r))).selector=e}return s},l=se.select=function(e,t,n,r){var i,l,d,c,u,f="function"==typeof e&&e,p=!r&&o(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&9===t.nodeType&&h&&a.relative[l[1].type]){if(!(t=(a.find.ID(d.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=G.needsContext.test(e)?0:l.length;i--&&(d=l[i],!a.relative[c=d.type]);)if((u=a.find[c])&&(r=u(d.matches[0].replace(te,ne),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(i,1),!(e=r.length&&$e(l)))return q.apply(n,r),n;break}}return(f||s(e,p))(r,t,!h,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=_.split("").sort(S).join("")===_,n.detectDuplicates=!!u,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML=" ","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML=" ",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||ue(O,function(e,t,n){var a;if(!n)return!0===e[t]?t.toLowerCase():(a=e.getAttributeNode(t))&&a.specified?a.value:null}),se}(n);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var j=function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;a.push(e)}return a},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return y(t)?w.grep(e,function(e,a){return!!t.call(e,a,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?w.find.matchesSelector(a,e)?[a]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,a=this.length,r=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var a,r;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),A.test(a[1])&&w.isPlainObject(t))for(a in t)y(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(r=o.getElementById(a[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(o);var N=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&w.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?w.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return j(e,"parentNode")},parentsUntil:function(e,t,n){return j(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return j(e,"nextSibling")},prevAll:function(e){return j(e,"previousSibling")},nextUntil:function(e,t,n){return j(e,"nextSibling",n)},prevUntil:function(e,t,n){return j(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(E(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,a){var r=w.map(this,t,n);return"Until"!==e.slice(-5)&&(a=n),a&&"string"==typeof a&&(r=w.filter(a,r)),this.length>1&&(O[e]||w.uniqueSort(r),N.test(e)&&r.reverse()),this.pushStack(r)}});var P=/[^\x20\t\r\n\f]+/g;function F(e){return e}function H(e){throw e}function R(e,t,n,a){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(a))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(P)||[],function(e,n){t[n]=!0}),t}(e):w.extend({},e);var t,n,a,r,i=[],o=[],s=-1,l=function(){for(r=r||e.once,a=t=!0;o.length;s=-1)for(n=o.shift();++s-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=o=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],a="pending",r={state:function(){return a},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(n){w.each(t,function(t,a){var r=y(e[a[4]])&&e[a[4]];i[a[1]](function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,a,r){var i=0;function o(e,t,a,r){return function(){var s=this,l=arguments,d=function(){var n,d;if(!(e=i&&(a!==H&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),n.setTimeout(c))}}return w.Deferred(function(n){t[0][3].add(o(0,n,y(r)?r:F,n.notifyWith)),t[1][3].add(o(0,n,y(e)?e:F)),t[2][3].add(o(0,n,y(a)?a:H))}).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},i={};return w.each(t,function(e,n){var o=n[2],s=n[5];r[n[1]]=o.add,s&&o.add(function(){a=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,a=Array(n),r=l.call(arguments),i=w.Deferred(),o=function(e){return function(n){a[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(a,r)}};if(t<=1&&(R(e,i.done(o(n)).resolve,i.reject,!t),"pending"===i.state()||y(r[n]&&r[n].then)))return i.then();for(;n--;)R(r[n],o(n),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){n.setTimeout(function(){throw e})};var z=w.Deferred();function V(){o.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),w.ready()}w.fn.ready=function(e){return z.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||z.resolveWith(o,[w]))}}),w.ready.then=z.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?n.setTimeout(w.ready):(o.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var W=function(e,t,n,a,r,i,o){var s=0,l=e.length,d=null==n;if("object"===x(n))for(s in r=!0,n)W(e,t,s,n[s],!0,i,o);else if(void 0!==a&&(r=!0,y(a)||(o=!0),d&&(o?(t.call(e,a),t=null):(d=t,t=function(e,t,n){return d.call(w(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),w.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=J.get(e,t),n&&(!a||Array.isArray(n)?a=J.access(e,t,w.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),a=n.length,r=n.shift(),i=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){w.dequeue(e,t)},i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function $e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?w.merge([e],n):n}function _e(e,t){for(var n=0,a=e.length;n-1)r&&r.push(i);else if(d=se(i),o=$e(u.appendChild(i),"script"),d&&_e(o),n)for(c=0;i=o[c++];)ge.test(i.type||"")&&n.push(i);return u}be=o.createDocumentFragment().appendChild(o.createElement("div")),(xe=o.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),be.appendChild(xe),g.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="",g.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,je=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function De(){return!1}function Ee(e,t){return e===function(){try{return o.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,a,r,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(a=a||n,n=void 0),t)Ae(e,s,n,a,t[s],i);return e}if(null==a&&null==r?(r=n,a=n=void 0):null==r&&("string"==typeof n?(r=a,a=void 0):(r=a,a=n,n=void 0)),!1===r)r=De;else if(!r)return e;return 1===i&&(o=r,(r=function(e){return w().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),e.each(function(){w.event.add(this,t,r,a,n)})}function Me(e,t,n){n?(J.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var a,r,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),J.set(this,t,i),a=n(this,t),this[t](),i!==(r=J.get(this,t))||a?J.set(this,t,!1):r={},i!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else i.length&&(J.set(this,t,{value:w.event.trigger(w.extend(i[0],w.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&w.event.add(e,t,Se)}w.event={global:{},add:function(e,t,n,a,r){var i,o,s,l,d,c,u,f,p,m,h,v=J.get(e);if(v)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&w.find.matchesSelector(oe,r),n.guid||(n.guid=w.guid++),(l=v.events)||(l=v.events={}),(o=v.handle)||(o=v.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(P)||[""]).length;d--;)p=h=(s=je.exec(t[d])||[])[1],m=(s[2]||"").split(".").sort(),p&&(u=w.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=w.event.special[p]||{},c=w.extend({type:p,origType:h,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:m.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,a,m,o)||e.addEventListener&&e.addEventListener(p,o)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),w.event.global[p]=!0)},remove:function(e,t,n,a,r){var i,o,s,l,d,c,u,f,p,m,h,v=J.hasData(e)&&J.get(e);if(v&&(l=v.events)){for(d=(t=(t||"").match(P)||[""]).length;d--;)if(p=h=(s=je.exec(t[d])||[])[1],m=(s[2]||"").split(".").sort(),p){for(u=w.event.special[p]||{},f=l[p=(a?u.delegateType:u.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=f.length;i--;)c=f[i],!r&&h!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(f.splice(i,1),c.selector&&f.delegateCount--,u.remove&&u.remove.call(e,c));o&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,m,v.handle)||w.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[d],n,a,!0);w.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,a,r,i,o,s=w.event.fix(e),l=new Array(arguments.length),d=(J.get(this,"events")||{})[s.type]||[],c=w.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(i=[],o={},n=0;n-1:w.find(r,this,null,[d]).length),o[r]&&i.push(a);i.length&&s.push({elem:d,handlers:i})}return d=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,Ie=/
+ @endif
diff --git a/routes/web.php b/routes/web.php
index b5725e5..01f2f3e 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -16,6 +16,7 @@ Route::group(['middleware' => ['auth']], function(){
Route::get('/', 'CommunController@index')->name('home');
Route::get('/gestion-des-medias', 'MediaController@index')->name('media_manager');
Route::get('/paniers', 'PanierController@index')->name('paniers');
+ Route::get('/media/{uid}', 'MediaController@show')->name('media.show');
// Message de contact
Route::post('/send-message', 'CommunController@sendMessage');