UNPKG

@orca-fe/pdf-viewer

Version:
287 lines 18.2 kB
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); } function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable max-len */ import React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export var IconLine = props => /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: /*#__PURE__*/_jsx("path", { d: "M883.498667 200.832l-682.666667 682.666667-60.330667-60.330667 682.666667-682.666667 60.330667 60.330667z" }) })); export var IconAddShape = props => /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 24 25", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: [/*#__PURE__*/_jsx("title", { children: "icon/label" }), /*#__PURE__*/_jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { transform: "translate(-947.000000, -94.000000)", fillRule: "nonzero", children: /*#__PURE__*/_jsx("g", { transform: "translate(779.000000, 85.500000)", children: /*#__PURE__*/_jsx("g", { transform: "translate(152.000000, 3.500000)", children: /*#__PURE__*/_jsxs("g", { transform: "translate(16.000000, 5.500000)", children: [/*#__PURE__*/_jsx("rect", { fillOpacity: "0", fill: "#FFFFFF", x: "0", y: "0", width: "24", height: "24" }), /*#__PURE__*/_jsx("g", { transform: "translate(5.000000, 2.500000)", fill: "#000000", opacity: "0", children: /*#__PURE__*/_jsx("rect", { x: "0", y: "0", width: "15.9682131", height: "15.9682131" }) }), /*#__PURE__*/_jsx("g", { transform: "translate(3.000000, 3.500000)", fill: "#000000", opacity: "0", children: /*#__PURE__*/_jsx("rect", { x: "0", y: "0", width: "18", height: "18" }) }), /*#__PURE__*/_jsxs("g", { transform: "translate(3.042187, 3.528125)", children: [/*#__PURE__*/_jsx("path", { d: "M16.9280118,9.96177824 C16.9280118,10.3565211 16.6076408,10.6768921 16.212898,10.6768921 L12.6373289,10.6768921 L12.6373289,14.2524611 C12.6373289,14.647204 12.3527136,14.967575 11.9579708,14.967575 C11.5617977,14.967575 11.2071013,14.647204 11.2071013,14.2524611 L11.2071013,10.6768921 L7.70304358,10.6768921 C7.32975417,10.6768921 7.03226682,10.3879861 7.00080181,10.023278 C7.03226682,9.3539315 7.32975417,9.24666443 7.70304358,9.24666443 L11.2071013,9.24666443 L11.2071013,5.67109534 C11.2071013,5.27635252 11.5617977,4.95598153 11.9579708,4.95598153 C12.3527136,4.95598153 12.6373289,5.27635252 12.6373289,5.67109534 L12.6373289,9.24666443 L16.212898,9.24666443 C16.6076408,9.24666443 16.9280118,9.56703542 16.9280118,9.96177824 Z", fill: "#FFB826" }), /*#__PURE__*/_jsx("path", { d: "M2.13080357,11.8247891 L2.13080357,3.11425137 C2.58740434,2.95034341 2.95034341,2.59911205 3.10254366,2.14251128 L11.8013736,2.14251128 C12.0238202,2.76302002 12.6092057,3.21962078 13.3116685,3.21962078 C14.1897469,3.21962078 14.915625,2.50545035 14.915625,1.61566425 C14.915625,0.72587814 14.2014546,0.0117077119 13.3116685,0.0117077119 C12.6209135,0.0117077119 12.0238202,0.456600765 11.8013736,1.06540179 L3.10254366,1.06540179 C2.89180485,0.444893053 2.29471154,0 1.59224882,0 C0.714170428,0 0,0.72587814 0,1.60395653 C0,2.29471154 0.444893053,2.89180485 1.06540179,3.11425137 L1.06540179,11.8247891 C0.444893053,12.0472356 0,12.6326212 0,13.3350839 C0,14.2131623 0.714170428,14.9390404 1.60395653,14.9390404 C2.30641925,14.9390404 2.89180485,14.4941474 3.11425137,13.8736386 L7.4578125,13.8736386 L7.4578125,12.8082369 L3.11425137,12.8082369 C2.95034341,12.3516361 2.58740434,11.988697 2.13080357,11.8247891 Z", fill: "#555555" })] })] }) }) }) }) })] })); export var IconAddTooltip = props => /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 24 25", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: /*#__PURE__*/_jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { transform: "translate(-1065.000000, -94.000000)", fillRule: "nonzero", children: /*#__PURE__*/_jsx("g", { transform: "translate(779.000000, 85.500000)", children: /*#__PURE__*/_jsx("g", { transform: "translate(270.000000, 3.500000)", children: /*#__PURE__*/_jsxs("g", { transform: "translate(16.000000, 5.500000)", children: [/*#__PURE__*/_jsx("rect", { fillOpacity: "0", fill: "#FFFFFF", x: "0", y: "0", width: "24", height: "24" }), /*#__PURE__*/_jsxs("g", { transform: "translate(3.002953, 2.999631)", children: [/*#__PURE__*/_jsx("rect", { fill: "#000000", opacity: "0", x: "0", y: "0", width: "18.000738", height: "18.000738" }), /*#__PURE__*/_jsx("path", { d: "M5.37772749,3.93438389 C5.29470862,3.93438389 5.22678409,4.00230842 5.22678409,4.08532729 L5.22678409,4.99098767 C5.22678409,5.07400654 5.29470862,5.14193106 5.37772749,5.14193106 L12.6230105,5.14193106 C12.7060294,5.14193106 12.7739539,5.07400654 12.7739539,4.99098767 L12.7739539,4.08532729 C12.7739539,4.00230842 12.7060294,3.93438389 12.6230105,3.93438389 L5.37772749,3.93438389 Z M8.8494256,6.65136503 L5.37772749,6.65136503 C5.29470862,6.65136503 5.22678409,6.71928955 5.22678409,6.80230842 L5.22678409,7.7079688 C5.22678409,7.79098767 5.29470862,7.8589122 5.37772749,7.8589122 L8.8494256,7.8589122 C8.93244447,7.8589122 9.000369,7.79098767 9.000369,7.7079688 L9.000369,6.80230842 C9.000369,6.71928955 8.93244447,6.65136503 8.8494256,6.65136503 Z M7.94376523,15.2928745 L3.71735013,15.2928745 L3.71735013,2.00985559 L14.2833879,2.00985559 L14.2833879,8.04759144 C14.2833879,8.13061031 14.3513124,8.19853484 14.4343313,8.19853484 L15.490935,8.19853484 C15.5739539,8.19853484 15.6418784,8.13061031 15.6418784,8.04759144 L15.6418784,1.25513861 C15.6418784,0.921176347 15.3720671,0.651365026 15.0381048,0.651365026 L2.96263315,0.651365026 C2.62867089,0.651365026 2.35885957,0.921176347 2.35885957,1.25513861 L2.35885957,16.0475914 C2.35885957,16.3815537 2.62867089,16.651365 2.96263315,16.651365 L7.94376523,16.651365 C8.02678409,16.651365 8.09470862,16.5834405 8.09470862,16.5004216 L8.09470862,15.4438179 C8.09470862,15.360799 8.02678409,15.2928745 7.94376523,15.2928745 Z", fill: "#555555" })] }), /*#__PURE__*/_jsxs("g", { transform: "translate(16.008807, 15.691665) scale(1, -1) translate(-16.008807, -15.691665) translate(11.534396, 11.987195)", children: [/*#__PURE__*/_jsx("polygon", { fill: "#FA4E4E", points: "0.931129079 3.85706721 1.70025152 6.1668892 4.01089171 5.39776674 4.32181355 6.32889584 1.08004428 7.40894012 0 4.16717085 0.931129079 3.856249" }), /*#__PURE__*/_jsx("polyline", { stroke: "#FA4E4E", points: "1.70025152 6.1668892 4.56637523 1.10123749 7.67706063 1.10123749" })] })] }) }) }) }) }) })); export var IconDelete = props => /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 20 20", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: /*#__PURE__*/_jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { fillRule: "nonzero", children: /*#__PURE__*/_jsxs("g", { transform: "translate(40.000000, 4.000000)", children: [/*#__PURE__*/_jsx("rect", { fill: "#000000", opacity: "0", x: "0", y: "0", width: "20", height: "20" }), /*#__PURE__*/_jsx("path", { d: "M3.95833334,5 L3.125,5 C2.77982203,5 2.5,4.72017797 2.5,4.375 C2.5,4.02982203 2.77982203,3.75 3.125,3.75 L16.875,3.75 C17.220178,3.75 17.5,4.02982203 17.5,4.375 C17.5,4.72017797 17.220178,5 16.875,5 L5.20833334,5 L5.20833334,16.0416667 C5.20833333,16.3179338 5.31808004,16.5828858 5.51343043,16.7782362 C5.70878083,16.9735866 5.97373282,17.0833333 6.25,17.0833333 L13.75,17.0833333 C14.0262672,17.0833333 14.2912192,16.9735866 14.4865696,16.7782362 C14.68192,16.5828858 14.7916667,16.3179338 14.7916667,16.0416667 L14.7916667,6.875 C14.7916667,6.52982203 15.0714887,6.25 15.4166667,6.25 C15.7618446,6.25 16.0416667,6.52982203 16.0416667,6.875 L16.0416667,16.0416667 C16.0416667,17.3072917 15.015625,18.3333333 13.75,18.3333333 L6.25,18.3333333 C4.984375,18.3333333 3.95833334,17.3072917 3.95833334,16.0416667 L3.95833334,5 Z M8.33333334,2.91666666 C7.98815537,2.91666666 7.70833334,2.63684463 7.70833334,2.29166666 C7.70833334,1.94648869 7.98815537,1.66666666 8.33333334,1.66666666 L11.6666667,1.66666666 C12.0118446,1.66666666 12.2916667,1.94648869 12.2916667,2.29166666 C12.2916667,2.63684463 12.0118446,2.91666666 11.6666667,2.91666666 L8.33333334,2.91666666 L8.33333334,2.91666666 Z M7.70833334,8.54166666 C7.70833334,8.19648869 7.98815537,7.91666666 8.33333334,7.91666666 C8.67851131,7.91666666 8.95833334,8.19648869 8.95833334,8.54166666 L8.95833334,13.5416667 C8.95833334,13.8868446 8.67851131,14.1666667 8.33333334,14.1666667 C7.98815537,14.1666667 7.70833334,13.8868446 7.70833334,13.5416667 L7.70833334,8.54166666 Z M11.0416667,8.54166666 C11.0416667,8.19648869 11.3214887,7.91666666 11.6666667,7.91666666 C12.0118446,7.91666666 12.2916667,8.19648869 12.2916667,8.54166666 L12.2916667,13.5416667 C12.2916667,13.8868446 12.0118446,14.1666667 11.6666667,14.1666667 C11.3214887,14.1666667 11.0416667,13.8868446 11.0416667,13.5416667 L11.0416667,8.54166666 Z", fill: "#484D55" })] }) }) }) })); export var IconFreedom = props => /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 16 17", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: /*#__PURE__*/_jsx("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { transform: "translate(-1086.000000, -144.000000)", children: /*#__PURE__*/_jsx("g", { transform: "translate(878.000000, 137.000000)", children: /*#__PURE__*/_jsxs("g", { transform: "translate(208.000000, 7.774061)", children: [/*#__PURE__*/_jsx("rect", { fill: "#000000", fillRule: "nonzero", opacity: "0", x: "0", y: "0", width: "15.9929718", height: "15.9929718" }), /*#__PURE__*/_jsx("rect", { fillOpacity: "0", fill: "#D8D8D8", x: "0", y: "0", width: "16", height: "16" }), /*#__PURE__*/_jsx("path", { d: "M14.4830773,5.39071404 C14.6158743,5.2351106 14.8396441,5.17626859 15.0449789,5.25642039 L15.1179464,5.29255128 C15.2895569,5.3932302 15.3810367,5.60598346 15.3420019,5.81217695 L15.3208036,5.89032426 C15.3032233,5.92402131 15.282648,5.97355508 15.2636602,6.02667724 C15.2621016,6.03115238 15.2501976,6.05901969 15.2084007,6.15622405 L15.1871216,6.20595147 C15.1769091,6.22992905 15.1721486,6.24147996 15.1578669,6.27613271 C15.0361204,6.54377057 14.8940955,6.82894323 14.7443924,7.10470386 C14.2563771,8.01256958 13.7289175,8.76875436 13.1690861,9.34517779 C12.3305427,10.1969393 11.4765083,10.6039001 10.5914481,10.5461749 C9.5301915,10.4763546 8.5239147,9.72060094 7.5861331,8.2681087 C6.82924277,7.08926753 6.07928591,6.48689447 5.33364755,6.43813609 C4.76697283,6.40038963 4.16108293,6.71049862 3.5375961,7.34044568 C3.05499439,7.84009427 2.60229736,8.49177967 2.1275894,9.35114109 C1.96702531,9.65478668 1.82859871,9.9423008 1.73179322,10.1719138 L1.70788645,10.2199663 C1.69224861,10.2525645 1.69224861,10.2525645 1.67569902,10.287692 L1.6493983,10.343776 L1.59857922,10.3825148 L1.5550141,10.4871215 L1.55412888,10.5585627 L1.56179789,10.5491975 C1.44874582,10.7452634 1.19007126,10.835167 0.955434331,10.7435772 L0.882453119,10.7074495 L0.813950134,10.6577816 C0.687320987,10.5460735 0.624713542,10.3642607 0.657821485,10.1866572 L0.679128879,10.1085627 C0.700466053,10.0657447 0.700466053,10.0657447 0.712906893,10.0359663 L0.736005968,9.97538219 L0.744736307,9.95410247 C0.752618079,9.93547597 0.76672069,9.90262989 0.792222213,9.84334099 C0.821206234,9.77571417 0.821206234,9.77571417 0.842546373,9.72393099 C0.96429282,9.45629313 1.10631778,9.17112047 1.25602087,8.89535984 C1.74403617,7.98749412 2.27149575,7.23130934 2.83132709,6.65488591 C3.66987058,5.80312443 4.52390489,5.39616361 5.40896514,5.4538888 C6.47022174,5.52370911 7.47649854,6.27946276 8.41428013,7.731955 C9.17117047,8.91079617 9.92112733,9.51316923 10.6667657,9.56192761 C11.2334404,9.59967407 11.8393303,9.28956508 12.4628171,8.65961802 C12.9454189,8.15996943 13.3981159,7.50828403 13.8728238,6.64892261 C14.0333879,6.34527702 14.1718145,6.0577629 14.26862,5.82814987 L14.2926408,5.7798711 C14.3082653,5.74730579 14.3082653,5.74730579 14.3247911,5.71222684 L14.3519168,5.65219131 L14.4009585,5.6175093 L14.4453367,5.51071532 L14.444061,5.44466998 Z", fill: "#2A323A", fillRule: "nonzero" })] }) }) }) }) })); export var IconRectangle = props => /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 16 16", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: /*#__PURE__*/_jsx("g", { fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { fillRule: "nonzero", children: /*#__PURE__*/_jsxs("g", { children: [/*#__PURE__*/_jsx("rect", { fillOpacity: "0", x: "0", y: "0", width: "16", height: "16" }), /*#__PURE__*/_jsx("path", { d: "M13.9583333,14.5 L2.04166667,14.5 C1.74251243,14.5 1.5,14.2574876 1.5,13.9583333 L1.5,2.04166667 C1.5,1.74251243 1.74251243,1.5 2.04166667,1.5 L13.9583333,1.5 C14.2574876,1.5 14.5,1.74251243 14.5,2.04166667 L14.5,13.9583333 C14.5,14.2574876 14.2574876,14.5 13.9583333,14.5 Z M2.58333333,13.4166667 L13.4166667,13.4166667 L13.4166667,2.58333333 L2.58333333,2.58333333 L2.58333333,13.4166667 Z", fill: "#2A323A" })] }) }) }) })); export var IconEllipse = props => /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({ width: "1em", height: "1em", viewBox: "0 0 16 16", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props), {}, { children: [/*#__PURE__*/_jsx("title", { children: "\u5F62\u72B6-\u692D\u5706\u5F62" }), /*#__PURE__*/_jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /*#__PURE__*/_jsx("g", { transform: "translate(-886.000000, -145.000000)", fillRule: "nonzero", children: /*#__PURE__*/_jsx("g", { transform: "translate(878.000000, 137.000000)", children: /*#__PURE__*/_jsxs("g", { transform: "translate(8.000000, 8.000000)", children: [/*#__PURE__*/_jsx("rect", { fill: "#000000", opacity: "0", x: "0", y: "0", width: "16", height: "16" }), /*#__PURE__*/_jsx("path", { d: "M8,14.5 C4.416,14.5 1.5,11.584 1.5,8 C1.5,4.416 4.416,1.5 8,1.5 C11.584,1.5 14.5,4.416 14.5,8 C14.5,11.584 11.584,14.5 8,14.5 Z M8,2.5 C4.9675,2.5 2.5,4.9675 2.5,8 C2.5,11.0325 4.9675,13.5 8,13.5 C11.0325,13.5 13.5,11.0325 13.5,8 C13.5,4.9675 11.0325,2.5 8,2.5 Z", fill: "#2A323A" })] }) }) }) })] }));