Files
Express_console_build/build/static/js/3992.7901ae42.chunk.js

1 line
11 KiB
JavaScript

(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3992],{795:(e,t,n)=>{"use strict";t.CSVLink=void 0;var r=a(n(91078)),o=a(n(49462));function a(e){return e&&e.__esModule?e:{default:e}}r.default,t.CSVLink=o.default},8010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropsNotForwarded=t.defaultProps=t.propTypes=void 0;var r,o=n(9950),a=((r=o)&&r.__esModule,n(11942));t.propTypes={data:(0,a.oneOfType)([a.string,a.array,a.func]).isRequired,headers:a.array,target:a.string,separator:a.string,filename:a.string,uFEFF:a.bool,onClick:a.func,asyncOnClick:a.bool,enclosingCharacter:a.string},t.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},t.PropsNotForwarded=["data","headers"]},33516:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(464),o=n(69995),a=n(2527),i=n(9950);const c=(0,r.wk)((function(e,t){const n=new a.Tooltip(e,t.overlayContainer);return(0,o.Q)(n,t)}),(function(e,t,n,r){let{position:o}=n;(0,i.useEffect)((function(){const n=t.overlayContainer;if(null==n)return;const{instance:a}=e,i=e=>{e.tooltip===a&&(null!=o&&a.setLatLng(o),a.update(),r(!0))},c=e=>{e.tooltip===a&&r(!1)};return n.on({tooltipopen:i,tooltipclose:c}),n.bindTooltip(a),function(){n.off({tooltipopen:i,tooltipclose:c}),null!=n._map&&n.unbindTooltip()}}),[e,t,r,o])}))},46411:(e,t,n)=>{e.exports=n(795)},49462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9950),c=(r=i)&&r.__esModule?r:{default:r},u=n(87924),s=n(8010);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.buildURI=n.buildURI.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"buildURI",value:function(){return u.buildURI.apply(void 0,arguments)}},{key:"handleLegacy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var n=this.props,r=n.data,o=n.headers,a=n.separator,i=n.filename,c=n.enclosingCharacter,s=n.uFEFF,l=t&&"function"===typeof r?r():r,f=new Blob([s?"\ufeff":"",(0,u.toCSV)(l,o,a,c)]);return window.navigator.msSaveBlob(f,i),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,(function(n){!1!==n?t.handleLegacy(e,!0):e.preventDefault()}))}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"===typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.headers,a=t.separator,i=t.filename,u=t.uFEFF,s=t.children,l=(t.onClick,t.asyncOnClick,t.enclosingCharacter),f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),p="undefined"===typeof window?"":this.buildURI(n,u,r,a,l);return c.default.createElement("a",o({download:i},f,{ref:function(t){return e.link=t},target:"_self",href:p,onClick:this.handleClick()}),s)}}]),t}(c.default.Component);l.defaultProps=s.defaultProps,l.propTypes=s.propTypes,t.default=l},60010:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var r=n(89379),o=n(69347),a=n(45247),i=class extends o.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,a.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,a.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var n,o;const{state:i}=e,c=super.createResult(e,t),{isFetching:u,isRefetching:s}=c,l=u&&"forward"===(null===(n=i.fetchMeta)||void 0===n||null===(n=n.fetchMore)||void 0===n?void 0:n.direction),f=u&&"backward"===(null===(o=i.fetchMeta)||void 0===o||null===(o=o.fetchMore)||void 0===o?void 0:o.direction);return(0,r.A)((0,r.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,i.data),hasPreviousPage:(0,a.RQ)(t,i.data),isFetchingNextPage:l,isFetchingPreviousPage:f,isRefetching:s&&!l&&!f})}},c=n(1729);function u(e,t){return(0,c.t)(e,i,t)}},79739:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),c=n(3484),u=n(59254),s=n(18463),l=n(45558),f=n(1614);function p(e){return(0,f.Ay)("MuiDialogActions",e)}(0,l.A)("MuiDialogActions",["root","spacing"]);var d=n(44414);const y=["className","disableSpacing"],h=(0,u.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const n=(0,s.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:u=!1}=n,l=(0,r.A)(n,y),f=(0,o.A)({},n,{disableSpacing:u}),v=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,c.A)(r,p,t)})(f);return(0,d.jsx)(h,(0,o.A)({className:(0,i.A)(v.root,a),ownerState:f,ref:t},l))}))},87924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=t.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},a=t.isJsons=function(e){return Array.isArray(e)&&e.every((function(e){return"object"===("undefined"===typeof e?"undefined":n(e))&&!(e instanceof Array)}))},i=t.isArrays=function(e){return Array.isArray(e)&&e.every((function(e){return Array.isArray(e)}))},c=t.jsonsHeaders=function(e){return Array.from(e.map((function(e){return Object.keys(e)})).reduce((function(e,t){return new Set([].concat(r(e),r(t)))}),[]))},u=t.jsons2arrays=function(e,t){var n=t=t||c(e),o=t;a(t)&&(n=t.map((function(e){return e.label})),o=t.map((function(e){return e.key})));var i=e.map((function(e){return o.map((function(t){return s(t,e)}))}));return[n].concat(r(i))},s=t.getHeaderValue=function(e,t){var n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce((function(e,t,n,r){var o=e[t];if(void 0!==o&&null!==o)return o;r.splice(1)}),t);return void 0===n?e in t?t[e]:"":n},l=t.elementOrEmpty=function(e){return"undefined"===typeof e||null===e?"":e},f=t.joiner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter((function(e){return e})).map((function(e){return e.map((function(e){return l(e)})).map((function(e){return""+n+e+n})).join(t)})).join("\n")},p=t.arrays2csv=function(e,t,n,o){return f(t?[t].concat(r(e)):e,n,o)},d=t.jsons2csv=function(e,t,n,r){return f(u(e,t),n,r)},y=t.string2csv=function(e,t,n,r){return t?t.join(n)+"\n"+e:e.replace(/"/g,'""')},h=t.toCSV=function(e,t,n,r){if(a(e))return d(e,t,n,r);if(i(e))return p(e,t,n,r);if("string"===typeof e)return y(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};t.buildURI=function(e,t,n,r,a){var i=h(e,n,r,a),c=o()?"application/csv":"text/csv",u=new Blob([t?"\ufeff":"",i],{type:c}),s="data:"+c+";charset=utf-8,"+(t?"\ufeff":"")+i,l=window.URL||window.webkitURL;return"undefined"===typeof l.createObjectURL?s:l.createObjectURL(u)}},91078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9950),i=(r=a)&&r.__esModule?r:{default:r},c=n(87924),u=n(8010);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildURI",value:function(){return c.buildURI.apply(void 0,arguments)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.headers,r=e.separator,o=e.enclosingCharacter,a=e.uFEFF,i=e.target,c=e.specs,u=e.replace;this.state.page=window.open(this.buildURI(t,a,n,r,o),i,c,u)}},{key:"getWindow",value:function(){return this.state.page}},{key:"render",value:function(){return null}}]),t}(i.default.Component);s.defaultProps=Object.assign(u.defaultProps,{target:"_blank"}),s.propTypes=u.propTypes,t.default=s},98114:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var i=n(61187),c=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const u=o.forwardRef(c)}}]);