"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf3=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits")),_assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),_react=_interopRequireDefault(require("react")),_react2=require("@storybook/react"),_addonInfo=require("@storybook/addon-info"),_index=_interopRequireDefault(require("./index")),CustomLicense=/*#__PURE__*/function(_React$Component){function CustomLicense(){var _getPrototypeOf2,_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=(0,_possibleConstructorReturn2.default)(this,(_getPrototypeOf2=(0,_getPrototypeOf3.default)(CustomLicense)).call.apply(_getPrototypeOf2,[this].concat(args))),(0,_defineProperty2.default)((0,_assertThisInitialized2.default)((0,_assertThisInitialized2.default)(_this)),"state",{index:0}),_this}return(0,_inherits2.default)(CustomLicense,_React$Component),(0,_createClass2.default)(CustomLicense,[{key:"render",value:function render(){var _this2=this;return _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 _react.default.createElement(_index.default,null)})).add("with Custom Pricing",(0,_addonInfo.withInfo)("with Custom Pricing")(function(){return _react.default.createElement(CustomLicense,null)}));