katoikia-app/web-ui/web-react/node_modules/primereact/timeline/timeline.min.js

2 lines
3.6 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
this.primereact=this.primereact||{},this.primereact.timeline=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function u(e){return u="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},u(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var d=function(e){c(v,e);var t,r,a,u,s,d=(t=v,r=m(),function(){var e,n=f(t);if(r){var o=f(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function v(){return i(this,v),d.apply(this,arguments)}return a=v,(u=[{key:"getKey",value:function(e,t){return this.props.dataKey?n.ObjectUtils.resolveFieldData(e,this.props.dataKey):"pr_id__".concat(t)}},{key:"renderEvents",value:function(){var e=this;return this.props.value&&this.props.value.map((function(t,r){var i=n.ObjectUtils.getJSXElement(e.props.opposite,t,r),l=n.ObjectUtils.getJSXElement(e.props.marker,t,r)||o.default.createElement("div",{className:"p-timeline-event-marker"}),a=r!==e.props.value.length-1&&o.default.createElement("div",{className:"p-timeline-event-connector"}),c=n.ObjectUtils.getJSXElement(e.props.content,t,r);return o.default.createElement("div",{key:e.getKey(t,r),className:"p-timeline-event"},o.default.createElement("div",{className:"p-timeline-event-opposite"},i),o.default.createElement("div",{className:"p-timeline-event-separator"},l,a),o.default.createElement("div",{className:"p-timeline-event-content"},c))}))}},{key:"render",value:function(){var e,t=n.classNames("p-timeline p-component",(y(e={},"p-timeline-".concat(this.props.align),!0),y(e,"p-timeline-".concat(this.props.layout),!0),e),this.props.className),r=this.renderEvents();return o.default.createElement("div",{id:this.props.id,className:t,style:this.props.style},r)}}])&&l(a.prototype,u),s&&l(a,s),Object.defineProperty(a,"prototype",{writable:!1}),v}(t.Component);return y(d,"defaultProps",{id:null,value:null,align:"left",layout:"vertical",dataKey:null,className:null,style:null,opposite:null,marker:null,content:null}),e.Timeline=d,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);