index4single.js
11.6 KB
!function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("ecCom"),require("React"),require("mobxReact"),require("mobx"),require("ReactRouter"),require("ReactDOM"),require("History"),require("weaWorkrelate")):"function"===typeof define&&define.amd?define(["ecCom","React","mobxReact","mobx","ReactRouter","ReactDOM","History","weaWorkrelate"],e):"object"===typeof exports?exports.weaWorkrelate=e(require("ecCom"),require("React"),require("mobxReact"),require("mobx"),require("ReactRouter"),require("ReactDOM"),require("History"),require("weaWorkrelate")):t.weaWorkrelate=e(t.ecCom,t.React,t.mobxReact,t.mobx,t.ReactRouter,t.ReactDOM,t.History,t.weaWorkrelate)}(this,function(t,e,r,n,o,i,u,c){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/spa/workrelate/static/",e(e.s=329)}({0:function(e,r){e.exports=t},10:function(t,e){t.exports=n},12:function(t,e,r){"use strict";e.__esModule=!0;var n=r(63),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},13:function(t,e){var r=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=r)},15:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},18:function(t,e,r){var n=r(15),o=r(13),i=r(32),u=r(29),c=r(26),a=function(t,e,r){var f,s,l,p=t&a.F,y=t&a.G,d=t&a.S,v=t&a.P,b=t&a.B,h=t&a.W,x=y?o:o[e]||(o[e]={}),m=x.prototype,g=y?n:d?n[e]:(n[e]||{}).prototype;y&&(r=e);for(f in r)(s=!p&&g&&void 0!==g[f])&&c(x,f)||(l=s?g[f]:r[f],x[f]=y&&"function"!=typeof g[f]?r[f]:b&&s?i(l,n):h&&g[f]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((x.virtual||(x.virtual={}))[f]=l,t&a.R&&m&&!m[f]&&u(m,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},20:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},21:function(t,e,r){t.exports=!r(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},23:function(t,e,r){var n=r(24),o=r(57),i=r(47),u=Object.defineProperty;e.f=r(21)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},24:function(t,e,r){var n=r(20);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},25:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},26:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},27:function(t,e,r){var n=r(48),o=r(41);t.exports=function(t){return n(o(t))}},29:function(t,e,r){var n=r(23),o=r(34);t.exports=r(21)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},3:function(t,r){t.exports=e},30:function(t,e){t.exports=o},32:function(t,e,r){var n=r(40);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},329:function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=r(12),i=n(o),u=r(3),c=n(u),a=r(330),f=n(a),s=r(331),l=r(30),p=r(332),y=r(8),d=r(0),v=r(333),b=n(v),h=new p.RouterStore,x=(0,i.default)({routing:h},b.default.store),m=b.default.Route,g=(0,l.useRouterHistory)(s.createHashHistory)({queryKey:"_key",basename:"/"}),O=(0,p.syncHistoryWithStore)(g,x.routing),_=d.WeaLocaleProvider.getLocaleLabel.bind(void 0,"workrelate"),w=function(t){return t.children},j=function(){return c.default.createElement(y.Provider,x,c.default.createElement(l.Router,{history:O},c.default.createElement(l.Route,{name:"main",breadcrumbName:"入口",path:"/main",component:w,onEnter:_},m)))};f.default.render(c.default.createElement(j,null),document.getElementById("container"))},330:function(t,e){t.exports=i},331:function(t,e){t.exports=u},332:function(t,e,r){!function(e,n){t.exports=n(r(10))}(0,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,r){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(3);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,r){"use strict";function n(t,e,r,n){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r,n,o){var i={};return Object.keys(n).forEach(function(t){i[t]=n[t]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(t,e,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.RouterStore=void 0;var u,c,a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(0);e.RouterStore=(u=function(){function t(){o(this,t),n(this,"location",c,this),this.history=null,this.push=this.push.bind(this),this.replace=this.replace.bind(this),this.go=this.go.bind(this),this.goBack=this.goBack.bind(this),this.goForward=this.goForward.bind(this)}return a(t,[{key:"_updateLocation",value:function(t){this.location=t}},{key:"push",value:function(t){this.history.push(t)}},{key:"replace",value:function(t){this.history.replace(t)}},{key:"go",value:function(t){this.history.go(t)}},{key:"goBack",value:function(){this.history.goBack()}},{key:"goForward",value:function(){this.history.goForward()}}]),t}(),c=i(u.prototype,"location",[f.observable],{enumerable:!0,initializer:function(){return null}}),i(u.prototype,"_updateLocation",[f.action],Object.getOwnPropertyDescriptor(u.prototype,"_updateLocation"),u.prototype),u)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.syncHistoryWithStore=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(0);e.syncHistoryWithStore=function(t,e){e.history=t;var r=function(t){e._updateLocation(t)},i=t.listen(r);return r(t.getCurrentLocation()),n({},t,{listen:function(t){var r=function(r){t(e.location)},n=(0,o.observe)(e,"location",r);return t(e.location),function(){n()}},unsubscribe:function(){i()}})}},function(t,e,r){t.exports=r(1)}])})},333:function(t,e){t.exports=c},34:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},35:function(t,e,r){var n=r(58),o=r(52);t.exports=Object.keys||function(t){return n(t,o)}},36:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},37:function(t,e){t.exports=!0},38:function(t,e,r){var n=r(41);t.exports=function(t){return Object(n(t))}},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},42:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},43:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},44:function(t,e){e.f={}.propertyIsEnumerable},46:function(t,e,r){var n=r(20),o=r(15).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},47:function(t,e,r){var n=r(20);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},48:function(t,e,r){var n=r(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},49:function(t,e,r){var n=r(42),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},50:function(t,e,r){var n=r(51)("keys"),o=r(43);t.exports=function(t){return n[t]||(n[t]=o(t))}},51:function(t,e,r){var n=r(13),o=r(15),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(37)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},52:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},53:function(t,e){e.f=Object.getOwnPropertySymbols},57:function(t,e,r){t.exports=!r(21)&&!r(25)(function(){return 7!=Object.defineProperty(r(46)("div"),"a",{get:function(){return 7}}).a})},58:function(t,e,r){var n=r(26),o=r(27),i=r(67)(!1),u=r(50)("IE_PROTO");t.exports=function(t,e){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&n(c,r)&&f.push(r);for(;e.length>a;)n(c,r=e[a++])&&(~i(f,r)||f.push(r));return f}},63:function(t,e,r){t.exports={default:r(64),__esModule:!0}},64:function(t,e,r){r(65),t.exports=r(13).Object.assign},65:function(t,e,r){var n=r(18);n(n.S+n.F,"Object",{assign:r(66)})},66:function(t,e,r){"use strict";var n=r(35),o=r(53),i=r(44),u=r(38),c=r(48),a=Object.assign;t.exports=!a||r(25)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=a({},t)[r]||Object.keys(a({},e)).join("")!=n})?function(t,e){for(var r=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,y=c(arguments[f++]),d=s?n(y).concat(s(y)):n(y),v=d.length,b=0;v>b;)l.call(y,p=d[b++])&&(r[p]=y[p]);return r}:a},67:function(t,e,r){var n=r(27),o=r(49),i=r(68);t.exports=function(t){return function(e,r,u){var c,a=n(e),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},68:function(t,e,r){var n=r(42),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},8:function(t,e){t.exports=r}})});
//# sourceMappingURL=index4single.js.map?v=c2a2beae