"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")),_inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),_react=_interopRequireDefault(require("react")),_react2=require("@storybook/react"),_addonInfo=require("@storybook/addon-info"),_index=_interopRequireDefault(require("./index"));function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=(0,_getPrototypeOf2["default"])(Derived);if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2["default"])(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return(0,_possibleConstructorReturn2["default"])(this,result)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var CustomLicense=/*#__PURE__*/function(_React$Component){function CustomLicense(){var _this;(0,_classCallCheck2["default"])(this,CustomLicense);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=_super.call.apply(_super,[this].concat(args)),(0,_defineProperty2["default"])((0,_assertThisInitialized2["default"])(_this),"state",{index:0}),_this}(0,_inherits2["default"])(CustomLicense,_React$Component);var _super=_createSuper(CustomLicense);return(0,_createClass2["default"])(CustomLicense,[{key:"render",value:function render(){var _this2=this;return/*#__PURE__*/_react["default"].createElement(_index["default"],{currency:"AUD",tiersPricing:[{pricing:0,currency:"AUD"},{pricing:25,currency:"AUD"},{pricing:100,currency:"AUD"}],onTierClick:function onTierClick(tier,pricing,index){console.log({tier:tier,pricing:pricing,index:index}),_this2.setState({index:index})},selectedTierIndex:this.state.index})}}]),CustomLicense}(_react["default"].Component);(0,_react2.storiesOf)("License",module).add("Default",(0,_addonInfo.withInfo)("Default License")(function(){return/*#__PURE__*/_react["default"].createElement(_index["default"],null)})).add("with Custom Pricing",(0,_addonInfo.withInfo)("with Custom Pricing")(function(){return/*#__PURE__*/_react["default"].createElement(CustomLicense,null)}));