ofd-view 0.1.41 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"ofd-view.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;ACVA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,gEAAgE,kBAAkB,kBAAkB,sBAAsB,uBAAuB,YAAY,6BAA6B,aAAa,4BAA4B,yBAAyB,gCAAgC,mCAAmC,cAAc,yBAAyB,sBAAsB,aAAa,kBAAkB,WAAW,YAAY,cAAc,gCAAgC,yBAAyB,4BAA4B,UAAU,WAAW,iBAAiB,4BAA4B,UAAU,SAAS,iBAAiB,gBAAgB,4BAA4B,UAAU,YAAY,iBAAiB,4BAA4B,WAAW,gBAAgB,wDAAwD,QAAQ,gBAAgB,4BAA4B,YAAY,gBAAgB,4BAA4B,aAAa,WAAW,iBAAiB,4BAA4B,aAAa,SAAS,iBAAiB,gBAAgB,4BAA4B,aAAa,YAAY,iBAAiB,yCAAyC,yCAAyC,aAAa,WAAW,YAAY,aAAa,UAAU,mBAAmB,wBAAwB,kBAAkB,UAAU,mBAAmB,iBAAiB,kBAAkB,YAAY,WAAW,eAAe,YAAY,+BAA+B,mBAAmB,wBAAwB,QAAQ,UAAU,kBAAkB;AACrhD;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACqH;AACtB;AAC/F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,kEAAkE,wBAAwB,4BAA4B,wBAAwB,WAAW,YAAY;AACrK;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;;AAEA;AACA,gDAAgD;AAChD;;AAEA;AACA,qFAAqF;AACrF;;AAEA;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,KAAK;AACL,KAAK;;;AAGL;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,qBAAqB;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;ACrGa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA0b;AAChd;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA2b;AACjd;AACA;AACA;AACA;AACA,UAAU,8CAAiF;AAC3F,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;;UC7NA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,+BAA+B,6BAA6B,iBAAiB,OAAO,uBAAuB,kCAAkC,OAAO,sBAAsB,4CAA4C,OAAO,uCAAuC,YAAY,+BAA+B,cAAc,KAAK,4BAA4B,wBAA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AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,EAAE,gFAAe;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;;AC1mB4I,CAAC,oGAAe,2CAAG,EAAC;;;;;;AEAnK;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/F8G;AACvC;AACL;AAClE,CAA4G;;;AAG5G;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,+DAAM;AACR,EAAE,mEAAM;AACR,EAAE,4EAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAe;;;;ACoVkE;;AAEjF,gEAAe;AACf;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;;ACtmBmI,CAAC,wEAAe,2BAAG,EAAC;;;;;;AEAxD;AACvC;AACL;AACpD,CAA8F;;;AAG9F;AACsG;AACtG,IAAI,aAAS,GAAG,kBAAU;AAC1B,EAAE,mCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,gDAAe,aAAS;;ACnBI;AAC5B;AACA,mBAAe,wBAAwB,gBAAY,EAAE,WAAO,EAAE;AAC9D;AACA,4CAAe,WAAO;;;ACJS;AAC/B;AACA;AACA;AACA,IAAI,OAAO;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAAe;AACf;AACA;AACA;AACA,WAAW;AACX;AACA,CAAC;;;AC5BuB;AACA;AACxB,8CAAe,UAAG;AACI","sources":["webpack://ofd-view/webpack/universalModuleDefinition","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?025d","webpack://ofd-view/./packages/ofdView/src/index.vue?7638","webpack://ofd-view/./node_modules/css-loader/dist/runtime/api.js","webpack://ofd-view/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?c619","webpack://ofd-view/./packages/ofdView/src/index.vue?cdcb","webpack://ofd-view/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://ofd-view/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://ofd-view/webpack/bootstrap","webpack://ofd-view/webpack/runtime/compat get default export","webpack://ofd-view/webpack/runtime/define property getters","webpack://ofd-view/webpack/runtime/hasOwnProperty shorthand","webpack://ofd-view/webpack/runtime/make namespace object","webpack://ofd-view/webpack/runtime/publicPath","webpack://ofd-view/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://ofd-view/./packages/ofdView/src/index.vue?ed9d","webpack://ofd-view/./packages/ofdView/src/index.vue?76e9","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?3a7c","webpack://ofd-view/packages/draggable-resizable/draggable-resizable.vue","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?afce","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?7d9c","webpack://ofd-view/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue","webpack://ofd-view/packages/ofdView/src/index.vue","webpack://ofd-view/./packages/ofdView/src/index.vue?3d0b","webpack://ofd-view/./packages/ofdView/src/index.vue?9aad","webpack://ofd-view/./packages/ofdView/src/index.vue","webpack://ofd-view/./packages/ofdView/index.js","webpack://ofd-view/./packages/index.js","webpack://ofd-view/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ofd-view\"] = factory();\n\telse\n\t\troot[\"ofd-view\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".vdr[data-v-eeede7ac]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-eeede7ac]{display:none}.vdr[data-v-eeede7ac]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-eeede7ac]{display:block}.handle[data-v-eeede7ac]{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-eeede7ac]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-eeede7ac]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-eeede7ac]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-eeede7ac]{left:-10px;cursor:w-resize}.handle-ml[data-v-eeede7ac],.handle-mr[data-v-eeede7ac]{top:50%;margin-top:-5px}.handle-mr[data-v-eeede7ac]{right:-10px;cursor:e-resize}.handle-bl[data-v-eeede7ac]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-eeede7ac]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-eeede7ac]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-eeede7ac]:before{content:\\\"\\\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-eeede7ac]{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-eeede7ac]:before{content:\\\"\\\\2716\\\"}.close[data-v-eeede7ac]{top:5px;right:2px;position:absolute}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".stamp[data-v-7f7c718c]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../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!./draggable-resizable.vue?vue&type=style&index=0&id=eeede7ac&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2a35904a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../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!./index.vue?vue&type=style&index=0&id=7f7c718c&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"225cc4a6\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","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)])\n}\nvar 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('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\":\"signaturesView\"}})]),_c('div',{attrs:{\"id\":\"sidebarResizer\"}})])\n},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 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(\"文档属性…\")])])])])\n},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%\")])])])])])])])\n},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\"}})])\n},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(\"关闭\")])])])])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../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!./index.vue?vue&type=template&id=7f7c718c&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vdr\",class:{\n draggable: _vm.draggable,\n resizable: _vm.resizable,\n active: _vm.enabled,\n dragging: _vm.dragging,\n resizing: _vm.resizing\n },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)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div\r\n class=\"vdr\"\r\n :style=\"style\"\r\n :class=\"{\r\n draggable: draggable,\r\n resizable: resizable,\r\n active: enabled,\r\n dragging: dragging,\r\n resizing: resizing\r\n }\"\r\n @mousedown=\"elmDown\"\r\n @touchstart=\"elmDown\"\r\n >\r\n <button type=\"button\" class=\"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm\"\r\n style=\"position:absolute; right: 5px; top: -20px;\" @click.stop=\"dropItem\" v-if=\"editable\">\r\n <span class=\"close\"></span>\r\n </button>\r\n <div\r\n v-for=\"handle in handles\"\r\n v-if=\"resizable\"\r\n class=\"handle\"\r\n :key=\"handle\"\r\n :class=\"'handle-' + handle\"\r\n :style=\"{ display: enabled ? 'block' : 'none'}\"\r\n @mousedown=\"handleDown(handle, $event)\"\r\n @touchstart=\"handleDown(handle, $event)\"\r\n ></div>\r\n <slot></slot>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n function isFunction (func) {\r\n return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'\r\n }\r\n\r\n function matchesSelectorToParentElements (el, selector, baseNode) {\r\n let node = el;\r\n const matchesSelectorFunc = [\r\n 'matches',\r\n 'webkitMatchesSelector',\r\n 'mozMatchesSelector',\r\n 'msMatchesSelector',\r\n 'oMatchesSelector'\r\n ].find(func => isFunction(node[func]));\r\n\r\n if (!isFunction(node[matchesSelectorFunc])) return false;\r\n\r\n do {\r\n if (node[matchesSelectorFunc](selector)) return true;\r\n if (node === baseNode) return false;\r\n node = node.parentNode\r\n } while (node);\r\n\r\n return false\r\n }\r\n\r\n export default {\r\n replace: true,\r\n name: 'VueDraggableResizable',\r\n props: {\r\n active: {\r\n type: Boolean, default: false\r\n },\r\n draggable: {\r\n type: Boolean, default: true\r\n },\r\n resizable: {\r\n type: Boolean, default: true\r\n },\r\n editable: {\r\n type: Boolean, default: true\r\n },\r\n originBottom: {\r\n type: Boolean, default: true\r\n },\r\n w: {\r\n type: Number,\r\n default: 200,\r\n validator: function (val) {\r\n return val > 0\r\n }\r\n },\r\n h: {\r\n type: Number,\r\n default: 200,\r\n validator: function (val) {\r\n return val > 0\r\n }\r\n },\r\n minw: {\r\n type: Number,\r\n default: 50,\r\n validator: function (val) {\r\n return val >= 0\r\n }\r\n },\r\n minh: {\r\n type: Number,\r\n default: 50,\r\n validator: function (val) {\r\n return val >= 0\r\n }\r\n },\r\n x: {\r\n type: Number,\r\n default: 0,\r\n validator: function (val) {\r\n return typeof val === 'number'\r\n }\r\n },\r\n y: {\r\n type: Number,\r\n default: 0,\r\n validator: function (val) {\r\n return typeof val === 'number'\r\n }\r\n },\r\n z: {\r\n type: [ String, Number ],\r\n default: 'auto',\r\n validator: function (val) {\r\n return (typeof val === 'string') ? val === 'auto' : val >= 0;\r\n }\r\n },\r\n handles: {\r\n type: Array,\r\n default: function () {\r\n return ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']\r\n },\r\n validator: function (val) {\r\n let s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']);\r\n return new Set(val.filter(h => s.has(h))).size === val.length\r\n }\r\n },\r\n dragHandle: {\r\n type: String,\r\n default: null\r\n },\r\n dragCancel: {\r\n type: String,\r\n default: null\r\n },\r\n axis: {\r\n type: String,\r\n default: 'both',\r\n validator: function (val) {\r\n return ['x', 'y', 'both'].indexOf(val) !== -1\r\n }\r\n },\r\n grid: {\r\n type: Array,\r\n default: function () {\r\n return [1, 1]\r\n }\r\n },\r\n parent: {\r\n type: Element, default: null\r\n },\r\n maximize: {\r\n type: Boolean, default: false\r\n },\r\n pages:{\r\n type: Array, required: false, default: null\r\n },\r\n eventBus: {\r\n type: Object, default: null\r\n },\r\n index: {\r\n type: Number, required: false, default: 0\r\n },\r\n currentPage: {\r\n type: Number, required: false, default: 0\r\n },\r\n stampId: {\r\n type: String, required: false, default: null\r\n }\r\n },\r\n created: function () {\r\n this.parentX = 0;\r\n this.parentW = 9999;\r\n this.parentY = 0;\r\n this.parentH = 9999;\r\n this.mouseX = 0;\r\n this.mouseY = 0;\r\n this.lastMouseX = 0;\r\n this.lastMouseY = 0;\r\n this.mouseOffX = 0;\r\n this.mouseOffY = 0;\r\n this.elmX = 0;\r\n this.elmY = 0;\r\n this.elmW = 0;\r\n this.elmH = 0;\r\n this.scrollPosition = 0;\r\n this.scrollDist = 0;\r\n this.pagesCount = this.pages ? this.pages.length : 0;\r\n this.section = [];\r\n this.scale = null;\r\n },\r\n mounted: function () {\r\n this.parent.addEventListener('mousemove', this.handleMove, false);\r\n this.parent.addEventListener('mousedown', this.deselect, false);\r\n this.parent.addEventListener('mouseup', this.handleUp, false);\r\n // touch events bindings\r\n this.parent.addEventListener('touchmove', this.handleMove, false);\r\n this.parent.addEventListener('touchend', this.handleUp, false);\r\n // this.parent.addEventListener('touchstart', this.handleUp, false);\r\n this.parent.addEventListener('touchstart', this.deselect, false);\r\n if(this.parent){\r\n this.parent.parentNode.addEventListener('scroll', this.handleScrollMove, false);\r\n }\r\n //resize\r\n if(this.eventBus){\r\n this.eventBus.on('stampResize', this.stampResize);\r\n }\r\n this.elmX = parseInt(this.$el.style.left);\r\n this.elmY = parseInt(this.$el.style.top);\r\n this.elmW = this.$el.offsetWidth || this.$el.clientWidth;\r\n this.elmH = this.$el.offsetHeight || this.$el.clientHeight;\r\n this._reviewDimensions();\r\n if(this.pages){\r\n if(!this.scale){\r\n this.scale = this.pages[0].viewport.scale;\r\n }\r\n this.updateSection();\r\n this.top = this.y + 10 < 0 ? 10 : this.y + 10;\r\n if(this.top < 10){\r\n this.top = 10;\r\n }\r\n let pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);\r\n this.elmY = this.top;\r\n let placed = this.pages[pageIndex];\r\n if(placed && this.x - placed.div.offsetLeft - 9 > 0){\r\n //nothing\r\n }else if(placed){\r\n this.left = placed.div.offsetLeft + 9;\r\n }\r\n this.elmX = this.left;\r\n this._emitPlaced(pageIndex);\r\n }\r\n },\r\n beforeUnmount: function () {\r\n this.parent.removeEventListener('mousemove', this.handleMove, false);\r\n this.parent.removeEventListener('mousedown', this.deselect, false);\r\n this.parent.removeEventListener('mouseup', this.handleUp, false);\r\n if(this.parent){\r\n this.parent.parentNode.removeEventListener('scroll', this.handleScrollMove, false);\r\n }\r\n if(this.eventBus){\r\n this.eventBus.off('stampResize', this.stampResize);\r\n }\r\n // touch events bindings removed\r\n this.parent.removeEventListener('touchmove', this.handleMove, false);\r\n this.parent.removeEventListener('touchend', this.handleUp, false);\r\n // this.parent.removeEventListener('touchstart', this.handleUp, false);\r\n this.parent.removeEventListener('touchstart', this.deselect, false);\r\n },\r\n data: function () {\r\n return {\r\n top: this.y,\r\n left: this.x,\r\n width: this.w,\r\n height: this.h,\r\n resizing: false,\r\n dragging: false,\r\n enabled: this.active,\r\n handle: null,\r\n zIndex: this.z\r\n }\r\n },\r\n methods: {\r\n adjust(arr, val, leftIndex, rightIndex){\r\n let pageIndex = this.binarySearch(arr, val, leftIndex, rightIndex);\r\n if(pageIndex < 0 || pageIndex > this.pagesCount - 1){\r\n pageIndex = 0;\r\n }\r\n pageIndex = this.adjustBoundary(pageIndex);\r\n return pageIndex;\r\n },\r\n handleScrollMove(e){\r\n if(this.dragging){\r\n this.scrollDist = e.currentTarget.scrollTop - this.scrollPosition;\r\n this.top = this.top + this.scrollDist;\r\n this.elmY = this.top;\r\n }\r\n this.scrollPosition = e.currentTarget.scrollTop;\r\n },\r\n stampAreaUpdate(sp){\r\n //update sp-1 and sp area\r\n for(let i = sp-1; i < sp+1; i++){\r\n if(i - 1 > 0 && i < this.pagesCount){\r\n this.section[i].t = this.section[i -1].t + this.pages[i - 1].viewport.height + 11;\r\n this.section[i].o = this.pages[i -1].div.offsetLeft + 9;\r\n }\r\n }\r\n },\r\n adjustBoundary(pageIndex){\r\n if(this.pages[pageIndex] && this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0){\r\n if(this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - this.elmH / 2 > 0) {\r\n this.top = this.section[pageIndex+1].t;\r\n pageIndex++;\r\n }else{\r\n this.top = this.section[pageIndex+1].t - this.elmH - 9 - 2;\r\n }\r\n }\r\n return pageIndex;\r\n },\r\n //二分查找\r\n binarySearch(arr, val, leftIndex, rightIndex){\r\n if(leftIndex > rightIndex){\r\n return leftIndex - 1;\r\n }\r\n let midIndex = Math.floor((leftIndex + rightIndex) / 2);\r\n let midVal = arr[midIndex].t;\r\n if(midVal > val){\r\n return this.binarySearch(arr, val, leftIndex, midIndex - 1);\r\n }else if(midVal < val){\r\n return this.binarySearch(arr, val, midIndex+1, rightIndex);\r\n }else{\r\n return midIndex;\r\n }\r\n },\r\n updateSection(){\r\n this.section.length = 0;\r\n let t = 10;\r\n for(let i = 0; i < this.pagesCount; i++){\r\n t = t + (i > 0 ? this.pages[this.originBottom?i:i-1].viewport.height : 0) + (i > 0 ? 9+2 : 0);\r\n this.section.push({\r\n t,\r\n o: this.pages[i].div.offsetLeft + 9\r\n });\r\n }\r\n this.section.push({\r\n t: this.section[this.pagesCount-1].t + this.pages[this.pagesCount-1].viewport.height +9+2,\r\n o: this.pages[this.pagesCount-1].div.offsetLeft + 9\r\n });\r\n },\r\n stampResize(){\r\n if(this.scale != null){\r\n const section = [].concat(this.section);\r\n this.updateSection();\r\n const TOP = this.top;\r\n let pageIndex = this.binarySearch(section, TOP, this.currentPage - 1, this.pagesCount - 1);\r\n if(pageIndex < 0){\r\n pageIndex = 0;\r\n }\r\n const currentScale = this.pages[0].viewport.scale;\r\n const WIDTH = this.width;\r\n const HEIGHT = this.height;\r\n this.width = (WIDTH * currentScale) / this.scale;\r\n this.height = (HEIGHT * currentScale) / this.scale;\r\n const LEFT = this.left;\r\n this.top = ((TOP - 10) * currentScale) / this.scale + 10;\r\n this.left = this.pages[pageIndex].div.offsetLeft + (((LEFT - section[pageIndex].o) * currentScale) / this.scale) + 9;\r\n this.elmW = this.width;\r\n this.elmH = this.height;\r\n this.elmX = this.left;\r\n this.elmY = this.top;\r\n this.scale = currentScale;\r\n this._emitPlaced(pageIndex);\r\n }\r\n },\r\n\r\n _emitPlaced(pageIndex){\r\n this.$emit('placed', pageIndex, this.index, {\r\n x : (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,\r\n y: (!this.originBottom ? (this.top - this.section[pageIndex].t) : (this.pages[pageIndex].viewport.height - (this.top + this.elmH - this.section[pageIndex].t))) / this.pages[pageIndex].viewport.height,\r\n w: this.elmW / this.pages[pageIndex].viewport.width,\r\n h: this.elmH / this.pages[pageIndex].viewport.height\r\n }, this.stampId);\r\n },\r\n _reviewDimensions(){\r\n if (this.minw > this.w) this.width = this.minw;\r\n if (this.minh > this.h) this.height = this.minh;\r\n if (this.parent) {\r\n const parentW = parseInt(this.parent.scrollWidth, 10);\r\n const parentH = parseInt(this.parent.scrollHeight, 10);\r\n this.parentW = parentW;\r\n this.parentH = parentH;\r\n if (this.w > this.parentW) this.width = parentW;\r\n if (this.h > this.parentH) this.height = parentH;\r\n if ((this.x + this.w) > this.parentW) this.width = parentW - this.x;\r\n if ((this.y + this.h) > this.parentH) this.height = parentH - this.y;\r\n }\r\n this.elmW = this.width;\r\n this.elmH = this.height;\r\n },\r\n reviewDimensions: function () {\r\n this._reviewDimensions();\r\n this.$emit('resizing', this.left, this.top, this.width, this.height)\r\n },\r\n elmDown: function (e) {\r\n const target = e.target || e.srcElement;\r\n if (this.$el.contains(target)) {\r\n if (\r\n (this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||\r\n (this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {\r\n return\r\n }\r\n this.reviewDimensions();\r\n if (!this.enabled) {\r\n this.enabled = true\r\n this.$emit('activated')\r\n this.$emit('update:active', true)\r\n }\r\n if (this.draggable) {\r\n this.dragging = true\r\n }\r\n }\r\n },\r\n deselect: function (e) {\r\n if (e.type.indexOf('touch') !== -1) {\r\n this.mouseX = e.changedTouches[0].clientX\r\n this.mouseY = e.changedTouches[0].clientY\r\n } else {\r\n this.mouseX = e.pageX || e.clientX + this.parent.scrollLeft\r\n this.mouseY = e.pageY || e.clientY + this.parent.scrollTop\r\n }\r\n this.lastMouseX = this.mouseX\r\n this.lastMouseY = this.mouseY\r\n const target = e.target || e.srcElement\r\n const regex = new RegExp('handle-([trmbl]{2})', '')\r\n if (!this.$el.contains(target) && !regex.test(target.className)) {\r\n if (this.enabled) {\r\n this.enabled = false\r\n this.$emit('deactivated')\r\n this.$emit('update:active', false)\r\n }\r\n }\r\n },\r\n handleDown: function (handle, e) {\r\n this.handle = handle;\r\n if (e.cancelable) {\r\n e.stopPropagation();\r\n e.preventDefault();\r\n }\r\n this.resizing = true;\r\n },\r\n // fillParent: function (e) {\r\n // if (!this.parent || !this.resizable || !this.maximize) return\r\n // let done = false\r\n // const animate = () => {\r\n // if (!done) {\r\n // window.requestAnimationFrame(animate)\r\n // }\r\n // if (this.axis === 'x') {\r\n // if (\r\n // this.width === this.parentW && this.left === this.parentX\r\n // ) done = true\r\n // } else if (this.axis === 'y') {\r\n // if (\r\n // this.height === this.parentH && this.top === this.parentY\r\n // ) done = true\r\n // } else if (this.axis === 'both') {\r\n // if (\r\n // this.width === this.parentW &&\r\n // this.height === this.parentH &&\r\n // this.top === this.parentY &&\r\n // this.left === this.parentX\r\n // ) done = true\r\n // }\r\n // if (this.axis === 'x' || this.axis === 'both') {\r\n // if (this.width < this.parentW) {\r\n // this.width++\r\n // this.elmW++\r\n // }\r\n // if (this.left > this.parentX) {\r\n // this.left--\r\n // this.elmX--\r\n // }\r\n // }\r\n // if (this.axis === 'y' || this.axis === 'both') {\r\n // if (this.height < this.parentH) {\r\n // this.height++\r\n // this.elmH++\r\n // }\r\n // if (this.top > this.parentY) {\r\n // this.top--\r\n // this.elmY--\r\n // }\r\n // }\r\n // this.$emit('resizing', this.left, this.top, this.width, this.height)\r\n // }\r\n // window.requestAnimationFrame(animate)\r\n // },\r\n handleMove: function (e) {\r\n const isTouchMove = e.type.indexOf('touchmove') !== -1\r\n this.mouseX = isTouchMove\r\n ? e.touches[0].clientX\r\n : e.pageX || e.clientX + document.documentElement.scrollLeft;\r\n this.mouseY = isTouchMove\r\n ? e.touches[0].clientY\r\n : e.pageY || e.clientY + document.documentElement.scrollTop;\r\n let diffX = this.mouseX - this.lastMouseX + this.mouseOffX;\r\n let diffY = this.mouseY - this.lastMouseY + this.mouseOffY;\r\n this.mouseOffX = this.mouseOffY = 0;\r\n this.lastMouseX = this.mouseX;\r\n this.lastMouseY = this.mouseY;\r\n let dX = diffX;\r\n let dY = diffY;\r\n if (this.resizing) {\r\n if (this.handle.indexOf('t') >= 0) {\r\n if (this.elmH - dY < this.minh) this.mouseOffY = (dY - (diffY = this.elmH - this.minh));\r\n else if (this.parent && this.elmY + dY < this.parentY) this.mouseOffY = (dY - (diffY = this.parentY - this.elmY));\r\n this.elmY += diffY\r\n this.elmH -= diffY\r\n }\r\n if (this.handle.indexOf('b') >= 0) {\r\n if (this.elmH + dY < this.minh) this.mouseOffY = (dY - (diffY = this.minh - this.elmH));\r\n else if (this.parent && this.elmY + this.elmH + dY > this.parentH) this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH));\r\n this.elmH += diffY\r\n }\r\n if (this.handle.indexOf('l') >= 0) {\r\n if (this.elmW - dX < this.minw) this.mouseOffX = (dX - (diffX = this.elmW - this.minw));\r\n else if (this.parent && this.elmX + dX < this.parentX) this.mouseOffX = (dX - (diffX = this.parentX - this.elmX));\r\n this.elmX += diffX\r\n this.elmW -= diffX\r\n }\r\n if (this.handle.indexOf('r') >= 0) {\r\n if (this.elmW + dX < this.minw) this.mouseOffX = (dX - (diffX = this.minw - this.elmW))\r\n else if (this.parent && this.elmX + this.elmW + dX > this.parentW) this.mouseOffX = (dX - (diffX = this.parentW - this.elmX - this.elmW));\r\n this.elmW += diffX\r\n }\r\n this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0]);\r\n this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1]);\r\n this.width = (Math.round(this.elmW / this.grid[0]) * this.grid[0]);\r\n this.height = (Math.round(this.elmH / this.grid[1]) * this.grid[1]);\r\n this.$emit('resizing', this.left, this.top, this.width, this.height);\r\n } else if (this.dragging) {\r\n if (this.parent) {\r\n this._reviewDimensions();\r\n let [_x, _y] = [0, 10];\r\n if(this.pages){\r\n let pageIndex = this.binarySearch(this.section, this.elmY+ diffY, this.currentPage - 1, this.pagesCount - 1);\r\n if(pageIndex < 0){\r\n pageIndex = 0;\r\n }\r\n if(this.elmY+ diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0){\r\n if(this.elmY+ diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - (this.elmH * 0.9) - 11 > 0){\r\n pageIndex++;\r\n }\r\n }\r\n _x = this.pages[pageIndex].div.offsetLeft + 9;\r\n }\r\n if (this.elmX + dX < this.parentX + _x){\r\n this.mouseOffX = (dX - (diffX = this.parentX + _x - this.elmX))\r\n } else if (this.elmX + this.elmW + dX > (this.parentW - _x)){\r\n this.mouseOffX = (dX - (diffX = (this.parentW - _x) - this.elmX - this.elmW))\r\n }\r\n if (this.elmY + dY < this.parentY + _y){\r\n this.mouseOffY = (dY - (diffY = this.parentY + _y - this.elmY))\r\n } else if (this.elmY + this.elmH + dY > this.parentH) {\r\n this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH))\r\n }\r\n }\r\n this.elmX += diffX;\r\n this.elmY += diffY;\r\n if (this.axis === 'x' || this.axis === 'both') {\r\n this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0])\r\n }\r\n if (this.axis === 'y' || this.axis === 'both') {\r\n this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1])\r\n }\r\n this.$emit('dragging', this.left, this.top)\r\n }\r\n },\r\n handleUp: function (e) {\r\n if (e.type.indexOf('touch') !== -1) {\r\n this.lastMouseX = e.changedTouches[0].clientX;\r\n this.lastMouseY = e.changedTouches[0].clientY;\r\n }\r\n this.handle = null;\r\n //this.enabled = false;\r\n if (this.resizing) {\r\n this.resizing = false;\r\n this.$emit('resizestop', this.left, this.top, this.width, this.height)\r\n }\r\n if (this.dragging) {\r\n this.dragging = false;\r\n let pageIndex = 0;\r\n if(this.pages){\r\n pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);\r\n }\r\n this._emitPlaced(pageIndex);\r\n this.$emit('dragstop', this.left, this.top);\r\n }\r\n this.elmX = this.left;\r\n this.elmY = this.top;\r\n },\r\n dropItem(){\r\n this.$emit('dropitem', this.index);\r\n }\r\n },\r\n computed: {\r\n style: function () {\r\n return {\r\n top: this.top + 'px',\r\n left: this.left + 'px',\r\n width: this.width + 'px',\r\n height: this.height + 'px',\r\n zIndex: this.zIndex\r\n }\r\n }\r\n },\r\n watch: {\r\n active: function (val) {\r\n this.enabled = val\r\n },\r\n z: function (val) {\r\n if (val >= 0 || val === 'auto') {\r\n this.zIndex = val\r\n }\r\n },\r\n currentPage: function(newVal){\r\n this.stampAreaUpdate(newVal);\r\n },\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .vdr {\r\n touch-action: none;\r\n position: absolute;\r\n box-sizing: border-box;\r\n border: 1px dashed #ddd;\r\n cursor: move;\r\n }\r\n\r\n .vdr button{\r\n display: none;\r\n }\r\n\r\n .vdr:hover{\r\n border: 1px solid #fd397a;\r\n background: rgba(253,57,122,.08);\r\n }\r\n\r\n .vdr:hover button{\r\n display: block;\r\n }\r\n\r\n .handle {\r\n box-sizing: border-box;\r\n display: none;\r\n position: absolute;\r\n width: 10px;\r\n height: 10px;\r\n font-size: 1px;\r\n background: rgba(253,57,122,.08);\r\n border: 1px solid #fd397a;\r\n }\r\n .handle-tl {\r\n top: -10px;\r\n left: -10px;\r\n cursor: nw-resize;\r\n }\r\n .handle-tm {\r\n top: -10px;\r\n left: 50%;\r\n margin-left: -5px;\r\n cursor: n-resize;\r\n }\r\n .handle-tr {\r\n top: -10px;\r\n right: -10px;\r\n cursor: ne-resize;\r\n }\r\n .handle-ml {\r\n top: 50%;\r\n margin-top: -5px;\r\n left: -10px;\r\n cursor: w-resize;\r\n }\r\n .handle-mr {\r\n top: 50%;\r\n margin-top: -5px;\r\n right: -10px;\r\n cursor: e-resize;\r\n }\r\n .handle-bl {\r\n bottom: -10px;\r\n left: -10px;\r\n cursor: sw-resize;\r\n }\r\n .handle-bm {\r\n bottom: -10px;\r\n left: 50%;\r\n margin-left: -5px;\r\n cursor: s-resize;\r\n }\r\n .handle-br {\r\n bottom: -10px;\r\n right: -10px;\r\n cursor: se-resize;\r\n }\r\n @media only screen and (max-width: 768px) {\r\n /* For mobile phones: */\r\n [class*=\"handle-\"]:before {\r\n content: '';\r\n left: -10px;\r\n right: -10px;\r\n bottom: -10px;\r\n top: -10px;\r\n position: absolute;\r\n }\r\n }\r\n\r\n\r\n .close {\r\n background: orange;\r\n color: red;\r\n border-radius: 12px;\r\n line-height: 20px;\r\n text-align: center;\r\n height: 20px;\r\n width: 20px;\r\n font-size: 18px;\r\n padding: 1px;\r\n }\r\n .close::before {\r\n content: \"\\2716\";\r\n }\r\n .close {\r\n top: 5px;\r\n right: 2px;\r\n position: absolute;\r\n }\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./draggable-resizable.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./draggable-resizable.vue?vue&type=script&lang=js&\"","export * from \"-!../../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!./draggable-resizable.vue?vue&type=style&index=0&id=eeede7ac&prod&scoped=true&lang=css&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./draggable-resizable.vue?vue&type=template&id=eeede7ac&scoped=true&\"\nimport script from \"./draggable-resizable.vue?vue&type=script&lang=js&\"\nexport * from \"./draggable-resizable.vue?vue&type=script&lang=js&\"\nimport style0 from \"./draggable-resizable.vue?vue&type=style&index=0&id=eeede7ac&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"eeede7ac\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div id=\"outerContainer\">\r\n\r\n <div id=\"sidebarContainer\">\r\n <div id=\"toolbarSidebar\">\r\n <div id=\"toolbarSidebarLeft\">\r\n <div id=\"sidebarViewButtons\" class=\"splitToolbarButton toggled\" role=\"radiogroup\">\r\n <!-- <button id=\"viewThumbnail\" class=\"toolbarButton toggled\" title=\"Show Thumbnails\" tabindex=\"2\" data-l10n-id=\"thumbs\" role=\"radio\" aria-checked=\"true\" aria-controls=\"thumbnailView\">-->\r\n <!-- <span data-l10n-id=\"thumbs_label\">Thumbnails</span>-->\r\n <!-- </button>-->\r\n <!-- <button id=\"viewOutline\" class=\"toolbarButton\" 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\">-->\r\n <!-- <span data-l10n-id=\"document_outline_label\">Document Outline</span>-->\r\n <!-- </button>-->\r\n <!-- <button id=\"viewAttachments\" class=\"toolbarButton\" title=\"Show Attachments\" tabindex=\"4\" data-l10n-id=\"attachments\" role=\"radio\" aria-checked=\"false\" aria-controls=\"attachmentsView\">-->\r\n <!-- <span data-l10n-id=\"attachments_label\">Attachments</span>-->\r\n <!-- </button>-->\r\n <!-- <button id=\"viewLayers\" class=\"toolbarButton\" title=\"Show Layers (double-click to reset all layers to the default state)\" tabindex=\"5\" data-l10n-id=\"layers\" role=\"radio\" aria-checked=\"false\" aria-controls=\"layersView\">-->\r\n <!-- <span data-l10n-id=\"layers_label\">Layers</span>-->\r\n <!-- </button>-->\r\n <!-- <button id=\"viewSignatures\" class=\"toolbarButton\" title=\"Show Signatures\" tabindex=\"6\" data-l10n-id=\"layers\" role=\"radio\" aria-checked=\"false\" aria-controls=\"signaturesView\">-->\r\n <!-- <span data-l10n-id=\"signatures_label\">Signatures</span>-->\r\n <!-- </button>-->\r\n </div>\r\n </div>\r\n\r\n <div id=\"toolbarSidebarRight\">\r\n <div id=\"outlineOptionsContainer\" class=\"hidden\">\r\n <div class=\"verticalToolbarSeparator\"></div>\r\n\r\n <button id=\"currentOutlineItem\" class=\"toolbarButton\" disabled=\"disabled\" title=\"Find Current Outline Item\"\r\n tabindex=\"6\" data-l10n-id=\"current_outline_item\">\r\n <span data-l10n-id=\"current_outline_item_label\">Current Outline Item</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"sidebarContent\">\r\n <!-- <div id=\"thumbnailView\">-->\r\n <!-- </div>-->\r\n <!-- <div id=\"outlineView\" class=\"hidden\">-->\r\n <!-- </div>-->\r\n <!-- <div id=\"attachmentsView\" class=\"hidden\">-->\r\n <!-- </div>-->\r\n <!-- <div id=\"layersView\" class=\"hidden\">-->\r\n <!-- </div>-->\r\n <div id=\"signaturesView\">\r\n </div>\r\n </div>\r\n <div id=\"sidebarResizer\"></div>\r\n </div> <!-- sidebarContainer -->\r\n\r\n <div id=\"mainContainer\">\r\n\r\n <div id=\"secondaryToolbar\" class=\"secondaryToolbar hidden doorHangerRight\">\r\n <div id=\"secondaryToolbarButtonContainer\">\r\n <button id=\"secondaryOpenFile\" class=\"secondaryToolbarButton openFile visibleLargeView\" title=\"打开文件\"\r\n tabindex=\"52\" data-l10n-id=\"open_file\">\r\n <span data-l10n-id=\"open_file_label\">打开</span>\r\n </button>\r\n\r\n <button id=\"secondaryPrint\" class=\"secondaryToolbarButton print visibleMediumView\" title=\"打印\" tabindex=\"53\"\r\n data-l10n-id=\"print\">\r\n <span data-l10n-id=\"print_label\">打印</span>\r\n </button>\r\n\r\n <button id=\"documentProperties\" class=\"secondaryToolbarButton documentProperties\" title=\"文档属性…\"\r\n tabindex=\"69\" data-l10n-id=\"document_properties\" aria-controls=\"documentPropertiesDialog\">\r\n <span data-l10n-id=\"document_properties_label\">文档属性…</span>\r\n </button>\r\n </div>\r\n </div> <!-- secondaryToolbar -->\r\n\r\n <div class=\"toolbar\">\r\n <div id=\"toolbarContainer\">\r\n <div id=\"toolbarViewer\">\r\n <div id=\"toolbarViewerLeft\">\r\n <button id=\"sidebarToggle\" class=\"toolbarButton\" title=\"Toggle Sidebar\" tabindex=\"11\"\r\n data-l10n-id=\"toggle_sidebar\" aria-expanded=\"false\" aria-controls=\"sidebarContainer\">\r\n <span data-l10n-id=\"toggle_sidebar_label\">切换侧栏</span>\r\n </button>\r\n <!-- <div class=\"toolbarButtonSpacer\"></div>-->\r\n <div class=\"splitToolbarButton hiddenSmallView\">\r\n <button class=\"toolbarButton pageUp\" title=\"上一页\" id=\"previous\" tabindex=\"13\"\r\n data-l10n-id=\"previous\">\r\n <span data-l10n-id=\"previous_label\">上一页</span>\r\n </button>\r\n <div class=\"splitToolbarButtonSeparator\"></div>\r\n <button class=\"toolbarButton pageDown\" title=\"下一页\" id=\"next\" tabindex=\"14\" data-l10n-id=\"next\">\r\n <span data-l10n-id=\"next_label\">下一页</span>\r\n </button>\r\n </div>\r\n <input type=\"number\" id=\"pageNumber\" class=\"toolbarField pageNumber\" title=\"页面\" value=\"1\" size=\"4\"\r\n min=\"1\" tabindex=\"15\" data-l10n-id=\"page\" autocomplete=\"off\">\r\n <span id=\"numPages\" class=\"toolbarLabel\"></span>\r\n </div>\r\n <div id=\"toolbarViewerRight\">\r\n\r\n <button id=\"openFile\" class=\"toolbarButton openFile hiddenLargeView\" title=\"打开文件\" tabindex=\"32\"\r\n data-l10n-id=\"open_file\">\r\n <span data-l10n-id=\"open_file_label\">打开</span>\r\n </button>\r\n\r\n <button id=\"print\" class=\"toolbarButton print hiddenMediumView\" title=\"打印\" tabindex=\"33\"\r\n data-l10n-id=\"print\">\r\n <span data-l10n-id=\"print_label\">打印</span>\r\n </button>\r\n\r\n <div class=\"verticalToolbarSeparator hiddenSmallView\"></div>\r\n\r\n <button id=\"secondaryToolbarToggle\" class=\"toolbarButton\" title=\"工具\" tabindex=\"36\" data-l10n-id=\"tools\"\r\n aria-expanded=\"false\" aria-controls=\"secondaryToolbar\">\r\n <span data-l10n-id=\"tools_label\">工具</span>\r\n </button>\r\n </div>\r\n <div id=\"toolbarViewerMiddle\">\r\n <div class=\"splitToolbarButton\">\r\n <button id=\"zoomOut\" class=\"toolbarButton zoomOut\" title=\"缩小\" tabindex=\"21\"\r\n data-l10n-id=\"zoom_out\">\r\n <span data-l10n-id=\"zoom_out_label\">缩小</span>\r\n </button>\r\n <div class=\"splitToolbarButtonSeparator\"></div>\r\n <button id=\"zoomIn\" class=\"toolbarButton zoomIn\" title=\"放大\" tabindex=\"22\" data-l10n-id=\"zoom_in\">\r\n <span data-l10n-id=\"zoom_in_label\">放大</span>\r\n </button>\r\n </div>\r\n <span id=\"scaleSelectContainer\" class=\"dropdownToolbarButton\">\r\n <select id=\"scaleSelect\" title=\"缩放\" tabindex=\"23\" data-l10n-id=\"zoom\">\r\n <option id=\"pageAutoOption\" title=\"\" value=\"auto\" selected=\"selected\"\r\n data-l10n-id=\"page_scale_auto\">自动缩放</option>\r\n <option id=\"pageActualOption\" title=\"\" value=\"page-actual\"\r\n data-l10n-id=\"page_scale_actual\">实际大小</option>\r\n <option id=\"pageFitOption\" title=\"\" value=\"page-fit\" data-l10n-id=\"page_scale_fit\">适合页面</option>\r\n <option id=\"pageWidthOption\" title=\"\" value=\"page-width\"\r\n data-l10n-id=\"page_scale_width\">适合页宽</option>\r\n <option id=\"customScaleOption\" title=\"\" value=\"custom\" disabled=\"disabled\" hidden=\"true\"></option>\r\n <option title=\"\" value=\"0.5\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 50 }'>50%</option>\r\n <option title=\"\" value=\"0.75\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 75 }'>75%</option>\r\n <option title=\"\" value=\"1\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 100 }'>100%</option>\r\n <option title=\"\" value=\"1.25\" data-l10n-id=\"page_scale_percent\" data-l10n-args='{ \"scale\": 125 }'>125%</option>\r\n <option title=\"\" value=\"1.5\" data-l10n-id=\"page_scale_percent\" data-l10n-args='{ \"scale\": 150 }'>150%</option>\r\n <option title=\"\" value=\"2\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 200 }'>200%</option>\r\n <option title=\"\" value=\"3\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 300 }'>300%</option>\r\n <option title=\"\" value=\"4\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 400 }'>400%</option>\r\n </select>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id=\"viewerContainer\" tabindex=\"0\">\r\n <div id=\"viewer\" class=\"pdfViewer\" @dragover.prevent=\"onStampDragOver\">\r\n <vue-draggable-resizable v-for=\"(stamp, index) in stamps\" :w=\"stamp.w ? stamp.w : 174\"\r\n :h=\"stamp.h ? stamp.h : 174\" v-if=\"viewVisible\" :parent=\"config.viewerContainer\"\r\n :customForStamp=\"true\"\r\n :eventBus=\"eventBus\" :handles=\"['tl', 'tr', 'bl', 'br']\" :index=\"index\"\r\n @dropitem=\"removeStamp\"\r\n :x=\"stamp.x\" :y=\"stamp.located ? stamp.y : stamp.y + config.mainContainer.scrollTop\"\r\n :pages=\"ofdViewer._pages\" :currentPage=\"sp\"\r\n @dragstop=\"onStampDragStop\" @placed=\"placed\" :origin-bottom=\"false\"\r\n :stampId=\"stamp.source.stampId\" :draggable=\"draggable\" :resizable=\"resizable\"\r\n :editable=\"editable\">\r\n <div class=\"stamp\"\r\n :style=\"{backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'}\"></div>\r\n <!-- <div v-if=\"stamp.type === 'recipient'\" class=\"circle\">-->\r\n <!-- <h5 class=\"mb-1 sl-font-bold text-white\">-->\r\n <!-- {{stamp.source.name}}-->\r\n <!-- </h5>-->\r\n <!--&lt;!&ndash; <div class=\"sl-font-bold text-white small mb-2\">{{stamp.source.representUserId?stamp.source.representUserId:stamp.source.userId}}</div>&ndash;&gt;-->\r\n <!-- <div class=\"text-white sl-font-bold\">-->\r\n <!-- <i class=\"fas fa-pencil-alt\"></i>&nbsp;&nbsp;签章区-->\r\n <!-- </div>-->\r\n <!-- </div>-->\r\n </vue-draggable-resizable>\r\n </div>\r\n <slot name=\"openFileRef\"></slot>\r\n </div>\r\n\r\n <!--#if !MOZCENTRAL-->\r\n <div id=\"errorWrapper\" hidden='true'>\r\n <div id=\"errorMessageLeft\">\r\n <span id=\"errorMessage\"></span>\r\n <button id=\"errorShowMore\" data-l10n-id=\"error_more_info\">\r\n More Information\r\n </button>\r\n <button id=\"errorShowLess\" data-l10n-id=\"error_less_info\" hidden='true'>\r\n Less Information\r\n </button>\r\n </div>\r\n <div id=\"errorMessageRight\">\r\n <button id=\"errorClose\" data-l10n-id=\"error_close\">\r\n Close\r\n </button>\r\n </div>\r\n <div class=\"clearBoth\"></div>\r\n <textarea id=\"errorMoreInfo\" hidden='true' readonly=\"readonly\"></textarea>\r\n </div>\r\n <!--#endif-->\r\n </div> <!-- mainContainer -->\r\n\r\n <div id=\"dialogContainer\">\r\n <dialog id=\"documentPropertiesDialog\">\r\n <div class=\"row\">\r\n <span id=\"fileNameLabel\" data-l10n-id=\"document_properties_file_name\">文件名:</span>\r\n <p id=\"fileNameField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"fileSizeLabel\" data-l10n-id=\"document_properties_file_size\">文件大小:</span>\r\n <p id=\"fileSizeField\" aria-labelledby=\"fileSizeLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"titleLabel\" data-l10n-id=\"document_properties_title\">标题:</span>\r\n <p id=\"titleField\" aria-labelledby=\"titleLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"authorLabel\" data-l10n-id=\"document_properties_author\">作者:</span>\r\n <p id=\"authorField\" aria-labelledby=\"authorLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"subjectLabel\" data-l10n-id=\"document_properties_subject\">主题:</span>\r\n <p id=\"subjectField\" aria-labelledby=\"subjectLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"keywordsLabel\" data-l10n-id=\"document_properties_keywords\">关键词:</span>\r\n <p id=\"keywordsField\" aria-labelledby=\"keywordsLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"creationDateLabel\" data-l10n-id=\"document_properties_creation_date\">创建日期:</span>\r\n <p id=\"creationDateField\" aria-labelledby=\"creationDateLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"modificationDateLabel\"\r\n data-l10n-id=\"document_properties_modification_date\">修改日期:</span>\r\n <p id=\"modificationDateField\" aria-labelledby=\"modificationDateLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"creatorLabel\" data-l10n-id=\"document_properties_creator\">创建者:</span>\r\n <p id=\"creatorField\" aria-labelledby=\"creatorLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"producerLabel\" data-l10n-id=\"document_properties_producer\">OFD 生成器:</span>\r\n <p id=\"producerField\" aria-labelledby=\"producerLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"versionLabel\" data-l10n-id=\"document_properties_version\">OFD 版本:</span>\r\n <p id=\"versionField\" aria-labelledby=\"versionLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"pageCountLabel\" data-l10n-id=\"document_properties_page_count\">页数:</span>\r\n <p id=\"pageCountField\" aria-labelledby=\"pageCountLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"pageSizeLabel\" data-l10n-id=\"document_properties_page_size\">页面大小:</span>\r\n <p id=\"pageSizeField\" aria-labelledby=\"pageSizeLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\" hidden=\"hidden\">\r\n <span id=\"linearizedLabel\" data-l10n-id=\"document_properties_linearized\">快速 Web 视图:</span>\r\n <p id=\"linearizedField\" aria-labelledby=\"linearizedLabel\">-</p>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"documentPropertiesClose\" class=\"dialogButton\"><span\r\n data-l10n-id=\"document_properties_close\">关闭</span></button>\r\n </div>\r\n </dialog>\r\n <!--#if !MOZCENTRAL-->\r\n <dialog id=\"printServiceDialog\" style=\"min-width: 200px;\">\r\n <div class=\"row\">\r\n <span data-l10n-id=\"print_progress_message\">正在准备打印文档…</span>\r\n </div>\r\n <div class=\"row\">\r\n <progress id=\"printProgress\" value=\"0\" max=\"100\"></progress>\r\n <span data-l10n-id=\"print_progress_percent\" data-l10n-args='{ \"progress\": 0 }'\r\n class=\"relative-progress\">0%</span>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"printCancel\" class=\"dialogButton\"><span data-l10n-id=\"print_progress_close\">取消</span></button>\r\n </div>\r\n </dialog>\r\n\r\n <dialog id=\"signaturePropertiesDialog\">\r\n <div class=\"row\">\r\n <span id=\"signerLabel\">签章人:</span>\r\n <p id=\"signerField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"providerLabel\">签章提供者:</span>\r\n <p id=\"providerField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"hashedValueLabel\">原文摘要值:</span>\r\n <p id=\"hashedValueField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signedValueLabel\">签名值:</span>\r\n <p id=\"signedValueField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signMethodLabel\">签名算法:</span>\r\n <p id=\"signMethodField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signVersionLabel\">版本号:</span>\r\n <p id=\"signVersionField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"verifyLabel\">验签结果:</span>\r\n <p id=\"verifyField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"sealIDLabel\">印章标识:</span>\r\n <p id=\"sealIDField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealNameLabel\">印章名称:</span>\r\n <p id=\"sealNameField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealTypeLabel\">印章类型:</span>\r\n <p id=\"sealTypeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealAuthTimeLabel\">有效时间:</span>\r\n <p id=\"sealAuthTimeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealMakeTimeLabel\">制章日期:</span>\r\n <p id=\"sealMakeTimeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealVersionLabel\">印章版本:</span>\r\n <p id=\"sealVersionField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"signaturePropertiesClose\" class=\"dialogButton\"><span\r\n data-l10n-id=\"document_properties_close\">关闭</span>\r\n </button>\r\n </div>\r\n </dialog>\r\n <!--#endif-->\r\n <!--#if CHROME-->\r\n <!--#include viewer-snippet-chrome-overlays.html-->\r\n <!--#endif-->\r\n </div> <!-- dialogContainer -->\r\n\r\n </div> <!-- outerContainer -->\r\n</template>\r\n\r\n<script>\r\n\r\nimport VueDraggableResizable from '../../draggable-resizable/draggable-resizable'\r\n\r\nexport default {\r\n name: \"OfdView\",\r\n components: {\r\n VueDraggableResizable\r\n },\r\n props: {\r\n file: {\r\n required: false\r\n },\r\n mem: {\r\n required: true,\r\n },\r\n secret: {\r\n type: String,\r\n required: false\r\n },\r\n digest: {\r\n type: String,\r\n required: false\r\n },\r\n draggable: {\r\n type: Boolean, required: false, default: true\r\n },\r\n resizable: {\r\n type: Boolean, required: false, default: false\r\n },\r\n editable: {\r\n type: Boolean, required: false, default: true\r\n },\r\n stamps: {\r\n type: Array,\r\n required: false,\r\n default: () => []\r\n },\r\n sidebarForceOpen: {\r\n type: Boolean, required: false, default: false\r\n },\r\n signatureViewerForceCheck: {\r\n type: Boolean, required: false, default: false\r\n }\r\n },\r\n\r\n watch: {\r\n file: {\r\n immediate: true,\r\n handler(val) {\r\n if (this.config && this.mem) {\r\n this.ofdViewer = null\r\n this.mem.openOFD(val)\r\n }\r\n }\r\n },\r\n\r\n stamps: {\r\n immediate: true,\r\n handler(val) {\r\n if (this.config && this.mem && val.length > 0) {\r\n this.config.toolbar.openFile.hidden = true\r\n this.config.secondaryToolbar.openFileButton.hidden = true\r\n }\r\n }\r\n }\r\n },\r\n\r\n\r\n data() {\r\n return {\r\n viewVisible: false,\r\n config: null,\r\n eventBus: null,\r\n sp: 1,\r\n ofdViewer: null\r\n }\r\n },\r\n\r\n mounted() {\r\n if (!this.config) {\r\n this.config = this.getViewerConfiguration()\r\n //vue下viewerContainer必须设置height\r\n // this.containerHeight = `${window.innerHeight - 100}px`\r\n let img = new Image();\r\n img.style.position = 'absolute';\r\n img.style.left = 0;\r\n img.style.right = 0;\r\n img.style.margin = 'auto';\r\n img.style.top = 0;\r\n img.style.bottom = 0;\r\n img.src = 'data:image/gif;base64,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';\r\n img.draggable = false;\r\n this.config.loadingContainer = img\r\n\r\n this.config.onPageChanging = pageNumber => {\r\n this.sp = pageNumber\r\n }\r\n this.config.parserOFDSuccess = core => {\r\n // console.log(core)\r\n }\r\n this.config.onPageScale = scale => {\r\n // this.viewVisible = false\r\n this.eventBus.dispatch('stampResize', {source: null});\r\n }\r\n this.config.onViewportChange = view => {\r\n if (!this.ofdViewer) {\r\n this.viewVisible = true\r\n this.$emit('viewready', view)\r\n }\r\n this.ofdViewer = view\r\n // this.eventBus.dispatch('stampResize', {source: null});\r\n }\r\n this.config.secret = this.secret\r\n this.config.digest = this.digest\r\n this.config.sidebarForceOpen = this.sidebarForceOpen\r\n this.config.signatureViewerForceCheck = this.signatureViewerForceCheck\r\n\r\n this.mem.initOFDViewer(this.config)\r\n this.eventBus = this.mem.getEventBus()\r\n }\r\n if (this.file) {\r\n this.mem.openOFD(this.file)\r\n }\r\n\r\n },\r\n\r\n methods: {\r\n getViewerConfiguration() {\r\n let openFileTip\r\n if (this.$slots && this.$slots.openFileRef && this.$slots.openFileRef[0].elm) {\r\n openFileTip = this.$slots.openFileRef[0].elm\r\n }\r\n let errorWrapper = null\r\n errorWrapper = {\r\n container: document.getElementById('errorWrapper'),\r\n errorMessage: document.getElementById('errorMessage'),\r\n closeButton: document.getElementById('errorClose'),\r\n errorMoreInfo: document.getElementById('errorMoreInfo'),\r\n moreInfoButton: document.getElementById('errorShowMore'),\r\n lessInfoButton: document.getElementById('errorShowLess'),\r\n }\r\n\r\n return {\r\n appContainer: document.body,\r\n mainContainer: document.getElementById('viewerContainer'),\r\n viewerContainer: document.getElementById('viewer'),\r\n openFileTip: openFileTip,\r\n toolbar: {\r\n container: document.getElementById('toolbarViewer'),\r\n numPages: document.getElementById('numPages'),\r\n pageNumber: document.getElementById('pageNumber'),\r\n scaleSelect: document.getElementById('scaleSelect'),\r\n customScaleOption: document.getElementById('customScaleOption'),\r\n previous: document.getElementById('previous'),\r\n next: document.getElementById('next'),\r\n zoomIn: document.getElementById('zoomIn'),\r\n zoomOut: document.getElementById('zoomOut'),\r\n openFile: document.getElementById('openFile'),\r\n print: document.getElementById('print'),\r\n },\r\n secondaryToolbar: {\r\n toolbar: document.getElementById('secondaryToolbar'),\r\n toggleButton: document.getElementById('secondaryToolbarToggle'),\r\n toolbarButtonContainer: document.getElementById(\r\n 'secondaryToolbarButtonContainer'\r\n ),\r\n openFileButton: document.getElementById('secondaryOpenFile'),\r\n printButton: document.getElementById('secondaryPrint'),\r\n documentPropertiesButton: document.getElementById('documentProperties'),\r\n },\r\n sidebar: {\r\n // Divs (and sidebar button)\r\n outerContainer: document.getElementById('outerContainer'),\r\n viewerContainer: document.getElementById('viewerContainer'),\r\n toggleButton: document.getElementById(\"sidebarToggle\"),\r\n // Buttons\r\n // thumbnailButton: document.getElementById(\"viewThumbnail\"),\r\n // outlineButton: document.getElementById(\"viewOutline\"),\r\n // attachmentsButton: document.getElementById(\"viewAttachments\"),\r\n // layersButton: document.getElementById(\"viewLayers\"),\r\n // signaturesButton: document.getElementById(\"viewSignatures\"),\r\n // Views\r\n // thumbnailView: document.getElementById(\"thumbnailView\"),\r\n // outlineView: document.getElementById(\"outlineView\"),\r\n // attachmentsView: document.getElementById(\"attachmentsView\"),\r\n // layersView: document.getElementById(\"layersView\"),\r\n signaturesView: document.getElementById(\"signaturesView\"),\r\n // View-specific options\r\n // outlineOptionsContainer: document.getElementById(\r\n // \"outlineOptionsContainer\"\r\n // ),\r\n // currentOutlineItemButton: document.getElementById(\"currentOutlineItem\"),\r\n },\r\n sidebarResizer: {\r\n outerContainer: document.getElementById('outerContainer'),\r\n },\r\n documentProperties: {\r\n dialog: document.getElementById('documentPropertiesDialog'),\r\n closeButton: document.getElementById('documentPropertiesClose'),\r\n fields: {\r\n fileName: document.getElementById('fileNameField'),\r\n fileSize: document.getElementById('fileSizeField'),\r\n title: document.getElementById('titleField'),\r\n author: document.getElementById('authorField'),\r\n subject: document.getElementById('subjectField'),\r\n keywords: document.getElementById('keywordsField'),\r\n creationDate: document.getElementById('creationDateField'),\r\n modificationDate: document.getElementById('modificationDateField'),\r\n creator: document.getElementById('creatorField'),\r\n producer: document.getElementById('producerField'),\r\n version: document.getElementById('versionField'),\r\n pageCount: document.getElementById('pageCountField'),\r\n pageSize: document.getElementById('pageSizeField'),\r\n linearized: document.getElementById('linearizedField'),\r\n },\r\n },\r\n signatureProperties: {\r\n dialog: document.getElementById('signaturePropertiesDialog'),\r\n closeButton: document.getElementById('signaturePropertiesClose'),\r\n fields: {\r\n signer: document.getElementById('signerField'),\r\n provider: document.getElementById('providerField'),\r\n hashedValue: document.getElementById('hashedValueField'),\r\n signedValue: document.getElementById('signedValueField'),\r\n signMethod: document.getElementById('signMethodField'),\r\n signVersion: document.getElementById('signVersionField'),\r\n verify: document.getElementById('verifyField'),\r\n\r\n sealID: document.getElementById('sealIDField'),\r\n sealName: document.getElementById('sealNameField'),\r\n sealType: document.getElementById('sealTypeField'),\r\n sealAuthTime: document.getElementById('sealAuthTimeField'),\r\n sealMakeTime: document.getElementById('sealMakeTimeField'),\r\n sealVersion: document.getElementById('sealVersionField'),\r\n },\r\n },\r\n errorWrapper,\r\n printContainer: document.getElementById('printContainer'),\r\n openFileInputName: 'fileInput',\r\n }\r\n },\r\n\r\n onStampDragOver(e) {\r\n e.dataTransfer.dropEffect = 'move';\r\n },\r\n removeStamp(index) {\r\n this.$emit('removePos', index);\r\n },\r\n // eslint-disable-next-line no-unused-vars\r\n onStampDragStop(ctx) {\r\n\r\n },\r\n placed(pageNum, index, params, stampId) {\r\n this.$emit('itemDropped', index, pageNum, params, stampId);\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.stamp {\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","export * from \"-!../../../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!./index.vue?vue&type=style&index=0&id=7f7c718c&prod&scoped=true&lang=css&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=7f7c718c&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=7f7c718c&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f7c718c\",\n null\n \n)\n\nexport default component.exports","import OfdView from './src';\r\n\r\nOfdView.install = Vue => Vue.component(OfdView.name, OfdView);//注册组件\r\n\r\nexport default OfdView\r\n","import OfdView from './ofdView'\r\n// import PdvView from './pdfView'\r\n\r\nconst components = [\r\n OfdView,\r\n // PdvView\r\n]\r\n\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n\r\n// 判断是否安装\r\n if (install.installed) return\r\n // 遍历注册全局组件\r\n components.map(component => Vue.component(component.name, component))\r\n}\r\n\r\n// 判断是否是直接引入文件\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n}\r\n\r\nexport default {\r\n // 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\n install,\r\n // 以下是具体的组件列表\r\n OfdView,\r\n // PdvView\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"ofd-view.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;ACVA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,gEAAgE,kBAAkB,kBAAkB,sBAAsB,uBAAuB,YAAY,6BAA6B,aAAa,4BAA4B,yBAAyB,gCAAgC,mCAAmC,cAAc,yBAAyB,sBAAsB,aAAa,kBAAkB,WAAW,YAAY,cAAc,gCAAgC,yBAAyB,4BAA4B,UAAU,WAAW,iBAAiB,4BAA4B,UAAU,SAAS,iBAAiB,gBAAgB,4BAA4B,UAAU,YAAY,iBAAiB,4BAA4B,WAAW,gBAAgB,wDAAwD,QAAQ,gBAAgB,4BAA4B,YAAY,gBAAgB,4BAA4B,aAAa,WAAW,iBAAiB,4BAA4B,aAAa,SAAS,iBAAiB,gBAAgB,4BAA4B,aAAa,YAAY,iBAAiB,yCAAyC,yCAAyC,aAAa,WAAW,YAAY,aAAa,UAAU,mBAAmB,wBAAwB,kBAAkB,UAAU,mBAAmB,iBAAiB,kBAAkB,YAAY,WAAW,eAAe,YAAY,+BAA+B,mBAAmB,wBAAwB,QAAQ,UAAU,kBAAkB;AACrhD;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACqH;AACtB;AAC/F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,kEAAkE,wBAAwB,4BAA4B,wBAAwB,WAAW,YAAY;AACrK;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;;AAEA;AACA,gDAAgD;AAChD;;AAEA;AACA,qFAAqF;AACrF;;AAEA;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA,KAAK;AACL,KAAK;;;AAGL;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,qBAAqB;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;ACrGa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA0b;AAChd;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA2b;AACjd;AACA;AACA;AACA;AACA,UAAU,8CAAiF;AAC3F,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;;UC7NA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,+BAA+B,6BAA6B,iBAAiB,OAAO,uBAAuB,kCAAkC,OAAO,sBAAsB,4CAA4C,OAAO,uCAAuC,YAAY,+BAA+B,cAAc,KAAK,4BAA4B,wBAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC1mB8I,CAAC,oGAAe,2CAAG,EAAC;;;;;;AEAnK;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/F8G;AACvC;AACL;AAClE,CAA4G;;;AAG5G;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,+DAAM;AACR,EAAE,mEAAM;AACR,EAAE,4EAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAe;;;;AC6akE;;AAEjF,gEAAe;AACf;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC7sBmI,CAAC,wEAAe,2BAAG,EAAC;;;;;;AEAxD;AACvC;AACL;AACpD,CAA8F;;;AAG9F;AACsG;AACtG,IAAI,aAAS,GAAG,kBAAU;AAC1B,EAAE,mCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,gDAAe,aAAS;;ACnBI;AAC5B;AACA,mBAAe,wBAAwB,gBAAY,EAAE,WAAO,EAAE;AAC9D;AACA,4CAAe,WAAO;;;ACJS;AAC/B;AACA;AACA;AACA,IAAI,OAAO;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAAe;AACf;AACA;AACA;AACA,WAAW;AACX;AACA,CAAC;;;AC5BuB;AACA;AACxB,8CAAe,UAAG;AACI","sources":["webpack://ofd-view/webpack/universalModuleDefinition","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?918f","webpack://ofd-view/./packages/ofdView/src/index.vue?8558","webpack://ofd-view/./node_modules/css-loader/dist/runtime/api.js","webpack://ofd-view/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?45d0","webpack://ofd-view/./packages/ofdView/src/index.vue?b061","webpack://ofd-view/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://ofd-view/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://ofd-view/webpack/bootstrap","webpack://ofd-view/webpack/runtime/compat get default export","webpack://ofd-view/webpack/runtime/define property getters","webpack://ofd-view/webpack/runtime/hasOwnProperty shorthand","webpack://ofd-view/webpack/runtime/make namespace object","webpack://ofd-view/webpack/runtime/publicPath","webpack://ofd-view/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://ofd-view/./packages/ofdView/src/index.vue?484b","webpack://ofd-view/./packages/ofdView/src/index.vue?1138","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?a636","webpack://ofd-view/packages/draggable-resizable/draggable-resizable.vue","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?afce","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue?b581","webpack://ofd-view/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://ofd-view/./packages/draggable-resizable/draggable-resizable.vue","webpack://ofd-view/packages/ofdView/src/index.vue","webpack://ofd-view/./packages/ofdView/src/index.vue?3d0b","webpack://ofd-view/./packages/ofdView/src/index.vue?0c34","webpack://ofd-view/./packages/ofdView/src/index.vue","webpack://ofd-view/./packages/ofdView/index.js","webpack://ofd-view/./packages/index.js","webpack://ofd-view/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ofd-view\"] = factory();\n\telse\n\t\troot[\"ofd-view\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".vdr[data-v-b44a7a5c]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-b44a7a5c]{display:none}.vdr[data-v-b44a7a5c]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-b44a7a5c]{display:block}.handle[data-v-b44a7a5c]{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-b44a7a5c]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-b44a7a5c]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-b44a7a5c]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-b44a7a5c]{left:-10px;cursor:w-resize}.handle-ml[data-v-b44a7a5c],.handle-mr[data-v-b44a7a5c]{top:50%;margin-top:-5px}.handle-mr[data-v-b44a7a5c]{right:-10px;cursor:e-resize}.handle-bl[data-v-b44a7a5c]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-b44a7a5c]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-b44a7a5c]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-b44a7a5c]:before{content:\\\"\\\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-b44a7a5c]{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-b44a7a5c]:before{content:\\\"\\\\2716\\\"}.close[data-v-b44a7a5c]{top:5px;right:2px;position:absolute}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".stamp[data-v-7dfc8129]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../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!./draggable-resizable.vue?vue&type=style&index=0&id=b44a7a5c&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"3ac38ce4\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../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!./index.vue?vue&type=style&index=0&id=7dfc8129&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2b1e36d0\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","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)])\n}\nvar 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\",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\":\"attachmentsView\"}}),_c('div',{staticClass:\"hidden\",attrs:{\"id\":\"signaturesView\"}})]),_c('div',{attrs:{\"id\":\"sidebarResizer\"}})])\n},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(\"文档属性…\")])])])])\n},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%\")])])])])])])])\n},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\"}})])\n},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(\"关闭\")])])])])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../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!./index.vue?vue&type=template&id=7dfc8129&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vdr\",class:{\n draggable: _vm.draggable,\n resizable: _vm.resizable,\n active: _vm.enabled,\n dragging: _vm.dragging,\n resizing: _vm.resizing\n },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)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div\r\n class=\"vdr\"\r\n :style=\"style\"\r\n :class=\"{\r\n draggable: draggable,\r\n resizable: resizable,\r\n active: enabled,\r\n dragging: dragging,\r\n resizing: resizing\r\n }\"\r\n @mousedown=\"elmDown\"\r\n @touchstart=\"elmDown\"\r\n >\r\n <button type=\"button\" class=\"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm\"\r\n style=\"position:absolute; right: 5px; top: -20px;\" @click.stop=\"dropItem\" v-if=\"editable\">\r\n <span class=\"close\"></span>\r\n </button>\r\n <div\r\n v-for=\"handle in handles\"\r\n v-if=\"resizable\"\r\n class=\"handle\"\r\n :key=\"handle\"\r\n :class=\"'handle-' + handle\"\r\n :style=\"{ display: enabled ? 'block' : 'none'}\"\r\n @mousedown=\"handleDown(handle, $event)\"\r\n @touchstart=\"handleDown(handle, $event)\"\r\n ></div>\r\n <slot></slot>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nfunction isFunction(func) {\r\n return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'\r\n}\r\n\r\nfunction matchesSelectorToParentElements(el, selector, baseNode) {\r\n let node = el;\r\n const matchesSelectorFunc = [\r\n 'matches',\r\n 'webkitMatchesSelector',\r\n 'mozMatchesSelector',\r\n 'msMatchesSelector',\r\n 'oMatchesSelector'\r\n ].find(func => isFunction(node[func]));\r\n\r\n if (!isFunction(node[matchesSelectorFunc])) return false;\r\n\r\n do {\r\n if (node[matchesSelectorFunc](selector)) return true;\r\n if (node === baseNode) return false;\r\n node = node.parentNode\r\n } while (node);\r\n\r\n return false\r\n}\r\n\r\nexport default {\r\n replace: true,\r\n name: 'VueDraggableResizable',\r\n props: {\r\n active: {\r\n type: Boolean, default: false\r\n },\r\n draggable: {\r\n type: Boolean, default: true\r\n },\r\n resizable: {\r\n type: Boolean, default: true\r\n },\r\n editable: {\r\n type: Boolean, default: true\r\n },\r\n originBottom: {\r\n type: Boolean, default: true\r\n },\r\n w: {\r\n type: Number,\r\n default: 200,\r\n validator: function (val) {\r\n return val > 0\r\n }\r\n },\r\n h: {\r\n type: Number,\r\n default: 200,\r\n validator: function (val) {\r\n return val > 0\r\n }\r\n },\r\n minw: {\r\n type: Number,\r\n default: 50,\r\n validator: function (val) {\r\n return val >= 0\r\n }\r\n },\r\n minh: {\r\n type: Number,\r\n default: 50,\r\n validator: function (val) {\r\n return val >= 0\r\n }\r\n },\r\n x: {\r\n type: Number,\r\n default: 0,\r\n validator: function (val) {\r\n return typeof val === 'number'\r\n }\r\n },\r\n y: {\r\n type: Number,\r\n default: 0,\r\n validator: function (val) {\r\n return typeof val === 'number'\r\n }\r\n },\r\n z: {\r\n type: [String, Number],\r\n default: 'auto',\r\n validator: function (val) {\r\n return (typeof val === 'string') ? val === 'auto' : val >= 0;\r\n }\r\n },\r\n handles: {\r\n type: Array,\r\n default: function () {\r\n return ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']\r\n },\r\n validator: function (val) {\r\n let s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']);\r\n return new Set(val.filter(h => s.has(h))).size === val.length\r\n }\r\n },\r\n dragHandle: {\r\n type: String,\r\n default: null\r\n },\r\n dragCancel: {\r\n type: String,\r\n default: null\r\n },\r\n axis: {\r\n type: String,\r\n default: 'both',\r\n validator: function (val) {\r\n return ['x', 'y', 'both'].indexOf(val) !== -1\r\n }\r\n },\r\n grid: {\r\n type: Array,\r\n default: function () {\r\n return [1, 1]\r\n }\r\n },\r\n parent: {\r\n type: Element, default: null\r\n },\r\n maximize: {\r\n type: Boolean, default: false\r\n },\r\n pages: {\r\n type: Array, required: false, default: null\r\n },\r\n eventBus: {\r\n type: Object, default: null\r\n },\r\n index: {\r\n type: Number, required: false, default: 0\r\n },\r\n currentPage: {\r\n type: Number, required: false, default: 0\r\n },\r\n stampId: {\r\n type: String, required: false, default: null\r\n }\r\n },\r\n created: function () {\r\n this.parentX = 0;\r\n this.parentW = 9999;\r\n this.parentY = 0;\r\n this.parentH = 9999;\r\n this.mouseX = 0;\r\n this.mouseY = 0;\r\n this.lastMouseX = 0;\r\n this.lastMouseY = 0;\r\n this.mouseOffX = 0;\r\n this.mouseOffY = 0;\r\n this.elmX = 0;\r\n this.elmY = 0;\r\n this.elmW = 0;\r\n this.elmH = 0;\r\n this.scrollPosition = 0;\r\n this.scrollDist = 0;\r\n this.pagesCount = this.pages ? this.pages.length : 0;\r\n this.section = [];\r\n this.scale = null;\r\n },\r\n mounted: function () {\r\n this.parent.addEventListener('mousemove', this.handleMove, false);\r\n this.parent.addEventListener('mousedown', this.deselect, false);\r\n this.parent.addEventListener('mouseup', this.handleUp, false);\r\n // touch events bindings\r\n this.parent.addEventListener('touchmove', this.handleMove, false);\r\n this.parent.addEventListener('touchend', this.handleUp, false);\r\n // this.parent.addEventListener('touchstart', this.handleUp, false);\r\n this.parent.addEventListener('touchstart', this.deselect, false);\r\n if (this.parent) {\r\n this.parent.parentNode.addEventListener('scroll', this.handleScrollMove, false);\r\n }\r\n //resize\r\n if (this.eventBus) {\r\n this.eventBus.on('stampResize', this.stampResize);\r\n }\r\n this.elmX = parseInt(this.$el.style.left);\r\n this.elmY = parseInt(this.$el.style.top);\r\n this.elmW = this.$el.offsetWidth || this.$el.clientWidth;\r\n this.elmH = this.$el.offsetHeight || this.$el.clientHeight;\r\n this._reviewDimensions();\r\n if (this.pages) {\r\n if (!this.scale) {\r\n this.scale = this.pages[0].viewport.scale;\r\n }\r\n this.updateSection();\r\n this.top = this.y + 10 < 0 ? 10 : this.y + 10;\r\n if (this.top < 10) {\r\n this.top = 10;\r\n }\r\n let pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);\r\n this.elmY = this.top;\r\n let placed = this.pages[pageIndex];\r\n if (placed && this.x - placed.div.offsetLeft - 9 > 0) {\r\n //nothing\r\n } else if (placed) {\r\n this.left = placed.div.offsetLeft + 9;\r\n }\r\n this.elmX = this.left;\r\n this._emitPlaced(pageIndex);\r\n }\r\n },\r\n beforeUnmount: function () {\r\n this.parent.removeEventListener('mousemove', this.handleMove, false);\r\n this.parent.removeEventListener('mousedown', this.deselect, false);\r\n this.parent.removeEventListener('mouseup', this.handleUp, false);\r\n if (this.parent) {\r\n this.parent.parentNode.removeEventListener('scroll', this.handleScrollMove, false);\r\n }\r\n if (this.eventBus) {\r\n this.eventBus.off('stampResize', this.stampResize);\r\n }\r\n // touch events bindings removed\r\n this.parent.removeEventListener('touchmove', this.handleMove, false);\r\n this.parent.removeEventListener('touchend', this.handleUp, false);\r\n // this.parent.removeEventListener('touchstart', this.handleUp, false);\r\n this.parent.removeEventListener('touchstart', this.deselect, false);\r\n },\r\n data: function () {\r\n return {\r\n top: this.y,\r\n left: this.x,\r\n width: this.w,\r\n height: this.h,\r\n resizing: false,\r\n dragging: false,\r\n enabled: this.active,\r\n handle: null,\r\n zIndex: this.z\r\n }\r\n },\r\n methods: {\r\n adjust(arr, val, leftIndex, rightIndex) {\r\n let pageIndex = this.binarySearch(arr, val, leftIndex, rightIndex);\r\n if (pageIndex < 0 || pageIndex > this.pagesCount - 1) {\r\n pageIndex = 0;\r\n }\r\n pageIndex = this.adjustBoundary(pageIndex);\r\n return pageIndex;\r\n },\r\n handleScrollMove(e) {\r\n if (this.dragging) {\r\n this.scrollDist = e.currentTarget.scrollTop - this.scrollPosition;\r\n this.top = this.top + this.scrollDist;\r\n this.elmY = this.top;\r\n }\r\n this.scrollPosition = e.currentTarget.scrollTop;\r\n },\r\n stampAreaUpdate(sp) {\r\n //update sp-1 and sp area\r\n for (let i = sp - 1; i < sp + 1; i++) {\r\n if (i - 1 > 0 && i < this.pagesCount) {\r\n this.section[i].t = this.section[i - 1].t + this.pages[i - 1].viewport.height + 11;\r\n this.section[i].o = this.pages[i - 1].div.offsetLeft + 9;\r\n }\r\n }\r\n },\r\n adjustBoundary(pageIndex) {\r\n if (this.pages[pageIndex] && this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0) {\r\n if (this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - this.elmH / 2 > 0) {\r\n this.top = this.section[pageIndex + 1].t;\r\n pageIndex++;\r\n } else {\r\n this.top = this.section[pageIndex + 1].t - this.elmH - 9 - 2;\r\n }\r\n }\r\n return pageIndex;\r\n },\r\n //二分查找\r\n binarySearch(arr, val, leftIndex, rightIndex) {\r\n if (leftIndex > rightIndex) {\r\n return leftIndex - 1;\r\n }\r\n let midIndex = Math.floor((leftIndex + rightIndex) / 2);\r\n let midVal = arr[midIndex].t;\r\n if (midVal > val) {\r\n return this.binarySearch(arr, val, leftIndex, midIndex - 1);\r\n } else if (midVal < val) {\r\n return this.binarySearch(arr, val, midIndex + 1, rightIndex);\r\n } else {\r\n return midIndex;\r\n }\r\n },\r\n updateSection() {\r\n this.section.length = 0;\r\n let t = 10;\r\n for (let i = 0; i < this.pagesCount; i++) {\r\n t = t + (i > 0 ? this.pages[this.originBottom ? i : i - 1].viewport.height : 0) + (i > 0 ? 9 + 2 : 0);\r\n this.section.push({\r\n t,\r\n o: this.pages[i].div.offsetLeft + 9\r\n });\r\n }\r\n this.section.push({\r\n t: this.section[this.pagesCount - 1].t + this.pages[this.pagesCount - 1].viewport.height + 9 + 2,\r\n o: this.pages[this.pagesCount - 1].div.offsetLeft + 9\r\n });\r\n },\r\n stampResize() {\r\n if (this.scale != null) {\r\n const section = [].concat(this.section);\r\n this.updateSection();\r\n const TOP = this.top;\r\n let pageIndex = this.binarySearch(section, TOP, this.currentPage - 1, this.pagesCount - 1);\r\n if (pageIndex < 0) {\r\n pageIndex = 0;\r\n }\r\n const currentScale = this.pages[0].viewport.scale;\r\n const WIDTH = this.width;\r\n const HEIGHT = this.height;\r\n this.width = (WIDTH * currentScale) / this.scale;\r\n this.height = (HEIGHT * currentScale) / this.scale;\r\n const LEFT = this.left;\r\n this.top = ((TOP - 10) * currentScale) / this.scale + 10;\r\n this.left = this.pages[pageIndex].div.offsetLeft + (((LEFT - section[pageIndex].o) * currentScale) / this.scale) + 9;\r\n this.elmW = this.width;\r\n this.elmH = this.height;\r\n this.elmX = this.left;\r\n this.elmY = this.top;\r\n this.scale = currentScale;\r\n this._emitPlaced(pageIndex);\r\n }\r\n },\r\n\r\n _emitPlaced(pageIndex) {\r\n this.$emit('placed', pageIndex, this.index, {\r\n x: (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,\r\n y: (!this.originBottom ? (this.top - this.section[pageIndex].t) : (this.pages[pageIndex].viewport.height - (this.top + this.elmH - this.section[pageIndex].t))) / this.pages[pageIndex].viewport.height,\r\n w: this.elmW / this.pages[pageIndex].viewport.width,\r\n h: this.elmH / this.pages[pageIndex].viewport.height\r\n }, this.stampId);\r\n },\r\n _reviewDimensions() {\r\n if (this.minw > this.w) this.width = this.minw;\r\n if (this.minh > this.h) this.height = this.minh;\r\n if (this.parent) {\r\n const parentW = parseInt(this.parent.scrollWidth, 10);\r\n const parentH = parseInt(this.parent.scrollHeight, 10);\r\n this.parentW = parentW;\r\n this.parentH = parentH;\r\n if (this.w > this.parentW) this.width = parentW;\r\n if (this.h > this.parentH) this.height = parentH;\r\n if ((this.x + this.w) > this.parentW) this.width = parentW - this.x;\r\n if ((this.y + this.h) > this.parentH) this.height = parentH - this.y;\r\n }\r\n this.elmW = this.width;\r\n this.elmH = this.height;\r\n },\r\n reviewDimensions: function () {\r\n this._reviewDimensions();\r\n this.$emit('resizing', this.left, this.top, this.width, this.height)\r\n },\r\n elmDown: function (e) {\r\n const target = e.target || e.srcElement;\r\n if (this.$el.contains(target)) {\r\n if (\r\n (this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||\r\n (this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {\r\n return\r\n }\r\n this.reviewDimensions();\r\n if (!this.enabled) {\r\n this.enabled = true\r\n this.$emit('activated')\r\n this.$emit('update:active', true)\r\n }\r\n if (this.draggable) {\r\n this.dragging = true\r\n }\r\n }\r\n },\r\n deselect: function (e) {\r\n if (e.type.indexOf('touch') !== -1) {\r\n this.mouseX = e.changedTouches[0].clientX\r\n this.mouseY = e.changedTouches[0].clientY\r\n } else {\r\n this.mouseX = e.pageX || e.clientX + this.parent.scrollLeft\r\n this.mouseY = e.pageY || e.clientY + this.parent.scrollTop\r\n }\r\n this.lastMouseX = this.mouseX\r\n this.lastMouseY = this.mouseY\r\n const target = e.target || e.srcElement\r\n const regex = new RegExp('handle-([trmbl]{2})', '')\r\n if (!this.$el.contains(target) && !regex.test(target.className)) {\r\n if (this.enabled) {\r\n this.enabled = false\r\n this.$emit('deactivated')\r\n this.$emit('update:active', false)\r\n }\r\n }\r\n },\r\n handleDown: function (handle, e) {\r\n this.handle = handle;\r\n if (e.cancelable) {\r\n e.stopPropagation();\r\n e.preventDefault();\r\n }\r\n this.resizing = true;\r\n },\r\n // fillParent: function (e) {\r\n // if (!this.parent || !this.resizable || !this.maximize) return\r\n // let done = false\r\n // const animate = () => {\r\n // if (!done) {\r\n // window.requestAnimationFrame(animate)\r\n // }\r\n // if (this.axis === 'x') {\r\n // if (\r\n // this.width === this.parentW && this.left === this.parentX\r\n // ) done = true\r\n // } else if (this.axis === 'y') {\r\n // if (\r\n // this.height === this.parentH && this.top === this.parentY\r\n // ) done = true\r\n // } else if (this.axis === 'both') {\r\n // if (\r\n // this.width === this.parentW &&\r\n // this.height === this.parentH &&\r\n // this.top === this.parentY &&\r\n // this.left === this.parentX\r\n // ) done = true\r\n // }\r\n // if (this.axis === 'x' || this.axis === 'both') {\r\n // if (this.width < this.parentW) {\r\n // this.width++\r\n // this.elmW++\r\n // }\r\n // if (this.left > this.parentX) {\r\n // this.left--\r\n // this.elmX--\r\n // }\r\n // }\r\n // if (this.axis === 'y' || this.axis === 'both') {\r\n // if (this.height < this.parentH) {\r\n // this.height++\r\n // this.elmH++\r\n // }\r\n // if (this.top > this.parentY) {\r\n // this.top--\r\n // this.elmY--\r\n // }\r\n // }\r\n // this.$emit('resizing', this.left, this.top, this.width, this.height)\r\n // }\r\n // window.requestAnimationFrame(animate)\r\n // },\r\n handleMove: function (e) {\r\n const isTouchMove = e.type.indexOf('touchmove') !== -1\r\n this.mouseX = isTouchMove\r\n ? e.touches[0].clientX\r\n : e.pageX || e.clientX + document.documentElement.scrollLeft;\r\n this.mouseY = isTouchMove\r\n ? e.touches[0].clientY\r\n : e.pageY || e.clientY + document.documentElement.scrollTop;\r\n let diffX = this.mouseX - this.lastMouseX + this.mouseOffX;\r\n let diffY = this.mouseY - this.lastMouseY + this.mouseOffY;\r\n this.mouseOffX = this.mouseOffY = 0;\r\n this.lastMouseX = this.mouseX;\r\n this.lastMouseY = this.mouseY;\r\n let dX = diffX;\r\n let dY = diffY;\r\n if (this.resizing) {\r\n if (this.handle.indexOf('t') >= 0) {\r\n if (this.elmH - dY < this.minh) this.mouseOffY = (dY - (diffY = this.elmH - this.minh));\r\n else if (this.parent && this.elmY + dY < this.parentY) this.mouseOffY = (dY - (diffY = this.parentY - this.elmY));\r\n this.elmY += diffY\r\n this.elmH -= diffY\r\n }\r\n if (this.handle.indexOf('b') >= 0) {\r\n if (this.elmH + dY < this.minh) this.mouseOffY = (dY - (diffY = this.minh - this.elmH));\r\n else if (this.parent && this.elmY + this.elmH + dY > this.parentH) this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH));\r\n this.elmH += diffY\r\n }\r\n if (this.handle.indexOf('l') >= 0) {\r\n if (this.elmW - dX < this.minw) this.mouseOffX = (dX - (diffX = this.elmW - this.minw));\r\n else if (this.parent && this.elmX + dX < this.parentX) this.mouseOffX = (dX - (diffX = this.parentX - this.elmX));\r\n this.elmX += diffX\r\n this.elmW -= diffX\r\n }\r\n if (this.handle.indexOf('r') >= 0) {\r\n if (this.elmW + dX < this.minw) this.mouseOffX = (dX - (diffX = this.minw - this.elmW))\r\n else if (this.parent && this.elmX + this.elmW + dX > this.parentW) this.mouseOffX = (dX - (diffX = this.parentW - this.elmX - this.elmW));\r\n this.elmW += diffX\r\n }\r\n this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0]);\r\n this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1]);\r\n this.width = (Math.round(this.elmW / this.grid[0]) * this.grid[0]);\r\n this.height = (Math.round(this.elmH / this.grid[1]) * this.grid[1]);\r\n this.$emit('resizing', this.left, this.top, this.width, this.height);\r\n } else if (this.dragging) {\r\n if (this.parent) {\r\n this._reviewDimensions();\r\n let [_x, _y] = [0, 10];\r\n if (this.pages) {\r\n let pageIndex = this.binarySearch(this.section, this.elmY + diffY, this.currentPage - 1, this.pagesCount - 1);\r\n if (pageIndex < 0) {\r\n pageIndex = 0;\r\n }\r\n if (this.elmY + diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0) {\r\n if (this.elmY + diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - (this.elmH * 0.9) - 11 > 0) {\r\n pageIndex++;\r\n }\r\n }\r\n _x = this.pages[pageIndex].div.offsetLeft + 9;\r\n }\r\n if (this.elmX + dX < this.parentX + _x) {\r\n this.mouseOffX = (dX - (diffX = this.parentX + _x - this.elmX))\r\n } else if (this.elmX + this.elmW + dX > (this.parentW - _x)) {\r\n this.mouseOffX = (dX - (diffX = (this.parentW - _x) - this.elmX - this.elmW))\r\n }\r\n if (this.elmY + dY < this.parentY + _y) {\r\n this.mouseOffY = (dY - (diffY = this.parentY + _y - this.elmY))\r\n } else if (this.elmY + this.elmH + dY > this.parentH) {\r\n this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH))\r\n }\r\n }\r\n this.elmX += diffX;\r\n this.elmY += diffY;\r\n if (this.axis === 'x' || this.axis === 'both') {\r\n this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0])\r\n }\r\n if (this.axis === 'y' || this.axis === 'both') {\r\n this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1])\r\n }\r\n this.$emit('dragging', this.left, this.top)\r\n }\r\n },\r\n handleUp: function (e) {\r\n if (e.type.indexOf('touch') !== -1) {\r\n this.lastMouseX = e.changedTouches[0].clientX;\r\n this.lastMouseY = e.changedTouches[0].clientY;\r\n }\r\n this.handle = null;\r\n //this.enabled = false;\r\n if (this.resizing) {\r\n this.resizing = false;\r\n this.$emit('resizestop', this.left, this.top, this.width, this.height)\r\n }\r\n if (this.dragging) {\r\n this.dragging = false;\r\n let pageIndex = 0;\r\n if (this.pages) {\r\n pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);\r\n }\r\n this._emitPlaced(pageIndex);\r\n this.$emit('dragstop', this.left, this.top);\r\n }\r\n this.elmX = this.left;\r\n this.elmY = this.top;\r\n },\r\n dropItem() {\r\n this.$emit('dropitem', this.index);\r\n }\r\n },\r\n computed: {\r\n style: function () {\r\n return {\r\n top: this.top + 'px',\r\n left: this.left + 'px',\r\n width: this.width + 'px',\r\n height: this.height + 'px',\r\n zIndex: this.zIndex\r\n }\r\n }\r\n },\r\n watch: {\r\n active: function (val) {\r\n this.enabled = val\r\n },\r\n z: function (val) {\r\n if (val >= 0 || val === 'auto') {\r\n this.zIndex = val\r\n }\r\n },\r\n currentPage: function (newVal) {\r\n this.stampAreaUpdate(newVal);\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.vdr {\r\n touch-action: none;\r\n position: absolute;\r\n box-sizing: border-box;\r\n border: 1px dashed #ddd;\r\n cursor: move;\r\n}\r\n\r\n.vdr button {\r\n display: none;\r\n}\r\n\r\n.vdr:hover {\r\n border: 1px solid #fd397a;\r\n background: rgba(253, 57, 122, .08);\r\n}\r\n\r\n.vdr:hover button {\r\n display: block;\r\n}\r\n\r\n.handle {\r\n box-sizing: border-box;\r\n display: none;\r\n position: absolute;\r\n width: 10px;\r\n height: 10px;\r\n font-size: 1px;\r\n background: rgba(253, 57, 122, .08);\r\n border: 1px solid #fd397a;\r\n}\r\n\r\n.handle-tl {\r\n top: -10px;\r\n left: -10px;\r\n cursor: nw-resize;\r\n}\r\n\r\n.handle-tm {\r\n top: -10px;\r\n left: 50%;\r\n margin-left: -5px;\r\n cursor: n-resize;\r\n}\r\n\r\n.handle-tr {\r\n top: -10px;\r\n right: -10px;\r\n cursor: ne-resize;\r\n}\r\n\r\n.handle-ml {\r\n top: 50%;\r\n margin-top: -5px;\r\n left: -10px;\r\n cursor: w-resize;\r\n}\r\n\r\n.handle-mr {\r\n top: 50%;\r\n margin-top: -5px;\r\n right: -10px;\r\n cursor: e-resize;\r\n}\r\n\r\n.handle-bl {\r\n bottom: -10px;\r\n left: -10px;\r\n cursor: sw-resize;\r\n}\r\n\r\n.handle-bm {\r\n bottom: -10px;\r\n left: 50%;\r\n margin-left: -5px;\r\n cursor: s-resize;\r\n}\r\n\r\n.handle-br {\r\n bottom: -10px;\r\n right: -10px;\r\n cursor: se-resize;\r\n}\r\n\r\n@media only screen and (max-width: 768px) {\r\n /* For mobile phones: */\r\n [class*=\"handle-\"]:before {\r\n content: '';\r\n left: -10px;\r\n right: -10px;\r\n bottom: -10px;\r\n top: -10px;\r\n position: absolute;\r\n }\r\n}\r\n\r\n\r\n.close {\r\n background: orange;\r\n color: red;\r\n border-radius: 12px;\r\n line-height: 20px;\r\n text-align: center;\r\n height: 20px;\r\n width: 20px;\r\n font-size: 18px;\r\n padding: 1px;\r\n}\r\n\r\n.close::before {\r\n content: \"\\2716\";\r\n}\r\n\r\n.close {\r\n top: 5px;\r\n right: 2px;\r\n position: absolute;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./draggable-resizable.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./draggable-resizable.vue?vue&type=script&lang=js&\"","export * from \"-!../../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!./draggable-resizable.vue?vue&type=style&index=0&id=b44a7a5c&prod&scoped=true&lang=css&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./draggable-resizable.vue?vue&type=template&id=b44a7a5c&scoped=true&\"\nimport script from \"./draggable-resizable.vue?vue&type=script&lang=js&\"\nexport * from \"./draggable-resizable.vue?vue&type=script&lang=js&\"\nimport style0 from \"./draggable-resizable.vue?vue&type=style&index=0&id=b44a7a5c&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b44a7a5c\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div id=\"outerContainer\">\r\n\r\n <div id=\"sidebarContainer\">\r\n <div id=\"toolbarSidebar\">\r\n <div id=\"toolbarSidebarLeft\">\r\n <div id=\"sidebarViewButtons\" class=\"splitToolbarButton toggled\" role=\"radiogroup\">\r\n <!-- <button id=\"viewThumbnail\" class=\"toolbarButton toggled\" title=\"Show Thumbnails\" tabindex=\"2\" data-l10n-id=\"thumbs\" role=\"radio\" aria-checked=\"true\" aria-controls=\"thumbnailView\">-->\r\n <!-- <span data-l10n-id=\"thumbs_label\">Thumbnails</span>-->\r\n <!-- </button>-->\r\n <!-- <button id=\"viewOutline\" class=\"toolbarButton\" 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\">-->\r\n <!-- <span data-l10n-id=\"document_outline_label\">Document Outline</span>-->\r\n <!-- </button>-->\r\n <button id=\"viewAttachments\" class=\"toolbarButton\" title=\"Show Attachments\" tabindex=\"4\" data-l10n-id=\"attachments\" role=\"radio\" aria-checked=\"false\" aria-controls=\"attachmentsView\">\r\n <span data-l10n-id=\"attachments_label\">Attachments</span>\r\n </button>\r\n<!-- <button id=\"viewLayers\" class=\"toolbarButton\" title=\"Show Layers (double-click to reset all layers to the default state)\" tabindex=\"5\" data-l10n-id=\"layers\" role=\"radio\" aria-checked=\"false\" aria-controls=\"layersView\">-->\r\n<!-- <span data-l10n-id=\"layers_label\">Layers</span>-->\r\n<!-- </button>-->\r\n <button id=\"viewSignatures\" class=\"toolbarButton\" title=\"Show Signatures\" tabindex=\"6\" data-l10n-id=\"layers\" role=\"radio\" aria-checked=\"false\" aria-controls=\"signaturesView\">\r\n <span data-l10n-id=\"signatures_label\">Signatures</span>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div id=\"toolbarSidebarRight\">\r\n <div id=\"outlineOptionsContainer\" class=\"hidden\">\r\n <div class=\"verticalToolbarSeparator\"></div>\r\n\r\n <button id=\"currentOutlineItem\" class=\"toolbarButton\" disabled=\"disabled\" title=\"Find Current Outline Item\"\r\n tabindex=\"6\" data-l10n-id=\"current_outline_item\">\r\n <span data-l10n-id=\"current_outline_item_label\">Current Outline Item</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"sidebarContent\">\r\n <!-- <div id=\"thumbnailView\">-->\r\n <!-- </div>-->\r\n <!-- <div id=\"outlineView\" class=\"hidden\">-->\r\n <!-- </div>-->\r\n\r\n <div id=\"attachmentsView\"></div>\r\n <!-- <div id=\"layersView\" class=\"hidden\">-->\r\n <!-- </div>-->\r\n <div id=\"signaturesView\" class=\"hidden\">\r\n\r\n </div>\r\n </div>\r\n <div id=\"sidebarResizer\"></div>\r\n </div> <!-- sidebarContainer -->\r\n\r\n <div id=\"mainContainer\">\r\n\r\n <div id=\"secondaryToolbar\" class=\"secondaryToolbar hidden doorHangerRight\">\r\n <div id=\"secondaryToolbarButtonContainer\">\r\n <button id=\"secondaryOpenFile\" class=\"secondaryToolbarButton openFile visibleLargeView\" title=\"打开文件\"\r\n tabindex=\"52\" data-l10n-id=\"open_file\">\r\n <span data-l10n-id=\"open_file_label\">打开</span>\r\n </button>\r\n\r\n <button id=\"secondaryPrint\" class=\"secondaryToolbarButton print visibleMediumView\" title=\"打印\" tabindex=\"53\"\r\n data-l10n-id=\"print\">\r\n <span data-l10n-id=\"print_label\">打印</span>\r\n </button>\r\n\r\n <button id=\"secondaryDownload\" class=\"secondaryToolbarButton download visibleMediumView\" title=\"Download\"\r\n tabindex=\"54\" data-l10n-id=\"download\">\r\n <span data-l10n-id=\"download_label\">Download</span>\r\n </button>\r\n\r\n <a href=\"#\" id=\"secondaryViewBookmark\" class=\"secondaryToolbarButton bookmark visibleSmallView\"\r\n title=\"Current view (copy or open in new window)\" tabindex=\"55\" data-l10n-id=\"bookmark\">\r\n <span data-l10n-id=\"bookmark_label\">Current View</span>\r\n </a>\r\n\r\n <div class=\"horizontalToolbarSeparator visibleLargeView\"></div>\r\n\r\n <button id=\"firstPage\" class=\"secondaryToolbarButton firstPage\" title=\"Go to First Page\" tabindex=\"56\"\r\n data-l10n-id=\"first_page\">\r\n <span data-l10n-id=\"first_page_label\">Go to First Page</span>\r\n </button>\r\n <button id=\"lastPage\" class=\"secondaryToolbarButton lastPage\" title=\"Go to Last Page\" tabindex=\"57\"\r\n data-l10n-id=\"last_page\">\r\n <span data-l10n-id=\"last_page_label\">Go to Last Page</span>\r\n </button>\r\n\r\n <div class=\"horizontalToolbarSeparator\"></div>\r\n\r\n <button id=\"pageRotateCw\" class=\"secondaryToolbarButton rotateCw\" title=\"Rotate Clockwise\" tabindex=\"58\"\r\n data-l10n-id=\"page_rotate_cw\">\r\n <span data-l10n-id=\"page_rotate_cw_label\">Rotate Clockwise</span>\r\n </button>\r\n <button id=\"pageRotateCcw\" class=\"secondaryToolbarButton rotateCcw\" title=\"Rotate Counterclockwise\"\r\n tabindex=\"59\" data-l10n-id=\"page_rotate_ccw\">\r\n <span data-l10n-id=\"page_rotate_ccw_label\">Rotate Counterclockwise</span>\r\n </button>\r\n\r\n <div class=\"horizontalToolbarSeparator\"></div>\r\n\r\n <div id=\"cursorToolButtons\" role=\"radiogroup\">\r\n <button id=\"cursorSelectTool\" class=\"secondaryToolbarButton selectTool toggled\"\r\n title=\"Enable Text Selection Tool\" tabindex=\"60\" data-l10n-id=\"cursor_text_select_tool\" role=\"radio\"\r\n aria-checked=\"true\">\r\n <span data-l10n-id=\"cursor_text_select_tool_label\">Text Selection Tool</span>\r\n </button>\r\n <button id=\"cursorHandTool\" class=\"secondaryToolbarButton handTool\" title=\"Enable Hand Tool\" tabindex=\"61\"\r\n data-l10n-id=\"cursor_hand_tool\" role=\"radio\" aria-checked=\"false\">\r\n <span data-l10n-id=\"cursor_hand_tool_label\">Hand Tool</span>\r\n </button>\r\n </div>\r\n\r\n <div id=\"scrollModeButtons\" role=\"radiogroup\">\r\n <div class=\"horizontalToolbarSeparator\"></div>\r\n <button id=\"scrollPage\" class=\"secondaryToolbarButton scrollPage\" title=\"Use Page Scrolling\" tabindex=\"62\"\r\n data-l10n-id=\"scroll_page\" role=\"radio\" aria-checked=\"false\">\r\n <span data-l10n-id=\"scroll_page_label\">Page Scrolling</span>\r\n </button>\r\n <button id=\"scrollVertical\" class=\"secondaryToolbarButton scrollVertical toggled\"\r\n title=\"Use Vertical Scrolling\" tabindex=\"63\" data-l10n-id=\"scroll_vertical\" role=\"radio\"\r\n aria-checked=\"true\">\r\n <span data-l10n-id=\"scroll_vertical_label\">Vertical Scrolling</span>\r\n </button>\r\n <button id=\"scrollHorizontal\" class=\"secondaryToolbarButton scrollHorizontal\"\r\n title=\"Use Horizontal Scrolling\" tabindex=\"64\" data-l10n-id=\"scroll_horizontal\" role=\"radio\"\r\n aria-checked=\"false\">\r\n <span data-l10n-id=\"scroll_horizontal_label\">Horizontal Scrolling</span>\r\n </button>\r\n <button id=\"scrollWrapped\" class=\"secondaryToolbarButton scrollWrapped\" title=\"Use Wrapped Scrolling\"\r\n tabindex=\"65\" data-l10n-id=\"scroll_wrapped\" role=\"radio\" aria-checked=\"false\">\r\n <span data-l10n-id=\"scroll_wrapped_label\">Wrapped Scrolling</span>\r\n </button>\r\n </div>\r\n\r\n <div id=\"spreadModeButtons\" role=\"radiogroup\">\r\n <div class=\"horizontalToolbarSeparator\"></div>\r\n <button id=\"spreadNone\" class=\"secondaryToolbarButton spreadNone toggled\" title=\"Do not join page spreads\"\r\n tabindex=\"66\" data-l10n-id=\"spread_none\" role=\"radio\" aria-checked=\"true\">\r\n <span data-l10n-id=\"spread_none_label\">No Spreads</span>\r\n </button>\r\n <button id=\"spreadOdd\" class=\"secondaryToolbarButton spreadOdd\"\r\n title=\"Join page spreads starting with odd-numbered pages\" tabindex=\"67\" data-l10n-id=\"spread_odd\"\r\n role=\"radio\" aria-checked=\"false\">\r\n <span data-l10n-id=\"spread_odd_label\">Odd Spreads</span>\r\n </button>\r\n <button id=\"spreadEven\" class=\"secondaryToolbarButton spreadEven\"\r\n title=\"Join page spreads starting with even-numbered pages\" tabindex=\"68\" data-l10n-id=\"spread_even\"\r\n role=\"radio\" aria-checked=\"false\">\r\n <span data-l10n-id=\"spread_even_label\">Even Spreads</span>\r\n </button>\r\n </div>\r\n\r\n <div class=\"horizontalToolbarSeparator\"></div>\r\n\r\n <button id=\"documentProperties\" class=\"secondaryToolbarButton documentProperties\" title=\"文档属性…\"\r\n tabindex=\"69\" data-l10n-id=\"document_properties\" aria-controls=\"documentPropertiesDialog\">\r\n <span data-l10n-id=\"document_properties_label\">文档属性…</span>\r\n </button>\r\n </div>\r\n </div> <!-- secondaryToolbar -->\r\n\r\n <div class=\"toolbar\">\r\n <div id=\"toolbarContainer\">\r\n <div id=\"toolbarViewer\">\r\n <div id=\"toolbarViewerLeft\">\r\n <button id=\"sidebarToggle\" class=\"toolbarButton\" title=\"Toggle Sidebar\" tabindex=\"11\"\r\n data-l10n-id=\"toggle_sidebar\" aria-expanded=\"false\" aria-controls=\"sidebarContainer\">\r\n <span data-l10n-id=\"toggle_sidebar_label\">切换侧栏</span>\r\n </button>\r\n <!-- <div class=\"toolbarButtonSpacer\"></div>-->\r\n <div class=\"splitToolbarButton hiddenSmallView\">\r\n <button class=\"toolbarButton pageUp\" title=\"上一页\" id=\"previous\" tabindex=\"13\"\r\n data-l10n-id=\"previous\">\r\n <span data-l10n-id=\"previous_label\">上一页</span>\r\n </button>\r\n <div class=\"splitToolbarButtonSeparator\"></div>\r\n <button class=\"toolbarButton pageDown\" title=\"下一页\" id=\"next\" tabindex=\"14\" data-l10n-id=\"next\">\r\n <span data-l10n-id=\"next_label\">下一页</span>\r\n </button>\r\n </div>\r\n <input type=\"number\" id=\"pageNumber\" class=\"toolbarField pageNumber\" title=\"页面\" value=\"1\" size=\"4\"\r\n min=\"1\" tabindex=\"15\" data-l10n-id=\"page\" autocomplete=\"off\">\r\n <span id=\"numPages\" class=\"toolbarLabel\"></span>\r\n </div>\r\n <div id=\"toolbarViewerRight\">\r\n\r\n <button id=\"openFile\" class=\"toolbarButton openFile hiddenLargeView\" title=\"打开文件\" tabindex=\"32\"\r\n data-l10n-id=\"open_file\">\r\n <span data-l10n-id=\"open_file_label\">打开</span>\r\n </button>\r\n\r\n <button id=\"print\" class=\"toolbarButton print hiddenMediumView\" title=\"打印\" tabindex=\"33\"\r\n data-l10n-id=\"print\">\r\n <span data-l10n-id=\"print_label\">打印</span>\r\n </button>\r\n\r\n <div class=\"verticalToolbarSeparator hiddenSmallView\"></div>\r\n\r\n <button id=\"secondaryToolbarToggle\" class=\"toolbarButton\" title=\"工具\" tabindex=\"36\" data-l10n-id=\"tools\"\r\n aria-expanded=\"false\" aria-controls=\"secondaryToolbar\">\r\n <span data-l10n-id=\"tools_label\">工具</span>\r\n </button>\r\n </div>\r\n <div id=\"toolbarViewerMiddle\">\r\n <div class=\"splitToolbarButton\">\r\n <button id=\"zoomOut\" class=\"toolbarButton zoomOut\" title=\"缩小\" tabindex=\"21\"\r\n data-l10n-id=\"zoom_out\">\r\n <span data-l10n-id=\"zoom_out_label\">缩小</span>\r\n </button>\r\n <div class=\"splitToolbarButtonSeparator\"></div>\r\n <button id=\"zoomIn\" class=\"toolbarButton zoomIn\" title=\"放大\" tabindex=\"22\" data-l10n-id=\"zoom_in\">\r\n <span data-l10n-id=\"zoom_in_label\">放大</span>\r\n </button>\r\n </div>\r\n <span id=\"scaleSelectContainer\" class=\"dropdownToolbarButton\">\r\n <select id=\"scaleSelect\" title=\"缩放\" tabindex=\"23\" data-l10n-id=\"zoom\">\r\n <option id=\"pageAutoOption\" title=\"\" value=\"auto\" selected=\"selected\"\r\n data-l10n-id=\"page_scale_auto\">自动缩放</option>\r\n <option id=\"pageActualOption\" title=\"\" value=\"page-actual\"\r\n data-l10n-id=\"page_scale_actual\">实际大小</option>\r\n <option id=\"pageFitOption\" title=\"\" value=\"page-fit\" data-l10n-id=\"page_scale_fit\">适合页面</option>\r\n <option id=\"pageWidthOption\" title=\"\" value=\"page-width\"\r\n data-l10n-id=\"page_scale_width\">适合页宽</option>\r\n <option id=\"customScaleOption\" title=\"\" value=\"custom\" disabled=\"disabled\" hidden=\"true\"></option>\r\n <option title=\"\" value=\"0.5\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 50 }'>50%</option>\r\n <option title=\"\" value=\"0.75\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 75 }'>75%</option>\r\n <option title=\"\" value=\"1\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 100 }'>100%</option>\r\n <option title=\"\" value=\"1.25\" data-l10n-id=\"page_scale_percent\" data-l10n-args='{ \"scale\": 125 }'>125%</option>\r\n <option title=\"\" value=\"1.5\" data-l10n-id=\"page_scale_percent\" data-l10n-args='{ \"scale\": 150 }'>150%</option>\r\n <option title=\"\" value=\"2\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 200 }'>200%</option>\r\n <option title=\"\" value=\"3\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 300 }'>300%</option>\r\n <option title=\"\" value=\"4\" data-l10n-id=\"page_scale_percent\"\r\n data-l10n-args='{ \"scale\": 400 }'>400%</option>\r\n </select>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div id=\"viewerContainer\" tabindex=\"0\">\r\n <div id=\"viewer\" class=\"pdfViewer\" @dragover.prevent=\"onStampDragOver\">\r\n <vue-draggable-resizable v-for=\"(stamp, index) in stamps\" :w=\"stamp.w ? stamp.w : 174\"\r\n :h=\"stamp.h ? stamp.h : 174\" v-if=\"viewVisible\" :parent=\"config.viewerContainer\"\r\n :customForStamp=\"true\"\r\n :eventBus=\"eventBus\" :handles=\"['tl', 'tr', 'bl', 'br']\" :index=\"index\"\r\n @dropitem=\"removeStamp\"\r\n :x=\"stamp.x\" :y=\"stamp.located ? stamp.y : stamp.y + config.mainContainer.scrollTop\"\r\n :pages=\"ofdViewer._pages\" :currentPage=\"sp\"\r\n @dragstop=\"onStampDragStop\" @placed=\"placed\" :origin-bottom=\"false\"\r\n :stampId=\"stamp.source.stampId\" :draggable=\"draggable\" :resizable=\"resizable\"\r\n :editable=\"editable\">\r\n <div class=\"stamp\"\r\n :style=\"{backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'}\"></div>\r\n <!-- <div v-if=\"stamp.type === 'recipient'\" class=\"circle\">-->\r\n <!-- <h5 class=\"mb-1 sl-font-bold text-white\">-->\r\n <!-- {{stamp.source.name}}-->\r\n <!-- </h5>-->\r\n <!--&lt;!&ndash; <div class=\"sl-font-bold text-white small mb-2\">{{stamp.source.representUserId?stamp.source.representUserId:stamp.source.userId}}</div>&ndash;&gt;-->\r\n <!-- <div class=\"text-white sl-font-bold\">-->\r\n <!-- <i class=\"fas fa-pencil-alt\"></i>&nbsp;&nbsp;签章区-->\r\n <!-- </div>-->\r\n <!-- </div>-->\r\n </vue-draggable-resizable>\r\n </div>\r\n <slot name=\"openFileRef\"></slot>\r\n </div>\r\n\r\n <!--#if !MOZCENTRAL-->\r\n <div id=\"errorWrapper\" hidden='true'>\r\n <div id=\"errorMessageLeft\">\r\n <span id=\"errorMessage\"></span>\r\n <button id=\"errorShowMore\" data-l10n-id=\"error_more_info\">\r\n More Information\r\n </button>\r\n <button id=\"errorShowLess\" data-l10n-id=\"error_less_info\" hidden='true'>\r\n Less Information\r\n </button>\r\n </div>\r\n <div id=\"errorMessageRight\">\r\n <button id=\"errorClose\" data-l10n-id=\"error_close\">\r\n Close\r\n </button>\r\n </div>\r\n <div class=\"clearBoth\"></div>\r\n <textarea id=\"errorMoreInfo\" hidden='true' readonly=\"readonly\"></textarea>\r\n </div>\r\n <!--#endif-->\r\n </div> <!-- mainContainer -->\r\n\r\n <div id=\"dialogContainer\">\r\n <dialog id=\"documentPropertiesDialog\">\r\n <div class=\"row\">\r\n <span id=\"fileNameLabel\" data-l10n-id=\"document_properties_file_name\">文件名:</span>\r\n <p id=\"fileNameField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"fileSizeLabel\" data-l10n-id=\"document_properties_file_size\">文件大小:</span>\r\n <p id=\"fileSizeField\" aria-labelledby=\"fileSizeLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"titleLabel\" data-l10n-id=\"document_properties_title\">标题:</span>\r\n <p id=\"titleField\" aria-labelledby=\"titleLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"authorLabel\" data-l10n-id=\"document_properties_author\">作者:</span>\r\n <p id=\"authorField\" aria-labelledby=\"authorLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"subjectLabel\" data-l10n-id=\"document_properties_subject\">主题:</span>\r\n <p id=\"subjectField\" aria-labelledby=\"subjectLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"keywordsLabel\" data-l10n-id=\"document_properties_keywords\">关键词:</span>\r\n <p id=\"keywordsField\" aria-labelledby=\"keywordsLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"creationDateLabel\" data-l10n-id=\"document_properties_creation_date\">创建日期:</span>\r\n <p id=\"creationDateField\" aria-labelledby=\"creationDateLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"modificationDateLabel\"\r\n data-l10n-id=\"document_properties_modification_date\">修改日期:</span>\r\n <p id=\"modificationDateField\" aria-labelledby=\"modificationDateLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"creatorLabel\" data-l10n-id=\"document_properties_creator\">创建者:</span>\r\n <p id=\"creatorField\" aria-labelledby=\"creatorLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"producerLabel\" data-l10n-id=\"document_properties_producer\">OFD 生成器:</span>\r\n <p id=\"producerField\" aria-labelledby=\"producerLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"versionLabel\" data-l10n-id=\"document_properties_version\">OFD 版本:</span>\r\n <p id=\"versionField\" aria-labelledby=\"versionLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"pageCountLabel\" data-l10n-id=\"document_properties_page_count\">页数:</span>\r\n <p id=\"pageCountField\" aria-labelledby=\"pageCountLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"pageSizeLabel\" data-l10n-id=\"document_properties_page_size\">页面大小:</span>\r\n <p id=\"pageSizeField\" aria-labelledby=\"pageSizeLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\" hidden=\"hidden\">\r\n <span id=\"linearizedLabel\" data-l10n-id=\"document_properties_linearized\">快速 Web 视图:</span>\r\n <p id=\"linearizedField\" aria-labelledby=\"linearizedLabel\">-</p>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"documentPropertiesClose\" class=\"dialogButton\"><span\r\n data-l10n-id=\"document_properties_close\">关闭</span></button>\r\n </div>\r\n </dialog>\r\n <!--#if !MOZCENTRAL-->\r\n <dialog id=\"printServiceDialog\" style=\"min-width: 200px;\">\r\n <div class=\"row\">\r\n <span data-l10n-id=\"print_progress_message\">正在准备打印文档…</span>\r\n </div>\r\n <div class=\"row\">\r\n <progress id=\"printProgress\" value=\"0\" max=\"100\"></progress>\r\n <span data-l10n-id=\"print_progress_percent\" data-l10n-args='{ \"progress\": 0 }'\r\n class=\"relative-progress\">0%</span>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"printCancel\" class=\"dialogButton\"><span data-l10n-id=\"print_progress_close\">取消</span></button>\r\n </div>\r\n </dialog>\r\n\r\n <dialog id=\"signaturePropertiesDialog\">\r\n <div class=\"row\">\r\n <span id=\"signerLabel\">签章人:</span>\r\n <p id=\"signerField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"providerLabel\">签章提供者:</span>\r\n <p id=\"providerField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"hashedValueLabel\">原文摘要值:</span>\r\n <p id=\"hashedValueField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signedValueLabel\">签名值:</span>\r\n <p id=\"signedValueField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signMethodLabel\">签名算法:</span>\r\n <p id=\"signMethodField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"signVersionLabel\">版本号:</span>\r\n <p id=\"signVersionField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"verifyLabel\">验签结果:</span>\r\n <p id=\"verifyField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"separator\"></div>\r\n <div class=\"row\">\r\n <span id=\"sealIDLabel\">印章标识:</span>\r\n <p id=\"sealIDField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealNameLabel\">印章名称:</span>\r\n <p id=\"sealNameField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealTypeLabel\">印章类型:</span>\r\n <p id=\"sealTypeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealAuthTimeLabel\">有效时间:</span>\r\n <p id=\"sealAuthTimeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealMakeTimeLabel\">制章日期:</span>\r\n <p id=\"sealMakeTimeField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"row\">\r\n <span id=\"sealVersionLabel\">印章版本:</span>\r\n <p id=\"sealVersionField\" aria-labelledby=\"fileNameLabel\">-</p>\r\n </div>\r\n <div class=\"buttonRow\">\r\n <button id=\"signaturePropertiesClose\" class=\"dialogButton\"><span\r\n data-l10n-id=\"document_properties_close\">关闭</span>\r\n </button>\r\n </div>\r\n </dialog>\r\n <!--#endif-->\r\n <!--#if CHROME-->\r\n <!--#include viewer-snippet-chrome-overlays.html-->\r\n <!--#endif-->\r\n </div> <!-- dialogContainer -->\r\n\r\n </div> <!-- outerContainer -->\r\n</template>\r\n\r\n<script>\r\n\r\nimport VueDraggableResizable from '../../draggable-resizable/draggable-resizable'\r\n\r\nexport default {\r\n name: \"OfdView\",\r\n components: {\r\n VueDraggableResizable\r\n },\r\n props: {\r\n file: {\r\n required: false\r\n },\r\n mem: {\r\n required: true,\r\n },\r\n secret: {\r\n type: String,\r\n required: false\r\n },\r\n digest: {\r\n type: String,\r\n required: false\r\n },\r\n draggable: {\r\n type: Boolean, required: false, default: true\r\n },\r\n resizable: {\r\n type: Boolean, required: false, default: false\r\n },\r\n editable: {\r\n type: Boolean, required: false, default: true\r\n },\r\n stamps: {\r\n type: Array,\r\n required: false,\r\n default: () => []\r\n },\r\n sidebarForceOpen: {\r\n type: Boolean, required: false, default: false\r\n },\r\n signatureViewerForceCheck: {\r\n type: Boolean, required: false, default: false\r\n }\r\n },\r\n\r\n watch: {\r\n file: {\r\n immediate: true,\r\n handler(val) {\r\n if (this.config && this.mem) {\r\n this.ofdViewer = null\r\n this.mem.openOFD(val)\r\n }\r\n }\r\n },\r\n stamps: {\r\n immediate: true,\r\n handler(val) {\r\n if (val.length > 0 && this.config) {\r\n document.getElementById('scrollModeButtons').hidden = true\r\n document.getElementById('spreadModeButtons').hidden = true\r\n }\r\n }\r\n }\r\n },\r\n\r\n\r\n data() {\r\n return {\r\n viewVisible: false,\r\n config: null,\r\n eventBus: null,\r\n sp: 1,\r\n ofdViewer: null\r\n }\r\n },\r\n\r\n mounted() {\r\n if (!this.config) {\r\n this.config = this.getViewerConfiguration()\r\n //vue下viewerContainer必须设置height\r\n // this.containerHeight = `${window.innerHeight - 100}px`\r\n let img = new Image();\r\n img.style.position = 'absolute';\r\n img.style.left = 0;\r\n img.style.right = 0;\r\n img.style.margin = 'auto';\r\n img.style.top = 0;\r\n img.style.bottom = 0;\r\n img.src = 'data:image/gif;base64,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';\r\n img.draggable = false;\r\n this.config.loadingContainer = img\r\n\r\n this.config.onPageChanging = pageNumber => {\r\n this.sp = pageNumber\r\n }\r\n this.config.parserOFDSuccess = core => {\r\n // console.log(core)\r\n }\r\n this.config.onPageScale = scale => {\r\n // this.viewVisible = false\r\n this.eventBus.dispatch('stampResize', {source: null});\r\n }\r\n this.config.onViewportChange = view => {\r\n if (!this.ofdViewer) {\r\n this.viewVisible = true\r\n this.$emit('viewready', view)\r\n }\r\n this.ofdViewer = view\r\n // this.eventBus.dispatch('stampResize', {source: null});\r\n }\r\n this.config.secret = this.secret\r\n this.config.digest = this.digest\r\n this.config.sidebarForceOpen = this.sidebarForceOpen\r\n this.config.signatureViewerForceCheck = this.signatureViewerForceCheck\r\n\r\n this.mem.initOFDViewer(this.config)\r\n this.eventBus = this.mem.getEventBus()\r\n }\r\n if (this.file) {\r\n this.mem.openOFD(this.file)\r\n }\r\n\r\n },\r\n\r\n methods: {\r\n getViewerConfiguration() {\r\n let openFileTip\r\n if (this.$slots && this.$slots.openFileRef && this.$slots.openFileRef[0].elm) {\r\n openFileTip = this.$slots.openFileRef[0].elm\r\n }\r\n let errorWrapper = null\r\n errorWrapper = {\r\n container: document.getElementById('errorWrapper'),\r\n errorMessage: document.getElementById('errorMessage'),\r\n closeButton: document.getElementById('errorClose'),\r\n errorMoreInfo: document.getElementById('errorMoreInfo'),\r\n moreInfoButton: document.getElementById('errorShowMore'),\r\n lessInfoButton: document.getElementById('errorShowLess'),\r\n }\r\n\r\n return {\r\n appContainer: document.body,\r\n mainContainer: document.getElementById('viewerContainer'),\r\n viewerContainer: document.getElementById('viewer'),\r\n openFileTip: openFileTip,\r\n toolbar: {\r\n container: document.getElementById('toolbarViewer'),\r\n numPages: document.getElementById('numPages'),\r\n pageNumber: document.getElementById('pageNumber'),\r\n scaleSelect: document.getElementById('scaleSelect'),\r\n customScaleOption: document.getElementById('customScaleOption'),\r\n previous: document.getElementById('previous'),\r\n next: document.getElementById('next'),\r\n zoomIn: document.getElementById('zoomIn'),\r\n zoomOut: document.getElementById('zoomOut'),\r\n openFile: document.getElementById('openFile'),\r\n print: document.getElementById('print'),\r\n },\r\n secondaryToolbar: {\r\n toolbar: document.getElementById('secondaryToolbar'),\r\n toggleButton: document.getElementById('secondaryToolbarToggle'),\r\n toolbarButtonContainer: document.getElementById(\r\n 'secondaryToolbarButtonContainer'\r\n ),\r\n openFileButton: document.getElementById('secondaryOpenFile'),\r\n printButton: document.getElementById('secondaryPrint'),\r\n downloadButton: document.getElementById(\"secondaryDownload\"),\r\n viewBookmarkButton: document.getElementById(\"secondaryViewBookmark\"),\r\n firstPageButton: document.getElementById(\"firstPage\"),\r\n lastPageButton: document.getElementById(\"lastPage\"),\r\n pageRotateCwButton: document.getElementById(\"pageRotateCw\"),\r\n pageRotateCcwButton: document.getElementById(\"pageRotateCcw\"),\r\n cursorSelectToolButton: document.getElementById(\"cursorSelectTool\"),\r\n cursorHandToolButton: document.getElementById(\"cursorHandTool\"),\r\n scrollPageButton: document.getElementById(\"scrollPage\"),\r\n scrollVerticalButton: document.getElementById(\"scrollVertical\"),\r\n scrollHorizontalButton: document.getElementById(\"scrollHorizontal\"),\r\n scrollWrappedButton: document.getElementById(\"scrollWrapped\"),\r\n spreadNoneButton: document.getElementById(\"spreadNone\"),\r\n spreadOddButton: document.getElementById(\"spreadOdd\"),\r\n spreadEvenButton: document.getElementById(\"spreadEven\"),\r\n documentPropertiesButton: document.getElementById('documentProperties'),\r\n },\r\n sidebar: {\r\n // Divs (and sidebar button)\r\n outerContainer: document.getElementById('outerContainer'),\r\n viewerContainer: document.getElementById('viewerContainer'),\r\n toggleButton: document.getElementById(\"sidebarToggle\"),\r\n // Buttons\r\n // thumbnailButton: document.getElementById(\"viewThumbnail\"),\r\n // outlineButton: document.getElementById(\"viewOutline\"),\r\n attachmentsButton: document.getElementById(\"viewAttachments\"),\r\n // layersButton: document.getElementById(\"viewLayers\"),\r\n signaturesButton: document.getElementById(\"viewSignatures\"),\r\n // Views\r\n // thumbnailView: document.getElementById(\"thumbnailView\"),\r\n // outlineView: document.getElementById(\"outlineView\"),\r\n attachmentsView: document.getElementById(\"attachmentsView\"),\r\n // layersView: document.getElementById(\"layersView\"),\r\n signaturesView: document.getElementById(\"signaturesView\"),\r\n // View-specific options\r\n // outlineOptionsContainer: document.getElementById(\r\n // \"outlineOptionsContainer\"\r\n // ),\r\n currentOutlineItemButton: document.getElementById(\"currentOutlineItem\"),\r\n },\r\n sidebarResizer: {\r\n outerContainer: document.getElementById('outerContainer'),\r\n },\r\n documentProperties: {\r\n dialog: document.getElementById('documentPropertiesDialog'),\r\n closeButton: document.getElementById('documentPropertiesClose'),\r\n fields: {\r\n fileName: document.getElementById('fileNameField'),\r\n fileSize: document.getElementById('fileSizeField'),\r\n title: document.getElementById('titleField'),\r\n author: document.getElementById('authorField'),\r\n subject: document.getElementById('subjectField'),\r\n keywords: document.getElementById('keywordsField'),\r\n creationDate: document.getElementById('creationDateField'),\r\n modificationDate: document.getElementById('modificationDateField'),\r\n creator: document.getElementById('creatorField'),\r\n producer: document.getElementById('producerField'),\r\n version: document.getElementById('versionField'),\r\n pageCount: document.getElementById('pageCountField'),\r\n pageSize: document.getElementById('pageSizeField'),\r\n linearized: document.getElementById('linearizedField'),\r\n },\r\n },\r\n signatureProperties: {\r\n dialog: document.getElementById('signaturePropertiesDialog'),\r\n closeButton: document.getElementById('signaturePropertiesClose'),\r\n fields: {\r\n signer: document.getElementById('signerField'),\r\n provider: document.getElementById('providerField'),\r\n hashedValue: document.getElementById('hashedValueField'),\r\n signedValue: document.getElementById('signedValueField'),\r\n signMethod: document.getElementById('signMethodField'),\r\n signVersion: document.getElementById('signVersionField'),\r\n verify: document.getElementById('verifyField'),\r\n\r\n sealID: document.getElementById('sealIDField'),\r\n sealName: document.getElementById('sealNameField'),\r\n sealType: document.getElementById('sealTypeField'),\r\n sealAuthTime: document.getElementById('sealAuthTimeField'),\r\n sealMakeTime: document.getElementById('sealMakeTimeField'),\r\n sealVersion: document.getElementById('sealVersionField'),\r\n },\r\n },\r\n errorWrapper,\r\n printContainer: document.getElementById('printContainer'),\r\n openFileInputName: 'fileInput',\r\n }\r\n },\r\n\r\n onStampDragOver(e) {\r\n e.dataTransfer.dropEffect = 'move';\r\n },\r\n removeStamp(index) {\r\n this.$emit('removePos', index);\r\n },\r\n // eslint-disable-next-line no-unused-vars\r\n onStampDragStop(ctx) {\r\n\r\n },\r\n placed(pageNum, index, params, stampId) {\r\n this.$emit('itemDropped', index, pageNum, params, stampId);\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.stamp {\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","export * from \"-!../../../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!./index.vue?vue&type=style&index=0&id=7dfc8129&prod&scoped=true&lang=css&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=7dfc8129&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=7dfc8129&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7dfc8129\",\n null\n \n)\n\nexport default component.exports","import OfdView from './src';\r\n\r\nOfdView.install = Vue => Vue.component(OfdView.name, OfdView);//注册组件\r\n\r\nexport default OfdView\r\n","import OfdView from './ofdView'\r\n// import PdvView from './pdfView'\r\n\r\nconst components = [\r\n OfdView,\r\n // PdvView\r\n]\r\n\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n\r\n// 判断是否安装\r\n if (install.installed) return\r\n // 遍历注册全局组件\r\n components.map(component => Vue.component(component.name, component))\r\n}\r\n\r\n// 判断是否是直接引入文件\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n}\r\n\r\nexport default {\r\n // 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\n install,\r\n // 以下是具体的组件列表\r\n OfdView,\r\n // PdvView\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}