{"version":3,"sources":["https:\/\/fi.teluq.ca\/theme\/formation_demystifier_ia\/amd\/src\/table-responsive.js"],"names":["define","params","context","init","document","querySelector","tables","querySelectorAll","Array","prototype","slice","call","table","wrap","createElement","classList","add","insertAdjacentElement","appendChild"],"mappings":";;;;AAAAA,MAAM,CAAC,EAAD,EAAK,YAAW;AAElB,SAAO;AACHC,IAAAA,MAAM,EAAE;AACJC,MAAAA,OAAO,EAAE;AADL,KADL;AAIHC,IAAAA,IAAI,EAAE,cAASF,MAAT,EAAiB;AACnB,WAAKA,MAAL,GAAc,SAAc,KAAKA,MAAnB,EAA2BA,MAA3B,CAAd,CADmB,CAEnB;AACA;;AACA,UAAIC,OAAO,GAAGE,QAAQ,CAACC,aAAT,CAAuB,KAAKJ,MAAL,CAAYC,OAAnC,CAAd;AACA,UAAII,MAAM,GAAGJ,OAAO,CAACK,gBAAR,CAAyB,OAAzB,CAAb;;AALmB,eAMnBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BL,MAA3B,CANmB;;AAAA,eAMwB,YAASM,KAAT,EAAgB;AACvD,YAAIC,IAAI,GAAGT,QAAQ,CAACU,aAAT,CAAuB,KAAvB,CAAX;AACAD,QAAAA,IAAI,CAACE,SAAL,CAAeC,GAAf,CAAmB,kBAAnB;AACAJ,QAAAA,KAAK,CAACK,qBAAN,CAA4B,UAA5B,EAAwCJ,IAAxC;AACAA,QAAAA,IAAI,CAACK,WAAL,CAAiBN,KAAjB;AACH,OAXkB;;AAAA;AAAA;AAAA;;AAMnB;AAOH;AAjBE,GAAP;AAmBH,CArBK,CAAN","sourcesContent":["define([], function() {\r\n\r\n return {\r\n params: {\r\n context: \".main-content\"\r\n },\r\n init: function(params) {\r\n this.params = Object.assign(this.params, params);\r\n \/\/ Tableaux adaptatifs\r\n \/\/ On \"wrap\" les dans une div pour permettre le d\u00e9filement\r\n var context = document.querySelector(this.params.context);\r\n var tables = context.querySelectorAll(\"table\");\r\n Array.prototype.slice.call(tables).forEach(function(table) {\r\n var wrap = document.createElement(\"div\");\r\n wrap.classList.add(\"table-responsive\");\r\n table.insertAdjacentElement(\"afterend\", wrap);\r\n wrap.appendChild(table);\r\n });\r\n\r\n }\r\n };\r\n});"],"file":"table-responsive.min.js"}