/*! For license information please see dll.Iframe.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[53],{847:function(t,e,r){"use strict";r.r(e);var i=r(7),n=r.n(i),s=r(14),h=r.n(s),o=r(12),c=r.n(o),a=r(15),l=r.n(a),u=r(16),p=r.n(u),f=r(8),d=r.n(f),w=r(0),g=r.n(w),y=r(1),b=r.n(y),m=r(86);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){n()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function j(t){var e=function(){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(t){return!1}}();return function(){var r,i=d()(t);if(e){var n=d()(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return p()(this,r)}}var P=function(t){l()(r,t);var e=j(r);function r(t){var i;return h()(this,r),(i=e.call(this,t)).state={width:t.width||window.innerWidth,height:t.height||window.innerHeight},i}return c()(r,[{key:"render",value:function(){var t;return t=this.props.fullscreen?v({position:"absolute",width:this.state.width,height:this.state.height,top:0,left:0},this.props.style):v({width:this.state.width,height:this.state.height},this.props.style),g.a.createElement(m.default,{id:this.props.id,className:this.props.className,style:t},g.a.createElement("iframe",{src:this.props.src,width:this.state.width,height:this.state.height,title:this.props.title}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.fullscreen?{width:window.innerWidth,height:window.innerHeight}:e.width!==t.width||e.height!==t.height?{width:t.width,height:t.height}:null}}]),r}(w.Component);P.defaultProps={title:"An iFrame",fullscreen:!1,width:900,height:600,className:"",style:{}},P.propTypes={src:b.a.string.isRequired,fullscreen:b.a.bool,title:b.a.string,width:b.a.number,height:b.a.number,className:b.a.string,style:b.a.object},P.defaultProps={},e.default=P}}]);