{"version":3,"file":"5043.dc5cb17b548b5db1.js","mappings":"0GAEA,IAAIA,EAAa,gBAChBC,EAAW,CACVC,aAAc,IAGhB,SAASC,EAAcC,EAASC,GAC/BC,KAAKF,QAAUA,EAEfE,KAAKD,QAAUE,EAAEC,OAAO,GAAIP,EAAUI,GAEtCC,KAAKG,UAAYR,EACjBK,KAAKI,MAAQV,CACd,CAEAG,EAAcQ,UAAY,CACzBC,eAAgB,SAAUC,EAAGC,GAC5B,IAAIC,EAAUR,EAAEO,GACfE,EAAMT,EAAEU,UACLX,KAAKD,QAAQH,aAAagB,OAAS,GACtCX,EAAEY,KAAKb,KAAKD,QAAQH,aAAc,SAAUkB,EAAGC,GAC9C,IAAIC,EAAa,GACjB,GAAiB,iBAAND,EAAgB,CAC1B,IAAIE,EAAQR,EAAQS,KAAKH,GACrBE,EAAML,OAAS,IAClBI,EAAaC,EAAME,OACnBT,EAAIQ,KAAKH,GACPI,KAAKH,GAET,CACD,EAEF,GAGDf,EAAEmB,GAAG1B,GAAc,SAAUK,GAC5B,OAAOC,KAAKa,KAAK,WACXZ,EAAEO,KAAKR,KAAM,UAAYN,IAC7BO,EAAEO,KAAKR,KAAM,UAAYN,EAAY,IAAIG,EAAcG,KAAMD,GAE/D,EACD","names":["pluginName","defaults","selectorList","SectionLoader","element","options","this","$","extend","_defaults","_name","prototype","ajaxPageLoaded","e","data","content","doc","document","length","each","i","el","tmpContent","tmpEl","find","html","fn"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./generated-src/legacy/default/plugins/jquery.sectionLoader.ts"],"sourcesContent":["export {};\n\nvar pluginName = 'SectionLoader',\n\tdefaults = {\n\t\tselectorList: [],\n\t};\n\nfunction SectionLoader(element, options) {\n\tthis.element = element;\n\n\tthis.options = $.extend({}, defaults, options);\n\n\tthis._defaults = defaults;\n\tthis._name = pluginName;\n}\n\nSectionLoader.prototype = {\n\tajaxPageLoaded: function (e, data) {\n\t\tvar content = $(data),\n\t\t\tdoc = $(document);\n\t\tif (this.options.selectorList.length > 0) {\n\t\t\t$.each(this.options.selectorList, function (i, el) {\n\t\t\t\tvar tmpContent = '';\n\t\t\t\tif (typeof el == 'string') {\n\t\t\t\t\tvar tmpEl = content.find(el);\n\t\t\t\t\tif (tmpEl.length > 0) {\n\t\t\t\t\t\ttmpContent = tmpEl.html();\n\t\t\t\t\t\tdoc.find(el)\n\t\t\t\t\t\t\t.html(tmpContent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n};\n\n$.fn[pluginName] = function (options) {\n\treturn this.each(function () {\n\t\tif (!$.data(this, 'plugin_' + pluginName)) {\n\t\t\t$.data(this, 'plugin_' + pluginName, new SectionLoader(this, options));\n\t\t}\n\t});\n};\n"],"x_google_ignoreList":[]}