1 line
33 KiB
JSON
1 line
33 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { UniqueComponentId, classNames } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\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 Fieldset = /*#__PURE__*/function (_Component) {\n _inherits(Fieldset, _Component);\n\n var _super = _createSuper(Fieldset);\n\n function Fieldset(props) {\n var _this;\n\n _classCallCheck(this, Fieldset);\n\n _this = _super.call(this, props);\n var state = {\n id: props.id\n };\n\n if (!_this.props.onToggle) {\n state = _objectSpread(_objectSpread({}, state), {}, {\n collapsed: props.collapsed\n });\n }\n\n _this.state = state;\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n _this.contentRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Fieldset, [{\n key: \"toggle\",\n value: function toggle(event) {\n if (this.props.toggleable) {\n var collapsed = this.props.onToggle ? this.props.collapsed : this.state.collapsed;\n if (collapsed) this.expand(event);else this.collapse(event);\n\n if (this.props.onToggle) {\n this.props.onToggle({\n originalEvent: event,\n value: !collapsed\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"expand\",\n value: function expand(event) {\n if (!this.props.onToggle) {\n this.setState({\n collapsed: false\n });\n }\n\n if (this.props.onExpand) {\n this.props.onExpand(event);\n }\n }\n }, {\n key: \"collapse\",\n value: function collapse(event) {\n if (!this.props.onToggle) {\n this.setState({\n collapsed: true\n });\n }\n\n if (this.props.onCollapse) {\n this.props.onCollapse(event);\n }\n }\n }, {\n key: \"isCollapsed\",\n value: function isCollapsed() {\n return this.props.toggleable ? this.props.onToggle ? this.props.collapsed : this.state.collapsed : false;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderContent\",\n value: function renderContent(collapsed) {\n var id = this.state.id + '_content';\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.contentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": !collapsed,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.contentRef,\n id: id,\n className: \"p-toggleable-content\",\n \"aria-hidden\": collapsed,\n role: \"region\",\n \"aria-labelledby\": this.state.id + '_header'\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-fieldset-content\"\n }, this.props.children)));\n }\n }, {\n key: \"renderToggleIcon\",\n value: function renderToggleIcon(collapsed) {\n if (this.props.toggleable) {\n var className = classNames('p-fieldset-toggler pi', {\n 'pi-plus': collapsed,\n 'pi-minus': !collapsed\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderLegendContent\",\n value: function renderLegendContent(collapsed) {\n if (this.props.toggleable) {\n var toggleIcon = this.renderToggleIcon(collapsed);\n var ariaControls = this.state.id + '_content';\n return /*#__PURE__*/React.createElement(\"a\", {\n href: '#' + ariaControls,\n \"aria-controls\": ariaControls,\n id: this.state.id + '_header',\n \"aria-expanded\": !collapsed,\n tabIndex: this.props.toggleable ? null : -1\n }, toggleIcon, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-fieldset-legend-text\"\n }, this.props.legend), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-fieldset-legend-text\",\n id: this.state.id + '_header'\n }, this.props.legend);\n }\n }, {\n key: \"renderLegend\",\n value: function renderLegend(collapsed) {\n var legendContent = this.renderLegendContent(collapsed);\n\n if (this.props.legend != null || this.props.toggleable) {\n return /*#__PURE__*/React.createElement(\"legend\", {\n className: \"p-fieldset-legend p-unselectable-text\",\n onClick: this.toggle\n }, legendContent);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-fieldset p-component', this.props.className, {\n 'p-fieldset-toggleable': this.props.toggleable\n });\n var collapsed = this.isCollapsed();\n var legend = this.renderLegend(collapsed);\n var content = this.renderContent(collapsed);\n return /*#__PURE__*/React.createElement(\"fieldset\", {\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.props.onClick\n }, legend, content);\n }\n }]);\n\n return Fieldset;\n}(Component);\n\n_defineProperty(Fieldset, \"defaultProps\", {\n id: null,\n legend: null,\n className: null,\n style: null,\n toggleable: null,\n collapsed: null,\n transitionOptions: null,\n onExpand: null,\n onCollapse: null,\n onToggle: null,\n onClick: null\n});\n\nexport { Fieldset };","map":{"version":3,"names":["React","Component","UniqueComponentId","classNames","CSSTransition","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","Fieldset","_Component","_super","_this","state","id","onToggle","collapsed","toggle","bind","contentRef","createRef","event","toggleable","expand","collapse","originalEvent","preventDefault","setState","onExpand","onCollapse","isCollapsed","componentDidMount","renderContent","createElement","nodeRef","timeout","enter","exit","unmountOnExit","options","transitionOptions","ref","className","role","children","renderToggleIcon","renderLegendContent","toggleIcon","ariaControls","href","tabIndex","legend","renderLegend","legendContent","onClick","render","content","style"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/fieldset/fieldset.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { UniqueComponentId, classNames } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\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 Fieldset = /*#__PURE__*/function (_Component) {\n _inherits(Fieldset, _Component);\n\n var _super = _createSuper(Fieldset);\n\n function Fieldset(props) {\n var _this;\n\n _classCallCheck(this, Fieldset);\n\n _this = _super.call(this, props);\n var state = {\n id: props.id\n };\n\n if (!_this.props.onToggle) {\n state = _objectSpread(_objectSpread({}, state), {}, {\n collapsed: props.collapsed\n });\n }\n\n _this.state = state;\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n _this.contentRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Fieldset, [{\n key: \"toggle\",\n value: function toggle(event) {\n if (this.props.toggleable) {\n var collapsed = this.props.onToggle ? this.props.collapsed : this.state.collapsed;\n if (collapsed) this.expand(event);else this.collapse(event);\n\n if (this.props.onToggle) {\n this.props.onToggle({\n originalEvent: event,\n value: !collapsed\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"expand\",\n value: function expand(event) {\n if (!this.props.onToggle) {\n this.setState({\n collapsed: false\n });\n }\n\n if (this.props.onExpand) {\n this.props.onExpand(event);\n }\n }\n }, {\n key: \"collapse\",\n value: function collapse(event) {\n if (!this.props.onToggle) {\n this.setState({\n collapsed: true\n });\n }\n\n if (this.props.onCollapse) {\n this.props.onCollapse(event);\n }\n }\n }, {\n key: \"isCollapsed\",\n value: function isCollapsed() {\n return this.props.toggleable ? this.props.onToggle ? this.props.collapsed : this.state.collapsed : false;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderContent\",\n value: function renderContent(collapsed) {\n var id = this.state.id + '_content';\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.contentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": !collapsed,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.contentRef,\n id: id,\n className: \"p-toggleable-content\",\n \"aria-hidden\": collapsed,\n role: \"region\",\n \"aria-labelledby\": this.state.id + '_header'\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-fieldset-content\"\n }, this.props.children)));\n }\n }, {\n key: \"renderToggleIcon\",\n value: function renderToggleIcon(collapsed) {\n if (this.props.toggleable) {\n var className = classNames('p-fieldset-toggler pi', {\n 'pi-plus': collapsed,\n 'pi-minus': !collapsed\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderLegendContent\",\n value: function renderLegendContent(collapsed) {\n if (this.props.toggleable) {\n var toggleIcon = this.renderToggleIcon(collapsed);\n var ariaControls = this.state.id + '_content';\n return /*#__PURE__*/React.createElement(\"a\", {\n href: '#' + ariaControls,\n \"aria-controls\": ariaControls,\n id: this.state.id + '_header',\n \"aria-expanded\": !collapsed,\n tabIndex: this.props.toggleable ? null : -1\n }, toggleIcon, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-fieldset-legend-text\"\n }, this.props.legend), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-fieldset-legend-text\",\n id: this.state.id + '_header'\n }, this.props.legend);\n }\n }, {\n key: \"renderLegend\",\n value: function renderLegend(collapsed) {\n var legendContent = this.renderLegendContent(collapsed);\n\n if (this.props.legend != null || this.props.toggleable) {\n return /*#__PURE__*/React.createElement(\"legend\", {\n className: \"p-fieldset-legend p-unselectable-text\",\n onClick: this.toggle\n }, legendContent);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-fieldset p-component', this.props.className, {\n 'p-fieldset-toggleable': this.props.toggleable\n });\n var collapsed = this.isCollapsed();\n var legend = this.renderLegend(collapsed);\n var content = this.renderContent(collapsed);\n return /*#__PURE__*/React.createElement(\"fieldset\", {\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.props.onClick\n }, legend, content);\n }\n }]);\n\n return Fieldset;\n}(Component);\n\n_defineProperty(Fieldset, \"defaultProps\", {\n id: null,\n legend: null,\n className: null,\n style: null,\n toggleable: null,\n collapsed: null,\n transitionOptions: null,\n onExpand: null,\n onCollapse: null,\n onToggle: null,\n onClick: null\n});\n\nexport { Fieldset };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,iBAAT,EAA4BC,UAA5B,QAA8C,kBAA9C;AACA,SAASC,aAAT,QAA8B,0BAA9B;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,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;IACAE,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;IACAD,UAAU,CAACE,YAAX,GAA0B,IAA1B;IACA,IAAI,WAAWF,UAAf,EAA2BA,UAAU,CAACG,QAAX,GAAsB,IAAtB;IAC3BC,MAAM,CAACC,cAAP,CAAsBT,MAAtB,EAA8BI,UAAU,CAACM,GAAzC,EAA8CN,UAA9C;EACD;AACF;;AAED,SAASO,YAAT,CAAsBd,WAAtB,EAAmCe,UAAnC,EAA+CC,WAA/C,EAA4D;EAC1D,IAAID,UAAJ,EAAgBb,iBAAiB,CAACF,WAAW,CAACiB,SAAb,EAAwBF,UAAxB,CAAjB;EAChB,IAAIC,WAAJ,EAAiBd,iBAAiB,CAACF,WAAD,EAAcgB,WAAd,CAAjB;EACjBL,MAAM,CAACC,cAAP,CAAsBZ,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