{"version":3,"sources":["_layouts/core/quickLinks/quicklinkstab.js"],"names":["Librarian","QuickLinksTab","Class","Extends","MUI","Panel","Binds","options","id","title","collapsible","resizable","headerToolbox","header","classPrefix","padding","top","right","bottom","left","fileName","confirm","accordions","loaded","initialize","this","setOptions","onContentLoaded","htmlLoaded","parent","destroy","i","length","close","url","containerEl","$","path","getMethodUrl","encodeURIComponent","request","Request","JSON","onSuccess","json","setHtml","Text","bind","onFailure","Utils","send","html","set"],"mappings":"AAAAA,UAAAC,cAAA,IAAAC,MAAA,CACAC,QAAAC,IAAAC,MACAC,MAAA,CAAA,aAAA,WAEAC,QAAA,CACAC,GAAA,kBACAC,MAAA,GACAC,aAAA,EACAC,WAAA,EACAC,eAAA,EACAC,QAAA,EACAC,YAAA,aACAC,QAAA,CAAAC,IAAA,EAAAC,MAAA,EAAAC,OAAA,EAAAC,KAAA,GACAC,SAAA,mBAGAC,QAAA,KACAC,WAAA,GACAC,QAAA,EAEAC,WAAA,SAAAjB,GACAkB,KAAAC,WAAAnB,GAEAkB,KAAAlB,QAAAoB,gBAAAF,KAAAG,WAEAH,KAAAI,OAAAJ,KAAAlB,UAGAuB,QAAA,WACA,IAAA,IAAAC,EAAAN,KAAAH,WAAAU,OAAAD,KACAN,KAAAH,WAAAS,GAAAD,UACAL,KAAAH,WAAAS,GAAA,KAEAN,KAAAH,WAAAU,OAAA,KAEAP,KAAAJ,UACAI,KAAAJ,QAAAY,QACAR,KAAAJ,QAAA,OAIAO,WAAA,WAIA,IAEAM,EAJAT,KAAAU,YAAAC,EAAA,mBAEA,iBAAAX,KAAAlB,QAAAa,WAEAc,EAAAlC,UAAAqC,KAAAC,aAAA,gBAAA,2BAAAC,mBAAAd,KAAAlB,QAAAa,UAEAK,KAAAe,QAAA,IAAAxC,UAAAyC,QAAAC,KAAA,CACAR,IAAAA,EACAS,UAAA,SAAAC,GACAA,GAGAnB,KAAAoB,QAAAD,EAAAE,OACAC,KAAAtB,MACAuB,UAAAhD,UAAAiD,MAAAD,YAEAvB,KAAAe,QAAAU,SAIAL,QAAA,SAAAM,GAEA1B,KAAAU,YAAAiB,IAAA,OAAAD","file":"_layouts\\core\\quickLinks\\quickLinks.bundle.min.js","sourcesContent":["Librarian.QuickLinksTab = new Class({\r\n Extends: MUI.Panel,\r\n Binds: [\"htmlLoaded\", \"setHtml\"],\r\n\r\n options: {\r\n id: \"quickLinksPanel\",\r\n title: '',\r\n collapsible: false,\r\n resizable: false,\r\n headerToolbox: false,\r\n header: false,\r\n classPrefix: \"quickLinks\",\r\n padding: { top: 0, right: 0, bottom: 0, left: 0 },\r\n fileName: \"quickLinks.html\"\r\n },\r\n\r\n confirm: null,\r\n accordions: [],\r\n loaded: false, \r\n\r\n initialize: function(options) {\r\n this.setOptions(options);\r\n\r\n this.options.onContentLoaded = this.htmlLoaded;\r\n\r\n this.parent(this.options);\r\n },\r\n\r\n destroy: function() {\r\n for (var i = this.accordions.length; i--;) {\r\n this.accordions[i].destroy();\r\n this.accordions[i] = null;\r\n }\r\n this.accordions.length = null;\r\n\r\n if (this.confirm) {\r\n this.confirm.close();\r\n this.confirm = null;\r\n }\r\n },\r\n\r\n htmlLoaded: function() {\r\n\r\n this.containerEl = $(\"quickLinksPanel\");\r\n\r\n if (typeof this.options.fileName == \"string\") {\r\n // Generate the URL\r\n var url = Librarian.path.getMethodUrl(\"getslidetext\") + \"&out=ujson&snum=1&fname=\" + encodeURIComponent(this.options.fileName);\r\n\r\n this.request = new Librarian.Request.JSON({\r\n url: url,\r\n onSuccess: function(json) {\r\n if (!json)\r\n return;\r\n\r\n this.setHtml(json.Text);\r\n }.bind(this),\r\n onFailure: Librarian.Utils.onFailure\r\n });\r\n this.request.send();\r\n }\r\n },\r\n\r\n setHtml: function(html) {\r\n // Set the container's HTML to the given text\r\n this.containerEl.set(\"html\", html);\r\n }\r\n});"]}