{"version":3,"file":"Shared.MediaIndex-19edcad4af15220c51d2.js","mappings":"+FA0EIA,WAAWC,WAAWC,sFAxEtBC,iBACI,IAAIC,EAAOC,IAAI,UACVD,EAAKE,cAEAH,iBAEF,IAAII,EAAiBH,EAAKI,KAAK,iDACMC,IAAjCF,EAAeG,KAAK,UACpBH,EAAeI,YAAY,iBAEzBX,WAAWY,YACjBR,EAAKI,KAAK,qBAAqBK,IAAI,SAASC,OAAM,WAC9CV,EAAKI,KAAK,iCAAiCO,OAC3CV,IAAI,4BAA4BW,KAAK,WAAY,YACjD,IAAIC,EAAUb,EAAKI,KAAK,yBACpBU,EAAMD,EAAQP,KAAK,aACnBS,EAAUF,EAAQP,KAAK,WACvBU,EAAWH,EAAQP,KAAK,YAC5BL,IAAIgB,KAAK,CACLH,IAAKlB,WAAWsB,2BAA2BJ,EAAK,UAAWC,GAC3DI,KAAM,MACNC,QAAS,SAAUC,GACf,IAAIC,EAAUrB,IAAIoB,GACiC,UAA/CC,EAAQC,OAAO,UAAUjB,KAAK,aAC9BN,EAAKI,KAAK,cAAcoB,OAExBxB,EAAKI,KAAK,cAAcO,OAE5BE,EAAQY,OAAOH,EAAQI,QACvBb,EAAQP,KAAK,UAAWS,EAAUC,GAClChB,EAAKI,KAAK,iCAAiCoB,OAC3CvB,IAAI,4BAA4B0B,WAAW,WAC/C,GAER,IAEA1B,IAAI,mBAAmB2B,MAAM,CACzBC,MAAM,EACNC,UAAU,EACVC,MAAO,IACPC,aAAc,EACdC,eAAgB,EAChBC,WAAY,CAAC,CACTC,WAAY,KACZC,SAAU,CACNJ,aAAc,EACdC,eAAgB,EAChBH,UAAU,EACVD,MAAM,IAEX,CACCM,WAAY,IACZC,SAAU,CACNJ,aAAc,EACdC,eAAgB,EAChBJ,MAAM,IAEX,CACCM,WAAY,IACZC,SAAU,CACNJ,aAAc,EACdC,eAAgB,EAChBJ,MAAM,MAItB,CAGEQ,EACV,G","sources":["webpack://@whistleout/webui/./Areas/Shared/js/MediaIndex.js"],"sourcesContent":["(function () {\n 'use strict';\n async function main() {\n var page = wo$('#media');\n if (!page.length) return;\n var controller = {\n init: async function () {\n\n var firstMediaItem = page.find('div[data-mediasummaries] div:first-child');\n if (firstMediaItem.data('media') !== undefined) {\n firstMediaItem.removeClass('bor-t-1');\n }\n await WhistleOut.bindSlick();\n page.find('#load-more button').off('click').click(function () {\n page.find('#load-more button .fa-spinner').show();\n wo$('[data-enable-when-ready]').attr('disabled', 'disabled');\n var element = page.find('[data-mediasummaries]');\n var url = element.data('pagingurl');\n var current = element.data('current');\n var pageSize = element.data('pagesize');\n wo$.ajax({\n url: WhistleOut.updateQueryStringParameter(url, 'current', current),\n type: 'GET',\n success: function (result) {\n var $result = wo$(result);\n if ($result.filter(':first').data('load-more') === 'False') {\n page.find('#load-more').hide();\n } else {\n page.find('#load-more').show();\n }\n element.append($result.html());\n element.data('current', current + pageSize);\n page.find('#load-more button .fa-spinner').hide();\n wo$('[data-enable-when-ready]').removeAttr('disabled');\n }\n });\n });\n\n wo$('.video-carousel').slick({\n dots: false,\n infinite: false,\n speed: 500,\n slidesToShow: 4,\n slidesToScroll: 4,\n responsive: [{\n breakpoint: 1200,\n settings: {\n slidesToShow: 4,\n slidesToScroll: 4,\n infinite: true,\n dots: false\n }\n }, {\n breakpoint: 992,\n settings: {\n slidesToShow: 4,\n slidesToScroll: 4,\n dots: false\n }\n }, {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1,\n dots: false\n }\n }]\n });\n }\n };\n\n await controller.init();\n };\n\n WhistleOut.initModule(import.meta.url, main);\n\n}());"],"names":["WhistleOut","initModule","import","async","page","wo$","length","firstMediaItem","find","undefined","data","removeClass","bindSlick","off","click","show","attr","element","url","current","pageSize","ajax","updateQueryStringParameter","type","success","result","$result","filter","hide","append","html","removeAttr","slick","dots","infinite","speed","slidesToShow","slidesToScroll","responsive","breakpoint","settings","controller"],"sourceRoot":""}