katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/96b307ffad44cb003f8f8fbf23b...

1 line
31 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames, IconUtils } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\nimport { Ripple } from 'primereact/ripple';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar ToggleButton = /*#__PURE__*/function (_Component) {\n _inherits(ToggleButton, _Component);\n\n var _super = _createSuper(ToggleButton);\n\n function ToggleButton(props) {\n var _this;\n\n _classCallCheck(this, ToggleButton);\n\n _this = _super.call(this, props);\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ToggleButton, [{\n key: \"toggle\",\n value: function toggle(e) {\n if (!this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: e,\n value: !this.props.checked,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: !this.props.checked\n }\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.key === 'Enter') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"hasLabel\",\n value: function hasLabel() {\n return this.props.onLabel && this.props.onLabel.length > 0 && this.props.offLabel && this.props.offLabel.length > 0;\n }\n }, {\n key: \"hasIcon\",\n value: function hasIcon() {\n return this.props.onIcon && this.props.onIcon.length > 0 && this.props.offIcon && this.props.offIcon.length > 0;\n }\n }, {\n key: \"getLabel\",\n value: function getLabel() {\n return this.hasLabel() ? this.props.checked ? this.props.onLabel : this.props.offLabel : '&nbsp;';\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-button p-togglebutton p-component', {\n 'p-button-icon-only': this.hasIcon() && !this.hasLabel(),\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled\n }, this.props.className),\n iconClassName = null;\n var hasIcon = this.hasIcon();\n var label = this.getLabel();\n var icon = this.props.checked ? this.props.onIcon : this.props.offIcon;\n\n if (hasIcon) {\n iconClassName = classNames('p-button-icon p-c', {\n 'p-button-icon-left': this.props.iconPos === 'left' && label,\n 'p-button-icon-right': this.props.iconPos === 'right' && label\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this2.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.toggle,\n onFocus: this.props.onFocus,\n onBlur: this.props.onBlur,\n onKeyDown: this.onKeyDown,\n tabIndex: !this.props.disabled && this.props.tabIndex,\n \"aria-labelledby\": this.props.ariaLabelledBy\n }, hasIcon && IconUtils.getJSXIcon(icon, {\n className: iconClassName\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-button-label\"\n }, label), /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return ToggleButton;\n}(Component);\n\n_defineProperty(ToggleButton, \"defaultProps\", {\n id: null,\n onIcon: null,\n offIcon: null,\n onLabel: 'Yes',\n offLabel: 'No',\n iconPos: 'left',\n style: null,\n className: null,\n checked: false,\n tabIndex: 0,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n onChange: null,\n onFocus: null,\n onBlur: null\n});\n\nexport { ToggleButton };","map":{"version":3,"names":["React","Component","classNames","IconUtils","tip","Ripple","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread","arguments","source","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","ToggleButton","_Component","_super","_this","toggle","bind","onKeyDown","disabled","onChange","originalEvent","checked","stopPropagation","preventDefault","name","id","event","hasLabel","onLabel","offLabel","hasIcon","onIcon","offIcon","getLabel","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","content","componentWillUnmount","destroy","container","options","render","_this2","className","iconClassName","label","icon","iconPos","createElement","ref","el","style","onClick","onFocus","onBlur","tabIndex","ariaLabelledBy","getJSXIcon"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/togglebutton/togglebutton.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames, IconUtils } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\nimport { Ripple } from 'primereact/ripple';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar ToggleButton = /*#__PURE__*/function (_Component) {\n _inherits(ToggleButton, _Component);\n\n var _super = _createSuper(ToggleButton);\n\n function ToggleButton(props) {\n var _this;\n\n _classCallCheck(this, ToggleButton);\n\n _this = _super.call(this, props);\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ToggleButton, [{\n key: \"toggle\",\n value: function toggle(e) {\n if (!this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: e,\n value: !this.props.checked,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: !this.props.checked\n }\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.key === 'Enter') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"hasLabel\",\n value: function hasLabel() {\n return this.props.onLabel && this.props.onLabel.length > 0 && this.props.offLabel && this.props.offLabel.length > 0;\n }\n }, {\n key: \"hasIcon\",\n value: function hasIcon() {\n return this.props.onIcon && this.props.onIcon.length > 0 && this.props.offIcon && this.props.offIcon.length > 0;\n }\n }, {\n key: \"getLabel\",\n value: function getLabel() {\n return this.hasLabel() ? this.props.checked ? this.props.onLabel : this.props.offLabel : '&nbsp;';\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-button p-togglebutton p-component', {\n 'p-button-icon-only': this.hasIcon() && !this.hasLabel(),\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled\n }, this.props.className),\n iconClassName = null;\n var hasIcon = this.hasIcon();\n var label = this.getLabel();\n var icon = this.props.checked ? this.props.onIcon : this.props.offIcon;\n\n if (hasIcon) {\n iconClassName = classNames('p-button-icon p-c', {\n 'p-button-icon-left': this.props.iconPos === 'left' && label,\n 'p-button-icon-right': this.props.iconPos === 'right' && label\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this2.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.toggle,\n onFocus: this.props.onFocus,\n onBlur: this.props.onBlur,\n onKeyDown: this.onKeyDown,\n tabIndex: !this.props.disabled && this.props.tabIndex,\n \"aria-labelledby\": this.props.ariaLabelledBy\n }, hasIcon && IconUtils.getJSXIcon(icon, {\n className: iconClassName\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-button-label\"\n }, label), /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return ToggleButton;\n}(Component);\n\n_defineProperty(ToggleButton, \"defaultProps\", {\n id: null,\n onIcon: null,\n offIcon: null,\n onLabel: 'Yes',\n offLabel: 'No',\n iconPos: 'left',\n style: null,\n className: null,\n checked: false,\n tabIndex: 0,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n onChange: null,\n onFocus: null,\n onBlur: null\n});\n\nexport { ToggleButton };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,SAArB,QAAsC,kBAAtC;AACA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,MAAT,QAAuB,mBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CA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