text: webpackJsonp([2],{"../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/InstallPluginPopup/styles.scss":function(e,n,t){n=e.exports=t("../strapi-helper-plugin/node_modules/css-loader/lib/css-base.js")(!1),n.push([e.i,'.adminbuttonWrapper__admin-src-components-InstallPluginPopup-styles__32Uqm{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-width:136px;height:30px;margin-left:20px;border-radius:.3rem;background:linear-gradient(315deg,#0097f6,#005eea);color:#fff;font-size:13px;font-style:normal;font-weight:600;cursor:pointer}.adminbuttonWrapper__admin-src-components-InstallPluginPopup-styles__32Uqm:focus{outline:0}.adminbuttonWrapper__admin-src-components-InstallPluginPopup-styles__32Uqm>div{text-align:center;text-transform:capitalize}.adminbuttonWrapper__admin-src-components-InstallPluginPopup-styles__32Uqm>div:first-child{-ms-flex-positive:2;flex-grow:2}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:13px;line-height:29px}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj>div{font-size:13px;font-style:italic}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj>div:first-child{color:#5a9e06}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj>div:first-child>i{margin-right:10px}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj>div:nth-child(2){display:-ms-flexbox;display:flex}.adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj>div:nth-child(2)>span:nth-child(2){font-style:normal}.adminheaderDescription__admin-src-components-InstallPluginPopup-styles__3CQON{height:48px;padding-top:12px;font-size:13px}.adminheaderInfo__admin-src-components-InstallPluginPopup-styles__2zVZi{-ms-flex-positive:1;flex-grow:1;padding-top:7px;padding-left:30px}.adminheaderWrapper__admin-src-components-InstallPluginPopup-styles__1pOHz{display:-ms-flexbox;display:flex}.adminlogo__admin-src-components-InstallPluginPopup-styles__ygFVi{-ms-flex-negative:0;flex-shrink:0;width:144px;height:144px;background:#fafafb;border:1px solid #f3f3f7;border-radius:3px;background-size:contain;line-height:144px;text-align:center}.adminlogo__admin-src-components-InstallPluginPopup-styles__ygFVi>img{min-width:72px}.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp{margin:0 1.4rem!important;padding:1.4rem 0 0!important;border-bottom:0!important}.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp>button{margin-right:-1rem!important;color:#c3c5c8;opacity:1;font-size:1.8rem;font-weight:100;z-index:999}.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp>button:focus,.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp>button:hover{color:#c3c5c8;opacity:1;outline:0!important;cursor:pointer}.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp>button>span{display:none}.adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp>button:before{-webkit-font-smoothing:antialiased;content:"\\F00D";font-family:FontAwesome;font-weight:400;font-size:1.2rem;margin-right:10px}.adminmodalBody__admin-src-components-InstallPluginPopup-styles__tHMu2{padding:5px 0!important}.adminmodalPosition__admin-src-components-InstallPluginPopup-styles__1INUA>div{border:none;border-radius:2px;width:74.5rem;padding-left:0;padding-right:0}.adminname__admin-src-components-InstallPluginPopup-styles__1jZqj{padding-bottom:1px;font-size:16px;font-weight:700;text-transform:uppercase}.adminnavContainer__admin-src-components-InstallPluginPopup-styles__35lsZ{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;height:36px;margin-top:38px;padding:0 30px;background-color:#fafafb;font-size:13px;font-weight:600;text-transform:capitalize}.adminnavContainer__admin-src-components-InstallPluginPopup-styles__35lsZ>div{-ms-flex-positive:2;flex-grow:2;text-align:center;line-height:23px;cursor:pointer}.adminnavLink__admin-src-components-InstallPluginPopup-styles__2yejb{border-top:2px solid #1c5de7}.adminnotAllowed__admin-src-components-InstallPluginPopup-styles__2-zmO{opacity:.3;cursor:not-allowed!important}.adminpluginDescription__admin-src-components-InstallPluginPopup-styles__1V5Zn{padding:24px 30px;font-size:13px;line-height:18px}.adminratings__admin-src-components-InstallPluginPopup-styles__1wvI7{display:-ms-flexbox;display:flex;line-height:18px}.adminratings__admin-src-components-InstallPluginPopup-styles__1wvI7>div:last-child{padding-top:1px;font-style:italic}.adminstarsContainer__admin-src-components-InstallPluginPopup-styles__2vzL3{display:-ms-flexbox;display:flex}.adminstarsContainer__admin-src-components-InstallPluginPopup-styles__2vzL3>div{color:#eed348}.adminstarsContainer__admin-src-components-InstallPluginPopup-styles__2vzL3>div>i{margin-right:2px}.adminstarsContainer__admin-src-components-InstallPluginPopup-styles__2vzL3>div:last-child{color:#b3b5b9}.adminwrapper__admin-src-components-InstallPluginPopup-styles__2zJQV{padding:0 30px}',""]),n.locals={buttonWrapper:"adminbuttonWrapper__admin-src-components-InstallPluginPopup-styles__32Uqm",headerButtonContainer:"adminheaderButtonContainer__admin-src-components-InstallPluginPopup-styles__3AKoj",headerDescription:"adminheaderDescription__admin-src-components-InstallPluginPopup-styles__3CQON",headerInfo:"adminheaderInfo__admin-src-components-InstallPluginPopup-styles__2zVZi",headerWrapper:"adminheaderWrapper__admin-src-components-InstallPluginPopup-styles__1pOHz",logo:"adminlogo__admin-src-components-InstallPluginPopup-styles__ygFVi",modalHeader:"adminmodalHeader__admin-src-components-InstallPluginPopup-styles__38vEp",modalBody:"adminmodalBody__admin-src-components-InstallPluginPopup-styles__tHMu2",modalPosition:"adminmodalPosition__admin-src-components-InstallPluginPopup-styles__1INUA",name:"adminname__admin-src-components-InstallPluginPopup-styles__1jZqj",navContainer:"adminnavContainer__admin-src-components-InstallPluginPopup-styles__35lsZ",navLink:"adminnavLink__admin-src-components-InstallPluginPopup-styles__2yejb",notAllowed:"adminnotAllowed__admin-src-components-InstallPluginPopup-styles__2-zmO",pluginDescription:"adminpluginDescription__admin-src-components-InstallPluginPopup-styles__1V5Zn",ratings:"adminratings__admin-src-components-InstallPluginPopup-styles__1wvI7",starsContainer:"adminstarsContainer__admin-src-components-InstallPluginPopup-styles__2vzL3",wrapper:"adminwrapper__admin-src-components-InstallPluginPopup-styles__2zJQV"}},"../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/Official/styles.scss":function(e,n,t){n=e.exports=t("../strapi-helper-plugin/node_modules/css-loader/lib/css-base.js")(!1),n.push([e.i,".adminwrapper__admin-src-components-Official-styles__3EPRa{display:-ms-flexbox;display:flex;height:20px!important;width:88px;padding:0 10px;border-radius:2px;background-color:#ee8948;line-height:20px;text-align:center;text-transform:uppercase}.adminwrapper__admin-src-components-Official-styles__3EPRa>span{height:20px;padding:0!important;color:#fff;letter-spacing:.5px;font-weight:600;font-size:11px}.adminwrapper__admin-src-components-Official-styles__3EPRa>i{margin-top:1px;margin-right:6px;vertical-align:-webkit-baseline-middle;color:#ffdc00;font-size:10px}",""]),n.locals={wrapper:"adminwrapper__admin-src-components-Official-styles__3EPRa"}},"../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/PluginCard/styles.scss":function(e,n,t){n=e.exports=t("../strapi-helper-plugin/node_modules/css-loader/lib/css-base.js")(!1),n.push([e.i,".adminwrapper__admin-src-components-PluginCard-styles__3tZFe{position:relative;min-height:216px;margin-bottom:3.6rem;padding:1.2rem 1.5rem;padding-bottom:0;background-color:#fff;box-shadow:0 2px 4px #e3e9f3;-webkit-font-smoothing:antialiased}.admincardTitle__admin-src-components-PluginCard-styles__1xUcV{display:-ms-flexbox;display:flex;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.admincardTitle__admin-src-components-PluginCard-styles__1xUcV>div:first-child{margin-right:14px}.admincardTitle__admin-src-components-PluginCard-styles__1xUcV>div:last-child{height:36px;line-height:36px}.admincardTitle__admin-src-components-PluginCard-styles__1xUcV i{margin-left:7px;color:#b3b5b9;font-size:1rem;vertical-align:baseline;cursor:pointer}.admincardDescription__admin-src-components-PluginCard-styles__23ygb{height:54px;margin-top:27px;margin-bottom:9px;font-size:13px;font-weight:400;-webkit-font-smoothing:antialiased}.admincardDescription__admin-src-components-PluginCard-styles__23ygb>span:last-child{color:#1c5de7}.admincardFooter__admin-src-components-PluginCard-styles__2hsbR{position:absolute;bottom:0;left:0;display:-ms-flexbox;display:flex;width:100%;height:45px;padding:.9rem 1.5rem 1rem;background-color:#fafafb;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row-reverse;flex-direction:row-reverse;cursor:auto}.admincompatible__admin-src-components-PluginCard-styles__2yPRc{margin-top:3px;color:#5a9e06;font-size:1.3rem;font-style:italic}.admincompatible__admin-src-components-PluginCard-styles__2yPRc>i{margin-right:7px;font-size:12px}.adminsettings__admin-src-components-PluginCard-styles__B0ZW3{margin-top:3px;color:#323740;font-size:1.3rem;font-weight:500;cursor:pointer}.adminsettings__admin-src-components-PluginCard-styles__B0ZW3>i{margin-right:7px;font-size:12px}.adminbutton__admin-src-components-PluginCard-styles__3Q-OX{height:26px;min-width:89px!important;padding:0 15px;margin:0;border-radius:2px!important;line-height:24px;font-size:13px;font-weight:500!important;cursor:pointer}.adminbutton__admin-src-components-PluginCard-styles__3Q-OX span{display:inline-block;width:100%;height:100%;line-height:24px}.adminframe__admin-src-components-PluginCard-styles__3Zmy7{width:70px;height:36px;margin:auto 0;text-align:center;border:1px solid #f3f3f7;border-radius:3px;white-space:nowrap}.adminframe__admin-src-components-PluginCard-styles__3Zmy7>img{max-height:36px;vertical-align:middle}.adminhelper__admin-src-components-PluginCard-styles__3cQUD{display:inline-block;height:100%;vertical-align:middle}.adminprimary__admin-src-components-PluginCard-styles__3Aesb{background:linear-gradient(315deg,#0097f6,#005eea);color:#fff;font-weight:500;-webkit-font-smoothing:antialiased}.adminprimary__admin-src-components-PluginCard-styles__3Aesb:active{box-shadow:inset 1px 1px 3px rgba(0,0,0,.15)}.adminsecondary__admin-src-components-PluginCard-styles__3lEBE{border:1px solid #dfe0e1;font-weight:600}",""]),n.locals={wrapper:"adminwrapper__admin-src-components-PluginCard-styles__3tZFe",cardTitle:"admincardTitle__admin-src-components-PluginCard-styles__1xUcV",cardDescription:"admincardDescription__admin-src-components-PluginCard-styles__23ygb",cardFooter:"admincardFooter__admin-src-components-PluginCard-styles__2hsbR",compatible:"admincompatible__admin-src-components-PluginCard-styles__2yPRc",settings:"adminsettings__admin-src-components-PluginCard-styles__B0ZW3",button:"adminbutton__admin-src-components-PluginCard-styles__3Q-OX",frame:"adminframe__admin-src-components-PluginCard-styles__3Zmy7",helper:"adminhelper__admin-src-components-PluginCard-styles__3cQUD",primary:"adminprimary__admin-src-components-PluginCard-styles__3Aesb",secondary:"adminsecondary__admin-src-components-PluginCard-styles__3lEBE"}},"../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/containers/Marketplace/styles.scss":function(e,n,t){n=e.exports=t("../strapi-helper-plugin/node_modules/css-loader/lib/css-base.js")(!1),n.push([e.i,".admincontainerFluid__admin-src-containers-Marketplace-styles__wvuAS{padding:18px 30px!important}.admincontainerFluid__admin-src-containers-Marketplace-styles__wvuAS>div:first-child{margin-bottom:11px}.admininputContainer__admin-src-containers-Marketplace-styles__2xsOU{padding-top:7px;background-color:#fff}.admininputContainer__admin-src-containers-Marketplace-styles__2xsOU>div>div{margin-bottom:0!important}.admininputContainer__admin-src-containers-Marketplace-styles__2xsOU>div>div:nth-child(3){display:none}.admininputContainer__admin-src-containers-Marketplace-styles__2xsOU>div>label{display:none!important}.adminwrapper__admin-src-containers-Marketplace-styles__23Wml{padding-top:3.8rem}",""]),n.locals={containerFluid:"admincontainerFluid__admin-src-containers-Marketplace-styles__wvuAS",inputContainer:"admininputContainer__admin-src-containers-Marketplace-styles__2xsOU",wrapper:"adminwrapper__admin-src-containers-Marketplace-styles__23Wml"}},"./admin/src/components/InstallPluginPopup/index.js":function(e,n,t){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(n,t,s,i){var o=n&&n.defaultProps,a=arguments.length-3;if(t||0===a||(t={}),t&&o)for(var r in o)void 0===t[r]&&(t[r]=o[r]);else t||(t=o||{});if(1===a)t.children=i;else if(a>1){for(var l=Array(a),p=0;p<a;p++)l[p]=arguments[p+3];t.children=l}return{$$typeof:e,type:n,key:void 0===s?null:""+s,ref:null,props:t,_owner:null}}}(),l=function(){function e(e,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(n,t,s){return t&&e(n.prototype,t),s&&e(n,s),n}}(),p=t("./node_modules/strapi-helper-plugin/node_modules/react/index.js"),d=s(p),c=t("./node_modules/strapi-helper-plugin/node_modules/prop-types/index.js"),u=s(c),m=t("./node_modules/strapi-helper-plugin/node_modules/react-intl/lib/index.es.js"),_=t("./node_modules/strapi-helper-plugin/node_modules/reactstrap/dist/reactstrap.es.js"),f=t("./node_modules/strapi-helper-plugin/node_modules/lodash/lodash.js"),g=t("./node_modules/strapi-helper-plugin/node_modules/classnames/index.js"),h=s(g),y=t("./admin/src/components/Official/index.js"),P=s(y),v=t("./admin/src/components/InstallPluginPopup/styles.scss"),b=s(v),x=function(e){function n(){var e,t,s,a;i(this,n);for(var r=arguments.length,l=Array(r),p=0;p<r;p++)l[p]=arguments[p];return t=s=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),s.handleClick=function(){s.props.history.push({pathname:s.props.history.location.pathname}),s.props.isAlreadyInstalled||s.context.downloadPlugin(s.props.plugin.id)},s.toggle=function(){s.props.history.push({pathname:s.props.history.location.pathname})},s.navLinks=[{content:"app.components.InstallPluginPopup.navLink.description",name:"description"},{content:"app.components.InstallPluginPopup.navLink.screenshots",name:"screenshots"},{content:"app.components.InstallPluginPopup.navLink.avis",name:"avis"},{content:"app.components.InstallPluginPopup.navLink.faq",name:"faq"},{content:"app.components.InstallPluginPopup.navLink.changelog",name:"changelog"}],a=t,o(s,a)}return a(n,e),l(n,[{key:"render",value:function(){var e=this,n={short:"support-us"===this.props.plugin.id?r(m.FormattedMessage,{id:this.props.plugin.description.short}):this.props.plugin.description.short,long:"support-us"===this.props.plugin.id?r(m.FormattedMessage,{id:this.props.plugin.description.long||this.props.plugin.description.short}):this.props.plugin.description.long||this.props.plugin.description.short},t=this.props.isAlreadyInstalled?"app.components.PluginCard.Button.label.install":"app.components.InstallPluginPopup.downloads";return r(_.Modal,{isOpen:this.props.isOpen,toggle:this.toggle,className:b.default.modalPosition},void 0,r(_.ModalHeader,{toggle:this.toggle,className:b.default.modalHeader}),r(_.ModalBody,{className:b.default.modalBody},void 0,r("div",{className:b.default.wrapper},void 0,r("div",{className:b.default.headerWrapper},void 0,r("div",{className:b.default.logo},void 0,r("img",{src:""+this.props.plugin.logo,alt:"icon"})),r("div",{className:b.default.headerInfo},void 0,r("div",{className:b.default.name},void 0,this.props.plugin.name),r("div",{className:b.default.ratings},void 0,r(P.default,{style:{marginTop:"0"}})),r("div",{className:b.default.headerDescription},void 0,n.short),r("div",{className:b.default.headerButtonContainer},void 0,r("div",{},void 0,r("i",{className:"fa fa-"+(this.props.plugin.isCompatible?"check":"times")}),r(m.FormattedMessage,{id:"app.components.PluginCard.compatible"+("support-us"===this.props.plugin.id?"Community":"")})),r("div",{},void 0,r("div",{},void 0),r("div",{className:b.default.buttonWrapper,onClick:this.handleClick},void 0,r("div",{},void 0,r(m.FormattedMessage,{id:t})))))))),r("div",{className:b.default.navContainer},void 0,(0,f.map)(this.navLinks,function(n){var t=e.props.history.location.hash.split("::")[1]===n.name;return r("div",{className:(0,h.default)(t?b.default.navLink:"","description"!==n.name?b.default.notAllowed:""),onClick:function(){"description"===n.name&&e.props.history.push({pathname:e.props.history.location.pathname,hash:e.props.plugin.id+"::"+n.name})},style:t?{paddingTop:"4px"}:{paddingTop:"6px"}},n.name,r(m.FormattedMessage,{id:n.content}))})),r("div",{className:b.default.pluginDescription},void 0,n.long)))}}]),n}(d.default.Component);x.contextTypes={downloadPlugin:u.default.func.isRequired},x.defaultProps={description:{short:"app.Components.InstallPluginPopup.noDescription"}},n.default=x},"./admin/src/components/InstallPluginPopup/styles.scss":function(e,n,t){var s=t("../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/InstallPluginPopup/styles.scss");"string"==typeof s&&(s=[[e.i,s,""]]);var i={};i.transform=void 0,t("../strapi-helper-plugin/node_modules/style-loader/lib/addStyles.js")(s,i),s.locals&&(e.exports=s.locals)},"./admin/src/components/Official/index.js":function(e,n,t){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e){return o("button",{className:d.default.wrapper,style:e.style},void 0,c,u)}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(n,t,s,i){var o=n&&n.defaultProps,a=arguments.length-3;if(t||0===a||(t={}),t&&o)for(var r in o)void 0===t[r]&&(t[r]=o[r]);else t||(t=o||{});if(1===a)t.children=i;else if(a>1){for(var l=Array(a),p=0;p<a;p++)l[p]=arguments[p+3];t.children=l}return{$$typeof:e,type:n,key:void 0===s?null:""+s,ref:null,props:t,_owner:null}}}(),a=t("./node_modules/strapi-helper-plugin/node_modules/react/index.js"),r=(s(a),t("./node_modules/strapi-helper-plugin/node_modules/react-intl/lib/index.es.js")),l=t("./node_modules/strapi-helper-plugin/node_modules/prop-types/index.js"),p=(s(l),t("./admin/src/components/Official/styles.scss")),d=s(p),c=o("i",{className:"fa fa-star"}),u=o(r.FormattedMessage,{id:"app.components.Official"});i.defaultProps={style:{}},n.default=i},"./admin/src/components/Official/styles.scss":function(e,n,t){var s=t("../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/Official/styles.scss");"string"==typeof s&&(s=[[e.i,s,""]]);var i={};i.transform=void 0,t("../strapi-helper-plugin/node_modules/style-loader/lib/addStyles.js")(s,i),s.locals&&(e.exports=s.locals)},"./admin/src/components/PluginCard/index.js":function(e,n,t){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(n,t,s,i){var o=n&&n.defaultProps,a=arguments.length-3;if(t||0===a||(t={}),t&&o)for(var r in o)void 0===t[r]&&(t[r]=o[r]);else t||(t=o||{});if(1===a)t.children=i;else if(a>1){for(var l=Array(a),p=0;p<a;p++)l[p]=arguments[p+3];t.children=l}return{$$typeof:e,type:n,key:void 0===s?null:""+s,ref:null,props:t,_owner:null}}}(),l=function(){function e(e,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(n,t,s){return t&&e(n.prototype,t),s&&e(n,s),n}}(),p=t("./node_modules/strapi-helper-plugin/node_modules/react/index.js"),d=s(p),c=t("./node_modules/strapi-helper-plugin/node_modules/prop-types/index.js"),u=(s(c),t("./node_modules/strapi-helper-plugin/node_modules/classnames/index.js")),m=s(u),_=t("./node_modules/strapi-helper-plugin/node_modules/lodash/lodash.js"),f=t("./node_modules/strapi-helper-plugin/node_modules/react-intl/lib/index.es.js"),g=t("./node_modules/strapi-helper-plugin/lib/src/components/Button/index.js"),h=s(g),y=t("./admin/src/components/InstallPluginPopup/index.js"),P=s(y),v=t("./admin/src/components/PluginCard/styles.scss"),b=s(v),x=["content-manager","email","upload"],w=r("i",{className:"fa fa-cog"}),j=r(f.FormattedMessage,{id:"app.components.PluginCard.settings"}),I=function(e){function n(){var e,t,s,a;i(this,n);for(var r=arguments.length,l=Array(r),p=0;p<r;p++)l[p]=arguments[p];return t=s=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),s.state={boostrapCol:"col-lg-4"},s.setBoostrapCol=function(){var e="col-lg-4";window.innerWidth>1680&&(e="col-lg-3"),window.innerWidth>2300&&(e="col-lg-2"),s.setState({boostrapCol:e})},s.handleClick=function(){"support-us"!==s.props.plugin.id?s.props.history.push({pathname:s.props.history.location.pathname,hash:s.props.plugin.id+"::description"}):s.aTag.click()},s.handleClickSettings=function(e){var n="content-manager"===s.props.plugin.id?"/plugins/content-manager/ctm-configurations":"/plugins/"+s.props.plugin.id+"/configurations/"+s.props.currentEnvironment;e.preventDefault(),e.stopPropagation(),s.props.history.push(n)},s.handleDownloadPlugin=function(e){s.props.isAlreadyInstalled||"support-us"===s.props.plugin.id?"support-us"===s.props.plugin.id?s.aTag.click():s.props.history.push("/list-plugins"):s.props.downloadPlugin(e)},a=t,o(s,a)}return a(n,e),l(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.setBoostrapCol),this.setBoostrapCol()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.setBoostrapCol)}},{key:"render",value:function(){var e=this,n=this.props.isAlreadyInstalled?b.default.secondary:b.default.primary,t=this.props.isAlreadyInstalled?"app.components.PluginCard.Button.label.install":"app.components.PluginCard.Button.label.download",s=x.includes(this.props.plugin.id)&&r("div",{className:b.default.settings,onClick:this.handleClickSettings},void 0,w,j),i={short:"support-us"===this.props.plugin.id?r(f.FormattedMessage,{id:this.props.plugin.description.short}):this.props.plugin.description.short,long:"support-us"===this.props.plugin.id?r(f.FormattedMessage,{id:this.props.plugin.description.long||this.props.plugin.description.short}):this.props.plugin.description.long||this.props.plugin.description.short};return r("div",{className:(0,m.default)(this.state.boostrapCol,b.default.pluginCard)},void 0,r("div",{className:b.default.wrapper},void 0,r("div",{className:b.default.cardTitle},void 0,r("div",{className:b.default.frame},void 0,r("span",{className:b.default.helper}),r("img",{src:this.props.plugin.logo,alt:"icon"})),r("div",{},void 0,this.props.plugin.name," ",r("i",{className:"fa fa-external-link",onClick:function(){return window.open("https://github.com/strapi/strapi/tree/master/packages/strapi-plugin-"+e.props.plugin.id,"_blank")}}))),r("div",{className:b.default.cardDescription},void 0,i.long),r("div",{className:b.default.cardFooter,onClick:function(e){return e.stopPropagation()}},void 0,r("div",{className:b.default.cardFooterButton},void 0,r(h.default,{className:(0,m.default)(n,b.default.button),label:t,onClick:this.handleDownloadPlugin}),d.default.createElement("a",{href:"https://strapi.io/shop",style:{display:"none"},ref:function(n){e.aTag=n},target:"_blank"}," ")),this.props.isAlreadyInstalled?s:r("div",{className:b.default.compatible},void 0,r("i",{className:"fa fa-"+(this.props.plugin.isCompatible?"check":"times")}),r(f.FormattedMessage,{id:"app.components.PluginCard.compatible"+("support-us"===this.props.plugin.id?"Community":"")})))),r(P.default,{history:this.props.history,isAlreadyInstalled:this.props.isAlreadyInstalled,isOpen:!(0,_.isEmpty)(this.props.history.location.hash)&&(0,_.replace)(this.props.history.location.hash.split("::")[0],"#","")===this.props.plugin.id,plugin:this.props.plugin}))}}]),n}(d.default.Component);I.defaultProps={isAlreadyInstalled:!1,plugin:{description:"",id:"",name:"",price:0,ratings:5}},n.default=I},"./admin/src/components/PluginCard/styles.scss":function(e,n,t){var s=t("../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/components/PluginCard/styles.scss");"string"==typeof s&&(s=[[e.i,s,""]]);var i={};i.transform=void 0,t("../strapi-helper-plugin/node_modules/style-loader/lib/addStyles.js")(s,i),s.locals&&(e.exports=s.locals)},"./admin/src/containers/Marketplace/actions.js":function(e,n,t){"use strict";function s(e){return{type:l.DOWNLOAD_PLUGIN,pluginToDownload:e}}function i(){return{type:l.DOWNLOAD_PLUGIN_SUCCEEDED}}function o(){return{type:l.GET_AVAILABLE_AND_INSTALLED_PLUGINS}}function a(e,n){return{type:l.GET_AVAILABLE_AND_INSTALLED_PLUGINS_SUCCEEDED,availablePlugins:e,installedPlugins:n}}function r(){return{type:l.RESET_PROPS}}Object.defineProperty(n,"__esModule",{value:!0}),n.downloadPlugin=s,n.downloadPluginSucceeded=i,n.getAvailableAndInstalledPlugins=o,n.getAvailableAndInstalledPluginsSucceeded=a,n.resetProps=r;var l=t("./admin/src/containers/Marketplace/constants.js")},"./admin/src/containers/Marketplace/constants.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DOWNLOAD_PLUGIN="StrapiAdmin/Marketplace/DOWNLOAD_PLUGIN",n.DOWNLOAD_PLUGIN_SUCCEEDED="StrapiAdmin/Marketplace/DOWNLOAD_PLUGIN_SUCCEEDED",n.GET_AVAILABLE_AND_INSTALLED_PLUGINS="StrapiAdmin/Marketplace/GET_AVAILABLE_AND_INSTALLED_PLUGINS",n.GET_AVAILABLE_AND_INSTALLED_PLUGINS_SUCCEEDED="StrapiAdmin/Marketplace/GET_AVAILABLE_AND_INSTALLED_PLUGINS_SUCCEEDED",n.RESET_PROPS="StrapiAdmin/Marketplace/RESET_PROPS"},"./admin/src/containers/Marketplace/index.js":function(e,n,t){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}function r(e){return(0,h.bindActionCreators)({downloadPlugin:E.downloadPlugin,getAvailableAndInstalledPlugins:E.getAvailableAndInstalledPlugins,resetProps:E.resetProps},e)}Object.defineProperty(n,"__esModule",{value:!0});var l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(n,t,s,i){var o=n&&n.defaultProps,a=arguments.length-3;if(t||0===a||(t={}),t&&o)for(var r in o)void 0===t[r]&&(t[r]=o[r]);else t||(t=o||{});if(1===a)t.children=i;else if(a>1){for(var l=Array(a),p=0;p<a;p++)l[p]=arguments[p+3];t.children=l}return{$$typeof:e,type:n,key:void 0===s?null:""+s,ref:null,props:t,_owner:null}}}(),p=function(){function e(e,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(n,t,s){return t&&e(n.prototype,t),s&&e(n,s),n}}(),d=t("./node_modules/strapi-helper-plugin/node_modules/react/index.js"),c=s(d),u=t("./node_modules/strapi-helper-plugin/node_modules/prop-types/index.js"),m=s(u),_=t("./node_modules/strapi-helper-plugin/node_modules/react-redux/lib/index.js"),f=t("./node_modules/strapi-helper-plugin/node_modules/react-helmet/lib/Helmet.js"),g=t("./node_modules/strapi-helper-plugin/node_modules/react-intl/lib/index.es.js"),h=t("./node_modules/strapi-helper-plugin/node_modules/redux/lib/redux.js"),y=t("./node_modules/strapi-helper-plugin/node_modules/classnames/index.js"),P=s(y),v=t("./node_modules/strapi-helper-plugin/lib/src/components/PluginHeader/index.js"),b=s(v),x=t("./node_modules/strapi-helper-plugin/lib/src/components/LoadingIndicatorPage/index.js"),w=s(x),j=t("./admin/src/components/PluginCard/index.js"),I=s(j),k=t("./admin/src/utils/injectSaga.js"),C=s(k),A=t("./admin/src/utils/injectReducer.js"),O=s(A),E=t("./admin/src/containers/Marketplace/actions.js"),D=t("./admin/src/containers/Marketplace/selectors.js"),L=s(D),N=t("./admin/src/containers/Marketplace/reducer.js"),S=s(N),M=t("./admin/src/containers/Marketplace/saga.js"),T=s(M),U=t("./admin/src/containers/Marketplace/styles.scss"),z=s(U),B=l("meta",{name:"description",content:"Description of InstallPluginPage"}),R=l(w.default,{}),W=function(e){function n(){var e,t,s,a;i(this,n);for(var r=arguments.length,p=Array(r),d=0;d<r;d++)p[d]=arguments[d];return t=s=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(p))),s.getChildContext=function(){return{downloadPlugin:s.props.downloadPlugin}},s.renderHelmet=function(e){return l(f.Helmet,{},void 0,l("title",{},void 0,e),B)},s.renderPluginCard=function(e){var n=s.props,t=n.adminPage.currentEnvironment,i=n.availablePlugins,o=n.downloadPlugin,a=n.history,r=n.installedPlugins,p=i[e];return l(I.default,{currentEnvironment:t,history:a,plugin:p,showSupportUsButton:"support-us"===p.id,isAlreadyInstalled:r.includes(p.id),downloadPlugin:function(n){n.preventDefault(),n.stopPropagation(),"support-us"!==e.id&&o(p.id)}},p.id)},a=t,o(s,a)}return a(n,e),p(n,[{key:"componentDidMount",value:function(){this.props.getAvailableAndInstalledPlugins()}},{key:"componentWillUnmount",value:function(){this.props.resetProps()}},{key:"render",value:function(){var e=this.props,n=e.availablePlugins;return e.isLoading?R:l("div",{},void 0,l(g.FormattedMessage,{id:"app.components.InstallPluginPage.helmet"},void 0,this.renderHelmet),l("div",{className:(0,P.default)("container-fluid",z.default.containerFluid)},void 0,l(b.default,{title:{id:"app.components.InstallPluginPage.title"},description:{id:"app.components.InstallPluginPage.description"},actions:[]}),l("div",{className:(0,P.default)("row",z.default.wrapper)},void 0,Object.keys(n).map(this.renderPluginCard))))}}]),n}(c.default.Component);W.childContextTypes={downloadPlugin:m.default.func.isRequired},W.defaultProps={};var F=(0,L.default)(),G=(0,_.connect)(F,r),V=(0,O.default)({key:"marketplace",reducer:S.default}),H=(0,C.default)({key:"marketplace",saga:T.default});n.default=(0,h.compose)(V,H,G)(W)},"./admin/src/containers/Marketplace/reducer.js":function(e,n,t){"use strict";function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=arguments[1];switch(n.type){case o.DOWNLOAD_PLUGIN:return e.update("pluginToDownload",function(){return n.pluginToDownload});case o.DOWNLOAD_PLUGIN_SUCCEEDED:return e.update("installedPlugins",function(n){return n.push(e.get("pluginToDownload"))}).update("pluginToDownload",function(){return null});case o.GET_AVAILABLE_AND_INSTALLED_PLUGINS_SUCCEEDED:return e.update("availablePlugins",function(){return(0,i.List)(n.availablePlugins)}).update("installedPlugins",function(){return(0,i.List)(n.installedPlugins)}).update("isLoading",function(){return!1});case o.RESET_PROPS:return a;default:return e}}Object.defineProperty(n,"__esModule",{value:!0});var i=t("./node_modules/strapi-helper-plugin/node_modules/immutable/dist/immutable.js"),o=t("./admin/src/containers/Marketplace/constants.js"),a=(0,i.fromJS)({availablePlugins:(0,i.List)([]),installedPlugins:(0,i.List)([]),isLoading:!0,pluginToDownload:null});n.default=s},"./admin/src/containers/Marketplace/saga.js":function(e,n,t){"use strict";function s(){var e,n,t,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,e={enabled:!0,title:"app.components.InstallPluginPage.Download.title",description:"app.components.InstallPluginPage.Download.description"},strapi.lockApp(e),i.next=5,(0,l.select)((0,_.makeSelectPluginToDownload)());case 5:return n=i.sent,t={method:"POST",body:{plugin:n,port:window.location.port}},i.next=9,(0,l.call)(d.default,"/admin/plugins/install",t,e);case 9:if(s=i.sent,!s.ok){i.next=14;break}return i.next=13,(0,l.put)((0,u.downloadPluginSucceeded)());case 13:window.location.reload();case 14:i.next=20;break;case 16:i.prev=16,i.t0=i.catch(0),strapi.unlockApp(),strapi.notification.error("notification.error");case 20:case"end":return i.stop()}},f,this,[[0,16]])}function i(){var e,n,t,s,i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,l.select)((0,c.selectLocale)());case 2:return e=r.sent,r.prev=3,n={method:"GET",headers:{"Content-Type":"application/json"},params:{lang:e}},r.next=7,(0,l.all)([(0,l.call)(d.default,"https://marketplace.strapi.io/plugins",n),(0,l.call)(d.default,"/admin/plugins",{method:"GET"})]);case 7:return t=r.sent,s=a(t,2),i=s[0],o=s[1].plugins,r.next=13,(0,l.put)((0,u.getAvailableAndInstalledPluginsSucceeded)(i,Object.keys(o)));case 13:r.next=18;break;case 15:r.prev=15,r.t0=r.catch(3),strapi.notification.error("notification.error");case 18:case"end":return r.stop()}},g,this,[[3,15]])}function o(){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.fork)(l.takeLatest,m.GET_AVAILABLE_AND_INSTALLED_PLUGINS,i);case 2:return e=n.sent,n.next=5,(0,l.fork)(l.takeLatest,m.DOWNLOAD_PLUGIN,s);case 5:return n.next=7,(0,l.take)(r.LOCATION_CHANGE);case 7:return n.next=9,(0,l.cancel)(e);case 9:case"end":return n.stop()}},h,this)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function e(e,n){var t=[],s=!0,i=!1,o=void 0;try{for(var a,r=e[Symbol.iterator]();!(s=(a=r.next()).done)&&(t.push(a.value),!n||t.length!==n);s=!0);}catch(e){i=!0,o=e}finally{try{!s&&r.return&&r.return()}finally{if(i)throw o}}return t}return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return e(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();n.pluginDownload=s,n.getData=i,n.default=o;var r=t("./node_modules/strapi-helper-plugin/node_modules/react-router-redux/index.js"),l=t("./node_modules/strapi-helper-plugin/node_modules/redux-saga/es/effects.js"),p=t("./node_modules/strapi-helper-plugin/lib/src/utils/request.js"),d=function(e){return e&&e.__esModule?e:{default:e}}(p),c=t("./admin/src/containers/LanguageProvider/selectors.js"),u=t("./admin/src/containers/Marketplace/actions.js"),m=t("./admin/src/containers/Marketplace/constants.js"),_=t("./admin/src/containers/Marketplace/selectors.js"),f=regeneratorRuntime.mark(s),g=regeneratorRuntime.mark(i),h=regeneratorRuntime.mark(o)},"./admin/src/containers/Marketplace/selectors.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeSelectPluginToDownload=n.selectMarketplaceDomain=void 0;var s=t("./node_modules/strapi-helper-plugin/node_modules/reselect/es/index.js"),i=function(){return function(e){return e.get("marketplace")}},o=function(){return(0,s.createSelector)(i(),function(e){return e.toJS()})},a=function(){return(0,s.createSelector)(i(),function(e){return e.get("pluginToDownload")})};n.default=o,n.selectMarketplaceDomain=i,n.makeSelectPluginToDownload=a},"./admin/src/containers/Marketplace/styles.scss":function(e,n,t){var s=t("../strapi-helper-plugin/node_modules/css-loader/index.js??ref--0-oneOf-2-2!../strapi-helper-plugin/node_modules/postcss-loader/lib/index.js??ref--0-oneOf-2-3!../strapi-helper-plugin/node_modules/sass-loader/lib/loader.js!./admin/src/containers/Marketplace/styles.scss");"string"==typeof s&&(s=[[e.i,s,""]]);var i={};i.transform=void 0,t("../strapi-helper-plugin/node_modules/style-loader/lib/addStyles.js")(s,i),s.locals&&(e.exports=s.locals)}});
  //# sourceMappingURL=2.055e5fc5d24b92296db1.chunk.js.map