ofd-view 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +52 -9
- package/lib/ofd-view.common.js +1 -1652
- package/lib/ofd-view.common.js.map +1 -1
- package/lib/ofd-view.umd.js +1 -1663
- package/lib/ofd-view.umd.js.map +1 -1
- package/lib/ofd-view.umd.min.js +1 -1
- package/lib/ofd-view.umd.min.js.map +1 -1
- package/package.json +7 -2
package/lib/ofd-view.umd.js
CHANGED
@@ -1,1664 +1,2 @@
|
|
1
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory();
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
5
|
-
define([], factory);
|
6
|
-
else if(typeof exports === 'object')
|
7
|
-
exports["ofd-view"] = factory();
|
8
|
-
else
|
9
|
-
root["ofd-view"] = factory();
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function() {
|
11
|
-
return /******/ (function() { // webpackBootstrap
|
12
|
-
/******/ var __webpack_modules__ = ({
|
13
|
-
|
14
|
-
/***/ 995:
|
15
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
16
|
-
|
17
|
-
"use strict";
|
18
|
-
__webpack_require__.r(__webpack_exports__);
|
19
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
|
20
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
21
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
|
22
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
23
|
-
// Imports
|
24
|
-
|
25
|
-
|
26
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
27
|
-
// Module
|
28
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-316ef3a2]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-316ef3a2]{display:none}.vdr[data-v-316ef3a2]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-316ef3a2]{display:block}.handle[data-v-316ef3a2]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-316ef3a2]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-316ef3a2]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-316ef3a2]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-316ef3a2]{left:-10px;cursor:w-resize}.handle-ml[data-v-316ef3a2],.handle-mr[data-v-316ef3a2]{top:50%;margin-top:-5px}.handle-mr[data-v-316ef3a2]{right:-10px;cursor:e-resize}.handle-bl[data-v-316ef3a2]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-316ef3a2]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-316ef3a2]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-316ef3a2]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-316ef3a2]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-316ef3a2]:before{content:\"\\2716\"}.close[data-v-316ef3a2]{top:5px;right:2px;position:absolute}", ""]);
|
29
|
-
// Exports
|
30
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
31
|
-
|
32
|
-
|
33
|
-
/***/ }),
|
34
|
-
|
35
|
-
/***/ 463:
|
36
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
37
|
-
|
38
|
-
"use strict";
|
39
|
-
__webpack_require__.r(__webpack_exports__);
|
40
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
|
41
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
42
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
|
43
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
44
|
-
// Imports
|
45
|
-
|
46
|
-
|
47
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
48
|
-
// Module
|
49
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".stamp[data-v-18db0fa8]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}", ""]);
|
50
|
-
// Exports
|
51
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
52
|
-
|
53
|
-
|
54
|
-
/***/ }),
|
55
|
-
|
56
|
-
/***/ 645:
|
57
|
-
/***/ (function(module) {
|
58
|
-
|
59
|
-
"use strict";
|
60
|
-
|
61
|
-
|
62
|
-
/*
|
63
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
64
|
-
Author Tobias Koppers @sokra
|
65
|
-
*/
|
66
|
-
module.exports = function (cssWithMappingToString) {
|
67
|
-
var list = []; // return the list of modules as css string
|
68
|
-
|
69
|
-
list.toString = function toString() {
|
70
|
-
return this.map(function (item) {
|
71
|
-
var content = "";
|
72
|
-
var needLayer = typeof item[5] !== "undefined";
|
73
|
-
|
74
|
-
if (item[4]) {
|
75
|
-
content += "@supports (".concat(item[4], ") {");
|
76
|
-
}
|
77
|
-
|
78
|
-
if (item[2]) {
|
79
|
-
content += "@media ".concat(item[2], " {");
|
80
|
-
}
|
81
|
-
|
82
|
-
if (needLayer) {
|
83
|
-
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
84
|
-
}
|
85
|
-
|
86
|
-
content += cssWithMappingToString(item);
|
87
|
-
|
88
|
-
if (needLayer) {
|
89
|
-
content += "}";
|
90
|
-
}
|
91
|
-
|
92
|
-
if (item[2]) {
|
93
|
-
content += "}";
|
94
|
-
}
|
95
|
-
|
96
|
-
if (item[4]) {
|
97
|
-
content += "}";
|
98
|
-
}
|
99
|
-
|
100
|
-
return content;
|
101
|
-
}).join("");
|
102
|
-
}; // import a list of modules into the list
|
103
|
-
|
104
|
-
|
105
|
-
list.i = function i(modules, media, dedupe, supports, layer) {
|
106
|
-
if (typeof modules === "string") {
|
107
|
-
modules = [[null, modules, undefined]];
|
108
|
-
}
|
109
|
-
|
110
|
-
var alreadyImportedModules = {};
|
111
|
-
|
112
|
-
if (dedupe) {
|
113
|
-
for (var k = 0; k < this.length; k++) {
|
114
|
-
var id = this[k][0];
|
115
|
-
|
116
|
-
if (id != null) {
|
117
|
-
alreadyImportedModules[id] = true;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
|
-
for (var _k = 0; _k < modules.length; _k++) {
|
123
|
-
var item = [].concat(modules[_k]);
|
124
|
-
|
125
|
-
if (dedupe && alreadyImportedModules[item[0]]) {
|
126
|
-
continue;
|
127
|
-
}
|
128
|
-
|
129
|
-
if (typeof layer !== "undefined") {
|
130
|
-
if (typeof item[5] === "undefined") {
|
131
|
-
item[5] = layer;
|
132
|
-
} else {
|
133
|
-
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
134
|
-
item[5] = layer;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
|
138
|
-
if (media) {
|
139
|
-
if (!item[2]) {
|
140
|
-
item[2] = media;
|
141
|
-
} else {
|
142
|
-
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
143
|
-
item[2] = media;
|
144
|
-
}
|
145
|
-
}
|
146
|
-
|
147
|
-
if (supports) {
|
148
|
-
if (!item[4]) {
|
149
|
-
item[4] = "".concat(supports);
|
150
|
-
} else {
|
151
|
-
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
152
|
-
item[4] = supports;
|
153
|
-
}
|
154
|
-
}
|
155
|
-
|
156
|
-
list.push(item);
|
157
|
-
}
|
158
|
-
};
|
159
|
-
|
160
|
-
return list;
|
161
|
-
};
|
162
|
-
|
163
|
-
/***/ }),
|
164
|
-
|
165
|
-
/***/ 81:
|
166
|
-
/***/ (function(module) {
|
167
|
-
|
168
|
-
"use strict";
|
169
|
-
|
170
|
-
|
171
|
-
module.exports = function (i) {
|
172
|
-
return i[1];
|
173
|
-
};
|
174
|
-
|
175
|
-
/***/ }),
|
176
|
-
|
177
|
-
/***/ 190:
|
178
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
179
|
-
|
180
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
181
|
-
|
182
|
-
// load the styles
|
183
|
-
var content = __webpack_require__(995);
|
184
|
-
if(content.__esModule) content = content.default;
|
185
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
186
|
-
if(content.locals) module.exports = content.locals;
|
187
|
-
// add the styles to the DOM
|
188
|
-
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
189
|
-
var update = add("49ea6102", content, true, {"sourceMap":false,"shadowMode":false});
|
190
|
-
|
191
|
-
/***/ }),
|
192
|
-
|
193
|
-
/***/ 913:
|
194
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
195
|
-
|
196
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
197
|
-
|
198
|
-
// load the styles
|
199
|
-
var content = __webpack_require__(463);
|
200
|
-
if(content.__esModule) content = content.default;
|
201
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
202
|
-
if(content.locals) module.exports = content.locals;
|
203
|
-
// add the styles to the DOM
|
204
|
-
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
205
|
-
var update = add("7b621b58", content, true, {"sourceMap":false,"shadowMode":false});
|
206
|
-
|
207
|
-
/***/ }),
|
208
|
-
|
209
|
-
/***/ 402:
|
210
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
211
|
-
|
212
|
-
"use strict";
|
213
|
-
|
214
|
-
// EXPORTS
|
215
|
-
__webpack_require__.d(__webpack_exports__, {
|
216
|
-
"Z": function() { return /* binding */ addStylesClient; }
|
217
|
-
});
|
218
|
-
|
219
|
-
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
|
220
|
-
/**
|
221
|
-
* Translates the list format produced by css-loader into something
|
222
|
-
* easier to manipulate.
|
223
|
-
*/
|
224
|
-
function listToStyles (parentId, list) {
|
225
|
-
var styles = []
|
226
|
-
var newStyles = {}
|
227
|
-
for (var i = 0; i < list.length; i++) {
|
228
|
-
var item = list[i]
|
229
|
-
var id = item[0]
|
230
|
-
var css = item[1]
|
231
|
-
var media = item[2]
|
232
|
-
var sourceMap = item[3]
|
233
|
-
var part = {
|
234
|
-
id: parentId + ':' + i,
|
235
|
-
css: css,
|
236
|
-
media: media,
|
237
|
-
sourceMap: sourceMap
|
238
|
-
}
|
239
|
-
if (!newStyles[id]) {
|
240
|
-
styles.push(newStyles[id] = { id: id, parts: [part] })
|
241
|
-
} else {
|
242
|
-
newStyles[id].parts.push(part)
|
243
|
-
}
|
244
|
-
}
|
245
|
-
return styles
|
246
|
-
}
|
247
|
-
|
248
|
-
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
|
249
|
-
/*
|
250
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
251
|
-
Author Tobias Koppers @sokra
|
252
|
-
Modified by Evan You @yyx990803
|
253
|
-
*/
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
var hasDocument = typeof document !== 'undefined'
|
258
|
-
|
259
|
-
if (typeof DEBUG !== 'undefined' && DEBUG) {
|
260
|
-
if (!hasDocument) {
|
261
|
-
throw new Error(
|
262
|
-
'vue-style-loader cannot be used in a non-browser environment. ' +
|
263
|
-
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
264
|
-
) }
|
265
|
-
}
|
266
|
-
|
267
|
-
/*
|
268
|
-
type StyleObject = {
|
269
|
-
id: number;
|
270
|
-
parts: Array<StyleObjectPart>
|
271
|
-
}
|
272
|
-
|
273
|
-
type StyleObjectPart = {
|
274
|
-
css: string;
|
275
|
-
media: string;
|
276
|
-
sourceMap: ?string
|
277
|
-
}
|
278
|
-
*/
|
279
|
-
|
280
|
-
var stylesInDom = {/*
|
281
|
-
[id: number]: {
|
282
|
-
id: number,
|
283
|
-
refs: number,
|
284
|
-
parts: Array<(obj?: StyleObjectPart) => void>
|
285
|
-
}
|
286
|
-
*/}
|
287
|
-
|
288
|
-
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
|
289
|
-
var singletonElement = null
|
290
|
-
var singletonCounter = 0
|
291
|
-
var isProduction = false
|
292
|
-
var noop = function () {}
|
293
|
-
var options = null
|
294
|
-
var ssrIdKey = 'data-vue-ssr-id'
|
295
|
-
|
296
|
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
297
|
-
// tags it will allow on a page
|
298
|
-
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
|
299
|
-
|
300
|
-
function addStylesClient (parentId, list, _isProduction, _options) {
|
301
|
-
isProduction = _isProduction
|
302
|
-
|
303
|
-
options = _options || {}
|
304
|
-
|
305
|
-
var styles = listToStyles(parentId, list)
|
306
|
-
addStylesToDom(styles)
|
307
|
-
|
308
|
-
return function update (newList) {
|
309
|
-
var mayRemove = []
|
310
|
-
for (var i = 0; i < styles.length; i++) {
|
311
|
-
var item = styles[i]
|
312
|
-
var domStyle = stylesInDom[item.id]
|
313
|
-
domStyle.refs--
|
314
|
-
mayRemove.push(domStyle)
|
315
|
-
}
|
316
|
-
if (newList) {
|
317
|
-
styles = listToStyles(parentId, newList)
|
318
|
-
addStylesToDom(styles)
|
319
|
-
} else {
|
320
|
-
styles = []
|
321
|
-
}
|
322
|
-
for (var i = 0; i < mayRemove.length; i++) {
|
323
|
-
var domStyle = mayRemove[i]
|
324
|
-
if (domStyle.refs === 0) {
|
325
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
326
|
-
domStyle.parts[j]()
|
327
|
-
}
|
328
|
-
delete stylesInDom[domStyle.id]
|
329
|
-
}
|
330
|
-
}
|
331
|
-
}
|
332
|
-
}
|
333
|
-
|
334
|
-
function addStylesToDom (styles /* Array<StyleObject> */) {
|
335
|
-
for (var i = 0; i < styles.length; i++) {
|
336
|
-
var item = styles[i]
|
337
|
-
var domStyle = stylesInDom[item.id]
|
338
|
-
if (domStyle) {
|
339
|
-
domStyle.refs++
|
340
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
341
|
-
domStyle.parts[j](item.parts[j])
|
342
|
-
}
|
343
|
-
for (; j < item.parts.length; j++) {
|
344
|
-
domStyle.parts.push(addStyle(item.parts[j]))
|
345
|
-
}
|
346
|
-
if (domStyle.parts.length > item.parts.length) {
|
347
|
-
domStyle.parts.length = item.parts.length
|
348
|
-
}
|
349
|
-
} else {
|
350
|
-
var parts = []
|
351
|
-
for (var j = 0; j < item.parts.length; j++) {
|
352
|
-
parts.push(addStyle(item.parts[j]))
|
353
|
-
}
|
354
|
-
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
|
355
|
-
}
|
356
|
-
}
|
357
|
-
}
|
358
|
-
|
359
|
-
function createStyleElement () {
|
360
|
-
var styleElement = document.createElement('style')
|
361
|
-
styleElement.type = 'text/css'
|
362
|
-
head.appendChild(styleElement)
|
363
|
-
return styleElement
|
364
|
-
}
|
365
|
-
|
366
|
-
function addStyle (obj /* StyleObjectPart */) {
|
367
|
-
var update, remove
|
368
|
-
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
|
369
|
-
|
370
|
-
if (styleElement) {
|
371
|
-
if (isProduction) {
|
372
|
-
// has SSR styles and in production mode.
|
373
|
-
// simply do nothing.
|
374
|
-
return noop
|
375
|
-
} else {
|
376
|
-
// has SSR styles but in dev mode.
|
377
|
-
// for some reason Chrome can't handle source map in server-rendered
|
378
|
-
// style tags - source maps in <style> only works if the style tag is
|
379
|
-
// created and inserted dynamically. So we remove the server rendered
|
380
|
-
// styles and inject new ones.
|
381
|
-
styleElement.parentNode.removeChild(styleElement)
|
382
|
-
}
|
383
|
-
}
|
384
|
-
|
385
|
-
if (isOldIE) {
|
386
|
-
// use singleton mode for IE9.
|
387
|
-
var styleIndex = singletonCounter++
|
388
|
-
styleElement = singletonElement || (singletonElement = createStyleElement())
|
389
|
-
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
|
390
|
-
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
|
391
|
-
} else {
|
392
|
-
// use multi-style-tag mode in all other cases
|
393
|
-
styleElement = createStyleElement()
|
394
|
-
update = applyToTag.bind(null, styleElement)
|
395
|
-
remove = function () {
|
396
|
-
styleElement.parentNode.removeChild(styleElement)
|
397
|
-
}
|
398
|
-
}
|
399
|
-
|
400
|
-
update(obj)
|
401
|
-
|
402
|
-
return function updateStyle (newObj /* StyleObjectPart */) {
|
403
|
-
if (newObj) {
|
404
|
-
if (newObj.css === obj.css &&
|
405
|
-
newObj.media === obj.media &&
|
406
|
-
newObj.sourceMap === obj.sourceMap) {
|
407
|
-
return
|
408
|
-
}
|
409
|
-
update(obj = newObj)
|
410
|
-
} else {
|
411
|
-
remove()
|
412
|
-
}
|
413
|
-
}
|
414
|
-
}
|
415
|
-
|
416
|
-
var replaceText = (function () {
|
417
|
-
var textStore = []
|
418
|
-
|
419
|
-
return function (index, replacement) {
|
420
|
-
textStore[index] = replacement
|
421
|
-
return textStore.filter(Boolean).join('\n')
|
422
|
-
}
|
423
|
-
})()
|
424
|
-
|
425
|
-
function applyToSingletonTag (styleElement, index, remove, obj) {
|
426
|
-
var css = remove ? '' : obj.css
|
427
|
-
|
428
|
-
if (styleElement.styleSheet) {
|
429
|
-
styleElement.styleSheet.cssText = replaceText(index, css)
|
430
|
-
} else {
|
431
|
-
var cssNode = document.createTextNode(css)
|
432
|
-
var childNodes = styleElement.childNodes
|
433
|
-
if (childNodes[index]) styleElement.removeChild(childNodes[index])
|
434
|
-
if (childNodes.length) {
|
435
|
-
styleElement.insertBefore(cssNode, childNodes[index])
|
436
|
-
} else {
|
437
|
-
styleElement.appendChild(cssNode)
|
438
|
-
}
|
439
|
-
}
|
440
|
-
}
|
441
|
-
|
442
|
-
function applyToTag (styleElement, obj) {
|
443
|
-
var css = obj.css
|
444
|
-
var media = obj.media
|
445
|
-
var sourceMap = obj.sourceMap
|
446
|
-
|
447
|
-
if (media) {
|
448
|
-
styleElement.setAttribute('media', media)
|
449
|
-
}
|
450
|
-
if (options.ssrId) {
|
451
|
-
styleElement.setAttribute(ssrIdKey, obj.id)
|
452
|
-
}
|
453
|
-
|
454
|
-
if (sourceMap) {
|
455
|
-
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
456
|
-
// this makes source maps inside style tags work properly in Chrome
|
457
|
-
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
|
458
|
-
// http://stackoverflow.com/a/26603875
|
459
|
-
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
|
460
|
-
}
|
461
|
-
|
462
|
-
if (styleElement.styleSheet) {
|
463
|
-
styleElement.styleSheet.cssText = css
|
464
|
-
} else {
|
465
|
-
while (styleElement.firstChild) {
|
466
|
-
styleElement.removeChild(styleElement.firstChild)
|
467
|
-
}
|
468
|
-
styleElement.appendChild(document.createTextNode(css))
|
469
|
-
}
|
470
|
-
}
|
471
|
-
|
472
|
-
|
473
|
-
/***/ })
|
474
|
-
|
475
|
-
/******/ });
|
476
|
-
/************************************************************************/
|
477
|
-
/******/ // The module cache
|
478
|
-
/******/ var __webpack_module_cache__ = {};
|
479
|
-
/******/
|
480
|
-
/******/ // The require function
|
481
|
-
/******/ function __webpack_require__(moduleId) {
|
482
|
-
/******/ // Check if module is in cache
|
483
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
484
|
-
/******/ if (cachedModule !== undefined) {
|
485
|
-
/******/ return cachedModule.exports;
|
486
|
-
/******/ }
|
487
|
-
/******/ // Create a new module (and put it into the cache)
|
488
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
489
|
-
/******/ id: moduleId,
|
490
|
-
/******/ // no module.loaded needed
|
491
|
-
/******/ exports: {}
|
492
|
-
/******/ };
|
493
|
-
/******/
|
494
|
-
/******/ // Execute the module function
|
495
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
496
|
-
/******/
|
497
|
-
/******/ // Return the exports of the module
|
498
|
-
/******/ return module.exports;
|
499
|
-
/******/ }
|
500
|
-
/******/
|
501
|
-
/************************************************************************/
|
502
|
-
/******/ /* webpack/runtime/compat get default export */
|
503
|
-
/******/ !function() {
|
504
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
505
|
-
/******/ __webpack_require__.n = function(module) {
|
506
|
-
/******/ var getter = module && module.__esModule ?
|
507
|
-
/******/ function() { return module['default']; } :
|
508
|
-
/******/ function() { return module; };
|
509
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
510
|
-
/******/ return getter;
|
511
|
-
/******/ };
|
512
|
-
/******/ }();
|
513
|
-
/******/
|
514
|
-
/******/ /* webpack/runtime/define property getters */
|
515
|
-
/******/ !function() {
|
516
|
-
/******/ // define getter functions for harmony exports
|
517
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
518
|
-
/******/ for(var key in definition) {
|
519
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
520
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
521
|
-
/******/ }
|
522
|
-
/******/ }
|
523
|
-
/******/ };
|
524
|
-
/******/ }();
|
525
|
-
/******/
|
526
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
527
|
-
/******/ !function() {
|
528
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
529
|
-
/******/ }();
|
530
|
-
/******/
|
531
|
-
/******/ /* webpack/runtime/make namespace object */
|
532
|
-
/******/ !function() {
|
533
|
-
/******/ // define __esModule on exports
|
534
|
-
/******/ __webpack_require__.r = function(exports) {
|
535
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
536
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
537
|
-
/******/ }
|
538
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
539
|
-
/******/ };
|
540
|
-
/******/ }();
|
541
|
-
/******/
|
542
|
-
/******/ /* webpack/runtime/publicPath */
|
543
|
-
/******/ !function() {
|
544
|
-
/******/ __webpack_require__.p = "";
|
545
|
-
/******/ }();
|
546
|
-
/******/
|
547
|
-
/************************************************************************/
|
548
|
-
var __webpack_exports__ = {};
|
549
|
-
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
550
|
-
!function() {
|
551
|
-
"use strict";
|
552
|
-
// ESM COMPAT FLAG
|
553
|
-
__webpack_require__.r(__webpack_exports__);
|
554
|
-
|
555
|
-
// EXPORTS
|
556
|
-
__webpack_require__.d(__webpack_exports__, {
|
557
|
-
"default": function() { return /* binding */ entry_lib; }
|
558
|
-
});
|
559
|
-
|
560
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
561
|
-
/* eslint-disable no-var */
|
562
|
-
// This file is imported into lib/wc client bundles.
|
563
|
-
|
564
|
-
if (typeof window !== 'undefined') {
|
565
|
-
var currentScript = window.document.currentScript
|
566
|
-
if (false) { var getCurrentScript; }
|
567
|
-
|
568
|
-
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
569
|
-
if (src) {
|
570
|
-
__webpack_require__.p = src[1] // eslint-disable-line
|
571
|
-
}
|
572
|
-
}
|
573
|
-
|
574
|
-
// Indicate to webpack that this file can be concatenated
|
575
|
-
/* harmony default export */ var setPublicPath = (null);
|
576
|
-
|
577
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=18db0fa8&scoped=true&
|
578
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_vm._m(0),_vm._v(" "),_c('div',{attrs:{"id":"mainContainer"}},[_vm._m(1),_vm._v(" "),_vm._m(2),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"},on:{"dragover":function($event){$event.preventDefault();return _vm.onStampDragOver.apply(null, arguments)}}},_vm._l((_vm.stamps),function(stamp,index){return (_vm.viewVisible)?_c('vue-draggable-resizable',{attrs:{"w":stamp.w ? stamp.w : 174,"h":stamp.h ? stamp.h : 174,"parent":_vm.config.viewerContainer,"customForStamp":true,"eventBus":_vm.eventBus,"handles":['tl', 'tr', 'bl', 'br'],"index":index,"x":stamp.x,"y":stamp.located ? stamp.y : stamp.y + _vm.config.mainContainer.scrollTop,"pages":_vm.ofdViewer._pages,"currentPage":_vm.sp,"origin-bottom":false,"stampId":stamp.source.stampId,"draggable":_vm.draggable,"resizable":_vm.resizable,"editable":_vm.editable},on:{"dropitem":_vm.removeStamp,"dragstop":_vm.onStampDragStop,"placed":_vm.placed}},[_c('div',{staticClass:"stamp",style:({backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'})})]):_vm._e()}),1),_vm._t("openFileRef")],2),_vm._m(3)]),_vm._v(" "),_vm._m(4)])
|
579
|
-
}
|
580
|
-
var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"sidebarContainer"}},[_c('div',{attrs:{"id":"toolbarSidebar"}},[_c('div',{attrs:{"id":"toolbarSidebarLeft"}},[_c('div',{staticClass:"splitToolbarButton toggled",attrs:{"id":"sidebarViewButtons","role":"radiogroup"}},[_c('button',{staticClass:"toolbarButton toggled",attrs:{"id":"viewOutline","title":"Show Document Outline (double-click to expand/collapse all items)","tabindex":"3","data-l10n-id":"document_outline","role":"radio","aria-checked":"false","aria-controls":"outlineView"}},[_c('span',{attrs:{"data-l10n-id":"document_outline_label"}},[_vm._v("Document Outline")])]),_c('button',{staticClass:"toolbarButton",attrs:{"id":"viewAttachments","title":"Show Attachments","tabindex":"4","data-l10n-id":"attachments","role":"radio","aria-checked":"false","aria-controls":"attachmentsView"}},[_c('span',{attrs:{"data-l10n-id":"attachments_label"}},[_vm._v("Attachments")])]),_c('button',{staticClass:"toolbarButton",attrs:{"id":"viewSignatures","title":"Show Signatures","tabindex":"6","data-l10n-id":"layers","role":"radio","aria-checked":"false","aria-controls":"signaturesView"}},[_c('span',{attrs:{"data-l10n-id":"signatures_label"}},[_vm._v("Signatures")])])])]),_c('div',{attrs:{"id":"toolbarSidebarRight"}},[_c('div',{staticClass:"hidden",attrs:{"id":"outlineOptionsContainer"}},[_c('div',{staticClass:"verticalToolbarSeparator"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"currentOutlineItem","disabled":"disabled","title":"Find Current Outline Item","tabindex":"6","data-l10n-id":"current_outline_item"}},[_c('span',{attrs:{"data-l10n-id":"current_outline_item_label"}},[_vm._v("Current Outline Item")])])])])]),_c('div',{attrs:{"id":"sidebarContent"}},[_c('div',{attrs:{"id":"outlineView"}}),_c('div',{staticClass:"hidden",attrs:{"id":"attachmentsView"}}),_c('div',{staticClass:"hidden",attrs:{"id":"signaturesView"}})]),_c('div',{attrs:{"id":"sidebarResizer"}})])
|
581
|
-
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{"id":"secondaryToolbar"}},[_c('div',{attrs:{"id":"secondaryToolbarButtonContainer"}},[_c('button',{staticClass:"secondaryToolbarButton openFile visibleLargeView",attrs:{"id":"secondaryOpenFile","title":"打开文件","tabindex":"52","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"secondaryToolbarButton print visibleMediumView",attrs:{"id":"secondaryPrint","title":"打印","tabindex":"53","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('button',{staticClass:"secondaryToolbarButton download visibleMediumView",attrs:{"id":"secondaryDownload","title":"Download","tabindex":"54","data-l10n-id":"download"}},[_c('span',{attrs:{"data-l10n-id":"download_label"}},[_vm._v("Download")])]),_c('a',{staticClass:"secondaryToolbarButton bookmark visibleSmallView",attrs:{"href":"#","id":"secondaryViewBookmark","title":"Current view (copy or open in new window)","tabindex":"55","data-l10n-id":"bookmark"}},[_c('span',{attrs:{"data-l10n-id":"bookmark_label"}},[_vm._v("Current View")])]),_c('div',{staticClass:"horizontalToolbarSeparator visibleLargeView"}),_c('button',{staticClass:"secondaryToolbarButton firstPage",attrs:{"id":"firstPage","title":"Go to First Page","tabindex":"56","data-l10n-id":"first_page"}},[_c('span',{attrs:{"data-l10n-id":"first_page_label"}},[_vm._v("Go to First Page")])]),_c('button',{staticClass:"secondaryToolbarButton lastPage",attrs:{"id":"lastPage","title":"Go to Last Page","tabindex":"57","data-l10n-id":"last_page"}},[_c('span',{attrs:{"data-l10n-id":"last_page_label"}},[_vm._v("Go to Last Page")])]),_c('div',{staticClass:"horizontalToolbarSeparator"}),_c('button',{staticClass:"secondaryToolbarButton rotateCw",attrs:{"id":"pageRotateCw","title":"Rotate Clockwise","tabindex":"58","data-l10n-id":"page_rotate_cw"}},[_c('span',{attrs:{"data-l10n-id":"page_rotate_cw_label"}},[_vm._v("Rotate Clockwise")])]),_c('button',{staticClass:"secondaryToolbarButton rotateCcw",attrs:{"id":"pageRotateCcw","title":"Rotate Counterclockwise","tabindex":"59","data-l10n-id":"page_rotate_ccw"}},[_c('span',{attrs:{"data-l10n-id":"page_rotate_ccw_label"}},[_vm._v("Rotate Counterclockwise")])]),_c('div',{staticClass:"horizontalToolbarSeparator"}),_c('div',{attrs:{"id":"cursorToolButtons","role":"radiogroup"}},[_c('button',{staticClass:"secondaryToolbarButton selectTool toggled",attrs:{"id":"cursorSelectTool","title":"Enable Text Selection Tool","tabindex":"60","data-l10n-id":"cursor_text_select_tool","role":"radio","aria-checked":"true"}},[_c('span',{attrs:{"data-l10n-id":"cursor_text_select_tool_label"}},[_vm._v("Text Selection Tool")])]),_c('button',{staticClass:"secondaryToolbarButton handTool",attrs:{"id":"cursorHandTool","title":"Enable Hand Tool","tabindex":"61","data-l10n-id":"cursor_hand_tool","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"cursor_hand_tool_label"}},[_vm._v("Hand Tool")])])]),_c('div',{attrs:{"id":"scrollModeButtons","role":"radiogroup"}},[_c('div',{staticClass:"horizontalToolbarSeparator"}),_c('button',{staticClass:"secondaryToolbarButton scrollPage",attrs:{"id":"scrollPage","title":"Use Page Scrolling","tabindex":"62","data-l10n-id":"scroll_page","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"scroll_page_label"}},[_vm._v("Page Scrolling")])]),_c('button',{staticClass:"secondaryToolbarButton scrollVertical toggled",attrs:{"id":"scrollVertical","title":"Use Vertical Scrolling","tabindex":"63","data-l10n-id":"scroll_vertical","role":"radio","aria-checked":"true"}},[_c('span',{attrs:{"data-l10n-id":"scroll_vertical_label"}},[_vm._v("Vertical Scrolling")])]),_c('button',{staticClass:"secondaryToolbarButton scrollHorizontal",attrs:{"id":"scrollHorizontal","title":"Use Horizontal Scrolling","tabindex":"64","data-l10n-id":"scroll_horizontal","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"scroll_horizontal_label"}},[_vm._v("Horizontal Scrolling")])]),_c('button',{staticClass:"secondaryToolbarButton scrollWrapped",attrs:{"id":"scrollWrapped","title":"Use Wrapped Scrolling","tabindex":"65","data-l10n-id":"scroll_wrapped","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"scroll_wrapped_label"}},[_vm._v("Wrapped Scrolling")])])]),_c('div',{attrs:{"id":"spreadModeButtons","role":"radiogroup"}},[_c('div',{staticClass:"horizontalToolbarSeparator"}),_c('button',{staticClass:"secondaryToolbarButton spreadNone toggled",attrs:{"id":"spreadNone","title":"Do not join page spreads","tabindex":"66","data-l10n-id":"spread_none","role":"radio","aria-checked":"true"}},[_c('span',{attrs:{"data-l10n-id":"spread_none_label"}},[_vm._v("No Spreads")])]),_c('button',{staticClass:"secondaryToolbarButton spreadOdd",attrs:{"id":"spreadOdd","title":"Join page spreads starting with odd-numbered pages","tabindex":"67","data-l10n-id":"spread_odd","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"spread_odd_label"}},[_vm._v("Odd Spreads")])]),_c('button',{staticClass:"secondaryToolbarButton spreadEven",attrs:{"id":"spreadEven","title":"Join page spreads starting with even-numbered pages","tabindex":"68","data-l10n-id":"spread_even","role":"radio","aria-checked":"false"}},[_c('span',{attrs:{"data-l10n-id":"spread_even_label"}},[_vm._v("Even Spreads")])])]),_c('div',{staticClass:"horizontalToolbarSeparator"}),_c('button',{staticClass:"secondaryToolbarButton documentProperties",attrs:{"id":"documentProperties","title":"文档属性…","tabindex":"69","data-l10n-id":"document_properties","aria-controls":"documentPropertiesDialog"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_label"}},[_vm._v("文档属性…")])])])])
|
582
|
-
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"toolbar"},[_c('div',{attrs:{"id":"toolbarContainer"}},[_c('div',{attrs:{"id":"toolbarViewer"}},[_c('div',{attrs:{"id":"toolbarViewerLeft"}},[_c('button',{staticClass:"toolbarButton",attrs:{"id":"sidebarToggle","title":"Toggle Sidebar","tabindex":"11","data-l10n-id":"toggle_sidebar","aria-expanded":"false","aria-controls":"sidebarContainer"}},[_c('span',{attrs:{"data-l10n-id":"toggle_sidebar_label"}},[_vm._v("切换侧栏")])]),_c('div',{staticClass:"splitToolbarButton hiddenSmallView"},[_c('button',{staticClass:"toolbarButton pageUp",attrs:{"title":"上一页","id":"previous","tabindex":"13","data-l10n-id":"previous"}},[_c('span',{attrs:{"data-l10n-id":"previous_label"}},[_vm._v("上一页")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton pageDown",attrs:{"title":"下一页","id":"next","tabindex":"14","data-l10n-id":"next"}},[_c('span',{attrs:{"data-l10n-id":"next_label"}},[_vm._v("下一页")])])]),_c('input',{staticClass:"toolbarField pageNumber",attrs:{"type":"number","id":"pageNumber","title":"页面","value":"1","size":"4","min":"1","tabindex":"15","data-l10n-id":"page","autocomplete":"off"}}),_c('span',{staticClass:"toolbarLabel",attrs:{"id":"numPages"}})]),_c('div',{attrs:{"id":"toolbarViewerRight"}},[_c('button',{staticClass:"toolbarButton openFile hiddenLargeView",attrs:{"id":"openFile","title":"打开文件","tabindex":"32","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"toolbarButton print hiddenMediumView",attrs:{"id":"print","title":"打印","tabindex":"33","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('div',{staticClass:"verticalToolbarSeparator hiddenSmallView"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"secondaryToolbarToggle","title":"工具","tabindex":"36","data-l10n-id":"tools","aria-expanded":"false","aria-controls":"secondaryToolbar"}},[_c('span',{attrs:{"data-l10n-id":"tools_label"}},[_vm._v("工具")])])]),_c('div',{attrs:{"id":"toolbarViewerMiddle"}},[_c('div',{staticClass:"splitToolbarButton"},[_c('button',{staticClass:"toolbarButton zoomOut",attrs:{"id":"zoomOut","title":"缩小","tabindex":"21","data-l10n-id":"zoom_out"}},[_c('span',{attrs:{"data-l10n-id":"zoom_out_label"}},[_vm._v("缩小")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton zoomIn",attrs:{"id":"zoomIn","title":"放大","tabindex":"22","data-l10n-id":"zoom_in"}},[_c('span',{attrs:{"data-l10n-id":"zoom_in_label"}},[_vm._v("放大")])])]),_c('span',{staticClass:"dropdownToolbarButton",attrs:{"id":"scaleSelectContainer"}},[_c('select',{attrs:{"id":"scaleSelect","title":"缩放","tabindex":"23","data-l10n-id":"zoom"}},[_c('option',{attrs:{"id":"pageAutoOption","title":"","value":"auto","selected":"selected","data-l10n-id":"page_scale_auto"}},[_vm._v("自动缩放")]),_c('option',{attrs:{"id":"pageActualOption","title":"","value":"page-actual","data-l10n-id":"page_scale_actual"}},[_vm._v("实际大小")]),_c('option',{attrs:{"id":"pageFitOption","title":"","value":"page-fit","data-l10n-id":"page_scale_fit"}},[_vm._v("适合页面")]),_c('option',{attrs:{"id":"pageWidthOption","title":"","value":"page-width","data-l10n-id":"page_scale_width"}},[_vm._v("适合页宽")]),_c('option',{attrs:{"id":"customScaleOption","title":"","value":"custom","disabled":"disabled","hidden":"true"}}),_c('option',{attrs:{"title":"","value":"0.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 50 }"}},[_vm._v("50%")]),_c('option',{attrs:{"title":"","value":"0.75","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 75 }"}},[_vm._v("75%")]),_c('option',{attrs:{"title":"","value":"1","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 100 }"}},[_vm._v("100%")]),_c('option',{attrs:{"title":"","value":"1.25","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 125 }"}},[_vm._v("125%")]),_c('option',{attrs:{"title":"","value":"1.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 150 }"}},[_vm._v("150%")]),_c('option',{attrs:{"title":"","value":"2","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 200 }"}},[_vm._v("200%")]),_c('option',{attrs:{"title":"","value":"3","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 300 }"}},[_vm._v("300%")]),_c('option',{attrs:{"title":"","value":"4","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 400 }"}},[_vm._v("400%")])])])])])])])
|
583
|
-
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"errorWrapper","hidden":"true"}},[_c('div',{attrs:{"id":"errorMessageLeft"}},[_c('span',{attrs:{"id":"errorMessage"}}),_c('button',{attrs:{"id":"errorShowMore","data-l10n-id":"error_more_info"}},[_vm._v(" More Information ")]),_c('button',{attrs:{"id":"errorShowLess","data-l10n-id":"error_less_info","hidden":"true"}},[_vm._v(" Less Information ")])]),_c('div',{attrs:{"id":"errorMessageRight"}},[_c('button',{attrs:{"id":"errorClose","data-l10n-id":"error_close"}},[_vm._v(" Close ")])]),_c('div',{staticClass:"clearBoth"}),_c('textarea',{attrs:{"id":"errorMoreInfo","hidden":"true","readonly":"readonly"}})])
|
584
|
-
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"dialogContainer"}},[_c('dialog',{attrs:{"id":"documentPropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileNameLabel","data-l10n-id":"document_properties_file_name"}},[_vm._v("文件名:")]),_c('p',{attrs:{"id":"fileNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileSizeLabel","data-l10n-id":"document_properties_file_size"}},[_vm._v("文件大小:")]),_c('p',{attrs:{"id":"fileSizeField","aria-labelledby":"fileSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"titleLabel","data-l10n-id":"document_properties_title"}},[_vm._v("标题:")]),_c('p',{attrs:{"id":"titleField","aria-labelledby":"titleLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"authorLabel","data-l10n-id":"document_properties_author"}},[_vm._v("作者:")]),_c('p',{attrs:{"id":"authorField","aria-labelledby":"authorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"subjectLabel","data-l10n-id":"document_properties_subject"}},[_vm._v("主题:")]),_c('p',{attrs:{"id":"subjectField","aria-labelledby":"subjectLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"keywordsLabel","data-l10n-id":"document_properties_keywords"}},[_vm._v("关键词:")]),_c('p',{attrs:{"id":"keywordsField","aria-labelledby":"keywordsLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creationDateLabel","data-l10n-id":"document_properties_creation_date"}},[_vm._v("创建日期:")]),_c('p',{attrs:{"id":"creationDateField","aria-labelledby":"creationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"modificationDateLabel","data-l10n-id":"document_properties_modification_date"}},[_vm._v("修改日期:")]),_c('p',{attrs:{"id":"modificationDateField","aria-labelledby":"modificationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creatorLabel","data-l10n-id":"document_properties_creator"}},[_vm._v("创建者:")]),_c('p',{attrs:{"id":"creatorField","aria-labelledby":"creatorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"producerLabel","data-l10n-id":"document_properties_producer"}},[_vm._v("OFD 生成器:")]),_c('p',{attrs:{"id":"producerField","aria-labelledby":"producerLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"versionLabel","data-l10n-id":"document_properties_version"}},[_vm._v("OFD 版本:")]),_c('p',{attrs:{"id":"versionField","aria-labelledby":"versionLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageCountLabel","data-l10n-id":"document_properties_page_count"}},[_vm._v("页数:")]),_c('p',{attrs:{"id":"pageCountField","aria-labelledby":"pageCountLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageSizeLabel","data-l10n-id":"document_properties_page_size"}},[_vm._v("页面大小:")]),_c('p',{attrs:{"id":"pageSizeField","aria-labelledby":"pageSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row",attrs:{"hidden":"hidden"}},[_c('span',{attrs:{"id":"linearizedLabel","data-l10n-id":"document_properties_linearized"}},[_vm._v("快速 Web 视图:")]),_c('p',{attrs:{"id":"linearizedField","aria-labelledby":"linearizedLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"documentPropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])]),_c('dialog',{staticStyle:{"min-width":"200px"},attrs:{"id":"printServiceDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"data-l10n-id":"print_progress_message"}},[_vm._v("正在准备打印文档…")])]),_c('div',{staticClass:"row"},[_c('progress',{attrs:{"id":"printProgress","value":"0","max":"100"}}),_c('span',{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":"{ \"progress\": 0 }"}},[_vm._v("0%")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"printCancel"}},[_c('span',{attrs:{"data-l10n-id":"print_progress_close"}},[_vm._v("取消")])])])]),_c('dialog',{attrs:{"id":"signaturePropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signerLabel"}},[_vm._v("签章人:")]),_c('p',{attrs:{"id":"signerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"providerLabel"}},[_vm._v("签章提供者:")]),_c('p',{attrs:{"id":"providerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"hashedValueLabel"}},[_vm._v("原文摘要值:")]),_c('p',{attrs:{"id":"hashedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signedValueLabel"}},[_vm._v("签名值:")]),_c('p',{attrs:{"id":"signedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signMethodLabel"}},[_vm._v("签名算法:")]),_c('p',{attrs:{"id":"signMethodField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signVersionLabel"}},[_vm._v("版本号:")]),_c('p',{attrs:{"id":"signVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"verifyLabel"}},[_vm._v("验签结果:")]),_c('p',{attrs:{"id":"verifyField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealIDLabel"}},[_vm._v("印章标识:")]),_c('p',{attrs:{"id":"sealIDField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealNameLabel"}},[_vm._v("印章名称:")]),_c('p',{attrs:{"id":"sealNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealTypeLabel"}},[_vm._v("印章类型:")]),_c('p',{attrs:{"id":"sealTypeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealAuthTimeLabel"}},[_vm._v("有效时间:")]),_c('p',{attrs:{"id":"sealAuthTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealMakeTimeLabel"}},[_vm._v("制章日期:")]),_c('p',{attrs:{"id":"sealMakeTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealVersionLabel"}},[_vm._v("印章版本:")]),_c('p',{attrs:{"id":"sealVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"signaturePropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])])])
|
585
|
-
}]
|
586
|
-
|
587
|
-
|
588
|
-
;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=18db0fa8&scoped=true&
|
589
|
-
|
590
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=template&id=316ef3a2&scoped=true&
|
591
|
-
var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
|
592
|
-
draggable: _vm.draggable,
|
593
|
-
resizable: _vm.resizable,
|
594
|
-
active: _vm.enabled,
|
595
|
-
dragging: _vm.dragging,
|
596
|
-
resizing: _vm.resizing
|
597
|
-
},style:(_vm.style),on:{"mousedown":_vm.elmDown,"touchstart":_vm.elmDown}},[(_vm.editable)?_c('button',{staticClass:"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm",staticStyle:{"position":"absolute","right":"5px","top":"-20px"},attrs:{"type":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.dropItem.apply(null, arguments)}}},[_c('span',{staticClass:"close"})]):_vm._e(),_vm._l((_vm.handles),function(handle){return (_vm.resizable)?_c('div',{key:handle,staticClass:"handle",class:'handle-' + handle,style:({ display: _vm.enabled ? 'block' : 'none'}),on:{"mousedown":function($event){return _vm.handleDown(handle, $event)},"touchstart":function($event){return _vm.handleDown(handle, $event)}}}):_vm._e()}),_vm._t("default")],2)
|
598
|
-
}
|
599
|
-
var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns = []
|
600
|
-
|
601
|
-
|
602
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
|
603
|
-
|
604
|
-
function isFunction(func) {
|
605
|
-
return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'
|
606
|
-
}
|
607
|
-
|
608
|
-
function matchesSelectorToParentElements(el, selector, baseNode) {
|
609
|
-
let node = el;
|
610
|
-
const matchesSelectorFunc = [
|
611
|
-
'matches',
|
612
|
-
'webkitMatchesSelector',
|
613
|
-
'mozMatchesSelector',
|
614
|
-
'msMatchesSelector',
|
615
|
-
'oMatchesSelector'
|
616
|
-
].find(func => isFunction(node[func]));
|
617
|
-
|
618
|
-
if (!isFunction(node[matchesSelectorFunc])) return false;
|
619
|
-
|
620
|
-
do {
|
621
|
-
if (node[matchesSelectorFunc](selector)) return true;
|
622
|
-
if (node === baseNode) return false;
|
623
|
-
node = node.parentNode
|
624
|
-
} while (node);
|
625
|
-
|
626
|
-
return false
|
627
|
-
}
|
628
|
-
|
629
|
-
/* harmony default export */ var draggable_resizablevue_type_script_lang_js_ = ({
|
630
|
-
replace: true,
|
631
|
-
name: 'VueDraggableResizable',
|
632
|
-
props: {
|
633
|
-
active: {
|
634
|
-
type: Boolean, default: false
|
635
|
-
},
|
636
|
-
draggable: {
|
637
|
-
type: Boolean, default: true
|
638
|
-
},
|
639
|
-
resizable: {
|
640
|
-
type: Boolean, default: true
|
641
|
-
},
|
642
|
-
editable: {
|
643
|
-
type: Boolean, default: true
|
644
|
-
},
|
645
|
-
w: {
|
646
|
-
type: Number,
|
647
|
-
default: 200,
|
648
|
-
validator: function (val) {
|
649
|
-
return val > 0
|
650
|
-
}
|
651
|
-
},
|
652
|
-
h: {
|
653
|
-
type: Number,
|
654
|
-
default: 200,
|
655
|
-
validator: function (val) {
|
656
|
-
return val > 0
|
657
|
-
}
|
658
|
-
},
|
659
|
-
minw: {
|
660
|
-
type: Number,
|
661
|
-
default: 50,
|
662
|
-
validator: function (val) {
|
663
|
-
return val >= 0
|
664
|
-
}
|
665
|
-
},
|
666
|
-
minh: {
|
667
|
-
type: Number,
|
668
|
-
default: 50,
|
669
|
-
validator: function (val) {
|
670
|
-
return val >= 0
|
671
|
-
}
|
672
|
-
},
|
673
|
-
x: {
|
674
|
-
type: Number,
|
675
|
-
default: 0,
|
676
|
-
validator: function (val) {
|
677
|
-
return typeof val === 'number'
|
678
|
-
}
|
679
|
-
},
|
680
|
-
y: {
|
681
|
-
type: Number,
|
682
|
-
default: 0,
|
683
|
-
validator: function (val) {
|
684
|
-
return typeof val === 'number'
|
685
|
-
}
|
686
|
-
},
|
687
|
-
z: {
|
688
|
-
type: [String, Number],
|
689
|
-
default: 'auto',
|
690
|
-
validator: function (val) {
|
691
|
-
return (typeof val === 'string') ? val === 'auto' : val >= 0;
|
692
|
-
}
|
693
|
-
},
|
694
|
-
handles: {
|
695
|
-
type: Array,
|
696
|
-
default: function () {
|
697
|
-
return ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']
|
698
|
-
},
|
699
|
-
validator: function (val) {
|
700
|
-
let s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']);
|
701
|
-
return new Set(val.filter(h => s.has(h))).size === val.length
|
702
|
-
}
|
703
|
-
},
|
704
|
-
dragHandle: {
|
705
|
-
type: String,
|
706
|
-
default: null
|
707
|
-
},
|
708
|
-
dragCancel: {
|
709
|
-
type: String,
|
710
|
-
default: null
|
711
|
-
},
|
712
|
-
axis: {
|
713
|
-
type: String,
|
714
|
-
default: 'both',
|
715
|
-
validator: function (val) {
|
716
|
-
return ['x', 'y', 'both'].indexOf(val) !== -1
|
717
|
-
}
|
718
|
-
},
|
719
|
-
grid: {
|
720
|
-
type: Array,
|
721
|
-
default: function () {
|
722
|
-
return [1, 1]
|
723
|
-
}
|
724
|
-
},
|
725
|
-
parent: {
|
726
|
-
type: Element, default: null
|
727
|
-
},
|
728
|
-
maximize: {
|
729
|
-
type: Boolean, default: false
|
730
|
-
},
|
731
|
-
pages: {
|
732
|
-
type: Array, required: false, default: null
|
733
|
-
},
|
734
|
-
eventBus: {
|
735
|
-
type: Object, default: null
|
736
|
-
},
|
737
|
-
index: {
|
738
|
-
type: Number, required: false, default: 0
|
739
|
-
},
|
740
|
-
currentPage: {
|
741
|
-
type: Number, required: false, default: 0
|
742
|
-
},
|
743
|
-
stampId: {
|
744
|
-
type: String, required: false, default: null
|
745
|
-
}
|
746
|
-
},
|
747
|
-
created: function () {
|
748
|
-
this.parentX = 0;
|
749
|
-
this.parentW = 9999;
|
750
|
-
this.parentY = 0;
|
751
|
-
this.parentH = 9999;
|
752
|
-
this.mouseX = 0;
|
753
|
-
this.mouseY = 0;
|
754
|
-
this.lastMouseX = 0;
|
755
|
-
this.lastMouseY = 0;
|
756
|
-
this.mouseOffX = 0;
|
757
|
-
this.mouseOffY = 0;
|
758
|
-
this.elmX = 0;
|
759
|
-
this.elmY = 0;
|
760
|
-
this.elmW = 0;
|
761
|
-
this.elmH = 0;
|
762
|
-
this.scrollPosition = 0;
|
763
|
-
this.scrollDist = 0;
|
764
|
-
this.pagesCount = this.pages ? this.pages.length : 0;
|
765
|
-
this.section = [];
|
766
|
-
this.scale = null;
|
767
|
-
},
|
768
|
-
mounted: function () {
|
769
|
-
this.parent.addEventListener('mousemove', this.handleMove, false);
|
770
|
-
this.parent.addEventListener('mousedown', this.deselect, false);
|
771
|
-
this.parent.addEventListener('mouseup', this.handleUp, false);
|
772
|
-
// touch events bindings
|
773
|
-
this.parent.addEventListener('touchmove', this.handleMove, false);
|
774
|
-
this.parent.addEventListener('touchend', this.handleUp, false);
|
775
|
-
// this.parent.addEventListener('touchstart', this.handleUp, false);
|
776
|
-
this.parent.addEventListener('touchstart', this.deselect, false);
|
777
|
-
if (this.parent) {
|
778
|
-
this.parent.parentNode.addEventListener('scroll', this.handleScrollMove, false);
|
779
|
-
}
|
780
|
-
//resize
|
781
|
-
if (this.eventBus) {
|
782
|
-
this.eventBus.on('stampResize', this.stampResize);
|
783
|
-
}
|
784
|
-
this.elmX = parseInt(this.$el.style.left);
|
785
|
-
this.elmY = parseInt(this.$el.style.top);
|
786
|
-
this.elmW = this.$el.offsetWidth || this.$el.clientWidth;
|
787
|
-
this.elmH = this.$el.offsetHeight || this.$el.clientHeight;
|
788
|
-
this._reviewDimensions();
|
789
|
-
if (this.pages) {
|
790
|
-
if (!this.scale) {
|
791
|
-
this.scale = this.pages[0].viewport.scale;
|
792
|
-
}
|
793
|
-
this.updateSection();
|
794
|
-
this.top = this.y + 10 < 0 ? 10 : this.y + 10;
|
795
|
-
if (this.top < 10) {
|
796
|
-
this.top = 10;
|
797
|
-
}
|
798
|
-
let pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);
|
799
|
-
this.elmY = this.top;
|
800
|
-
let placed = this.pages[pageIndex];
|
801
|
-
if (placed && this.x - placed.div.offsetLeft - 9 > 0) {
|
802
|
-
//nothing
|
803
|
-
} else if (placed) {
|
804
|
-
this.left = placed.div.offsetLeft + 9;
|
805
|
-
}
|
806
|
-
this.elmX = this.left;
|
807
|
-
this._emitPlaced(pageIndex);
|
808
|
-
}
|
809
|
-
},
|
810
|
-
beforeUnmount: function () {
|
811
|
-
this.parent.removeEventListener('mousemove', this.handleMove, false);
|
812
|
-
this.parent.removeEventListener('mousedown', this.deselect, false);
|
813
|
-
this.parent.removeEventListener('mouseup', this.handleUp, false);
|
814
|
-
if (this.parent) {
|
815
|
-
this.parent.parentNode.removeEventListener('scroll', this.handleScrollMove, false);
|
816
|
-
}
|
817
|
-
if (this.eventBus) {
|
818
|
-
this.eventBus.off('stampResize', this.stampResize);
|
819
|
-
}
|
820
|
-
// touch events bindings removed
|
821
|
-
this.parent.removeEventListener('touchmove', this.handleMove, false);
|
822
|
-
this.parent.removeEventListener('touchend', this.handleUp, false);
|
823
|
-
// this.parent.removeEventListener('touchstart', this.handleUp, false);
|
824
|
-
this.parent.removeEventListener('touchstart', this.deselect, false);
|
825
|
-
},
|
826
|
-
data: function () {
|
827
|
-
return {
|
828
|
-
top: this.y,
|
829
|
-
left: this.x,
|
830
|
-
width: this.w,
|
831
|
-
height: this.h,
|
832
|
-
resizing: false,
|
833
|
-
dragging: false,
|
834
|
-
enabled: this.active,
|
835
|
-
handle: null,
|
836
|
-
zIndex: this.z
|
837
|
-
}
|
838
|
-
},
|
839
|
-
methods: {
|
840
|
-
adjust(arr, val, leftIndex, rightIndex) {
|
841
|
-
let pageIndex = this.binarySearch(arr, val, leftIndex, rightIndex);
|
842
|
-
if (pageIndex < 0 || pageIndex > this.pagesCount - 1) {
|
843
|
-
pageIndex = 0;
|
844
|
-
}
|
845
|
-
pageIndex = this.adjustBoundary(pageIndex);
|
846
|
-
return pageIndex;
|
847
|
-
},
|
848
|
-
handleScrollMove(e) {
|
849
|
-
if (this.dragging) {
|
850
|
-
this.scrollDist = e.currentTarget.scrollTop - this.scrollPosition;
|
851
|
-
this.top = this.top + this.scrollDist;
|
852
|
-
this.elmY = this.top;
|
853
|
-
}
|
854
|
-
this.scrollPosition = e.currentTarget.scrollTop;
|
855
|
-
},
|
856
|
-
stampAreaUpdate(sp) {
|
857
|
-
//update sp-1 and sp area
|
858
|
-
for (let i = sp - 1; i < sp + 1; i++) {
|
859
|
-
if (i - 1 > 0 && i < this.pagesCount) {
|
860
|
-
this.section[i].t = this.section[i - 1].t + this.pages[i - 1].viewport.height + 11;
|
861
|
-
this.section[i].o = this.pages[i - 1].div.offsetLeft + 9;
|
862
|
-
}
|
863
|
-
}
|
864
|
-
},
|
865
|
-
adjustBoundary(pageIndex) {
|
866
|
-
if (this.pages[pageIndex] && this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0) {
|
867
|
-
if (this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - this.elmH / 2 > 0) {
|
868
|
-
this.top = this.section[pageIndex + 1].t;
|
869
|
-
pageIndex++;
|
870
|
-
} else {
|
871
|
-
this.top = this.section[pageIndex + 1].t - this.elmH - 9 - 2;
|
872
|
-
}
|
873
|
-
}
|
874
|
-
return pageIndex;
|
875
|
-
},
|
876
|
-
//二分查找
|
877
|
-
binarySearch(arr, val, leftIndex, rightIndex) {
|
878
|
-
if (leftIndex > rightIndex) {
|
879
|
-
return leftIndex - 1;
|
880
|
-
}
|
881
|
-
let midIndex = Math.floor((leftIndex + rightIndex) / 2);
|
882
|
-
let midVal = arr[midIndex].t;
|
883
|
-
if (midVal > val) {
|
884
|
-
return this.binarySearch(arr, val, leftIndex, midIndex - 1);
|
885
|
-
} else if (midVal < val) {
|
886
|
-
return this.binarySearch(arr, val, midIndex + 1, rightIndex);
|
887
|
-
} else {
|
888
|
-
return midIndex;
|
889
|
-
}
|
890
|
-
},
|
891
|
-
updateSection() {
|
892
|
-
this.section.length = 0;
|
893
|
-
let t = 10;
|
894
|
-
for (let i = 0; i < this.pagesCount; i++) {
|
895
|
-
t = t + (i > 0 ? this.pages[i - 1].viewport.height : 0) + (i > 0 ? 9 + 2 : 0);
|
896
|
-
this.section.push({
|
897
|
-
t,
|
898
|
-
o: this.pages[i].div.offsetLeft + 9
|
899
|
-
});
|
900
|
-
}
|
901
|
-
this.section.push({
|
902
|
-
t: this.section[this.pagesCount - 1].t + this.pages[this.pagesCount - 1].viewport.height + 9 + 2,
|
903
|
-
o: this.pages[this.pagesCount - 1].div.offsetLeft + 9
|
904
|
-
});
|
905
|
-
},
|
906
|
-
stampResize() {
|
907
|
-
if (this.scale != null) {
|
908
|
-
const section = [].concat(this.section);
|
909
|
-
this.updateSection();
|
910
|
-
const TOP = this.top;
|
911
|
-
let pageIndex = this.binarySearch(section, TOP, this.currentPage - 1, this.pagesCount - 1);
|
912
|
-
if (pageIndex < 0) {
|
913
|
-
pageIndex = 0;
|
914
|
-
}
|
915
|
-
const currentScale = this.pages[0].viewport.scale;
|
916
|
-
const WIDTH = this.width;
|
917
|
-
const HEIGHT = this.height;
|
918
|
-
this.width = (WIDTH * currentScale) / this.scale;
|
919
|
-
this.height = (HEIGHT * currentScale) / this.scale;
|
920
|
-
const LEFT = this.left;
|
921
|
-
this.top = ((TOP - 10) * currentScale) / this.scale + 10;
|
922
|
-
this.left = this.pages[pageIndex].div.offsetLeft + (((LEFT - section[pageIndex].o) * currentScale) / this.scale) + 9;
|
923
|
-
this.elmW = this.width;
|
924
|
-
this.elmH = this.height;
|
925
|
-
this.elmX = this.left;
|
926
|
-
this.elmY = this.top;
|
927
|
-
this.scale = currentScale;
|
928
|
-
this._emitPlaced(pageIndex);
|
929
|
-
}
|
930
|
-
},
|
931
|
-
|
932
|
-
_emitPlaced(pageIndex) {
|
933
|
-
this.$emit('placed', pageIndex, this.index, {
|
934
|
-
x: (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,
|
935
|
-
y: ((this.top - this.section[pageIndex].t)) / this.pages[pageIndex].viewport.height,
|
936
|
-
w: this.elmW / this.pages[pageIndex].viewport.width,
|
937
|
-
h: this.elmH / this.pages[pageIndex].viewport.height
|
938
|
-
}, this.stampId);
|
939
|
-
},
|
940
|
-
_reviewDimensions() {
|
941
|
-
if (this.minw > this.w) this.width = this.minw;
|
942
|
-
if (this.minh > this.h) this.height = this.minh;
|
943
|
-
if (this.parent) {
|
944
|
-
const parentW = parseInt(this.parent.scrollWidth, 10);
|
945
|
-
const parentH = parseInt(this.parent.scrollHeight, 10);
|
946
|
-
this.parentW = parentW;
|
947
|
-
this.parentH = parentH;
|
948
|
-
if (this.w > this.parentW) this.width = parentW;
|
949
|
-
if (this.h > this.parentH) this.height = parentH;
|
950
|
-
if ((this.x + this.w) > this.parentW && parentW - this.x > 0) this.width = parentW - this.x;
|
951
|
-
if ((this.y + this.h) > this.parentH && parentH - this.y > 0) this.height = parentH - this.y;
|
952
|
-
|
953
|
-
}
|
954
|
-
this.elmW = this.width;
|
955
|
-
this.elmH = this.height;
|
956
|
-
},
|
957
|
-
reviewDimensions: function () {
|
958
|
-
this._reviewDimensions();
|
959
|
-
this.$emit('resizing', this.left, this.top, this.width, this.height)
|
960
|
-
},
|
961
|
-
elmDown: function (e) {
|
962
|
-
const target = e.target || e.srcElement;
|
963
|
-
if (this.$el.contains(target)) {
|
964
|
-
if (
|
965
|
-
(this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||
|
966
|
-
(this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {
|
967
|
-
return
|
968
|
-
}
|
969
|
-
this.reviewDimensions();
|
970
|
-
if (!this.enabled) {
|
971
|
-
this.enabled = true
|
972
|
-
this.$emit('activated')
|
973
|
-
this.$emit('update:active', true)
|
974
|
-
}
|
975
|
-
if (this.draggable) {
|
976
|
-
this.dragging = true
|
977
|
-
}
|
978
|
-
}
|
979
|
-
},
|
980
|
-
deselect: function (e) {
|
981
|
-
if (e.type.indexOf('touch') !== -1) {
|
982
|
-
this.mouseX = e.changedTouches[0].clientX
|
983
|
-
this.mouseY = e.changedTouches[0].clientY
|
984
|
-
} else {
|
985
|
-
this.mouseX = e.pageX || e.clientX + this.parent.scrollLeft
|
986
|
-
this.mouseY = e.pageY || e.clientY + this.parent.scrollTop
|
987
|
-
}
|
988
|
-
this.lastMouseX = this.mouseX
|
989
|
-
this.lastMouseY = this.mouseY
|
990
|
-
const target = e.target || e.srcElement
|
991
|
-
const regex = new RegExp('handle-([trmbl]{2})', '')
|
992
|
-
if (!this.$el.contains(target) && !regex.test(target.className)) {
|
993
|
-
if (this.enabled) {
|
994
|
-
this.enabled = false
|
995
|
-
this.$emit('deactivated')
|
996
|
-
this.$emit('update:active', false)
|
997
|
-
}
|
998
|
-
}
|
999
|
-
},
|
1000
|
-
handleDown: function (handle, e) {
|
1001
|
-
this.handle = handle;
|
1002
|
-
if (e.cancelable) {
|
1003
|
-
e.stopPropagation();
|
1004
|
-
e.preventDefault();
|
1005
|
-
}
|
1006
|
-
this.resizing = true;
|
1007
|
-
},
|
1008
|
-
// fillParent: function (e) {
|
1009
|
-
// if (!this.parent || !this.resizable || !this.maximize) return
|
1010
|
-
// let done = false
|
1011
|
-
// const animate = () => {
|
1012
|
-
// if (!done) {
|
1013
|
-
// window.requestAnimationFrame(animate)
|
1014
|
-
// }
|
1015
|
-
// if (this.axis === 'x') {
|
1016
|
-
// if (
|
1017
|
-
// this.width === this.parentW && this.left === this.parentX
|
1018
|
-
// ) done = true
|
1019
|
-
// } else if (this.axis === 'y') {
|
1020
|
-
// if (
|
1021
|
-
// this.height === this.parentH && this.top === this.parentY
|
1022
|
-
// ) done = true
|
1023
|
-
// } else if (this.axis === 'both') {
|
1024
|
-
// if (
|
1025
|
-
// this.width === this.parentW &&
|
1026
|
-
// this.height === this.parentH &&
|
1027
|
-
// this.top === this.parentY &&
|
1028
|
-
// this.left === this.parentX
|
1029
|
-
// ) done = true
|
1030
|
-
// }
|
1031
|
-
// if (this.axis === 'x' || this.axis === 'both') {
|
1032
|
-
// if (this.width < this.parentW) {
|
1033
|
-
// this.width++
|
1034
|
-
// this.elmW++
|
1035
|
-
// }
|
1036
|
-
// if (this.left > this.parentX) {
|
1037
|
-
// this.left--
|
1038
|
-
// this.elmX--
|
1039
|
-
// }
|
1040
|
-
// }
|
1041
|
-
// if (this.axis === 'y' || this.axis === 'both') {
|
1042
|
-
// if (this.height < this.parentH) {
|
1043
|
-
// this.height++
|
1044
|
-
// this.elmH++
|
1045
|
-
// }
|
1046
|
-
// if (this.top > this.parentY) {
|
1047
|
-
// this.top--
|
1048
|
-
// this.elmY--
|
1049
|
-
// }
|
1050
|
-
// }
|
1051
|
-
// this.$emit('resizing', this.left, this.top, this.width, this.height)
|
1052
|
-
// }
|
1053
|
-
// window.requestAnimationFrame(animate)
|
1054
|
-
// },
|
1055
|
-
handleMove: function (e) {
|
1056
|
-
const isTouchMove = e.type.indexOf('touchmove') !== -1
|
1057
|
-
this.mouseX = isTouchMove
|
1058
|
-
? e.touches[0].clientX
|
1059
|
-
: e.pageX || e.clientX + document.documentElement.scrollLeft;
|
1060
|
-
this.mouseY = isTouchMove
|
1061
|
-
? e.touches[0].clientY
|
1062
|
-
: e.pageY || e.clientY + document.documentElement.scrollTop;
|
1063
|
-
let diffX = this.mouseX - this.lastMouseX + this.mouseOffX;
|
1064
|
-
let diffY = this.mouseY - this.lastMouseY + this.mouseOffY;
|
1065
|
-
this.mouseOffX = this.mouseOffY = 0;
|
1066
|
-
this.lastMouseX = this.mouseX;
|
1067
|
-
this.lastMouseY = this.mouseY;
|
1068
|
-
let dX = diffX;
|
1069
|
-
let dY = diffY;
|
1070
|
-
if (this.resizing) {
|
1071
|
-
if (this.handle.indexOf('t') >= 0) {
|
1072
|
-
if (this.elmH - dY < this.minh) this.mouseOffY = (dY - (diffY = this.elmH - this.minh));
|
1073
|
-
else if (this.parent && this.elmY + dY < this.parentY) this.mouseOffY = (dY - (diffY = this.parentY - this.elmY));
|
1074
|
-
this.elmY += diffY
|
1075
|
-
this.elmH -= diffY
|
1076
|
-
}
|
1077
|
-
if (this.handle.indexOf('b') >= 0) {
|
1078
|
-
if (this.elmH + dY < this.minh) this.mouseOffY = (dY - (diffY = this.minh - this.elmH));
|
1079
|
-
else if (this.parent && this.elmY + this.elmH + dY > this.parentH) this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH));
|
1080
|
-
this.elmH += diffY
|
1081
|
-
}
|
1082
|
-
if (this.handle.indexOf('l') >= 0) {
|
1083
|
-
if (this.elmW - dX < this.minw) this.mouseOffX = (dX - (diffX = this.elmW - this.minw));
|
1084
|
-
else if (this.parent && this.elmX + dX < this.parentX) this.mouseOffX = (dX - (diffX = this.parentX - this.elmX));
|
1085
|
-
this.elmX += diffX
|
1086
|
-
this.elmW -= diffX
|
1087
|
-
}
|
1088
|
-
if (this.handle.indexOf('r') >= 0) {
|
1089
|
-
if (this.elmW + dX < this.minw) this.mouseOffX = (dX - (diffX = this.minw - this.elmW))
|
1090
|
-
else if (this.parent && this.elmX + this.elmW + dX > this.parentW) this.mouseOffX = (dX - (diffX = this.parentW - this.elmX - this.elmW));
|
1091
|
-
this.elmW += diffX
|
1092
|
-
}
|
1093
|
-
this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0]);
|
1094
|
-
this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1]);
|
1095
|
-
this.width = (Math.round(this.elmW / this.grid[0]) * this.grid[0]);
|
1096
|
-
this.height = (Math.round(this.elmH / this.grid[1]) * this.grid[1]);
|
1097
|
-
this.$emit('resizing', this.left, this.top, this.width, this.height);
|
1098
|
-
} else if (this.dragging) {
|
1099
|
-
if (this.parent) {
|
1100
|
-
this._reviewDimensions();
|
1101
|
-
let [_x, _y] = [0, 10];
|
1102
|
-
if (this.pages) {
|
1103
|
-
let pageIndex = this.binarySearch(this.section, this.elmY + diffY, this.currentPage - 1, this.pagesCount - 1);
|
1104
|
-
if (pageIndex < 0) {
|
1105
|
-
pageIndex = 0;
|
1106
|
-
}
|
1107
|
-
if (this.elmY + diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0) {
|
1108
|
-
if (this.elmY + diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - (this.elmH * 0.9) - 11 > 0) {
|
1109
|
-
pageIndex++;
|
1110
|
-
}
|
1111
|
-
}
|
1112
|
-
_x = this.pages[pageIndex].div.offsetLeft + 9;
|
1113
|
-
}
|
1114
|
-
if (this.elmX + dX < this.parentX + _x) {
|
1115
|
-
this.mouseOffX = (dX - (diffX = this.parentX + _x - this.elmX))
|
1116
|
-
} else if (this.elmX + this.elmW + dX > (this.parentW - _x)) {
|
1117
|
-
this.mouseOffX = (dX - (diffX = (this.parentW - _x) - this.elmX - this.elmW))
|
1118
|
-
}
|
1119
|
-
if (this.elmY + dY < this.parentY + _y) {
|
1120
|
-
this.mouseOffY = (dY - (diffY = this.parentY + _y - this.elmY))
|
1121
|
-
} else if (this.elmY + this.elmH + dY > this.parentH) {
|
1122
|
-
this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH))
|
1123
|
-
}
|
1124
|
-
}
|
1125
|
-
this.elmX += diffX;
|
1126
|
-
this.elmY += diffY;
|
1127
|
-
if (this.axis === 'x' || this.axis === 'both') {
|
1128
|
-
this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0])
|
1129
|
-
}
|
1130
|
-
if (this.axis === 'y' || this.axis === 'both') {
|
1131
|
-
this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1])
|
1132
|
-
}
|
1133
|
-
this.$emit('dragging', this.left, this.top)
|
1134
|
-
}
|
1135
|
-
},
|
1136
|
-
handleUp: function (e) {
|
1137
|
-
if (e.type.indexOf('touch') !== -1) {
|
1138
|
-
this.lastMouseX = e.changedTouches[0].clientX;
|
1139
|
-
this.lastMouseY = e.changedTouches[0].clientY;
|
1140
|
-
}
|
1141
|
-
this.handle = null;
|
1142
|
-
//this.enabled = false;
|
1143
|
-
if (this.resizing) {
|
1144
|
-
this.resizing = false;
|
1145
|
-
this.$emit('resizestop', this.left, this.top, this.width, this.height)
|
1146
|
-
}
|
1147
|
-
if (this.dragging) {
|
1148
|
-
this.dragging = false;
|
1149
|
-
let pageIndex = 0;
|
1150
|
-
if (this.pages) {
|
1151
|
-
pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);
|
1152
|
-
}
|
1153
|
-
this._emitPlaced(pageIndex);
|
1154
|
-
this.$emit('dragstop', this.left, this.top);
|
1155
|
-
}
|
1156
|
-
this.elmX = this.left;
|
1157
|
-
this.elmY = this.top;
|
1158
|
-
},
|
1159
|
-
dropItem() {
|
1160
|
-
this.$emit('dropitem', this.index);
|
1161
|
-
}
|
1162
|
-
},
|
1163
|
-
computed: {
|
1164
|
-
style: function () {
|
1165
|
-
return {
|
1166
|
-
top: this.top + 'px',
|
1167
|
-
left: this.left + 'px',
|
1168
|
-
width: this.width + 'px',
|
1169
|
-
height: this.height + 'px',
|
1170
|
-
zIndex: this.zIndex
|
1171
|
-
}
|
1172
|
-
}
|
1173
|
-
},
|
1174
|
-
watch: {
|
1175
|
-
active: function (val) {
|
1176
|
-
this.enabled = val
|
1177
|
-
},
|
1178
|
-
z: function (val) {
|
1179
|
-
if (val >= 0 || val === 'auto') {
|
1180
|
-
this.zIndex = val
|
1181
|
-
}
|
1182
|
-
},
|
1183
|
-
currentPage: function (newVal) {
|
1184
|
-
this.stampAreaUpdate(newVal);
|
1185
|
-
},
|
1186
|
-
}
|
1187
|
-
});
|
1188
|
-
|
1189
|
-
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
|
1190
|
-
/* harmony default export */ var draggable_resizable_draggable_resizablevue_type_script_lang_js_ = (draggable_resizablevue_type_script_lang_js_);
|
1191
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=316ef3a2&prod&scoped=true&lang=css&
|
1192
|
-
var draggable_resizablevue_type_style_index_0_id_316ef3a2_prod_scoped_true_lang_css_ = __webpack_require__(190);
|
1193
|
-
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=316ef3a2&prod&scoped=true&lang=css&
|
1194
|
-
|
1195
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1196
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
1197
|
-
|
1198
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
1199
|
-
// This module is a runtime utility for cleaner component module output and will
|
1200
|
-
// be included in the final webpack user bundle.
|
1201
|
-
|
1202
|
-
function normalizeComponent(
|
1203
|
-
scriptExports,
|
1204
|
-
render,
|
1205
|
-
staticRenderFns,
|
1206
|
-
functionalTemplate,
|
1207
|
-
injectStyles,
|
1208
|
-
scopeId,
|
1209
|
-
moduleIdentifier /* server only */,
|
1210
|
-
shadowMode /* vue-cli only */
|
1211
|
-
) {
|
1212
|
-
// Vue.extend constructor export interop
|
1213
|
-
var options =
|
1214
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
1215
|
-
|
1216
|
-
// render functions
|
1217
|
-
if (render) {
|
1218
|
-
options.render = render
|
1219
|
-
options.staticRenderFns = staticRenderFns
|
1220
|
-
options._compiled = true
|
1221
|
-
}
|
1222
|
-
|
1223
|
-
// functional template
|
1224
|
-
if (functionalTemplate) {
|
1225
|
-
options.functional = true
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
// scopedId
|
1229
|
-
if (scopeId) {
|
1230
|
-
options._scopeId = 'data-v-' + scopeId
|
1231
|
-
}
|
1232
|
-
|
1233
|
-
var hook
|
1234
|
-
if (moduleIdentifier) {
|
1235
|
-
// server build
|
1236
|
-
hook = function (context) {
|
1237
|
-
// 2.3 injection
|
1238
|
-
context =
|
1239
|
-
context || // cached call
|
1240
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
1241
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
1242
|
-
// 2.2 with runInNewContext: true
|
1243
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
1244
|
-
context = __VUE_SSR_CONTEXT__
|
1245
|
-
}
|
1246
|
-
// inject component styles
|
1247
|
-
if (injectStyles) {
|
1248
|
-
injectStyles.call(this, context)
|
1249
|
-
}
|
1250
|
-
// register component module identifier for async chunk inferrence
|
1251
|
-
if (context && context._registeredComponents) {
|
1252
|
-
context._registeredComponents.add(moduleIdentifier)
|
1253
|
-
}
|
1254
|
-
}
|
1255
|
-
// used by ssr in case component is cached and beforeCreate
|
1256
|
-
// never gets called
|
1257
|
-
options._ssrRegister = hook
|
1258
|
-
} else if (injectStyles) {
|
1259
|
-
hook = shadowMode
|
1260
|
-
? function () {
|
1261
|
-
injectStyles.call(
|
1262
|
-
this,
|
1263
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
1264
|
-
)
|
1265
|
-
}
|
1266
|
-
: injectStyles
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
if (hook) {
|
1270
|
-
if (options.functional) {
|
1271
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
1272
|
-
// go through the normalizer
|
1273
|
-
options._injectStyles = hook
|
1274
|
-
// register for functional component in vue file
|
1275
|
-
var originalRender = options.render
|
1276
|
-
options.render = function renderWithStyleInjection(h, context) {
|
1277
|
-
hook.call(context)
|
1278
|
-
return originalRender(h, context)
|
1279
|
-
}
|
1280
|
-
} else {
|
1281
|
-
// inject component registration as beforeCreate hook
|
1282
|
-
var existing = options.beforeCreate
|
1283
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
1284
|
-
}
|
1285
|
-
}
|
1286
|
-
|
1287
|
-
return {
|
1288
|
-
exports: scriptExports,
|
1289
|
-
options: options
|
1290
|
-
}
|
1291
|
-
}
|
1292
|
-
|
1293
|
-
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
;
|
1298
|
-
|
1299
|
-
|
1300
|
-
/* normalize component */
|
1301
|
-
|
1302
|
-
var component = normalizeComponent(
|
1303
|
-
draggable_resizable_draggable_resizablevue_type_script_lang_js_,
|
1304
|
-
draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render,
|
1305
|
-
draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns,
|
1306
|
-
false,
|
1307
|
-
null,
|
1308
|
-
"316ef3a2",
|
1309
|
-
null
|
1310
|
-
|
1311
|
-
)
|
1312
|
-
|
1313
|
-
/* harmony default export */ var draggable_resizable = (component.exports);
|
1314
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
/* harmony default export */ var srcvue_type_script_lang_js_ = ({
|
1320
|
-
name: "OfdView",
|
1321
|
-
components: {
|
1322
|
-
VueDraggableResizable: draggable_resizable
|
1323
|
-
},
|
1324
|
-
props: {
|
1325
|
-
file: {
|
1326
|
-
required: false
|
1327
|
-
},
|
1328
|
-
mem: {
|
1329
|
-
required: true,
|
1330
|
-
},
|
1331
|
-
secret: {
|
1332
|
-
type: String,
|
1333
|
-
required: false
|
1334
|
-
},
|
1335
|
-
digest: {
|
1336
|
-
type: String,
|
1337
|
-
required: false
|
1338
|
-
},
|
1339
|
-
draggable: {
|
1340
|
-
type: Boolean, required: false, default: true
|
1341
|
-
},
|
1342
|
-
resizable: {
|
1343
|
-
type: Boolean, required: false, default: false
|
1344
|
-
},
|
1345
|
-
editable: {
|
1346
|
-
type: Boolean, required: false, default: true
|
1347
|
-
},
|
1348
|
-
stamps: {
|
1349
|
-
type: Array,
|
1350
|
-
required: false,
|
1351
|
-
default: () => []
|
1352
|
-
},
|
1353
|
-
sidebarForceOpen: {
|
1354
|
-
type: Boolean, required: false, default: false
|
1355
|
-
},
|
1356
|
-
signatureViewerForceCheck: {
|
1357
|
-
type: Boolean, required: false, default: false
|
1358
|
-
}
|
1359
|
-
},
|
1360
|
-
|
1361
|
-
watch: {
|
1362
|
-
file: {
|
1363
|
-
immediate: true,
|
1364
|
-
handler(val) {
|
1365
|
-
if (this.config && this.mem) {
|
1366
|
-
this.ofdViewer = null
|
1367
|
-
this.mem.openOFD(val)
|
1368
|
-
}
|
1369
|
-
}
|
1370
|
-
},
|
1371
|
-
stamps: {
|
1372
|
-
immediate: true,
|
1373
|
-
handler(val) {
|
1374
|
-
if (val.length > 0 && this.config) {
|
1375
|
-
document.getElementById('scrollModeButtons').hidden = true
|
1376
|
-
document.getElementById('spreadModeButtons').hidden = true
|
1377
|
-
}
|
1378
|
-
}
|
1379
|
-
}
|
1380
|
-
},
|
1381
|
-
|
1382
|
-
|
1383
|
-
data() {
|
1384
|
-
return {
|
1385
|
-
viewVisible: false,
|
1386
|
-
config: null,
|
1387
|
-
eventBus: null,
|
1388
|
-
sp: 1,
|
1389
|
-
ofdViewer: null
|
1390
|
-
}
|
1391
|
-
},
|
1392
|
-
|
1393
|
-
mounted() {
|
1394
|
-
if (!this.config) {
|
1395
|
-
this.config = this.getViewerConfiguration()
|
1396
|
-
//vue下viewerContainer必须设置height
|
1397
|
-
// this.containerHeight = `${window.innerHeight - 100}px`
|
1398
|
-
let img = new Image();
|
1399
|
-
img.style.position = 'absolute';
|
1400
|
-
img.style.left = 0;
|
1401
|
-
img.style.right = 0;
|
1402
|
-
img.style.margin = 'auto';
|
1403
|
-
img.style.top = 0;
|
1404
|
-
img.style.bottom = 0;
|
1405
|
-
img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYCAYXXUGk4DWJhZN4dlAlMSLRW80cSVzM3UgB3ksAwcnamwkB28GjVCWl5iZmpucnZ4cj4eWoRqFLKJHpgSoFIoEe5ausBeyl7UYqqw9uaVrukOkn8LDxMXGx8ibwY6+JLxydCO3JdMg1dJ/Is+E0SPLcs3Jnt/F28XXw+jC5uXh4u89EQAh+QQJCgAAACwAAAAANgA3AAAEzhDISau9OOvNu/9gKI5kaZ5oqhYGQRiFWhaD6w6xLLa2a+iiXg8YEtqIIF7vh/QcarbB4YJIuBKIpuTAM0wtCqNiJBgMBCaE0ZUFCXpoknWdCEFvpfURdCcM8noEIW82cSNzRnWDZoYjamttWhphQmOSHFVXkZecnZ6foKFujJdlZxqELo1AqQSrFH1/TbEZtLM9shetrzK7qKSSpryixMXGx8jJyifCKc1kcMzRIrYl1Xy4J9cfvibdIs/MwMue4cffxtvE6qLoxubk8ScRACH5BAkKAAAALAAAAAA2ADcAAATOEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwyZKxhqhgJJeSQVdraBNFSsVUVPHsEAzJrEtnJNSELXRN2bKcwjw19f0QG7PjA7B2EGfn+FhoeIiYoSCAk1CQiLFQpoChlUQwhuBJEWcXkpjm4JF3w9P5tvFqZsLKkEF58/omiksXiZm52SlGKWkhONj7vAxcbHyMkTmCjMcDygRNAjrCfVaqcm11zTJrIjzt64yojhxd/G28XqwOjG5uTxJhEAIfkECQoAAAAsAAAAADYANwAABM0QyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/i8qmCoGQoacT8FZ4AXbFopfTwEBhhnQ4w2j0GRkgQYiEOLPI6ZUkgHZwd6EweLBqSlq6ytricICTUJCKwKkgojgiMIlwS1VEYlspcJIZAkvjXHlcnKIZokxJLG0KAlvZfAebeMuUi7FbGz2z/Rq8jozavn7Nev8CsRACH5BAkKAAAALAAAAAA2ADcAAATLEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwzJNCmPzheUyJuKijVrZ2cTlrg1LwjcO5HFyeoJeyM9U++mfE6v2+/4PD6O5F/YWiqAGWdIhRiHP4kWg0ONGH4/kXqUlZaXmJlMBQY1BgVuUicFZ6AhjyOdPAQGQF0mqzauYbCxBFdqJao8rVeiGQgJNQkIFwdnB0MKsQrGqgbJPwi2BMV5wrYJetQ129x62LHaedO21nnLq82VwcPnIhEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/g8Po7kX9haKoAZZ0iFGIc/iRaDQ40Yfj+RepSVlpeYAAgJNQkIlgo8NQqUCKI2nzNSIpynBAkzaiCuNl9BIbQ1tl0hraewbrIfpq6pbqsioaKkFwUGNQYFSJudxhUFZ9KUz6IGlbTfrpXcPN6UB2cHlgfcBuqZKBEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7yJEopZA4CsKPDUKfxIIgjZ+P3EWe4gECYtqFo82P2cXlTWXQReOiJE5bFqHj4qiUhmBgoSFho59rrKztLVMBQY1BgWzBWe8UUsiuYIGTpMglSaYIcpfnSHEPMYzyB8HZwdrqSMHxAbath2MsqO0zLLorua05OLvJxEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
|
1406
|
-
img.draggable = false;
|
1407
|
-
this.config.loadingContainer = img
|
1408
|
-
|
1409
|
-
this.config.onPageChanging = pageNumber => {
|
1410
|
-
this.sp = pageNumber
|
1411
|
-
}
|
1412
|
-
this.config.parserOFDSuccess = core => {
|
1413
|
-
// console.log(core)
|
1414
|
-
}
|
1415
|
-
this.config.onPageScale = scale => {
|
1416
|
-
// this.viewVisible = false
|
1417
|
-
this.eventBus.dispatch('stampResize', {source: null});
|
1418
|
-
}
|
1419
|
-
this.config.onViewportChange = view => {
|
1420
|
-
if (!this.ofdViewer) {
|
1421
|
-
this.viewVisible = true
|
1422
|
-
this.$emit('viewready', view)
|
1423
|
-
}
|
1424
|
-
this.ofdViewer = view
|
1425
|
-
// this.eventBus.dispatch('stampResize', {source: null});
|
1426
|
-
}
|
1427
|
-
this.config.secret = this.secret
|
1428
|
-
this.config.digest = this.digest
|
1429
|
-
this.config.sidebarForceOpen = this.sidebarForceOpen
|
1430
|
-
this.config.signatureViewerForceCheck = this.signatureViewerForceCheck
|
1431
|
-
|
1432
|
-
this.mem.initOFDViewer(this.config)
|
1433
|
-
this.eventBus = this.mem.getEventBus()
|
1434
|
-
}
|
1435
|
-
if (this.file) {
|
1436
|
-
this.mem.openOFD(this.file)
|
1437
|
-
}
|
1438
|
-
|
1439
|
-
},
|
1440
|
-
|
1441
|
-
methods: {
|
1442
|
-
getViewerConfiguration() {
|
1443
|
-
let openFileTip
|
1444
|
-
if (this.$slots && this.$slots.openFileRef && this.$slots.openFileRef[0].elm) {
|
1445
|
-
openFileTip = this.$slots.openFileRef[0].elm
|
1446
|
-
}
|
1447
|
-
let errorWrapper = null
|
1448
|
-
errorWrapper = {
|
1449
|
-
container: document.getElementById('errorWrapper'),
|
1450
|
-
errorMessage: document.getElementById('errorMessage'),
|
1451
|
-
closeButton: document.getElementById('errorClose'),
|
1452
|
-
errorMoreInfo: document.getElementById('errorMoreInfo'),
|
1453
|
-
moreInfoButton: document.getElementById('errorShowMore'),
|
1454
|
-
lessInfoButton: document.getElementById('errorShowLess'),
|
1455
|
-
}
|
1456
|
-
|
1457
|
-
return {
|
1458
|
-
appContainer: document.body,
|
1459
|
-
mainContainer: document.getElementById('viewerContainer'),
|
1460
|
-
viewerContainer: document.getElementById('viewer'),
|
1461
|
-
openFileTip: openFileTip,
|
1462
|
-
toolbar: {
|
1463
|
-
container: document.getElementById('toolbarViewer'),
|
1464
|
-
numPages: document.getElementById('numPages'),
|
1465
|
-
pageNumber: document.getElementById('pageNumber'),
|
1466
|
-
scaleSelect: document.getElementById('scaleSelect'),
|
1467
|
-
customScaleOption: document.getElementById('customScaleOption'),
|
1468
|
-
previous: document.getElementById('previous'),
|
1469
|
-
next: document.getElementById('next'),
|
1470
|
-
zoomIn: document.getElementById('zoomIn'),
|
1471
|
-
zoomOut: document.getElementById('zoomOut'),
|
1472
|
-
openFile: document.getElementById('openFile'),
|
1473
|
-
print: document.getElementById('print'),
|
1474
|
-
},
|
1475
|
-
secondaryToolbar: {
|
1476
|
-
toolbar: document.getElementById('secondaryToolbar'),
|
1477
|
-
toggleButton: document.getElementById('secondaryToolbarToggle'),
|
1478
|
-
toolbarButtonContainer: document.getElementById(
|
1479
|
-
'secondaryToolbarButtonContainer'
|
1480
|
-
),
|
1481
|
-
openFileButton: document.getElementById('secondaryOpenFile'),
|
1482
|
-
printButton: document.getElementById('secondaryPrint'),
|
1483
|
-
downloadButton: document.getElementById("secondaryDownload"),
|
1484
|
-
viewBookmarkButton: document.getElementById("secondaryViewBookmark"),
|
1485
|
-
firstPageButton: document.getElementById("firstPage"),
|
1486
|
-
lastPageButton: document.getElementById("lastPage"),
|
1487
|
-
pageRotateCwButton: document.getElementById("pageRotateCw"),
|
1488
|
-
pageRotateCcwButton: document.getElementById("pageRotateCcw"),
|
1489
|
-
cursorSelectToolButton: document.getElementById("cursorSelectTool"),
|
1490
|
-
cursorHandToolButton: document.getElementById("cursorHandTool"),
|
1491
|
-
scrollPageButton: document.getElementById("scrollPage"),
|
1492
|
-
scrollVerticalButton: document.getElementById("scrollVertical"),
|
1493
|
-
scrollHorizontalButton: document.getElementById("scrollHorizontal"),
|
1494
|
-
scrollWrappedButton: document.getElementById("scrollWrapped"),
|
1495
|
-
spreadNoneButton: document.getElementById("spreadNone"),
|
1496
|
-
spreadOddButton: document.getElementById("spreadOdd"),
|
1497
|
-
spreadEvenButton: document.getElementById("spreadEven"),
|
1498
|
-
documentPropertiesButton: document.getElementById('documentProperties'),
|
1499
|
-
},
|
1500
|
-
sidebar: {
|
1501
|
-
// Divs (and sidebar button)
|
1502
|
-
outerContainer: document.getElementById('outerContainer'),
|
1503
|
-
viewerContainer: document.getElementById('viewerContainer'),
|
1504
|
-
toggleButton: document.getElementById("sidebarToggle"),
|
1505
|
-
// Buttons
|
1506
|
-
// thumbnailButton: document.getElementById("viewThumbnail"),
|
1507
|
-
outlineButton: document.getElementById("viewOutline"),
|
1508
|
-
attachmentsButton: document.getElementById("viewAttachments"),
|
1509
|
-
// layersButton: document.getElementById("viewLayers"),
|
1510
|
-
signaturesButton: document.getElementById("viewSignatures"),
|
1511
|
-
// Views
|
1512
|
-
// thumbnailView: document.getElementById("thumbnailView"),
|
1513
|
-
outlineView: document.getElementById("outlineView"),
|
1514
|
-
attachmentsView: document.getElementById("attachmentsView"),
|
1515
|
-
// layersView: document.getElementById("layersView"),
|
1516
|
-
signaturesView: document.getElementById("signaturesView"),
|
1517
|
-
// View-specific options
|
1518
|
-
// outlineOptionsContainer: document.getElementById(
|
1519
|
-
// "outlineOptionsContainer"
|
1520
|
-
// ),
|
1521
|
-
currentOutlineItemButton: document.getElementById("currentOutlineItem"),
|
1522
|
-
},
|
1523
|
-
sidebarResizer: {
|
1524
|
-
outerContainer: document.getElementById('outerContainer'),
|
1525
|
-
},
|
1526
|
-
documentProperties: {
|
1527
|
-
dialog: document.getElementById('documentPropertiesDialog'),
|
1528
|
-
closeButton: document.getElementById('documentPropertiesClose'),
|
1529
|
-
fields: {
|
1530
|
-
fileName: document.getElementById('fileNameField'),
|
1531
|
-
fileSize: document.getElementById('fileSizeField'),
|
1532
|
-
title: document.getElementById('titleField'),
|
1533
|
-
author: document.getElementById('authorField'),
|
1534
|
-
subject: document.getElementById('subjectField'),
|
1535
|
-
keywords: document.getElementById('keywordsField'),
|
1536
|
-
creationDate: document.getElementById('creationDateField'),
|
1537
|
-
modificationDate: document.getElementById('modificationDateField'),
|
1538
|
-
creator: document.getElementById('creatorField'),
|
1539
|
-
producer: document.getElementById('producerField'),
|
1540
|
-
version: document.getElementById('versionField'),
|
1541
|
-
pageCount: document.getElementById('pageCountField'),
|
1542
|
-
pageSize: document.getElementById('pageSizeField'),
|
1543
|
-
linearized: document.getElementById('linearizedField'),
|
1544
|
-
},
|
1545
|
-
},
|
1546
|
-
signatureProperties: {
|
1547
|
-
dialog: document.getElementById('signaturePropertiesDialog'),
|
1548
|
-
closeButton: document.getElementById('signaturePropertiesClose'),
|
1549
|
-
fields: {
|
1550
|
-
signer: document.getElementById('signerField'),
|
1551
|
-
provider: document.getElementById('providerField'),
|
1552
|
-
hashedValue: document.getElementById('hashedValueField'),
|
1553
|
-
signedValue: document.getElementById('signedValueField'),
|
1554
|
-
signMethod: document.getElementById('signMethodField'),
|
1555
|
-
signVersion: document.getElementById('signVersionField'),
|
1556
|
-
verify: document.getElementById('verifyField'),
|
1557
|
-
|
1558
|
-
sealID: document.getElementById('sealIDField'),
|
1559
|
-
sealName: document.getElementById('sealNameField'),
|
1560
|
-
sealType: document.getElementById('sealTypeField'),
|
1561
|
-
sealAuthTime: document.getElementById('sealAuthTimeField'),
|
1562
|
-
sealMakeTime: document.getElementById('sealMakeTimeField'),
|
1563
|
-
sealVersion: document.getElementById('sealVersionField'),
|
1564
|
-
},
|
1565
|
-
},
|
1566
|
-
errorWrapper,
|
1567
|
-
printContainer: document.getElementById('printContainer'),
|
1568
|
-
openFileInputName: 'fileInput',
|
1569
|
-
}
|
1570
|
-
},
|
1571
|
-
|
1572
|
-
onStampDragOver(e) {
|
1573
|
-
e.dataTransfer.dropEffect = 'move';
|
1574
|
-
},
|
1575
|
-
removeStamp(index) {
|
1576
|
-
this.$emit('removePos', index);
|
1577
|
-
},
|
1578
|
-
// eslint-disable-next-line no-unused-vars
|
1579
|
-
onStampDragStop(ctx) {
|
1580
|
-
|
1581
|
-
},
|
1582
|
-
placed(pageNum, index, params, stampId) {
|
1583
|
-
this.$emit('itemDropped', index, pageNum, params, stampId);
|
1584
|
-
},
|
1585
|
-
}
|
1586
|
-
});
|
1587
|
-
|
1588
|
-
;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
|
1589
|
-
/* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
|
1590
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=style&index=0&id=18db0fa8&prod&scoped=true&lang=css&
|
1591
|
-
var srcvue_type_style_index_0_id_18db0fa8_prod_scoped_true_lang_css_ = __webpack_require__(913);
|
1592
|
-
;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=style&index=0&id=18db0fa8&prod&scoped=true&lang=css&
|
1593
|
-
|
1594
|
-
;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
;
|
1599
|
-
|
1600
|
-
|
1601
|
-
/* normalize component */
|
1602
|
-
|
1603
|
-
var src_component = normalizeComponent(
|
1604
|
-
ofdView_srcvue_type_script_lang_js_,
|
1605
|
-
render,
|
1606
|
-
staticRenderFns,
|
1607
|
-
false,
|
1608
|
-
null,
|
1609
|
-
"18db0fa8",
|
1610
|
-
null
|
1611
|
-
|
1612
|
-
)
|
1613
|
-
|
1614
|
-
/* harmony default export */ var ofdView_src = (src_component.exports);
|
1615
|
-
;// CONCATENATED MODULE: ./packages/ofdView/index.js
|
1616
|
-
|
1617
|
-
|
1618
|
-
ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src);//注册组件
|
1619
|
-
|
1620
|
-
/* harmony default export */ var ofdView = (ofdView_src);
|
1621
|
-
|
1622
|
-
;// CONCATENATED MODULE: ./packages/index.js
|
1623
|
-
|
1624
|
-
// import PdvView from './pdfView'
|
1625
|
-
|
1626
|
-
const components = [
|
1627
|
-
ofdView,
|
1628
|
-
// PdvView
|
1629
|
-
]
|
1630
|
-
|
1631
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
1632
|
-
const install = function (Vue) {
|
1633
|
-
|
1634
|
-
// 判断是否安装
|
1635
|
-
if (install.installed) return
|
1636
|
-
// 遍历注册全局组件
|
1637
|
-
components.map(component => Vue.component(component.name, component))
|
1638
|
-
}
|
1639
|
-
|
1640
|
-
// 判断是否是直接引入文件
|
1641
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
1642
|
-
install(window.Vue)
|
1643
|
-
}
|
1644
|
-
|
1645
|
-
/* harmony default export */ var packages_0 = ({
|
1646
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
1647
|
-
install,
|
1648
|
-
// 以下是具体的组件列表
|
1649
|
-
OfdView: ofdView,
|
1650
|
-
// PdvView
|
1651
|
-
});
|
1652
|
-
|
1653
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
1654
|
-
|
1655
|
-
|
1656
|
-
/* harmony default export */ var entry_lib = (packages_0);
|
1657
|
-
|
1658
|
-
|
1659
|
-
}();
|
1660
|
-
/******/ return __webpack_exports__;
|
1661
|
-
/******/ })()
|
1662
|
-
;
|
1663
|
-
});
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["ofd-view"]=e():t["ofd-view"]=e()}("undefined"!=typeof self?self:this,(function(){return function(){var t={9662:function(t,e,i){var a=i(614),n=i(6330),r=TypeError;t.exports=function(t){if(a(t))return t;throw r(n(t)+" is not a function")}},9670:function(t,e,i){var a=i(111),n=String,r=TypeError;t.exports=function(t){if(a(t))return t;throw r(n(t)+" is not an object")}},1318:function(t,e,i){var a=i(5656),n=i(1400),r=i(6244),o=function(t){return function(e,i,o){var s,l=a(e),d=r(l),c=n(o,d);if(t&&i!=i){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},3658:function(t,e,i){"use strict";var a=i(9781),n=i(3157),r=TypeError,o=Object.getOwnPropertyDescriptor,s=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(n(t)&&!o(t,"length").writable)throw r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,i){var a=i(1702),n=a({}.toString),r=a("".slice);t.exports=function(t){return r(n(t),8,-1)}},9920:function(t,e,i){var a=i(2597),n=i(3887),r=i(1236),o=i(3070);t.exports=function(t,e,i){for(var s=n(e),l=o.f,d=r.f,c=0;c<s.length;c++){var u=s[c];a(t,u)||i&&a(i,u)||l(t,u,d(e,u))}}},8880:function(t,e,i){var a=i(9781),n=i(3070),r=i(9114);t.exports=a?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,i){var a=i(614),n=i(3070),r=i(6339),o=i(3072);t.exports=function(t,e,i,s){s||(s={});var l=s.enumerable,d=void 0!==s.name?s.name:e;if(a(i)&&r(i,d,s),s.global)l?t[e]=i:o(e,i);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:n.f(t,e,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:function(t,e,i){var a=i(7854),n=Object.defineProperty;t.exports=function(t,e){try{n(a,t,{value:e,configurable:!0,writable:!0})}catch(i){a[t]=e}return e}},9781:function(t,e,i){var a=i(7293);t.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,i=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},317:function(t,e,i){var a=i(7854),n=i(111),r=a.document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},7207:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,i){var a,n,r=i(7854),o=i(8113),s=r.process,l=r.Deno,d=s&&s.versions||l&&l.version,c=d&&d.v8;c&&(n=(a=c.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!n&&o&&(!(a=o.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/))&&(n=+a[1]),t.exports=n},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,i){var a=i(7854),n=i(1236).f,r=i(8880),o=i(8052),s=i(3072),l=i(9920),d=i(4705);t.exports=function(t,e){var i,c,u,p,h,f=t.target,m=t.global,g=t.stat;if(i=m?a:g?a[f]||s(f,{}):(a[f]||{}).prototype)for(c in e){if(p=e[c],u=t.dontCallGetSet?(h=n(i,c))&&h.value:i[c],!d(m?c:f+(g?".":"#")+c,t.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(t.sham||u&&u.sham)&&r(p,"sham",!0),o(i,c,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},4374:function(t,e,i){var a=i(7293);t.exports=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var a=i(4374),n=Function.prototype.call;t.exports=a?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(t,e,i){var a=i(9781),n=i(2597),r=Function.prototype,o=a&&Object.getOwnPropertyDescriptor,s=n(r,"name"),l=s&&"something"===function(){}.name,d=s&&(!a||a&&o(r,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},1702:function(t,e,i){var a=i(4374),n=Function.prototype,r=n.call,o=a&&n.bind.bind(r,r);t.exports=a?o:function(t){return function(){return r.apply(t,arguments)}}},5005:function(t,e,i){var a=i(7854),n=i(614),r=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(a[t]):a[t]&&a[t][e]}},8173:function(t,e,i){var a=i(9662),n=i(8554);t.exports=function(t,e){var i=t[e];return n(i)?void 0:a(i)}},7854:function(t,e,i){var a=function(t){return t&&t.Math==Math&&t};t.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var a=i(1702),n=i(7908),r=a({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(n(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,i){var a=i(9781),n=i(7293),r=i(317);t.exports=!a&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var a=i(1702),n=i(7293),r=i(4326),o=Object,s=a("".split);t.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?s(t,""):o(t)}:o},2788:function(t,e,i){var a=i(1702),n=i(614),r=i(5465),o=a(Function.toString);n(r.inspectSource)||(r.inspectSource=function(t){return o(t)}),t.exports=r.inspectSource},9909:function(t,e,i){var a,n,r,o=i(4811),s=i(7854),l=i(111),d=i(8880),c=i(2597),u=i(5465),p=i(6200),h=i(3501),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(o||u.state){var v=u.state||(u.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,a=function(t,e){if(v.has(t))throw m(f);return e.facade=t,v.set(t,e),e},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var b=p("state");h[b]=!0,a=function(t,e){if(c(t,b))throw m(f);return e.facade=t,d(t,b,e),e},n=function(t){return c(t,b)?t[b]:{}},r=function(t){return c(t,b)}}t.exports={set:a,get:n,has:r,enforce:function(t){return r(t)?n(t):a(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=n(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return i}}}},3157:function(t,e,i){var a=i(4326);t.exports=Array.isArray||function(t){return"Array"==a(t)}},614:function(t,e,i){var a=i(4154),n=a.all;t.exports=a.IS_HTMLDDA?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},4705:function(t,e,i){var a=i(7293),n=i(614),r=/#|\.prototype\./,o=function(t,e){var i=l[s(t)];return i==c||i!=d&&(n(e)?a(e):!!e)},s=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=o.data={},d=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,i){var a=i(614),n=i(4154),r=n.all;t.exports=n.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:a(t)||t===r}:function(t){return"object"==typeof t?null!==t:a(t)}},1913:function(t){t.exports=!1},2190:function(t,e,i){var a=i(5005),n=i(614),r=i(7976),o=i(3307),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=a("Symbol");return n(e)&&r(e.prototype,s(t))}},6244:function(t,e,i){var a=i(7466);t.exports=function(t){return a(t.length)}},6339:function(t,e,i){var a=i(1702),n=i(7293),r=i(614),o=i(2597),s=i(9781),l=i(6530).CONFIGURABLE,d=i(2788),c=i(9909),u=c.enforce,p=c.get,h=String,f=Object.defineProperty,m=a("".slice),g=a("".replace),v=a([].join),b=s&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=t.exports=function(t,e,i){"Symbol("===m(h(e),0,7)&&(e="["+g(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&i&&o(i,"arity")&&t.length!==i.arity&&f(t,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var a=u(t);return o(a,"source")||(a.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return r(this)&&p(this).source||d(this)}),"toString")},4758:function(t){var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var a=+t;return(a>0?i:e)(a)}},3070:function(t,e,i){var a=i(9781),n=i(4664),r=i(3353),o=i(9670),s=i(4948),l=TypeError,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",h="writable";e.f=a?r?function(t,e,i){if(o(t),e=s(e),o(i),"function"==typeof t&&"prototype"===e&&"value"in i&&h in i&&!i[h]){var a=c(t,e);a&&a[h]&&(t[e]=i.value,i={configurable:p in i?i[p]:a[p],enumerable:u in i?i[u]:a[u],writable:!1})}return d(t,e,i)}:d:function(t,e,i){if(o(t),e=s(e),o(i),n)try{return d(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var a=i(9781),n=i(6916),r=i(5296),o=i(9114),s=i(5656),l=i(4948),d=i(2597),c=i(4664),u=Object.getOwnPropertyDescriptor;e.f=a?u:function(t,e){if(t=s(t),e=l(e),c)try{return u(t,e)}catch(t){}if(d(t,e))return o(!n(r.f,t,e),t[e])}},8006:function(t,e,i){var a=i(6324),n=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return a(t,n)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,i){var a=i(1702);t.exports=a({}.isPrototypeOf)},6324:function(t,e,i){var a=i(1702),n=i(2597),r=i(5656),o=i(1318).indexOf,s=i(3501),l=a([].push);t.exports=function(t,e){var i,a=r(t),d=0,c=[];for(i in a)!n(s,i)&&n(a,i)&&l(c,i);for(;e.length>d;)n(a,i=e[d++])&&(~o(c,i)||l(c,i));return c}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!i.call({1:2},1);e.f=n?function(t){var e=a(this,t);return!!e&&e.enumerable}:i},2140:function(t,e,i){var a=i(6916),n=i(614),r=i(111),o=TypeError;t.exports=function(t,e){var i,s;if("string"===e&&n(i=t.toString)&&!r(s=a(i,t)))return s;if(n(i=t.valueOf)&&!r(s=a(i,t)))return s;if("string"!==e&&n(i=t.toString)&&!r(s=a(i,t)))return s;throw o("Can't convert object to primitive value")}},3887:function(t,e,i){var a=i(5005),n=i(1702),r=i(8006),o=i(5181),s=i(9670),l=n([].concat);t.exports=a("Reflect","ownKeys")||function(t){var e=r.f(s(t)),i=o.f;return i?l(e,i(t)):e}},4488:function(t,e,i){var a=i(8554),n=TypeError;t.exports=function(t){if(a(t))throw n("Can't call method on "+t);return t}},6200:function(t,e,i){var a=i(2309),n=i(9711),r=a("keys");t.exports=function(t){return r[t]||(r[t]=n(t))}},5465:function(t,e,i){var a=i(7854),n=i(3072),r="__core-js_shared__",o=a[r]||n(r,{});t.exports=o},2309:function(t,e,i){var a=i(1913),n=i(5465);(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.2",mode:a?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,i){var a=i(7392),n=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&a&&a<41}))},1400:function(t,e,i){var a=i(9303),n=Math.max,r=Math.min;t.exports=function(t,e){var i=a(t);return i<0?n(i+e,0):r(i,e)}},5656:function(t,e,i){var a=i(8361),n=i(4488);t.exports=function(t){return a(n(t))}},9303:function(t,e,i){var a=i(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:a(e)}},7466:function(t,e,i){var a=i(9303),n=Math.min;t.exports=function(t){return t>0?n(a(t),9007199254740991):0}},7908:function(t,e,i){var a=i(4488),n=Object;t.exports=function(t){return n(a(t))}},7593:function(t,e,i){var a=i(6916),n=i(111),r=i(2190),o=i(8173),s=i(2140),l=i(5112),d=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!n(t)||r(t))return t;var i,l=o(t,c);if(l){if(void 0===e&&(e="default"),i=a(l,t,e),!n(i)||r(i))return i;throw d("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,i){var a=i(7593),n=i(2190);t.exports=function(t){var e=a(t,"string");return n(e)?e:e+""}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,i){var a=i(1702),n=0,r=Math.random(),o=a(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++n+r,36)}},3307:function(t,e,i){var a=i(6293);t.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var a=i(9781),n=i(7293);t.exports=a&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,i){var a=i(7854),n=i(614),r=a.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},5112:function(t,e,i){var a=i(7854),n=i(2309),r=i(2597),o=i(9711),s=i(6293),l=i(3307),d=a.Symbol,c=n("wks"),u=l?d.for||d:d&&d.withoutSetter||o;t.exports=function(t){return r(c,t)||(c[t]=s&&r(d,t)?d[t]:u("Symbol."+t)),c[t]}},7658:function(t,e,i){"use strict";var a=i(2109),n=i(7908),r=i(6244),o=i(3658),s=i(7207);a({target:"Array",proto:!0,arity:1,forced:i(7293)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=n(this),i=r(e),a=arguments.length;s(i+a);for(var l=0;l<a;l++)e[i]=arguments[l],i++;return o(e,i),i}})},1995:function(t,e,i){"use strict";i.r(e);var a=i(8081),n=i.n(a),r=i(3645),o=i.n(r)()(n());o.push([t.id,'.vdr[data-v-316ef3a2]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-316ef3a2]{display:none}.vdr[data-v-316ef3a2]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-316ef3a2]{display:block}.handle[data-v-316ef3a2]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-316ef3a2]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-316ef3a2]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-316ef3a2]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-316ef3a2]{left:-10px;cursor:w-resize}.handle-ml[data-v-316ef3a2],.handle-mr[data-v-316ef3a2]{top:50%;margin-top:-5px}.handle-mr[data-v-316ef3a2]{right:-10px;cursor:e-resize}.handle-bl[data-v-316ef3a2]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-316ef3a2]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-316ef3a2]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-316ef3a2]:before{content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-316ef3a2]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-316ef3a2]:before{content:"\\2716"}.close[data-v-316ef3a2]{top:5px;right:2px;position:absolute}',""]),e.default=o},8631:function(t,e,i){"use strict";i.r(e);var a=i(8081),n=i.n(a),r=i(3645),o=i.n(r)()(n());o.push([t.id,".stamp[data-v-30bbca41]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}",""]),e.default=o},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",a=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),a&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),a&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,a,n,r){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var d=0;d<t.length;d++){var c=[].concat(t[d]);a&&o[c[0]]||(void 0!==r&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),e.push(c))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},3190:function(t,e,i){var a=i(1995);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);(0,i(4402).Z)("49ea6102",a,!0,{sourceMap:!1,shadowMode:!1})},1976:function(t,e,i){var a=i(8631);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);(0,i(4402).Z)("0963d07e",a,!0,{sourceMap:!1,shadowMode:!1})},4402:function(t,e,i){"use strict";function a(t,e){for(var i=[],a={},n=0;n<e.length;n++){var r=e[n],o=r[0],s={id:t+":"+n,css:r[1],media:r[2],sourceMap:r[3]};a[o]?a[o].parts.push(s):i.push(a[o]={id:o,parts:[s]})}return i}i.d(e,{Z:function(){return f}});var n="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,i,n){d=i,u=n||{};var o=a(t,e);return m(o),function(e){for(var i=[],n=0;n<o.length;n++){var s=o[n];(l=r[s.id]).refs--,i.push(l)}e?m(o=a(t,e)):o=[];for(n=0;n<i.length;n++){var l;if(0===(l=i[n]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var i=t[e],a=r[i.id];if(a){a.refs++;for(var n=0;n<a.parts.length;n++)a.parts[n](i.parts[n]);for(;n<i.parts.length;n++)a.parts.push(v(i.parts[n]));a.parts.length>i.parts.length&&(a.parts.length=i.parts.length)}else{var o=[];for(n=0;n<i.parts.length;n++)o.push(v(i.parts[n]));r[i.id]={id:i.id,refs:1,parts:o}}}}function g(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function v(t){var e,i,a=document.querySelector("style["+p+'~="'+t.id+'"]');if(a){if(d)return c;a.parentNode.removeChild(a)}if(h){var n=l++;a=s||(s=g()),e=w.bind(null,a,n,!1),i=w.bind(null,a,n,!0)}else a=g(),e=_.bind(null,a),i=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else i()}}var b,y=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,i,a){var n=i?"":a.css;if(t.styleSheet)t.styleSheet.cssText=y(e,n);else{var r=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function _(t,e){var i=e.css,a=e.media,n=e.sourceMap;if(a&&t.setAttribute("media",a),u.ssrId&&t.setAttribute(p,e.id),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}}},e={};function i(a){var n=e[a];if(void 0!==n)return n.exports;var r=e[a]={id:a,exports:{}};return t[a](r,r.exports,i),r.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var a in e)i.o(e,a)&&!i.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.p="";var a={};return function(){"use strict";if(i.r(a),i.d(a,{default:function(){return m}}),"undefined"!=typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(i.p=e[1])}i(7658);function n(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)}function r(t,e,i){let a=t;const r=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find((t=>n(a[t])));if(!n(a[r]))return!1;do{if(a[r](e))return!0;if(a===i)return!1;a=a.parentNode}while(a);return!1}var o={replace:!0,name:"VueDraggableResizable",props:{active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},w:{type:Number,default:200,validator:function(t){return t>0}},h:{type:Number,default:200,validator:function(t){return t>0}},minw:{type:Number,default:50,validator:function(t){return t>=0}},minh:{type:Number,default:50,validator:function(t){return t>=0}},x:{type:Number,default:0,validator:function(t){return"number"==typeof t}},y:{type:Number,default:0,validator:function(t){return"number"==typeof t}},z:{type:[String,Number],default:"auto",validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},handles:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]},validator:function(t){let e=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(t.filter((t=>e.has(t)))).size===t.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:function(t){return-1!==["x","y","both"].indexOf(t)}},grid:{type:Array,default:function(){return[1,1]}},parent:{type:Element,default:null},maximize:{type:Boolean,default:!1},pages:{type:Array,required:!1,default:null},eventBus:{type:Object,default:null},index:{type:Number,required:!1,default:0},currentPage:{type:Number,required:!1,default:0},stampId:{type:String,required:!1,default:null}},created:function(){this.parentX=0,this.parentW=9999,this.parentY=0,this.parentH=9999,this.mouseX=0,this.mouseY=0,this.lastMouseX=0,this.lastMouseY=0,this.mouseOffX=0,this.mouseOffY=0,this.elmX=0,this.elmY=0,this.elmW=0,this.elmH=0,this.scrollPosition=0,this.scrollDist=0,this.pagesCount=this.pages?this.pages.length:0,this.section=[],this.scale=null},mounted:function(){if(this.parent.addEventListener("mousemove",this.handleMove,!1),this.parent.addEventListener("mousedown",this.deselect,!1),this.parent.addEventListener("mouseup",this.handleUp,!1),this.parent.addEventListener("touchmove",this.handleMove,!1),this.parent.addEventListener("touchend",this.handleUp,!1),this.parent.addEventListener("touchstart",this.deselect,!1),this.parent&&this.parent.parentNode.addEventListener("scroll",this.handleScrollMove,!1),this.eventBus&&this.eventBus.on("stampResize",this.stampResize),this.elmX=parseInt(this.$el.style.left),this.elmY=parseInt(this.$el.style.top),this.elmW=this.$el.offsetWidth||this.$el.clientWidth,this.elmH=this.$el.offsetHeight||this.$el.clientHeight,this._reviewDimensions(),this.pages){this.scale||(this.scale=this.pages[0].viewport.scale),this.updateSection(),this.top=this.y+10<0?10:this.y+10,this.top<10&&(this.top=10);let t=this.adjust(this.section,this.top,this.currentPage-1,this.pagesCount-1);this.elmY=this.top;let e=this.pages[t];e&&this.x-e.div.offsetLeft-9>0||e&&(this.left=e.div.offsetLeft+9),this.elmX=this.left,this._emitPlaced(t)}},beforeUnmount:function(){this.parent.removeEventListener("mousemove",this.handleMove,!1),this.parent.removeEventListener("mousedown",this.deselect,!1),this.parent.removeEventListener("mouseup",this.handleUp,!1),this.parent&&this.parent.parentNode.removeEventListener("scroll",this.handleScrollMove,!1),this.eventBus&&this.eventBus.off("stampResize",this.stampResize),this.parent.removeEventListener("touchmove",this.handleMove,!1),this.parent.removeEventListener("touchend",this.handleUp,!1),this.parent.removeEventListener("touchstart",this.deselect,!1)},data:function(){return{top:this.y,left:this.x,width:this.w,height:this.h,resizing:!1,dragging:!1,enabled:this.active,handle:null,zIndex:this.z}},methods:{adjust(t,e,i,a){let n=this.binarySearch(t,e,i,a);return(n<0||n>this.pagesCount-1)&&(n=0),n=this.adjustBoundary(n),n},handleScrollMove(t){this.dragging&&(this.scrollDist=t.currentTarget.scrollTop-this.scrollPosition,this.top=this.top+this.scrollDist,this.elmY=this.top),this.scrollPosition=t.currentTarget.scrollTop},stampAreaUpdate(t){for(let e=t-1;e<t+1;e++)e-1>0&&e<this.pagesCount&&(this.section[e].t=this.section[e-1].t+this.pages[e-1].viewport.height+11,this.section[e].o=this.pages[e-1].div.offsetLeft+9)},adjustBoundary(t){return this.pages[t]&&this.top+this.elmH-this.section[t].t-this.pages[t].viewport.height>0&&(this.top+this.elmH-this.section[t].t-this.pages[t].viewport.height-this.elmH/2>0?(this.top=this.section[t+1].t,t++):this.top=this.section[t+1].t-this.elmH-9-2),t},binarySearch(t,e,i,a){if(i>a)return i-1;let n=Math.floor((i+a)/2),r=t[n].t;return r>e?this.binarySearch(t,e,i,n-1):r<e?this.binarySearch(t,e,n+1,a):n},updateSection(){this.section.length=0;let t=10;for(let e=0;e<this.pagesCount;e++)t=t+(e>0?this.pages[e-1].viewport.height:0)+(e>0?11:0),this.section.push({t:t,o:this.pages[e].div.offsetLeft+9});this.section.push({t:this.section[this.pagesCount-1].t+this.pages[this.pagesCount-1].viewport.height+9+2,o:this.pages[this.pagesCount-1].div.offsetLeft+9})},stampResize(){if(null!=this.scale){const t=[].concat(this.section);this.updateSection();const e=this.top;let i=this.binarySearch(t,e,this.currentPage-1,this.pagesCount-1);i<0&&(i=0);const a=this.pages[0].viewport.scale,n=this.width,r=this.height;this.width=n*a/this.scale,this.height=r*a/this.scale;const o=this.left;this.top=(e-10)*a/this.scale+10,this.left=this.pages[i].div.offsetLeft+(o-t[i].o)*a/this.scale+9,this.elmW=this.width,this.elmH=this.height,this.elmX=this.left,this.elmY=this.top,this.scale=a,this._emitPlaced(i)}},_emitPlaced(t){this.$emit("placed",t,this.index,{x:(this.left-this.section[t].o)/this.pages[t].viewport.width,y:(this.top-this.section[t].t)/this.pages[t].viewport.height,w:this.elmW/this.pages[t].viewport.width,h:this.elmH/this.pages[t].viewport.height},this.stampId)},_reviewDimensions(){if(this.minw>this.w&&(this.width=this.minw),this.minh>this.h&&(this.height=this.minh),this.parent){const t=parseInt(this.parent.scrollWidth,10),e=parseInt(this.parent.scrollHeight,10);this.parentW=t,this.parentH=e,this.w>this.parentW&&(this.width=t),this.h>this.parentH&&(this.height=e),this.x+this.w>this.parentW&&t-this.x>0&&(this.width=t-this.x),this.y+this.h>this.parentH&&e-this.y>0&&(this.height=e-this.y)}this.elmW=this.width,this.elmH=this.height},reviewDimensions:function(){this._reviewDimensions(),this.$emit("resizing",this.left,this.top,this.width,this.height)},elmDown:function(t){const e=t.target||t.srcElement;if(this.$el.contains(e)){if(this.dragHandle&&!r(e,this.dragHandle,this.$el)||this.dragCancel&&r(e,this.dragCancel,this.$el))return;this.reviewDimensions(),this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragging=!0)}},deselect:function(t){-1!==t.type.indexOf("touch")?(this.mouseX=t.changedTouches[0].clientX,this.mouseY=t.changedTouches[0].clientY):(this.mouseX=t.pageX||t.clientX+this.parent.scrollLeft,this.mouseY=t.pageY||t.clientY+this.parent.scrollTop),this.lastMouseX=this.mouseX,this.lastMouseY=this.mouseY;const e=t.target||t.srcElement,i=new RegExp("handle-([trmbl]{2})","");this.$el.contains(e)||i.test(e.className)||this.enabled&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1))},handleDown:function(t,e){this.handle=t,e.cancelable&&(e.stopPropagation(),e.preventDefault()),this.resizing=!0},handleMove:function(t){const e=-1!==t.type.indexOf("touchmove");this.mouseX=e?t.touches[0].clientX:t.pageX||t.clientX+document.documentElement.scrollLeft,this.mouseY=e?t.touches[0].clientY:t.pageY||t.clientY+document.documentElement.scrollTop;let i=this.mouseX-this.lastMouseX+this.mouseOffX,a=this.mouseY-this.lastMouseY+this.mouseOffY;this.mouseOffX=this.mouseOffY=0,this.lastMouseX=this.mouseX,this.lastMouseY=this.mouseY;let n=i,r=a;if(this.resizing)this.handle.indexOf("t")>=0&&(this.elmH-r<this.minh?this.mouseOffY=r-(a=this.elmH-this.minh):this.parent&&this.elmY+r<this.parentY&&(this.mouseOffY=r-(a=this.parentY-this.elmY)),this.elmY+=a,this.elmH-=a),this.handle.indexOf("b")>=0&&(this.elmH+r<this.minh?this.mouseOffY=r-(a=this.minh-this.elmH):this.parent&&this.elmY+this.elmH+r>this.parentH&&(this.mouseOffY=r-(a=this.parentH-this.elmY-this.elmH)),this.elmH+=a),this.handle.indexOf("l")>=0&&(this.elmW-n<this.minw?this.mouseOffX=n-(i=this.elmW-this.minw):this.parent&&this.elmX+n<this.parentX&&(this.mouseOffX=n-(i=this.parentX-this.elmX)),this.elmX+=i,this.elmW-=i),this.handle.indexOf("r")>=0&&(this.elmW+n<this.minw?this.mouseOffX=n-(i=this.minw-this.elmW):this.parent&&this.elmX+this.elmW+n>this.parentW&&(this.mouseOffX=n-(i=this.parentW-this.elmX-this.elmW)),this.elmW+=i),this.left=Math.round(this.elmX/this.grid[0])*this.grid[0],this.top=Math.round(this.elmY/this.grid[1])*this.grid[1],this.width=Math.round(this.elmW/this.grid[0])*this.grid[0],this.height=Math.round(this.elmH/this.grid[1])*this.grid[1],this.$emit("resizing",this.left,this.top,this.width,this.height);else if(this.dragging){if(this.parent){this._reviewDimensions();let[t,e]=[0,10];if(this.pages){let e=this.binarySearch(this.section,this.elmY+a,this.currentPage-1,this.pagesCount-1);e<0&&(e=0),this.elmY+a+this.elmH-this.section[e].t-this.pages[e].viewport.height>0&&this.elmY+a+this.elmH-this.section[e].t-this.pages[e].viewport.height-.9*this.elmH-11>0&&e++,t=this.pages[e].div.offsetLeft+9}this.elmX+n<this.parentX+t?this.mouseOffX=n-(i=this.parentX+t-this.elmX):this.elmX+this.elmW+n>this.parentW-t&&(this.mouseOffX=n-(i=this.parentW-t-this.elmX-this.elmW)),this.elmY+r<this.parentY+e?this.mouseOffY=r-(a=this.parentY+e-this.elmY):this.elmY+this.elmH+r>this.parentH&&(this.mouseOffY=r-(a=this.parentH-this.elmY-this.elmH))}this.elmX+=i,this.elmY+=a,"x"!==this.axis&&"both"!==this.axis||(this.left=Math.round(this.elmX/this.grid[0])*this.grid[0]),"y"!==this.axis&&"both"!==this.axis||(this.top=Math.round(this.elmY/this.grid[1])*this.grid[1]),this.$emit("dragging",this.left,this.top)}},handleUp:function(t){if(-1!==t.type.indexOf("touch")&&(this.lastMouseX=t.changedTouches[0].clientX,this.lastMouseY=t.changedTouches[0].clientY),this.handle=null,this.resizing&&(this.resizing=!1,this.$emit("resizestop",this.left,this.top,this.width,this.height)),this.dragging){this.dragging=!1;let t=0;this.pages&&(t=this.adjust(this.section,this.top,this.currentPage-1,this.pagesCount-1)),this._emitPlaced(t),this.$emit("dragstop",this.left,this.top)}this.elmX=this.left,this.elmY=this.top},dropItem(){this.$emit("dropitem",this.index)}},computed:{style:function(){return{top:this.top+"px",left:this.left+"px",width:this.width+"px",height:this.height+"px",zIndex:this.zIndex}}},watch:{active:function(t){this.enabled=t},z:function(t){(t>=0||"auto"===t)&&(this.zIndex=t)},currentPage:function(t){this.stampAreaUpdate(t)}}};i(3190);function s(t,e,i,a,n,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),a&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=l):n&&(l=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:d}}var l=s(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"vdr",class:{draggable:t.draggable,resizable:t.resizable,active:t.enabled,dragging:t.dragging,resizing:t.resizing},style:t.style,on:{mousedown:t.elmDown,touchstart:t.elmDown}},[t.editable?e("button",{staticClass:"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm",staticStyle:{position:"absolute",right:"5px",top:"-20px"},attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.dropItem.apply(null,arguments)}}},[e("span",{staticClass:"close"})]):t._e(),t._l(t.handles,(function(i){return t.resizable?e("div",{key:i,staticClass:"handle",class:"handle-"+i,style:{display:t.enabled?"block":"none"},on:{mousedown:function(e){return t.handleDown(i,e)},touchstart:function(e){return t.handleDown(i,e)}}}):t._e()})),t._t("default")],2)}),[],!1,null,"316ef3a2",null),d={name:"OfdView",components:{VueDraggableResizable:l.exports},props:{file:{required:!1},mem:{required:!0},secret:{type:String,required:!1},digest:{type:String,required:!1},draggable:{type:Boolean,required:!1,default:!0},resizable:{type:Boolean,required:!1,default:!1},editable:{type:Boolean,required:!1,default:!0},stamps:{type:Array,required:!1,default:()=>[]},sidebarForceOpen:{type:Boolean,required:!1,default:!1},signatureViewerForceCheck:{type:Boolean,required:!1,default:!1}},watch:{file:{immediate:!0,handler(t){this.config&&this.mem&&(this.ofdViewer=null,this.mem.openOFD(t))}},stamps:{immediate:!0,handler(t){t.length>0&&this.config&&(document.getElementById("scrollModeButtons").hidden=!0,document.getElementById("spreadModeButtons").hidden=!0)}}},data:()=>({viewVisible:!1,config:null,eventBus:null,sp:1,ofdViewer:null}),mounted(){if(!this.config){this.config=this.getViewerConfiguration();let t=new Image;t.style.position="absolute",t.style.left=0,t.style.right=0,t.style.margin="auto",t.style.top=0,t.style.bottom=0,t.src="data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb2FkLmluZm8AIf8LTkVUU0NBUEUyLjADAQAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYCAYXXUGk4DWJhZN4dlAlMSLRW80cSVzM3UgB3ksAwcnamwkB28GjVCWl5iZmpucnZ4cj4eWoRqFLKJHpgSoFIoEe5ausBeyl7UYqqw9uaVrukOkn8LDxMXGx8ibwY6+JLxydCO3JdMg1dJ/Is+E0SPLcs3Jnt/F28XXw+jC5uXh4u89EQAh+QQJCgAAACwAAAAANgA3AAAEzhDISau9OOvNu/9gKI5kaZ5oqhYGQRiFWhaD6w6xLLa2a+iiXg8YEtqIIF7vh/QcarbB4YJIuBKIpuTAM0wtCqNiJBgMBCaE0ZUFCXpoknWdCEFvpfURdCcM8noEIW82cSNzRnWDZoYjamttWhphQmOSHFVXkZecnZ6foKFujJdlZxqELo1AqQSrFH1/TbEZtLM9shetrzK7qKSSpryixMXGx8jJyifCKc1kcMzRIrYl1Xy4J9cfvibdIs/MwMue4cffxtvE6qLoxubk8ScRACH5BAkKAAAALAAAAAA2ADcAAATOEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwyZKxhqhgJJeSQVdraBNFSsVUVPHsEAzJrEtnJNSELXRN2bKcwjw19f0QG7PjA7B2EGfn+FhoeIiYoSCAk1CQiLFQpoChlUQwhuBJEWcXkpjm4JF3w9P5tvFqZsLKkEF58/omiksXiZm52SlGKWkhONj7vAxcbHyMkTmCjMcDygRNAjrCfVaqcm11zTJrIjzt64yojhxd/G28XqwOjG5uTxJhEAIfkECQoAAAAsAAAAADYANwAABM0QyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/i8qmCoGQoacT8FZ4AXbFopfTwEBhhnQ4w2j0GRkgQYiEOLPI6ZUkgHZwd6EweLBqSlq6ytricICTUJCKwKkgojgiMIlwS1VEYlspcJIZAkvjXHlcnKIZokxJLG0KAlvZfAebeMuUi7FbGz2z/Rq8jozavn7Nev8CsRACH5BAkKAAAALAAAAAA2ADcAAATLEMhJq7046827/2AojmRpnmiqrqwwDAJbCkRNxLI42MSQ6zzfD0Sz4YYfFwzJNCmPzheUyJuKijVrZ2cTlrg1LwjcO5HFyeoJeyM9U++mfE6v2+/4PD6O5F/YWiqAGWdIhRiHP4kWg0ONGH4/kXqUlZaXmJlMBQY1BgVuUicFZ6AhjyOdPAQGQF0mqzauYbCxBFdqJao8rVeiGQgJNQkIFwdnB0MKsQrGqgbJPwi2BMV5wrYJetQ129x62LHaedO21nnLq82VwcPnIhEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7/g8Po7kX9haKoAZZ0iFGIc/iRaDQ40Yfj+RepSVlpeYAAgJNQkIlgo8NQqUCKI2nzNSIpynBAkzaiCuNl9BIbQ1tl0hraewbrIfpq6pbqsioaKkFwUGNQYFSJudxhUFZ9KUz6IGlbTfrpXcPN6UB2cHlgfcBuqZKBEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhhh8XDMk0KY/OF5TIm4qKNWtnZxOWuDUvCNw7kcXJ6gl7Iz1T76Z8Tq/b7yJEopZA4CsKPDUKfxIIgjZ+P3EWe4gECYtqFo82P2cXlTWXQReOiJE5bFqHj4qiUhmBgoSFho59rrKztLVMBQY1BgWzBWe8UUsiuYIGTpMglSaYIcpfnSHEPMYzyB8HZwdrqSMHxAbath2MsqO0zLLorua05OLvJxEAIfkECQoAAAAsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==",t.draggable=!1,this.config.loadingContainer=t,this.config.onPageChanging=t=>{this.sp=t},this.config.parserOFDSuccess=t=>{},this.config.onPageScale=t=>{this.eventBus.dispatch("stampResize",{source:null})},this.config.onViewportChange=t=>{this.ofdViewer||(this.viewVisible=!0,this.$emit("viewready",t)),this.ofdViewer=t},this.config.secret=this.secret,this.config.digest=this.digest,this.config.sidebarForceOpen=this.sidebarForceOpen,this.config.signatureViewerForceCheck=this.signatureViewerForceCheck,this.mem.initOFDViewer(this.config),this.eventBus=this.mem.getEventBus()}this.file&&this.mem.openOFD(this.file)},methods:{getViewerConfiguration(){let t;this.$slots&&this.$slots.openFileRef&&this.$slots.openFileRef[0].elm&&(t=this.$slots.openFileRef[0].elm);let e=null;return e={container:document.getElementById("errorWrapper"),errorMessage:document.getElementById("errorMessage"),closeButton:document.getElementById("errorClose"),errorMoreInfo:document.getElementById("errorMoreInfo"),moreInfoButton:document.getElementById("errorShowMore"),lessInfoButton:document.getElementById("errorShowLess")},{appContainer:document.body,mainContainer:document.getElementById("viewerContainer"),viewerContainer:document.getElementById("viewer"),openFileTip:t,toolbar:{container:document.getElementById("toolbarViewer"),numPages:document.getElementById("numPages"),pageNumber:document.getElementById("pageNumber"),scaleSelect:document.getElementById("scaleSelect"),customScaleOption:document.getElementById("customScaleOption"),previous:document.getElementById("previous"),next:document.getElementById("next"),zoomIn:document.getElementById("zoomIn"),zoomOut:document.getElementById("zoomOut"),openFile:document.getElementById("openFile"),print:document.getElementById("print"),download:document.getElementById("download")},secondaryToolbar:{toolbar:document.getElementById("secondaryToolbar"),toggleButton:document.getElementById("secondaryToolbarToggle"),toolbarButtonContainer:document.getElementById("secondaryToolbarButtonContainer"),openFileButton:document.getElementById("secondaryOpenFile"),printButton:document.getElementById("secondaryPrint"),downloadButton:document.getElementById("secondaryDownload"),viewBookmarkButton:document.getElementById("secondaryViewBookmark"),firstPageButton:document.getElementById("firstPage"),lastPageButton:document.getElementById("lastPage"),pageRotateCwButton:document.getElementById("pageRotateCw"),pageRotateCcwButton:document.getElementById("pageRotateCcw"),cursorSelectToolButton:document.getElementById("cursorSelectTool"),cursorHandToolButton:document.getElementById("cursorHandTool"),scrollPageButton:document.getElementById("scrollPage"),scrollVerticalButton:document.getElementById("scrollVertical"),scrollHorizontalButton:document.getElementById("scrollHorizontal"),scrollWrappedButton:document.getElementById("scrollWrapped"),spreadNoneButton:document.getElementById("spreadNone"),spreadOddButton:document.getElementById("spreadOdd"),spreadEvenButton:document.getElementById("spreadEven"),documentPropertiesButton:document.getElementById("documentProperties")},sidebar:{outerContainer:document.getElementById("outerContainer"),viewerContainer:document.getElementById("viewerContainer"),toggleButton:document.getElementById("sidebarToggle"),outlineButton:document.getElementById("viewOutline"),attachmentsButton:document.getElementById("viewAttachments"),signaturesButton:document.getElementById("viewSignatures"),outlineView:document.getElementById("outlineView"),attachmentsView:document.getElementById("attachmentsView"),signaturesView:document.getElementById("signaturesView"),currentOutlineItemButton:document.getElementById("currentOutlineItem")},sidebarResizer:{outerContainer:document.getElementById("outerContainer")},documentProperties:{dialog:document.getElementById("documentPropertiesDialog"),closeButton:document.getElementById("documentPropertiesClose"),fields:{fileName:document.getElementById("fileNameField"),fileSize:document.getElementById("fileSizeField"),title:document.getElementById("titleField"),author:document.getElementById("authorField"),subject:document.getElementById("subjectField"),keywords:document.getElementById("keywordsField"),creationDate:document.getElementById("creationDateField"),modificationDate:document.getElementById("modificationDateField"),creator:document.getElementById("creatorField"),producer:document.getElementById("producerField"),version:document.getElementById("versionField"),pageCount:document.getElementById("pageCountField"),pageSize:document.getElementById("pageSizeField"),linearized:document.getElementById("linearizedField")}},signatureProperties:{dialog:document.getElementById("signaturePropertiesDialog"),closeButton:document.getElementById("signaturePropertiesClose"),fields:{signer:document.getElementById("signerField"),provider:document.getElementById("providerField"),hashedValue:document.getElementById("hashedValueField"),signedValue:document.getElementById("signedValueField"),signMethod:document.getElementById("signMethodField"),signVersion:document.getElementById("signVersionField"),verify:document.getElementById("verifyField"),sealID:document.getElementById("sealIDField"),sealName:document.getElementById("sealNameField"),sealType:document.getElementById("sealTypeField"),sealAuthTime:document.getElementById("sealAuthTimeField"),sealMakeTime:document.getElementById("sealMakeTimeField"),sealVersion:document.getElementById("sealVersionField")}},errorWrapper:e,printContainer:document.getElementById("printContainer"),openFileInputName:"fileInput"}},onStampDragOver(t){t.dataTransfer.dropEffect="move"},removeStamp(t){this.$emit("removePos",t)},onStampDragStop(t){},placed(t,e,i,a){this.$emit("itemDropped",e,t,i,a)}}},c=(i(1976),s(d,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"outerContainer"}},[t._m(0),t._v(" "),e("div",{attrs:{id:"mainContainer"}},[t._m(1),t._v(" "),t._m(2),e("div",{attrs:{id:"viewerContainer",tabindex:"0"}},[e("div",{staticClass:"pdfViewer",attrs:{id:"viewer"},on:{dragover:function(e){return e.preventDefault(),t.onStampDragOver.apply(null,arguments)}}},t._l(t.stamps,(function(i,a){return t.viewVisible?e("vue-draggable-resizable",{attrs:{w:i.w?i.w:174,h:i.h?i.h:174,parent:t.config.viewerContainer,customForStamp:!0,eventBus:t.eventBus,handles:["tl","tr","bl","br"],index:a,x:i.x,y:i.located?i.y:i.y+t.config.mainContainer.scrollTop,pages:t.ofdViewer._pages,currentPage:t.sp,"origin-bottom":!1,stampId:i.source.stampId,draggable:t.draggable,resizable:t.resizable,editable:t.editable},on:{dropitem:t.removeStamp,dragstop:t.onStampDragStop,placed:t.placed}},[e("div",{staticClass:"stamp",style:{backgroundImage:"url(data:image/png;base64,"+i.source.stampBase64+")"}})]):t._e()})),1),t._t("openFileRef")],2),t._m(3)]),t._v(" "),t._m(4)])}),[function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"sidebarContainer"}},[e("div",{attrs:{id:"toolbarSidebar"}},[e("div",{attrs:{id:"toolbarSidebarLeft"}},[e("div",{staticClass:"splitToolbarButton toggled",attrs:{id:"sidebarViewButtons",role:"radiogroup"}},[e("button",{staticClass:"toolbarButton toggled",attrs:{id:"viewOutline",title:"Show Document Outline (double-click to expand/collapse all items)",tabindex:"3","data-l10n-id":"document_outline",role:"radio","aria-checked":"false","aria-controls":"outlineView"}},[e("span",{attrs:{"data-l10n-id":"document_outline_label"}},[t._v("Document Outline")])]),e("button",{staticClass:"toolbarButton",attrs:{id:"viewAttachments",title:"Show Attachments",tabindex:"4","data-l10n-id":"attachments",role:"radio","aria-checked":"false","aria-controls":"attachmentsView"}},[e("span",{attrs:{"data-l10n-id":"attachments_label"}},[t._v("Attachments")])]),e("button",{staticClass:"toolbarButton",attrs:{id:"viewSignatures",title:"Show Signatures",tabindex:"6","data-l10n-id":"layers",role:"radio","aria-checked":"false","aria-controls":"signaturesView"}},[e("span",{attrs:{"data-l10n-id":"signatures_label"}},[t._v("Signatures")])])])]),e("div",{attrs:{id:"toolbarSidebarRight"}},[e("div",{staticClass:"hidden",attrs:{id:"outlineOptionsContainer"}},[e("div",{staticClass:"verticalToolbarSeparator"}),e("button",{staticClass:"toolbarButton",attrs:{id:"currentOutlineItem",disabled:"disabled",title:"Find Current Outline Item",tabindex:"6","data-l10n-id":"current_outline_item"}},[e("span",{attrs:{"data-l10n-id":"current_outline_item_label"}},[t._v("Current Outline Item")])])])])]),e("div",{attrs:{id:"sidebarContent"}},[e("div",{attrs:{id:"outlineView"}}),e("div",{staticClass:"hidden",attrs:{id:"attachmentsView"}}),e("div",{staticClass:"hidden",attrs:{id:"signaturesView"}})]),e("div",{attrs:{id:"sidebarResizer"}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{id:"secondaryToolbar"}},[e("div",{attrs:{id:"secondaryToolbarButtonContainer"}},[e("button",{staticClass:"secondaryToolbarButton openFile visibleLargeView",attrs:{id:"secondaryOpenFile",title:"打开文件",tabindex:"52","data-l10n-id":"open_file"}},[e("span",{attrs:{"data-l10n-id":"open_file_label"}},[t._v("打开")])]),e("button",{staticClass:"secondaryToolbarButton print visibleMediumView",attrs:{id:"secondaryPrint",title:"打印",tabindex:"53","data-l10n-id":"print"}},[e("span",{attrs:{"data-l10n-id":"print_label"}},[t._v("打印")])]),e("button",{staticClass:"secondaryToolbarButton download visibleMediumView",attrs:{id:"secondaryDownload",title:"Download",tabindex:"54","data-l10n-id":"download"}},[e("span",{attrs:{"data-l10n-id":"download_label"}},[t._v("Download")])]),e("a",{staticClass:"secondaryToolbarButton bookmark visibleSmallView",attrs:{href:"#",id:"secondaryViewBookmark",title:"Current view (copy or open in new window)",tabindex:"55","data-l10n-id":"bookmark"}},[e("span",{attrs:{"data-l10n-id":"bookmark_label"}},[t._v("Current View")])]),e("div",{staticClass:"horizontalToolbarSeparator visibleLargeView"}),e("button",{staticClass:"secondaryToolbarButton firstPage",attrs:{id:"firstPage",title:"Go to First Page",tabindex:"56","data-l10n-id":"first_page"}},[e("span",{attrs:{"data-l10n-id":"first_page_label"}},[t._v("Go to First Page")])]),e("button",{staticClass:"secondaryToolbarButton lastPage",attrs:{id:"lastPage",title:"Go to Last Page",tabindex:"57","data-l10n-id":"last_page"}},[e("span",{attrs:{"data-l10n-id":"last_page_label"}},[t._v("Go to Last Page")])]),e("div",{staticClass:"horizontalToolbarSeparator"}),e("button",{staticClass:"secondaryToolbarButton rotateCw",attrs:{id:"pageRotateCw",title:"Rotate Clockwise",tabindex:"58","data-l10n-id":"page_rotate_cw"}},[e("span",{attrs:{"data-l10n-id":"page_rotate_cw_label"}},[t._v("Rotate Clockwise")])]),e("button",{staticClass:"secondaryToolbarButton rotateCcw",attrs:{id:"pageRotateCcw",title:"Rotate Counterclockwise",tabindex:"59","data-l10n-id":"page_rotate_ccw"}},[e("span",{attrs:{"data-l10n-id":"page_rotate_ccw_label"}},[t._v("Rotate Counterclockwise")])]),e("div",{staticClass:"horizontalToolbarSeparator"}),e("div",{attrs:{id:"cursorToolButtons",role:"radiogroup"}},[e("button",{staticClass:"secondaryToolbarButton selectTool toggled",attrs:{id:"cursorSelectTool",title:"Enable Text Selection Tool",tabindex:"60","data-l10n-id":"cursor_text_select_tool",role:"radio","aria-checked":"true"}},[e("span",{attrs:{"data-l10n-id":"cursor_text_select_tool_label"}},[t._v("Text Selection Tool")])]),e("button",{staticClass:"secondaryToolbarButton handTool",attrs:{id:"cursorHandTool",title:"Enable Hand Tool",tabindex:"61","data-l10n-id":"cursor_hand_tool",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"cursor_hand_tool_label"}},[t._v("Hand Tool")])])]),e("div",{attrs:{id:"scrollModeButtons",role:"radiogroup"}},[e("div",{staticClass:"horizontalToolbarSeparator"}),e("button",{staticClass:"secondaryToolbarButton scrollPage",attrs:{id:"scrollPage",title:"Use Page Scrolling",tabindex:"62","data-l10n-id":"scroll_page",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"scroll_page_label"}},[t._v("Page Scrolling")])]),e("button",{staticClass:"secondaryToolbarButton scrollVertical toggled",attrs:{id:"scrollVertical",title:"Use Vertical Scrolling",tabindex:"63","data-l10n-id":"scroll_vertical",role:"radio","aria-checked":"true"}},[e("span",{attrs:{"data-l10n-id":"scroll_vertical_label"}},[t._v("Vertical Scrolling")])]),e("button",{staticClass:"secondaryToolbarButton scrollHorizontal",attrs:{id:"scrollHorizontal",title:"Use Horizontal Scrolling",tabindex:"64","data-l10n-id":"scroll_horizontal",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"scroll_horizontal_label"}},[t._v("Horizontal Scrolling")])]),e("button",{staticClass:"secondaryToolbarButton scrollWrapped",attrs:{id:"scrollWrapped",title:"Use Wrapped Scrolling",tabindex:"65","data-l10n-id":"scroll_wrapped",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"scroll_wrapped_label"}},[t._v("Wrapped Scrolling")])])]),e("div",{attrs:{id:"spreadModeButtons",role:"radiogroup"}},[e("div",{staticClass:"horizontalToolbarSeparator"}),e("button",{staticClass:"secondaryToolbarButton spreadNone toggled",attrs:{id:"spreadNone",title:"Do not join page spreads",tabindex:"66","data-l10n-id":"spread_none",role:"radio","aria-checked":"true"}},[e("span",{attrs:{"data-l10n-id":"spread_none_label"}},[t._v("No Spreads")])]),e("button",{staticClass:"secondaryToolbarButton spreadOdd",attrs:{id:"spreadOdd",title:"Join page spreads starting with odd-numbered pages",tabindex:"67","data-l10n-id":"spread_odd",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"spread_odd_label"}},[t._v("Odd Spreads")])]),e("button",{staticClass:"secondaryToolbarButton spreadEven",attrs:{id:"spreadEven",title:"Join page spreads starting with even-numbered pages",tabindex:"68","data-l10n-id":"spread_even",role:"radio","aria-checked":"false"}},[e("span",{attrs:{"data-l10n-id":"spread_even_label"}},[t._v("Even Spreads")])])]),e("div",{staticClass:"horizontalToolbarSeparator"}),e("button",{staticClass:"secondaryToolbarButton documentProperties",attrs:{id:"documentProperties",title:"文档属性…",tabindex:"69","data-l10n-id":"document_properties","aria-controls":"documentPropertiesDialog"}},[e("span",{attrs:{"data-l10n-id":"document_properties_label"}},[t._v("文档属性…")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"toolbar"},[e("div",{attrs:{id:"toolbarContainer"}},[e("div",{attrs:{id:"toolbarViewer"}},[e("div",{attrs:{id:"toolbarViewerLeft"}},[e("button",{staticClass:"toolbarButton",attrs:{id:"sidebarToggle",title:"Toggle Sidebar",tabindex:"11","data-l10n-id":"toggle_sidebar","aria-expanded":"false","aria-controls":"sidebarContainer"}},[e("span",{attrs:{"data-l10n-id":"toggle_sidebar_label"}},[t._v("切换侧栏")])]),e("div",{staticClass:"splitToolbarButton hiddenSmallView"},[e("button",{staticClass:"toolbarButton pageUp",attrs:{title:"上一页",id:"previous",tabindex:"13","data-l10n-id":"previous"}},[e("span",{attrs:{"data-l10n-id":"previous_label"}},[t._v("上一页")])]),e("div",{staticClass:"splitToolbarButtonSeparator"}),e("button",{staticClass:"toolbarButton pageDown",attrs:{title:"下一页",id:"next",tabindex:"14","data-l10n-id":"next"}},[e("span",{attrs:{"data-l10n-id":"next_label"}},[t._v("下一页")])])]),e("input",{staticClass:"toolbarField pageNumber",attrs:{type:"number",id:"pageNumber",title:"页面",value:"1",size:"4",min:"1",tabindex:"15","data-l10n-id":"page",autocomplete:"off"}}),e("span",{staticClass:"toolbarLabel",attrs:{id:"numPages"}})]),e("div",{attrs:{id:"toolbarViewerRight"}},[e("button",{staticClass:"toolbarButton openFile hiddenLargeView",attrs:{id:"openFile",title:"打开文件",tabindex:"32","data-l10n-id":"open_file"}},[e("span",{attrs:{"data-l10n-id":"open_file_label"}},[t._v("打开")])]),e("button",{staticClass:"toolbarButton print hiddenMediumView",attrs:{id:"print",title:"打印",tabindex:"33","data-l10n-id":"print"}},[e("span",{attrs:{"data-l10n-id":"print_label"}},[t._v("打印")])]),e("button",{staticClass:"toolbarButton download hiddenMediumView",attrs:{id:"download",title:"Download",tabindex:"34","data-l10n-id":"download"}},[e("span",{attrs:{"data-l10n-id":"download_label"}},[t._v("Download")])]),e("div",{staticClass:"verticalToolbarSeparator hiddenSmallView"}),e("button",{staticClass:"toolbarButton",attrs:{id:"secondaryToolbarToggle",title:"工具",tabindex:"36","data-l10n-id":"tools","aria-expanded":"false","aria-controls":"secondaryToolbar"}},[e("span",{attrs:{"data-l10n-id":"tools_label"}},[t._v("工具")])])]),e("div",{attrs:{id:"toolbarViewerMiddle"}},[e("div",{staticClass:"splitToolbarButton"},[e("button",{staticClass:"toolbarButton zoomOut",attrs:{id:"zoomOut",title:"缩小",tabindex:"21","data-l10n-id":"zoom_out"}},[e("span",{attrs:{"data-l10n-id":"zoom_out_label"}},[t._v("缩小")])]),e("div",{staticClass:"splitToolbarButtonSeparator"}),e("button",{staticClass:"toolbarButton zoomIn",attrs:{id:"zoomIn",title:"放大",tabindex:"22","data-l10n-id":"zoom_in"}},[e("span",{attrs:{"data-l10n-id":"zoom_in_label"}},[t._v("放大")])])]),e("span",{staticClass:"dropdownToolbarButton",attrs:{id:"scaleSelectContainer"}},[e("select",{attrs:{id:"scaleSelect",title:"缩放",tabindex:"23","data-l10n-id":"zoom"}},[e("option",{attrs:{id:"pageAutoOption",title:"",value:"auto",selected:"selected","data-l10n-id":"page_scale_auto"}},[t._v("自动缩放")]),e("option",{attrs:{id:"pageActualOption",title:"",value:"page-actual","data-l10n-id":"page_scale_actual"}},[t._v("实际大小")]),e("option",{attrs:{id:"pageFitOption",title:"",value:"page-fit","data-l10n-id":"page_scale_fit"}},[t._v("适合页面")]),e("option",{attrs:{id:"pageWidthOption",title:"",value:"page-width","data-l10n-id":"page_scale_width"}},[t._v("适合页宽")]),e("option",{attrs:{id:"customScaleOption",title:"",value:"custom",disabled:"disabled",hidden:"true"}}),e("option",{attrs:{title:"",value:"0.5","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 50 }'}},[t._v("50%")]),e("option",{attrs:{title:"",value:"0.75","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 75 }'}},[t._v("75%")]),e("option",{attrs:{title:"",value:"1","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 100 }'}},[t._v("100%")]),e("option",{attrs:{title:"",value:"1.25","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 125 }'}},[t._v("125%")]),e("option",{attrs:{title:"",value:"1.5","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 150 }'}},[t._v("150%")]),e("option",{attrs:{title:"",value:"2","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 200 }'}},[t._v("200%")]),e("option",{attrs:{title:"",value:"3","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 300 }'}},[t._v("300%")]),e("option",{attrs:{title:"",value:"4","data-l10n-id":"page_scale_percent","data-l10n-args":'{ "scale": 400 }'}},[t._v("400%")])])])])])])])},function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"errorWrapper",hidden:"true"}},[e("div",{attrs:{id:"errorMessageLeft"}},[e("span",{attrs:{id:"errorMessage"}}),e("button",{attrs:{id:"errorShowMore","data-l10n-id":"error_more_info"}},[t._v(" More Information ")]),e("button",{attrs:{id:"errorShowLess","data-l10n-id":"error_less_info",hidden:"true"}},[t._v(" Less Information ")])]),e("div",{attrs:{id:"errorMessageRight"}},[e("button",{attrs:{id:"errorClose","data-l10n-id":"error_close"}},[t._v(" Close ")])]),e("div",{staticClass:"clearBoth"}),e("textarea",{attrs:{id:"errorMoreInfo",hidden:"true",readonly:"readonly"}})])},function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"dialogContainer"}},[e("dialog",{attrs:{id:"documentPropertiesDialog"}},[e("div",{staticClass:"row"},[e("span",{attrs:{id:"fileNameLabel","data-l10n-id":"document_properties_file_name"}},[t._v("文件名:")]),e("p",{attrs:{id:"fileNameField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"fileSizeLabel","data-l10n-id":"document_properties_file_size"}},[t._v("文件大小:")]),e("p",{attrs:{id:"fileSizeField","aria-labelledby":"fileSizeLabel"}},[t._v("-")])]),e("div",{staticClass:"separator"}),e("div",{staticClass:"row"},[e("span",{attrs:{id:"titleLabel","data-l10n-id":"document_properties_title"}},[t._v("标题:")]),e("p",{attrs:{id:"titleField","aria-labelledby":"titleLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"authorLabel","data-l10n-id":"document_properties_author"}},[t._v("作者:")]),e("p",{attrs:{id:"authorField","aria-labelledby":"authorLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"subjectLabel","data-l10n-id":"document_properties_subject"}},[t._v("主题:")]),e("p",{attrs:{id:"subjectField","aria-labelledby":"subjectLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"keywordsLabel","data-l10n-id":"document_properties_keywords"}},[t._v("关键词:")]),e("p",{attrs:{id:"keywordsField","aria-labelledby":"keywordsLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"creationDateLabel","data-l10n-id":"document_properties_creation_date"}},[t._v("创建日期:")]),e("p",{attrs:{id:"creationDateField","aria-labelledby":"creationDateLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"modificationDateLabel","data-l10n-id":"document_properties_modification_date"}},[t._v("修改日期:")]),e("p",{attrs:{id:"modificationDateField","aria-labelledby":"modificationDateLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"creatorLabel","data-l10n-id":"document_properties_creator"}},[t._v("创建者:")]),e("p",{attrs:{id:"creatorField","aria-labelledby":"creatorLabel"}},[t._v("-")])]),e("div",{staticClass:"separator"}),e("div",{staticClass:"row"},[e("span",{attrs:{id:"producerLabel","data-l10n-id":"document_properties_producer"}},[t._v("OFD 生成器:")]),e("p",{attrs:{id:"producerField","aria-labelledby":"producerLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"versionLabel","data-l10n-id":"document_properties_version"}},[t._v("OFD 版本:")]),e("p",{attrs:{id:"versionField","aria-labelledby":"versionLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"pageCountLabel","data-l10n-id":"document_properties_page_count"}},[t._v("页数:")]),e("p",{attrs:{id:"pageCountField","aria-labelledby":"pageCountLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"pageSizeLabel","data-l10n-id":"document_properties_page_size"}},[t._v("页面大小:")]),e("p",{attrs:{id:"pageSizeField","aria-labelledby":"pageSizeLabel"}},[t._v("-")])]),e("div",{staticClass:"separator"}),e("div",{staticClass:"row",attrs:{hidden:"hidden"}},[e("span",{attrs:{id:"linearizedLabel","data-l10n-id":"document_properties_linearized"}},[t._v("快速 Web 视图:")]),e("p",{attrs:{id:"linearizedField","aria-labelledby":"linearizedLabel"}},[t._v("-")])]),e("div",{staticClass:"buttonRow"},[e("button",{staticClass:"dialogButton",attrs:{id:"documentPropertiesClose"}},[e("span",{attrs:{"data-l10n-id":"document_properties_close"}},[t._v("关闭")])])])]),e("dialog",{staticStyle:{"min-width":"200px"},attrs:{id:"printServiceDialog"}},[e("div",{staticClass:"row"},[e("span",{attrs:{"data-l10n-id":"print_progress_message"}},[t._v("正在准备打印文档…")])]),e("div",{staticClass:"row"},[e("progress",{attrs:{id:"printProgress",value:"0",max:"100"}}),e("span",{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":'{ "progress": 0 }'}},[t._v("0%")])]),e("div",{staticClass:"buttonRow"},[e("button",{staticClass:"dialogButton",attrs:{id:"printCancel"}},[e("span",{attrs:{"data-l10n-id":"print_progress_close"}},[t._v("取消")])])])]),e("dialog",{attrs:{id:"signaturePropertiesDialog"}},[e("div",{staticClass:"row"},[e("span",{attrs:{id:"signerLabel"}},[t._v("签章人:")]),e("p",{attrs:{id:"signerField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"providerLabel"}},[t._v("签章提供者:")]),e("p",{attrs:{id:"providerField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"hashedValueLabel"}},[t._v("原文摘要值:")]),e("p",{attrs:{id:"hashedValueField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"signedValueLabel"}},[t._v("签名值:")]),e("p",{attrs:{id:"signedValueField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"signMethodLabel"}},[t._v("签名算法:")]),e("p",{attrs:{id:"signMethodField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"signVersionLabel"}},[t._v("版本号:")]),e("p",{attrs:{id:"signVersionField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"verifyLabel"}},[t._v("验签结果:")]),e("p",{attrs:{id:"verifyField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"separator"}),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealIDLabel"}},[t._v("印章标识:")]),e("p",{attrs:{id:"sealIDField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealNameLabel"}},[t._v("印章名称:")]),e("p",{attrs:{id:"sealNameField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealTypeLabel"}},[t._v("印章类型:")]),e("p",{attrs:{id:"sealTypeField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealAuthTimeLabel"}},[t._v("有效时间:")]),e("p",{attrs:{id:"sealAuthTimeField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealMakeTimeLabel"}},[t._v("制章日期:")]),e("p",{attrs:{id:"sealMakeTimeField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"row"},[e("span",{attrs:{id:"sealVersionLabel"}},[t._v("印章版本:")]),e("p",{attrs:{id:"sealVersionField","aria-labelledby":"fileNameLabel"}},[t._v("-")])]),e("div",{staticClass:"buttonRow"},[e("button",{staticClass:"dialogButton",attrs:{id:"signaturePropertiesClose"}},[e("span",{attrs:{"data-l10n-id":"document_properties_close"}},[t._v("关闭")])])])])])}],!1,null,"30bbca41",null)),u=c.exports;u.install=t=>t.component(u.name,u);var p=u;const h=[p],f=function(t){f.installed||h.map((e=>t.component(e.name,e)))};"undefined"!=typeof window&&window.Vue&&f(window.Vue);var m={install:f,OfdView:p}}(),a}()}));
|
1664
2
|
//# sourceMappingURL=ofd-view.umd.js.map
|