1import { n as r, a, c as l, __tla as __tla_0 } from "./index-BcKI4VVu.js"; 2import { p as d, __tla as __tla_1 } from "./popupNoForm-Usvs6Umf.js"; 3import { c as n, l as p, f as c, __tla as __tla_2 } from "./leftMenu-uE6CtL1L.js"; 4import { v as m } from "./vue-video-player-CeqSD_MD.js"; 5import "./vue-YCkcYIly.js"; 6import { __tla as __tla_3 } from "./jspdf-CNH8FDRb.js"; 7import "./@babel-CayUH5pS.js"; 8import "./fflate-B2WnmEVw.js"; 9import "./fast-png-RHEe-ix0.js"; 10import "./iobuffer-BmLRrqXH.js"; 11import "./pako-n3Pgozwg.js"; 12import "./vue-router-C7GX67NX.js"; 13import "./bootstrap-vue-DdCldPIN.js"; 14import "./vue-functional-data-merge-CapLYTHa.js"; 15import "./popper.js-OcIhinSd.js"; 16import "./portal-vue-amHJjtn9.js"; 17import "./vue-resource-BJqy4glj.js"; 18import "./vuex-D5w_rKlY.js"; 19import "./vue-simple-context-menu-CpDEU1UM.js"; 20import "./v-click-outside-CqgErTiO.js"; 21import "./@gtm-support-P2fER3iz.js"; 22import "./store-B7oX2KR-.js"; 23import "./tsml-CCoHubnL.js"; 24import "./safe-json-parse-CsbGUenf.js"; 25import "./xhr-DY68mADO.js"; 26import "./is-function-C0BzV8h3.js"; 27import "./parse-headers-gTWdwJKk.js"; 28import "./xtend-VQg9yHl6.js"; 29let J; 30let __tla = Promise.all([ 31 (() => { 32 try { 33 return __tla_0; 34 } catch (e) { 35 } 36 })(), 37 (() => { 38 try { 39 return __tla_1; 40 } catch (e) { 41 } 42 })(), 43 (() => { 44 try { 45 return __tla_2; 46 } catch (e) { 47 } 48 })(), 49 (() => { 50 try { 51 return __tla_3; 52 } catch (e) { 53 } 54 })() 55]).then(async () => { 56 const f = { 57 components: { 58 popup: d, 59 leftmenu: p, 60 videoPlayer: m.videoPlayer, 61 contenttitle: n 62 }, 63 data() { 64 return { 65 fileList: [], 66 mediaFile: { 67 fileName: "", 68 fileSize: "", 69 fileType: "", 70 fileURI: "", 71 groupName: "", 72 id: "", 73 modifyTime: "", 74 sort: 0, 75 thumbnailName: "", 76 thumbnailURI: "", 77 title: "" 78 }, 79 playerOptions: { 80 controls: true, 81 preload: "auto", 82 muted: false, 83 language: "zh-TW", 84 fluid: true, 85 playbackRates: [ 86 0.5, 87 1, 88 1.5, 89 2 90 ], 91 sources: [ 92 { 93 type: "video/mp4", 94 src: "" 95 } 96 ], 97 width: 300, 98 height: 100 99 } 100 }; 101 }, 102 mounted() { 103 l.newCMSFilePage().then((t) => { 104 this.fileList = t.body; 105 }); 106 }, 107 methods: { 108 formatDateTime: (t) => c.formatDateTime(t), 109 mediaItemClick(t) { 110 if (this.mediaFile.id === t.id) this.$refs.popup.show(); 111 else switch (t.fileType) { 112 case "pdf": 113 a.download({ 114 id: t.id 115 }).then((i) => { 116 let e = new Blob([ 117 i.body 118 ], { 119 type: "application/pdf" 120 }); 121 t.fileURI = window.URL.createObjectURL(e), this.mediaFile = t, this.$refs.popup.show(); 122 }).catch(() => console.log("error occured")); 123 break; 124 case "image": 125 a.getURI({ 126 id: t.id 127 }).then((i) => { 128 t.fileURI = i.body, this.mediaFile = t, this.$refs.popup.show(); 129 }).catch(() => console.log("error occured")); 130 break; 131 case "video": 132 a.getURI({ 133 id: t.id 134 }).then((i) => { 135 let e = i.body; 136 t.fileURI = e, this.mediaFile = t, this.playerOptions.sources[0].src = e, e.indexOf(".mp4?") > -1 ? this.playerOptions.sources[0].type = "video/mp4" : e.indexOf(".webm?") > -1 ? this.playerOptions.sources[0].type = "video/webm" : e.indexOf(".ogg?") > -1 && (this.playerOptions.sources[0].type = "video/ogg"), this.$refs.popup.show(); 137 }).catch(() => console.log("error occured")); 138 break; 139 case "other": 140 a.download({ 141 id: t.id 142 }).then((i) => { 143 const e = window.URL.createObjectURL(new Blob([ 144 i.body 145 ])), o = document.createElement("a"); 146 o.href = e, o.setAttribute("download", t.fileName), document.body.appendChild(o), o.click(); 147 }).catch(() => console.log("error occured")); 148 break; 149 } 150 }, 151 download() { 152 a.download({ 153 id: this.mediaFile.id 154 }).then((t) => { 155 const i = window.URL.createObjectURL(new Blob([ 156 t.body 157 ])), e = document.createElement("a"); 158 e.href = i, e.setAttribute("download", this.mediaFile.fileName), document.body.appendChild(e), e.click(); 159 }).catch(() => console.log("error occured")); 160 }, 161 popupHide() { 162 this.$refs.videoPlayer.player.pause(); 163 }, 164 loaded() { 165 $(".loading").hide(); 166 } 167 } 168 }; 169 var u = function() { 170 var i = this, e = i._self._c; 171 return e("div", [ 172 e("div", { 173 staticClass: "row" 174 }, i._l(i.fileList, function(o, s) { 175 return e("div", { 176 key: s, 177 staticClass: "col-md-4" 178 }, [ 179 e("div", { 180 class: { 181 "media-item": true, 182 "new-media-icon": o.isNew 183 }, 184 attrs: { 185 title: "Last Revised " + i.formatDateTime(o.modifyTime) 186 }, 187 on: { 188 click: function(b) { 189 return i.mediaItemClick(o); 190 } 191 } 192 }, [ 193 o.thumbnailURI !== void 0 ? e("div", { 194 staticClass: "position-relative" 195 }, [ 196 e("img", { 197 attrs: { 198 src: o.thumbnailURI 199 } 200 }) 201 ]) : e("div", { 202 staticClass: "icon position-relative" 203 }, [ 204 o.fileType != "other" ? e("i", { 205 class: "fa fa-file-" + o.fileType + "-o" 206 }) : i._e(), 207 o.fileType == "other" ? e("i", { 208 class: "fa fa-file-text-o" 209 }) : i._e() 210 ]), 211 e("span", { 212 staticClass: "media-type" 213 }, [ 214 i._v(i._s(o.fileType.toUpperCase())) 215 ]), 216 e("span", [ 217 i._v(i._s(o.title)) 218 ]) 219 ]), 220 e("div", { 221 staticClass: "media-description" 222 }, [ 223 i._v(i._s(o.description)) 224 ]) 225 ]); 226 }), 0), 227 e("popup", { 228 ref: "popup", 229 attrs: { 230 id: "popup", 231 title: i.mediaFile.title 232 }, 233 on: { 234 hide: i.popupHide 235 } 236 }, [ 237 i.mediaFile.fileType == "image" ? e("div", { 238 staticClass: "medialibrary fileImage" 239 }, [ 240 e("div", { 241 staticClass: "row" 242 }, [ 243 e("div", { 244 staticClass: "ml-4" 245 }, [ 246 e("button", { 247 staticClass: "btn btn-website-default btn-sm", 248 on: { 249 click: function(o) { 250 return i.download(); 251 } 252 } 253 }, [ 254 i._v("lang.download") 255 ]) 256 ]) 257 ]), 258 e("img", { 259 attrs: { 260 src: i.mediaFile.fileURI 261 } 262 }) 263 ]) : i.mediaFile.fileType == "pdf" ? e("div", [ 264 e("iframe", { 265 staticClass: "medialibrary", 266 attrs: { 267 src: i.mediaFile.fileURI 268 }, 269 on: { 270 load: function(o) { 271 return i.loaded(); 272 } 273 } 274 }) 275 ]) : i.mediaFile.fileType == "video" ? e("div", { 276 staticClass: "medialibrary fileVideo" 277 }, [ 278 e("video-player", { 279 ref: "videoPlayer", 280 staticClass: "video-player-box", 281 attrs: { 282 options: i.playerOptions, 283 playsinline: true, 284 customEventName: "customstatechangedeventname" 285 } 286 }) 287 ], 1) : i._e() 288 ]) 289 ], 1); 290 }, h = [], y = r(f, u, h); 291 J = y.exports; 292}); 293export { 294 __tla, 295 J as default 296};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.